Disqus Comment System - Version 3.0.17

Version Description

  • Bumping version for WP 5.1 version bump. (Changes to README versions and main php file's version)
  • Fixed Undefined index bug where HTTP_HOST could not find web server
Download this release

Release Info

Developer Disqus
Plugin Icon Disqus Comment System
Version 3.0.17
Comparing to
See all releases

Code changes from version 3.0.16 to 3.0.17

README.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness
3
  Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
4
  Requires at least: 4.4
5
- Tested up to: 4.9.4
6
- Stable tag: 3.0.16
7
  Requires PHP: 5.4
8
 
9
  Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
@@ -124,6 +124,10 @@ Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
124
 
125
  == Changelog ==
126
 
 
 
 
 
127
  = 3.0.16 =
128
 
129
  * Add a manual syncing option that allows retroactive syncing within a selected date range
2
  Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness
3
  Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
4
  Requires at least: 4.4
5
+ Tested up to: 5.1
6
+ Stable tag: 3.0.17
7
  Requires PHP: 5.4
8
 
9
  Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
124
 
125
  == Changelog ==
126
 
127
+ = 3.0.17 =
128
+ * Bumping version for WP 5.1 version bump. (Changes to README versions and main php file's version)
129
+ * Fixed Undefined index bug where HTTP_HOST could not find web server
130
+
131
  = 3.0.16 =
132
 
133
  * Add a manual syncing option that allows retroactive syncing within a selected date range
admin/bundles/js/en.disqus-admin.bundle.3.0.16.js DELETED
@@ -1,44966 +0,0 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, {
40
- /******/ configurable: false,
41
- /******/ enumerable: true,
42
- /******/ get: getter
43
- /******/ });
44
- /******/ }
45
- /******/ };
46
- /******/
47
- /******/ // define __esModule on exports
48
- /******/ __webpack_require__.r = function(exports) {
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // getDefaultExport function for compatibility with non-harmony modules
53
- /******/ __webpack_require__.n = function(module) {
54
- /******/ var getter = module && module.__esModule ?
55
- /******/ function getDefault() { return module['default']; } :
56
- /******/ function getModuleExports() { return module; };
57
- /******/ __webpack_require__.d(getter, 'a', getter);
58
- /******/ return getter;
59
- /******/ };
60
- /******/
61
- /******/ // Object.prototype.hasOwnProperty.call
62
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
63
- /******/
64
- /******/ // __webpack_public_path__
65
- /******/ __webpack_require__.p = "";
66
- /******/
67
- /******/
68
- /******/ // Load entry module and return exports
69
- /******/ return __webpack_require__(__webpack_require__.s = "./frontend/src/ts/index.ts");
70
- /******/ })
71
- /************************************************************************/
72
- /******/ ({
73
-
74
- /***/ "./frontend/src/ts/DisqusApi.ts":
75
- /*!**************************************!*\
76
- !*** ./frontend/src/ts/DisqusApi.ts ***!
77
- \**************************************/
78
- /*! no static exports found */
79
- /***/ (function(module, exports, __webpack_require__) {
80
-
81
- "use strict";
82
-
83
- Object.defineProperty(exports, "__esModule", { value: true });
84
- var DisqusApi = /** @class */ (function () {
85
- function DisqusApi() {
86
- }
87
- Object.defineProperty(DisqusApi, "instance", {
88
- get: function () {
89
- return disqusApi;
90
- },
91
- enumerable: true,
92
- configurable: true
93
- });
94
- Object.defineProperty(DisqusApi.prototype, "apiKey", {
95
- // tslint:enable:variable-name
96
- get: function () {
97
- return this._apiKey;
98
- },
99
- enumerable: true,
100
- configurable: true
101
- });
102
- Object.defineProperty(DisqusApi.prototype, "accessToken", {
103
- get: function () {
104
- return this._accessToken;
105
- },
106
- enumerable: true,
107
- configurable: true
108
- });
109
- Object.defineProperty(DisqusApi.prototype, "forum", {
110
- get: function () {
111
- return this._forum;
112
- },
113
- enumerable: true,
114
- configurable: true
115
- });
116
- DisqusApi.prototype.configure = function (apiKey, accessToken, forum) {
117
- this._apiKey = apiKey;
118
- this._accessToken = accessToken;
119
- this._forum = forum;
120
- };
121
- DisqusApi.prototype.createImport = function (xmlContent, filename, onLoad) {
122
- var formData = new FormData();
123
- formData.append('upload', new Blob([xmlContent], { type: 'text/xml' }), filename);
124
- formData.append('sourceType', '0');
125
- formData.append('forum', this.forum);
126
- return this.post('imports/create', formData, onLoad);
127
- };
128
- DisqusApi.prototype.listPostsForForum = function (cursor, startDate, endDate, limit, onLoad) {
129
- var query = [
130
- "start=" + startDate.toISOString(),
131
- "end=" + endDate.toISOString(),
132
- "forum=" + this.forum,
133
- 'related=thread',
134
- "limit=" + Math.min(Math.max(limit, 1), 100),
135
- "cursor=" + (cursor || ''),
136
- ].join('&');
137
- return this.get('posts/list', query, onLoad);
138
- };
139
- DisqusApi.prototype.get = function (path, query, onLoad) {
140
- if (!this.apiKey)
141
- return null;
142
- var XHR = new XMLHttpRequest();
143
- XHR.open('GET', "https://disqus.com/api/3.0/" + path + ".json?api_key=" + this.apiKey + "&access_token=" + this.accessToken + "&" + query);
144
- XHR.addEventListener('load', onLoad);
145
- XHR.send();
146
- return XHR;
147
- };
148
- DisqusApi.prototype.post = function (path, data, onLoad) {
149
- if (!this.apiKey)
150
- return null;
151
- data.append('api_key', this.apiKey);
152
- data.append('access_token', this.accessToken);
153
- var XHR = new XMLHttpRequest();
154
- XHR.open('POST', "https://disqus.com/api/3.0/" + path + ".json");
155
- XHR.addEventListener('load', onLoad);
156
- XHR.send(data);
157
- return XHR;
158
- };
159
- return DisqusApi;
160
- }());
161
- exports.DisqusApi = DisqusApi;
162
- var disqusApi = new DisqusApi();
163
-
164
-
165
- /***/ }),
166
-
167
- /***/ "./frontend/src/ts/REST_OPTIONS.ts":
168
- /*!*****************************************!*\
169
- !*** ./frontend/src/ts/REST_OPTIONS.ts ***!
170
- \*****************************************/
171
- /*! no static exports found */
172
- /***/ (function(module, exports, __webpack_require__) {
173
-
174
- "use strict";
175
-
176
- Object.defineProperty(exports, "__esModule", { value: true });
177
- var WIN = window;
178
- var REST_OPTIONS = WIN.DISQUS_WP && WIN.DISQUS_WP.rest;
179
- exports.default = REST_OPTIONS;
180
-
181
-
182
- /***/ }),
183
-
184
- /***/ "./frontend/src/ts/WordPressCommentExporter.ts":
185
- /*!*****************************************************!*\
186
- !*** ./frontend/src/ts/WordPressCommentExporter.ts ***!
187
- \*****************************************************/
188
- /*! no static exports found */
189
- /***/ (function(module, exports, __webpack_require__) {
190
-
191
- "use strict";
192
-
193
- Object.defineProperty(exports, "__esModule", { value: true });
194
- var actions_1 = __webpack_require__(/*! ./actions */ "./frontend/src/ts/actions.ts");
195
- var DisqusApi_1 = __webpack_require__(/*! ./DisqusApi */ "./frontend/src/ts/DisqusApi.ts");
196
- var AdminState_1 = __webpack_require__(/*! ./reducers/AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
197
- var WordPressRestApi_1 = __webpack_require__(/*! ./WordPressRestApi */ "./frontend/src/ts/WordPressRestApi.ts");
198
- var POSTS_PER_PAGE = 10;
199
- exports.POSTS_PER_PAGE = POSTS_PER_PAGE;
200
- var WordPressCommentExporter = /** @class */ (function () {
201
- function WordPressCommentExporter(dispatch) {
202
- this.dispatch = dispatch;
203
- this.currentPage = 1;
204
- this.handleDisqusImportResponse = this.handleDisqusImportResponse.bind(this);
205
- this.handleExportPostResponse = this.handleExportPostResponse.bind(this);
206
- this.handlePostsResponse = this.handlePostsResponse.bind(this);
207
- }
208
- WordPressCommentExporter.prototype.startExportPosts = function () {
209
- return WordPressRestApi_1.WordPressRestApi.instance.wordpressRestGet('posts', "per_page=" + POSTS_PER_PAGE + "&page=" + this.currentPage, this.handlePostsResponse);
210
- };
211
- WordPressCommentExporter.prototype.exportPost = function (post) {
212
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestPost('export/post', { postId: post.id }, this.handleExportPostResponse.bind(null, post));
213
- };
214
- WordPressCommentExporter.prototype.dispatchComplete = function (post, numComments) {
215
- this.dispatch(actions_1.updateExportPostLogAction({
216
- error: null,
217
- id: post.id,
218
- link: post.link,
219
- numComments: numComments,
220
- status: AdminState_1.ExportLogStaus.complete,
221
- title: post.title.rendered,
222
- }));
223
- };
224
- WordPressCommentExporter.prototype.dispatchError = function (post, error) {
225
- this.dispatch(actions_1.updateExportPostLogAction({
226
- error: error,
227
- id: post.id,
228
- link: post.link,
229
- numComments: null,
230
- status: AdminState_1.ExportLogStaus.failed,
231
- title: post.title.rendered,
232
- }));
233
- };
234
- WordPressCommentExporter.prototype.handleDisqusImportResponse = function (post, exportPostResponse, xhr) {
235
- var jsonObject = null;
236
- try {
237
- jsonObject = JSON.parse(xhr.target.responseText);
238
- }
239
- catch (error) {
240
- // Continue
241
- }
242
- if (!jsonObject) {
243
- this.dispatchError(post, "Unknown error uploading to the Disqus servers");
244
- return;
245
- }
246
- if (jsonObject.code !== 0) {
247
- this.dispatchError(post, jsonObject.response);
248
- return;
249
- }
250
- this.dispatchComplete(post, exportPostResponse.data.comments.length);
251
- };
252
- WordPressCommentExporter.prototype.handleExportPostResponse = function (post, response) {
253
- if (!response || response.code !== 'OK') {
254
- this.dispatchError(post, response.message);
255
- return;
256
- }
257
- if (!response.data.comments.length) {
258
- this.dispatchComplete(post, response.data.comments.length);
259
- return;
260
- }
261
- var wxr = response.data.wxr;
262
- DisqusApi_1.DisqusApi.instance.createImport(wxr.xmlContent, wxr.filename, this.handleDisqusImportResponse.bind(null, post, response));
263
- };
264
- WordPressCommentExporter.prototype.handlePostsResponse = function (response) {
265
- var _this = this;
266
- if (Array.isArray(response)) {
267
- response.forEach(function (post) {
268
- _this.dispatch(actions_1.updateExportPostLogAction({
269
- error: null,
270
- id: post.id,
271
- link: post.link,
272
- numComments: null,
273
- status: AdminState_1.ExportLogStaus.pending,
274
- title: post.title.rendered,
275
- }));
276
- _this.exportPost(post);
277
- });
278
- if (response.length === POSTS_PER_PAGE) {
279
- this.currentPage += 1;
280
- this.startExportPosts();
281
- }
282
- }
283
- };
284
- return WordPressCommentExporter;
285
- }());
286
- exports.default = WordPressCommentExporter;
287
-
288
-
289
- /***/ }),
290
-
291
- /***/ "./frontend/src/ts/WordPressRestApi.ts":
292
- /*!*********************************************!*\
293
- !*** ./frontend/src/ts/WordPressRestApi.ts ***!
294
- \*********************************************/
295
- /*! no static exports found */
296
- /***/ (function(module, exports, __webpack_require__) {
297
-
298
- "use strict";
299
-
300
- Object.defineProperty(exports, "__esModule", { value: true });
301
- var REST_OPTIONS_1 = __webpack_require__(/*! ./REST_OPTIONS */ "./frontend/src/ts/REST_OPTIONS.ts");
302
- var WordPressRestApi = /** @class */ (function () {
303
- function WordPressRestApi() {
304
- }
305
- Object.defineProperty(WordPressRestApi, "instance", {
306
- get: function () {
307
- if (!WordPressRestApi.current)
308
- WordPressRestApi.current = new WordPressRestApi();
309
- return WordPressRestApi.current;
310
- },
311
- set: function (newInstance) {
312
- WordPressRestApi.current = newInstance;
313
- },
314
- enumerable: true,
315
- configurable: true
316
- });
317
- WordPressRestApi.prototype.pluginRestGet = function (path, onLoad) {
318
- var _this = this;
319
- return this.makeApiRequest('GET', "" + REST_OPTIONS_1.default.base + REST_OPTIONS_1.default.disqusBase + path, null, function (xhr) {
320
- _this.handleResponse(xhr.target.responseText, onLoad);
321
- });
322
- };
323
- WordPressRestApi.prototype.pluginRestPost = function (path, data, onLoad) {
324
- var _this = this;
325
- return this.makeApiRequest('POST', "" + REST_OPTIONS_1.default.base + REST_OPTIONS_1.default.disqusBase + path, data && JSON.stringify(data), function (xhr) {
326
- _this.handleResponse(xhr.target.responseText, onLoad);
327
- });
328
- };
329
- WordPressRestApi.prototype.wordpressRestGet = function (path, query, onLoad) {
330
- var _this = this;
331
- return this.makeApiRequest('GET', REST_OPTIONS_1.default.base + "wp/v2/" + path + (REST_OPTIONS_1.default.base.indexOf('?') > -1 ? '&' : '?') + (query || ''), null, function (xhr) {
332
- _this.handleResponse(xhr.target.responseText, onLoad);
333
- });
334
- };
335
- WordPressRestApi.prototype.makeApiRequest = function (method, url, data, onLoad) {
336
- var XHR = new XMLHttpRequest();
337
- XHR.open(method, url);
338
- XHR.setRequestHeader('Content-type', 'application/json');
339
- XHR.setRequestHeader('X-WP-Nonce', REST_OPTIONS_1.default.nonce);
340
- XHR.addEventListener('load', onLoad);
341
- XHR.send(data);
342
- return XHR;
343
- };
344
- WordPressRestApi.prototype.handleResponse = function (text, callback) {
345
- var jsonObject = null;
346
- try {
347
- jsonObject = JSON.parse(text);
348
- }
349
- catch (error) {
350
- // Continue
351
- }
352
- callback.call(null, jsonObject);
353
- };
354
- return WordPressRestApi;
355
- }());
356
- exports.WordPressRestApi = WordPressRestApi;
357
-
358
-
359
- /***/ }),
360
-
361
- /***/ "./frontend/src/ts/actions.ts":
362
- /*!************************************!*\
363
- !*** ./frontend/src/ts/actions.ts ***!
364
- \************************************/
365
- /*! no static exports found */
366
- /***/ (function(module, exports, __webpack_require__) {
367
-
368
- "use strict";
369
-
370
- Object.defineProperty(exports, "__esModule", { value: true });
371
- exports.UPDATE_ADMIN_OPTIONS = 'UPDATE_ADMIN_OPTIONS';
372
- exports.UPDATE_SYNC_STATUS = 'UPDATE_SYNC_STATUS';
373
- exports.TOGGLE_VALUE = 'TOGGLE_VALUE';
374
- exports.SET_VALUE = 'SET_VALUE';
375
- exports.UPDATE_LOCAL_OPTION = 'UPDATE_LOCAL_OPTION';
376
- exports.SET_MESSAGE = 'SET_MESSAGE';
377
- exports.CHANGE_INSTALL_STATE = 'CHANGE_INSTALL_STATE';
378
- exports.CHANGE_TAB_STATE = 'CHANGE_TAB_STATE';
379
- exports.UPDATE_EXPORT_POST_LOG = 'UPDATE_EXPORT_POST_LOG';
380
- function updateAdminOptionsAction(data) {
381
- return {
382
- data: data,
383
- type: exports.UPDATE_ADMIN_OPTIONS,
384
- };
385
- }
386
- exports.updateAdminOptionsAction = updateAdminOptionsAction;
387
- function updateLocalOptionAction(key, newValue) {
388
- return {
389
- data: (_a = {},
390
- _a[key] = newValue,
391
- _a),
392
- type: exports.UPDATE_LOCAL_OPTION,
393
- };
394
- var _a;
395
- }
396
- exports.updateLocalOptionAction = updateLocalOptionAction;
397
- function updateSyncStatusAction(data) {
398
- return {
399
- data: data,
400
- type: exports.UPDATE_SYNC_STATUS,
401
- };
402
- }
403
- exports.updateSyncStatusAction = updateSyncStatusAction;
404
- function toggleValueAction(key) {
405
- return {
406
- data: key,
407
- type: exports.TOGGLE_VALUE,
408
- };
409
- }
410
- exports.toggleValueAction = toggleValueAction;
411
- function setValueAction(key, newValue) {
412
- return {
413
- data: (_a = {},
414
- _a[key] = newValue,
415
- _a),
416
- type: exports.SET_VALUE,
417
- };
418
- var _a;
419
- }
420
- exports.setValueAction = setValueAction;
421
- function setMessageAction(message) {
422
- return {
423
- data: message,
424
- type: exports.SET_MESSAGE,
425
- };
426
- }
427
- exports.setMessageAction = setMessageAction;
428
- function changeInstallStateAction(state) {
429
- return {
430
- data: state,
431
- type: exports.CHANGE_INSTALL_STATE,
432
- };
433
- }
434
- exports.changeInstallStateAction = changeInstallStateAction;
435
- function changeTabStateAction(tab) {
436
- return {
437
- data: tab,
438
- type: exports.CHANGE_TAB_STATE,
439
- };
440
- }
441
- exports.changeTabStateAction = changeTabStateAction;
442
- function updateExportPostLogAction(log) {
443
- return {
444
- data: log,
445
- type: exports.UPDATE_EXPORT_POST_LOG,
446
- };
447
- }
448
- exports.updateExportPostLogAction = updateExportPostLogAction;
449
-
450
-
451
- /***/ }),
452
-
453
- /***/ "./frontend/src/ts/app.tsx":
454
- /*!*********************************!*\
455
- !*** ./frontend/src/ts/app.tsx ***!
456
- \*********************************/
457
- /*! no static exports found */
458
- /***/ (function(module, exports, __webpack_require__) {
459
-
460
- "use strict";
461
-
462
- Object.defineProperty(exports, "__esModule", { value: true });
463
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
464
- var ReactDOM = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
465
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
466
- var Redux = __webpack_require__(/*! redux */ "./node_modules/redux/es/index.js");
467
- var actions_1 = __webpack_require__(/*! ./actions */ "./frontend/src/ts/actions.ts");
468
- var MainContainer_1 = __webpack_require__(/*! ./containers/MainContainer */ "./frontend/src/ts/containers/MainContainer.ts");
469
- var DisqusApi_1 = __webpack_require__(/*! ./DisqusApi */ "./frontend/src/ts/DisqusApi.ts");
470
- var adminApp_1 = __webpack_require__(/*! ./reducers/adminApp */ "./frontend/src/ts/reducers/adminApp.ts");
471
- var AdminState_1 = __webpack_require__(/*! ./reducers/AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
472
- var WordPressRestApi_1 = __webpack_require__(/*! ./WordPressRestApi */ "./frontend/src/ts/WordPressRestApi.ts");
473
- var store = Redux.createStore(adminApp_1.default);
474
- var element = document.getElementById('disqus-admin');
475
- var onClearMessage = function (event) {
476
- store.dispatch(actions_1.setMessageAction(null));
477
- };
478
- // Sets up the hashchange router for configuration tabs.
479
- var onHashChange = function (event) {
480
- if (event)
481
- event.preventDefault();
482
- store.dispatch(actions_1.changeTabStateAction(window.location.hash.replace('#', '')));
483
- };
484
- window.addEventListener('hashchange', onHashChange);
485
- if (window.location.hash)
486
- onHashChange(null);
487
- ReactDOM.render(React.createElement(ReactRedux.Provider, { store: store },
488
- React.createElement(MainContainer_1.default, null)), element, function () {
489
- var checkResponse = function (response) {
490
- if (!response)
491
- return false;
492
- if (response.code !== 'OK') {
493
- store.dispatch(actions_1.setMessageAction({
494
- onDismiss: onClearMessage,
495
- text: response.message,
496
- type: 'error',
497
- }));
498
- return false;
499
- }
500
- return true;
501
- };
502
- store.dispatch(actions_1.setValueAction('isFetchingAdminOptions', true));
503
- store.dispatch(actions_1.setValueAction('isFetchingSyncStatus', true));
504
- // Fetch the admin options
505
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestGet('settings', function (response) {
506
- store.dispatch(actions_1.setValueAction('isFetchingAdminOptions', false));
507
- if (!checkResponse(response))
508
- return;
509
- var data = response.data;
510
- DisqusApi_1.DisqusApi.instance.configure(data.disqus_public_key, data.disqus_admin_access_token, data.disqus_forum_url);
511
- store.dispatch(actions_1.updateAdminOptionsAction(response.data));
512
- if (response.data.disqus_installed)
513
- store.dispatch(actions_1.changeInstallStateAction(AdminState_1.InstallationState.installed));
514
- });
515
- // Fetch the sync status
516
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestGet('sync/status', function (response) {
517
- store.dispatch(actions_1.setValueAction('isFetchingSyncStatus', false));
518
- if (!checkResponse(response))
519
- return;
520
- store.dispatch(actions_1.updateSyncStatusAction(response.data));
521
- });
522
- });
523
-
524
-
525
- /***/ }),
526
-
527
- /***/ "./frontend/src/ts/components/Admin.tsx":
528
- /*!**********************************************!*\
529
- !*** ./frontend/src/ts/components/Admin.tsx ***!
530
- \**********************************************/
531
- /*! no static exports found */
532
- /***/ (function(module, exports, __webpack_require__) {
533
-
534
- "use strict";
535
-
536
- var __assign = (this && this.__assign) || Object.assign || function(t) {
537
- for (var s, i = 1, n = arguments.length; i < n; i++) {
538
- s = arguments[i];
539
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
540
- t[p] = s[p];
541
- }
542
- return t;
543
- };
544
- Object.defineProperty(exports, "__esModule", { value: true });
545
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
546
- var AdvancedConfigContainer_1 = __webpack_require__(/*! ../containers/AdvancedConfigContainer */ "./frontend/src/ts/containers/AdvancedConfigContainer.ts");
547
- var ExportCommentsContainer_1 = __webpack_require__(/*! ../containers/ExportCommentsContainer */ "./frontend/src/ts/containers/ExportCommentsContainer.ts");
548
- var InstallContainer_1 = __webpack_require__(/*! ../containers/InstallContainer */ "./frontend/src/ts/containers/InstallContainer.ts");
549
- var ManualSyncContainer_1 = __webpack_require__(/*! ../containers/ManualSyncContainer */ "./frontend/src/ts/containers/ManualSyncContainer.ts");
550
- var SiteConfigContainer_1 = __webpack_require__(/*! ../containers/SiteConfigContainer */ "./frontend/src/ts/containers/SiteConfigContainer.ts");
551
- var SSOConfigContainer_1 = __webpack_require__(/*! ../containers/SSOConfigContainer */ "./frontend/src/ts/containers/SSOConfigContainer.ts");
552
- var SupportDiagnosticsContainer_1 = __webpack_require__(/*! ../containers/SupportDiagnosticsContainer */ "./frontend/src/ts/containers/SupportDiagnosticsContainer.ts");
553
- var SyncConfigContainer_1 = __webpack_require__(/*! ../containers/SyncConfigContainer */ "./frontend/src/ts/containers/SyncConfigContainer.ts");
554
- var utils_1 = __webpack_require__(/*! ../utils */ "./frontend/src/ts/utils.ts");
555
- var HelpResources_1 = __webpack_require__(/*! ./HelpResources */ "./frontend/src/ts/components/HelpResources.tsx");
556
- var SupportLinks_1 = __webpack_require__(/*! ./SupportLinks */ "./frontend/src/ts/components/SupportLinks.tsx");
557
- var WelcomePanel_1 = __webpack_require__(/*! ./WelcomePanel */ "./frontend/src/ts/components/WelcomePanel.tsx");
558
- var getSSOContainer = function (props) {
559
- var adminOptions = props.data.adminOptions;
560
- if (!adminOptions.disqus_public_key || !adminOptions.disqus_secret_key || !adminOptions.disqus_installed) {
561
- return (React.createElement("div", { className: 'notice notice-warning' },
562
- React.createElement("p", null,
563
- React.createElement("span", { className: 'dashicons dashicons-warning' }),
564
- ' ',
565
- "You must have a Site Shortname, API Public Key, and API Secret Key configured to enable this feature.")));
566
- }
567
- return React.createElement(SSOConfigContainer_1.default, null);
568
- };
569
- var getSyncContainer = function (props) {
570
- var adminOptions = props.data.adminOptions;
571
- if (!adminOptions.disqus_secret_key || !adminOptions.disqus_admin_access_token || !adminOptions.disqus_installed) {
572
- return (React.createElement("div", { className: 'notice notice-warning' },
573
- React.createElement("p", null,
574
- React.createElement("span", { className: 'dashicons dashicons-warning' }),
575
- ' ',
576
- "You must have a Site Shortname, API Secret Key, and API Access Token configured to enable this feature.")));
577
- }
578
- return (React.createElement("div", null,
579
- React.createElement(SyncConfigContainer_1.default, null),
580
- props.data.isManualSyncFormVisible ? React.createElement(ManualSyncContainer_1.default, null) : null));
581
- };
582
- var getActiveTab = function (props) { return (props.data.activeTab || (props.data.adminOptions.disqus_installed ? 'siteConfiguration' : 'install')); };
583
- var getExportContainer = function (props) {
584
- var adminOptions = props.data.adminOptions;
585
- if (!adminOptions.disqus_secret_key || !adminOptions.disqus_admin_access_token) {
586
- return (React.createElement("div", { className: 'notice notice-warning' },
587
- React.createElement("p", null,
588
- React.createElement("span", { className: 'dashicons dashicons-warning' }),
589
- ' ',
590
- "You must have an API Secret Key and API Access Token configured to enable this feature.")));
591
- }
592
- return React.createElement(ExportCommentsContainer_1.default, null);
593
- };
594
- var getTabClassName = function (props, id) {
595
- var activeTab = getActiveTab(props);
596
- return "nav-tab" + (activeTab === id ? ' nav-tab-active' : '');
597
- };
598
- var AdminTabBar = function (props) { return (React.createElement("div", { className: 'nav-tab-wrapper' },
599
- React.createElement("a", { href: '#install', className: getTabClassName(props, 'install') }, props.data.adminOptions.disqus_installed ? "Reinstall" : "Install"),
600
- React.createElement("a", { href: '#siteConfiguration', className: getTabClassName(props, 'siteConfiguration') }, "Site Configuration"),
601
- React.createElement("a", { href: '#syncing', className: getTabClassName(props, 'syncing') }, "Syncing"),
602
- React.createElement("a", { href: '#singleSignOn', className: getTabClassName(props, 'singleSignOn') }, "Single Sign-on"),
603
- React.createElement("a", { href: '#advanced', className: getTabClassName(props, 'advanced') }, "Advanced"),
604
- React.createElement("a", { href: '#support', className: getTabClassName(props, 'support') }, "Support"))); };
605
- /* tslint:disable:max-line-length */
606
- var getActiveTabView = function (props) {
607
- var activeTab = getActiveTab(props);
608
- switch (activeTab) {
609
- case 'syncing':
610
- return (React.createElement("div", null,
611
- React.createElement("h3", null, "WordPress Comments"),
612
- React.createElement("p", { className: 'description' }, "Disqus has replaced the default WordPress commenting system. You may access and edit the comments in your database, but any actions performed there will not be reflected in Disqus."),
613
- React.createElement("p", { className: 'submit' },
614
- React.createElement("a", { href: utils_1.getWordpressAdminUrl('editComments'), className: 'button button-large' },
615
- React.createElement("span", { className: 'dashicons dashicons-wordpress-alt' }),
616
- ' ',
617
- "View WordPress Comments")),
618
- React.createElement("hr", null),
619
- React.createElement("h3", null, "Sync"),
620
- React.createElement("p", { className: 'description' },
621
- "Copy comments created and edited in Disqus to your local WordPress database for backup purposes.",
622
- ' ',
623
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/960360', target: '_blank' }, "Learn More")),
624
- getSyncContainer(props),
625
- React.createElement("hr", null),
626
- React.createElement("h3", null, "Import"),
627
- React.createElement("p", { className: 'description' },
628
- "Import your existing WordPress comments to Disqus.",
629
- ' ',
630
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/466255', target: '_blank' }, "Learn More")),
631
- getExportContainer(props)));
632
- case 'singleSignOn':
633
- return (React.createElement("div", null,
634
- React.createElement("h3", null, "Set up Single Sign-on"),
635
- React.createElement("p", { className: 'description' },
636
- "Allow users to sign in with this site's user accounts. This is a Disqus Pro feature.",
637
- ' ',
638
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/1148635', target: '_blank' }, "Learn More")),
639
- getSSOContainer(props)));
640
- case 'advanced':
641
- return (React.createElement("div", null,
642
- React.createElement("h3", null, "Advanced Settings"),
643
- React.createElement(AdvancedConfigContainer_1.default, null)));
644
- case 'support':
645
- return (React.createElement("div", null,
646
- React.createElement("h3", null, "How to Get Support"),
647
- React.createElement(SupportLinks_1.default, null),
648
- React.createElement("hr", null),
649
- React.createElement("h3", null, "Helpful Resources"),
650
- React.createElement(HelpResources_1.default, null),
651
- React.createElement("hr", null),
652
- React.createElement("h3", null, "Diagnostic Information"),
653
- React.createElement("p", { className: 'description' }, "Include the following information in any private support requests, but do not share this publicly."),
654
- React.createElement("div", { className: 'submit' },
655
- React.createElement(SupportDiagnosticsContainer_1.default, null))));
656
- case 'install':
657
- return React.createElement(InstallContainer_1.default, null);
658
- case 'siteConfiguration':
659
- default:
660
- return (React.createElement("div", null,
661
- React.createElement("h3", null, "Site Configuration"),
662
- React.createElement("p", { className: 'description' },
663
- "Your site configuration comes from Disqus. Changing these values may break your installation.",
664
- ' ',
665
- React.createElement("a", { href: utils_1.getForumAdminUrl(props.data.adminOptions.disqus_forum_url, 'install/platforms/wordpress'), target: '_blank' }, "WordPress install instructions")),
666
- React.createElement(SiteConfigContainer_1.default, null)));
667
- }
668
- };
669
- var Admin = function (props) { return (React.createElement("div", null,
670
- props.data.adminOptions.disqus_installed ? React.createElement(WelcomePanel_1.default, { shortname: props.data.adminOptions.disqus_forum_url }) : null,
671
- React.createElement(AdminTabBar, __assign({}, props)),
672
- getActiveTabView(props))); };
673
- /* tslint:enable:max-line-length */
674
- exports.default = Admin;
675
-
676
-
677
- /***/ }),
678
-
679
- /***/ "./frontend/src/ts/components/AdvancedConfigForm.tsx":
680
- /*!***********************************************************!*\
681
- !*** ./frontend/src/ts/components/AdvancedConfigForm.tsx ***!
682
- \***********************************************************/
683
- /*! no static exports found */
684
- /***/ (function(module, exports, __webpack_require__) {
685
-
686
- "use strict";
687
-
688
- Object.defineProperty(exports, "__esModule", { value: true });
689
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
690
- /* tslint:disable:max-line-length */
691
- var AdvancedConfigForm = function (props) { return (React.createElement("form", { name: 'advanced', action: '', method: 'POST', onSubmit: props.onSubmitSiteForm },
692
- React.createElement("table", { className: 'form-table' },
693
- React.createElement("tbody", null,
694
- React.createElement("tr", null,
695
- React.createElement("th", { scope: 'row' },
696
- React.createElement("label", { htmlFor: 'disqus_render_js' }, "Render Comments JavaScript")),
697
- React.createElement("td", null,
698
- React.createElement("input", { type: 'checkbox', id: 'disqus_render_js', name: 'disqus_render_js', checked: Boolean(props.data.localAdminOptions.get('disqus_render_js')), onChange: props.onInputChange.bind(null, 'disqus_render_js') }),
699
- React.createElement("p", { className: 'description' }, "This will render the Disqus comments javascript directly into the page markup, rather than use the wp_enqueue_script() function. Enable this if Disqus doesn't load on your posts."))))),
700
- React.createElement("p", { className: 'submit' },
701
- React.createElement("input", { type: 'submit', name: 'submit-application-form', className: 'button button-primary', value: "Save" })))); };
702
- /* tslint:enable:max-line-length */
703
- exports.default = AdvancedConfigForm;
704
-
705
-
706
- /***/ }),
707
-
708
- /***/ "./frontend/src/ts/components/ExportComments.tsx":
709
- /*!*******************************************************!*\
710
- !*** ./frontend/src/ts/components/ExportComments.tsx ***!
711
- \*******************************************************/
712
- /*! no static exports found */
713
- /***/ (function(module, exports, __webpack_require__) {
714
-
715
- "use strict";
716
-
717
- var __assign = (this && this.__assign) || Object.assign || function(t) {
718
- for (var s, i = 1, n = arguments.length; i < n; i++) {
719
- s = arguments[i];
720
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
721
- t[p] = s[p];
722
- }
723
- return t;
724
- };
725
- Object.defineProperty(exports, "__esModule", { value: true });
726
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
727
- var AdminState_1 = __webpack_require__(/*! ../reducers/AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
728
- var getStatusMessage = function (props) {
729
- if (props.data.isExportRunning)
730
- return React.createElement("h4", null, "Sending to Disqus" + '…');
731
- return (React.createElement("h4", null,
732
- React.createElement("span", null,
733
- "Done!",
734
- ' ',
735
- React.createElement("a", { href: "https://import.disqus.com/" + props.data.adminOptions.disqus_forum_url + "/", target: '_blank' }, "Check your import status"))));
736
- };
737
- var LogMessages = function (props) {
738
- var logArray = props.data.exportLogs.toArray();
739
- var logElements = logArray.map(function (log) {
740
- var statusColor;
741
- var statusText;
742
- switch (log.status) {
743
- case AdminState_1.ExportLogStaus.failed:
744
- statusColor = 'red';
745
- statusText = React.createElement("abbr", { title: log.error }, "Failed");
746
- break;
747
- case AdminState_1.ExportLogStaus.complete:
748
- statusColor = 'green';
749
- statusText = "Complete";
750
- break;
751
- case AdminState_1.ExportLogStaus.pending:
752
- default:
753
- statusColor = 'gray';
754
- statusText = "Pending";
755
- break;
756
- }
757
- return (React.createElement("tr", { key: log.id },
758
- React.createElement("td", null, log.id),
759
- React.createElement("td", null,
760
- React.createElement("a", { href: log.link }, log.title)),
761
- React.createElement("td", null,
762
- React.createElement("strong", { style: { color: statusColor } }, statusText)),
763
- React.createElement("td", null, log.numComments)));
764
- });
765
- return (React.createElement("div", null,
766
- getStatusMessage(props),
767
- React.createElement("table", { className: 'wp-list-table widefat striped' },
768
- React.createElement("thead", null,
769
- React.createElement("tr", null,
770
- React.createElement("th", { scope: 'col' }, "ID"),
771
- React.createElement("th", { scope: 'col' }, "Title"),
772
- React.createElement("th", { scope: 'col' }, "Status"),
773
- React.createElement("th", { scope: 'col' }, "# Imported"))),
774
- React.createElement("tbody", null, logElements))));
775
- };
776
- var ExportComments = function (props) { return (React.createElement("form", { name: 'export', method: 'POST', onSubmit: props.onSubmitExportCommentsForm },
777
- React.createElement("p", { className: 'submit' },
778
- React.createElement("button", { type: 'submit', className: 'button button-large', disabled: props.data.isExportRunning },
779
- React.createElement("span", { className: 'dashicons dashicons-upload' }),
780
- ' ',
781
- "Import Comments")),
782
- props.data.exportLogs.size ? React.createElement(LogMessages, __assign({}, props)) : null)); };
783
- exports.default = ExportComments;
784
-
785
-
786
- /***/ }),
787
-
788
- /***/ "./frontend/src/ts/components/HelpResources.tsx":
789
- /*!******************************************************!*\
790
- !*** ./frontend/src/ts/components/HelpResources.tsx ***!
791
- \******************************************************/
792
- /*! no static exports found */
793
- /***/ (function(module, exports, __webpack_require__) {
794
-
795
- "use strict";
796
-
797
- Object.defineProperty(exports, "__esModule", { value: true });
798
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
799
- var HelpResources = function () { return (React.createElement("ul", null,
800
- React.createElement("li", null,
801
- React.createElement("a", { href: 'https://status.disqus.com/', target: '_blank' }, "Disqus System Status")),
802
- React.createElement("li", null,
803
- React.createElement("a", { href: 'https://github.com/disqus/disqus-wordpress-plugin', target: '_blank' },
804
- "Github Project",
805
- " (disqus-wordpress-plugin)")))); };
806
- exports.default = HelpResources;
807
-
808
-
809
- /***/ }),
810
-
811
- /***/ "./frontend/src/ts/components/Install.tsx":
812
- /*!************************************************!*\
813
- !*** ./frontend/src/ts/components/Install.tsx ***!
814
- \************************************************/
815
- /*! no static exports found */
816
- /***/ (function(module, exports, __webpack_require__) {
817
-
818
- "use strict";
819
-
820
- var __extends = (this && this.__extends) || (function () {
821
- var extendStatics = Object.setPrototypeOf ||
822
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
823
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
824
- return function (d, b) {
825
- extendStatics(d, b);
826
- function __() { this.constructor = d; }
827
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
828
- };
829
- })();
830
- Object.defineProperty(exports, "__esModule", { value: true });
831
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
832
- var AdminState_1 = __webpack_require__(/*! ../reducers/AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
833
- var REST_OPTIONS_1 = __webpack_require__(/*! ../REST_OPTIONS */ "./frontend/src/ts/REST_OPTIONS.ts");
834
- var DISQUS_URL_BASE = 'https://disqus.com/';
835
- var DISQUS_SIGNUP_URL = DISQUS_URL_BASE + "profile/signup/";
836
- var DISQUS_LOGIN_URL = DISQUS_URL_BASE + "profile/login/";
837
- var DISQUS_CREATE_URL = DISQUS_URL_BASE + "admin/create/";
838
- var DISQUS_WORDPRESS_URL = DISQUS_URL_BASE + "admin/install/platforms/wordpress/";
839
- var SYNCTOKEN_INPUT_ID = 'configKey';
840
- /* tslint:disable:max-line-length */
841
- var Install = /** @class */ (function (_super) {
842
- __extends(Install, _super);
843
- function Install() {
844
- return _super !== null && _super.apply(this, arguments) || this;
845
- }
846
- Install.prototype.render = function () {
847
- var syncToken = "" + REST_OPTIONS_1.default.base + REST_OPTIONS_1.default.disqusBase + "settings " + this.props.data.adminOptions.get('disqus_sync_token', '');
848
- return (React.createElement("div", null,
849
- React.createElement("h3", null, "Automatic Installation"),
850
- React.createElement("p", null, "Installs Disqus on your site using a generated API application. If your site isn't publicly accessible, use the manual installation method."),
851
- this.getAutoInstallPrompt(syncToken)));
852
- };
853
- Install.prototype.getAutoInstallPrompt = function (syncToken) {
854
- switch (this.props.data.installationState) {
855
- case AdminState_1.InstallationState.none:
856
- return (React.createElement("div", null,
857
- React.createElement("p", { className: 'submit' },
858
- React.createElement("strong", null, "Do you have a Disqus account?"),
859
- React.createElement("br", null),
860
- React.createElement("button", { className: 'button', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.hasAccount) }, "Yes"),
861
- ' ',
862
- React.createElement("button", { className: 'button', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.noAccount) }, "No"))));
863
- case AdminState_1.InstallationState.hasAccount:
864
- return (React.createElement("div", null,
865
- React.createElement("p", { className: 'submit' },
866
- React.createElement("strong", null, "Do you have a site registered on Disqus you want to use?"),
867
- React.createElement("br", null),
868
- React.createElement("button", { className: 'button', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.hasSite) }, "Yes"),
869
- ' ',
870
- React.createElement("button", { className: 'button', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.noSite) }, "No"))));
871
- case AdminState_1.InstallationState.noAccount:
872
- return (React.createElement("ol", { className: 'dsq-installation__instruction-list' },
873
- React.createElement("li", null,
874
- "Sign up to register your account and site with Disqus",
875
- React.createElement("br", null),
876
- React.createElement("button", { className: 'button button-primary button-large', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_SIGNUP_URL + "?next=" + encodeURIComponent(DISQUS_CREATE_URL)) }, "Sign up")),
877
- React.createElement("li", null,
878
- "After creating the site, go to the WordPress installation page to finish.",
879
- React.createElement("br", null),
880
- React.createElement("button", { className: 'button', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_LOGIN_URL + "?next=" + encodeURIComponent(DISQUS_WORDPRESS_URL)) }, "WordPress installation page")),
881
- React.createElement("li", null,
882
- "If needed, copy the sync token below and paste it to the input field in the installation page",
883
- React.createElement("br", null),
884
- React.createElement("input", { id: SYNCTOKEN_INPUT_ID, type: 'text', value: syncToken, className: 'regular-text', readOnly: true }),
885
- React.createElement("button", { className: 'button', onClick: this.props.onCopyText.bind(null, SYNCTOKEN_INPUT_ID) }, "Copy")),
886
- React.createElement("li", null, "Click the Install button and finish configuring your Disqus settings")));
887
- case AdminState_1.InstallationState.hasSite:
888
- case AdminState_1.InstallationState.reinstallSite:
889
- var installUrl = DISQUS_WORDPRESS_URL;
890
- var useExistingSite = this.props.data.installationState === AdminState_1.InstallationState.reinstallSite;
891
- if (useExistingSite)
892
- installUrl = installUrl.replace('//disqus.com', "//" + this.props.data.adminOptions.disqus_forum_url + ".disqus.com");
893
- return (React.createElement("ol", { className: 'dsq-installation__instruction-list' },
894
- React.createElement("li", null,
895
- "Go to the WordPress installation page",
896
- React.createElement("br", null),
897
- React.createElement("button", { className: 'button button-primary button-large', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_LOGIN_URL + "?next=" + encodeURIComponent(installUrl)) }, "WordPress installation page")),
898
- useExistingSite ? null : (React.createElement("li", null, "When prompted, choose the Disqus site you want to use")),
899
- React.createElement("li", null,
900
- "If needed, copy the sync token below and paste it to the input field in the installation page",
901
- React.createElement("br", null),
902
- React.createElement("input", { id: SYNCTOKEN_INPUT_ID, type: 'text', value: syncToken, className: 'regular-text', readOnly: true }),
903
- React.createElement("button", { className: 'button', onClick: this.props.onCopyText.bind(null, SYNCTOKEN_INPUT_ID) }, "Copy")),
904
- React.createElement("li", null, "Click the Install button and finish configuring your Disqus settings")));
905
- case AdminState_1.InstallationState.noSite:
906
- return (React.createElement("ol", { className: 'dsq-installation__instruction-list' },
907
- React.createElement("li", null,
908
- "Create a new site on Disqus",
909
- React.createElement("br", null),
910
- React.createElement("button", { className: 'button button-primary button-large', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_LOGIN_URL + "?next=" + encodeURIComponent(DISQUS_CREATE_URL)) }, "Create site")),
911
- React.createElement("li", null,
912
- "After creating the site, go to the WordPress installation page to finish.",
913
- React.createElement("br", null),
914
- React.createElement("button", { className: 'button', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_LOGIN_URL + "?next=" + encodeURIComponent(DISQUS_WORDPRESS_URL)) }, "WordPress installation page")),
915
- React.createElement("li", null,
916
- "If needed, copy the sync token below and paste it to the input field in the installation page",
917
- React.createElement("br", null),
918
- React.createElement("input", { id: SYNCTOKEN_INPUT_ID, type: 'text', value: syncToken, className: 'regular-text', readOnly: true }),
919
- React.createElement("button", { className: 'button', onClick: this.props.onCopyText.bind(null, SYNCTOKEN_INPUT_ID) }, "Copy")),
920
- React.createElement("li", null, "Click the Install button and finish configuring your Disqus settings")));
921
- case AdminState_1.InstallationState.installed:
922
- return (React.createElement("div", null,
923
- React.createElement("p", { className: 'submit' },
924
- React.createElement("strong", null, "Do you want to reinstall this site or a different site?")),
925
- React.createElement("p", null,
926
- React.createElement("button", { className: 'button button-primary button-large', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.reinstallSite) },
927
- "Reinstall",
928
- ' ',
929
- React.createElement("em", null, this.props.data.adminOptions.disqus_forum_url)),
930
- ' ',
931
- React.createElement("button", { className: 'button button-large', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.hasSite) }, "Choose a new site"))));
932
- default:
933
- return null;
934
- }
935
- };
936
- /**
937
- * Opens a window to the publisher admin installation instructions and initializes communication between them.
938
- * @param syncToken - The token to send when the installation instructions are ready.
939
- * @param startUrl - The URL to load initially.
940
- */
941
- Install.prototype.openDisqusPage = function (syncToken, startUrl) {
942
- var win = window.open(startUrl);
943
- var handlePostMessageEvent = function (evt) {
944
- if (evt.origin.match(/https:\/\/(\w+).disqus.com/)) {
945
- switch (evt.data) {
946
- case 'installPageReady':
947
- // Pass the token information back to the install instructions page.
948
- win.postMessage(syncToken, evt.origin);
949
- break;
950
- case 'configurationUpdated':
951
- window.location.reload();
952
- break;
953
- default:
954
- break;
955
- }
956
- }
957
- };
958
- window.addEventListener('message', handlePostMessageEvent, false);
959
- };
960
- return Install;
961
- }(React.Component));
962
- /* tslint:enable:max-line-length */
963
- exports.default = Install;
964
-
965
-
966
- /***/ }),
967
-
968
- /***/ "./frontend/src/ts/components/Loading.tsx":
969
- /*!************************************************!*\
970
- !*** ./frontend/src/ts/components/Loading.tsx ***!
971
- \************************************************/
972
- /*! no static exports found */
973
- /***/ (function(module, exports, __webpack_require__) {
974
-
975
- "use strict";
976
-
977
- Object.defineProperty(exports, "__esModule", { value: true });
978
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
979
- var Loading = function () { return (React.createElement("div", { className: 'dsq-loading-container' },
980
- React.createElement("div", { className: 'dsq-spinner' }))); };
981
- exports.default = Loading;
982
-
983
-
984
- /***/ }),
985
-
986
- /***/ "./frontend/src/ts/components/Main.tsx":
987
- /*!*********************************************!*\
988
- !*** ./frontend/src/ts/components/Main.tsx ***!
989
- \*********************************************/
990
- /*! no static exports found */
991
- /***/ (function(module, exports, __webpack_require__) {
992
-
993
- "use strict";
994
-
995
- var __assign = (this && this.__assign) || Object.assign || function(t) {
996
- for (var s, i = 1, n = arguments.length; i < n; i++) {
997
- s = arguments[i];
998
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
999
- t[p] = s[p];
1000
- }
1001
- return t;
1002
- };
1003
- Object.defineProperty(exports, "__esModule", { value: true });
1004
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1005
- var SyncTokenContainer_1 = __webpack_require__(/*! ../containers/SyncTokenContainer */ "./frontend/src/ts/containers/SyncTokenContainer.ts");
1006
- var utils_1 = __webpack_require__(/*! ../utils */ "./frontend/src/ts/utils.ts");
1007
- var Admin_1 = __webpack_require__(/*! ./Admin */ "./frontend/src/ts/components/Admin.tsx");
1008
- var Loading_1 = __webpack_require__(/*! ./Loading */ "./frontend/src/ts/components/Loading.tsx");
1009
- var Message_1 = __webpack_require__(/*! ./Message */ "./frontend/src/ts/components/Message.tsx");
1010
- var PRE_RELEASE_TYPES = Object.freeze({
1011
- alpha: 'alpha',
1012
- beta: 'beta',
1013
- });
1014
- /* tslint:disable:max-line-length */
1015
- var getMainView = function (props) {
1016
- if (!props.data.config.permissions.canManageSettings)
1017
- return "You don't have permission to make any changes here. Please contact the site administrator to get access.";
1018
- else if (props.data.isFetchingAdminOptions || props.data.isFetchingSyncStatus)
1019
- return React.createElement(Loading_1.default, null);
1020
- else if (!props.data.adminOptions.disqus_sync_token)
1021
- return (React.createElement("div", null,
1022
- React.createElement("div", { className: "notice notice-info inline" },
1023
- React.createElement("p", null, "The plugin was unable to generate a secret key for your site. You will have to create one below in order for installation and syncing to work.")),
1024
- React.createElement(SyncTokenContainer_1.default, __assign({}, props))));
1025
- return React.createElement(Admin_1.default, __assign({}, props));
1026
- };
1027
- var getPreReleaseNotice = function (pluginVersion) {
1028
- // Format of versions can be either 1.0.0, 1.0.0-beta, or 1.0.0-beta.1
1029
- var preReleaseType = (pluginVersion.split('-')[1] || '').split('.')[0];
1030
- if (PRE_RELEASE_TYPES[preReleaseType]) {
1031
- return (React.createElement("div", { className: "notice notice-info inline" },
1032
- React.createElement("p", null,
1033
- "You are using a ",
1034
- React.createElement("strong", null,
1035
- "pre-release version (", "" + pluginVersion,
1036
- ")"),
1037
- " of the Disqus WordPress plugin.",
1038
- ' ',
1039
- React.createElement("a", { href: 'https://github.com/disqus/disqus-wordpress-plugin/releases', target: '_blank' }, "Check for new releases"))));
1040
- }
1041
- return null;
1042
- };
1043
- var Main = function (props) { return (React.createElement("div", { className: 'dsq-admin-wrapper' },
1044
- React.createElement("div", { className: 'wrap' },
1045
- React.createElement("a", { href: utils_1.getWordpressAdminUrl('disqus'), className: 'disqus-logo' },
1046
- React.createElement("img", { src: 'https://a.disquscdn.com/dotcom/d-2407bda/img/brand/disqus-logo-blue-white.svg', width: 102 }))),
1047
- React.createElement("div", { className: 'wrap' },
1048
- getPreReleaseNotice(props.data.config.site.pluginVersion),
1049
- props.data.message ? React.createElement(Message_1.default, __assign({}, props.data.message)) : null,
1050
- getMainView(props)))); };
1051
- /* tslint:enable:max-line-length */
1052
- exports.default = Main;
1053
-
1054
-
1055
- /***/ }),
1056
-
1057
- /***/ "./frontend/src/ts/components/ManualSyncForm.tsx":
1058
- /*!*******************************************************!*\
1059
- !*** ./frontend/src/ts/components/ManualSyncForm.tsx ***!
1060
- \*******************************************************/
1061
- /*! no static exports found */
1062
- /***/ (function(module, exports, __webpack_require__) {
1063
-
1064
- "use strict";
1065
-
1066
- Object.defineProperty(exports, "__esModule", { value: true });
1067
- var moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
1068
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1069
- var ManualSyncForm = function (props) {
1070
- return (React.createElement("form", { name: 'manual-sync', method: 'POST', onSubmit: props.onSubmitManualSyncForm },
1071
- React.createElement("h4", null, "Manually Sync Comments"),
1072
- React.createElement("p", { className: 'description' }, "Select a time range to sync past comments. Date ranges are limited to a maximum of 12 months."),
1073
- React.createElement("table", { className: 'form-table' },
1074
- React.createElement("tbody", null,
1075
- React.createElement("tr", null,
1076
- React.createElement("th", { scope: 'row' },
1077
- React.createElement("label", { htmlFor: 'manualSyncRangeStart' }, "Start Date")),
1078
- React.createElement("td", null,
1079
- React.createElement("input", { type: 'date', id: 'manualSyncRangeStart', name: 'manualSyncRangeStart', className: 'regular-text', value: props.data.manualSyncRangeStart, onChange: props.onDateSelectorInputchange.bind(null, 'manualSyncRangeStart'), max: props.data.manualSyncRangeEnd, min: moment(props.data.manualSyncRangeEnd).subtract(12, 'months').format('YYYY-MM-DD'), disabled: props.data.isManualSyncRunning }),
1080
- React.createElement("p", { className: 'description' }, "The start date for the manual sync"))),
1081
- React.createElement("tr", null,
1082
- React.createElement("th", { scope: 'row' },
1083
- React.createElement("label", { htmlFor: 'manualSyncRangeEnd' }, "End Date")),
1084
- React.createElement("td", null,
1085
- React.createElement("input", { type: 'date', id: 'manualSyncRangeEnd', name: 'manualSyncRangeEnd', className: 'regular-text', value: props.data.manualSyncRangeEnd, onChange: props.onDateSelectorInputchange.bind(null, 'manualSyncRangeEnd'), max: moment().format('YYYY-MM-DD'), min: props.data.manualSyncRangeStart, disabled: props.data.isManualSyncRunning }),
1086
- React.createElement("p", { className: 'description' }, "The end date for the manual sync"))))),
1087
- React.createElement("p", { className: 'submit' },
1088
- React.createElement("button", { type: 'submit', className: 'button button-large', disabled: props.data.isManualSyncRunning },
1089
- React.createElement("span", { className: 'dashicons dashicons-update' }),
1090
- ' ',
1091
- "Run Manual Sync"))));
1092
- };
1093
- exports.default = ManualSyncForm;
1094
-
1095
-
1096
- /***/ }),
1097
-
1098
- /***/ "./frontend/src/ts/components/Message.tsx":
1099
- /*!************************************************!*\
1100
- !*** ./frontend/src/ts/components/Message.tsx ***!
1101
- \************************************************/
1102
- /*! no static exports found */
1103
- /***/ (function(module, exports, __webpack_require__) {
1104
-
1105
- "use strict";
1106
-
1107
- Object.defineProperty(exports, "__esModule", { value: true });
1108
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1109
- var getDismissButton = function (props) {
1110
- if (!props.onDismiss)
1111
- return null;
1112
- return (React.createElement("button", { type: 'button', className: 'notice-dismiss', onClick: props.onDismiss },
1113
- React.createElement("span", { className: 'screen-reader-text' }, "Dismiss this notice.")));
1114
- };
1115
- var Message = function (props) { return (React.createElement("div", { className: "notice notice-" + props.type + " inline is-dismissible" },
1116
- React.createElement("p", null, props.text),
1117
- getDismissButton(props))); };
1118
- exports.default = Message;
1119
-
1120
-
1121
- /***/ }),
1122
-
1123
- /***/ "./frontend/src/ts/components/SSOConfigForm.tsx":
1124
- /*!******************************************************!*\
1125
- !*** ./frontend/src/ts/components/SSOConfigForm.tsx ***!
1126
- \******************************************************/
1127
- /*! no static exports found */
1128
- /***/ (function(module, exports, __webpack_require__) {
1129
-
1130
- "use strict";
1131
-
1132
- Object.defineProperty(exports, "__esModule", { value: true });
1133
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1134
- /* tslint:disable:max-line-length */
1135
- var SSOConfigForm = function (props) { return (React.createElement("form", { name: 'sso', action: '', method: 'POST', onSubmit: props.onSubmitSiteForm },
1136
- React.createElement("table", { className: 'form-table' },
1137
- React.createElement("tbody", null,
1138
- React.createElement("tr", null,
1139
- React.createElement("th", { scope: 'row' },
1140
- React.createElement("label", { htmlFor: 'disqus_sso_enabled' }, "Enable SSO")),
1141
- React.createElement("td", null,
1142
- React.createElement("input", { type: 'checkbox', id: 'disqus_sso_enabled', name: 'disqus_sso_enabled', checked: Boolean(props.data.localAdminOptions.get('disqus_sso_enabled')), onChange: props.onInputChange.bind(null, 'disqus_sso_enabled') }),
1143
- React.createElement("p", { className: 'description' }, "This will enable Single Sign-on for this site, if already enabled for your Disqus organization."))),
1144
- React.createElement("tr", null,
1145
- React.createElement("th", { scope: 'row' },
1146
- React.createElement("label", { htmlFor: 'disqus_sso_button' }, "Custom Login Button")),
1147
- React.createElement("td", null,
1148
- React.createElement("input", { type: 'url', id: 'disqus_sso_button', name: 'disqus_sso_button', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_sso_button') || '', onChange: props.onInputChange.bind(null, 'disqus_sso_button') }),
1149
- React.createElement("p", { className: 'description' },
1150
- "A link to a .png, .gif, or .jpg image to show as a button in Disqus.",
1151
- ' ',
1152
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/236206#sso-login-button', target: '_blank' }, "Learn More")))))),
1153
- React.createElement("p", { className: 'submit' },
1154
- React.createElement("input", { type: 'submit', name: 'submit-application-form', className: 'button button-primary', value: "Save" })))); };
1155
- /* tslint:enable:max-line-length */
1156
- exports.default = SSOConfigForm;
1157
-
1158
-
1159
- /***/ }),
1160
-
1161
- /***/ "./frontend/src/ts/components/SiteConfigForm.tsx":
1162
- /*!*******************************************************!*\
1163
- !*** ./frontend/src/ts/components/SiteConfigForm.tsx ***!
1164
- \*******************************************************/
1165
- /*! no static exports found */
1166
- /***/ (function(module, exports, __webpack_require__) {
1167
-
1168
- "use strict";
1169
-
1170
- Object.defineProperty(exports, "__esModule", { value: true });
1171
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1172
- var getSubmitButton = function (props) {
1173
- return props.data.isSiteFormLocked ? (React.createElement("button", { className: 'button button-link', onClick: props.onToggleState.bind(null, 'isSiteFormLocked') },
1174
- React.createElement("span", { className: 'dashicons dashicons-lock' }),
1175
- ' ',
1176
- "Click to make changes")) : (React.createElement("input", { type: 'submit', name: 'submit-site-form', className: 'button button-primary', value: "Save" }));
1177
- };
1178
- var SiteConfigForm = function (props) { return (React.createElement("form", { name: 'site', action: '', method: 'POST', onSubmit: props.onSubmitSiteForm, autoComplete: 'off' },
1179
- React.createElement("table", { className: 'form-table' },
1180
- React.createElement("tbody", null,
1181
- React.createElement("tr", null,
1182
- React.createElement("th", { scope: 'row' },
1183
- React.createElement("label", { htmlFor: 'disqus_forum_url' },
1184
- "Shortname",
1185
- React.createElement("span", { style: { color: 'red' } }, ' *'))),
1186
- React.createElement("td", null,
1187
- React.createElement("input", { type: 'text', id: 'disqus_forum_url', name: 'disqus_forum_url', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_forum_url') || '', onChange: props.onInputChange.bind(null, 'disqus_forum_url'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1188
- React.createElement("p", { className: 'description' },
1189
- "Your site's unique identifier",
1190
- ' ',
1191
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/466208', target: '_blank' }, "What is this?")))),
1192
- React.createElement("tr", null,
1193
- React.createElement("th", { scope: 'row' },
1194
- React.createElement("label", { htmlFor: 'disqus_public_key' }, "API Public Key")),
1195
- React.createElement("td", null,
1196
- React.createElement("input", { type: 'text', id: 'disqus_public_key', name: 'disqus_public_key', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_public_key') || '', onChange: props.onInputChange.bind(null, 'disqus_public_key'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1197
- React.createElement("p", { className: 'description' }, "The public key of your application (optional)."))),
1198
- React.createElement("tr", null,
1199
- React.createElement("th", { scope: 'row' },
1200
- React.createElement("label", { htmlFor: 'disqus_secret_key' }, "API Secret Key")),
1201
- React.createElement("td", null,
1202
- React.createElement("input", { type: 'text', id: 'disqus_secret_key', name: 'disqus_secret_key', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_secret_key') || '', onChange: props.onInputChange.bind(null, 'disqus_secret_key'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1203
- React.createElement("p", { className: 'description' }, "The secret key of your application (optional)."))),
1204
- React.createElement("tr", null,
1205
- React.createElement("th", { scope: 'row' },
1206
- React.createElement("label", { htmlFor: 'disqus_admin_access_token' }, "API Access Token")),
1207
- React.createElement("td", null,
1208
- React.createElement("input", { type: 'text', id: 'disqus_admin_access_token', name: 'disqus_admin_access_token', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_admin_access_token') || '', onChange: props.onInputChange.bind(null, 'disqus_admin_access_token'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1209
- React.createElement("p", { className: 'description' }, "The admin access token of your application (optional)."))),
1210
- React.createElement("tr", null,
1211
- React.createElement("th", { scope: 'row' },
1212
- React.createElement("label", { htmlFor: 'disqus_sync_token' }, "Site Secret Key")),
1213
- React.createElement("td", null,
1214
- React.createElement("input", { type: 'text', id: 'disqus_sync_token', name: 'disqus_sync_token', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_sync_token') || '', onChange: props.onInputChange.bind(null, 'disqus_sync_token'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1215
- React.createElement("p", { className: 'description' },
1216
- "The secret key for your site which allows Disqus to sync comments.",
1217
- React.createElement("br", null),
1218
- React.createElement("br", null),
1219
- React.createElement("strong", null,
1220
- "Important",
1221
- ":"),
1222
- ' ',
1223
- "If you change this you will need to re-enable syncing to use the new key."))))),
1224
- React.createElement("p", { className: 'submit' }, getSubmitButton(props)))); };
1225
- exports.default = SiteConfigForm;
1226
-
1227
-
1228
- /***/ }),
1229
-
1230
- /***/ "./frontend/src/ts/components/SupportDiagnostics.tsx":
1231
- /*!***********************************************************!*\
1232
- !*** ./frontend/src/ts/components/SupportDiagnostics.tsx ***!
1233
- \***********************************************************/
1234
- /*! no static exports found */
1235
- /***/ (function(module, exports, __webpack_require__) {
1236
-
1237
- "use strict";
1238
-
1239
- Object.defineProperty(exports, "__esModule", { value: true });
1240
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1241
- var DIAGNOSTICS_TEXTAREA_ID = 'diagnostics-textarea';
1242
- var SupportDiagnostics = function (props) { return (React.createElement("div", null,
1243
- React.createElement("div", null,
1244
- React.createElement("textarea", { id: DIAGNOSTICS_TEXTAREA_ID, readOnly: true, style: { minWidth: '320px', minHeight: '200px' }, value: JSON.stringify(props, null, 4) }),
1245
- React.createElement("br", null),
1246
- React.createElement("button", { className: 'button', onClick: props.onCopyText.bind(null, DIAGNOSTICS_TEXTAREA_ID) }, "Copy")))); };
1247
- exports.default = SupportDiagnostics;
1248
-
1249
-
1250
- /***/ }),
1251
-
1252
- /***/ "./frontend/src/ts/components/SupportLinks.tsx":
1253
- /*!*****************************************************!*\
1254
- !*** ./frontend/src/ts/components/SupportLinks.tsx ***!
1255
- \*****************************************************/
1256
- /*! no static exports found */
1257
- /***/ (function(module, exports, __webpack_require__) {
1258
-
1259
- "use strict";
1260
-
1261
- Object.defineProperty(exports, "__esModule", { value: true });
1262
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1263
- var SupportLinks = function () { return (React.createElement("ul", { className: 'dsq-support-list-container' },
1264
- React.createElement("li", { className: 'dsq-support-list-item' },
1265
- React.createElement("div", null,
1266
- React.createElement("a", { href: 'https://help.disqus.com/customer/en/portal/articles/472005', target: '_blank' },
1267
- React.createElement("div", { className: 'dashicons dashicons-lightbulb dsq-icon-support' }),
1268
- "WordPress FAQ"))),
1269
- React.createElement("li", { className: 'dsq-support-list-item' },
1270
- React.createElement("div", null,
1271
- React.createElement("a", { href: 'https://disqus.com/home/channel/discussdisqus/', target: '_blank' },
1272
- React.createElement("div", { className: 'dashicons dashicons-groups dsq-icon-support' }),
1273
- "Community Forum"))),
1274
- React.createElement("li", { className: 'dsq-support-list-item' },
1275
- React.createElement("div", null,
1276
- React.createElement("a", { href: 'http://wp-plugin.disqus.net/', target: '_blank' },
1277
- React.createElement("div", { className: 'dashicons dashicons-email-alt dsq-icon-support' }),
1278
- "Contact Support"))))); };
1279
- exports.default = SupportLinks;
1280
-
1281
-
1282
- /***/ }),
1283
-
1284
- /***/ "./frontend/src/ts/components/SyncConfigForm.tsx":
1285
- /*!*******************************************************!*\
1286
- !*** ./frontend/src/ts/components/SyncConfigForm.tsx ***!
1287
- \*******************************************************/
1288
- /*! no static exports found */
1289
- /***/ (function(module, exports, __webpack_require__) {
1290
-
1291
- "use strict";
1292
-
1293
- Object.defineProperty(exports, "__esModule", { value: true });
1294
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1295
- var getSyncStatus = function (syncStatus) {
1296
- if (!syncStatus.subscribed) {
1297
- return {
1298
- button: "Enable Auto Syncing",
1299
- endpoint: 'sync/enable',
1300
- status: "Not Configured",
1301
- statusIcon: 'play',
1302
- };
1303
- }
1304
- if (syncStatus.requires_update) {
1305
- return {
1306
- button: "Update Auto Syncing",
1307
- endpoint: 'sync/enable',
1308
- status: "Needs Update",
1309
- statusIcon: 'play',
1310
- };
1311
- }
1312
- if (syncStatus.enabled) {
1313
- return {
1314
- button: "Pause Auto Syncing",
1315
- endpoint: 'sync/disable',
1316
- status: "Running",
1317
- statusIcon: 'pause',
1318
- };
1319
- }
1320
- return {
1321
- button: "Enable Auto Syncing",
1322
- endpoint: 'sync/enable',
1323
- status: "Paused",
1324
- statusIcon: 'play',
1325
- };
1326
- };
1327
- var SyncConfigForm = function (props) {
1328
- var syncStatus = getSyncStatus(props.data.syncStatus);
1329
- return (React.createElement("form", { name: syncStatus.endpoint, method: 'POST', onSubmit: props.onSubmitSyncConfigForm },
1330
- React.createElement("p", null,
1331
- React.createElement("span", { className: 'dashicons dashicons-update' }),
1332
- ' ',
1333
- "Auto syncing",
1334
- ':',
1335
- ' ',
1336
- React.createElement("strong", null, syncStatus.status)),
1337
- props.data.syncStatus.last_message ? React.createElement("p", null, props.data.syncStatus.last_message) : null,
1338
- React.createElement("p", { className: 'submit' },
1339
- React.createElement("button", { type: 'submit', className: 'button button-large' },
1340
- React.createElement("span", { className: "dashicons dashicons-controls-" + syncStatus.statusIcon }),
1341
- ' ',
1342
- syncStatus.button)),
1343
- props.data.isManualSyncFormVisible ? null : (React.createElement("p", null,
1344
- React.createElement("button", { type: 'button', className: 'button button-link', onClick: props.onToggleState.bind(null, 'isManualSyncFormVisible') }, "Manually Sync Comments")))));
1345
- };
1346
- exports.default = SyncConfigForm;
1347
-
1348
-
1349
- /***/ }),
1350
-
1351
- /***/ "./frontend/src/ts/components/SyncTokenForm.tsx":
1352
- /*!******************************************************!*\
1353
- !*** ./frontend/src/ts/components/SyncTokenForm.tsx ***!
1354
- \******************************************************/
1355
- /*! no static exports found */
1356
- /***/ (function(module, exports, __webpack_require__) {
1357
-
1358
- "use strict";
1359
-
1360
- Object.defineProperty(exports, "__esModule", { value: true });
1361
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1362
- var SyncTokenForm = function (props) {
1363
- return (React.createElement("form", { name: 'site', action: '', method: 'POST', onSubmit: props.onSubmitSiteForm, autoComplete: 'off' },
1364
- React.createElement("table", { className: 'form-table' },
1365
- React.createElement("tbody", null,
1366
- React.createElement("tr", null,
1367
- React.createElement("th", { scope: 'row' },
1368
- React.createElement("label", { htmlFor: 'disqus_sync_token' }, "Site Secret Key")),
1369
- React.createElement("td", null,
1370
- React.createElement("input", { type: 'text', id: 'disqus_sync_token', name: 'disqus_sync_token', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_sync_token') || '', onChange: props.onInputChange.bind(null, 'disqus_sync_token') }),
1371
- React.createElement("p", { className: 'description' },
1372
- "Enter any combination of letters and numbers, at least 32 characters.",
1373
- React.createElement("br", null),
1374
- React.createElement("a", { href: '#', onClick: props.onGenerateRandomSyncToken }, "Generate a key")))))),
1375
- React.createElement("p", { className: 'submit' },
1376
- React.createElement("input", { type: 'submit', name: 'submit-site-form', className: 'button button-primary', value: "Save" }))));
1377
- };
1378
- exports.default = SyncTokenForm;
1379
-
1380
-
1381
- /***/ }),
1382
-
1383
- /***/ "./frontend/src/ts/components/WelcomePanel.tsx":
1384
- /*!*****************************************************!*\
1385
- !*** ./frontend/src/ts/components/WelcomePanel.tsx ***!
1386
- \*****************************************************/
1387
- /*! no static exports found */
1388
- /***/ (function(module, exports, __webpack_require__) {
1389
-
1390
- "use strict";
1391
-
1392
- Object.defineProperty(exports, "__esModule", { value: true });
1393
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1394
- var utils_1 = __webpack_require__(/*! ../utils */ "./frontend/src/ts/utils.ts");
1395
- var WelcomePanel = function (props) { return (React.createElement("div", { className: 'welcome-panel' },
1396
- React.createElement("div", { className: 'welcome-panel-content' },
1397
- React.createElement("p", { className: 'about-description' }, "Manage Community"),
1398
- React.createElement("div", { className: 'welcome-panel-column-container' },
1399
- React.createElement("div", { className: 'welcome-panel-column' },
1400
- React.createElement("h3", null, "Comments"),
1401
- React.createElement("a", { className: 'button button-primary button-hero', href: utils_1.getForumAdminUrl(props.shortname, 'moderate') }, "Moderate"),
1402
- React.createElement("p", null,
1403
- React.createElement("strong", null, "Manage" + ": "),
1404
- React.createElement("a", { href: utils_1.getForumAdminUrl(props.shortname, 'access/banned'), target: '_blank' }, "Banned users"),
1405
- ' | ',
1406
- React.createElement("a", { href: utils_1.getForumAdminUrl(props.shortname, 'settings/access'), target: '_blank' }, "Restricted words filter"),
1407
- ' | ',
1408
- React.createElement("a", { href: utils_1.getForumAdminUrl(props.shortname, 'settings/moderators'), target: '_blank' }, "Site moderators"))),
1409
- React.createElement("div", { className: 'welcome-panel-column' },
1410
- React.createElement("h3", null, "Analytics"),
1411
- React.createElement("ul", null,
1412
- React.createElement("li", null,
1413
- React.createElement("a", { className: 'welcome-icon dashicons-megaphone', href: utils_1.getForumAdminUrl(props.shortname, 'analytics/comments'), target: '_blank' }, "Engagement")),
1414
- React.createElement("li", null,
1415
- React.createElement("a", { className: 'welcome-icon dashicons-chart-line', href: utils_1.getForumAdminUrl(props.shortname, 'analytics/revenue'), target: '_blank' }, "Revenue")),
1416
- React.createElement("li", null,
1417
- React.createElement("a", { className: 'welcome-icon dashicons-heart', href: utils_1.getForumAdminUrl(props.shortname, 'analytics/content'), target: '_blank' }, "Popular Content")))),
1418
- React.createElement("div", { className: 'welcome-panel-column' },
1419
- React.createElement("h3", null, "Settings"),
1420
- React.createElement("ul", null,
1421
- React.createElement("li", null,
1422
- React.createElement("a", { className: 'welcome-icon dashicons-admin-appearance', href: utils_1.getForumAdminUrl(props.shortname, 'settings/general'), target: '_blank' }, "Identity")),
1423
- React.createElement("li", null,
1424
- React.createElement("a", { className: 'welcome-icon dashicons-format-chat', href: utils_1.getForumAdminUrl(props.shortname, 'settings/community'), target: '_blank' }, "Community Rules")),
1425
- React.createElement("li", null,
1426
- React.createElement("a", { className: 'welcome-icon dashicons-admin-settings', href: utils_1.getForumAdminUrl(props.shortname, 'settings/advanced'), target: '_blank' }, "Advanced")))))))); };
1427
- exports.default = WelcomePanel;
1428
-
1429
-
1430
- /***/ }),
1431
-
1432
- /***/ "./frontend/src/ts/containers/AdvancedConfigContainer.ts":
1433
- /*!***************************************************************!*\
1434
- !*** ./frontend/src/ts/containers/AdvancedConfigContainer.ts ***!
1435
- \***************************************************************/
1436
- /*! no static exports found */
1437
- /***/ (function(module, exports, __webpack_require__) {
1438
-
1439
- "use strict";
1440
-
1441
- Object.defineProperty(exports, "__esModule", { value: true });
1442
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1443
- var AdvancedConfigForm_1 = __webpack_require__(/*! ../components/AdvancedConfigForm */ "./frontend/src/ts/components/AdvancedConfigForm.tsx");
1444
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1445
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1446
- var AdvancedConfigContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(AdvancedConfigForm_1.default);
1447
- exports.default = AdvancedConfigContainer;
1448
-
1449
-
1450
- /***/ }),
1451
-
1452
- /***/ "./frontend/src/ts/containers/ExportCommentsContainer.ts":
1453
- /*!***************************************************************!*\
1454
- !*** ./frontend/src/ts/containers/ExportCommentsContainer.ts ***!
1455
- \***************************************************************/
1456
- /*! no static exports found */
1457
- /***/ (function(module, exports, __webpack_require__) {
1458
-
1459
- "use strict";
1460
-
1461
- Object.defineProperty(exports, "__esModule", { value: true });
1462
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1463
- var ExportComments_1 = __webpack_require__(/*! ../components/ExportComments */ "./frontend/src/ts/components/ExportComments.tsx");
1464
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1465
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1466
- var ExportCommentsContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(ExportComments_1.default);
1467
- exports.default = ExportCommentsContainer;
1468
-
1469
-
1470
- /***/ }),
1471
-
1472
- /***/ "./frontend/src/ts/containers/InstallContainer.ts":
1473
- /*!********************************************************!*\
1474
- !*** ./frontend/src/ts/containers/InstallContainer.ts ***!
1475
- \********************************************************/
1476
- /*! no static exports found */
1477
- /***/ (function(module, exports, __webpack_require__) {
1478
-
1479
- "use strict";
1480
-
1481
- Object.defineProperty(exports, "__esModule", { value: true });
1482
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1483
- var Install_1 = __webpack_require__(/*! ../components/Install */ "./frontend/src/ts/components/Install.tsx");
1484
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1485
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1486
- var InstallContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(Install_1.default);
1487
- exports.default = InstallContainer;
1488
-
1489
-
1490
- /***/ }),
1491
-
1492
- /***/ "./frontend/src/ts/containers/MainContainer.ts":
1493
- /*!*****************************************************!*\
1494
- !*** ./frontend/src/ts/containers/MainContainer.ts ***!
1495
- \*****************************************************/
1496
- /*! no static exports found */
1497
- /***/ (function(module, exports, __webpack_require__) {
1498
-
1499
- "use strict";
1500
-
1501
- Object.defineProperty(exports, "__esModule", { value: true });
1502
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1503
- var Main_1 = __webpack_require__(/*! ../components/Main */ "./frontend/src/ts/components/Main.tsx");
1504
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1505
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1506
- var MainContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(Main_1.default);
1507
- exports.default = MainContainer;
1508
-
1509
-
1510
- /***/ }),
1511
-
1512
- /***/ "./frontend/src/ts/containers/ManualSyncContainer.ts":
1513
- /*!***********************************************************!*\
1514
- !*** ./frontend/src/ts/containers/ManualSyncContainer.ts ***!
1515
- \***********************************************************/
1516
- /*! no static exports found */
1517
- /***/ (function(module, exports, __webpack_require__) {
1518
-
1519
- "use strict";
1520
-
1521
- Object.defineProperty(exports, "__esModule", { value: true });
1522
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1523
- var ManualSyncForm_1 = __webpack_require__(/*! ../components/ManualSyncForm */ "./frontend/src/ts/components/ManualSyncForm.tsx");
1524
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1525
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1526
- var ManualSyncContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(ManualSyncForm_1.default);
1527
- exports.default = ManualSyncContainer;
1528
-
1529
-
1530
- /***/ }),
1531
-
1532
- /***/ "./frontend/src/ts/containers/SSOConfigContainer.ts":
1533
- /*!**********************************************************!*\
1534
- !*** ./frontend/src/ts/containers/SSOConfigContainer.ts ***!
1535
- \**********************************************************/
1536
- /*! no static exports found */
1537
- /***/ (function(module, exports, __webpack_require__) {
1538
-
1539
- "use strict";
1540
-
1541
- Object.defineProperty(exports, "__esModule", { value: true });
1542
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1543
- var SSOConfigForm_1 = __webpack_require__(/*! ../components/SSOConfigForm */ "./frontend/src/ts/components/SSOConfigForm.tsx");
1544
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1545
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1546
- var SSOConfigContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SSOConfigForm_1.default);
1547
- exports.default = SSOConfigContainer;
1548
-
1549
-
1550
- /***/ }),
1551
-
1552
- /***/ "./frontend/src/ts/containers/SiteConfigContainer.ts":
1553
- /*!***********************************************************!*\
1554
- !*** ./frontend/src/ts/containers/SiteConfigContainer.ts ***!
1555
- \***********************************************************/
1556
- /*! no static exports found */
1557
- /***/ (function(module, exports, __webpack_require__) {
1558
-
1559
- "use strict";
1560
-
1561
- Object.defineProperty(exports, "__esModule", { value: true });
1562
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1563
- var SiteConfigForm_1 = __webpack_require__(/*! ../components/SiteConfigForm */ "./frontend/src/ts/components/SiteConfigForm.tsx");
1564
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1565
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1566
- var SiteConfigContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SiteConfigForm_1.default);
1567
- exports.default = SiteConfigContainer;
1568
-
1569
-
1570
- /***/ }),
1571
-
1572
- /***/ "./frontend/src/ts/containers/SupportDiagnosticsContainer.ts":
1573
- /*!*******************************************************************!*\
1574
- !*** ./frontend/src/ts/containers/SupportDiagnosticsContainer.ts ***!
1575
- \*******************************************************************/
1576
- /*! no static exports found */
1577
- /***/ (function(module, exports, __webpack_require__) {
1578
-
1579
- "use strict";
1580
-
1581
- Object.defineProperty(exports, "__esModule", { value: true });
1582
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1583
- var SupportDiagnostics_1 = __webpack_require__(/*! ../components/SupportDiagnostics */ "./frontend/src/ts/components/SupportDiagnostics.tsx");
1584
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1585
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1586
- var SupportDiagnosticsContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SupportDiagnostics_1.default);
1587
- exports.default = SupportDiagnosticsContainer;
1588
-
1589
-
1590
- /***/ }),
1591
-
1592
- /***/ "./frontend/src/ts/containers/SyncConfigContainer.ts":
1593
- /*!***********************************************************!*\
1594
- !*** ./frontend/src/ts/containers/SyncConfigContainer.ts ***!
1595
- \***********************************************************/
1596
- /*! no static exports found */
1597
- /***/ (function(module, exports, __webpack_require__) {
1598
-
1599
- "use strict";
1600
-
1601
- Object.defineProperty(exports, "__esModule", { value: true });
1602
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1603
- var SyncConfigForm_1 = __webpack_require__(/*! ../components/SyncConfigForm */ "./frontend/src/ts/components/SyncConfigForm.tsx");
1604
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1605
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1606
- var SyncConfigContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SyncConfigForm_1.default);
1607
- exports.default = SyncConfigContainer;
1608
-
1609
-
1610
- /***/ }),
1611
-
1612
- /***/ "./frontend/src/ts/containers/SyncTokenContainer.ts":
1613
- /*!**********************************************************!*\
1614
- !*** ./frontend/src/ts/containers/SyncTokenContainer.ts ***!
1615
- \**********************************************************/
1616
- /*! no static exports found */
1617
- /***/ (function(module, exports, __webpack_require__) {
1618
-
1619
- "use strict";
1620
-
1621
- Object.defineProperty(exports, "__esModule", { value: true });
1622
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1623
- var SyncTokenForm_1 = __webpack_require__(/*! ../components/SyncTokenForm */ "./frontend/src/ts/components/SyncTokenForm.tsx");
1624
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1625
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1626
- var SyncTokenContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SyncTokenForm_1.default);
1627
- exports.default = SyncTokenContainer;
1628
-
1629
-
1630
- /***/ }),
1631
-
1632
- /***/ "./frontend/src/ts/containers/mapDispatchToProps.ts":
1633
- /*!**********************************************************!*\
1634
- !*** ./frontend/src/ts/containers/mapDispatchToProps.ts ***!
1635
- \**********************************************************/
1636
- /*! no static exports found */
1637
- /***/ (function(module, exports, __webpack_require__) {
1638
-
1639
- "use strict";
1640
-
1641
- Object.defineProperty(exports, "__esModule", { value: true });
1642
- var moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
1643
- var actions_1 = __webpack_require__(/*! ../actions */ "./frontend/src/ts/actions.ts");
1644
- var DisqusApi_1 = __webpack_require__(/*! ../DisqusApi */ "./frontend/src/ts/DisqusApi.ts");
1645
- var utils_1 = __webpack_require__(/*! ../utils */ "./frontend/src/ts/utils.ts");
1646
- var WordPressCommentExporter_1 = __webpack_require__(/*! ../WordPressCommentExporter */ "./frontend/src/ts/WordPressCommentExporter.ts");
1647
- var WordPressRestApi_1 = __webpack_require__(/*! ../WordPressRestApi */ "./frontend/src/ts/WordPressRestApi.ts");
1648
- var UPDATABLE_FIELDS = [
1649
- 'disqus_forum_url',
1650
- 'disqus_public_key',
1651
- 'disqus_secret_key',
1652
- 'disqus_admin_access_token',
1653
- 'disqus_sso_button',
1654
- 'disqus_sso_enabled',
1655
- 'disqus_sync_token',
1656
- 'disqus_render_js',
1657
- ];
1658
- exports.UPDATABLE_FIELDS = UPDATABLE_FIELDS;
1659
- var valueFromInput = function (element) {
1660
- var isCheckbox = element.type === 'checkbox';
1661
- var value;
1662
- if (isCheckbox)
1663
- value = element.checked ? '1' : '';
1664
- else
1665
- value = element.value;
1666
- return value;
1667
- };
1668
- var mapDispatchToProps = function (dispatch) {
1669
- var handleClearMessage = function (event) {
1670
- dispatch(actions_1.setMessageAction(null));
1671
- };
1672
- return {
1673
- onCopyText: function (elementId) {
1674
- try {
1675
- var element = window.document.getElementById(elementId);
1676
- if (element) {
1677
- element.select();
1678
- window.document.execCommand('copy');
1679
- }
1680
- }
1681
- catch (err) {
1682
- // Continue
1683
- }
1684
- },
1685
- onDateSelectorInputchange: function (key, event) {
1686
- var value = valueFromInput(event.currentTarget);
1687
- dispatch(actions_1.setValueAction(key, value));
1688
- },
1689
- onGenerateRandomSyncToken: function (event) {
1690
- event.preventDefault();
1691
- var newToken = utils_1.createRandomToken();
1692
- dispatch(actions_1.updateLocalOptionAction('disqus_sync_token', newToken));
1693
- },
1694
- onInputChange: function (key, event) {
1695
- var value = valueFromInput(event.currentTarget);
1696
- dispatch(actions_1.updateLocalOptionAction(key, value));
1697
- },
1698
- onSubmitExportCommentsForm: function (event) {
1699
- event.preventDefault();
1700
- var exporter = new WordPressCommentExporter_1.default(dispatch);
1701
- exporter.startExportPosts();
1702
- },
1703
- onSubmitManualSyncForm: function (event) {
1704
- event.preventDefault();
1705
- var rangeStartInput = event.currentTarget.elements.namedItem('manualSyncRangeStart');
1706
- var rangeEndInput = event.currentTarget.elements.namedItem('manualSyncRangeEnd');
1707
- var getDateFromInput = function (input) {
1708
- var dateValue = input && input.value;
1709
- var timestamp = moment(dateValue).endOf('day');
1710
- return timestamp;
1711
- };
1712
- var startDate = getDateFromInput(rangeStartInput);
1713
- var endDate = getDateFromInput(rangeEndInput);
1714
- var syncComments = function (cursor) {
1715
- if (cursor === void 0) { cursor = ''; }
1716
- DisqusApi_1.DisqusApi.instance.listPostsForForum(cursor, startDate, endDate, 100, function (xhr) {
1717
- var disqusData = null;
1718
- try {
1719
- disqusData = JSON.parse(xhr.target.responseText);
1720
- }
1721
- catch (error) {
1722
- // Continue
1723
- }
1724
- if (!disqusData || disqusData.code !== 0) {
1725
- dispatch(actions_1.setMessageAction({
1726
- onDismiss: handleClearMessage,
1727
- text: (disqusData && disqusData.response) || 'Error connecting to the Disqus API',
1728
- type: 'error',
1729
- }));
1730
- return;
1731
- }
1732
- disqusData.response.forEach(function (comment) {
1733
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestPost('sync/comment', {
1734
- object_type: 'post',
1735
- transformed_data: comment,
1736
- verb: 'force_sync',
1737
- }, function (syncResponse) {
1738
- var datestr = moment().format('YYYY-MM-DD h:mm:ss a');
1739
- dispatch(actions_1.updateSyncStatusAction({
1740
- last_message: "Manually synced comment \"" + comment.id + "\" from Disqus: " + datestr,
1741
- }));
1742
- });
1743
- });
1744
- var nextCursor = disqusData.cursor;
1745
- if (nextCursor && nextCursor.hasNext)
1746
- syncComments(nextCursor.next);
1747
- else
1748
- dispatch(actions_1.setValueAction('isManualSyncRunning', false));
1749
- });
1750
- };
1751
- dispatch(actions_1.setValueAction('isManualSyncRunning', true));
1752
- syncComments();
1753
- },
1754
- onSubmitSiteForm: function (event) {
1755
- event.preventDefault();
1756
- var fields = UPDATABLE_FIELDS.reduce(function (previousValue, currentIdKey) {
1757
- if (currentIdKey in event.currentTarget.elements) {
1758
- var currentField = event.currentTarget.elements.namedItem(currentIdKey);
1759
- var currentInputElement = currentField;
1760
- var value = valueFromInput(currentInputElement);
1761
- return Object.assign((_a = {},
1762
- _a[currentInputElement.name] = value,
1763
- _a), previousValue);
1764
- }
1765
- return previousValue;
1766
- var _a;
1767
- }, {});
1768
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestPost('settings', fields, function (response) {
1769
- if (!response)
1770
- return;
1771
- if (response.code !== 'OK') {
1772
- dispatch(actions_1.setMessageAction({
1773
- onDismiss: handleClearMessage,
1774
- text: response.message,
1775
- type: 'error',
1776
- }));
1777
- return;
1778
- }
1779
- dispatch(actions_1.updateAdminOptionsAction(response.data));
1780
- dispatch(actions_1.setMessageAction({
1781
- onDismiss: handleClearMessage,
1782
- text: "Changes saved successfully.",
1783
- type: 'success',
1784
- }));
1785
- dispatch(actions_1.toggleValueAction('isSiteFormLocked'));
1786
- });
1787
- },
1788
- onSubmitSyncConfigForm: function (event) {
1789
- event.preventDefault();
1790
- var endpoint = event.currentTarget.name;
1791
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestPost(endpoint, null, function (response) {
1792
- if (!response)
1793
- return;
1794
- if (response.code !== 'OK') {
1795
- dispatch(actions_1.setMessageAction({
1796
- onDismiss: handleClearMessage,
1797
- text: response.message,
1798
- type: 'error',
1799
- }));
1800
- return;
1801
- }
1802
- dispatch(actions_1.updateSyncStatusAction(response.data));
1803
- dispatch(actions_1.setMessageAction({
1804
- onDismiss: handleClearMessage,
1805
- text: "Changes saved successfully.",
1806
- type: 'success',
1807
- }));
1808
- });
1809
- },
1810
- onToggleState: function (key) {
1811
- dispatch(actions_1.toggleValueAction(key));
1812
- },
1813
- onUpdateInstallationState: function (newState) {
1814
- dispatch(actions_1.changeInstallStateAction(newState));
1815
- },
1816
- };
1817
- };
1818
- exports.default = mapDispatchToProps;
1819
-
1820
-
1821
- /***/ }),
1822
-
1823
- /***/ "./frontend/src/ts/containers/mapStateToProps.ts":
1824
- /*!*******************************************************!*\
1825
- !*** ./frontend/src/ts/containers/mapStateToProps.ts ***!
1826
- \*******************************************************/
1827
- /*! no static exports found */
1828
- /***/ (function(module, exports, __webpack_require__) {
1829
-
1830
- "use strict";
1831
-
1832
- Object.defineProperty(exports, "__esModule", { value: true });
1833
- var mapStateToProps = function (state) {
1834
- return {
1835
- data: state,
1836
- };
1837
- };
1838
- exports.default = mapStateToProps;
1839
-
1840
-
1841
- /***/ }),
1842
-
1843
- /***/ "./frontend/src/ts/index.ts":
1844
- /*!**********************************!*\
1845
- !*** ./frontend/src/ts/index.ts ***!
1846
- \**********************************/
1847
- /*! no static exports found */
1848
- /***/ (function(module, exports, __webpack_require__) {
1849
-
1850
- "use strict";
1851
-
1852
- Object.defineProperty(exports, "__esModule", { value: true });
1853
- __webpack_require__(/*! ./app */ "./frontend/src/ts/app.tsx");
1854
-
1855
-
1856
- /***/ }),
1857
-
1858
- /***/ "./frontend/src/ts/reducers/AdminOptions.ts":
1859
- /*!**************************************************!*\
1860
- !*** ./frontend/src/ts/reducers/AdminOptions.ts ***!
1861
- \**************************************************/
1862
- /*! no static exports found */
1863
- /***/ (function(module, exports, __webpack_require__) {
1864
-
1865
- "use strict";
1866
-
1867
- var __extends = (this && this.__extends) || (function () {
1868
- var extendStatics = Object.setPrototypeOf ||
1869
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1870
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1871
- return function (d, b) {
1872
- extendStatics(d, b);
1873
- function __() { this.constructor = d; }
1874
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1875
- };
1876
- })();
1877
- Object.defineProperty(exports, "__esModule", { value: true });
1878
- var immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js");
1879
- var AdminOptions = /** @class */ (function (_super) {
1880
- __extends(AdminOptions, _super);
1881
- /* tslint:enable:variable-name */
1882
- function AdminOptions(options) {
1883
- return _super.call(this, options) || this;
1884
- }
1885
- AdminOptions.prototype.set = function (key, value) {
1886
- return _super.prototype.set.call(this, key, value);
1887
- };
1888
- AdminOptions.prototype.with = function (values) {
1889
- return this.merge(values);
1890
- };
1891
- return AdminOptions;
1892
- }(immutable_1.Record({
1893
- disqus_admin_access_token: null,
1894
- disqus_forum_url: null,
1895
- disqus_installed: null,
1896
- disqus_public_key: null,
1897
- disqus_render_js: null,
1898
- disqus_secret_key: null,
1899
- disqus_sso_button: null,
1900
- disqus_sso_enabled: null,
1901
- disqus_sync_token: null,
1902
- })));
1903
- exports.default = AdminOptions;
1904
-
1905
-
1906
- /***/ }),
1907
-
1908
- /***/ "./frontend/src/ts/reducers/AdminState.ts":
1909
- /*!************************************************!*\
1910
- !*** ./frontend/src/ts/reducers/AdminState.ts ***!
1911
- \************************************************/
1912
- /*! no static exports found */
1913
- /***/ (function(module, exports, __webpack_require__) {
1914
-
1915
- "use strict";
1916
-
1917
- var __extends = (this && this.__extends) || (function () {
1918
- var extendStatics = Object.setPrototypeOf ||
1919
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1920
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1921
- return function (d, b) {
1922
- extendStatics(d, b);
1923
- function __() { this.constructor = d; }
1924
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1925
- };
1926
- })();
1927
- Object.defineProperty(exports, "__esModule", { value: true });
1928
- var immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js");
1929
- var moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
1930
- var AdminOptions_1 = __webpack_require__(/*! ./AdminOptions */ "./frontend/src/ts/reducers/AdminOptions.ts");
1931
- var SyncStatus_1 = __webpack_require__(/*! ./SyncStatus */ "./frontend/src/ts/reducers/SyncStatus.ts");
1932
- var InstallationState;
1933
- (function (InstallationState) {
1934
- InstallationState[InstallationState["none"] = 0] = "none";
1935
- InstallationState[InstallationState["noAccount"] = 1] = "noAccount";
1936
- InstallationState[InstallationState["hasAccount"] = 2] = "hasAccount";
1937
- InstallationState[InstallationState["noSite"] = 3] = "noSite";
1938
- InstallationState[InstallationState["hasSite"] = 4] = "hasSite";
1939
- InstallationState[InstallationState["installed"] = 5] = "installed";
1940
- InstallationState[InstallationState["reinstallSite"] = 6] = "reinstallSite";
1941
- })(InstallationState = exports.InstallationState || (exports.InstallationState = {}));
1942
- var ExportLogStaus;
1943
- (function (ExportLogStaus) {
1944
- ExportLogStaus[ExportLogStaus["pending"] = 0] = "pending";
1945
- ExportLogStaus[ExportLogStaus["complete"] = 1] = "complete";
1946
- ExportLogStaus[ExportLogStaus["failed"] = 2] = "failed";
1947
- })(ExportLogStaus = exports.ExportLogStaus || (exports.ExportLogStaus = {}));
1948
- var AdminState = /** @class */ (function (_super) {
1949
- __extends(AdminState, _super);
1950
- function AdminState(config) {
1951
- return _super.call(this, {
1952
- adminOptions: new AdminOptions_1.default(),
1953
- config: config,
1954
- exportLogs: immutable_1.Map(),
1955
- localAdminOptions: new AdminOptions_1.default(),
1956
- manualSyncRangeEnd: moment().format('YYYY-MM-DD'),
1957
- manualSyncRangeStart: moment().subtract(7, 'days').format('YYYY-MM-DD'),
1958
- syncStatus: new SyncStatus_1.default(),
1959
- }) || this;
1960
- }
1961
- AdminState.prototype.set = function (key, value) {
1962
- return _super.prototype.set.call(this, key, value);
1963
- };
1964
- AdminState.prototype.with = function (values) {
1965
- return this.merge(values);
1966
- };
1967
- return AdminState;
1968
- }(immutable_1.Record({
1969
- activeTab: null,
1970
- adminOptions: null,
1971
- config: null,
1972
- exportLogs: null,
1973
- installationState: InstallationState.none,
1974
- isExportRunning: false,
1975
- isManualSyncRunning: false,
1976
- isFetchingAdminOptions: false,
1977
- isFetchingSyncStatus: false,
1978
- isManualSyncFormVisible: false,
1979
- isSiteFormLocked: true,
1980
- localAdminOptions: null,
1981
- manualSyncRangeEnd: null,
1982
- manualSyncRangeStart: null,
1983
- message: null,
1984
- syncStatus: null,
1985
- })));
1986
- exports.default = AdminState;
1987
-
1988
-
1989
- /***/ }),
1990
-
1991
- /***/ "./frontend/src/ts/reducers/SyncStatus.ts":
1992
- /*!************************************************!*\
1993
- !*** ./frontend/src/ts/reducers/SyncStatus.ts ***!
1994
- \************************************************/
1995
- /*! no static exports found */
1996
- /***/ (function(module, exports, __webpack_require__) {
1997
-
1998
- "use strict";
1999
-
2000
- var __extends = (this && this.__extends) || (function () {
2001
- var extendStatics = Object.setPrototypeOf ||
2002
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2003
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2004
- return function (d, b) {
2005
- extendStatics(d, b);
2006
- function __() { this.constructor = d; }
2007
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2008
- };
2009
- })();
2010
- Object.defineProperty(exports, "__esModule", { value: true });
2011
- var immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js");
2012
- var SyncStatus = /** @class */ (function (_super) {
2013
- __extends(SyncStatus, _super);
2014
- /* tslint:enable:variable-name */
2015
- function SyncStatus(options) {
2016
- return _super.call(this, options) || this;
2017
- }
2018
- SyncStatus.prototype.set = function (key, value) {
2019
- return _super.prototype.set.call(this, key, value);
2020
- };
2021
- SyncStatus.prototype.with = function (values) {
2022
- return this.merge(values);
2023
- };
2024
- return SyncStatus;
2025
- }(immutable_1.Record({
2026
- enabled: null,
2027
- last_message: null,
2028
- requires_update: null,
2029
- subscribed: null,
2030
- subscription: null,
2031
- })));
2032
- exports.default = SyncStatus;
2033
-
2034
-
2035
- /***/ }),
2036
-
2037
- /***/ "./frontend/src/ts/reducers/adminApp.ts":
2038
- /*!**********************************************!*\
2039
- !*** ./frontend/src/ts/reducers/adminApp.ts ***!
2040
- \**********************************************/
2041
- /*! no static exports found */
2042
- /***/ (function(module, exports, __webpack_require__) {
2043
-
2044
- "use strict";
2045
-
2046
- Object.defineProperty(exports, "__esModule", { value: true });
2047
- var actions = __webpack_require__(/*! ../actions */ "./frontend/src/ts/actions.ts");
2048
- var AdminState_1 = __webpack_require__(/*! ./AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
2049
- var adminConfigData = window.DISQUS_WP;
2050
- var initialState = new AdminState_1.default(adminConfigData);
2051
- var adminApp = function (state, action) {
2052
- if (state === void 0) { state = initialState; }
2053
- switch (action.type) {
2054
- case actions.UPDATE_ADMIN_OPTIONS:
2055
- state = state.with({
2056
- adminOptions: state.adminOptions.with(action.data),
2057
- localAdminOptions: state.localAdminOptions.with(action.data),
2058
- });
2059
- break;
2060
- case actions.UPDATE_SYNC_STATUS:
2061
- state = state.with({
2062
- syncStatus: state.syncStatus.with(action.data),
2063
- });
2064
- break;
2065
- case actions.SET_MESSAGE:
2066
- state = state.set('message', action.data);
2067
- break;
2068
- case actions.SET_VALUE:
2069
- state = state.with(action.data);
2070
- break;
2071
- case actions.TOGGLE_VALUE:
2072
- var currentValue = state.get(action.data, false);
2073
- state = state.with((_a = {},
2074
- _a[action.data] = !currentValue,
2075
- _a));
2076
- break;
2077
- case actions.UPDATE_LOCAL_OPTION:
2078
- state = state.with({
2079
- localAdminOptions: state.localAdminOptions.with(action.data),
2080
- });
2081
- break;
2082
- case actions.CHANGE_INSTALL_STATE:
2083
- state = state.with({
2084
- installationState: action.data,
2085
- });
2086
- break;
2087
- case actions.CHANGE_TAB_STATE:
2088
- state = state.with({
2089
- activeTab: action.data,
2090
- installationState: state.adminOptions.disqus_installed ?
2091
- AdminState_1.InstallationState.installed :
2092
- AdminState_1.InstallationState.none,
2093
- });
2094
- break;
2095
- case actions.UPDATE_EXPORT_POST_LOG:
2096
- var newLogs = state.exportLogs.set(action.data.id, action.data);
2097
- state = state.with({
2098
- exportLogs: newLogs,
2099
- isExportRunning: Boolean(newLogs.find(function (value, key) {
2100
- return value.status === AdminState_1.ExportLogStaus.pending;
2101
- })),
2102
- });
2103
- break;
2104
- default:
2105
- break;
2106
- }
2107
- return state;
2108
- var _a;
2109
- };
2110
- exports.default = adminApp;
2111
-
2112
-
2113
- /***/ }),
2114
-
2115
- /***/ "./frontend/src/ts/utils.ts":
2116
- /*!**********************************!*\
2117
- !*** ./frontend/src/ts/utils.ts ***!
2118
- \**********************************/
2119
- /*! no static exports found */
2120
- /***/ (function(module, exports, __webpack_require__) {
2121
-
2122
- "use strict";
2123
-
2124
- Object.defineProperty(exports, "__esModule", { value: true });
2125
- function getWordpressAdminUrl(name) {
2126
- return window.DISQUS_WP.adminUrls[name];
2127
- }
2128
- exports.getWordpressAdminUrl = getWordpressAdminUrl;
2129
- function getForumAdminUrl(shortname, path) {
2130
- return "https://" + shortname + ".disqus.com/admin/" + path + "/";
2131
- }
2132
- exports.getForumAdminUrl = getForumAdminUrl;
2133
- function createRandomToken(length) {
2134
- if (length === void 0) { length = 32; }
2135
- var token = '';
2136
- var possibleChars = 'abcdefghijklmnopqrstuvwxyz0123456789';
2137
- for (var i = 0; i < length; i++)
2138
- token += possibleChars.charAt(Math.floor(Math.random() * possibleChars.length));
2139
- return token;
2140
- }
2141
- exports.createRandomToken = createRandomToken;
2142
-
2143
-
2144
- /***/ }),
2145
-
2146
- /***/ "./node_modules/fbjs/lib/EventListener.js":
2147
- /*!************************************************!*\
2148
- !*** ./node_modules/fbjs/lib/EventListener.js ***!
2149
- \************************************************/
2150
- /*! no static exports found */
2151
- /***/ (function(module, exports, __webpack_require__) {
2152
-
2153
- "use strict";
2154
-
2155
-
2156
- /**
2157
- * Copyright (c) 2013-present, Facebook, Inc.
2158
- *
2159
- * This source code is licensed under the MIT license found in the
2160
- * LICENSE file in the root directory of this source tree.
2161
- *
2162
- * @typechecks
2163
- */
2164
-
2165
- var emptyFunction = __webpack_require__(/*! ./emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");
2166
-
2167
- /**
2168
- * Upstream version of event listener. Does not take into account specific
2169
- * nature of platform.
2170
- */
2171
- var EventListener = {
2172
- /**
2173
- * Listen to DOM events during the bubble phase.
2174
- *
2175
- * @param {DOMEventTarget} target DOM element to register listener on.
2176
- * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
2177
- * @param {function} callback Callback function.
2178
- * @return {object} Object with a `remove` method.
2179
- */
2180
- listen: function listen(target, eventType, callback) {
2181
- if (target.addEventListener) {
2182
- target.addEventListener(eventType, callback, false);
2183
- return {
2184
- remove: function remove() {
2185
- target.removeEventListener(eventType, callback, false);
2186
- }
2187
- };
2188
- } else if (target.attachEvent) {
2189
- target.attachEvent('on' + eventType, callback);
2190
- return {
2191
- remove: function remove() {
2192
- target.detachEvent('on' + eventType, callback);
2193
- }
2194
- };
2195
- }
2196
- },
2197
-
2198
- /**
2199
- * Listen to DOM events during the capture phase.
2200
- *
2201
- * @param {DOMEventTarget} target DOM element to register listener on.
2202
- * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
2203
- * @param {function} callback Callback function.
2204
- * @return {object} Object with a `remove` method.
2205
- */
2206
- capture: function capture(target, eventType, callback) {
2207
- if (target.addEventListener) {
2208
- target.addEventListener(eventType, callback, true);
2209
- return {
2210
- remove: function remove() {
2211
- target.removeEventListener(eventType, callback, true);
2212
- }
2213
- };
2214
- } else {
2215
- if (true) {
2216
- console.error('Attempted to listen to events during the capture phase on a ' + 'browser that does not support the capture phase. Your application ' + 'will not receive some events.');
2217
- }
2218
- return {
2219
- remove: emptyFunction
2220
- };
2221
- }
2222
- },
2223
-
2224
- registerDefault: function registerDefault() {}
2225
- };
2226
-
2227
- module.exports = EventListener;
2228
-
2229
- /***/ }),
2230
-
2231
- /***/ "./node_modules/fbjs/lib/ExecutionEnvironment.js":
2232
- /*!*******************************************************!*\
2233
- !*** ./node_modules/fbjs/lib/ExecutionEnvironment.js ***!
2234
- \*******************************************************/
2235
- /*! no static exports found */
2236
- /***/ (function(module, exports, __webpack_require__) {
2237
-
2238
- "use strict";
2239
- /**
2240
- * Copyright (c) 2013-present, Facebook, Inc.
2241
- *
2242
- * This source code is licensed under the MIT license found in the
2243
- * LICENSE file in the root directory of this source tree.
2244
- *
2245
- */
2246
-
2247
-
2248
-
2249
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
2250
-
2251
- /**
2252
- * Simple, lightweight module assisting with the detection and context of
2253
- * Worker. Helps avoid circular dependencies and allows code to reason about
2254
- * whether or not they are in a Worker, even if they never include the main
2255
- * `ReactWorker` dependency.
2256
- */
2257
- var ExecutionEnvironment = {
2258
-
2259
- canUseDOM: canUseDOM,
2260
-
2261
- canUseWorkers: typeof Worker !== 'undefined',
2262
-
2263
- canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
2264
-
2265
- canUseViewport: canUseDOM && !!window.screen,
2266
-
2267
- isInWorker: !canUseDOM // For now, this is true - might change in the future.
2268
-
2269
- };
2270
-
2271
- module.exports = ExecutionEnvironment;
2272
-
2273
- /***/ }),
2274
-
2275
- /***/ "./node_modules/fbjs/lib/camelize.js":
2276
- /*!*******************************************!*\
2277
- !*** ./node_modules/fbjs/lib/camelize.js ***!
2278
- \*******************************************/
2279
- /*! no static exports found */
2280
- /***/ (function(module, exports, __webpack_require__) {
2281
-
2282
- "use strict";
2283
-
2284
-
2285
- /**
2286
- * Copyright (c) 2013-present, Facebook, Inc.
2287
- *
2288
- * This source code is licensed under the MIT license found in the
2289
- * LICENSE file in the root directory of this source tree.
2290
- *
2291
- * @typechecks
2292
- */
2293
-
2294
- var _hyphenPattern = /-(.)/g;
2295
-
2296
- /**
2297
- * Camelcases a hyphenated string, for example:
2298
- *
2299
- * > camelize('background-color')
2300
- * < "backgroundColor"
2301
- *
2302
- * @param {string} string
2303
- * @return {string}
2304
- */
2305
- function camelize(string) {
2306
- return string.replace(_hyphenPattern, function (_, character) {
2307
- return character.toUpperCase();
2308
- });
2309
- }
2310
-
2311
- module.exports = camelize;
2312
-
2313
- /***/ }),
2314
-
2315
- /***/ "./node_modules/fbjs/lib/camelizeStyleName.js":
2316
- /*!****************************************************!*\
2317
- !*** ./node_modules/fbjs/lib/camelizeStyleName.js ***!
2318
- \****************************************************/
2319
- /*! no static exports found */
2320
- /***/ (function(module, exports, __webpack_require__) {
2321
-
2322
- "use strict";
2323
- /**
2324
- * Copyright (c) 2013-present, Facebook, Inc.
2325
- *
2326
- * This source code is licensed under the MIT license found in the
2327
- * LICENSE file in the root directory of this source tree.
2328
- *
2329
- * @typechecks
2330
- */
2331
-
2332
-
2333
-
2334
- var camelize = __webpack_require__(/*! ./camelize */ "./node_modules/fbjs/lib/camelize.js");
2335
-
2336
- var msPattern = /^-ms-/;
2337
-
2338
- /**
2339
- * Camelcases a hyphenated CSS property name, for example:
2340
- *
2341
- * > camelizeStyleName('background-color')
2342
- * < "backgroundColor"
2343
- * > camelizeStyleName('-moz-transition')
2344
- * < "MozTransition"
2345
- * > camelizeStyleName('-ms-transition')
2346
- * < "msTransition"
2347
- *
2348
- * As Andi Smith suggests
2349
- * (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
2350
- * is converted to lowercase `ms`.
2351
- *
2352
- * @param {string} string
2353
- * @return {string}
2354
- */
2355
- function camelizeStyleName(string) {
2356
- return camelize(string.replace(msPattern, 'ms-'));
2357
- }
2358
-
2359
- module.exports = camelizeStyleName;
2360
-
2361
- /***/ }),
2362
-
2363
- /***/ "./node_modules/fbjs/lib/containsNode.js":
2364
- /*!***********************************************!*\
2365
- !*** ./node_modules/fbjs/lib/containsNode.js ***!
2366
- \***********************************************/
2367
- /*! no static exports found */
2368
- /***/ (function(module, exports, __webpack_require__) {
2369
-
2370
- "use strict";
2371
-
2372
-
2373
- /**
2374
- * Copyright (c) 2013-present, Facebook, Inc.
2375
- *
2376
- * This source code is licensed under the MIT license found in the
2377
- * LICENSE file in the root directory of this source tree.
2378
- *
2379
- *
2380
- */
2381
-
2382
- var isTextNode = __webpack_require__(/*! ./isTextNode */ "./node_modules/fbjs/lib/isTextNode.js");
2383
-
2384
- /*eslint-disable no-bitwise */
2385
-
2386
- /**
2387
- * Checks if a given DOM node contains or is another DOM node.
2388
- */
2389
- function containsNode(outerNode, innerNode) {
2390
- if (!outerNode || !innerNode) {
2391
- return false;
2392
- } else if (outerNode === innerNode) {
2393
- return true;
2394
- } else if (isTextNode(outerNode)) {
2395
- return false;
2396
- } else if (isTextNode(innerNode)) {
2397
- return containsNode(outerNode, innerNode.parentNode);
2398
- } else if ('contains' in outerNode) {
2399
- return outerNode.contains(innerNode);
2400
- } else if (outerNode.compareDocumentPosition) {
2401
- return !!(outerNode.compareDocumentPosition(innerNode) & 16);
2402
- } else {
2403
- return false;
2404
- }
2405
- }
2406
-
2407
- module.exports = containsNode;
2408
-
2409
- /***/ }),
2410
-
2411
- /***/ "./node_modules/fbjs/lib/emptyFunction.js":
2412
- /*!************************************************!*\
2413
- !*** ./node_modules/fbjs/lib/emptyFunction.js ***!
2414
- \************************************************/
2415
- /*! no static exports found */
2416
- /***/ (function(module, exports, __webpack_require__) {
2417
-
2418
- "use strict";
2419
-
2420
-
2421
- /**
2422
- * Copyright (c) 2013-present, Facebook, Inc.
2423
- *
2424
- * This source code is licensed under the MIT license found in the
2425
- * LICENSE file in the root directory of this source tree.
2426
- *
2427
- *
2428
- */
2429
-
2430
- function makeEmptyFunction(arg) {
2431
- return function () {
2432
- return arg;
2433
- };
2434
- }
2435
-
2436
- /**
2437
- * This function accepts and discards inputs; it has no side effects. This is
2438
- * primarily useful idiomatically for overridable function endpoints which
2439
- * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
2440
- */
2441
- var emptyFunction = function emptyFunction() {};
2442
-
2443
- emptyFunction.thatReturns = makeEmptyFunction;
2444
- emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
2445
- emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
2446
- emptyFunction.thatReturnsNull = makeEmptyFunction(null);
2447
- emptyFunction.thatReturnsThis = function () {
2448
- return this;
2449
- };
2450
- emptyFunction.thatReturnsArgument = function (arg) {
2451
- return arg;
2452
- };
2453
-
2454
- module.exports = emptyFunction;
2455
-
2456
- /***/ }),
2457
-
2458
- /***/ "./node_modules/fbjs/lib/emptyObject.js":
2459
- /*!**********************************************!*\
2460
- !*** ./node_modules/fbjs/lib/emptyObject.js ***!
2461
- \**********************************************/
2462
- /*! no static exports found */
2463
- /***/ (function(module, exports, __webpack_require__) {
2464
-
2465
- "use strict";
2466
- /**
2467
- * Copyright (c) 2013-present, Facebook, Inc.
2468
- *
2469
- * This source code is licensed under the MIT license found in the
2470
- * LICENSE file in the root directory of this source tree.
2471
- *
2472
- */
2473
-
2474
-
2475
-
2476
- var emptyObject = {};
2477
-
2478
- if (true) {
2479
- Object.freeze(emptyObject);
2480
- }
2481
-
2482
- module.exports = emptyObject;
2483
-
2484
- /***/ }),
2485
-
2486
- /***/ "./node_modules/fbjs/lib/focusNode.js":
2487
- /*!********************************************!*\
2488
- !*** ./node_modules/fbjs/lib/focusNode.js ***!
2489
- \********************************************/
2490
- /*! no static exports found */
2491
- /***/ (function(module, exports, __webpack_require__) {
2492
-
2493
- "use strict";
2494
- /**
2495
- * Copyright (c) 2013-present, Facebook, Inc.
2496
- *
2497
- * This source code is licensed under the MIT license found in the
2498
- * LICENSE file in the root directory of this source tree.
2499
- *
2500
- */
2501
-
2502
-
2503
-
2504
- /**
2505
- * @param {DOMElement} node input/textarea to focus
2506
- */
2507
-
2508
- function focusNode(node) {
2509
- // IE8 can throw "Can't move focus to the control because it is invisible,
2510
- // not enabled, or of a type that does not accept the focus." for all kinds of
2511
- // reasons that are too expensive and fragile to test.
2512
- try {
2513
- node.focus();
2514
- } catch (e) {}
2515
- }
2516
-
2517
- module.exports = focusNode;
2518
-
2519
- /***/ }),
2520
-
2521
- /***/ "./node_modules/fbjs/lib/getActiveElement.js":
2522
- /*!***************************************************!*\
2523
- !*** ./node_modules/fbjs/lib/getActiveElement.js ***!
2524
- \***************************************************/
2525
- /*! no static exports found */
2526
- /***/ (function(module, exports, __webpack_require__) {
2527
-
2528
- "use strict";
2529
-
2530
-
2531
- /**
2532
- * Copyright (c) 2013-present, Facebook, Inc.
2533
- *
2534
- * This source code is licensed under the MIT license found in the
2535
- * LICENSE file in the root directory of this source tree.
2536
- *
2537
- * @typechecks
2538
- */
2539
-
2540
- /* eslint-disable fb-www/typeof-undefined */
2541
-
2542
- /**
2543
- * Same as document.activeElement but wraps in a try-catch block. In IE it is
2544
- * not safe to call document.activeElement if there is nothing focused.
2545
- *
2546
- * The activeElement will be null only if the document or document body is not
2547
- * yet defined.
2548
- *
2549
- * @param {?DOMDocument} doc Defaults to current document.
2550
- * @return {?DOMElement}
2551
- */
2552
- function getActiveElement(doc) /*?DOMElement*/{
2553
- doc = doc || (typeof document !== 'undefined' ? document : undefined);
2554
- if (typeof doc === 'undefined') {
2555
- return null;
2556
- }
2557
- try {
2558
- return doc.activeElement || doc.body;
2559
- } catch (e) {
2560
- return doc.body;
2561
- }
2562
- }
2563
-
2564
- module.exports = getActiveElement;
2565
-
2566
- /***/ }),
2567
-
2568
- /***/ "./node_modules/fbjs/lib/hyphenate.js":
2569
- /*!********************************************!*\
2570
- !*** ./node_modules/fbjs/lib/hyphenate.js ***!
2571
- \********************************************/
2572
- /*! no static exports found */
2573
- /***/ (function(module, exports, __webpack_require__) {
2574
-
2575
- "use strict";
2576
-
2577
-
2578
- /**
2579
- * Copyright (c) 2013-present, Facebook, Inc.
2580
- *
2581
- * This source code is licensed under the MIT license found in the
2582
- * LICENSE file in the root directory of this source tree.
2583
- *
2584
- * @typechecks
2585
- */
2586
-
2587
- var _uppercasePattern = /([A-Z])/g;
2588
-
2589
- /**
2590
- * Hyphenates a camelcased string, for example:
2591
- *
2592
- * > hyphenate('backgroundColor')
2593
- * < "background-color"
2594
- *
2595
- * For CSS style names, use `hyphenateStyleName` instead which works properly
2596
- * with all vendor prefixes, including `ms`.
2597
- *
2598
- * @param {string} string
2599
- * @return {string}
2600
- */
2601
- function hyphenate(string) {
2602
- return string.replace(_uppercasePattern, '-$1').toLowerCase();
2603
- }
2604
-
2605
- module.exports = hyphenate;
2606
-
2607
- /***/ }),
2608
-
2609
- /***/ "./node_modules/fbjs/lib/hyphenateStyleName.js":
2610
- /*!*****************************************************!*\
2611
- !*** ./node_modules/fbjs/lib/hyphenateStyleName.js ***!
2612
- \*****************************************************/
2613
- /*! no static exports found */
2614
- /***/ (function(module, exports, __webpack_require__) {
2615
-
2616
- "use strict";
2617
- /**
2618
- * Copyright (c) 2013-present, Facebook, Inc.
2619
- *
2620
- * This source code is licensed under the MIT license found in the
2621
- * LICENSE file in the root directory of this source tree.
2622
- *
2623
- * @typechecks
2624
- */
2625
-
2626
-
2627
-
2628
- var hyphenate = __webpack_require__(/*! ./hyphenate */ "./node_modules/fbjs/lib/hyphenate.js");
2629
-
2630
- var msPattern = /^ms-/;
2631
-
2632
- /**
2633
- * Hyphenates a camelcased CSS property name, for example:
2634
- *
2635
- * > hyphenateStyleName('backgroundColor')
2636
- * < "background-color"
2637
- * > hyphenateStyleName('MozTransition')
2638
- * < "-moz-transition"
2639
- * > hyphenateStyleName('msTransition')
2640
- * < "-ms-transition"
2641
- *
2642
- * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
2643
- * is converted to `-ms-`.
2644
- *
2645
- * @param {string} string
2646
- * @return {string}
2647
- */
2648
- function hyphenateStyleName(string) {
2649
- return hyphenate(string).replace(msPattern, '-ms-');
2650
- }
2651
-
2652
- module.exports = hyphenateStyleName;
2653
-
2654
- /***/ }),
2655
-
2656
- /***/ "./node_modules/fbjs/lib/invariant.js":
2657
- /*!********************************************!*\
2658
- !*** ./node_modules/fbjs/lib/invariant.js ***!
2659
- \********************************************/
2660
- /*! no static exports found */
2661
- /***/ (function(module, exports, __webpack_require__) {
2662
-
2663
- "use strict";
2664
- /**
2665
- * Copyright (c) 2013-present, Facebook, Inc.
2666
- *
2667
- * This source code is licensed under the MIT license found in the
2668
- * LICENSE file in the root directory of this source tree.
2669
- *
2670
- */
2671
-
2672
-
2673
-
2674
- /**
2675
- * Use invariant() to assert state which your program assumes to be true.
2676
- *
2677
- * Provide sprintf-style format (only %s is supported) and arguments
2678
- * to provide information about what broke and what you were
2679
- * expecting.
2680
- *
2681
- * The invariant message will be stripped in production, but the invariant
2682
- * will remain to ensure logic does not differ in production.
2683
- */
2684
-
2685
- var validateFormat = function validateFormat(format) {};
2686
-
2687
- if (true) {
2688
- validateFormat = function validateFormat(format) {
2689
- if (format === undefined) {
2690
- throw new Error('invariant requires an error message argument');
2691
- }
2692
- };
2693
- }
2694
-
2695
- function invariant(condition, format, a, b, c, d, e, f) {
2696
- validateFormat(format);
2697
-
2698
- if (!condition) {
2699
- var error;
2700
- if (format === undefined) {
2701
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
2702
- } else {
2703
- var args = [a, b, c, d, e, f];
2704
- var argIndex = 0;
2705
- error = new Error(format.replace(/%s/g, function () {
2706
- return args[argIndex++];
2707
- }));
2708
- error.name = 'Invariant Violation';
2709
- }
2710
-
2711
- error.framesToPop = 1; // we don't care about invariant's own frame
2712
- throw error;
2713
- }
2714
- }
2715
-
2716
- module.exports = invariant;
2717
-
2718
- /***/ }),
2719
-
2720
- /***/ "./node_modules/fbjs/lib/isNode.js":
2721
- /*!*****************************************!*\
2722
- !*** ./node_modules/fbjs/lib/isNode.js ***!
2723
- \*****************************************/
2724
- /*! no static exports found */
2725
- /***/ (function(module, exports, __webpack_require__) {
2726
-
2727
- "use strict";
2728
-
2729
-
2730
- /**
2731
- * Copyright (c) 2013-present, Facebook, Inc.
2732
- *
2733
- * This source code is licensed under the MIT license found in the
2734
- * LICENSE file in the root directory of this source tree.
2735
- *
2736
- * @typechecks
2737
- */
2738
-
2739
- /**
2740
- * @param {*} object The object to check.
2741
- * @return {boolean} Whether or not the object is a DOM node.
2742
- */
2743
- function isNode(object) {
2744
- var doc = object ? object.ownerDocument || object : document;
2745
- var defaultView = doc.defaultView || window;
2746
- return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
2747
- }
2748
-
2749
- module.exports = isNode;
2750
-
2751
- /***/ }),
2752
-
2753
- /***/ "./node_modules/fbjs/lib/isTextNode.js":
2754
- /*!*********************************************!*\
2755
- !*** ./node_modules/fbjs/lib/isTextNode.js ***!
2756
- \*********************************************/
2757
- /*! no static exports found */
2758
- /***/ (function(module, exports, __webpack_require__) {
2759
-
2760
- "use strict";
2761
-
2762
-
2763
- /**
2764
- * Copyright (c) 2013-present, Facebook, Inc.
2765
- *
2766
- * This source code is licensed under the MIT license found in the
2767
- * LICENSE file in the root directory of this source tree.
2768
- *
2769
- * @typechecks
2770
- */
2771
-
2772
- var isNode = __webpack_require__(/*! ./isNode */ "./node_modules/fbjs/lib/isNode.js");
2773
-
2774
- /**
2775
- * @param {*} object The object to check.
2776
- * @return {boolean} Whether or not the object is a DOM text node.
2777
- */
2778
- function isTextNode(object) {
2779
- return isNode(object) && object.nodeType == 3;
2780
- }
2781
-
2782
- module.exports = isTextNode;
2783
-
2784
- /***/ }),
2785
-
2786
- /***/ "./node_modules/fbjs/lib/shallowEqual.js":
2787
- /*!***********************************************!*\
2788
- !*** ./node_modules/fbjs/lib/shallowEqual.js ***!
2789
- \***********************************************/
2790
- /*! no static exports found */
2791
- /***/ (function(module, exports, __webpack_require__) {
2792
-
2793
- "use strict";
2794
- /**
2795
- * Copyright (c) 2013-present, Facebook, Inc.
2796
- *
2797
- * This source code is licensed under the MIT license found in the
2798
- * LICENSE file in the root directory of this source tree.
2799
- *
2800
- * @typechecks
2801
- *
2802
- */
2803
-
2804
- /*eslint-disable no-self-compare */
2805
-
2806
-
2807
-
2808
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2809
-
2810
- /**
2811
- * inlined Object.is polyfill to avoid requiring consumers ship their own
2812
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
2813
- */
2814
- function is(x, y) {
2815
- // SameValue algorithm
2816
- if (x === y) {
2817
- // Steps 1-5, 7-10
2818
- // Steps 6.b-6.e: +0 != -0
2819
- // Added the nonzero y check to make Flow happy, but it is redundant
2820
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
2821
- } else {
2822
- // Step 6.a: NaN == NaN
2823
- return x !== x && y !== y;
2824
- }
2825
- }
2826
-
2827
- /**
2828
- * Performs equality by iterating through keys on an object and returning false
2829
- * when any key has values which are not strictly equal between the arguments.
2830
- * Returns true when the values of all keys are strictly equal.
2831
- */
2832
- function shallowEqual(objA, objB) {
2833
- if (is(objA, objB)) {
2834
- return true;
2835
- }
2836
-
2837
- if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
2838
- return false;
2839
- }
2840
-
2841
- var keysA = Object.keys(objA);
2842
- var keysB = Object.keys(objB);
2843
-
2844
- if (keysA.length !== keysB.length) {
2845
- return false;
2846
- }
2847
-
2848
- // Test for A's keys different from B.
2849
- for (var i = 0; i < keysA.length; i++) {
2850
- if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
2851
- return false;
2852
- }
2853
- }
2854
-
2855
- return true;
2856
- }
2857
-
2858
- module.exports = shallowEqual;
2859
-
2860
- /***/ }),
2861
-
2862
- /***/ "./node_modules/fbjs/lib/warning.js":
2863
- /*!******************************************!*\
2864
- !*** ./node_modules/fbjs/lib/warning.js ***!
2865
- \******************************************/
2866
- /*! no static exports found */
2867
- /***/ (function(module, exports, __webpack_require__) {
2868
-
2869
- "use strict";
2870
- /**
2871
- * Copyright (c) 2014-present, Facebook, Inc.
2872
- *
2873
- * This source code is licensed under the MIT license found in the
2874
- * LICENSE file in the root directory of this source tree.
2875
- *
2876
- */
2877
-
2878
-
2879
-
2880
- var emptyFunction = __webpack_require__(/*! ./emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");
2881
-
2882
- /**
2883
- * Similar to invariant but only logs a warning if the condition is not met.
2884
- * This can be used to log issues in development environments in critical
2885
- * paths. Removing the logging code for production environments will keep the
2886
- * same logic and follow the same code paths.
2887
- */
2888
-
2889
- var warning = emptyFunction;
2890
-
2891
- if (true) {
2892
- var printWarning = function printWarning(format) {
2893
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2894
- args[_key - 1] = arguments[_key];
2895
- }
2896
-
2897
- var argIndex = 0;
2898
- var message = 'Warning: ' + format.replace(/%s/g, function () {
2899
- return args[argIndex++];
2900
- });
2901
- if (typeof console !== 'undefined') {
2902
- console.error(message);
2903
- }
2904
- try {
2905
- // --- Welcome to debugging React ---
2906
- // This error was thrown as a convenience so that you can use this stack
2907
- // to find the callsite that caused this warning to fire.
2908
- throw new Error(message);
2909
- } catch (x) {}
2910
- };
2911
-
2912
- warning = function warning(condition, format) {
2913
- if (format === undefined) {
2914
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
2915
- }
2916
-
2917
- if (format.indexOf('Failed Composite propType: ') === 0) {
2918
- return; // Ignore CompositeComponent proptype check.
2919
- }
2920
-
2921
- if (!condition) {
2922
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
2923
- args[_key2 - 2] = arguments[_key2];
2924
- }
2925
-
2926
- printWarning.apply(undefined, [format].concat(args));
2927
- }
2928
- };
2929
- }
2930
-
2931
- module.exports = warning;
2932
-
2933
- /***/ }),
2934
-
2935
- /***/ "./node_modules/hoist-non-react-statics/index.js":
2936
- /*!*******************************************************!*\
2937
- !*** ./node_modules/hoist-non-react-statics/index.js ***!
2938
- \*******************************************************/
2939
- /*! no static exports found */
2940
- /***/ (function(module, exports, __webpack_require__) {
2941
-
2942
- /**
2943
- * Copyright 2015, Yahoo! Inc.
2944
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
2945
- */
2946
- (function (global, factory) {
2947
- true ? module.exports = factory() :
2948
- undefined;
2949
- }(this, (function () {
2950
- 'use strict';
2951
-
2952
- var REACT_STATICS = {
2953
- childContextTypes: true,
2954
- contextTypes: true,
2955
- defaultProps: true,
2956
- displayName: true,
2957
- getDefaultProps: true,
2958
- getDerivedStateFromProps: true,
2959
- mixins: true,
2960
- propTypes: true,
2961
- type: true
2962
- };
2963
-
2964
- var KNOWN_STATICS = {
2965
- name: true,
2966
- length: true,
2967
- prototype: true,
2968
- caller: true,
2969
- callee: true,
2970
- arguments: true,
2971
- arity: true
2972
- };
2973
-
2974
- var defineProperty = Object.defineProperty;
2975
- var getOwnPropertyNames = Object.getOwnPropertyNames;
2976
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2977
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2978
- var getPrototypeOf = Object.getPrototypeOf;
2979
- var objectPrototype = getPrototypeOf && getPrototypeOf(Object);
2980
-
2981
- return function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
2982
- if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components
2983
-
2984
- if (objectPrototype) {
2985
- var inheritedComponent = getPrototypeOf(sourceComponent);
2986
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
2987
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
2988
- }
2989
- }
2990
-
2991
- var keys = getOwnPropertyNames(sourceComponent);
2992
-
2993
- if (getOwnPropertySymbols) {
2994
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
2995
- }
2996
-
2997
- for (var i = 0; i < keys.length; ++i) {
2998
- var key = keys[i];
2999
- if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
3000
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
3001
- try { // Avoid failures from read-only properties
3002
- defineProperty(targetComponent, key, descriptor);
3003
- } catch (e) {}
3004
- }
3005
- }
3006
-
3007
- return targetComponent;
3008
- }
3009
-
3010
- return targetComponent;
3011
- };
3012
- })));
3013
-
3014
-
3015
- /***/ }),
3016
-
3017
- /***/ "./node_modules/immutable/dist/immutable.js":
3018
- /*!**************************************************!*\
3019
- !*** ./node_modules/immutable/dist/immutable.js ***!
3020
- \**************************************************/
3021
- /*! no static exports found */
3022
- /***/ (function(module, exports, __webpack_require__) {
3023
-
3024
- /**
3025
- * Copyright (c) 2014-present, Facebook, Inc.
3026
- *
3027
- * This source code is licensed under the MIT license found in the
3028
- * LICENSE file in the root directory of this source tree.
3029
- */
3030
-
3031
- (function (global, factory) {
3032
- true ? module.exports = factory() :
3033
- undefined;
3034
- }(this, function () { 'use strict';var SLICE$0 = Array.prototype.slice;
3035
-
3036
- function createClass(ctor, superClass) {
3037
- if (superClass) {
3038
- ctor.prototype = Object.create(superClass.prototype);
3039
- }
3040
- ctor.prototype.constructor = ctor;
3041
- }
3042
-
3043
- function Iterable(value) {
3044
- return isIterable(value) ? value : Seq(value);
3045
- }
3046
-
3047
-
3048
- createClass(KeyedIterable, Iterable);
3049
- function KeyedIterable(value) {
3050
- return isKeyed(value) ? value : KeyedSeq(value);
3051
- }
3052
-
3053
-
3054
- createClass(IndexedIterable, Iterable);
3055
- function IndexedIterable(value) {
3056
- return isIndexed(value) ? value : IndexedSeq(value);
3057
- }
3058
-
3059
-
3060
- createClass(SetIterable, Iterable);
3061
- function SetIterable(value) {
3062
- return isIterable(value) && !isAssociative(value) ? value : SetSeq(value);
3063
- }
3064
-
3065
-
3066
-
3067
- function isIterable(maybeIterable) {
3068
- return !!(maybeIterable && maybeIterable[IS_ITERABLE_SENTINEL]);
3069
- }
3070
-
3071
- function isKeyed(maybeKeyed) {
3072
- return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL]);
3073
- }
3074
-
3075
- function isIndexed(maybeIndexed) {
3076
- return !!(maybeIndexed && maybeIndexed[IS_INDEXED_SENTINEL]);
3077
- }
3078
-
3079
- function isAssociative(maybeAssociative) {
3080
- return isKeyed(maybeAssociative) || isIndexed(maybeAssociative);
3081
- }
3082
-
3083
- function isOrdered(maybeOrdered) {
3084
- return !!(maybeOrdered && maybeOrdered[IS_ORDERED_SENTINEL]);
3085
- }
3086
-
3087
- Iterable.isIterable = isIterable;
3088
- Iterable.isKeyed = isKeyed;
3089
- Iterable.isIndexed = isIndexed;
3090
- Iterable.isAssociative = isAssociative;
3091
- Iterable.isOrdered = isOrdered;
3092
-
3093
- Iterable.Keyed = KeyedIterable;
3094
- Iterable.Indexed = IndexedIterable;
3095
- Iterable.Set = SetIterable;
3096
-
3097
-
3098
- var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
3099
- var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
3100
- var IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@';
3101
- var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
3102
-
3103
- // Used for setting prototype methods that IE8 chokes on.
3104
- var DELETE = 'delete';
3105
-
3106
- // Constants describing the size of trie nodes.
3107
- var SHIFT = 5; // Resulted in best performance after ______?
3108
- var SIZE = 1 << SHIFT;
3109
- var MASK = SIZE - 1;
3110
-
3111
- // A consistent shared value representing "not set" which equals nothing other
3112
- // than itself, and nothing that could be provided externally.
3113
- var NOT_SET = {};
3114
-
3115
- // Boolean references, Rough equivalent of `bool &`.
3116
- var CHANGE_LENGTH = { value: false };
3117
- var DID_ALTER = { value: false };
3118
-
3119
- function MakeRef(ref) {
3120
- ref.value = false;
3121
- return ref;
3122
- }
3123
-
3124
- function SetRef(ref) {
3125
- ref && (ref.value = true);
3126
- }
3127
-
3128
- // A function which returns a value representing an "owner" for transient writes
3129
- // to tries. The return value will only ever equal itself, and will not equal
3130
- // the return of any subsequent call of this function.
3131
- function OwnerID() {}
3132
-
3133
- // http://jsperf.com/copy-array-inline
3134
- function arrCopy(arr, offset) {
3135
- offset = offset || 0;
3136
- var len = Math.max(0, arr.length - offset);
3137
- var newArr = new Array(len);
3138
- for (var ii = 0; ii < len; ii++) {
3139
- newArr[ii] = arr[ii + offset];
3140
- }
3141
- return newArr;
3142
- }
3143
-
3144
- function ensureSize(iter) {
3145
- if (iter.size === undefined) {
3146
- iter.size = iter.__iterate(returnTrue);
3147
- }
3148
- return iter.size;
3149
- }
3150
-
3151
- function wrapIndex(iter, index) {
3152
- // This implements "is array index" which the ECMAString spec defines as:
3153
- //
3154
- // A String property name P is an array index if and only if
3155
- // ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal
3156
- // to 2^32−1.
3157
- //
3158
- // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects
3159
- if (typeof index !== 'number') {
3160
- var uint32Index = index >>> 0; // N >>> 0 is shorthand for ToUint32
3161
- if ('' + uint32Index !== index || uint32Index === 4294967295) {
3162
- return NaN;
3163
- }
3164
- index = uint32Index;
3165
- }
3166
- return index < 0 ? ensureSize(iter) + index : index;
3167
- }
3168
-
3169
- function returnTrue() {
3170
- return true;
3171
- }
3172
-
3173
- function wholeSlice(begin, end, size) {
3174
- return (begin === 0 || (size !== undefined && begin <= -size)) &&
3175
- (end === undefined || (size !== undefined && end >= size));
3176
- }
3177
-
3178
- function resolveBegin(begin, size) {
3179
- return resolveIndex(begin, size, 0);
3180
- }
3181
-
3182
- function resolveEnd(end, size) {
3183
- return resolveIndex(end, size, size);
3184
- }
3185
-
3186
- function resolveIndex(index, size, defaultIndex) {
3187
- return index === undefined ?
3188
- defaultIndex :
3189
- index < 0 ?
3190
- Math.max(0, size + index) :
3191
- size === undefined ?
3192
- index :
3193
- Math.min(size, index);
3194
- }
3195
-
3196
- /* global Symbol */
3197
-
3198
- var ITERATE_KEYS = 0;
3199
- var ITERATE_VALUES = 1;
3200
- var ITERATE_ENTRIES = 2;
3201
-
3202
- var REAL_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
3203
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
3204
-
3205
- var ITERATOR_SYMBOL = REAL_ITERATOR_SYMBOL || FAUX_ITERATOR_SYMBOL;
3206
-
3207
-
3208
- function Iterator(next) {
3209
- this.next = next;
3210
- }
3211
-
3212
- Iterator.prototype.toString = function() {
3213
- return '[Iterator]';
3214
- };
3215
-
3216
-
3217
- Iterator.KEYS = ITERATE_KEYS;
3218
- Iterator.VALUES = ITERATE_VALUES;
3219
- Iterator.ENTRIES = ITERATE_ENTRIES;
3220
-
3221
- Iterator.prototype.inspect =
3222
- Iterator.prototype.toSource = function () { return this.toString(); }
3223
- Iterator.prototype[ITERATOR_SYMBOL] = function () {
3224
- return this;
3225
- };
3226
-
3227
-
3228
- function iteratorValue(type, k, v, iteratorResult) {
3229
- var value = type === 0 ? k : type === 1 ? v : [k, v];
3230
- iteratorResult ? (iteratorResult.value = value) : (iteratorResult = {
3231
- value: value, done: false
3232
- });
3233
- return iteratorResult;
3234
- }
3235
-
3236
- function iteratorDone() {
3237
- return { value: undefined, done: true };
3238
- }
3239
-
3240
- function hasIterator(maybeIterable) {
3241
- return !!getIteratorFn(maybeIterable);
3242
- }
3243
-
3244
- function isIterator(maybeIterator) {
3245
- return maybeIterator && typeof maybeIterator.next === 'function';
3246
- }
3247
-
3248
- function getIterator(iterable) {
3249
- var iteratorFn = getIteratorFn(iterable);
3250
- return iteratorFn && iteratorFn.call(iterable);
3251
- }
3252
-
3253
- function getIteratorFn(iterable) {
3254
- var iteratorFn = iterable && (
3255
- (REAL_ITERATOR_SYMBOL && iterable[REAL_ITERATOR_SYMBOL]) ||
3256
- iterable[FAUX_ITERATOR_SYMBOL]
3257
- );
3258
- if (typeof iteratorFn === 'function') {
3259
- return iteratorFn;
3260
- }
3261
- }
3262
-
3263
- function isArrayLike(value) {
3264
- return value && typeof value.length === 'number';
3265
- }
3266
-
3267
- createClass(Seq, Iterable);
3268
- function Seq(value) {
3269
- return value === null || value === undefined ? emptySequence() :
3270
- isIterable(value) ? value.toSeq() : seqFromValue(value);
3271
- }
3272
-
3273
- Seq.of = function(/*...values*/) {
3274
- return Seq(arguments);
3275
- };
3276
-
3277
- Seq.prototype.toSeq = function() {
3278
- return this;
3279
- };
3280
-
3281
- Seq.prototype.toString = function() {
3282
- return this.__toString('Seq {', '}');
3283
- };
3284
-
3285
- Seq.prototype.cacheResult = function() {
3286
- if (!this._cache && this.__iterateUncached) {
3287
- this._cache = this.entrySeq().toArray();
3288
- this.size = this._cache.length;
3289
- }
3290
- return this;
3291
- };
3292
-
3293
- // abstract __iterateUncached(fn, reverse)
3294
-
3295
- Seq.prototype.__iterate = function(fn, reverse) {
3296
- return seqIterate(this, fn, reverse, true);
3297
- };
3298
-
3299
- // abstract __iteratorUncached(type, reverse)
3300
-
3301
- Seq.prototype.__iterator = function(type, reverse) {
3302
- return seqIterator(this, type, reverse, true);
3303
- };
3304
-
3305
-
3306
-
3307
- createClass(KeyedSeq, Seq);
3308
- function KeyedSeq(value) {
3309
- return value === null || value === undefined ?
3310
- emptySequence().toKeyedSeq() :
3311
- isIterable(value) ?
3312
- (isKeyed(value) ? value.toSeq() : value.fromEntrySeq()) :
3313
- keyedSeqFromValue(value);
3314
- }
3315
-
3316
- KeyedSeq.prototype.toKeyedSeq = function() {
3317
- return this;
3318
- };
3319
-
3320
-
3321
-
3322
- createClass(IndexedSeq, Seq);
3323
- function IndexedSeq(value) {
3324
- return value === null || value === undefined ? emptySequence() :
3325
- !isIterable(value) ? indexedSeqFromValue(value) :
3326
- isKeyed(value) ? value.entrySeq() : value.toIndexedSeq();
3327
- }
3328
-
3329
- IndexedSeq.of = function(/*...values*/) {
3330
- return IndexedSeq(arguments);
3331
- };
3332
-
3333
- IndexedSeq.prototype.toIndexedSeq = function() {
3334
- return this;
3335
- };
3336
-
3337
- IndexedSeq.prototype.toString = function() {
3338
- return this.__toString('Seq [', ']');
3339
- };
3340
-
3341
- IndexedSeq.prototype.__iterate = function(fn, reverse) {
3342
- return seqIterate(this, fn, reverse, false);
3343
- };
3344
-
3345
- IndexedSeq.prototype.__iterator = function(type, reverse) {
3346
- return seqIterator(this, type, reverse, false);
3347
- };
3348
-
3349
-
3350
-
3351
- createClass(SetSeq, Seq);
3352
- function SetSeq(value) {
3353
- return (
3354
- value === null || value === undefined ? emptySequence() :
3355
- !isIterable(value) ? indexedSeqFromValue(value) :
3356
- isKeyed(value) ? value.entrySeq() : value
3357
- ).toSetSeq();
3358
- }
3359
-
3360
- SetSeq.of = function(/*...values*/) {
3361
- return SetSeq(arguments);
3362
- };
3363
-
3364
- SetSeq.prototype.toSetSeq = function() {
3365
- return this;
3366
- };
3367
-
3368
-
3369
-
3370
- Seq.isSeq = isSeq;
3371
- Seq.Keyed = KeyedSeq;
3372
- Seq.Set = SetSeq;
3373
- Seq.Indexed = IndexedSeq;
3374
-
3375
- var IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@';
3376
-
3377
- Seq.prototype[IS_SEQ_SENTINEL] = true;
3378
-
3379
-
3380
-
3381
- createClass(ArraySeq, IndexedSeq);
3382
- function ArraySeq(array) {
3383
- this._array = array;
3384
- this.size = array.length;
3385
- }
3386
-
3387
- ArraySeq.prototype.get = function(index, notSetValue) {
3388
- return this.has(index) ? this._array[wrapIndex(this, index)] : notSetValue;
3389
- };
3390
-
3391
- ArraySeq.prototype.__iterate = function(fn, reverse) {
3392
- var array = this._array;
3393
- var maxIndex = array.length - 1;
3394
- for (var ii = 0; ii <= maxIndex; ii++) {
3395
- if (fn(array[reverse ? maxIndex - ii : ii], ii, this) === false) {
3396
- return ii + 1;
3397
- }
3398
- }
3399
- return ii;
3400
- };
3401
-
3402
- ArraySeq.prototype.__iterator = function(type, reverse) {
3403
- var array = this._array;
3404
- var maxIndex = array.length - 1;
3405
- var ii = 0;
3406
- return new Iterator(function()
3407
- {return ii > maxIndex ?
3408
- iteratorDone() :
3409
- iteratorValue(type, ii, array[reverse ? maxIndex - ii++ : ii++])}
3410
- );
3411
- };
3412
-
3413
-
3414
-
3415
- createClass(ObjectSeq, KeyedSeq);
3416
- function ObjectSeq(object) {
3417
- var keys = Object.keys(object);
3418
- this._object = object;
3419
- this._keys = keys;
3420
- this.size = keys.length;
3421
- }
3422
-
3423
- ObjectSeq.prototype.get = function(key, notSetValue) {
3424
- if (notSetValue !== undefined && !this.has(key)) {
3425
- return notSetValue;
3426
- }
3427
- return this._object[key];
3428
- };
3429
-
3430
- ObjectSeq.prototype.has = function(key) {
3431
- return this._object.hasOwnProperty(key);
3432
- };
3433
-
3434
- ObjectSeq.prototype.__iterate = function(fn, reverse) {
3435
- var object = this._object;
3436
- var keys = this._keys;
3437
- var maxIndex = keys.length - 1;
3438
- for (var ii = 0; ii <= maxIndex; ii++) {
3439
- var key = keys[reverse ? maxIndex - ii : ii];
3440
- if (fn(object[key], key, this) === false) {
3441
- return ii + 1;
3442
- }
3443
- }
3444
- return ii;
3445
- };
3446
-
3447
- ObjectSeq.prototype.__iterator = function(type, reverse) {
3448
- var object = this._object;
3449
- var keys = this._keys;
3450
- var maxIndex = keys.length - 1;
3451
- var ii = 0;
3452
- return new Iterator(function() {
3453
- var key = keys[reverse ? maxIndex - ii : ii];
3454
- return ii++ > maxIndex ?
3455
- iteratorDone() :
3456
- iteratorValue(type, key, object[key]);
3457
- });
3458
- };
3459
-
3460
- ObjectSeq.prototype[IS_ORDERED_SENTINEL] = true;
3461
-
3462
-
3463
- createClass(IterableSeq, IndexedSeq);
3464
- function IterableSeq(iterable) {
3465
- this._iterable = iterable;
3466
- this.size = iterable.length || iterable.size;
3467
- }
3468
-
3469
- IterableSeq.prototype.__iterateUncached = function(fn, reverse) {
3470
- if (reverse) {
3471
- return this.cacheResult().__iterate(fn, reverse);
3472
- }
3473
- var iterable = this._iterable;
3474
- var iterator = getIterator(iterable);
3475
- var iterations = 0;
3476
- if (isIterator(iterator)) {
3477
- var step;
3478
- while (!(step = iterator.next()).done) {
3479
- if (fn(step.value, iterations++, this) === false) {
3480
- break;
3481
- }
3482
- }
3483
- }
3484
- return iterations;
3485
- };
3486
-
3487
- IterableSeq.prototype.__iteratorUncached = function(type, reverse) {
3488
- if (reverse) {
3489
- return this.cacheResult().__iterator(type, reverse);
3490
- }
3491
- var iterable = this._iterable;
3492
- var iterator = getIterator(iterable);
3493
- if (!isIterator(iterator)) {
3494
- return new Iterator(iteratorDone);
3495
- }
3496
- var iterations = 0;
3497
- return new Iterator(function() {
3498
- var step = iterator.next();
3499
- return step.done ? step : iteratorValue(type, iterations++, step.value);
3500
- });
3501
- };
3502
-
3503
-
3504
-
3505
- createClass(IteratorSeq, IndexedSeq);
3506
- function IteratorSeq(iterator) {
3507
- this._iterator = iterator;
3508
- this._iteratorCache = [];
3509
- }
3510
-
3511
- IteratorSeq.prototype.__iterateUncached = function(fn, reverse) {
3512
- if (reverse) {
3513
- return this.cacheResult().__iterate(fn, reverse);
3514
- }
3515
- var iterator = this._iterator;
3516
- var cache = this._iteratorCache;
3517
- var iterations = 0;
3518
- while (iterations < cache.length) {
3519
- if (fn(cache[iterations], iterations++, this) === false) {
3520
- return iterations;
3521
- }
3522
- }
3523
- var step;
3524
- while (!(step = iterator.next()).done) {
3525
- var val = step.value;
3526
- cache[iterations] = val;
3527
- if (fn(val, iterations++, this) === false) {
3528
- break;
3529
- }
3530
- }
3531
- return iterations;
3532
- };
3533
-
3534
- IteratorSeq.prototype.__iteratorUncached = function(type, reverse) {
3535
- if (reverse) {
3536
- return this.cacheResult().__iterator(type, reverse);
3537
- }
3538
- var iterator = this._iterator;
3539
- var cache = this._iteratorCache;
3540
- var iterations = 0;
3541
- return new Iterator(function() {
3542
- if (iterations >= cache.length) {
3543
- var step = iterator.next();
3544
- if (step.done) {
3545
- return step;
3546
- }
3547
- cache[iterations] = step.value;
3548
- }
3549
- return iteratorValue(type, iterations, cache[iterations++]);
3550
- });
3551
- };
3552
-
3553
-
3554
-
3555
-
3556
- // # pragma Helper functions
3557
-
3558
- function isSeq(maybeSeq) {
3559
- return !!(maybeSeq && maybeSeq[IS_SEQ_SENTINEL]);
3560
- }
3561
-
3562
- var EMPTY_SEQ;
3563
-
3564
- function emptySequence() {
3565
- return EMPTY_SEQ || (EMPTY_SEQ = new ArraySeq([]));
3566
- }
3567
-
3568
- function keyedSeqFromValue(value) {
3569
- var seq =
3570
- Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :
3571
- isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :
3572
- hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :
3573
- typeof value === 'object' ? new ObjectSeq(value) :
3574
- undefined;
3575
- if (!seq) {
3576
- throw new TypeError(
3577
- 'Expected Array or iterable object of [k, v] entries, '+
3578
- 'or keyed object: ' + value
3579
- );
3580
- }
3581
- return seq;
3582
- }
3583
-
3584
- function indexedSeqFromValue(value) {
3585
- var seq = maybeIndexedSeqFromValue(value);
3586
- if (!seq) {
3587
- throw new TypeError(
3588
- 'Expected Array or iterable object of values: ' + value
3589
- );
3590
- }
3591
- return seq;
3592
- }
3593
-
3594
- function seqFromValue(value) {
3595
- var seq = maybeIndexedSeqFromValue(value) ||
3596
- (typeof value === 'object' && new ObjectSeq(value));
3597
- if (!seq) {
3598
- throw new TypeError(
3599
- 'Expected Array or iterable object of values, or keyed object: ' + value
3600
- );
3601
- }
3602
- return seq;
3603
- }
3604
-
3605
- function maybeIndexedSeqFromValue(value) {
3606
- return (
3607
- isArrayLike(value) ? new ArraySeq(value) :
3608
- isIterator(value) ? new IteratorSeq(value) :
3609
- hasIterator(value) ? new IterableSeq(value) :
3610
- undefined
3611
- );
3612
- }
3613
-
3614
- function seqIterate(seq, fn, reverse, useKeys) {
3615
- var cache = seq._cache;
3616
- if (cache) {
3617
- var maxIndex = cache.length - 1;
3618
- for (var ii = 0; ii <= maxIndex; ii++) {
3619
- var entry = cache[reverse ? maxIndex - ii : ii];
3620
- if (fn(entry[1], useKeys ? entry[0] : ii, seq) === false) {
3621
- return ii + 1;
3622
- }
3623
- }
3624
- return ii;
3625
- }
3626
- return seq.__iterateUncached(fn, reverse);
3627
- }
3628
-
3629
- function seqIterator(seq, type, reverse, useKeys) {
3630
- var cache = seq._cache;
3631
- if (cache) {
3632
- var maxIndex = cache.length - 1;
3633
- var ii = 0;
3634
- return new Iterator(function() {
3635
- var entry = cache[reverse ? maxIndex - ii : ii];
3636
- return ii++ > maxIndex ?
3637
- iteratorDone() :
3638
- iteratorValue(type, useKeys ? entry[0] : ii - 1, entry[1]);
3639
- });
3640
- }
3641
- return seq.__iteratorUncached(type, reverse);
3642
- }
3643
-
3644
- function fromJS(json, converter) {
3645
- return converter ?
3646
- fromJSWith(converter, json, '', {'': json}) :
3647
- fromJSDefault(json);
3648
- }
3649
-
3650
- function fromJSWith(converter, json, key, parentJSON) {
3651
- if (Array.isArray(json)) {
3652
- return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k) {return fromJSWith(converter, v, k, json)}));
3653
- }
3654
- if (isPlainObj(json)) {
3655
- return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k) {return fromJSWith(converter, v, k, json)}));
3656
- }
3657
- return json;
3658
- }
3659
-
3660
- function fromJSDefault(json) {
3661
- if (Array.isArray(json)) {
3662
- return IndexedSeq(json).map(fromJSDefault).toList();
3663
- }
3664
- if (isPlainObj(json)) {
3665
- return KeyedSeq(json).map(fromJSDefault).toMap();
3666
- }
3667
- return json;
3668
- }
3669
-
3670
- function isPlainObj(value) {
3671
- return value && (value.constructor === Object || value.constructor === undefined);
3672
- }
3673
-
3674
- /**
3675
- * An extension of the "same-value" algorithm as [described for use by ES6 Map
3676
- * and Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Key_equality)
3677
- *
3678
- * NaN is considered the same as NaN, however -0 and 0 are considered the same
3679
- * value, which is different from the algorithm described by
3680
- * [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
3681
- *
3682
- * This is extended further to allow Objects to describe the values they
3683
- * represent, by way of `valueOf` or `equals` (and `hashCode`).
3684
- *
3685
- * Note: because of this extension, the key equality of Immutable.Map and the
3686
- * value equality of Immutable.Set will differ from ES6 Map and Set.
3687
- *
3688
- * ### Defining custom values
3689
- *
3690
- * The easiest way to describe the value an object represents is by implementing
3691
- * `valueOf`. For example, `Date` represents a value by returning a unix
3692
- * timestamp for `valueOf`:
3693
- *
3694
- * var date1 = new Date(1234567890000); // Fri Feb 13 2009 ...
3695
- * var date2 = new Date(1234567890000);
3696
- * date1.valueOf(); // 1234567890000
3697
- * assert( date1 !== date2 );
3698
- * assert( Immutable.is( date1, date2 ) );
3699
- *
3700
- * Note: overriding `valueOf` may have other implications if you use this object
3701
- * where JavaScript expects a primitive, such as implicit string coercion.
3702
- *
3703
- * For more complex types, especially collections, implementing `valueOf` may
3704
- * not be performant. An alternative is to implement `equals` and `hashCode`.
3705
- *
3706
- * `equals` takes another object, presumably of similar type, and returns true
3707
- * if the it is equal. Equality is symmetrical, so the same result should be
3708
- * returned if this and the argument are flipped.
3709
- *
3710
- * assert( a.equals(b) === b.equals(a) );
3711
- *
3712
- * `hashCode` returns a 32bit integer number representing the object which will
3713
- * be used to determine how to store the value object in a Map or Set. You must
3714
- * provide both or neither methods, one must not exist without the other.
3715
- *
3716
- * Also, an important relationship between these methods must be upheld: if two
3717
- * values are equal, they *must* return the same hashCode. If the values are not
3718
- * equal, they might have the same hashCode; this is called a hash collision,
3719
- * and while undesirable for performance reasons, it is acceptable.
3720
- *
3721
- * if (a.equals(b)) {
3722
- * assert( a.hashCode() === b.hashCode() );
3723
- * }
3724
- *
3725
- * All Immutable collections implement `equals` and `hashCode`.
3726
- *
3727
- */
3728
- function is(valueA, valueB) {
3729
- if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) {
3730
- return true;
3731
- }
3732
- if (!valueA || !valueB) {
3733
- return false;
3734
- }
3735
- if (typeof valueA.valueOf === 'function' &&
3736
- typeof valueB.valueOf === 'function') {
3737
- valueA = valueA.valueOf();
3738
- valueB = valueB.valueOf();
3739
- if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) {
3740
- return true;
3741
- }
3742
- if (!valueA || !valueB) {
3743
- return false;
3744
- }
3745
- }
3746
- if (typeof valueA.equals === 'function' &&
3747
- typeof valueB.equals === 'function' &&
3748
- valueA.equals(valueB)) {
3749
- return true;
3750
- }
3751
- return false;
3752
- }
3753
-
3754
- function deepEqual(a, b) {
3755
- if (a === b) {
3756
- return true;
3757
- }
3758
-
3759
- if (
3760
- !isIterable(b) ||
3761
- a.size !== undefined && b.size !== undefined && a.size !== b.size ||
3762
- a.__hash !== undefined && b.__hash !== undefined && a.__hash !== b.__hash ||
3763
- isKeyed(a) !== isKeyed(b) ||
3764
- isIndexed(a) !== isIndexed(b) ||
3765
- isOrdered(a) !== isOrdered(b)
3766
- ) {
3767
- return false;
3768
- }
3769
-
3770
- if (a.size === 0 && b.size === 0) {
3771
- return true;
3772
- }
3773
-
3774
- var notAssociative = !isAssociative(a);
3775
-
3776
- if (isOrdered(a)) {
3777
- var entries = a.entries();
3778
- return b.every(function(v, k) {
3779
- var entry = entries.next().value;
3780
- return entry && is(entry[1], v) && (notAssociative || is(entry[0], k));
3781
- }) && entries.next().done;
3782
- }
3783
-
3784
- var flipped = false;
3785
-
3786
- if (a.size === undefined) {
3787
- if (b.size === undefined) {
3788
- if (typeof a.cacheResult === 'function') {
3789
- a.cacheResult();
3790
- }
3791
- } else {
3792
- flipped = true;
3793
- var _ = a;
3794
- a = b;
3795
- b = _;
3796
- }
3797
- }
3798
-
3799
- var allEqual = true;
3800
- var bSize = b.__iterate(function(v, k) {
3801
- if (notAssociative ? !a.has(v) :
3802
- flipped ? !is(v, a.get(k, NOT_SET)) : !is(a.get(k, NOT_SET), v)) {
3803
- allEqual = false;
3804
- return false;
3805
- }
3806
- });
3807
-
3808
- return allEqual && a.size === bSize;
3809
- }
3810
-
3811
- createClass(Repeat, IndexedSeq);
3812
-
3813
- function Repeat(value, times) {
3814
- if (!(this instanceof Repeat)) {
3815
- return new Repeat(value, times);
3816
- }
3817
- this._value = value;
3818
- this.size = times === undefined ? Infinity : Math.max(0, times);
3819
- if (this.size === 0) {
3820
- if (EMPTY_REPEAT) {
3821
- return EMPTY_REPEAT;
3822
- }
3823
- EMPTY_REPEAT = this;
3824
- }
3825
- }
3826
-
3827
- Repeat.prototype.toString = function() {
3828
- if (this.size === 0) {
3829
- return 'Repeat []';
3830
- }
3831
- return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';
3832
- };
3833
-
3834
- Repeat.prototype.get = function(index, notSetValue) {
3835
- return this.has(index) ? this._value : notSetValue;
3836
- };
3837
-
3838
- Repeat.prototype.includes = function(searchValue) {
3839
- return is(this._value, searchValue);
3840
- };
3841
-
3842
- Repeat.prototype.slice = function(begin, end) {
3843
- var size = this.size;
3844
- return wholeSlice(begin, end, size) ? this :
3845
- new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));
3846
- };
3847
-
3848
- Repeat.prototype.reverse = function() {
3849
- return this;
3850
- };
3851
-
3852
- Repeat.prototype.indexOf = function(searchValue) {
3853
- if (is(this._value, searchValue)) {
3854
- return 0;
3855
- }
3856
- return -1;
3857
- };
3858
-
3859
- Repeat.prototype.lastIndexOf = function(searchValue) {
3860
- if (is(this._value, searchValue)) {
3861
- return this.size;
3862
- }
3863
- return -1;
3864
- };
3865
-
3866
- Repeat.prototype.__iterate = function(fn, reverse) {
3867
- for (var ii = 0; ii < this.size; ii++) {
3868
- if (fn(this._value, ii, this) === false) {
3869
- return ii + 1;
3870
- }
3871
- }
3872
- return ii;
3873
- };
3874
-
3875
- Repeat.prototype.__iterator = function(type, reverse) {var this$0 = this;
3876
- var ii = 0;
3877
- return new Iterator(function()
3878
- {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value) : iteratorDone()}
3879
- );
3880
- };
3881
-
3882
- Repeat.prototype.equals = function(other) {
3883
- return other instanceof Repeat ?
3884
- is(this._value, other._value) :
3885
- deepEqual(other);
3886
- };
3887
-
3888
-
3889
- var EMPTY_REPEAT;
3890
-
3891
- function invariant(condition, error) {
3892
- if (!condition) throw new Error(error);
3893
- }
3894
-
3895
- createClass(Range, IndexedSeq);
3896
-
3897
- function Range(start, end, step) {
3898
- if (!(this instanceof Range)) {
3899
- return new Range(start, end, step);
3900
- }
3901
- invariant(step !== 0, 'Cannot step a Range by 0');
3902
- start = start || 0;
3903
- if (end === undefined) {
3904
- end = Infinity;
3905
- }
3906
- step = step === undefined ? 1 : Math.abs(step);
3907
- if (end < start) {
3908
- step = -step;
3909
- }
3910
- this._start = start;
3911
- this._end = end;
3912
- this._step = step;
3913
- this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1);
3914
- if (this.size === 0) {
3915
- if (EMPTY_RANGE) {
3916
- return EMPTY_RANGE;
3917
- }
3918
- EMPTY_RANGE = this;
3919
- }
3920
- }
3921
-
3922
- Range.prototype.toString = function() {
3923
- if (this.size === 0) {
3924
- return 'Range []';
3925
- }
3926
- return 'Range [ ' +
3927
- this._start + '...' + this._end +
3928
- (this._step !== 1 ? ' by ' + this._step : '') +
3929
- ' ]';
3930
- };
3931
-
3932
- Range.prototype.get = function(index, notSetValue) {
3933
- return this.has(index) ?
3934
- this._start + wrapIndex(this, index) * this._step :
3935
- notSetValue;
3936
- };
3937
-
3938
- Range.prototype.includes = function(searchValue) {
3939
- var possibleIndex = (searchValue - this._start) / this._step;
3940
- return possibleIndex >= 0 &&
3941
- possibleIndex < this.size &&
3942
- possibleIndex === Math.floor(possibleIndex);
3943
- };
3944
-
3945
- Range.prototype.slice = function(begin, end) {
3946
- if (wholeSlice(begin, end, this.size)) {
3947
- return this;
3948
- }
3949
- begin = resolveBegin(begin, this.size);
3950
- end = resolveEnd(end, this.size);
3951
- if (end <= begin) {
3952
- return new Range(0, 0);
3953
- }
3954
- return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);
3955
- };
3956
-
3957
- Range.prototype.indexOf = function(searchValue) {
3958
- var offsetValue = searchValue - this._start;
3959
- if (offsetValue % this._step === 0) {
3960
- var index = offsetValue / this._step;
3961
- if (index >= 0 && index < this.size) {
3962
- return index
3963
- }
3964
- }
3965
- return -1;
3966
- };
3967
-
3968
- Range.prototype.lastIndexOf = function(searchValue) {
3969
- return this.indexOf(searchValue);
3970
- };
3971
-
3972
- Range.prototype.__iterate = function(fn, reverse) {
3973
- var maxIndex = this.size - 1;
3974
- var step = this._step;
3975
- var value = reverse ? this._start + maxIndex * step : this._start;
3976
- for (var ii = 0; ii <= maxIndex; ii++) {
3977
- if (fn(value, ii, this) === false) {
3978
- return ii + 1;
3979
- }
3980
- value += reverse ? -step : step;
3981
- }
3982
- return ii;
3983
- };
3984
-
3985
- Range.prototype.__iterator = function(type, reverse) {
3986
- var maxIndex = this.size - 1;
3987
- var step = this._step;
3988
- var value = reverse ? this._start + maxIndex * step : this._start;
3989
- var ii = 0;
3990
- return new Iterator(function() {
3991
- var v = value;
3992
- value += reverse ? -step : step;
3993
- return ii > maxIndex ? iteratorDone() : iteratorValue(type, ii++, v);
3994
- });
3995
- };
3996
-
3997
- Range.prototype.equals = function(other) {
3998
- return other instanceof Range ?
3999
- this._start === other._start &&
4000
- this._end === other._end &&
4001
- this._step === other._step :
4002
- deepEqual(this, other);
4003
- };
4004
-
4005
-
4006
- var EMPTY_RANGE;
4007
-
4008
- createClass(Collection, Iterable);
4009
- function Collection() {
4010
- throw TypeError('Abstract');
4011
- }
4012
-
4013
-
4014
- createClass(KeyedCollection, Collection);function KeyedCollection() {}
4015
-
4016
- createClass(IndexedCollection, Collection);function IndexedCollection() {}
4017
-
4018
- createClass(SetCollection, Collection);function SetCollection() {}
4019
-
4020
-
4021
- Collection.Keyed = KeyedCollection;
4022
- Collection.Indexed = IndexedCollection;
4023
- Collection.Set = SetCollection;
4024
-
4025
- var imul =
4026
- typeof Math.imul === 'function' && Math.imul(0xffffffff, 2) === -2 ?
4027
- Math.imul :
4028
- function imul(a, b) {
4029
- a = a | 0; // int
4030
- b = b | 0; // int
4031
- var c = a & 0xffff;
4032
- var d = b & 0xffff;
4033
- // Shift by 0 fixes the sign on the high part.
4034
- return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int
4035
- };
4036
-
4037
- // v8 has an optimization for storing 31-bit signed numbers.
4038
- // Values which have either 00 or 11 as the high order bits qualify.
4039
- // This function drops the highest order bit in a signed number, maintaining
4040
- // the sign bit.
4041
- function smi(i32) {
4042
- return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);
4043
- }
4044
-
4045
- function hash(o) {
4046
- if (o === false || o === null || o === undefined) {
4047
- return 0;
4048
- }
4049
- if (typeof o.valueOf === 'function') {
4050
- o = o.valueOf();
4051
- if (o === false || o === null || o === undefined) {
4052
- return 0;
4053
- }
4054
- }
4055
- if (o === true) {
4056
- return 1;
4057
- }
4058
- var type = typeof o;
4059
- if (type === 'number') {
4060
- if (o !== o || o === Infinity) {
4061
- return 0;
4062
- }
4063
- var h = o | 0;
4064
- if (h !== o) {
4065
- h ^= o * 0xFFFFFFFF;
4066
- }
4067
- while (o > 0xFFFFFFFF) {
4068
- o /= 0xFFFFFFFF;
4069
- h ^= o;
4070
- }
4071
- return smi(h);
4072
- }
4073
- if (type === 'string') {
4074
- return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o) : hashString(o);
4075
- }
4076
- if (typeof o.hashCode === 'function') {
4077
- return o.hashCode();
4078
- }
4079
- if (type === 'object') {
4080
- return hashJSObj(o);
4081
- }
4082
- if (typeof o.toString === 'function') {
4083
- return hashString(o.toString());
4084
- }
4085
- throw new Error('Value type ' + type + ' cannot be hashed.');
4086
- }
4087
-
4088
- function cachedHashString(string) {
4089
- var hash = stringHashCache[string];
4090
- if (hash === undefined) {
4091
- hash = hashString(string);
4092
- if (STRING_HASH_CACHE_SIZE === STRING_HASH_CACHE_MAX_SIZE) {
4093
- STRING_HASH_CACHE_SIZE = 0;
4094
- stringHashCache = {};
4095
- }
4096
- STRING_HASH_CACHE_SIZE++;
4097
- stringHashCache[string] = hash;
4098
- }
4099
- return hash;
4100
- }
4101
-
4102
- // http://jsperf.com/hashing-strings
4103
- function hashString(string) {
4104
- // This is the hash from JVM
4105
- // The hash code for a string is computed as
4106
- // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],
4107
- // where s[i] is the ith character of the string and n is the length of
4108
- // the string. We "mod" the result to make it between 0 (inclusive) and 2^31
4109
- // (exclusive) by dropping high bits.
4110
- var hash = 0;
4111
- for (var ii = 0; ii < string.length; ii++) {
4112
- hash = 31 * hash + string.charCodeAt(ii) | 0;
4113
- }
4114
- return smi(hash);
4115
- }
4116
-
4117
- function hashJSObj(obj) {
4118
- var hash;
4119
- if (usingWeakMap) {
4120
- hash = weakMap.get(obj);
4121
- if (hash !== undefined) {
4122
- return hash;
4123
- }
4124
- }
4125
-
4126
- hash = obj[UID_HASH_KEY];
4127
- if (hash !== undefined) {
4128
- return hash;
4129
- }
4130
-
4131
- if (!canDefineProperty) {
4132
- hash = obj.propertyIsEnumerable && obj.propertyIsEnumerable[UID_HASH_KEY];
4133
- if (hash !== undefined) {
4134
- return hash;
4135
- }
4136
-
4137
- hash = getIENodeHash(obj);
4138
- if (hash !== undefined) {
4139
- return hash;
4140
- }
4141
- }
4142
-
4143
- hash = ++objHashUID;
4144
- if (objHashUID & 0x40000000) {
4145
- objHashUID = 0;
4146
- }
4147
-
4148
- if (usingWeakMap) {
4149
- weakMap.set(obj, hash);
4150
- } else if (isExtensible !== undefined && isExtensible(obj) === false) {
4151
- throw new Error('Non-extensible objects are not allowed as keys.');
4152
- } else if (canDefineProperty) {
4153
- Object.defineProperty(obj, UID_HASH_KEY, {
4154
- 'enumerable': false,
4155
- 'configurable': false,
4156
- 'writable': false,
4157
- 'value': hash
4158
- });
4159
- } else if (obj.propertyIsEnumerable !== undefined &&
4160
- obj.propertyIsEnumerable === obj.constructor.prototype.propertyIsEnumerable) {
4161
- // Since we can't define a non-enumerable property on the object
4162
- // we'll hijack one of the less-used non-enumerable properties to
4163
- // save our hash on it. Since this is a function it will not show up in
4164
- // `JSON.stringify` which is what we want.
4165
- obj.propertyIsEnumerable = function() {
4166
- return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);
4167
- };
4168
- obj.propertyIsEnumerable[UID_HASH_KEY] = hash;
4169
- } else if (obj.nodeType !== undefined) {
4170
- // At this point we couldn't get the IE `uniqueID` to use as a hash
4171
- // and we couldn't use a non-enumerable property to exploit the
4172
- // dontEnum bug so we simply add the `UID_HASH_KEY` on the node
4173
- // itself.
4174
- obj[UID_HASH_KEY] = hash;
4175
- } else {
4176
- throw new Error('Unable to set a non-enumerable property on object.');
4177
- }
4178
-
4179
- return hash;
4180
- }
4181
-
4182
- // Get references to ES5 object methods.
4183
- var isExtensible = Object.isExtensible;
4184
-
4185
- // True if Object.defineProperty works as expected. IE8 fails this test.
4186
- var canDefineProperty = (function() {
4187
- try {
4188
- Object.defineProperty({}, '@', {});
4189
- return true;
4190
- } catch (e) {
4191
- return false;
4192
- }
4193
- }());
4194
-
4195
- // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it
4196
- // and avoid memory leaks from the IE cloneNode bug.
4197
- function getIENodeHash(node) {
4198
- if (node && node.nodeType > 0) {
4199
- switch (node.nodeType) {
4200
- case 1: // Element
4201
- return node.uniqueID;
4202
- case 9: // Document
4203
- return node.documentElement && node.documentElement.uniqueID;
4204
- }
4205
- }
4206
- }
4207
-
4208
- // If possible, use a WeakMap.
4209
- var usingWeakMap = typeof WeakMap === 'function';
4210
- var weakMap;
4211
- if (usingWeakMap) {
4212
- weakMap = new WeakMap();
4213
- }
4214
-
4215
- var objHashUID = 0;
4216
-
4217
- var UID_HASH_KEY = '__immutablehash__';
4218
- if (typeof Symbol === 'function') {
4219
- UID_HASH_KEY = Symbol(UID_HASH_KEY);
4220
- }
4221
-
4222
- var STRING_HASH_CACHE_MIN_STRLEN = 16;
4223
- var STRING_HASH_CACHE_MAX_SIZE = 255;
4224
- var STRING_HASH_CACHE_SIZE = 0;
4225
- var stringHashCache = {};
4226
-
4227
- function assertNotInfinite(size) {
4228
- invariant(
4229
- size !== Infinity,
4230
- 'Cannot perform this action with an infinite size.'
4231
- );
4232
- }
4233
-
4234
- createClass(Map, KeyedCollection);
4235
-
4236
- // @pragma Construction
4237
-
4238
- function Map(value) {
4239
- return value === null || value === undefined ? emptyMap() :
4240
- isMap(value) && !isOrdered(value) ? value :
4241
- emptyMap().withMutations(function(map ) {
4242
- var iter = KeyedIterable(value);
4243
- assertNotInfinite(iter.size);
4244
- iter.forEach(function(v, k) {return map.set(k, v)});
4245
- });
4246
- }
4247
-
4248
- Map.of = function() {var keyValues = SLICE$0.call(arguments, 0);
4249
- return emptyMap().withMutations(function(map ) {
4250
- for (var i = 0; i < keyValues.length; i += 2) {
4251
- if (i + 1 >= keyValues.length) {
4252
- throw new Error('Missing value for key: ' + keyValues[i]);
4253
- }
4254
- map.set(keyValues[i], keyValues[i + 1]);
4255
- }
4256
- });
4257
- };
4258
-
4259
- Map.prototype.toString = function() {
4260
- return this.__toString('Map {', '}');
4261
- };
4262
-
4263
- // @pragma Access
4264
-
4265
- Map.prototype.get = function(k, notSetValue) {
4266
- return this._root ?
4267
- this._root.get(0, undefined, k, notSetValue) :
4268
- notSetValue;
4269
- };
4270
-
4271
- // @pragma Modification
4272
-
4273
- Map.prototype.set = function(k, v) {
4274
- return updateMap(this, k, v);
4275
- };
4276
-
4277
- Map.prototype.setIn = function(keyPath, v) {
4278
- return this.updateIn(keyPath, NOT_SET, function() {return v});
4279
- };
4280
-
4281
- Map.prototype.remove = function(k) {
4282
- return updateMap(this, k, NOT_SET);
4283
- };
4284
-
4285
- Map.prototype.deleteIn = function(keyPath) {
4286
- return this.updateIn(keyPath, function() {return NOT_SET});
4287
- };
4288
-
4289
- Map.prototype.update = function(k, notSetValue, updater) {
4290
- return arguments.length === 1 ?
4291
- k(this) :
4292
- this.updateIn([k], notSetValue, updater);
4293
- };
4294
-
4295
- Map.prototype.updateIn = function(keyPath, notSetValue, updater) {
4296
- if (!updater) {
4297
- updater = notSetValue;
4298
- notSetValue = undefined;
4299
- }
4300
- var updatedValue = updateInDeepMap(
4301
- this,
4302
- forceIterator(keyPath),
4303
- notSetValue,
4304
- updater
4305
- );
4306
- return updatedValue === NOT_SET ? undefined : updatedValue;
4307
- };
4308
-
4309
- Map.prototype.clear = function() {
4310
- if (this.size === 0) {
4311
- return this;
4312
- }
4313
- if (this.__ownerID) {
4314
- this.size = 0;
4315
- this._root = null;
4316
- this.__hash = undefined;
4317
- this.__altered = true;
4318
- return this;
4319
- }
4320
- return emptyMap();
4321
- };
4322
-
4323
- // @pragma Composition
4324
-
4325
- Map.prototype.merge = function(/*...iters*/) {
4326
- return mergeIntoMapWith(this, undefined, arguments);
4327
- };
4328
-
4329
- Map.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
4330
- return mergeIntoMapWith(this, merger, iters);
4331
- };
4332
-
4333
- Map.prototype.mergeIn = function(keyPath) {var iters = SLICE$0.call(arguments, 1);
4334
- return this.updateIn(
4335
- keyPath,
4336
- emptyMap(),
4337
- function(m ) {return typeof m.merge === 'function' ?
4338
- m.merge.apply(m, iters) :
4339
- iters[iters.length - 1]}
4340
- );
4341
- };
4342
-
4343
- Map.prototype.mergeDeep = function(/*...iters*/) {
4344
- return mergeIntoMapWith(this, deepMerger, arguments);
4345
- };
4346
-
4347
- Map.prototype.mergeDeepWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
4348
- return mergeIntoMapWith(this, deepMergerWith(merger), iters);
4349
- };
4350
-
4351
- Map.prototype.mergeDeepIn = function(keyPath) {var iters = SLICE$0.call(arguments, 1);
4352
- return this.updateIn(
4353
- keyPath,
4354
- emptyMap(),
4355
- function(m ) {return typeof m.mergeDeep === 'function' ?
4356
- m.mergeDeep.apply(m, iters) :
4357
- iters[iters.length - 1]}
4358
- );
4359
- };
4360
-
4361
- Map.prototype.sort = function(comparator) {
4362
- // Late binding
4363
- return OrderedMap(sortFactory(this, comparator));
4364
- };
4365
-
4366
- Map.prototype.sortBy = function(mapper, comparator) {
4367
- // Late binding
4368
- return OrderedMap(sortFactory(this, comparator, mapper));
4369
- };
4370
-
4371
- // @pragma Mutability
4372
-
4373
- Map.prototype.withMutations = function(fn) {
4374
- var mutable = this.asMutable();
4375
- fn(mutable);
4376
- return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID) : this;
4377
- };
4378
-
4379
- Map.prototype.asMutable = function() {
4380
- return this.__ownerID ? this : this.__ensureOwner(new OwnerID());
4381
- };
4382
-
4383
- Map.prototype.asImmutable = function() {
4384
- return this.__ensureOwner();
4385
- };
4386
-
4387
- Map.prototype.wasAltered = function() {
4388
- return this.__altered;
4389
- };
4390
-
4391
- Map.prototype.__iterator = function(type, reverse) {
4392
- return new MapIterator(this, type, reverse);
4393
- };
4394
-
4395
- Map.prototype.__iterate = function(fn, reverse) {var this$0 = this;
4396
- var iterations = 0;
4397
- this._root && this._root.iterate(function(entry ) {
4398
- iterations++;
4399
- return fn(entry[1], entry[0], this$0);
4400
- }, reverse);
4401
- return iterations;
4402
- };
4403
-
4404
- Map.prototype.__ensureOwner = function(ownerID) {
4405
- if (ownerID === this.__ownerID) {
4406
- return this;
4407
- }
4408
- if (!ownerID) {
4409
- this.__ownerID = ownerID;
4410
- this.__altered = false;
4411
- return this;
4412
- }
4413
- return makeMap(this.size, this._root, ownerID, this.__hash);
4414
- };
4415
-
4416
-
4417
- function isMap(maybeMap) {
4418
- return !!(maybeMap && maybeMap[IS_MAP_SENTINEL]);
4419
- }
4420
-
4421
- Map.isMap = isMap;
4422
-
4423
- var IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@';
4424
-
4425
- var MapPrototype = Map.prototype;
4426
- MapPrototype[IS_MAP_SENTINEL] = true;
4427
- MapPrototype[DELETE] = MapPrototype.remove;
4428
- MapPrototype.removeIn = MapPrototype.deleteIn;
4429
-
4430
-
4431
- // #pragma Trie Nodes
4432
-
4433
-
4434
-
4435
- function ArrayMapNode(ownerID, entries) {
4436
- this.ownerID = ownerID;
4437
- this.entries = entries;
4438
- }
4439
-
4440
- ArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) {
4441
- var entries = this.entries;
4442
- for (var ii = 0, len = entries.length; ii < len; ii++) {
4443
- if (is(key, entries[ii][0])) {
4444
- return entries[ii][1];
4445
- }
4446
- }
4447
- return notSetValue;
4448
- };
4449
-
4450
- ArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
4451
- var removed = value === NOT_SET;
4452
-
4453
- var entries = this.entries;
4454
- var idx = 0;
4455
- for (var len = entries.length; idx < len; idx++) {
4456
- if (is(key, entries[idx][0])) {
4457
- break;
4458
- }
4459
- }
4460
- var exists = idx < len;
4461
-
4462
- if (exists ? entries[idx][1] === value : removed) {
4463
- return this;
4464
- }
4465
-
4466
- SetRef(didAlter);
4467
- (removed || !exists) && SetRef(didChangeSize);
4468
-
4469
- if (removed && entries.length === 1) {
4470
- return; // undefined
4471
- }
4472
-
4473
- if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) {
4474
- return createNodes(ownerID, entries, key, value);
4475
- }
4476
-
4477
- var isEditable = ownerID && ownerID === this.ownerID;
4478
- var newEntries = isEditable ? entries : arrCopy(entries);
4479
-
4480
- if (exists) {
4481
- if (removed) {
4482
- idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop());
4483
- } else {
4484
- newEntries[idx] = [key, value];
4485
- }
4486
- } else {
4487
- newEntries.push([key, value]);
4488
- }
4489
-
4490
- if (isEditable) {
4491
- this.entries = newEntries;
4492
- return this;
4493
- }
4494
-
4495
- return new ArrayMapNode(ownerID, newEntries);
4496
- };
4497
-
4498
-
4499
-
4500
-
4501
- function BitmapIndexedNode(ownerID, bitmap, nodes) {
4502
- this.ownerID = ownerID;
4503
- this.bitmap = bitmap;
4504
- this.nodes = nodes;
4505
- }
4506
-
4507
- BitmapIndexedNode.prototype.get = function(shift, keyHash, key, notSetValue) {
4508
- if (keyHash === undefined) {
4509
- keyHash = hash(key);
4510
- }
4511
- var bit = (1 << ((shift === 0 ? keyHash : keyHash >>> shift) & MASK));
4512
- var bitmap = this.bitmap;
4513
- return (bitmap & bit) === 0 ? notSetValue :
4514
- this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);
4515
- };
4516
-
4517
- BitmapIndexedNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
4518
- if (keyHash === undefined) {
4519
- keyHash = hash(key);
4520
- }
4521
- var keyHashFrag = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
4522
- var bit = 1 << keyHashFrag;
4523
- var bitmap = this.bitmap;
4524
- var exists = (bitmap & bit) !== 0;
4525
-
4526
- if (!exists && value === NOT_SET) {
4527
- return this;
4528
- }
4529
-
4530
- var idx = popCount(bitmap & (bit - 1));
4531
- var nodes = this.nodes;
4532
- var node = exists ? nodes[idx] : undefined;
4533
- var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);
4534
-
4535
- if (newNode === node) {
4536
- return this;
4537
- }
4538
-
4539
- if (!exists && newNode && nodes.length >= MAX_BITMAP_INDEXED_SIZE) {
4540
- return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);
4541
- }
4542
-
4543
- if (exists && !newNode && nodes.length === 2 && isLeafNode(nodes[idx ^ 1])) {
4544
- return nodes[idx ^ 1];
4545
- }
4546
-
4547
- if (exists && newNode && nodes.length === 1 && isLeafNode(newNode)) {
4548
- return newNode;
4549
- }
4550
-
4551
- var isEditable = ownerID && ownerID === this.ownerID;
4552
- var newBitmap = exists ? newNode ? bitmap : bitmap ^ bit : bitmap | bit;
4553
- var newNodes = exists ? newNode ?
4554
- setIn(nodes, idx, newNode, isEditable) :
4555
- spliceOut(nodes, idx, isEditable) :
4556
- spliceIn(nodes, idx, newNode, isEditable);
4557
-
4558
- if (isEditable) {
4559
- this.bitmap = newBitmap;
4560
- this.nodes = newNodes;
4561
- return this;
4562
- }
4563
-
4564
- return new BitmapIndexedNode(ownerID, newBitmap, newNodes);
4565
- };
4566
-
4567
-
4568
-
4569
-
4570
- function HashArrayMapNode(ownerID, count, nodes) {
4571
- this.ownerID = ownerID;
4572
- this.count = count;
4573
- this.nodes = nodes;
4574
- }
4575
-
4576
- HashArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) {
4577
- if (keyHash === undefined) {
4578
- keyHash = hash(key);
4579
- }
4580
- var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
4581
- var node = this.nodes[idx];
4582
- return node ? node.get(shift + SHIFT, keyHash, key, notSetValue) : notSetValue;
4583
- };
4584
-
4585
- HashArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
4586
- if (keyHash === undefined) {
4587
- keyHash = hash(key);
4588
- }
4589
- var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
4590
- var removed = value === NOT_SET;
4591
- var nodes = this.nodes;
4592
- var node = nodes[idx];
4593
-
4594
- if (removed && !node) {
4595
- return this;
4596
- }
4597
-
4598
- var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);
4599
- if (newNode === node) {
4600
- return this;
4601
- }
4602
-
4603
- var newCount = this.count;
4604
- if (!node) {
4605
- newCount++;
4606
- } else if (!newNode) {
4607
- newCount--;
4608
- if (newCount < MIN_HASH_ARRAY_MAP_SIZE) {
4609
- return packNodes(ownerID, nodes, newCount, idx);
4610
- }
4611
- }
4612
-
4613
- var isEditable = ownerID && ownerID === this.ownerID;
4614
- var newNodes = setIn(nodes, idx, newNode, isEditable);
4615
-
4616
- if (isEditable) {
4617
- this.count = newCount;
4618
- this.nodes = newNodes;
4619
- return this;
4620
- }
4621
-
4622
- return new HashArrayMapNode(ownerID, newCount, newNodes);
4623
- };
4624
-
4625
-
4626
-
4627
-
4628
- function HashCollisionNode(ownerID, keyHash, entries) {
4629
- this.ownerID = ownerID;
4630
- this.keyHash = keyHash;
4631
- this.entries = entries;
4632
- }
4633
-
4634
- HashCollisionNode.prototype.get = function(shift, keyHash, key, notSetValue) {
4635
- var entries = this.entries;
4636
- for (var ii = 0, len = entries.length; ii < len; ii++) {
4637
- if (is(key, entries[ii][0])) {
4638
- return entries[ii][1];
4639
- }
4640
- }
4641
- return notSetValue;
4642
- };
4643
-
4644
- HashCollisionNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
4645
- if (keyHash === undefined) {
4646
- keyHash = hash(key);
4647
- }
4648
-
4649
- var removed = value === NOT_SET;
4650
-
4651
- if (keyHash !== this.keyHash) {
4652
- if (removed) {
4653
- return this;
4654
- }
4655
- SetRef(didAlter);
4656
- SetRef(didChangeSize);
4657
- return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);
4658
- }
4659
-
4660
- var entries = this.entries;
4661
- var idx = 0;
4662
- for (var len = entries.length; idx < len; idx++) {
4663
- if (is(key, entries[idx][0])) {
4664
- break;
4665
- }
4666
- }
4667
- var exists = idx < len;
4668
-
4669
- if (exists ? entries[idx][1] === value : removed) {
4670
- return this;
4671
- }
4672
-
4673
- SetRef(didAlter);
4674
- (removed || !exists) && SetRef(didChangeSize);
4675
-
4676
- if (removed && len === 2) {
4677
- return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);
4678
- }
4679
-
4680
- var isEditable = ownerID && ownerID === this.ownerID;
4681
- var newEntries = isEditable ? entries : arrCopy(entries);
4682
-
4683
- if (exists) {
4684
- if (removed) {
4685
- idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop());
4686
- } else {
4687
- newEntries[idx] = [key, value];
4688
- }
4689
- } else {
4690
- newEntries.push([key, value]);
4691
- }
4692
-
4693
- if (isEditable) {
4694
- this.entries = newEntries;
4695
- return this;
4696
- }
4697
-
4698
- return new HashCollisionNode(ownerID, this.keyHash, newEntries);
4699
- };
4700
-
4701
-
4702
-
4703
-
4704
- function ValueNode(ownerID, keyHash, entry) {
4705
- this.ownerID = ownerID;
4706
- this.keyHash = keyHash;
4707
- this.entry = entry;
4708
- }
4709
-
4710
- ValueNode.prototype.get = function(shift, keyHash, key, notSetValue) {
4711
- return is(key, this.entry[0]) ? this.entry[1] : notSetValue;
4712
- };
4713
-
4714
- ValueNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
4715
- var removed = value === NOT_SET;
4716
- var keyMatch = is(key, this.entry[0]);
4717
- if (keyMatch ? value === this.entry[1] : removed) {
4718
- return this;
4719
- }
4720
-
4721
- SetRef(didAlter);
4722
-
4723
- if (removed) {
4724
- SetRef(didChangeSize);
4725
- return; // undefined
4726
- }
4727
-
4728
- if (keyMatch) {
4729
- if (ownerID && ownerID === this.ownerID) {
4730
- this.entry[1] = value;
4731
- return this;
4732
- }
4733
- return new ValueNode(ownerID, this.keyHash, [key, value]);
4734
- }
4735
-
4736
- SetRef(didChangeSize);
4737
- return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);
4738
- };
4739
-
4740
-
4741
-
4742
- // #pragma Iterators
4743
-
4744
- ArrayMapNode.prototype.iterate =
4745
- HashCollisionNode.prototype.iterate = function (fn, reverse) {
4746
- var entries = this.entries;
4747
- for (var ii = 0, maxIndex = entries.length - 1; ii <= maxIndex; ii++) {
4748
- if (fn(entries[reverse ? maxIndex - ii : ii]) === false) {
4749
- return false;
4750
- }
4751
- }
4752
- }
4753
-
4754
- BitmapIndexedNode.prototype.iterate =
4755
- HashArrayMapNode.prototype.iterate = function (fn, reverse) {
4756
- var nodes = this.nodes;
4757
- for (var ii = 0, maxIndex = nodes.length - 1; ii <= maxIndex; ii++) {
4758
- var node = nodes[reverse ? maxIndex - ii : ii];
4759
- if (node && node.iterate(fn, reverse) === false) {
4760
- return false;
4761
- }
4762
- }
4763
- }
4764
-
4765
- ValueNode.prototype.iterate = function (fn, reverse) {
4766
- return fn(this.entry);
4767
- }
4768
-
4769
- createClass(MapIterator, Iterator);
4770
-
4771
- function MapIterator(map, type, reverse) {
4772
- this._type = type;
4773
- this._reverse = reverse;
4774
- this._stack = map._root && mapIteratorFrame(map._root);
4775
- }
4776
-
4777
- MapIterator.prototype.next = function() {
4778
- var type = this._type;
4779
- var stack = this._stack;
4780
- while (stack) {
4781
- var node = stack.node;
4782
- var index = stack.index++;
4783
- var maxIndex;
4784
- if (node.entry) {
4785
- if (index === 0) {
4786
- return mapIteratorValue(type, node.entry);
4787
- }
4788
- } else if (node.entries) {
4789
- maxIndex = node.entries.length - 1;
4790
- if (index <= maxIndex) {
4791
- return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index : index]);
4792
- }
4793
- } else {
4794
- maxIndex = node.nodes.length - 1;
4795
- if (index <= maxIndex) {
4796
- var subNode = node.nodes[this._reverse ? maxIndex - index : index];
4797
- if (subNode) {
4798
- if (subNode.entry) {
4799
- return mapIteratorValue(type, subNode.entry);
4800
- }
4801
- stack = this._stack = mapIteratorFrame(subNode, stack);
4802
- }
4803
- continue;
4804
- }
4805
- }
4806
- stack = this._stack = this._stack.__prev;
4807
- }
4808
- return iteratorDone();
4809
- };
4810
-
4811
-
4812
- function mapIteratorValue(type, entry) {
4813
- return iteratorValue(type, entry[0], entry[1]);
4814
- }
4815
-
4816
- function mapIteratorFrame(node, prev) {
4817
- return {
4818
- node: node,
4819
- index: 0,
4820
- __prev: prev
4821
- };
4822
- }
4823
-
4824
- function makeMap(size, root, ownerID, hash) {
4825
- var map = Object.create(MapPrototype);
4826
- map.size = size;
4827
- map._root = root;
4828
- map.__ownerID = ownerID;
4829
- map.__hash = hash;
4830
- map.__altered = false;
4831
- return map;
4832
- }
4833
-
4834
- var EMPTY_MAP;
4835
- function emptyMap() {
4836
- return EMPTY_MAP || (EMPTY_MAP = makeMap(0));
4837
- }
4838
-
4839
- function updateMap(map, k, v) {
4840
- var newRoot;
4841
- var newSize;
4842
- if (!map._root) {
4843
- if (v === NOT_SET) {
4844
- return map;
4845
- }
4846
- newSize = 1;
4847
- newRoot = new ArrayMapNode(map.__ownerID, [[k, v]]);
4848
- } else {
4849
- var didChangeSize = MakeRef(CHANGE_LENGTH);
4850
- var didAlter = MakeRef(DID_ALTER);
4851
- newRoot = updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);
4852
- if (!didAlter.value) {
4853
- return map;
4854
- }
4855
- newSize = map.size + (didChangeSize.value ? v === NOT_SET ? -1 : 1 : 0);
4856
- }
4857
- if (map.__ownerID) {
4858
- map.size = newSize;
4859
- map._root = newRoot;
4860
- map.__hash = undefined;
4861
- map.__altered = true;
4862
- return map;
4863
- }
4864
- return newRoot ? makeMap(newSize, newRoot) : emptyMap();
4865
- }
4866
-
4867
- function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
4868
- if (!node) {
4869
- if (value === NOT_SET) {
4870
- return node;
4871
- }
4872
- SetRef(didAlter);
4873
- SetRef(didChangeSize);
4874
- return new ValueNode(ownerID, keyHash, [key, value]);
4875
- }
4876
- return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);
4877
- }
4878
-
4879
- function isLeafNode(node) {
4880
- return node.constructor === ValueNode || node.constructor === HashCollisionNode;
4881
- }
4882
-
4883
- function mergeIntoNode(node, ownerID, shift, keyHash, entry) {
4884
- if (node.keyHash === keyHash) {
4885
- return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);
4886
- }
4887
-
4888
- var idx1 = (shift === 0 ? node.keyHash : node.keyHash >>> shift) & MASK;
4889
- var idx2 = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
4890
-
4891
- var newNode;
4892
- var nodes = idx1 === idx2 ?
4893
- [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :
4894
- ((newNode = new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode] : [newNode, node]);
4895
-
4896
- return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);
4897
- }
4898
-
4899
- function createNodes(ownerID, entries, key, value) {
4900
- if (!ownerID) {
4901
- ownerID = new OwnerID();
4902
- }
4903
- var node = new ValueNode(ownerID, hash(key), [key, value]);
4904
- for (var ii = 0; ii < entries.length; ii++) {
4905
- var entry = entries[ii];
4906
- node = node.update(ownerID, 0, undefined, entry[0], entry[1]);
4907
- }
4908
- return node;
4909
- }
4910
-
4911
- function packNodes(ownerID, nodes, count, excluding) {
4912
- var bitmap = 0;
4913
- var packedII = 0;
4914
- var packedNodes = new Array(count);
4915
- for (var ii = 0, bit = 1, len = nodes.length; ii < len; ii++, bit <<= 1) {
4916
- var node = nodes[ii];
4917
- if (node !== undefined && ii !== excluding) {
4918
- bitmap |= bit;
4919
- packedNodes[packedII++] = node;
4920
- }
4921
- }
4922
- return new BitmapIndexedNode(ownerID, bitmap, packedNodes);
4923
- }
4924
-
4925
- function expandNodes(ownerID, nodes, bitmap, including, node) {
4926
- var count = 0;
4927
- var expandedNodes = new Array(SIZE);
4928
- for (var ii = 0; bitmap !== 0; ii++, bitmap >>>= 1) {
4929
- expandedNodes[ii] = bitmap & 1 ? nodes[count++] : undefined;
4930
- }
4931
- expandedNodes[including] = node;
4932
- return new HashArrayMapNode(ownerID, count + 1, expandedNodes);
4933
- }
4934
-
4935
- function mergeIntoMapWith(map, merger, iterables) {
4936
- var iters = [];
4937
- for (var ii = 0; ii < iterables.length; ii++) {
4938
- var value = iterables[ii];
4939
- var iter = KeyedIterable(value);
4940
- if (!isIterable(value)) {
4941
- iter = iter.map(function(v ) {return fromJS(v)});
4942
- }
4943
- iters.push(iter);
4944
- }
4945
- return mergeIntoCollectionWith(map, merger, iters);
4946
- }
4947
-
4948
- function deepMerger(existing, value, key) {
4949
- return existing && existing.mergeDeep && isIterable(value) ?
4950
- existing.mergeDeep(value) :
4951
- is(existing, value) ? existing : value;
4952
- }
4953
-
4954
- function deepMergerWith(merger) {
4955
- return function(existing, value, key) {
4956
- if (existing && existing.mergeDeepWith && isIterable(value)) {
4957
- return existing.mergeDeepWith(merger, value);
4958
- }
4959
- var nextValue = merger(existing, value, key);
4960
- return is(existing, nextValue) ? existing : nextValue;
4961
- };
4962
- }
4963
-
4964
- function mergeIntoCollectionWith(collection, merger, iters) {
4965
- iters = iters.filter(function(x ) {return x.size !== 0});
4966
- if (iters.length === 0) {
4967
- return collection;
4968
- }
4969
- if (collection.size === 0 && !collection.__ownerID && iters.length === 1) {
4970
- return collection.constructor(iters[0]);
4971
- }
4972
- return collection.withMutations(function(collection ) {
4973
- var mergeIntoMap = merger ?
4974
- function(value, key) {
4975
- collection.update(key, NOT_SET, function(existing )
4976
- {return existing === NOT_SET ? value : merger(existing, value, key)}
4977
- );
4978
- } :
4979
- function(value, key) {
4980
- collection.set(key, value);
4981
- }
4982
- for (var ii = 0; ii < iters.length; ii++) {
4983
- iters[ii].forEach(mergeIntoMap);
4984
- }
4985
- });
4986
- }
4987
-
4988
- function updateInDeepMap(existing, keyPathIter, notSetValue, updater) {
4989
- var isNotSet = existing === NOT_SET;
4990
- var step = keyPathIter.next();
4991
- if (step.done) {
4992
- var existingValue = isNotSet ? notSetValue : existing;
4993
- var newValue = updater(existingValue);
4994
- return newValue === existingValue ? existing : newValue;
4995
- }
4996
- invariant(
4997
- isNotSet || (existing && existing.set),
4998
- 'invalid keyPath'
4999
- );
5000
- var key = step.value;
5001
- var nextExisting = isNotSet ? NOT_SET : existing.get(key, NOT_SET);
5002
- var nextUpdated = updateInDeepMap(
5003
- nextExisting,
5004
- keyPathIter,
5005
- notSetValue,
5006
- updater
5007
- );
5008
- return nextUpdated === nextExisting ? existing :
5009
- nextUpdated === NOT_SET ? existing.remove(key) :
5010
- (isNotSet ? emptyMap() : existing).set(key, nextUpdated);
5011
- }
5012
-
5013
- function popCount(x) {
5014
- x = x - ((x >> 1) & 0x55555555);
5015
- x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
5016
- x = (x + (x >> 4)) & 0x0f0f0f0f;
5017
- x = x + (x >> 8);
5018
- x = x + (x >> 16);
5019
- return x & 0x7f;
5020
- }
5021
-
5022
- function setIn(array, idx, val, canEdit) {
5023
- var newArray = canEdit ? array : arrCopy(array);
5024
- newArray[idx] = val;
5025
- return newArray;
5026
- }
5027
-
5028
- function spliceIn(array, idx, val, canEdit) {
5029
- var newLen = array.length + 1;
5030
- if (canEdit && idx + 1 === newLen) {
5031
- array[idx] = val;
5032
- return array;
5033
- }
5034
- var newArray = new Array(newLen);
5035
- var after = 0;
5036
- for (var ii = 0; ii < newLen; ii++) {
5037
- if (ii === idx) {
5038
- newArray[ii] = val;
5039
- after = -1;
5040
- } else {
5041
- newArray[ii] = array[ii + after];
5042
- }
5043
- }
5044
- return newArray;
5045
- }
5046
-
5047
- function spliceOut(array, idx, canEdit) {
5048
- var newLen = array.length - 1;
5049
- if (canEdit && idx === newLen) {
5050
- array.pop();
5051
- return array;
5052
- }
5053
- var newArray = new Array(newLen);
5054
- var after = 0;
5055
- for (var ii = 0; ii < newLen; ii++) {
5056
- if (ii === idx) {
5057
- after = 1;
5058
- }
5059
- newArray[ii] = array[ii + after];
5060
- }
5061
- return newArray;
5062
- }
5063
-
5064
- var MAX_ARRAY_MAP_SIZE = SIZE / 4;
5065
- var MAX_BITMAP_INDEXED_SIZE = SIZE / 2;
5066
- var MIN_HASH_ARRAY_MAP_SIZE = SIZE / 4;
5067
-
5068
- createClass(List, IndexedCollection);
5069
-
5070
- // @pragma Construction
5071
-
5072
- function List(value) {
5073
- var empty = emptyList();
5074
- if (value === null || value === undefined) {
5075
- return empty;
5076
- }
5077
- if (isList(value)) {
5078
- return value;
5079
- }
5080
- var iter = IndexedIterable(value);
5081
- var size = iter.size;
5082
- if (size === 0) {
5083
- return empty;
5084
- }
5085
- assertNotInfinite(size);
5086
- if (size > 0 && size < SIZE) {
5087
- return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));
5088
- }
5089
- return empty.withMutations(function(list ) {
5090
- list.setSize(size);
5091
- iter.forEach(function(v, i) {return list.set(i, v)});
5092
- });
5093
- }
5094
-
5095
- List.of = function(/*...values*/) {
5096
- return this(arguments);
5097
- };
5098
-
5099
- List.prototype.toString = function() {
5100
- return this.__toString('List [', ']');
5101
- };
5102
-
5103
- // @pragma Access
5104
-
5105
- List.prototype.get = function(index, notSetValue) {
5106
- index = wrapIndex(this, index);
5107
- if (index >= 0 && index < this.size) {
5108
- index += this._origin;
5109
- var node = listNodeFor(this, index);
5110
- return node && node.array[index & MASK];
5111
- }
5112
- return notSetValue;
5113
- };
5114
-
5115
- // @pragma Modification
5116
-
5117
- List.prototype.set = function(index, value) {
5118
- return updateList(this, index, value);
5119
- };
5120
-
5121
- List.prototype.remove = function(index) {
5122
- return !this.has(index) ? this :
5123
- index === 0 ? this.shift() :
5124
- index === this.size - 1 ? this.pop() :
5125
- this.splice(index, 1);
5126
- };
5127
-
5128
- List.prototype.insert = function(index, value) {
5129
- return this.splice(index, 0, value);
5130
- };
5131
-
5132
- List.prototype.clear = function() {
5133
- if (this.size === 0) {
5134
- return this;
5135
- }
5136
- if (this.__ownerID) {
5137
- this.size = this._origin = this._capacity = 0;
5138
- this._level = SHIFT;
5139
- this._root = this._tail = null;
5140
- this.__hash = undefined;
5141
- this.__altered = true;
5142
- return this;
5143
- }
5144
- return emptyList();
5145
- };
5146
-
5147
- List.prototype.push = function(/*...values*/) {
5148
- var values = arguments;
5149
- var oldSize = this.size;
5150
- return this.withMutations(function(list ) {
5151
- setListBounds(list, 0, oldSize + values.length);
5152
- for (var ii = 0; ii < values.length; ii++) {
5153
- list.set(oldSize + ii, values[ii]);
5154
- }
5155
- });
5156
- };
5157
-
5158
- List.prototype.pop = function() {
5159
- return setListBounds(this, 0, -1);
5160
- };
5161
-
5162
- List.prototype.unshift = function(/*...values*/) {
5163
- var values = arguments;
5164
- return this.withMutations(function(list ) {
5165
- setListBounds(list, -values.length);
5166
- for (var ii = 0; ii < values.length; ii++) {
5167
- list.set(ii, values[ii]);
5168
- }
5169
- });
5170
- };
5171
-
5172
- List.prototype.shift = function() {
5173
- return setListBounds(this, 1);
5174
- };
5175
-
5176
- // @pragma Composition
5177
-
5178
- List.prototype.merge = function(/*...iters*/) {
5179
- return mergeIntoListWith(this, undefined, arguments);
5180
- };
5181
-
5182
- List.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
5183
- return mergeIntoListWith(this, merger, iters);
5184
- };
5185
-
5186
- List.prototype.mergeDeep = function(/*...iters*/) {
5187
- return mergeIntoListWith(this, deepMerger, arguments);
5188
- };
5189
-
5190
- List.prototype.mergeDeepWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
5191
- return mergeIntoListWith(this, deepMergerWith(merger), iters);
5192
- };
5193
-
5194
- List.prototype.setSize = function(size) {
5195
- return setListBounds(this, 0, size);
5196
- };
5197
-
5198
- // @pragma Iteration
5199
-
5200
- List.prototype.slice = function(begin, end) {
5201
- var size = this.size;
5202
- if (wholeSlice(begin, end, size)) {
5203
- return this;
5204
- }
5205
- return setListBounds(
5206
- this,
5207
- resolveBegin(begin, size),
5208
- resolveEnd(end, size)
5209
- );
5210
- };
5211
-
5212
- List.prototype.__iterator = function(type, reverse) {
5213
- var index = 0;
5214
- var values = iterateList(this, reverse);
5215
- return new Iterator(function() {
5216
- var value = values();
5217
- return value === DONE ?
5218
- iteratorDone() :
5219
- iteratorValue(type, index++, value);
5220
- });
5221
- };
5222
-
5223
- List.prototype.__iterate = function(fn, reverse) {
5224
- var index = 0;
5225
- var values = iterateList(this, reverse);
5226
- var value;
5227
- while ((value = values()) !== DONE) {
5228
- if (fn(value, index++, this) === false) {
5229
- break;
5230
- }
5231
- }
5232
- return index;
5233
- };
5234
-
5235
- List.prototype.__ensureOwner = function(ownerID) {
5236
- if (ownerID === this.__ownerID) {
5237
- return this;
5238
- }
5239
- if (!ownerID) {
5240
- this.__ownerID = ownerID;
5241
- return this;
5242
- }
5243
- return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);
5244
- };
5245
-
5246
-
5247
- function isList(maybeList) {
5248
- return !!(maybeList && maybeList[IS_LIST_SENTINEL]);
5249
- }
5250
-
5251
- List.isList = isList;
5252
-
5253
- var IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
5254
-
5255
- var ListPrototype = List.prototype;
5256
- ListPrototype[IS_LIST_SENTINEL] = true;
5257
- ListPrototype[DELETE] = ListPrototype.remove;
5258
- ListPrototype.setIn = MapPrototype.setIn;
5259
- ListPrototype.deleteIn =
5260
- ListPrototype.removeIn = MapPrototype.removeIn;
5261
- ListPrototype.update = MapPrototype.update;
5262
- ListPrototype.updateIn = MapPrototype.updateIn;
5263
- ListPrototype.mergeIn = MapPrototype.mergeIn;
5264
- ListPrototype.mergeDeepIn = MapPrototype.mergeDeepIn;
5265
- ListPrototype.withMutations = MapPrototype.withMutations;
5266
- ListPrototype.asMutable = MapPrototype.asMutable;
5267
- ListPrototype.asImmutable = MapPrototype.asImmutable;
5268
- ListPrototype.wasAltered = MapPrototype.wasAltered;
5269
-
5270
-
5271
-
5272
- function VNode(array, ownerID) {
5273
- this.array = array;
5274
- this.ownerID = ownerID;
5275
- }
5276
-
5277
- // TODO: seems like these methods are very similar
5278
-
5279
- VNode.prototype.removeBefore = function(ownerID, level, index) {
5280
- if (index === level ? 1 << level : 0 || this.array.length === 0) {
5281
- return this;
5282
- }
5283
- var originIndex = (index >>> level) & MASK;
5284
- if (originIndex >= this.array.length) {
5285
- return new VNode([], ownerID);
5286
- }
5287
- var removingFirst = originIndex === 0;
5288
- var newChild;
5289
- if (level > 0) {
5290
- var oldChild = this.array[originIndex];
5291
- newChild = oldChild && oldChild.removeBefore(ownerID, level - SHIFT, index);
5292
- if (newChild === oldChild && removingFirst) {
5293
- return this;
5294
- }
5295
- }
5296
- if (removingFirst && !newChild) {
5297
- return this;
5298
- }
5299
- var editable = editableVNode(this, ownerID);
5300
- if (!removingFirst) {
5301
- for (var ii = 0; ii < originIndex; ii++) {
5302
- editable.array[ii] = undefined;
5303
- }
5304
- }
5305
- if (newChild) {
5306
- editable.array[originIndex] = newChild;
5307
- }
5308
- return editable;
5309
- };
5310
-
5311
- VNode.prototype.removeAfter = function(ownerID, level, index) {
5312
- if (index === (level ? 1 << level : 0) || this.array.length === 0) {
5313
- return this;
5314
- }
5315
- var sizeIndex = ((index - 1) >>> level) & MASK;
5316
- if (sizeIndex >= this.array.length) {
5317
- return this;
5318
- }
5319
-
5320
- var newChild;
5321
- if (level > 0) {
5322
- var oldChild = this.array[sizeIndex];
5323
- newChild = oldChild && oldChild.removeAfter(ownerID, level - SHIFT, index);
5324
- if (newChild === oldChild && sizeIndex === this.array.length - 1) {
5325
- return this;
5326
- }
5327
- }
5328
-
5329
- var editable = editableVNode(this, ownerID);
5330
- editable.array.splice(sizeIndex + 1);
5331
- if (newChild) {
5332
- editable.array[sizeIndex] = newChild;
5333
- }
5334
- return editable;
5335
- };
5336
-
5337
-
5338
-
5339
- var DONE = {};
5340
-
5341
- function iterateList(list, reverse) {
5342
- var left = list._origin;
5343
- var right = list._capacity;
5344
- var tailPos = getTailOffset(right);
5345
- var tail = list._tail;
5346
-
5347
- return iterateNodeOrLeaf(list._root, list._level, 0);
5348
-
5349
- function iterateNodeOrLeaf(node, level, offset) {
5350
- return level === 0 ?
5351
- iterateLeaf(node, offset) :
5352
- iterateNode(node, level, offset);
5353
- }
5354
-
5355
- function iterateLeaf(node, offset) {
5356
- var array = offset === tailPos ? tail && tail.array : node && node.array;
5357
- var from = offset > left ? 0 : left - offset;
5358
- var to = right - offset;
5359
- if (to > SIZE) {
5360
- to = SIZE;
5361
- }
5362
- return function() {
5363
- if (from === to) {
5364
- return DONE;
5365
- }
5366
- var idx = reverse ? --to : from++;
5367
- return array && array[idx];
5368
- };
5369
- }
5370
-
5371
- function iterateNode(node, level, offset) {
5372
- var values;
5373
- var array = node && node.array;
5374
- var from = offset > left ? 0 : (left - offset) >> level;
5375
- var to = ((right - offset) >> level) + 1;
5376
- if (to > SIZE) {
5377
- to = SIZE;
5378
- }
5379
- return function() {
5380
- do {
5381
- if (values) {
5382
- var value = values();
5383
- if (value !== DONE) {
5384
- return value;
5385
- }
5386
- values = null;
5387
- }
5388
- if (from === to) {
5389
- return DONE;
5390
- }
5391
- var idx = reverse ? --to : from++;
5392
- values = iterateNodeOrLeaf(
5393
- array && array[idx], level - SHIFT, offset + (idx << level)
5394
- );
5395
- } while (true);
5396
- };
5397
- }
5398
- }
5399
-
5400
- function makeList(origin, capacity, level, root, tail, ownerID, hash) {
5401
- var list = Object.create(ListPrototype);
5402
- list.size = capacity - origin;
5403
- list._origin = origin;
5404
- list._capacity = capacity;
5405
- list._level = level;
5406
- list._root = root;
5407
- list._tail = tail;
5408
- list.__ownerID = ownerID;
5409
- list.__hash = hash;
5410
- list.__altered = false;
5411
- return list;
5412
- }
5413
-
5414
- var EMPTY_LIST;
5415
- function emptyList() {
5416
- return EMPTY_LIST || (EMPTY_LIST = makeList(0, 0, SHIFT));
5417
- }
5418
-
5419
- function updateList(list, index, value) {
5420
- index = wrapIndex(list, index);
5421
-
5422
- if (index !== index) {
5423
- return list;
5424
- }
5425
-
5426
- if (index >= list.size || index < 0) {
5427
- return list.withMutations(function(list ) {
5428
- index < 0 ?
5429
- setListBounds(list, index).set(0, value) :
5430
- setListBounds(list, 0, index + 1).set(index, value)
5431
- });
5432
- }
5433
-
5434
- index += list._origin;
5435
-
5436
- var newTail = list._tail;
5437
- var newRoot = list._root;
5438
- var didAlter = MakeRef(DID_ALTER);
5439
- if (index >= getTailOffset(list._capacity)) {
5440
- newTail = updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);
5441
- } else {
5442
- newRoot = updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);
5443
- }
5444
-
5445
- if (!didAlter.value) {
5446
- return list;
5447
- }
5448
-
5449
- if (list.__ownerID) {
5450
- list._root = newRoot;
5451
- list._tail = newTail;
5452
- list.__hash = undefined;
5453
- list.__altered = true;
5454
- return list;
5455
- }
5456
- return makeList(list._origin, list._capacity, list._level, newRoot, newTail);
5457
- }
5458
-
5459
- function updateVNode(node, ownerID, level, index, value, didAlter) {
5460
- var idx = (index >>> level) & MASK;
5461
- var nodeHas = node && idx < node.array.length;
5462
- if (!nodeHas && value === undefined) {
5463
- return node;
5464
- }
5465
-
5466
- var newNode;
5467
-
5468
- if (level > 0) {
5469
- var lowerNode = node && node.array[idx];
5470
- var newLowerNode = updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);
5471
- if (newLowerNode === lowerNode) {
5472
- return node;
5473
- }
5474
- newNode = editableVNode(node, ownerID);
5475
- newNode.array[idx] = newLowerNode;
5476
- return newNode;
5477
- }
5478
-
5479
- if (nodeHas && node.array[idx] === value) {
5480
- return node;
5481
- }
5482
-
5483
- SetRef(didAlter);
5484
-
5485
- newNode = editableVNode(node, ownerID);
5486
- if (value === undefined && idx === newNode.array.length - 1) {
5487
- newNode.array.pop();
5488
- } else {
5489
- newNode.array[idx] = value;
5490
- }
5491
- return newNode;
5492
- }
5493
-
5494
- function editableVNode(node, ownerID) {
5495
- if (ownerID && node && ownerID === node.ownerID) {
5496
- return node;
5497
- }
5498
- return new VNode(node ? node.array.slice() : [], ownerID);
5499
- }
5500
-
5501
- function listNodeFor(list, rawIndex) {
5502
- if (rawIndex >= getTailOffset(list._capacity)) {
5503
- return list._tail;
5504
- }
5505
- if (rawIndex < 1 << (list._level + SHIFT)) {
5506
- var node = list._root;
5507
- var level = list._level;
5508
- while (node && level > 0) {
5509
- node = node.array[(rawIndex >>> level) & MASK];
5510
- level -= SHIFT;
5511
- }
5512
- return node;
5513
- }
5514
- }
5515
-
5516
- function setListBounds(list, begin, end) {
5517
- // Sanitize begin & end using this shorthand for ToInt32(argument)
5518
- // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
5519
- if (begin !== undefined) {
5520
- begin = begin | 0;
5521
- }
5522
- if (end !== undefined) {
5523
- end = end | 0;
5524
- }
5525
- var owner = list.__ownerID || new OwnerID();
5526
- var oldOrigin = list._origin;
5527
- var oldCapacity = list._capacity;
5528
- var newOrigin = oldOrigin + begin;
5529
- var newCapacity = end === undefined ? oldCapacity : end < 0 ? oldCapacity + end : oldOrigin + end;
5530
- if (newOrigin === oldOrigin && newCapacity === oldCapacity) {
5531
- return list;
5532
- }
5533
-
5534
- // If it's going to end after it starts, it's empty.
5535
- if (newOrigin >= newCapacity) {
5536
- return list.clear();
5537
- }
5538
-
5539
- var newLevel = list._level;
5540
- var newRoot = list._root;
5541
-
5542
- // New origin might need creating a higher root.
5543
- var offsetShift = 0;
5544
- while (newOrigin + offsetShift < 0) {
5545
- newRoot = new VNode(newRoot && newRoot.array.length ? [undefined, newRoot] : [], owner);
5546
- newLevel += SHIFT;
5547
- offsetShift += 1 << newLevel;
5548
- }
5549
- if (offsetShift) {
5550
- newOrigin += offsetShift;
5551
- oldOrigin += offsetShift;
5552
- newCapacity += offsetShift;
5553
- oldCapacity += offsetShift;
5554
- }
5555
-
5556
- var oldTailOffset = getTailOffset(oldCapacity);
5557
- var newTailOffset = getTailOffset(newCapacity);
5558
-
5559
- // New size might need creating a higher root.
5560
- while (newTailOffset >= 1 << (newLevel + SHIFT)) {
5561
- newRoot = new VNode(newRoot && newRoot.array.length ? [newRoot] : [], owner);
5562
- newLevel += SHIFT;
5563
- }
5564
-
5565
- // Locate or create the new tail.
5566
- var oldTail = list._tail;
5567
- var newTail = newTailOffset < oldTailOffset ?
5568
- listNodeFor(list, newCapacity - 1) :
5569
- newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail;
5570
-
5571
- // Merge Tail into tree.
5572
- if (oldTail && newTailOffset > oldTailOffset && newOrigin < oldCapacity && oldTail.array.length) {
5573
- newRoot = editableVNode(newRoot, owner);
5574
- var node = newRoot;
5575
- for (var level = newLevel; level > SHIFT; level -= SHIFT) {
5576
- var idx = (oldTailOffset >>> level) & MASK;
5577
- node = node.array[idx] = editableVNode(node.array[idx], owner);
5578
- }
5579
- node.array[(oldTailOffset >>> SHIFT) & MASK] = oldTail;
5580
- }
5581
-
5582
- // If the size has been reduced, there's a chance the tail needs to be trimmed.
5583
- if (newCapacity < oldCapacity) {
5584
- newTail = newTail && newTail.removeAfter(owner, 0, newCapacity);
5585
- }
5586
-
5587
- // If the new origin is within the tail, then we do not need a root.
5588
- if (newOrigin >= newTailOffset) {
5589
- newOrigin -= newTailOffset;
5590
- newCapacity -= newTailOffset;
5591
- newLevel = SHIFT;
5592
- newRoot = null;
5593
- newTail = newTail && newTail.removeBefore(owner, 0, newOrigin);
5594
-
5595
- // Otherwise, if the root has been trimmed, garbage collect.
5596
- } else if (newOrigin > oldOrigin || newTailOffset < oldTailOffset) {
5597
- offsetShift = 0;
5598
-
5599
- // Identify the new top root node of the subtree of the old root.
5600
- while (newRoot) {
5601
- var beginIndex = (newOrigin >>> newLevel) & MASK;
5602
- if (beginIndex !== (newTailOffset >>> newLevel) & MASK) {
5603
- break;
5604
- }
5605
- if (beginIndex) {
5606
- offsetShift += (1 << newLevel) * beginIndex;
5607
- }
5608
- newLevel -= SHIFT;
5609
- newRoot = newRoot.array[beginIndex];
5610
- }
5611
-
5612
- // Trim the new sides of the new root.
5613
- if (newRoot && newOrigin > oldOrigin) {
5614
- newRoot = newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);
5615
- }
5616
- if (newRoot && newTailOffset < oldTailOffset) {
5617
- newRoot = newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);
5618
- }
5619
- if (offsetShift) {
5620
- newOrigin -= offsetShift;
5621
- newCapacity -= offsetShift;
5622
- }
5623
- }
5624
-
5625
- if (list.__ownerID) {
5626
- list.size = newCapacity - newOrigin;
5627
- list._origin = newOrigin;
5628
- list._capacity = newCapacity;
5629
- list._level = newLevel;
5630
- list._root = newRoot;
5631
- list._tail = newTail;
5632
- list.__hash = undefined;
5633
- list.__altered = true;
5634
- return list;
5635
- }
5636
- return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);
5637
- }
5638
-
5639
- function mergeIntoListWith(list, merger, iterables) {
5640
- var iters = [];
5641
- var maxSize = 0;
5642
- for (var ii = 0; ii < iterables.length; ii++) {
5643
- var value = iterables[ii];
5644
- var iter = IndexedIterable(value);
5645
- if (iter.size > maxSize) {
5646
- maxSize = iter.size;
5647
- }
5648
- if (!isIterable(value)) {
5649
- iter = iter.map(function(v ) {return fromJS(v)});
5650
- }
5651
- iters.push(iter);
5652
- }
5653
- if (maxSize > list.size) {
5654
- list = list.setSize(maxSize);
5655
- }
5656
- return mergeIntoCollectionWith(list, merger, iters);
5657
- }
5658
-
5659
- function getTailOffset(size) {
5660
- return size < SIZE ? 0 : (((size - 1) >>> SHIFT) << SHIFT);
5661
- }
5662
-
5663
- createClass(OrderedMap, Map);
5664
-
5665
- // @pragma Construction
5666
-
5667
- function OrderedMap(value) {
5668
- return value === null || value === undefined ? emptyOrderedMap() :
5669
- isOrderedMap(value) ? value :
5670
- emptyOrderedMap().withMutations(function(map ) {
5671
- var iter = KeyedIterable(value);
5672
- assertNotInfinite(iter.size);
5673
- iter.forEach(function(v, k) {return map.set(k, v)});
5674
- });
5675
- }
5676
-
5677
- OrderedMap.of = function(/*...values*/) {
5678
- return this(arguments);
5679
- };
5680
-
5681
- OrderedMap.prototype.toString = function() {
5682
- return this.__toString('OrderedMap {', '}');
5683
- };
5684
-
5685
- // @pragma Access
5686
-
5687
- OrderedMap.prototype.get = function(k, notSetValue) {
5688
- var index = this._map.get(k);
5689
- return index !== undefined ? this._list.get(index)[1] : notSetValue;
5690
- };
5691
-
5692
- // @pragma Modification
5693
-
5694
- OrderedMap.prototype.clear = function() {
5695
- if (this.size === 0) {
5696
- return this;
5697
- }
5698
- if (this.__ownerID) {
5699
- this.size = 0;
5700
- this._map.clear();
5701
- this._list.clear();
5702
- return this;
5703
- }
5704
- return emptyOrderedMap();
5705
- };
5706
-
5707
- OrderedMap.prototype.set = function(k, v) {
5708
- return updateOrderedMap(this, k, v);
5709
- };
5710
-
5711
- OrderedMap.prototype.remove = function(k) {
5712
- return updateOrderedMap(this, k, NOT_SET);
5713
- };
5714
-
5715
- OrderedMap.prototype.wasAltered = function() {
5716
- return this._map.wasAltered() || this._list.wasAltered();
5717
- };
5718
-
5719
- OrderedMap.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5720
- return this._list.__iterate(
5721
- function(entry ) {return entry && fn(entry[1], entry[0], this$0)},
5722
- reverse
5723
- );
5724
- };
5725
-
5726
- OrderedMap.prototype.__iterator = function(type, reverse) {
5727
- return this._list.fromEntrySeq().__iterator(type, reverse);
5728
- };
5729
-
5730
- OrderedMap.prototype.__ensureOwner = function(ownerID) {
5731
- if (ownerID === this.__ownerID) {
5732
- return this;
5733
- }
5734
- var newMap = this._map.__ensureOwner(ownerID);
5735
- var newList = this._list.__ensureOwner(ownerID);
5736
- if (!ownerID) {
5737
- this.__ownerID = ownerID;
5738
- this._map = newMap;
5739
- this._list = newList;
5740
- return this;
5741
- }
5742
- return makeOrderedMap(newMap, newList, ownerID, this.__hash);
5743
- };
5744
-
5745
-
5746
- function isOrderedMap(maybeOrderedMap) {
5747
- return isMap(maybeOrderedMap) && isOrdered(maybeOrderedMap);
5748
- }
5749
-
5750
- OrderedMap.isOrderedMap = isOrderedMap;
5751
-
5752
- OrderedMap.prototype[IS_ORDERED_SENTINEL] = true;
5753
- OrderedMap.prototype[DELETE] = OrderedMap.prototype.remove;
5754
-
5755
-
5756
-
5757
- function makeOrderedMap(map, list, ownerID, hash) {
5758
- var omap = Object.create(OrderedMap.prototype);
5759
- omap.size = map ? map.size : 0;
5760
- omap._map = map;
5761
- omap._list = list;
5762
- omap.__ownerID = ownerID;
5763
- omap.__hash = hash;
5764
- return omap;
5765
- }
5766
-
5767
- var EMPTY_ORDERED_MAP;
5768
- function emptyOrderedMap() {
5769
- return EMPTY_ORDERED_MAP || (EMPTY_ORDERED_MAP = makeOrderedMap(emptyMap(), emptyList()));
5770
- }
5771
-
5772
- function updateOrderedMap(omap, k, v) {
5773
- var map = omap._map;
5774
- var list = omap._list;
5775
- var i = map.get(k);
5776
- var has = i !== undefined;
5777
- var newMap;
5778
- var newList;
5779
- if (v === NOT_SET) { // removed
5780
- if (!has) {
5781
- return omap;
5782
- }
5783
- if (list.size >= SIZE && list.size >= map.size * 2) {
5784
- newList = list.filter(function(entry, idx) {return entry !== undefined && i !== idx});
5785
- newMap = newList.toKeyedSeq().map(function(entry ) {return entry[0]}).flip().toMap();
5786
- if (omap.__ownerID) {
5787
- newMap.__ownerID = newList.__ownerID = omap.__ownerID;
5788
- }
5789
- } else {
5790
- newMap = map.remove(k);
5791
- newList = i === list.size - 1 ? list.pop() : list.set(i, undefined);
5792
- }
5793
- } else {
5794
- if (has) {
5795
- if (v === list.get(i)[1]) {
5796
- return omap;
5797
- }
5798
- newMap = map;
5799
- newList = list.set(i, [k, v]);
5800
- } else {
5801
- newMap = map.set(k, list.size);
5802
- newList = list.set(list.size, [k, v]);
5803
- }
5804
- }
5805
- if (omap.__ownerID) {
5806
- omap.size = newMap.size;
5807
- omap._map = newMap;
5808
- omap._list = newList;
5809
- omap.__hash = undefined;
5810
- return omap;
5811
- }
5812
- return makeOrderedMap(newMap, newList);
5813
- }
5814
-
5815
- createClass(ToKeyedSequence, KeyedSeq);
5816
- function ToKeyedSequence(indexed, useKeys) {
5817
- this._iter = indexed;
5818
- this._useKeys = useKeys;
5819
- this.size = indexed.size;
5820
- }
5821
-
5822
- ToKeyedSequence.prototype.get = function(key, notSetValue) {
5823
- return this._iter.get(key, notSetValue);
5824
- };
5825
-
5826
- ToKeyedSequence.prototype.has = function(key) {
5827
- return this._iter.has(key);
5828
- };
5829
-
5830
- ToKeyedSequence.prototype.valueSeq = function() {
5831
- return this._iter.valueSeq();
5832
- };
5833
-
5834
- ToKeyedSequence.prototype.reverse = function() {var this$0 = this;
5835
- var reversedSequence = reverseFactory(this, true);
5836
- if (!this._useKeys) {
5837
- reversedSequence.valueSeq = function() {return this$0._iter.toSeq().reverse()};
5838
- }
5839
- return reversedSequence;
5840
- };
5841
-
5842
- ToKeyedSequence.prototype.map = function(mapper, context) {var this$0 = this;
5843
- var mappedSequence = mapFactory(this, mapper, context);
5844
- if (!this._useKeys) {
5845
- mappedSequence.valueSeq = function() {return this$0._iter.toSeq().map(mapper, context)};
5846
- }
5847
- return mappedSequence;
5848
- };
5849
-
5850
- ToKeyedSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5851
- var ii;
5852
- return this._iter.__iterate(
5853
- this._useKeys ?
5854
- function(v, k) {return fn(v, k, this$0)} :
5855
- ((ii = reverse ? resolveSize(this) : 0),
5856
- function(v ) {return fn(v, reverse ? --ii : ii++, this$0)}),
5857
- reverse
5858
- );
5859
- };
5860
-
5861
- ToKeyedSequence.prototype.__iterator = function(type, reverse) {
5862
- if (this._useKeys) {
5863
- return this._iter.__iterator(type, reverse);
5864
- }
5865
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
5866
- var ii = reverse ? resolveSize(this) : 0;
5867
- return new Iterator(function() {
5868
- var step = iterator.next();
5869
- return step.done ? step :
5870
- iteratorValue(type, reverse ? --ii : ii++, step.value, step);
5871
- });
5872
- };
5873
-
5874
- ToKeyedSequence.prototype[IS_ORDERED_SENTINEL] = true;
5875
-
5876
-
5877
- createClass(ToIndexedSequence, IndexedSeq);
5878
- function ToIndexedSequence(iter) {
5879
- this._iter = iter;
5880
- this.size = iter.size;
5881
- }
5882
-
5883
- ToIndexedSequence.prototype.includes = function(value) {
5884
- return this._iter.includes(value);
5885
- };
5886
-
5887
- ToIndexedSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5888
- var iterations = 0;
5889
- return this._iter.__iterate(function(v ) {return fn(v, iterations++, this$0)}, reverse);
5890
- };
5891
-
5892
- ToIndexedSequence.prototype.__iterator = function(type, reverse) {
5893
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
5894
- var iterations = 0;
5895
- return new Iterator(function() {
5896
- var step = iterator.next();
5897
- return step.done ? step :
5898
- iteratorValue(type, iterations++, step.value, step)
5899
- });
5900
- };
5901
-
5902
-
5903
-
5904
- createClass(ToSetSequence, SetSeq);
5905
- function ToSetSequence(iter) {
5906
- this._iter = iter;
5907
- this.size = iter.size;
5908
- }
5909
-
5910
- ToSetSequence.prototype.has = function(key) {
5911
- return this._iter.includes(key);
5912
- };
5913
-
5914
- ToSetSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5915
- return this._iter.__iterate(function(v ) {return fn(v, v, this$0)}, reverse);
5916
- };
5917
-
5918
- ToSetSequence.prototype.__iterator = function(type, reverse) {
5919
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
5920
- return new Iterator(function() {
5921
- var step = iterator.next();
5922
- return step.done ? step :
5923
- iteratorValue(type, step.value, step.value, step);
5924
- });
5925
- };
5926
-
5927
-
5928
-
5929
- createClass(FromEntriesSequence, KeyedSeq);
5930
- function FromEntriesSequence(entries) {
5931
- this._iter = entries;
5932
- this.size = entries.size;
5933
- }
5934
-
5935
- FromEntriesSequence.prototype.entrySeq = function() {
5936
- return this._iter.toSeq();
5937
- };
5938
-
5939
- FromEntriesSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5940
- return this._iter.__iterate(function(entry ) {
5941
- // Check if entry exists first so array access doesn't throw for holes
5942
- // in the parent iteration.
5943
- if (entry) {
5944
- validateEntry(entry);
5945
- var indexedIterable = isIterable(entry);
5946
- return fn(
5947
- indexedIterable ? entry.get(1) : entry[1],
5948
- indexedIterable ? entry.get(0) : entry[0],
5949
- this$0
5950
- );
5951
- }
5952
- }, reverse);
5953
- };
5954
-
5955
- FromEntriesSequence.prototype.__iterator = function(type, reverse) {
5956
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
5957
- return new Iterator(function() {
5958
- while (true) {
5959
- var step = iterator.next();
5960
- if (step.done) {
5961
- return step;
5962
- }
5963
- var entry = step.value;
5964
- // Check if entry exists first so array access doesn't throw for holes
5965
- // in the parent iteration.
5966
- if (entry) {
5967
- validateEntry(entry);
5968
- var indexedIterable = isIterable(entry);
5969
- return iteratorValue(
5970
- type,
5971
- indexedIterable ? entry.get(0) : entry[0],
5972
- indexedIterable ? entry.get(1) : entry[1],
5973
- step
5974
- );
5975
- }
5976
- }
5977
- });
5978
- };
5979
-
5980
-
5981
- ToIndexedSequence.prototype.cacheResult =
5982
- ToKeyedSequence.prototype.cacheResult =
5983
- ToSetSequence.prototype.cacheResult =
5984
- FromEntriesSequence.prototype.cacheResult =
5985
- cacheResultThrough;
5986
-
5987
-
5988
- function flipFactory(iterable) {
5989
- var flipSequence = makeSequence(iterable);
5990
- flipSequence._iter = iterable;
5991
- flipSequence.size = iterable.size;
5992
- flipSequence.flip = function() {return iterable};
5993
- flipSequence.reverse = function () {
5994
- var reversedSequence = iterable.reverse.apply(this); // super.reverse()
5995
- reversedSequence.flip = function() {return iterable.reverse()};
5996
- return reversedSequence;
5997
- };
5998
- flipSequence.has = function(key ) {return iterable.includes(key)};
5999
- flipSequence.includes = function(key ) {return iterable.has(key)};
6000
- flipSequence.cacheResult = cacheResultThrough;
6001
- flipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
6002
- return iterable.__iterate(function(v, k) {return fn(k, v, this$0) !== false}, reverse);
6003
- }
6004
- flipSequence.__iteratorUncached = function(type, reverse) {
6005
- if (type === ITERATE_ENTRIES) {
6006
- var iterator = iterable.__iterator(type, reverse);
6007
- return new Iterator(function() {
6008
- var step = iterator.next();
6009
- if (!step.done) {
6010
- var k = step.value[0];
6011
- step.value[0] = step.value[1];
6012
- step.value[1] = k;
6013
- }
6014
- return step;
6015
- });
6016
- }
6017
- return iterable.__iterator(
6018
- type === ITERATE_VALUES ? ITERATE_KEYS : ITERATE_VALUES,
6019
- reverse
6020
- );
6021
- }
6022
- return flipSequence;
6023
- }
6024
-
6025
-
6026
- function mapFactory(iterable, mapper, context) {
6027
- var mappedSequence = makeSequence(iterable);
6028
- mappedSequence.size = iterable.size;
6029
- mappedSequence.has = function(key ) {return iterable.has(key)};
6030
- mappedSequence.get = function(key, notSetValue) {
6031
- var v = iterable.get(key, NOT_SET);
6032
- return v === NOT_SET ?
6033
- notSetValue :
6034
- mapper.call(context, v, key, iterable);
6035
- };
6036
- mappedSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
6037
- return iterable.__iterate(
6038
- function(v, k, c) {return fn(mapper.call(context, v, k, c), k, this$0) !== false},
6039
- reverse
6040
- );
6041
- }
6042
- mappedSequence.__iteratorUncached = function (type, reverse) {
6043
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
6044
- return new Iterator(function() {
6045
- var step = iterator.next();
6046
- if (step.done) {
6047
- return step;
6048
- }
6049
- var entry = step.value;
6050
- var key = entry[0];
6051
- return iteratorValue(
6052
- type,
6053
- key,
6054
- mapper.call(context, entry[1], key, iterable),
6055
- step
6056
- );
6057
- });
6058
- }
6059
- return mappedSequence;
6060
- }
6061
-
6062
-
6063
- function reverseFactory(iterable, useKeys) {
6064
- var reversedSequence = makeSequence(iterable);
6065
- reversedSequence._iter = iterable;
6066
- reversedSequence.size = iterable.size;
6067
- reversedSequence.reverse = function() {return iterable};
6068
- if (iterable.flip) {
6069
- reversedSequence.flip = function () {
6070
- var flipSequence = flipFactory(iterable);
6071
- flipSequence.reverse = function() {return iterable.flip()};
6072
- return flipSequence;
6073
- };
6074
- }
6075
- reversedSequence.get = function(key, notSetValue)
6076
- {return iterable.get(useKeys ? key : -1 - key, notSetValue)};
6077
- reversedSequence.has = function(key )
6078
- {return iterable.has(useKeys ? key : -1 - key)};
6079
- reversedSequence.includes = function(value ) {return iterable.includes(value)};
6080
- reversedSequence.cacheResult = cacheResultThrough;
6081
- reversedSequence.__iterate = function (fn, reverse) {var this$0 = this;
6082
- return iterable.__iterate(function(v, k) {return fn(v, k, this$0)}, !reverse);
6083
- };
6084
- reversedSequence.__iterator =
6085
- function(type, reverse) {return iterable.__iterator(type, !reverse)};
6086
- return reversedSequence;
6087
- }
6088
-
6089
-
6090
- function filterFactory(iterable, predicate, context, useKeys) {
6091
- var filterSequence = makeSequence(iterable);
6092
- if (useKeys) {
6093
- filterSequence.has = function(key ) {
6094
- var v = iterable.get(key, NOT_SET);
6095
- return v !== NOT_SET && !!predicate.call(context, v, key, iterable);
6096
- };
6097
- filterSequence.get = function(key, notSetValue) {
6098
- var v = iterable.get(key, NOT_SET);
6099
- return v !== NOT_SET && predicate.call(context, v, key, iterable) ?
6100
- v : notSetValue;
6101
- };
6102
- }
6103
- filterSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
6104
- var iterations = 0;
6105
- iterable.__iterate(function(v, k, c) {
6106
- if (predicate.call(context, v, k, c)) {
6107
- iterations++;
6108
- return fn(v, useKeys ? k : iterations - 1, this$0);
6109
- }
6110
- }, reverse);
6111
- return iterations;
6112
- };
6113
- filterSequence.__iteratorUncached = function (type, reverse) {
6114
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
6115
- var iterations = 0;
6116
- return new Iterator(function() {
6117
- while (true) {
6118
- var step = iterator.next();
6119
- if (step.done) {
6120
- return step;
6121
- }
6122
- var entry = step.value;
6123
- var key = entry[0];
6124
- var value = entry[1];
6125
- if (predicate.call(context, value, key, iterable)) {
6126
- return iteratorValue(type, useKeys ? key : iterations++, value, step);
6127
- }
6128
- }
6129
- });
6130
- }
6131
- return filterSequence;
6132
- }
6133
-
6134
-
6135
- function countByFactory(iterable, grouper, context) {
6136
- var groups = Map().asMutable();
6137
- iterable.__iterate(function(v, k) {
6138
- groups.update(
6139
- grouper.call(context, v, k, iterable),
6140
- 0,
6141
- function(a ) {return a + 1}
6142
- );
6143
- });
6144
- return groups.asImmutable();
6145
- }
6146
-
6147
-
6148
- function groupByFactory(iterable, grouper, context) {
6149
- var isKeyedIter = isKeyed(iterable);
6150
- var groups = (isOrdered(iterable) ? OrderedMap() : Map()).asMutable();
6151
- iterable.__iterate(function(v, k) {
6152
- groups.update(
6153
- grouper.call(context, v, k, iterable),
6154
- function(a ) {return (a = a || [], a.push(isKeyedIter ? [k, v] : v), a)}
6155
- );
6156
- });
6157
- var coerce = iterableClass(iterable);
6158
- return groups.map(function(arr ) {return reify(iterable, coerce(arr))});
6159
- }
6160
-
6161
-
6162
- function sliceFactory(iterable, begin, end, useKeys) {
6163
- var originalSize = iterable.size;
6164
-
6165
- // Sanitize begin & end using this shorthand for ToInt32(argument)
6166
- // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
6167
- if (begin !== undefined) {
6168
- begin = begin | 0;
6169
- }
6170
- if (end !== undefined) {
6171
- if (end === Infinity) {
6172
- end = originalSize;
6173
- } else {
6174
- end = end | 0;
6175
- }
6176
- }
6177
-
6178
- if (wholeSlice(begin, end, originalSize)) {
6179
- return iterable;
6180
- }
6181
-
6182
- var resolvedBegin = resolveBegin(begin, originalSize);
6183
- var resolvedEnd = resolveEnd(end, originalSize);
6184
-
6185
- // begin or end will be NaN if they were provided as negative numbers and
6186
- // this iterable's size is unknown. In that case, cache first so there is
6187
- // a known size and these do not resolve to NaN.
6188
- if (resolvedBegin !== resolvedBegin || resolvedEnd !== resolvedEnd) {
6189
- return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);
6190
- }
6191
-
6192
- // Note: resolvedEnd is undefined when the original sequence's length is
6193
- // unknown and this slice did not supply an end and should contain all
6194
- // elements after resolvedBegin.
6195
- // In that case, resolvedSize will be NaN and sliceSize will remain undefined.
6196
- var resolvedSize = resolvedEnd - resolvedBegin;
6197
- var sliceSize;
6198
- if (resolvedSize === resolvedSize) {
6199
- sliceSize = resolvedSize < 0 ? 0 : resolvedSize;
6200
- }
6201
-
6202
- var sliceSeq = makeSequence(iterable);
6203
-
6204
- // If iterable.size is undefined, the size of the realized sliceSeq is
6205
- // unknown at this point unless the number of items to slice is 0
6206
- sliceSeq.size = sliceSize === 0 ? sliceSize : iterable.size && sliceSize || undefined;
6207
-
6208
- if (!useKeys && isSeq(iterable) && sliceSize >= 0) {
6209
- sliceSeq.get = function (index, notSetValue) {
6210
- index = wrapIndex(this, index);
6211
- return index >= 0 && index < sliceSize ?
6212
- iterable.get(index + resolvedBegin, notSetValue) :
6213
- notSetValue;
6214
- }
6215
- }
6216
-
6217
- sliceSeq.__iterateUncached = function(fn, reverse) {var this$0 = this;
6218
- if (sliceSize === 0) {
6219
- return 0;
6220
- }
6221
- if (reverse) {
6222
- return this.cacheResult().__iterate(fn, reverse);
6223
- }
6224
- var skipped = 0;
6225
- var isSkipping = true;
6226
- var iterations = 0;
6227
- iterable.__iterate(function(v, k) {
6228
- if (!(isSkipping && (isSkipping = skipped++ < resolvedBegin))) {
6229
- iterations++;
6230
- return fn(v, useKeys ? k : iterations - 1, this$0) !== false &&
6231
- iterations !== sliceSize;
6232
- }
6233
- });
6234
- return iterations;
6235
- };
6236
-
6237
- sliceSeq.__iteratorUncached = function(type, reverse) {
6238
- if (sliceSize !== 0 && reverse) {
6239
- return this.cacheResult().__iterator(type, reverse);
6240
- }
6241
- // Don't bother instantiating parent iterator if taking 0.
6242
- var iterator = sliceSize !== 0 && iterable.__iterator(type, reverse);
6243
- var skipped = 0;
6244
- var iterations = 0;
6245
- return new Iterator(function() {
6246
- while (skipped++ < resolvedBegin) {
6247
- iterator.next();
6248
- }
6249
- if (++iterations > sliceSize) {
6250
- return iteratorDone();
6251
- }
6252
- var step = iterator.next();
6253
- if (useKeys || type === ITERATE_VALUES) {
6254
- return step;
6255
- } else if (type === ITERATE_KEYS) {
6256
- return iteratorValue(type, iterations - 1, undefined, step);
6257
- } else {
6258
- return iteratorValue(type, iterations - 1, step.value[1], step);
6259
- }
6260
- });
6261
- }
6262
-
6263
- return sliceSeq;
6264
- }
6265
-
6266
-
6267
- function takeWhileFactory(iterable, predicate, context) {
6268
- var takeSequence = makeSequence(iterable);
6269
- takeSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
6270
- if (reverse) {
6271
- return this.cacheResult().__iterate(fn, reverse);
6272
- }
6273
- var iterations = 0;
6274
- iterable.__iterate(function(v, k, c)
6275
- {return predicate.call(context, v, k, c) && ++iterations && fn(v, k, this$0)}
6276
- );
6277
- return iterations;
6278
- };
6279
- takeSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
6280
- if (reverse) {
6281
- return this.cacheResult().__iterator(type, reverse);
6282
- }
6283
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
6284
- var iterating = true;
6285
- return new Iterator(function() {
6286
- if (!iterating) {
6287
- return iteratorDone();
6288
- }
6289
- var step = iterator.next();
6290
- if (step.done) {
6291
- return step;
6292
- }
6293
- var entry = step.value;
6294
- var k = entry[0];
6295
- var v = entry[1];
6296
- if (!predicate.call(context, v, k, this$0)) {
6297
- iterating = false;
6298
- return iteratorDone();
6299
- }
6300
- return type === ITERATE_ENTRIES ? step :
6301
- iteratorValue(type, k, v, step);
6302
- });
6303
- };
6304
- return takeSequence;
6305
- }
6306
-
6307
-
6308
- function skipWhileFactory(iterable, predicate, context, useKeys) {
6309
- var skipSequence = makeSequence(iterable);
6310
- skipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
6311
- if (reverse) {
6312
- return this.cacheResult().__iterate(fn, reverse);
6313
- }
6314
- var isSkipping = true;
6315
- var iterations = 0;
6316
- iterable.__iterate(function(v, k, c) {
6317
- if (!(isSkipping && (isSkipping = predicate.call(context, v, k, c)))) {
6318
- iterations++;
6319
- return fn(v, useKeys ? k : iterations - 1, this$0);
6320
- }
6321
- });
6322
- return iterations;
6323
- };
6324
- skipSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
6325
- if (reverse) {
6326
- return this.cacheResult().__iterator(type, reverse);
6327
- }
6328
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
6329
- var skipping = true;
6330
- var iterations = 0;
6331
- return new Iterator(function() {
6332
- var step, k, v;
6333
- do {
6334
- step = iterator.next();
6335
- if (step.done) {
6336
- if (useKeys || type === ITERATE_VALUES) {
6337
- return step;
6338
- } else if (type === ITERATE_KEYS) {
6339
- return iteratorValue(type, iterations++, undefined, step);
6340
- } else {
6341
- return iteratorValue(type, iterations++, step.value[1], step);
6342
- }
6343
- }
6344
- var entry = step.value;
6345
- k = entry[0];
6346
- v = entry[1];
6347
- skipping && (skipping = predicate.call(context, v, k, this$0));
6348
- } while (skipping);
6349
- return type === ITERATE_ENTRIES ? step :
6350
- iteratorValue(type, k, v, step);
6351
- });
6352
- };
6353
- return skipSequence;
6354
- }
6355
-
6356
-
6357
- function concatFactory(iterable, values) {
6358
- var isKeyedIterable = isKeyed(iterable);
6359
- var iters = [iterable].concat(values).map(function(v ) {
6360
- if (!isIterable(v)) {
6361
- v = isKeyedIterable ?
6362
- keyedSeqFromValue(v) :
6363
- indexedSeqFromValue(Array.isArray(v) ? v : [v]);
6364
- } else if (isKeyedIterable) {
6365
- v = KeyedIterable(v);
6366
- }
6367
- return v;
6368
- }).filter(function(v ) {return v.size !== 0});
6369
-
6370
- if (iters.length === 0) {
6371
- return iterable;
6372
- }
6373
-
6374
- if (iters.length === 1) {
6375
- var singleton = iters[0];
6376
- if (singleton === iterable ||
6377
- isKeyedIterable && isKeyed(singleton) ||
6378
- isIndexed(iterable) && isIndexed(singleton)) {
6379
- return singleton;
6380
- }
6381
- }
6382
-
6383
- var concatSeq = new ArraySeq(iters);
6384
- if (isKeyedIterable) {
6385
- concatSeq = concatSeq.toKeyedSeq();
6386
- } else if (!isIndexed(iterable)) {
6387
- concatSeq = concatSeq.toSetSeq();
6388
- }
6389
- concatSeq = concatSeq.flatten(true);
6390
- concatSeq.size = iters.reduce(
6391
- function(sum, seq) {
6392
- if (sum !== undefined) {
6393
- var size = seq.size;
6394
- if (size !== undefined) {
6395
- return sum + size;
6396
- }
6397
- }
6398
- },
6399
- 0
6400
- );
6401
- return concatSeq;
6402
- }
6403
-
6404
-
6405
- function flattenFactory(iterable, depth, useKeys) {
6406
- var flatSequence = makeSequence(iterable);
6407
- flatSequence.__iterateUncached = function(fn, reverse) {
6408
- var iterations = 0;
6409
- var stopped = false;
6410
- function flatDeep(iter, currentDepth) {var this$0 = this;
6411
- iter.__iterate(function(v, k) {
6412
- if ((!depth || currentDepth < depth) && isIterable(v)) {
6413
- flatDeep(v, currentDepth + 1);
6414
- } else if (fn(v, useKeys ? k : iterations++, this$0) === false) {
6415
- stopped = true;
6416
- }
6417
- return !stopped;
6418
- }, reverse);
6419
- }
6420
- flatDeep(iterable, 0);
6421
- return iterations;
6422
- }
6423
- flatSequence.__iteratorUncached = function(type, reverse) {
6424
- var iterator = iterable.__iterator(type, reverse);
6425
- var stack = [];
6426
- var iterations = 0;
6427
- return new Iterator(function() {
6428
- while (iterator) {
6429
- var step = iterator.next();
6430
- if (step.done !== false) {
6431
- iterator = stack.pop();
6432
- continue;
6433
- }
6434
- var v = step.value;
6435
- if (type === ITERATE_ENTRIES) {
6436
- v = v[1];
6437
- }
6438
- if ((!depth || stack.length < depth) && isIterable(v)) {
6439
- stack.push(iterator);
6440
- iterator = v.__iterator(type, reverse);
6441
- } else {
6442
- return useKeys ? step : iteratorValue(type, iterations++, v, step);
6443
- }
6444
- }
6445
- return iteratorDone();
6446
- });
6447
- }
6448
- return flatSequence;
6449
- }
6450
-
6451
-
6452
- function flatMapFactory(iterable, mapper, context) {
6453
- var coerce = iterableClass(iterable);
6454
- return iterable.toSeq().map(
6455
- function(v, k) {return coerce(mapper.call(context, v, k, iterable))}
6456
- ).flatten(true);
6457
- }
6458
-
6459
-
6460
- function interposeFactory(iterable, separator) {
6461
- var interposedSequence = makeSequence(iterable);
6462
- interposedSequence.size = iterable.size && iterable.size * 2 -1;
6463
- interposedSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
6464
- var iterations = 0;
6465
- iterable.__iterate(function(v, k)
6466
- {return (!iterations || fn(separator, iterations++, this$0) !== false) &&
6467
- fn(v, iterations++, this$0) !== false},
6468
- reverse
6469
- );
6470
- return iterations;
6471
- };
6472
- interposedSequence.__iteratorUncached = function(type, reverse) {
6473
- var iterator = iterable.__iterator(ITERATE_VALUES, reverse);
6474
- var iterations = 0;
6475
- var step;
6476
- return new Iterator(function() {
6477
- if (!step || iterations % 2) {
6478
- step = iterator.next();
6479
- if (step.done) {
6480
- return step;
6481
- }
6482
- }
6483
- return iterations % 2 ?
6484
- iteratorValue(type, iterations++, separator) :
6485
- iteratorValue(type, iterations++, step.value, step);
6486
- });
6487
- };
6488
- return interposedSequence;
6489
- }
6490
-
6491
-
6492
- function sortFactory(iterable, comparator, mapper) {
6493
- if (!comparator) {
6494
- comparator = defaultComparator;
6495
- }
6496
- var isKeyedIterable = isKeyed(iterable);
6497
- var index = 0;
6498
- var entries = iterable.toSeq().map(
6499
- function(v, k) {return [k, v, index++, mapper ? mapper(v, k, iterable) : v]}
6500
- ).toArray();
6501
- entries.sort(function(a, b) {return comparator(a[3], b[3]) || a[2] - b[2]}).forEach(
6502
- isKeyedIterable ?
6503
- function(v, i) { entries[i].length = 2; } :
6504
- function(v, i) { entries[i] = v[1]; }
6505
- );
6506
- return isKeyedIterable ? KeyedSeq(entries) :
6507
- isIndexed(iterable) ? IndexedSeq(entries) :
6508
- SetSeq(entries);
6509
- }
6510
-
6511
-
6512
- function maxFactory(iterable, comparator, mapper) {
6513
- if (!comparator) {
6514
- comparator = defaultComparator;
6515
- }
6516
- if (mapper) {
6517
- var entry = iterable.toSeq()
6518
- .map(function(v, k) {return [v, mapper(v, k, iterable)]})
6519
- .reduce(function(a, b) {return maxCompare(comparator, a[1], b[1]) ? b : a});
6520
- return entry && entry[0];
6521
- } else {
6522
- return iterable.reduce(function(a, b) {return maxCompare(comparator, a, b) ? b : a});
6523
- }
6524
- }
6525
-
6526
- function maxCompare(comparator, a, b) {
6527
- var comp = comparator(b, a);
6528
- // b is considered the new max if the comparator declares them equal, but
6529
- // they are not equal and b is in fact a nullish value.
6530
- return (comp === 0 && b !== a && (b === undefined || b === null || b !== b)) || comp > 0;
6531
- }
6532
-
6533
-
6534
- function zipWithFactory(keyIter, zipper, iters) {
6535
- var zipSequence = makeSequence(keyIter);
6536
- zipSequence.size = new ArraySeq(iters).map(function(i ) {return i.size}).min();
6537
- // Note: this a generic base implementation of __iterate in terms of
6538
- // __iterator which may be more generically useful in the future.
6539
- zipSequence.__iterate = function(fn, reverse) {
6540
- /* generic:
6541
- var iterator = this.__iterator(ITERATE_ENTRIES, reverse);
6542
- var step;
6543
- var iterations = 0;
6544
- while (!(step = iterator.next()).done) {
6545
- iterations++;
6546
- if (fn(step.value[1], step.value[0], this) === false) {
6547
- break;
6548
- }
6549
- }
6550
- return iterations;
6551
- */
6552
- // indexed:
6553
- var iterator = this.__iterator(ITERATE_VALUES, reverse);
6554
- var step;
6555
- var iterations = 0;
6556
- while (!(step = iterator.next()).done) {
6557
- if (fn(step.value, iterations++, this) === false) {
6558
- break;
6559
- }
6560
- }
6561
- return iterations;
6562
- };
6563
- zipSequence.__iteratorUncached = function(type, reverse) {
6564
- var iterators = iters.map(function(i )
6565
- {return (i = Iterable(i), getIterator(reverse ? i.reverse() : i))}
6566
- );
6567
- var iterations = 0;
6568
- var isDone = false;
6569
- return new Iterator(function() {
6570
- var steps;
6571
- if (!isDone) {
6572
- steps = iterators.map(function(i ) {return i.next()});
6573
- isDone = steps.some(function(s ) {return s.done});
6574
- }
6575
- if (isDone) {
6576
- return iteratorDone();
6577
- }
6578
- return iteratorValue(
6579
- type,
6580
- iterations++,
6581
- zipper.apply(null, steps.map(function(s ) {return s.value}))
6582
- );
6583
- });
6584
- };
6585
- return zipSequence
6586
- }
6587
-
6588
-
6589
- // #pragma Helper Functions
6590
-
6591
- function reify(iter, seq) {
6592
- return isSeq(iter) ? seq : iter.constructor(seq);
6593
- }
6594
-
6595
- function validateEntry(entry) {
6596
- if (entry !== Object(entry)) {
6597
- throw new TypeError('Expected [K, V] tuple: ' + entry);
6598
- }
6599
- }
6600
-
6601
- function resolveSize(iter) {
6602
- assertNotInfinite(iter.size);
6603
- return ensureSize(iter);
6604
- }
6605
-
6606
- function iterableClass(iterable) {
6607
- return isKeyed(iterable) ? KeyedIterable :
6608
- isIndexed(iterable) ? IndexedIterable :
6609
- SetIterable;
6610
- }
6611
-
6612
- function makeSequence(iterable) {
6613
- return Object.create(
6614
- (
6615
- isKeyed(iterable) ? KeyedSeq :
6616
- isIndexed(iterable) ? IndexedSeq :
6617
- SetSeq
6618
- ).prototype
6619
- );
6620
- }
6621
-
6622
- function cacheResultThrough() {
6623
- if (this._iter.cacheResult) {
6624
- this._iter.cacheResult();
6625
- this.size = this._iter.size;
6626
- return this;
6627
- } else {
6628
- return Seq.prototype.cacheResult.call(this);
6629
- }
6630
- }
6631
-
6632
- function defaultComparator(a, b) {
6633
- return a > b ? 1 : a < b ? -1 : 0;
6634
- }
6635
-
6636
- function forceIterator(keyPath) {
6637
- var iter = getIterator(keyPath);
6638
- if (!iter) {
6639
- // Array might not be iterable in this environment, so we need a fallback
6640
- // to our wrapped type.
6641
- if (!isArrayLike(keyPath)) {
6642
- throw new TypeError('Expected iterable or array-like: ' + keyPath);
6643
- }
6644
- iter = getIterator(Iterable(keyPath));
6645
- }
6646
- return iter;
6647
- }
6648
-
6649
- createClass(Record, KeyedCollection);
6650
-
6651
- function Record(defaultValues, name) {
6652
- var hasInitialized;
6653
-
6654
- var RecordType = function Record(values) {
6655
- if (values instanceof RecordType) {
6656
- return values;
6657
- }
6658
- if (!(this instanceof RecordType)) {
6659
- return new RecordType(values);
6660
- }
6661
- if (!hasInitialized) {
6662
- hasInitialized = true;
6663
- var keys = Object.keys(defaultValues);
6664
- setProps(RecordTypePrototype, keys);
6665
- RecordTypePrototype.size = keys.length;
6666
- RecordTypePrototype._name = name;
6667
- RecordTypePrototype._keys = keys;
6668
- RecordTypePrototype._defaultValues = defaultValues;
6669
- }
6670
- this._map = Map(values);
6671
- };
6672
-
6673
- var RecordTypePrototype = RecordType.prototype = Object.create(RecordPrototype);
6674
- RecordTypePrototype.constructor = RecordType;
6675
-
6676
- return RecordType;
6677
- }
6678
-
6679
- Record.prototype.toString = function() {
6680
- return this.__toString(recordName(this) + ' {', '}');
6681
- };
6682
-
6683
- // @pragma Access
6684
-
6685
- Record.prototype.has = function(k) {
6686
- return this._defaultValues.hasOwnProperty(k);
6687
- };
6688
-
6689
- Record.prototype.get = function(k, notSetValue) {
6690
- if (!this.has(k)) {
6691
- return notSetValue;
6692
- }
6693
- var defaultVal = this._defaultValues[k];
6694
- return this._map ? this._map.get(k, defaultVal) : defaultVal;
6695
- };
6696
-
6697
- // @pragma Modification
6698
-
6699
- Record.prototype.clear = function() {
6700
- if (this.__ownerID) {
6701
- this._map && this._map.clear();
6702
- return this;
6703
- }
6704
- var RecordType = this.constructor;
6705
- return RecordType._empty || (RecordType._empty = makeRecord(this, emptyMap()));
6706
- };
6707
-
6708
- Record.prototype.set = function(k, v) {
6709
- if (!this.has(k)) {
6710
- throw new Error('Cannot set unknown key "' + k + '" on ' + recordName(this));
6711
- }
6712
- if (this._map && !this._map.has(k)) {
6713
- var defaultVal = this._defaultValues[k];
6714
- if (v === defaultVal) {
6715
- return this;
6716
- }
6717
- }
6718
- var newMap = this._map && this._map.set(k, v);
6719
- if (this.__ownerID || newMap === this._map) {
6720
- return this;
6721
- }
6722
- return makeRecord(this, newMap);
6723
- };
6724
-
6725
- Record.prototype.remove = function(k) {
6726
- if (!this.has(k)) {
6727
- return this;
6728
- }
6729
- var newMap = this._map && this._map.remove(k);
6730
- if (this.__ownerID || newMap === this._map) {
6731
- return this;
6732
- }
6733
- return makeRecord(this, newMap);
6734
- };
6735
-
6736
- Record.prototype.wasAltered = function() {
6737
- return this._map.wasAltered();
6738
- };
6739
-
6740
- Record.prototype.__iterator = function(type, reverse) {var this$0 = this;
6741
- return KeyedIterable(this._defaultValues).map(function(_, k) {return this$0.get(k)}).__iterator(type, reverse);
6742
- };
6743
-
6744
- Record.prototype.__iterate = function(fn, reverse) {var this$0 = this;
6745
- return KeyedIterable(this._defaultValues).map(function(_, k) {return this$0.get(k)}).__iterate(fn, reverse);
6746
- };
6747
-
6748
- Record.prototype.__ensureOwner = function(ownerID) {
6749
- if (ownerID === this.__ownerID) {
6750
- return this;
6751
- }
6752
- var newMap = this._map && this._map.__ensureOwner(ownerID);
6753
- if (!ownerID) {
6754
- this.__ownerID = ownerID;
6755
- this._map = newMap;
6756
- return this;
6757
- }
6758
- return makeRecord(this, newMap, ownerID);
6759
- };
6760
-
6761
-
6762
- var RecordPrototype = Record.prototype;
6763
- RecordPrototype[DELETE] = RecordPrototype.remove;
6764
- RecordPrototype.deleteIn =
6765
- RecordPrototype.removeIn = MapPrototype.removeIn;
6766
- RecordPrototype.merge = MapPrototype.merge;
6767
- RecordPrototype.mergeWith = MapPrototype.mergeWith;
6768
- RecordPrototype.mergeIn = MapPrototype.mergeIn;
6769
- RecordPrototype.mergeDeep = MapPrototype.mergeDeep;
6770
- RecordPrototype.mergeDeepWith = MapPrototype.mergeDeepWith;
6771
- RecordPrototype.mergeDeepIn = MapPrototype.mergeDeepIn;
6772
- RecordPrototype.setIn = MapPrototype.setIn;
6773
- RecordPrototype.update = MapPrototype.update;
6774
- RecordPrototype.updateIn = MapPrototype.updateIn;
6775
- RecordPrototype.withMutations = MapPrototype.withMutations;
6776
- RecordPrototype.asMutable = MapPrototype.asMutable;
6777
- RecordPrototype.asImmutable = MapPrototype.asImmutable;
6778
-
6779
-
6780
- function makeRecord(likeRecord, map, ownerID) {
6781
- var record = Object.create(Object.getPrototypeOf(likeRecord));
6782
- record._map = map;
6783
- record.__ownerID = ownerID;
6784
- return record;
6785
- }
6786
-
6787
- function recordName(record) {
6788
- return record._name || record.constructor.name || 'Record';
6789
- }
6790
-
6791
- function setProps(prototype, names) {
6792
- try {
6793
- names.forEach(setProp.bind(undefined, prototype));
6794
- } catch (error) {
6795
- // Object.defineProperty failed. Probably IE8.
6796
- }
6797
- }
6798
-
6799
- function setProp(prototype, name) {
6800
- Object.defineProperty(prototype, name, {
6801
- get: function() {
6802
- return this.get(name);
6803
- },
6804
- set: function(value) {
6805
- invariant(this.__ownerID, 'Cannot set on an immutable record.');
6806
- this.set(name, value);
6807
- }
6808
- });
6809
- }
6810
-
6811
- createClass(Set, SetCollection);
6812
-
6813
- // @pragma Construction
6814
-
6815
- function Set(value) {
6816
- return value === null || value === undefined ? emptySet() :
6817
- isSet(value) && !isOrdered(value) ? value :
6818
- emptySet().withMutations(function(set ) {
6819
- var iter = SetIterable(value);
6820
- assertNotInfinite(iter.size);
6821
- iter.forEach(function(v ) {return set.add(v)});
6822
- });
6823
- }
6824
-
6825
- Set.of = function(/*...values*/) {
6826
- return this(arguments);
6827
- };
6828
-
6829
- Set.fromKeys = function(value) {
6830
- return this(KeyedIterable(value).keySeq());
6831
- };
6832
-
6833
- Set.prototype.toString = function() {
6834
- return this.__toString('Set {', '}');
6835
- };
6836
-
6837
- // @pragma Access
6838
-
6839
- Set.prototype.has = function(value) {
6840
- return this._map.has(value);
6841
- };
6842
-
6843
- // @pragma Modification
6844
-
6845
- Set.prototype.add = function(value) {
6846
- return updateSet(this, this._map.set(value, true));
6847
- };
6848
-
6849
- Set.prototype.remove = function(value) {
6850
- return updateSet(this, this._map.remove(value));
6851
- };
6852
-
6853
- Set.prototype.clear = function() {
6854
- return updateSet(this, this._map.clear());
6855
- };
6856
-
6857
- // @pragma Composition
6858
-
6859
- Set.prototype.union = function() {var iters = SLICE$0.call(arguments, 0);
6860
- iters = iters.filter(function(x ) {return x.size !== 0});
6861
- if (iters.length === 0) {
6862
- return this;
6863
- }
6864
- if (this.size === 0 && !this.__ownerID && iters.length === 1) {
6865
- return this.constructor(iters[0]);
6866
- }
6867
- return this.withMutations(function(set ) {
6868
- for (var ii = 0; ii < iters.length; ii++) {
6869
- SetIterable(iters[ii]).forEach(function(value ) {return set.add(value)});
6870
- }
6871
- });
6872
- };
6873
-
6874
- Set.prototype.intersect = function() {var iters = SLICE$0.call(arguments, 0);
6875
- if (iters.length === 0) {
6876
- return this;
6877
- }
6878
- iters = iters.map(function(iter ) {return SetIterable(iter)});
6879
- var originalSet = this;
6880
- return this.withMutations(function(set ) {
6881
- originalSet.forEach(function(value ) {
6882
- if (!iters.every(function(iter ) {return iter.includes(value)})) {
6883
- set.remove(value);
6884
- }
6885
- });
6886
- });
6887
- };
6888
-
6889
- Set.prototype.subtract = function() {var iters = SLICE$0.call(arguments, 0);
6890
- if (iters.length === 0) {
6891
- return this;
6892
- }
6893
- iters = iters.map(function(iter ) {return SetIterable(iter)});
6894
- var originalSet = this;
6895
- return this.withMutations(function(set ) {
6896
- originalSet.forEach(function(value ) {
6897
- if (iters.some(function(iter ) {return iter.includes(value)})) {
6898
- set.remove(value);
6899
- }
6900
- });
6901
- });
6902
- };
6903
-
6904
- Set.prototype.merge = function() {
6905
- return this.union.apply(this, arguments);
6906
- };
6907
-
6908
- Set.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
6909
- return this.union.apply(this, iters);
6910
- };
6911
-
6912
- Set.prototype.sort = function(comparator) {
6913
- // Late binding
6914
- return OrderedSet(sortFactory(this, comparator));
6915
- };
6916
-
6917
- Set.prototype.sortBy = function(mapper, comparator) {
6918
- // Late binding
6919
- return OrderedSet(sortFactory(this, comparator, mapper));
6920
- };
6921
-
6922
- Set.prototype.wasAltered = function() {
6923
- return this._map.wasAltered();
6924
- };
6925
-
6926
- Set.prototype.__iterate = function(fn, reverse) {var this$0 = this;
6927
- return this._map.__iterate(function(_, k) {return fn(k, k, this$0)}, reverse);
6928
- };
6929
-
6930
- Set.prototype.__iterator = function(type, reverse) {
6931
- return this._map.map(function(_, k) {return k}).__iterator(type, reverse);
6932
- };
6933
-
6934
- Set.prototype.__ensureOwner = function(ownerID) {
6935
- if (ownerID === this.__ownerID) {
6936
- return this;
6937
- }
6938
- var newMap = this._map.__ensureOwner(ownerID);
6939
- if (!ownerID) {
6940
- this.__ownerID = ownerID;
6941
- this._map = newMap;
6942
- return this;
6943
- }
6944
- return this.__make(newMap, ownerID);
6945
- };
6946
-
6947
-
6948
- function isSet(maybeSet) {
6949
- return !!(maybeSet && maybeSet[IS_SET_SENTINEL]);
6950
- }
6951
-
6952
- Set.isSet = isSet;
6953
-
6954
- var IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@';
6955
-
6956
- var SetPrototype = Set.prototype;
6957
- SetPrototype[IS_SET_SENTINEL] = true;
6958
- SetPrototype[DELETE] = SetPrototype.remove;
6959
- SetPrototype.mergeDeep = SetPrototype.merge;
6960
- SetPrototype.mergeDeepWith = SetPrototype.mergeWith;
6961
- SetPrototype.withMutations = MapPrototype.withMutations;
6962
- SetPrototype.asMutable = MapPrototype.asMutable;
6963
- SetPrototype.asImmutable = MapPrototype.asImmutable;
6964
-
6965
- SetPrototype.__empty = emptySet;
6966
- SetPrototype.__make = makeSet;
6967
-
6968
- function updateSet(set, newMap) {
6969
- if (set.__ownerID) {
6970
- set.size = newMap.size;
6971
- set._map = newMap;
6972
- return set;
6973
- }
6974
- return newMap === set._map ? set :
6975
- newMap.size === 0 ? set.__empty() :
6976
- set.__make(newMap);
6977
- }
6978
-
6979
- function makeSet(map, ownerID) {
6980
- var set = Object.create(SetPrototype);
6981
- set.size = map ? map.size : 0;
6982
- set._map = map;
6983
- set.__ownerID = ownerID;
6984
- return set;
6985
- }
6986
-
6987
- var EMPTY_SET;
6988
- function emptySet() {
6989
- return EMPTY_SET || (EMPTY_SET = makeSet(emptyMap()));
6990
- }
6991
-
6992
- createClass(OrderedSet, Set);
6993
-
6994
- // @pragma Construction
6995
-
6996
- function OrderedSet(value) {
6997
- return value === null || value === undefined ? emptyOrderedSet() :
6998
- isOrderedSet(value) ? value :
6999
- emptyOrderedSet().withMutations(function(set ) {
7000
- var iter = SetIterable(value);
7001
- assertNotInfinite(iter.size);
7002
- iter.forEach(function(v ) {return set.add(v)});
7003
- });
7004
- }
7005
-
7006
- OrderedSet.of = function(/*...values*/) {
7007
- return this(arguments);
7008
- };
7009
-
7010
- OrderedSet.fromKeys = function(value) {
7011
- return this(KeyedIterable(value).keySeq());
7012
- };
7013
-
7014
- OrderedSet.prototype.toString = function() {
7015
- return this.__toString('OrderedSet {', '}');
7016
- };
7017
-
7018
-
7019
- function isOrderedSet(maybeOrderedSet) {
7020
- return isSet(maybeOrderedSet) && isOrdered(maybeOrderedSet);
7021
- }
7022
-
7023
- OrderedSet.isOrderedSet = isOrderedSet;
7024
-
7025
- var OrderedSetPrototype = OrderedSet.prototype;
7026
- OrderedSetPrototype[IS_ORDERED_SENTINEL] = true;
7027
-
7028
- OrderedSetPrototype.__empty = emptyOrderedSet;
7029
- OrderedSetPrototype.__make = makeOrderedSet;
7030
-
7031
- function makeOrderedSet(map, ownerID) {
7032
- var set = Object.create(OrderedSetPrototype);
7033
- set.size = map ? map.size : 0;
7034
- set._map = map;
7035
- set.__ownerID = ownerID;
7036
- return set;
7037
- }
7038
-
7039
- var EMPTY_ORDERED_SET;
7040
- function emptyOrderedSet() {
7041
- return EMPTY_ORDERED_SET || (EMPTY_ORDERED_SET = makeOrderedSet(emptyOrderedMap()));
7042
- }
7043
-
7044
- createClass(Stack, IndexedCollection);
7045
-
7046
- // @pragma Construction
7047
-
7048
- function Stack(value) {
7049
- return value === null || value === undefined ? emptyStack() :
7050
- isStack(value) ? value :
7051
- emptyStack().unshiftAll(value);
7052
- }
7053
-
7054
- Stack.of = function(/*...values*/) {
7055
- return this(arguments);
7056
- };
7057
-
7058
- Stack.prototype.toString = function() {
7059
- return this.__toString('Stack [', ']');
7060
- };
7061
-
7062
- // @pragma Access
7063
-
7064
- Stack.prototype.get = function(index, notSetValue) {
7065
- var head = this._head;
7066
- index = wrapIndex(this, index);
7067
- while (head && index--) {
7068
- head = head.next;
7069
- }
7070
- return head ? head.value : notSetValue;
7071
- };
7072
-
7073
- Stack.prototype.peek = function() {
7074
- return this._head && this._head.value;
7075
- };
7076
-
7077
- // @pragma Modification
7078
-
7079
- Stack.prototype.push = function(/*...values*/) {
7080
- if (arguments.length === 0) {
7081
- return this;
7082
- }
7083
- var newSize = this.size + arguments.length;
7084
- var head = this._head;
7085
- for (var ii = arguments.length - 1; ii >= 0; ii--) {
7086
- head = {
7087
- value: arguments[ii],
7088
- next: head
7089
- };
7090
- }
7091
- if (this.__ownerID) {
7092
- this.size = newSize;
7093
- this._head = head;
7094
- this.__hash = undefined;
7095
- this.__altered = true;
7096
- return this;
7097
- }
7098
- return makeStack(newSize, head);
7099
- };
7100
-
7101
- Stack.prototype.pushAll = function(iter) {
7102
- iter = IndexedIterable(iter);
7103
- if (iter.size === 0) {
7104
- return this;
7105
- }
7106
- assertNotInfinite(iter.size);
7107
- var newSize = this.size;
7108
- var head = this._head;
7109
- iter.reverse().forEach(function(value ) {
7110
- newSize++;
7111
- head = {
7112
- value: value,
7113
- next: head
7114
- };
7115
- });
7116
- if (this.__ownerID) {
7117
- this.size = newSize;
7118
- this._head = head;
7119
- this.__hash = undefined;
7120
- this.__altered = true;
7121
- return this;
7122
- }
7123
- return makeStack(newSize, head);
7124
- };
7125
-
7126
- Stack.prototype.pop = function() {
7127
- return this.slice(1);
7128
- };
7129
-
7130
- Stack.prototype.unshift = function(/*...values*/) {
7131
- return this.push.apply(this, arguments);
7132
- };
7133
-
7134
- Stack.prototype.unshiftAll = function(iter) {
7135
- return this.pushAll(iter);
7136
- };
7137
-
7138
- Stack.prototype.shift = function() {
7139
- return this.pop.apply(this, arguments);
7140
- };
7141
-
7142
- Stack.prototype.clear = function() {
7143
- if (this.size === 0) {
7144
- return this;
7145
- }
7146
- if (this.__ownerID) {
7147
- this.size = 0;
7148
- this._head = undefined;
7149
- this.__hash = undefined;
7150
- this.__altered = true;
7151
- return this;
7152
- }
7153
- return emptyStack();
7154
- };
7155
-
7156
- Stack.prototype.slice = function(begin, end) {
7157
- if (wholeSlice(begin, end, this.size)) {
7158
- return this;
7159
- }
7160
- var resolvedBegin = resolveBegin(begin, this.size);
7161
- var resolvedEnd = resolveEnd(end, this.size);
7162
- if (resolvedEnd !== this.size) {
7163
- // super.slice(begin, end);
7164
- return IndexedCollection.prototype.slice.call(this, begin, end);
7165
- }
7166
- var newSize = this.size - resolvedBegin;
7167
- var head = this._head;
7168
- while (resolvedBegin--) {
7169
- head = head.next;
7170
- }
7171
- if (this.__ownerID) {
7172
- this.size = newSize;
7173
- this._head = head;
7174
- this.__hash = undefined;
7175
- this.__altered = true;
7176
- return this;
7177
- }
7178
- return makeStack(newSize, head);
7179
- };
7180
-
7181
- // @pragma Mutability
7182
-
7183
- Stack.prototype.__ensureOwner = function(ownerID) {
7184
- if (ownerID === this.__ownerID) {
7185
- return this;
7186
- }
7187
- if (!ownerID) {
7188
- this.__ownerID = ownerID;
7189
- this.__altered = false;
7190
- return this;
7191
- }
7192
- return makeStack(this.size, this._head, ownerID, this.__hash);
7193
- };
7194
-
7195
- // @pragma Iteration
7196
-
7197
- Stack.prototype.__iterate = function(fn, reverse) {
7198
- if (reverse) {
7199
- return this.reverse().__iterate(fn);
7200
- }
7201
- var iterations = 0;
7202
- var node = this._head;
7203
- while (node) {
7204
- if (fn(node.value, iterations++, this) === false) {
7205
- break;
7206
- }
7207
- node = node.next;
7208
- }
7209
- return iterations;
7210
- };
7211
-
7212
- Stack.prototype.__iterator = function(type, reverse) {
7213
- if (reverse) {
7214
- return this.reverse().__iterator(type);
7215
- }
7216
- var iterations = 0;
7217
- var node = this._head;
7218
- return new Iterator(function() {
7219
- if (node) {
7220
- var value = node.value;
7221
- node = node.next;
7222
- return iteratorValue(type, iterations++, value);
7223
- }
7224
- return iteratorDone();
7225
- });
7226
- };
7227
-
7228
-
7229
- function isStack(maybeStack) {
7230
- return !!(maybeStack && maybeStack[IS_STACK_SENTINEL]);
7231
- }
7232
-
7233
- Stack.isStack = isStack;
7234
-
7235
- var IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@';
7236
-
7237
- var StackPrototype = Stack.prototype;
7238
- StackPrototype[IS_STACK_SENTINEL] = true;
7239
- StackPrototype.withMutations = MapPrototype.withMutations;
7240
- StackPrototype.asMutable = MapPrototype.asMutable;
7241
- StackPrototype.asImmutable = MapPrototype.asImmutable;
7242
- StackPrototype.wasAltered = MapPrototype.wasAltered;
7243
-
7244
-
7245
- function makeStack(size, head, ownerID, hash) {
7246
- var map = Object.create(StackPrototype);
7247
- map.size = size;
7248
- map._head = head;
7249
- map.__ownerID = ownerID;
7250
- map.__hash = hash;
7251
- map.__altered = false;
7252
- return map;
7253
- }
7254
-
7255
- var EMPTY_STACK;
7256
- function emptyStack() {
7257
- return EMPTY_STACK || (EMPTY_STACK = makeStack(0));
7258
- }
7259
-
7260
- /**
7261
- * Contributes additional methods to a constructor
7262
- */
7263
- function mixin(ctor, methods) {
7264
- var keyCopier = function(key ) { ctor.prototype[key] = methods[key]; };
7265
- Object.keys(methods).forEach(keyCopier);
7266
- Object.getOwnPropertySymbols &&
7267
- Object.getOwnPropertySymbols(methods).forEach(keyCopier);
7268
- return ctor;
7269
- }
7270
-
7271
- Iterable.Iterator = Iterator;
7272
-
7273
- mixin(Iterable, {
7274
-
7275
- // ### Conversion to other types
7276
-
7277
- toArray: function() {
7278
- assertNotInfinite(this.size);
7279
- var array = new Array(this.size || 0);
7280
- this.valueSeq().__iterate(function(v, i) { array[i] = v; });
7281
- return array;
7282
- },
7283
-
7284
- toIndexedSeq: function() {
7285
- return new ToIndexedSequence(this);
7286
- },
7287
-
7288
- toJS: function() {
7289
- return this.toSeq().map(
7290
- function(value ) {return value && typeof value.toJS === 'function' ? value.toJS() : value}
7291
- ).__toJS();
7292
- },
7293
-
7294
- toJSON: function() {
7295
- return this.toSeq().map(
7296
- function(value ) {return value && typeof value.toJSON === 'function' ? value.toJSON() : value}
7297
- ).__toJS();
7298
- },
7299
-
7300
- toKeyedSeq: function() {
7301
- return new ToKeyedSequence(this, true);
7302
- },
7303
-
7304
- toMap: function() {
7305
- // Use Late Binding here to solve the circular dependency.
7306
- return Map(this.toKeyedSeq());
7307
- },
7308
-
7309
- toObject: function() {
7310
- assertNotInfinite(this.size);
7311
- var object = {};
7312
- this.__iterate(function(v, k) { object[k] = v; });
7313
- return object;
7314
- },
7315
-
7316
- toOrderedMap: function() {
7317
- // Use Late Binding here to solve the circular dependency.
7318
- return OrderedMap(this.toKeyedSeq());
7319
- },
7320
-
7321
- toOrderedSet: function() {
7322
- // Use Late Binding here to solve the circular dependency.
7323
- return OrderedSet(isKeyed(this) ? this.valueSeq() : this);
7324
- },
7325
-
7326
- toSet: function() {
7327
- // Use Late Binding here to solve the circular dependency.
7328
- return Set(isKeyed(this) ? this.valueSeq() : this);
7329
- },
7330
-
7331
- toSetSeq: function() {
7332
- return new ToSetSequence(this);
7333
- },
7334
-
7335
- toSeq: function() {
7336
- return isIndexed(this) ? this.toIndexedSeq() :
7337
- isKeyed(this) ? this.toKeyedSeq() :
7338
- this.toSetSeq();
7339
- },
7340
-
7341
- toStack: function() {
7342
- // Use Late Binding here to solve the circular dependency.
7343
- return Stack(isKeyed(this) ? this.valueSeq() : this);
7344
- },
7345
-
7346
- toList: function() {
7347
- // Use Late Binding here to solve the circular dependency.
7348
- return List(isKeyed(this) ? this.valueSeq() : this);
7349
- },
7350
-
7351
-
7352
- // ### Common JavaScript methods and properties
7353
-
7354
- toString: function() {
7355
- return '[Iterable]';
7356
- },
7357
-
7358
- __toString: function(head, tail) {
7359
- if (this.size === 0) {
7360
- return head + tail;
7361
- }
7362
- return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;
7363
- },
7364
-
7365
-
7366
- // ### ES6 Collection methods (ES6 Array and Map)
7367
-
7368
- concat: function() {var values = SLICE$0.call(arguments, 0);
7369
- return reify(this, concatFactory(this, values));
7370
- },
7371
-
7372
- includes: function(searchValue) {
7373
- return this.some(function(value ) {return is(value, searchValue)});
7374
- },
7375
-
7376
- entries: function() {
7377
- return this.__iterator(ITERATE_ENTRIES);
7378
- },
7379
-
7380
- every: function(predicate, context) {
7381
- assertNotInfinite(this.size);
7382
- var returnValue = true;
7383
- this.__iterate(function(v, k, c) {
7384
- if (!predicate.call(context, v, k, c)) {
7385
- returnValue = false;
7386
- return false;
7387
- }
7388
- });
7389
- return returnValue;
7390
- },
7391
-
7392
- filter: function(predicate, context) {
7393
- return reify(this, filterFactory(this, predicate, context, true));
7394
- },
7395
-
7396
- find: function(predicate, context, notSetValue) {
7397
- var entry = this.findEntry(predicate, context);
7398
- return entry ? entry[1] : notSetValue;
7399
- },
7400
-
7401
- forEach: function(sideEffect, context) {
7402
- assertNotInfinite(this.size);
7403
- return this.__iterate(context ? sideEffect.bind(context) : sideEffect);
7404
- },
7405
-
7406
- join: function(separator) {
7407
- assertNotInfinite(this.size);
7408
- separator = separator !== undefined ? '' + separator : ',';
7409
- var joined = '';
7410
- var isFirst = true;
7411
- this.__iterate(function(v ) {
7412
- isFirst ? (isFirst = false) : (joined += separator);
7413
- joined += v !== null && v !== undefined ? v.toString() : '';
7414
- });
7415
- return joined;
7416
- },
7417
-
7418
- keys: function() {
7419
- return this.__iterator(ITERATE_KEYS);
7420
- },
7421
-
7422
- map: function(mapper, context) {
7423
- return reify(this, mapFactory(this, mapper, context));
7424
- },
7425
-
7426
- reduce: function(reducer, initialReduction, context) {
7427
- assertNotInfinite(this.size);
7428
- var reduction;
7429
- var useFirst;
7430
- if (arguments.length < 2) {
7431
- useFirst = true;
7432
- } else {
7433
- reduction = initialReduction;
7434
- }
7435
- this.__iterate(function(v, k, c) {
7436
- if (useFirst) {
7437
- useFirst = false;
7438
- reduction = v;
7439
- } else {
7440
- reduction = reducer.call(context, reduction, v, k, c);
7441
- }
7442
- });
7443
- return reduction;
7444
- },
7445
-
7446
- reduceRight: function(reducer, initialReduction, context) {
7447
- var reversed = this.toKeyedSeq().reverse();
7448
- return reversed.reduce.apply(reversed, arguments);
7449
- },
7450
-
7451
- reverse: function() {
7452
- return reify(this, reverseFactory(this, true));
7453
- },
7454
-
7455
- slice: function(begin, end) {
7456
- return reify(this, sliceFactory(this, begin, end, true));
7457
- },
7458
-
7459
- some: function(predicate, context) {
7460
- return !this.every(not(predicate), context);
7461
- },
7462
-
7463
- sort: function(comparator) {
7464
- return reify(this, sortFactory(this, comparator));
7465
- },
7466
-
7467
- values: function() {
7468
- return this.__iterator(ITERATE_VALUES);
7469
- },
7470
-
7471
-
7472
- // ### More sequential methods
7473
-
7474
- butLast: function() {
7475
- return this.slice(0, -1);
7476
- },
7477
-
7478
- isEmpty: function() {
7479
- return this.size !== undefined ? this.size === 0 : !this.some(function() {return true});
7480
- },
7481
-
7482
- count: function(predicate, context) {
7483
- return ensureSize(
7484
- predicate ? this.toSeq().filter(predicate, context) : this
7485
- );
7486
- },
7487
-
7488
- countBy: function(grouper, context) {
7489
- return countByFactory(this, grouper, context);
7490
- },
7491
-
7492
- equals: function(other) {
7493
- return deepEqual(this, other);
7494
- },
7495
-
7496
- entrySeq: function() {
7497
- var iterable = this;
7498
- if (iterable._cache) {
7499
- // We cache as an entries array, so we can just return the cache!
7500
- return new ArraySeq(iterable._cache);
7501
- }
7502
- var entriesSequence = iterable.toSeq().map(entryMapper).toIndexedSeq();
7503
- entriesSequence.fromEntrySeq = function() {return iterable.toSeq()};
7504
- return entriesSequence;
7505
- },
7506
-
7507
- filterNot: function(predicate, context) {
7508
- return this.filter(not(predicate), context);
7509
- },
7510
-
7511
- findEntry: function(predicate, context, notSetValue) {
7512
- var found = notSetValue;
7513
- this.__iterate(function(v, k, c) {
7514
- if (predicate.call(context, v, k, c)) {
7515
- found = [k, v];
7516
- return false;
7517
- }
7518
- });
7519
- return found;
7520
- },
7521
-
7522
- findKey: function(predicate, context) {
7523
- var entry = this.findEntry(predicate, context);
7524
- return entry && entry[0];
7525
- },
7526
-
7527
- findLast: function(predicate, context, notSetValue) {
7528
- return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);
7529
- },
7530
-
7531
- findLastEntry: function(predicate, context, notSetValue) {
7532
- return this.toKeyedSeq().reverse().findEntry(predicate, context, notSetValue);
7533
- },
7534
-
7535
- findLastKey: function(predicate, context) {
7536
- return this.toKeyedSeq().reverse().findKey(predicate, context);
7537
- },
7538
-
7539
- first: function() {
7540
- return this.find(returnTrue);
7541
- },
7542
-
7543
- flatMap: function(mapper, context) {
7544
- return reify(this, flatMapFactory(this, mapper, context));
7545
- },
7546
-
7547
- flatten: function(depth) {
7548
- return reify(this, flattenFactory(this, depth, true));
7549
- },
7550
-
7551
- fromEntrySeq: function() {
7552
- return new FromEntriesSequence(this);
7553
- },
7554
-
7555
- get: function(searchKey, notSetValue) {
7556
- return this.find(function(_, key) {return is(key, searchKey)}, undefined, notSetValue);
7557
- },
7558
-
7559
- getIn: function(searchKeyPath, notSetValue) {
7560
- var nested = this;
7561
- // Note: in an ES6 environment, we would prefer:
7562
- // for (var key of searchKeyPath) {
7563
- var iter = forceIterator(searchKeyPath);
7564
- var step;
7565
- while (!(step = iter.next()).done) {
7566
- var key = step.value;
7567
- nested = nested && nested.get ? nested.get(key, NOT_SET) : NOT_SET;
7568
- if (nested === NOT_SET) {
7569
- return notSetValue;
7570
- }
7571
- }
7572
- return nested;
7573
- },
7574
-
7575
- groupBy: function(grouper, context) {
7576
- return groupByFactory(this, grouper, context);
7577
- },
7578
-
7579
- has: function(searchKey) {
7580
- return this.get(searchKey, NOT_SET) !== NOT_SET;
7581
- },
7582
-
7583
- hasIn: function(searchKeyPath) {
7584
- return this.getIn(searchKeyPath, NOT_SET) !== NOT_SET;
7585
- },
7586
-
7587
- isSubset: function(iter) {
7588
- iter = typeof iter.includes === 'function' ? iter : Iterable(iter);
7589
- return this.every(function(value ) {return iter.includes(value)});
7590
- },
7591
-
7592
- isSuperset: function(iter) {
7593
- iter = typeof iter.isSubset === 'function' ? iter : Iterable(iter);
7594
- return iter.isSubset(this);
7595
- },
7596
-
7597
- keyOf: function(searchValue) {
7598
- return this.findKey(function(value ) {return is(value, searchValue)});
7599
- },
7600
-
7601
- keySeq: function() {
7602
- return this.toSeq().map(keyMapper).toIndexedSeq();
7603
- },
7604
-
7605
- last: function() {
7606
- return this.toSeq().reverse().first();
7607
- },
7608
-
7609
- lastKeyOf: function(searchValue) {
7610
- return this.toKeyedSeq().reverse().keyOf(searchValue);
7611
- },
7612
-
7613
- max: function(comparator) {
7614
- return maxFactory(this, comparator);
7615
- },
7616
-
7617
- maxBy: function(mapper, comparator) {
7618
- return maxFactory(this, comparator, mapper);
7619
- },
7620
-
7621
- min: function(comparator) {
7622
- return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator);
7623
- },
7624
-
7625
- minBy: function(mapper, comparator) {
7626
- return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator, mapper);
7627
- },
7628
-
7629
- rest: function() {
7630
- return this.slice(1);
7631
- },
7632
-
7633
- skip: function(amount) {
7634
- return this.slice(Math.max(0, amount));
7635
- },
7636
-
7637
- skipLast: function(amount) {
7638
- return reify(this, this.toSeq().reverse().skip(amount).reverse());
7639
- },
7640
-
7641
- skipWhile: function(predicate, context) {
7642
- return reify(this, skipWhileFactory(this, predicate, context, true));
7643
- },
7644
-
7645
- skipUntil: function(predicate, context) {
7646
- return this.skipWhile(not(predicate), context);
7647
- },
7648
-
7649
- sortBy: function(mapper, comparator) {
7650
- return reify(this, sortFactory(this, comparator, mapper));
7651
- },
7652
-
7653
- take: function(amount) {
7654
- return this.slice(0, Math.max(0, amount));
7655
- },
7656
-
7657
- takeLast: function(amount) {
7658
- return reify(this, this.toSeq().reverse().take(amount).reverse());
7659
- },
7660
-
7661
- takeWhile: function(predicate, context) {
7662
- return reify(this, takeWhileFactory(this, predicate, context));
7663
- },
7664
-
7665
- takeUntil: function(predicate, context) {
7666
- return this.takeWhile(not(predicate), context);
7667
- },
7668
-
7669
- valueSeq: function() {
7670
- return this.toIndexedSeq();
7671
- },
7672
-
7673
-
7674
- // ### Hashable Object
7675
-
7676
- hashCode: function() {
7677
- return this.__hash || (this.__hash = hashIterable(this));
7678
- }
7679
-
7680
-
7681
- // ### Internal
7682
-
7683
- // abstract __iterate(fn, reverse)
7684
-
7685
- // abstract __iterator(type, reverse)
7686
- });
7687
-
7688
- // var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
7689
- // var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
7690
- // var IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@';
7691
- // var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
7692
-
7693
- var IterablePrototype = Iterable.prototype;
7694
- IterablePrototype[IS_ITERABLE_SENTINEL] = true;
7695
- IterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.values;
7696
- IterablePrototype.__toJS = IterablePrototype.toArray;
7697
- IterablePrototype.__toStringMapper = quoteString;
7698
- IterablePrototype.inspect =
7699
- IterablePrototype.toSource = function() { return this.toString(); };
7700
- IterablePrototype.chain = IterablePrototype.flatMap;
7701
- IterablePrototype.contains = IterablePrototype.includes;
7702
-
7703
- mixin(KeyedIterable, {
7704
-
7705
- // ### More sequential methods
7706
-
7707
- flip: function() {
7708
- return reify(this, flipFactory(this));
7709
- },
7710
-
7711
- mapEntries: function(mapper, context) {var this$0 = this;
7712
- var iterations = 0;
7713
- return reify(this,
7714
- this.toSeq().map(
7715
- function(v, k) {return mapper.call(context, [k, v], iterations++, this$0)}
7716
- ).fromEntrySeq()
7717
- );
7718
- },
7719
-
7720
- mapKeys: function(mapper, context) {var this$0 = this;
7721
- return reify(this,
7722
- this.toSeq().flip().map(
7723
- function(k, v) {return mapper.call(context, k, v, this$0)}
7724
- ).flip()
7725
- );
7726
- }
7727
-
7728
- });
7729
-
7730
- var KeyedIterablePrototype = KeyedIterable.prototype;
7731
- KeyedIterablePrototype[IS_KEYED_SENTINEL] = true;
7732
- KeyedIterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.entries;
7733
- KeyedIterablePrototype.__toJS = IterablePrototype.toObject;
7734
- KeyedIterablePrototype.__toStringMapper = function(v, k) {return JSON.stringify(k) + ': ' + quoteString(v)};
7735
-
7736
-
7737
-
7738
- mixin(IndexedIterable, {
7739
-
7740
- // ### Conversion to other types
7741
-
7742
- toKeyedSeq: function() {
7743
- return new ToKeyedSequence(this, false);
7744
- },
7745
-
7746
-
7747
- // ### ES6 Collection methods (ES6 Array and Map)
7748
-
7749
- filter: function(predicate, context) {
7750
- return reify(this, filterFactory(this, predicate, context, false));
7751
- },
7752
-
7753
- findIndex: function(predicate, context) {
7754
- var entry = this.findEntry(predicate, context);
7755
- return entry ? entry[0] : -1;
7756
- },
7757
-
7758
- indexOf: function(searchValue) {
7759
- var key = this.keyOf(searchValue);
7760
- return key === undefined ? -1 : key;
7761
- },
7762
-
7763
- lastIndexOf: function(searchValue) {
7764
- var key = this.lastKeyOf(searchValue);
7765
- return key === undefined ? -1 : key;
7766
- },
7767
-
7768
- reverse: function() {
7769
- return reify(this, reverseFactory(this, false));
7770
- },
7771
-
7772
- slice: function(begin, end) {
7773
- return reify(this, sliceFactory(this, begin, end, false));
7774
- },
7775
-
7776
- splice: function(index, removeNum /*, ...values*/) {
7777
- var numArgs = arguments.length;
7778
- removeNum = Math.max(removeNum | 0, 0);
7779
- if (numArgs === 0 || (numArgs === 2 && !removeNum)) {
7780
- return this;
7781
- }
7782
- // If index is negative, it should resolve relative to the size of the
7783
- // collection. However size may be expensive to compute if not cached, so
7784
- // only call count() if the number is in fact negative.
7785
- index = resolveBegin(index, index < 0 ? this.count() : this.size);
7786
- var spliced = this.slice(0, index);
7787
- return reify(
7788
- this,
7789
- numArgs === 1 ?
7790
- spliced :
7791
- spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))
7792
- );
7793
- },
7794
-
7795
-
7796
- // ### More collection methods
7797
-
7798
- findLastIndex: function(predicate, context) {
7799
- var entry = this.findLastEntry(predicate, context);
7800
- return entry ? entry[0] : -1;
7801
- },
7802
-
7803
- first: function() {
7804
- return this.get(0);
7805
- },
7806
-
7807
- flatten: function(depth) {
7808
- return reify(this, flattenFactory(this, depth, false));
7809
- },
7810
-
7811
- get: function(index, notSetValue) {
7812
- index = wrapIndex(this, index);
7813
- return (index < 0 || (this.size === Infinity ||
7814
- (this.size !== undefined && index > this.size))) ?
7815
- notSetValue :
7816
- this.find(function(_, key) {return key === index}, undefined, notSetValue);
7817
- },
7818
-
7819
- has: function(index) {
7820
- index = wrapIndex(this, index);
7821
- return index >= 0 && (this.size !== undefined ?
7822
- this.size === Infinity || index < this.size :
7823
- this.indexOf(index) !== -1
7824
- );
7825
- },
7826
-
7827
- interpose: function(separator) {
7828
- return reify(this, interposeFactory(this, separator));
7829
- },
7830
-
7831
- interleave: function(/*...iterables*/) {
7832
- var iterables = [this].concat(arrCopy(arguments));
7833
- var zipped = zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);
7834
- var interleaved = zipped.flatten(true);
7835
- if (zipped.size) {
7836
- interleaved.size = zipped.size * iterables.length;
7837
- }
7838
- return reify(this, interleaved);
7839
- },
7840
-
7841
- keySeq: function() {
7842
- return Range(0, this.size);
7843
- },
7844
-
7845
- last: function() {
7846
- return this.get(-1);
7847
- },
7848
-
7849
- skipWhile: function(predicate, context) {
7850
- return reify(this, skipWhileFactory(this, predicate, context, false));
7851
- },
7852
-
7853
- zip: function(/*, ...iterables */) {
7854
- var iterables = [this].concat(arrCopy(arguments));
7855
- return reify(this, zipWithFactory(this, defaultZipper, iterables));
7856
- },
7857
-
7858
- zipWith: function(zipper/*, ...iterables */) {
7859
- var iterables = arrCopy(arguments);
7860
- iterables[0] = this;
7861
- return reify(this, zipWithFactory(this, zipper, iterables));
7862
- }
7863
-
7864
- });
7865
-
7866
- IndexedIterable.prototype[IS_INDEXED_SENTINEL] = true;
7867
- IndexedIterable.prototype[IS_ORDERED_SENTINEL] = true;
7868
-
7869
-
7870
-
7871
- mixin(SetIterable, {
7872
-
7873
- // ### ES6 Collection methods (ES6 Array and Map)
7874
-
7875
- get: function(value, notSetValue) {
7876
- return this.has(value) ? value : notSetValue;
7877
- },
7878
-
7879
- includes: function(value) {
7880
- return this.has(value);
7881
- },
7882
-
7883
-
7884
- // ### More sequential methods
7885
-
7886
- keySeq: function() {
7887
- return this.valueSeq();
7888
- }
7889
-
7890
- });
7891
-
7892
- SetIterable.prototype.has = IterablePrototype.includes;
7893
- SetIterable.prototype.contains = SetIterable.prototype.includes;
7894
-
7895
-
7896
- // Mixin subclasses
7897
-
7898
- mixin(KeyedSeq, KeyedIterable.prototype);
7899
- mixin(IndexedSeq, IndexedIterable.prototype);
7900
- mixin(SetSeq, SetIterable.prototype);
7901
-
7902
- mixin(KeyedCollection, KeyedIterable.prototype);
7903
- mixin(IndexedCollection, IndexedIterable.prototype);
7904
- mixin(SetCollection, SetIterable.prototype);
7905
-
7906
-
7907
- // #pragma Helper functions
7908
-
7909
- function keyMapper(v, k) {
7910
- return k;
7911
- }
7912
-
7913
- function entryMapper(v, k) {
7914
- return [k, v];
7915
- }
7916
-
7917
- function not(predicate) {
7918
- return function() {
7919
- return !predicate.apply(this, arguments);
7920
- }
7921
- }
7922
-
7923
- function neg(predicate) {
7924
- return function() {
7925
- return -predicate.apply(this, arguments);
7926
- }
7927
- }
7928
-
7929
- function quoteString(value) {
7930
- return typeof value === 'string' ? JSON.stringify(value) : String(value);
7931
- }
7932
-
7933
- function defaultZipper() {
7934
- return arrCopy(arguments);
7935
- }
7936
-
7937
- function defaultNegComparator(a, b) {
7938
- return a < b ? 1 : a > b ? -1 : 0;
7939
- }
7940
-
7941
- function hashIterable(iterable) {
7942
- if (iterable.size === Infinity) {
7943
- return 0;
7944
- }
7945
- var ordered = isOrdered(iterable);
7946
- var keyed = isKeyed(iterable);
7947
- var h = ordered ? 1 : 0;
7948
- var size = iterable.__iterate(
7949
- keyed ?
7950
- ordered ?
7951
- function(v, k) { h = 31 * h + hashMerge(hash(v), hash(k)) | 0; } :
7952
- function(v, k) { h = h + hashMerge(hash(v), hash(k)) | 0; } :
7953
- ordered ?
7954
- function(v ) { h = 31 * h + hash(v) | 0; } :
7955
- function(v ) { h = h + hash(v) | 0; }
7956
- );
7957
- return murmurHashOfSize(size, h);
7958
- }
7959
-
7960
- function murmurHashOfSize(size, h) {
7961
- h = imul(h, 0xCC9E2D51);
7962
- h = imul(h << 15 | h >>> -15, 0x1B873593);
7963
- h = imul(h << 13 | h >>> -13, 5);
7964
- h = (h + 0xE6546B64 | 0) ^ size;
7965
- h = imul(h ^ h >>> 16, 0x85EBCA6B);
7966
- h = imul(h ^ h >>> 13, 0xC2B2AE35);
7967
- h = smi(h ^ h >>> 16);
7968
- return h;
7969
- }
7970
-
7971
- function hashMerge(a, b) {
7972
- return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int
7973
- }
7974
-
7975
- var Immutable = {
7976
-
7977
- Iterable: Iterable,
7978
-
7979
- Seq: Seq,
7980
- Collection: Collection,
7981
- Map: Map,
7982
- OrderedMap: OrderedMap,
7983
- List: List,
7984
- Stack: Stack,
7985
- Set: Set,
7986
- OrderedSet: OrderedSet,
7987
-
7988
- Record: Record,
7989
- Range: Range,
7990
- Repeat: Repeat,
7991
-
7992
- is: is,
7993
- fromJS: fromJS
7994
-
7995
- };
7996
-
7997
- return Immutable;
7998
-
7999
- }));
8000
-
8001
- /***/ }),
8002
-
8003
- /***/ "./node_modules/invariant/browser.js":
8004
- /*!*******************************************!*\
8005
- !*** ./node_modules/invariant/browser.js ***!
8006
- \*******************************************/
8007
- /*! no static exports found */
8008
- /***/ (function(module, exports, __webpack_require__) {
8009
-
8010
- "use strict";
8011
- /**
8012
- * Copyright 2013-2015, Facebook, Inc.
8013
- * All rights reserved.
8014
- *
8015
- * This source code is licensed under the BSD-style license found in the
8016
- * LICENSE file in the root directory of this source tree. An additional grant
8017
- * of patent rights can be found in the PATENTS file in the same directory.
8018
- */
8019
-
8020
-
8021
-
8022
- /**
8023
- * Use invariant() to assert state which your program assumes to be true.
8024
- *
8025
- * Provide sprintf-style format (only %s is supported) and arguments
8026
- * to provide information about what broke and what you were
8027
- * expecting.
8028
- *
8029
- * The invariant message will be stripped in production, but the invariant
8030
- * will remain to ensure logic does not differ in production.
8031
- */
8032
-
8033
- var invariant = function(condition, format, a, b, c, d, e, f) {
8034
- if (true) {
8035
- if (format === undefined) {
8036
- throw new Error('invariant requires an error message argument');
8037
- }
8038
- }
8039
-
8040
- if (!condition) {
8041
- var error;
8042
- if (format === undefined) {
8043
- error = new Error(
8044
- 'Minified exception occurred; use the non-minified dev environment ' +
8045
- 'for the full error message and additional helpful warnings.'
8046
- );
8047
- } else {
8048
- var args = [a, b, c, d, e, f];
8049
- var argIndex = 0;
8050
- error = new Error(
8051
- format.replace(/%s/g, function() { return args[argIndex++]; })
8052
- );
8053
- error.name = 'Invariant Violation';
8054
- }
8055
-
8056
- error.framesToPop = 1; // we don't care about invariant's own frame
8057
- throw error;
8058
- }
8059
- };
8060
-
8061
- module.exports = invariant;
8062
-
8063
-
8064
- /***/ }),
8065
-
8066
- /***/ "./node_modules/lodash-es/_Symbol.js":
8067
- /*!*******************************************!*\
8068
- !*** ./node_modules/lodash-es/_Symbol.js ***!
8069
- \*******************************************/
8070
- /*! exports provided: default */
8071
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8072
-
8073
- "use strict";
8074
- __webpack_require__.r(__webpack_exports__);
8075
- /* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ "./node_modules/lodash-es/_root.js");
8076
-
8077
-
8078
- /** Built-in value references. */
8079
- var Symbol = _root_js__WEBPACK_IMPORTED_MODULE_0__["default"].Symbol;
8080
-
8081
- /* harmony default export */ __webpack_exports__["default"] = (Symbol);
8082
-
8083
-
8084
- /***/ }),
8085
-
8086
- /***/ "./node_modules/lodash-es/_baseGetTag.js":
8087
- /*!***********************************************!*\
8088
- !*** ./node_modules/lodash-es/_baseGetTag.js ***!
8089
- \***********************************************/
8090
- /*! exports provided: default */
8091
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8092
-
8093
- "use strict";
8094
- __webpack_require__.r(__webpack_exports__);
8095
- /* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_Symbol.js */ "./node_modules/lodash-es/_Symbol.js");
8096
- /* harmony import */ var _getRawTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_getRawTag.js */ "./node_modules/lodash-es/_getRawTag.js");
8097
- /* harmony import */ var _objectToString_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_objectToString.js */ "./node_modules/lodash-es/_objectToString.js");
8098
-
8099
-
8100
-
8101
-
8102
- /** `Object#toString` result references. */
8103
- var nullTag = '[object Null]',
8104
- undefinedTag = '[object Undefined]';
8105
-
8106
- /** Built-in value references. */
8107
- var symToStringTag = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"].toStringTag : undefined;
8108
-
8109
- /**
8110
- * The base implementation of `getTag` without fallbacks for buggy environments.
8111
- *
8112
- * @private
8113
- * @param {*} value The value to query.
8114
- * @returns {string} Returns the `toStringTag`.
8115
- */
8116
- function baseGetTag(value) {
8117
- if (value == null) {
8118
- return value === undefined ? undefinedTag : nullTag;
8119
- }
8120
- return (symToStringTag && symToStringTag in Object(value))
8121
- ? Object(_getRawTag_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value)
8122
- : Object(_objectToString_js__WEBPACK_IMPORTED_MODULE_2__["default"])(value);
8123
- }
8124
-
8125
- /* harmony default export */ __webpack_exports__["default"] = (baseGetTag);
8126
-
8127
-
8128
- /***/ }),
8129
-
8130
- /***/ "./node_modules/lodash-es/_freeGlobal.js":
8131
- /*!***********************************************!*\
8132
- !*** ./node_modules/lodash-es/_freeGlobal.js ***!
8133
- \***********************************************/
8134
- /*! exports provided: default */
8135
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8136
-
8137
- "use strict";
8138
- __webpack_require__.r(__webpack_exports__);
8139
- /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
8140
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
8141
-
8142
- /* harmony default export */ __webpack_exports__["default"] = (freeGlobal);
8143
-
8144
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
8145
-
8146
- /***/ }),
8147
-
8148
- /***/ "./node_modules/lodash-es/_getPrototype.js":
8149
- /*!*************************************************!*\
8150
- !*** ./node_modules/lodash-es/_getPrototype.js ***!
8151
- \*************************************************/
8152
- /*! exports provided: default */
8153
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8154
-
8155
- "use strict";
8156
- __webpack_require__.r(__webpack_exports__);
8157
- /* harmony import */ var _overArg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_overArg.js */ "./node_modules/lodash-es/_overArg.js");
8158
-
8159
-
8160
- /** Built-in value references. */
8161
- var getPrototype = Object(_overArg_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object.getPrototypeOf, Object);
8162
-
8163
- /* harmony default export */ __webpack_exports__["default"] = (getPrototype);
8164
-
8165
-
8166
- /***/ }),
8167
-
8168
- /***/ "./node_modules/lodash-es/_getRawTag.js":
8169
- /*!**********************************************!*\
8170
- !*** ./node_modules/lodash-es/_getRawTag.js ***!
8171
- \**********************************************/
8172
- /*! exports provided: default */
8173
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8174
-
8175
- "use strict";
8176
- __webpack_require__.r(__webpack_exports__);
8177
- /* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_Symbol.js */ "./node_modules/lodash-es/_Symbol.js");
8178
-
8179
-
8180
- /** Used for built-in method references. */
8181
- var objectProto = Object.prototype;
8182
-
8183
- /** Used to check objects for own properties. */
8184
- var hasOwnProperty = objectProto.hasOwnProperty;
8185
-
8186
- /**
8187
- * Used to resolve the
8188
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
8189
- * of values.
8190
- */
8191
- var nativeObjectToString = objectProto.toString;
8192
-
8193
- /** Built-in value references. */
8194
- var symToStringTag = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"].toStringTag : undefined;
8195
-
8196
- /**
8197
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
8198
- *
8199
- * @private
8200
- * @param {*} value The value to query.
8201
- * @returns {string} Returns the raw `toStringTag`.
8202
- */
8203
- function getRawTag(value) {
8204
- var isOwn = hasOwnProperty.call(value, symToStringTag),
8205
- tag = value[symToStringTag];
8206
-
8207
- try {
8208
- value[symToStringTag] = undefined;
8209
- var unmasked = true;
8210
- } catch (e) {}
8211
-
8212
- var result = nativeObjectToString.call(value);
8213
- if (unmasked) {
8214
- if (isOwn) {
8215
- value[symToStringTag] = tag;
8216
- } else {
8217
- delete value[symToStringTag];
8218
- }
8219
- }
8220
- return result;
8221
- }
8222
-
8223
- /* harmony default export */ __webpack_exports__["default"] = (getRawTag);
8224
-
8225
-
8226
- /***/ }),
8227
-
8228
- /***/ "./node_modules/lodash-es/_objectToString.js":
8229
- /*!***************************************************!*\
8230
- !*** ./node_modules/lodash-es/_objectToString.js ***!
8231
- \***************************************************/
8232
- /*! exports provided: default */
8233
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8234
-
8235
- "use strict";
8236
- __webpack_require__.r(__webpack_exports__);
8237
- /** Used for built-in method references. */
8238
- var objectProto = Object.prototype;
8239
-
8240
- /**
8241
- * Used to resolve the
8242
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
8243
- * of values.
8244
- */
8245
- var nativeObjectToString = objectProto.toString;
8246
-
8247
- /**
8248
- * Converts `value` to a string using `Object.prototype.toString`.
8249
- *
8250
- * @private
8251
- * @param {*} value The value to convert.
8252
- * @returns {string} Returns the converted string.
8253
- */
8254
- function objectToString(value) {
8255
- return nativeObjectToString.call(value);
8256
- }
8257
-
8258
- /* harmony default export */ __webpack_exports__["default"] = (objectToString);
8259
-
8260
-
8261
- /***/ }),
8262
-
8263
- /***/ "./node_modules/lodash-es/_overArg.js":
8264
- /*!********************************************!*\
8265
- !*** ./node_modules/lodash-es/_overArg.js ***!
8266
- \********************************************/
8267
- /*! exports provided: default */
8268
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8269
-
8270
- "use strict";
8271
- __webpack_require__.r(__webpack_exports__);
8272
- /**
8273
- * Creates a unary function that invokes `func` with its argument transformed.
8274
- *
8275
- * @private
8276
- * @param {Function} func The function to wrap.
8277
- * @param {Function} transform The argument transform.
8278
- * @returns {Function} Returns the new function.
8279
- */
8280
- function overArg(func, transform) {
8281
- return function(arg) {
8282
- return func(transform(arg));
8283
- };
8284
- }
8285
-
8286
- /* harmony default export */ __webpack_exports__["default"] = (overArg);
8287
-
8288
-
8289
- /***/ }),
8290
-
8291
- /***/ "./node_modules/lodash-es/_root.js":
8292
- /*!*****************************************!*\
8293
- !*** ./node_modules/lodash-es/_root.js ***!
8294
- \*****************************************/
8295
- /*! exports provided: default */
8296
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8297
-
8298
- "use strict";
8299
- __webpack_require__.r(__webpack_exports__);
8300
- /* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_freeGlobal.js */ "./node_modules/lodash-es/_freeGlobal.js");
8301
-
8302
-
8303
- /** Detect free variable `self`. */
8304
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
8305
-
8306
- /** Used as a reference to the global object. */
8307
- var root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__["default"] || freeSelf || Function('return this')();
8308
-
8309
- /* harmony default export */ __webpack_exports__["default"] = (root);
8310
-
8311
-
8312
- /***/ }),
8313
-
8314
- /***/ "./node_modules/lodash-es/isObjectLike.js":
8315
- /*!************************************************!*\
8316
- !*** ./node_modules/lodash-es/isObjectLike.js ***!
8317
- \************************************************/
8318
- /*! exports provided: default */
8319
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8320
-
8321
- "use strict";
8322
- __webpack_require__.r(__webpack_exports__);
8323
- /**
8324
- * Checks if `value` is object-like. A value is object-like if it's not `null`
8325
- * and has a `typeof` result of "object".
8326
- *
8327
- * @static
8328
- * @memberOf _
8329
- * @since 4.0.0
8330
- * @category Lang
8331
- * @param {*} value The value to check.
8332
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
8333
- * @example
8334
- *
8335
- * _.isObjectLike({});
8336
- * // => true
8337
- *
8338
- * _.isObjectLike([1, 2, 3]);
8339
- * // => true
8340
- *
8341
- * _.isObjectLike(_.noop);
8342
- * // => false
8343
- *
8344
- * _.isObjectLike(null);
8345
- * // => false
8346
- */
8347
- function isObjectLike(value) {
8348
- return value != null && typeof value == 'object';
8349
- }
8350
-
8351
- /* harmony default export */ __webpack_exports__["default"] = (isObjectLike);
8352
-
8353
-
8354
- /***/ }),
8355
-
8356
- /***/ "./node_modules/lodash-es/isPlainObject.js":
8357
- /*!*************************************************!*\
8358
- !*** ./node_modules/lodash-es/isPlainObject.js ***!
8359
- \*************************************************/
8360
- /*! exports provided: default */
8361
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8362
-
8363
- "use strict";
8364
- __webpack_require__.r(__webpack_exports__);
8365
- /* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_baseGetTag.js */ "./node_modules/lodash-es/_baseGetTag.js");
8366
- /* harmony import */ var _getPrototype_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_getPrototype.js */ "./node_modules/lodash-es/_getPrototype.js");
8367
- /* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isObjectLike.js */ "./node_modules/lodash-es/isObjectLike.js");
8368
-
8369
-
8370
-
8371
-
8372
- /** `Object#toString` result references. */
8373
- var objectTag = '[object Object]';
8374
-
8375
- /** Used for built-in method references. */
8376
- var funcProto = Function.prototype,
8377
- objectProto = Object.prototype;
8378
-
8379
- /** Used to resolve the decompiled source of functions. */
8380
- var funcToString = funcProto.toString;
8381
-
8382
- /** Used to check objects for own properties. */
8383
- var hasOwnProperty = objectProto.hasOwnProperty;
8384
-
8385
- /** Used to infer the `Object` constructor. */
8386
- var objectCtorString = funcToString.call(Object);
8387
-
8388
- /**
8389
- * Checks if `value` is a plain object, that is, an object created by the
8390
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
8391
- *
8392
- * @static
8393
- * @memberOf _
8394
- * @since 0.8.0
8395
- * @category Lang
8396
- * @param {*} value The value to check.
8397
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
8398
- * @example
8399
- *
8400
- * function Foo() {
8401
- * this.a = 1;
8402
- * }
8403
- *
8404
- * _.isPlainObject(new Foo);
8405
- * // => false
8406
- *
8407
- * _.isPlainObject([1, 2, 3]);
8408
- * // => false
8409
- *
8410
- * _.isPlainObject({ 'x': 0, 'y': 0 });
8411
- * // => true
8412
- *
8413
- * _.isPlainObject(Object.create(null));
8414
- * // => true
8415
- */
8416
- function isPlainObject(value) {
8417
- if (!Object(_isObjectLike_js__WEBPACK_IMPORTED_MODULE_2__["default"])(value) || Object(_baseGetTag_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) != objectTag) {
8418
- return false;
8419
- }
8420
- var proto = Object(_getPrototype_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value);
8421
- if (proto === null) {
8422
- return true;
8423
- }
8424
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
8425
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
8426
- funcToString.call(Ctor) == objectCtorString;
8427
- }
8428
-
8429
- /* harmony default export */ __webpack_exports__["default"] = (isPlainObject);
8430
-
8431
-
8432
- /***/ }),
8433
-
8434
- /***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
8435
- /*!**************************************************!*\
8436
- !*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
8437
- \**************************************************/
8438
- /*! no static exports found */
8439
- /***/ (function(module, exports, __webpack_require__) {
8440
-
8441
- var map = {
8442
- "./af": "./node_modules/moment/locale/af.js",
8443
- "./af.js": "./node_modules/moment/locale/af.js",
8444
- "./ar": "./node_modules/moment/locale/ar.js",
8445
- "./ar-dz": "./node_modules/moment/locale/ar-dz.js",
8446
- "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
8447
- "./ar-kw": "./node_modules/moment/locale/ar-kw.js",
8448
- "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
8449
- "./ar-ly": "./node_modules/moment/locale/ar-ly.js",
8450
- "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
8451
- "./ar-ma": "./node_modules/moment/locale/ar-ma.js",
8452
- "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
8453
- "./ar-sa": "./node_modules/moment/locale/ar-sa.js",
8454
- "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
8455
- "./ar-tn": "./node_modules/moment/locale/ar-tn.js",
8456
- "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
8457
- "./ar.js": "./node_modules/moment/locale/ar.js",
8458
- "./az": "./node_modules/moment/locale/az.js",
8459
- "./az.js": "./node_modules/moment/locale/az.js",
8460
- "./be": "./node_modules/moment/locale/be.js",
8461
- "./be.js": "./node_modules/moment/locale/be.js",
8462
- "./bg": "./node_modules/moment/locale/bg.js",
8463
- "./bg.js": "./node_modules/moment/locale/bg.js",
8464
- "./bm": "./node_modules/moment/locale/bm.js",
8465
- "./bm.js": "./node_modules/moment/locale/bm.js",
8466
- "./bn": "./node_modules/moment/locale/bn.js",
8467
- "./bn.js": "./node_modules/moment/locale/bn.js",
8468
- "./bo": "./node_modules/moment/locale/bo.js",
8469
- "./bo.js": "./node_modules/moment/locale/bo.js",
8470
- "./br": "./node_modules/moment/locale/br.js",
8471
- "./br.js": "./node_modules/moment/locale/br.js",
8472
- "./bs": "./node_modules/moment/locale/bs.js",
8473
- "./bs.js": "./node_modules/moment/locale/bs.js",
8474
- "./ca": "./node_modules/moment/locale/ca.js",
8475
- "./ca.js": "./node_modules/moment/locale/ca.js",
8476
- "./cs": "./node_modules/moment/locale/cs.js",
8477
- "./cs.js": "./node_modules/moment/locale/cs.js",
8478
- "./cv": "./node_modules/moment/locale/cv.js",
8479
- "./cv.js": "./node_modules/moment/locale/cv.js",
8480
- "./cy": "./node_modules/moment/locale/cy.js",
8481
- "./cy.js": "./node_modules/moment/locale/cy.js",
8482
- "./da": "./node_modules/moment/locale/da.js",
8483
- "./da.js": "./node_modules/moment/locale/da.js",
8484
- "./de": "./node_modules/moment/locale/de.js",
8485
- "./de-at": "./node_modules/moment/locale/de-at.js",
8486
- "./de-at.js": "./node_modules/moment/locale/de-at.js",
8487
- "./de-ch": "./node_modules/moment/locale/de-ch.js",
8488
- "./de-ch.js": "./node_modules/moment/locale/de-ch.js",
8489
- "./de.js": "./node_modules/moment/locale/de.js",
8490
- "./dv": "./node_modules/moment/locale/dv.js",
8491
- "./dv.js": "./node_modules/moment/locale/dv.js",
8492
- "./el": "./node_modules/moment/locale/el.js",
8493
- "./el.js": "./node_modules/moment/locale/el.js",
8494
- "./en-au": "./node_modules/moment/locale/en-au.js",
8495
- "./en-au.js": "./node_modules/moment/locale/en-au.js",
8496
- "./en-ca": "./node_modules/moment/locale/en-ca.js",
8497
- "./en-ca.js": "./node_modules/moment/locale/en-ca.js",
8498
- "./en-gb": "./node_modules/moment/locale/en-gb.js",
8499
- "./en-gb.js": "./node_modules/moment/locale/en-gb.js",
8500
- "./en-ie": "./node_modules/moment/locale/en-ie.js",
8501
- "./en-ie.js": "./node_modules/moment/locale/en-ie.js",
8502
- "./en-il": "./node_modules/moment/locale/en-il.js",
8503
- "./en-il.js": "./node_modules/moment/locale/en-il.js",
8504
- "./en-nz": "./node_modules/moment/locale/en-nz.js",
8505
- "./en-nz.js": "./node_modules/moment/locale/en-nz.js",
8506
- "./eo": "./node_modules/moment/locale/eo.js",
8507
- "./eo.js": "./node_modules/moment/locale/eo.js",
8508
- "./es": "./node_modules/moment/locale/es.js",
8509
- "./es-do": "./node_modules/moment/locale/es-do.js",
8510
- "./es-do.js": "./node_modules/moment/locale/es-do.js",
8511
- "./es-us": "./node_modules/moment/locale/es-us.js",
8512
- "./es-us.js": "./node_modules/moment/locale/es-us.js",
8513
- "./es.js": "./node_modules/moment/locale/es.js",
8514
- "./et": "./node_modules/moment/locale/et.js",
8515
- "./et.js": "./node_modules/moment/locale/et.js",
8516
- "./eu": "./node_modules/moment/locale/eu.js",
8517
- "./eu.js": "./node_modules/moment/locale/eu.js",
8518
- "./fa": "./node_modules/moment/locale/fa.js",
8519
- "./fa.js": "./node_modules/moment/locale/fa.js",
8520
- "./fi": "./node_modules/moment/locale/fi.js",
8521
- "./fi.js": "./node_modules/moment/locale/fi.js",
8522
- "./fo": "./node_modules/moment/locale/fo.js",
8523
- "./fo.js": "./node_modules/moment/locale/fo.js",
8524
- "./fr": "./node_modules/moment/locale/fr.js",
8525
- "./fr-ca": "./node_modules/moment/locale/fr-ca.js",
8526
- "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
8527
- "./fr-ch": "./node_modules/moment/locale/fr-ch.js",
8528
- "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
8529
- "./fr.js": "./node_modules/moment/locale/fr.js",
8530
- "./fy": "./node_modules/moment/locale/fy.js",
8531
- "./fy.js": "./node_modules/moment/locale/fy.js",
8532
- "./gd": "./node_modules/moment/locale/gd.js",
8533
- "./gd.js": "./node_modules/moment/locale/gd.js",
8534
- "./gl": "./node_modules/moment/locale/gl.js",
8535
- "./gl.js": "./node_modules/moment/locale/gl.js",
8536
- "./gom-latn": "./node_modules/moment/locale/gom-latn.js",
8537
- "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
8538
- "./gu": "./node_modules/moment/locale/gu.js",
8539
- "./gu.js": "./node_modules/moment/locale/gu.js",
8540
- "./he": "./node_modules/moment/locale/he.js",
8541
- "./he.js": "./node_modules/moment/locale/he.js",
8542
- "./hi": "./node_modules/moment/locale/hi.js",
8543
- "./hi.js": "./node_modules/moment/locale/hi.js",
8544
- "./hr": "./node_modules/moment/locale/hr.js",
8545
- "./hr.js": "./node_modules/moment/locale/hr.js",
8546
- "./hu": "./node_modules/moment/locale/hu.js",
8547
- "./hu.js": "./node_modules/moment/locale/hu.js",
8548
- "./hy-am": "./node_modules/moment/locale/hy-am.js",
8549
- "./hy-am.js": "./node_modules/moment/locale/hy-am.js",
8550
- "./id": "./node_modules/moment/locale/id.js",
8551
- "./id.js": "./node_modules/moment/locale/id.js",
8552
- "./is": "./node_modules/moment/locale/is.js",
8553
- "./is.js": "./node_modules/moment/locale/is.js",
8554
- "./it": "./node_modules/moment/locale/it.js",
8555
- "./it.js": "./node_modules/moment/locale/it.js",
8556
- "./ja": "./node_modules/moment/locale/ja.js",
8557
- "./ja.js": "./node_modules/moment/locale/ja.js",
8558
- "./jv": "./node_modules/moment/locale/jv.js",
8559
- "./jv.js": "./node_modules/moment/locale/jv.js",
8560
- "./ka": "./node_modules/moment/locale/ka.js",
8561
- "./ka.js": "./node_modules/moment/locale/ka.js",
8562
- "./kk": "./node_modules/moment/locale/kk.js",
8563
- "./kk.js": "./node_modules/moment/locale/kk.js",
8564
- "./km": "./node_modules/moment/locale/km.js",
8565
- "./km.js": "./node_modules/moment/locale/km.js",
8566
- "./kn": "./node_modules/moment/locale/kn.js",
8567
- "./kn.js": "./node_modules/moment/locale/kn.js",
8568
- "./ko": "./node_modules/moment/locale/ko.js",
8569
- "./ko.js": "./node_modules/moment/locale/ko.js",
8570
- "./ky": "./node_modules/moment/locale/ky.js",
8571
- "./ky.js": "./node_modules/moment/locale/ky.js",
8572
- "./lb": "./node_modules/moment/locale/lb.js",
8573
- "./lb.js": "./node_modules/moment/locale/lb.js",
8574
- "./lo": "./node_modules/moment/locale/lo.js",
8575
- "./lo.js": "./node_modules/moment/locale/lo.js",
8576
- "./lt": "./node_modules/moment/locale/lt.js",
8577
- "./lt.js": "./node_modules/moment/locale/lt.js",
8578
- "./lv": "./node_modules/moment/locale/lv.js",
8579
- "./lv.js": "./node_modules/moment/locale/lv.js",
8580
- "./me": "./node_modules/moment/locale/me.js",
8581
- "./me.js": "./node_modules/moment/locale/me.js",
8582
- "./mi": "./node_modules/moment/locale/mi.js",
8583
- "./mi.js": "./node_modules/moment/locale/mi.js",
8584
- "./mk": "./node_modules/moment/locale/mk.js",
8585
- "./mk.js": "./node_modules/moment/locale/mk.js",
8586
- "./ml": "./node_modules/moment/locale/ml.js",
8587
- "./ml.js": "./node_modules/moment/locale/ml.js",
8588
- "./mr": "./node_modules/moment/locale/mr.js",
8589
- "./mr.js": "./node_modules/moment/locale/mr.js",
8590
- "./ms": "./node_modules/moment/locale/ms.js",
8591
- "./ms-my": "./node_modules/moment/locale/ms-my.js",
8592
- "./ms-my.js": "./node_modules/moment/locale/ms-my.js",
8593
- "./ms.js": "./node_modules/moment/locale/ms.js",
8594
- "./mt": "./node_modules/moment/locale/mt.js",
8595
- "./mt.js": "./node_modules/moment/locale/mt.js",
8596
- "./my": "./node_modules/moment/locale/my.js",
8597
- "./my.js": "./node_modules/moment/locale/my.js",
8598
- "./nb": "./node_modules/moment/locale/nb.js",
8599
- "./nb.js": "./node_modules/moment/locale/nb.js",
8600
- "./ne": "./node_modules/moment/locale/ne.js",
8601
- "./ne.js": "./node_modules/moment/locale/ne.js",
8602
- "./nl": "./node_modules/moment/locale/nl.js",
8603
- "./nl-be": "./node_modules/moment/locale/nl-be.js",
8604
- "./nl-be.js": "./node_modules/moment/locale/nl-be.js",
8605
- "./nl.js": "./node_modules/moment/locale/nl.js",
8606
- "./nn": "./node_modules/moment/locale/nn.js",
8607
- "./nn.js": "./node_modules/moment/locale/nn.js",
8608
- "./pa-in": "./node_modules/moment/locale/pa-in.js",
8609
- "./pa-in.js": "./node_modules/moment/locale/pa-in.js",
8610
- "./pl": "./node_modules/moment/locale/pl.js",
8611
- "./pl.js": "./node_modules/moment/locale/pl.js",
8612
- "./pt": "./node_modules/moment/locale/pt.js",
8613
- "./pt-br": "./node_modules/moment/locale/pt-br.js",
8614
- "./pt-br.js": "./node_modules/moment/locale/pt-br.js",
8615
- "./pt.js": "./node_modules/moment/locale/pt.js",
8616
- "./ro": "./node_modules/moment/locale/ro.js",
8617
- "./ro.js": "./node_modules/moment/locale/ro.js",
8618
- "./ru": "./node_modules/moment/locale/ru.js",
8619
- "./ru.js": "./node_modules/moment/locale/ru.js",
8620
- "./sd": "./node_modules/moment/locale/sd.js",
8621
- "./sd.js": "./node_modules/moment/locale/sd.js",
8622
- "./se": "./node_modules/moment/locale/se.js",
8623
- "./se.js": "./node_modules/moment/locale/se.js",
8624
- "./si": "./node_modules/moment/locale/si.js",
8625
- "./si.js": "./node_modules/moment/locale/si.js",
8626
- "./sk": "./node_modules/moment/locale/sk.js",
8627
- "./sk.js": "./node_modules/moment/locale/sk.js",
8628
- "./sl": "./node_modules/moment/locale/sl.js",
8629
- "./sl.js": "./node_modules/moment/locale/sl.js",
8630
- "./sq": "./node_modules/moment/locale/sq.js",
8631
- "./sq.js": "./node_modules/moment/locale/sq.js",
8632
- "./sr": "./node_modules/moment/locale/sr.js",
8633
- "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
8634
- "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
8635
- "./sr.js": "./node_modules/moment/locale/sr.js",
8636
- "./ss": "./node_modules/moment/locale/ss.js",
8637
- "./ss.js": "./node_modules/moment/locale/ss.js",
8638
- "./sv": "./node_modules/moment/locale/sv.js",
8639
- "./sv.js": "./node_modules/moment/locale/sv.js",
8640
- "./sw": "./node_modules/moment/locale/sw.js",
8641
- "./sw.js": "./node_modules/moment/locale/sw.js",
8642
- "./ta": "./node_modules/moment/locale/ta.js",
8643
- "./ta.js": "./node_modules/moment/locale/ta.js",
8644
- "./te": "./node_modules/moment/locale/te.js",
8645
- "./te.js": "./node_modules/moment/locale/te.js",
8646
- "./tet": "./node_modules/moment/locale/tet.js",
8647
- "./tet.js": "./node_modules/moment/locale/tet.js",
8648
- "./tg": "./node_modules/moment/locale/tg.js",
8649
- "./tg.js": "./node_modules/moment/locale/tg.js",
8650
- "./th": "./node_modules/moment/locale/th.js",
8651
- "./th.js": "./node_modules/moment/locale/th.js",
8652
- "./tl-ph": "./node_modules/moment/locale/tl-ph.js",
8653
- "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
8654
- "./tlh": "./node_modules/moment/locale/tlh.js",
8655
- "./tlh.js": "./node_modules/moment/locale/tlh.js",
8656
- "./tr": "./node_modules/moment/locale/tr.js",
8657
- "./tr.js": "./node_modules/moment/locale/tr.js",
8658
- "./tzl": "./node_modules/moment/locale/tzl.js",
8659
- "./tzl.js": "./node_modules/moment/locale/tzl.js",
8660
- "./tzm": "./node_modules/moment/locale/tzm.js",
8661
- "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
8662
- "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
8663
- "./tzm.js": "./node_modules/moment/locale/tzm.js",
8664
- "./ug-cn": "./node_modules/moment/locale/ug-cn.js",
8665
- "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",
8666
- "./uk": "./node_modules/moment/locale/uk.js",
8667
- "./uk.js": "./node_modules/moment/locale/uk.js",
8668
- "./ur": "./node_modules/moment/locale/ur.js",
8669
- "./ur.js": "./node_modules/moment/locale/ur.js",
8670
- "./uz": "./node_modules/moment/locale/uz.js",
8671
- "./uz-latn": "./node_modules/moment/locale/uz-latn.js",
8672
- "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
8673
- "./uz.js": "./node_modules/moment/locale/uz.js",
8674
- "./vi": "./node_modules/moment/locale/vi.js",
8675
- "./vi.js": "./node_modules/moment/locale/vi.js",
8676
- "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
8677
- "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
8678
- "./yo": "./node_modules/moment/locale/yo.js",
8679
- "./yo.js": "./node_modules/moment/locale/yo.js",
8680
- "./zh-cn": "./node_modules/moment/locale/zh-cn.js",
8681
- "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
8682
- "./zh-hk": "./node_modules/moment/locale/zh-hk.js",
8683
- "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
8684
- "./zh-tw": "./node_modules/moment/locale/zh-tw.js",
8685
- "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
8686
- };
8687
-
8688
-
8689
- function webpackContext(req) {
8690
- var id = webpackContextResolve(req);
8691
- var module = __webpack_require__(id);
8692
- return module;
8693
- }
8694
- function webpackContextResolve(req) {
8695
- var id = map[req];
8696
- if(!(id + 1)) { // check for number or string
8697
- var e = new Error('Cannot find module "' + req + '".');
8698
- e.code = 'MODULE_NOT_FOUND';
8699
- throw e;
8700
- }
8701
- return id;
8702
- }
8703
- webpackContext.keys = function webpackContextKeys() {
8704
- return Object.keys(map);
8705
- };
8706
- webpackContext.resolve = webpackContextResolve;
8707
- module.exports = webpackContext;
8708
- webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";
8709
-
8710
- /***/ }),
8711
-
8712
- /***/ "./node_modules/moment/locale/af.js":
8713
- /*!******************************************!*\
8714
- !*** ./node_modules/moment/locale/af.js ***!
8715
- \******************************************/
8716
- /*! no static exports found */
8717
- /***/ (function(module, exports, __webpack_require__) {
8718
-
8719
- //! moment.js locale configuration
8720
-
8721
- ;(function (global, factory) {
8722
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8723
- undefined
8724
- }(this, (function (moment) { 'use strict';
8725
-
8726
-
8727
- var af = moment.defineLocale('af', {
8728
- months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
8729
- monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
8730
- weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
8731
- weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
8732
- weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
8733
- meridiemParse: /vm|nm/i,
8734
- isPM : function (input) {
8735
- return /^nm$/i.test(input);
8736
- },
8737
- meridiem : function (hours, minutes, isLower) {
8738
- if (hours < 12) {
8739
- return isLower ? 'vm' : 'VM';
8740
- } else {
8741
- return isLower ? 'nm' : 'NM';
8742
- }
8743
- },
8744
- longDateFormat : {
8745
- LT : 'HH:mm',
8746
- LTS : 'HH:mm:ss',
8747
- L : 'DD/MM/YYYY',
8748
- LL : 'D MMMM YYYY',
8749
- LLL : 'D MMMM YYYY HH:mm',
8750
- LLLL : 'dddd, D MMMM YYYY HH:mm'
8751
- },
8752
- calendar : {
8753
- sameDay : '[Vandag om] LT',
8754
- nextDay : '[Môre om] LT',
8755
- nextWeek : 'dddd [om] LT',
8756
- lastDay : '[Gister om] LT',
8757
- lastWeek : '[Laas] dddd [om] LT',
8758
- sameElse : 'L'
8759
- },
8760
- relativeTime : {
8761
- future : 'oor %s',
8762
- past : '%s gelede',
8763
- s : '\'n paar sekondes',
8764
- ss : '%d sekondes',
8765
- m : '\'n minuut',
8766
- mm : '%d minute',
8767
- h : '\'n uur',
8768
- hh : '%d ure',
8769
- d : '\'n dag',
8770
- dd : '%d dae',
8771
- M : '\'n maand',
8772
- MM : '%d maande',
8773
- y : '\'n jaar',
8774
- yy : '%d jaar'
8775
- },
8776
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
8777
- ordinal : function (number) {
8778
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
8779
- },
8780
- week : {
8781
- dow : 1, // Maandag is die eerste dag van die week.
8782
- doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
8783
- }
8784
- });
8785
-
8786
- return af;
8787
-
8788
- })));
8789
-
8790
-
8791
- /***/ }),
8792
-
8793
- /***/ "./node_modules/moment/locale/ar-dz.js":
8794
- /*!*********************************************!*\
8795
- !*** ./node_modules/moment/locale/ar-dz.js ***!
8796
- \*********************************************/
8797
- /*! no static exports found */
8798
- /***/ (function(module, exports, __webpack_require__) {
8799
-
8800
- //! moment.js locale configuration
8801
-
8802
- ;(function (global, factory) {
8803
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8804
- undefined
8805
- }(this, (function (moment) { 'use strict';
8806
-
8807
-
8808
- var arDz = moment.defineLocale('ar-dz', {
8809
- months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
8810
- monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
8811
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8812
- weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
8813
- weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
8814
- weekdaysParseExact : true,
8815
- longDateFormat : {
8816
- LT : 'HH:mm',
8817
- LTS : 'HH:mm:ss',
8818
- L : 'DD/MM/YYYY',
8819
- LL : 'D MMMM YYYY',
8820
- LLL : 'D MMMM YYYY HH:mm',
8821
- LLLL : 'dddd D MMMM YYYY HH:mm'
8822
- },
8823
- calendar : {
8824
- sameDay: '[اليوم على الساعة] LT',
8825
- nextDay: '[غدا على الساعة] LT',
8826
- nextWeek: 'dddd [على الساعة] LT',
8827
- lastDay: '[أمس على الساعة] LT',
8828
- lastWeek: 'dddd [على الساعة] LT',
8829
- sameElse: 'L'
8830
- },
8831
- relativeTime : {
8832
- future : 'في %s',
8833
- past : 'منذ %s',
8834
- s : 'ثوان',
8835
- ss : '%d ثانية',
8836
- m : 'دقيقة',
8837
- mm : '%d دقائق',
8838
- h : 'ساعة',
8839
- hh : '%d ساعات',
8840
- d : 'يوم',
8841
- dd : '%d أيام',
8842
- M : 'شهر',
8843
- MM : '%d أشهر',
8844
- y : 'سنة',
8845
- yy : '%d سنوات'
8846
- },
8847
- week : {
8848
- dow : 0, // Sunday is the first day of the week.
8849
- doy : 4 // The week that contains Jan 1st is the first week of the year.
8850
- }
8851
- });
8852
-
8853
- return arDz;
8854
-
8855
- })));
8856
-
8857
-
8858
- /***/ }),
8859
-
8860
- /***/ "./node_modules/moment/locale/ar-kw.js":
8861
- /*!*********************************************!*\
8862
- !*** ./node_modules/moment/locale/ar-kw.js ***!
8863
- \*********************************************/
8864
- /*! no static exports found */
8865
- /***/ (function(module, exports, __webpack_require__) {
8866
-
8867
- //! moment.js locale configuration
8868
-
8869
- ;(function (global, factory) {
8870
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8871
- undefined
8872
- }(this, (function (moment) { 'use strict';
8873
-
8874
-
8875
- var arKw = moment.defineLocale('ar-kw', {
8876
- months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
8877
- monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
8878
- weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8879
- weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
8880
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
8881
- weekdaysParseExact : true,
8882
- longDateFormat : {
8883
- LT : 'HH:mm',
8884
- LTS : 'HH:mm:ss',
8885
- L : 'DD/MM/YYYY',
8886
- LL : 'D MMMM YYYY',
8887
- LLL : 'D MMMM YYYY HH:mm',
8888
- LLLL : 'dddd D MMMM YYYY HH:mm'
8889
- },
8890
- calendar : {
8891
- sameDay: '[اليوم على الساعة] LT',
8892
- nextDay: '[غدا على الساعة] LT',
8893
- nextWeek: 'dddd [على الساعة] LT',
8894
- lastDay: '[أمس على الساعة] LT',
8895
- lastWeek: 'dddd [على الساعة] LT',
8896
- sameElse: 'L'
8897
- },
8898
- relativeTime : {
8899
- future : 'في %s',
8900
- past : 'منذ %s',
8901
- s : 'ثوان',
8902
- ss : '%d ثانية',
8903
- m : 'دقيقة',
8904
- mm : '%d دقائق',
8905
- h : 'ساعة',
8906
- hh : '%d ساعات',
8907
- d : 'يوم',
8908
- dd : '%d أيام',
8909
- M : 'شهر',
8910
- MM : '%d أشهر',
8911
- y : 'سنة',
8912
- yy : '%d سنوات'
8913
- },
8914
- week : {
8915
- dow : 0, // Sunday is the first day of the week.
8916
- doy : 12 // The week that contains Jan 1st is the first week of the year.
8917
- }
8918
- });
8919
-
8920
- return arKw;
8921
-
8922
- })));
8923
-
8924
-
8925
- /***/ }),
8926
-
8927
- /***/ "./node_modules/moment/locale/ar-ly.js":
8928
- /*!*********************************************!*\
8929
- !*** ./node_modules/moment/locale/ar-ly.js ***!
8930
- \*********************************************/
8931
- /*! no static exports found */
8932
- /***/ (function(module, exports, __webpack_require__) {
8933
-
8934
- //! moment.js locale configuration
8935
-
8936
- ;(function (global, factory) {
8937
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8938
- undefined
8939
- }(this, (function (moment) { 'use strict';
8940
-
8941
-
8942
- var symbolMap = {
8943
- '1': '1',
8944
- '2': '2',
8945
- '3': '3',
8946
- '4': '4',
8947
- '5': '5',
8948
- '6': '6',
8949
- '7': '7',
8950
- '8': '8',
8951
- '9': '9',
8952
- '0': '0'
8953
- }, pluralForm = function (n) {
8954
- return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
8955
- }, plurals = {
8956
- s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
8957
- m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
8958
- h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
8959
- d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
8960
- M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
8961
- y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
8962
- }, pluralize = function (u) {
8963
- return function (number, withoutSuffix, string, isFuture) {
8964
- var f = pluralForm(number),
8965
- str = plurals[u][pluralForm(number)];
8966
- if (f === 2) {
8967
- str = str[withoutSuffix ? 0 : 1];
8968
- }
8969
- return str.replace(/%d/i, number);
8970
- };
8971
- }, months = [
8972
- 'يناير',
8973
- 'فبراير',
8974
- 'مارس',
8975
- 'أبريل',
8976
- 'مايو',
8977
- 'يونيو',
8978
- 'يوليو',
8979
- 'أغسطس',
8980
- 'سبتمبر',
8981
- 'أكتوبر',
8982
- 'نوفمبر',
8983
- 'ديسمبر'
8984
- ];
8985
-
8986
- var arLy = moment.defineLocale('ar-ly', {
8987
- months : months,
8988
- monthsShort : months,
8989
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8990
- weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
8991
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
8992
- weekdaysParseExact : true,
8993
- longDateFormat : {
8994
- LT : 'HH:mm',
8995
- LTS : 'HH:mm:ss',
8996
- L : 'D/\u200FM/\u200FYYYY',
8997
- LL : 'D MMMM YYYY',
8998
- LLL : 'D MMMM YYYY HH:mm',
8999
- LLLL : 'dddd D MMMM YYYY HH:mm'
9000
- },
9001
- meridiemParse: /ص|م/,
9002
- isPM : function (input) {
9003
- return 'م' === input;
9004
- },
9005
- meridiem : function (hour, minute, isLower) {
9006
- if (hour < 12) {
9007
- return 'ص';
9008
- } else {
9009
- return 'م';
9010
- }
9011
- },
9012
- calendar : {
9013
- sameDay: '[اليوم عند الساعة] LT',
9014
- nextDay: '[غدًا عند الساعة] LT',
9015
- nextWeek: 'dddd [عند الساعة] LT',
9016
- lastDay: '[أمس عند الساعة] LT',
9017
- lastWeek: 'dddd [عند الساعة] LT',
9018
- sameElse: 'L'
9019
- },
9020
- relativeTime : {
9021
- future : 'بعد %s',
9022
- past : 'منذ %s',
9023
- s : pluralize('s'),
9024
- ss : pluralize('s'),
9025
- m : pluralize('m'),
9026
- mm : pluralize('m'),
9027
- h : pluralize('h'),
9028
- hh : pluralize('h'),
9029
- d : pluralize('d'),
9030
- dd : pluralize('d'),
9031
- M : pluralize('M'),
9032
- MM : pluralize('M'),
9033
- y : pluralize('y'),
9034
- yy : pluralize('y')
9035
- },
9036
- preparse: function (string) {
9037
- return string.replace(/،/g, ',');
9038
- },
9039
- postformat: function (string) {
9040
- return string.replace(/\d/g, function (match) {
9041
- return symbolMap[match];
9042
- }).replace(/,/g, '،');
9043
- },
9044
- week : {
9045
- dow : 6, // Saturday is the first day of the week.
9046
- doy : 12 // The week that contains Jan 1st is the first week of the year.
9047
- }
9048
- });
9049
-
9050
- return arLy;
9051
-
9052
- })));
9053
-
9054
-
9055
- /***/ }),
9056
-
9057
- /***/ "./node_modules/moment/locale/ar-ma.js":
9058
- /*!*********************************************!*\
9059
- !*** ./node_modules/moment/locale/ar-ma.js ***!
9060
- \*********************************************/
9061
- /*! no static exports found */
9062
- /***/ (function(module, exports, __webpack_require__) {
9063
-
9064
- //! moment.js locale configuration
9065
-
9066
- ;(function (global, factory) {
9067
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9068
- undefined
9069
- }(this, (function (moment) { 'use strict';
9070
-
9071
-
9072
- var arMa = moment.defineLocale('ar-ma', {
9073
- months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
9074
- monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
9075
- weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
9076
- weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
9077
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
9078
- weekdaysParseExact : true,
9079
- longDateFormat : {
9080
- LT : 'HH:mm',
9081
- LTS : 'HH:mm:ss',
9082
- L : 'DD/MM/YYYY',
9083
- LL : 'D MMMM YYYY',
9084
- LLL : 'D MMMM YYYY HH:mm',
9085
- LLLL : 'dddd D MMMM YYYY HH:mm'
9086
- },
9087
- calendar : {
9088
- sameDay: '[اليوم على الساعة] LT',
9089
- nextDay: '[غدا على الساعة] LT',
9090
- nextWeek: 'dddd [على الساعة] LT',
9091
- lastDay: '[أمس على الساعة] LT',
9092
- lastWeek: 'dddd [على الساعة] LT',
9093
- sameElse: 'L'
9094
- },
9095
- relativeTime : {
9096
- future : 'في %s',
9097
- past : 'منذ %s',
9098
- s : 'ثوان',
9099
- ss : '%d ثانية',
9100
- m : 'دقيقة',
9101
- mm : '%d دقائق',
9102
- h : 'ساعة',
9103
- hh : '%d ساعات',
9104
- d : 'يوم',
9105
- dd : '%d أيام',
9106
- M : 'شهر',
9107
- MM : '%d أشهر',
9108
- y : 'سنة',
9109
- yy : '%d سنوات'
9110
- },
9111
- week : {
9112
- dow : 6, // Saturday is the first day of the week.
9113
- doy : 12 // The week that contains Jan 1st is the first week of the year.
9114
- }
9115
- });
9116
-
9117
- return arMa;
9118
-
9119
- })));
9120
-
9121
-
9122
- /***/ }),
9123
-
9124
- /***/ "./node_modules/moment/locale/ar-sa.js":
9125
- /*!*********************************************!*\
9126
- !*** ./node_modules/moment/locale/ar-sa.js ***!
9127
- \*********************************************/
9128
- /*! no static exports found */
9129
- /***/ (function(module, exports, __webpack_require__) {
9130
-
9131
- //! moment.js locale configuration
9132
-
9133
- ;(function (global, factory) {
9134
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9135
- undefined
9136
- }(this, (function (moment) { 'use strict';
9137
-
9138
-
9139
- var symbolMap = {
9140
- '1': '١',
9141
- '2': '٢',
9142
- '3': '٣',
9143
- '4': '٤',
9144
- '5': '٥',
9145
- '6': '٦',
9146
- '7': '٧',
9147
- '8': '٨',
9148
- '9': '٩',
9149
- '0': '٠'
9150
- }, numberMap = {
9151
- '١': '1',
9152
- '٢': '2',
9153
- '٣': '3',
9154
- '٤': '4',
9155
- '٥': '5',
9156
- '٦': '6',
9157
- '٧': '7',
9158
- '٨': '8',
9159
- '٩': '9',
9160
- '٠': '0'
9161
- };
9162
-
9163
- var arSa = moment.defineLocale('ar-sa', {
9164
- months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
9165
- monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
9166
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
9167
- weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
9168
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
9169
- weekdaysParseExact : true,
9170
- longDateFormat : {
9171
- LT : 'HH:mm',
9172
- LTS : 'HH:mm:ss',
9173
- L : 'DD/MM/YYYY',
9174
- LL : 'D MMMM YYYY',
9175
- LLL : 'D MMMM YYYY HH:mm',
9176
- LLLL : 'dddd D MMMM YYYY HH:mm'
9177
- },
9178
- meridiemParse: /ص|م/,
9179
- isPM : function (input) {
9180
- return 'م' === input;
9181
- },
9182
- meridiem : function (hour, minute, isLower) {
9183
- if (hour < 12) {
9184
- return 'ص';
9185
- } else {
9186
- return 'م';
9187
- }
9188
- },
9189
- calendar : {
9190
- sameDay: '[اليوم على الساعة] LT',
9191
- nextDay: '[غدا على الساعة] LT',
9192
- nextWeek: 'dddd [على الساعة] LT',
9193
- lastDay: '[أمس على الساعة] LT',
9194
- lastWeek: 'dddd [على الساعة] LT',
9195
- sameElse: 'L'
9196
- },
9197
- relativeTime : {
9198
- future : 'في %s',
9199
- past : 'منذ %s',
9200
- s : 'ثوان',
9201
- ss : '%d ثانية',
9202
- m : 'دقيقة',
9203
- mm : '%d دقائق',
9204
- h : 'ساعة',
9205
- hh : '%d ساعات',
9206
- d : 'يوم',
9207
- dd : '%d أيام',
9208
- M : 'شهر',
9209
- MM : '%d أشهر',
9210
- y : 'سنة',
9211
- yy : '%d سنوات'
9212
- },
9213
- preparse: function (string) {
9214
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
9215
- return numberMap[match];
9216
- }).replace(/،/g, ',');
9217
- },
9218
- postformat: function (string) {
9219
- return string.replace(/\d/g, function (match) {
9220
- return symbolMap[match];
9221
- }).replace(/,/g, '،');
9222
- },
9223
- week : {
9224
- dow : 0, // Sunday is the first day of the week.
9225
- doy : 6 // The week that contains Jan 1st is the first week of the year.
9226
- }
9227
- });
9228
-
9229
- return arSa;
9230
-
9231
- })));
9232
-
9233
-
9234
- /***/ }),
9235
-
9236
- /***/ "./node_modules/moment/locale/ar-tn.js":
9237
- /*!*********************************************!*\
9238
- !*** ./node_modules/moment/locale/ar-tn.js ***!
9239
- \*********************************************/
9240
- /*! no static exports found */
9241
- /***/ (function(module, exports, __webpack_require__) {
9242
-
9243
- //! moment.js locale configuration
9244
-
9245
- ;(function (global, factory) {
9246
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9247
- undefined
9248
- }(this, (function (moment) { 'use strict';
9249
-
9250
-
9251
- var arTn = moment.defineLocale('ar-tn', {
9252
- months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
9253
- monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
9254
- weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
9255
- weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
9256
- weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
9257
- weekdaysParseExact : true,
9258
- longDateFormat: {
9259
- LT: 'HH:mm',
9260
- LTS: 'HH:mm:ss',
9261
- L: 'DD/MM/YYYY',
9262
- LL: 'D MMMM YYYY',
9263
- LLL: 'D MMMM YYYY HH:mm',
9264
- LLLL: 'dddd D MMMM YYYY HH:mm'
9265
- },
9266
- calendar: {
9267
- sameDay: '[اليوم على الساعة] LT',
9268
- nextDay: '[غدا على الساعة] LT',
9269
- nextWeek: 'dddd [على الساعة] LT',
9270
- lastDay: '[أمس على الساعة] LT',
9271
- lastWeek: 'dddd [على الساعة] LT',
9272
- sameElse: 'L'
9273
- },
9274
- relativeTime: {
9275
- future: 'في %s',
9276
- past: 'منذ %s',
9277
- s: 'ثوان',
9278
- ss : '%d ثانية',
9279
- m: 'دقيقة',
9280
- mm: '%d دقائق',
9281
- h: 'ساعة',
9282
- hh: '%d ساعات',
9283
- d: 'يوم',
9284
- dd: '%d أيام',
9285
- M: 'شهر',
9286
- MM: '%d أشهر',
9287
- y: 'سنة',
9288
- yy: '%d سنوات'
9289
- },
9290
- week: {
9291
- dow: 1, // Monday is the first day of the week.
9292
- doy: 4 // The week that contains Jan 4th is the first week of the year.
9293
- }
9294
- });
9295
-
9296
- return arTn;
9297
-
9298
- })));
9299
-
9300
-
9301
- /***/ }),
9302
-
9303
- /***/ "./node_modules/moment/locale/ar.js":
9304
- /*!******************************************!*\
9305
- !*** ./node_modules/moment/locale/ar.js ***!
9306
- \******************************************/
9307
- /*! no static exports found */
9308
- /***/ (function(module, exports, __webpack_require__) {
9309
-
9310
- //! moment.js locale configuration
9311
-
9312
- ;(function (global, factory) {
9313
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9314
- undefined
9315
- }(this, (function (moment) { 'use strict';
9316
-
9317
-
9318
- var symbolMap = {
9319
- '1': '١',
9320
- '2': '٢',
9321
- '3': '٣',
9322
- '4': '٤',
9323
- '5': '٥',
9324
- '6': '٦',
9325
- '7': '٧',
9326
- '8': '٨',
9327
- '9': '٩',
9328
- '0': '٠'
9329
- }, numberMap = {
9330
- '١': '1',
9331
- '٢': '2',
9332
- '٣': '3',
9333
- '٤': '4',
9334
- '٥': '5',
9335
- '٦': '6',
9336
- '٧': '7',
9337
- '٨': '8',
9338
- '٩': '9',
9339
- '٠': '0'
9340
- }, pluralForm = function (n) {
9341
- return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
9342
- }, plurals = {
9343
- s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
9344
- m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
9345
- h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
9346
- d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
9347
- M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
9348
- y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
9349
- }, pluralize = function (u) {
9350
- return function (number, withoutSuffix, string, isFuture) {
9351
- var f = pluralForm(number),
9352
- str = plurals[u][pluralForm(number)];
9353
- if (f === 2) {
9354
- str = str[withoutSuffix ? 0 : 1];
9355
- }
9356
- return str.replace(/%d/i, number);
9357
- };
9358
- }, months = [
9359
- 'يناير',
9360
- 'فبراير',
9361
- 'مارس',
9362
- 'أبريل',
9363
- 'مايو',
9364
- 'يونيو',
9365
- 'يوليو',
9366
- 'أغسطس',
9367
- 'سبتمبر',
9368
- 'أكتوبر',
9369
- 'نوفمبر',
9370
- 'ديسمبر'
9371
- ];
9372
-
9373
- var ar = moment.defineLocale('ar', {
9374
- months : months,
9375
- monthsShort : months,
9376
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
9377
- weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
9378
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
9379
- weekdaysParseExact : true,
9380
- longDateFormat : {
9381
- LT : 'HH:mm',
9382
- LTS : 'HH:mm:ss',
9383
- L : 'D/\u200FM/\u200FYYYY',
9384
- LL : 'D MMMM YYYY',
9385
- LLL : 'D MMMM YYYY HH:mm',
9386
- LLLL : 'dddd D MMMM YYYY HH:mm'
9387
- },
9388
- meridiemParse: /ص|م/,
9389
- isPM : function (input) {
9390
- return 'م' === input;
9391
- },
9392
- meridiem : function (hour, minute, isLower) {
9393
- if (hour < 12) {
9394
- return 'ص';
9395
- } else {
9396
- return 'م';
9397
- }
9398
- },
9399
- calendar : {
9400
- sameDay: '[اليوم عند الساعة] LT',
9401
- nextDay: '[غدًا عند الساعة] LT',
9402
- nextWeek: 'dddd [عند الساعة] LT',
9403
- lastDay: '[أمس عند الساعة] LT',
9404
- lastWeek: 'dddd [عند الساعة] LT',
9405
- sameElse: 'L'
9406
- },
9407
- relativeTime : {
9408
- future : 'بعد %s',
9409
- past : 'منذ %s',
9410
- s : pluralize('s'),
9411
- ss : pluralize('s'),
9412
- m : pluralize('m'),
9413
- mm : pluralize('m'),
9414
- h : pluralize('h'),
9415
- hh : pluralize('h'),
9416
- d : pluralize('d'),
9417
- dd : pluralize('d'),
9418
- M : pluralize('M'),
9419
- MM : pluralize('M'),
9420
- y : pluralize('y'),
9421
- yy : pluralize('y')
9422
- },
9423
- preparse: function (string) {
9424
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
9425
- return numberMap[match];
9426
- }).replace(/،/g, ',');
9427
- },
9428
- postformat: function (string) {
9429
- return string.replace(/\d/g, function (match) {
9430
- return symbolMap[match];
9431
- }).replace(/,/g, '،');
9432
- },
9433
- week : {
9434
- dow : 6, // Saturday is the first day of the week.
9435
- doy : 12 // The week that contains Jan 1st is the first week of the year.
9436
- }
9437
- });
9438
-
9439
- return ar;
9440
-
9441
- })));
9442
-
9443
-
9444
- /***/ }),
9445
-
9446
- /***/ "./node_modules/moment/locale/az.js":
9447
- /*!******************************************!*\
9448
- !*** ./node_modules/moment/locale/az.js ***!
9449
- \******************************************/
9450
- /*! no static exports found */
9451
- /***/ (function(module, exports, __webpack_require__) {
9452
-
9453
- //! moment.js locale configuration
9454
-
9455
- ;(function (global, factory) {
9456
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9457
- undefined
9458
- }(this, (function (moment) { 'use strict';
9459
-
9460
-
9461
- var suffixes = {
9462
- 1: '-inci',
9463
- 5: '-inci',
9464
- 8: '-inci',
9465
- 70: '-inci',
9466
- 80: '-inci',
9467
- 2: '-nci',
9468
- 7: '-nci',
9469
- 20: '-nci',
9470
- 50: '-nci',
9471
- 3: '-üncü',
9472
- 4: '-üncü',
9473
- 100: '-üncü',
9474
- 6: '-ncı',
9475
- 9: '-uncu',
9476
- 10: '-uncu',
9477
- 30: '-uncu',
9478
- 60: '-ıncı',
9479
- 90: '-ıncı'
9480
- };
9481
-
9482
- var az = moment.defineLocale('az', {
9483
- months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
9484
- monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
9485
- weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
9486
- weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
9487
- weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
9488
- weekdaysParseExact : true,
9489
- longDateFormat : {
9490
- LT : 'HH:mm',
9491
- LTS : 'HH:mm:ss',
9492
- L : 'DD.MM.YYYY',
9493
- LL : 'D MMMM YYYY',
9494
- LLL : 'D MMMM YYYY HH:mm',
9495
- LLLL : 'dddd, D MMMM YYYY HH:mm'
9496
- },
9497
- calendar : {
9498
- sameDay : '[bugün saat] LT',
9499
- nextDay : '[sabah saat] LT',
9500
- nextWeek : '[gələn həftə] dddd [saat] LT',
9501
- lastDay : '[dünən] LT',
9502
- lastWeek : '[keçən həftə] dddd [saat] LT',
9503
- sameElse : 'L'
9504
- },
9505
- relativeTime : {
9506
- future : '%s sonra',
9507
- past : '%s əvvəl',
9508
- s : 'birneçə saniyyə',
9509
- ss : '%d saniyə',
9510
- m : 'bir dəqiqə',
9511
- mm : '%d dəqiqə',
9512
- h : 'bir saat',
9513
- hh : '%d saat',
9514
- d : 'bir gün',
9515
- dd : '%d gün',
9516
- M : 'bir ay',
9517
- MM : '%d ay',
9518
- y : 'bir il',
9519
- yy : '%d il'
9520
- },
9521
- meridiemParse: /gecə|səhər|gündüz|axşam/,
9522
- isPM : function (input) {
9523
- return /^(gündüz|axşam)$/.test(input);
9524
- },
9525
- meridiem : function (hour, minute, isLower) {
9526
- if (hour < 4) {
9527
- return 'gecə';
9528
- } else if (hour < 12) {
9529
- return 'səhər';
9530
- } else if (hour < 17) {
9531
- return 'gündüz';
9532
- } else {
9533
- return 'axşam';
9534
- }
9535
- },
9536
- dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
9537
- ordinal : function (number) {
9538
- if (number === 0) { // special case for zero
9539
- return number + '-ıncı';
9540
- }
9541
- var a = number % 10,
9542
- b = number % 100 - a,
9543
- c = number >= 100 ? 100 : null;
9544
- return number + (suffixes[a] || suffixes[b] || suffixes[c]);
9545
- },
9546
- week : {
9547
- dow : 1, // Monday is the first day of the week.
9548
- doy : 7 // The week that contains Jan 1st is the first week of the year.
9549
- }
9550
- });
9551
-
9552
- return az;
9553
-
9554
- })));
9555
-
9556
-
9557
- /***/ }),
9558
-
9559
- /***/ "./node_modules/moment/locale/be.js":
9560
- /*!******************************************!*\
9561
- !*** ./node_modules/moment/locale/be.js ***!
9562
- \******************************************/
9563
- /*! no static exports found */
9564
- /***/ (function(module, exports, __webpack_require__) {
9565
-
9566
- //! moment.js locale configuration
9567
-
9568
- ;(function (global, factory) {
9569
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9570
- undefined
9571
- }(this, (function (moment) { 'use strict';
9572
-
9573
-
9574
- function plural(word, num) {
9575
- var forms = word.split('_');
9576
- return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
9577
- }
9578
- function relativeTimeWithPlural(number, withoutSuffix, key) {
9579
- var format = {
9580
- 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
9581
- 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
9582
- 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
9583
- 'dd': 'дзень_дні_дзён',
9584
- 'MM': 'месяц_месяцы_месяцаў',
9585
- 'yy': 'год_гады_гадоў'
9586
- };
9587
- if (key === 'm') {
9588
- return withoutSuffix ? 'хвіліна' : 'хвіліну';
9589
- }
9590
- else if (key === 'h') {
9591
- return withoutSuffix ? 'гадзіна' : 'гадзіну';
9592
- }
9593
- else {
9594
- return number + ' ' + plural(format[key], +number);
9595
- }
9596
- }
9597
-
9598
- var be = moment.defineLocale('be', {
9599
- months : {
9600
- format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
9601
- standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
9602
- },
9603
- monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
9604
- weekdays : {
9605
- format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
9606
- standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
9607
- isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
9608
- },
9609
- weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
9610
- weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
9611
- longDateFormat : {
9612
- LT : 'HH:mm',
9613
- LTS : 'HH:mm:ss',
9614
- L : 'DD.MM.YYYY',
9615
- LL : 'D MMMM YYYY г.',
9616
- LLL : 'D MMMM YYYY г., HH:mm',
9617
- LLLL : 'dddd, D MMMM YYYY г., HH:mm'
9618
- },
9619
- calendar : {
9620
- sameDay: '[Сёння ў] LT',
9621
- nextDay: '[Заўтра ў] LT',
9622
- lastDay: '[Учора ў] LT',
9623
- nextWeek: function () {
9624
- return '[У] dddd [ў] LT';
9625
- },
9626
- lastWeek: function () {
9627
- switch (this.day()) {
9628
- case 0:
9629
- case 3:
9630
- case 5:
9631
- case 6:
9632
- return '[У мінулую] dddd [ў] LT';
9633
- case 1:
9634
- case 2:
9635
- case 4:
9636
- return '[У мінулы] dddd [ў] LT';
9637
- }
9638
- },
9639
- sameElse: 'L'
9640
- },
9641
- relativeTime : {
9642
- future : 'праз %s',
9643
- past : '%s таму',
9644
- s : 'некалькі секунд',
9645
- m : relativeTimeWithPlural,
9646
- mm : relativeTimeWithPlural,
9647
- h : relativeTimeWithPlural,
9648
- hh : relativeTimeWithPlural,
9649
- d : 'дзень',
9650
- dd : relativeTimeWithPlural,
9651
- M : 'месяц',
9652
- MM : relativeTimeWithPlural,
9653
- y : 'год',
9654
- yy : relativeTimeWithPlural
9655
- },
9656
- meridiemParse: /ночы|раніцы|дня|вечара/,
9657
- isPM : function (input) {
9658
- return /^(дня|вечара)$/.test(input);
9659
- },
9660
- meridiem : function (hour, minute, isLower) {
9661
- if (hour < 4) {
9662
- return 'ночы';
9663
- } else if (hour < 12) {
9664
- return 'раніцы';
9665
- } else if (hour < 17) {
9666
- return 'дня';
9667
- } else {
9668
- return 'вечара';
9669
- }
9670
- },
9671
- dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
9672
- ordinal: function (number, period) {
9673
- switch (period) {
9674
- case 'M':
9675
- case 'd':
9676
- case 'DDD':
9677
- case 'w':
9678
- case 'W':
9679
- return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
9680
- case 'D':
9681
- return number + '-га';
9682
- default:
9683
- return number;
9684
- }
9685
- },
9686
- week : {
9687
- dow : 1, // Monday is the first day of the week.
9688
- doy : 7 // The week that contains Jan 1st is the first week of the year.
9689
- }
9690
- });
9691
-
9692
- return be;
9693
-
9694
- })));
9695
-
9696
-
9697
- /***/ }),
9698
-
9699
- /***/ "./node_modules/moment/locale/bg.js":
9700
- /*!******************************************!*\
9701
- !*** ./node_modules/moment/locale/bg.js ***!
9702
- \******************************************/
9703
- /*! no static exports found */
9704
- /***/ (function(module, exports, __webpack_require__) {
9705
-
9706
- //! moment.js locale configuration
9707
-
9708
- ;(function (global, factory) {
9709
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9710
- undefined
9711
- }(this, (function (moment) { 'use strict';
9712
-
9713
-
9714
- var bg = moment.defineLocale('bg', {
9715
- months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
9716
- monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
9717
- weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
9718
- weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
9719
- weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
9720
- longDateFormat : {
9721
- LT : 'H:mm',
9722
- LTS : 'H:mm:ss',
9723
- L : 'D.MM.YYYY',
9724
- LL : 'D MMMM YYYY',
9725
- LLL : 'D MMMM YYYY H:mm',
9726
- LLLL : 'dddd, D MMMM YYYY H:mm'
9727
- },
9728
- calendar : {
9729
- sameDay : '[Днес в] LT',
9730
- nextDay : '[Утре в] LT',
9731
- nextWeek : 'dddd [в] LT',
9732
- lastDay : '[Вчера в] LT',
9733
- lastWeek : function () {
9734
- switch (this.day()) {
9735
- case 0:
9736
- case 3:
9737
- case 6:
9738
- return '[В изминалата] dddd [в] LT';
9739
- case 1:
9740
- case 2:
9741
- case 4:
9742
- case 5:
9743
- return '[В изминалия] dddd [в] LT';
9744
- }
9745
- },
9746
- sameElse : 'L'
9747
- },
9748
- relativeTime : {
9749
- future : 'след %s',
9750
- past : 'преди %s',
9751
- s : 'няколко секунди',
9752
- ss : '%d секунди',
9753
- m : 'минута',
9754
- mm : '%d минути',
9755
- h : 'час',
9756
- hh : '%d часа',
9757
- d : 'ден',
9758
- dd : '%d дни',
9759
- M : 'месец',
9760
- MM : '%d месеца',
9761
- y : 'година',
9762
- yy : '%d години'
9763
- },
9764
- dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
9765
- ordinal : function (number) {
9766
- var lastDigit = number % 10,
9767
- last2Digits = number % 100;
9768
- if (number === 0) {
9769
- return number + '-ев';
9770
- } else if (last2Digits === 0) {
9771
- return number + '-ен';
9772
- } else if (last2Digits > 10 && last2Digits < 20) {
9773
- return number + '-ти';
9774
- } else if (lastDigit === 1) {
9775
- return number + '-ви';
9776
- } else if (lastDigit === 2) {
9777
- return number + '-ри';
9778
- } else if (lastDigit === 7 || lastDigit === 8) {
9779
- return number + '-ми';
9780
- } else {
9781
- return number + '-ти';
9782
- }
9783
- },
9784
- week : {
9785
- dow : 1, // Monday is the first day of the week.
9786
- doy : 7 // The week that contains Jan 1st is the first week of the year.
9787
- }
9788
- });
9789
-
9790
- return bg;
9791
-
9792
- })));
9793
-
9794
-
9795
- /***/ }),
9796
-
9797
- /***/ "./node_modules/moment/locale/bm.js":
9798
- /*!******************************************!*\
9799
- !*** ./node_modules/moment/locale/bm.js ***!
9800
- \******************************************/
9801
- /*! no static exports found */
9802
- /***/ (function(module, exports, __webpack_require__) {
9803
-
9804
- //! moment.js locale configuration
9805
-
9806
- ;(function (global, factory) {
9807
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9808
- undefined
9809
- }(this, (function (moment) { 'use strict';
9810
-
9811
-
9812
- var bm = moment.defineLocale('bm', {
9813
- months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
9814
- monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
9815
- weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
9816
- weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
9817
- weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
9818
- longDateFormat : {
9819
- LT : 'HH:mm',
9820
- LTS : 'HH:mm:ss',
9821
- L : 'DD/MM/YYYY',
9822
- LL : 'MMMM [tile] D [san] YYYY',
9823
- LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
9824
- LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
9825
- },
9826
- calendar : {
9827
- sameDay : '[Bi lɛrɛ] LT',
9828
- nextDay : '[Sini lɛrɛ] LT',
9829
- nextWeek : 'dddd [don lɛrɛ] LT',
9830
- lastDay : '[Kunu lɛrɛ] LT',
9831
- lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
9832
- sameElse : 'L'
9833
- },
9834
- relativeTime : {
9835
- future : '%s kɔnɔ',
9836
- past : 'a bɛ %s bɔ',
9837
- s : 'sanga dama dama',
9838
- ss : 'sekondi %d',
9839
- m : 'miniti kelen',
9840
- mm : 'miniti %d',
9841
- h : 'lɛrɛ kelen',
9842
- hh : 'lɛrɛ %d',
9843
- d : 'tile kelen',
9844
- dd : 'tile %d',
9845
- M : 'kalo kelen',
9846
- MM : 'kalo %d',
9847
- y : 'san kelen',
9848
- yy : 'san %d'
9849
- },
9850
- week : {
9851
- dow : 1, // Monday is the first day of the week.
9852
- doy : 4 // The week that contains Jan 4th is the first week of the year.
9853
- }
9854
- });
9855
-
9856
- return bm;
9857
-
9858
- })));
9859
-
9860
-
9861
- /***/ }),
9862
-
9863
- /***/ "./node_modules/moment/locale/bn.js":
9864
- /*!******************************************!*\
9865
- !*** ./node_modules/moment/locale/bn.js ***!
9866
- \******************************************/
9867
- /*! no static exports found */
9868
- /***/ (function(module, exports, __webpack_require__) {
9869
-
9870
- //! moment.js locale configuration
9871
-
9872
- ;(function (global, factory) {
9873
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9874
- undefined
9875
- }(this, (function (moment) { 'use strict';
9876
-
9877
-
9878
- var symbolMap = {
9879
- '1': '১',
9880
- '2': '২',
9881
- '3': '৩',
9882
- '4': '৪',
9883
- '5': '৫',
9884
- '6': '৬',
9885
- '7': '৭',
9886
- '8': '৮',
9887
- '9': '৯',
9888
- '0': '০'
9889
- },
9890
- numberMap = {
9891
- '১': '1',
9892
- '২': '2',
9893
- '৩': '3',
9894
- '৪': '4',
9895
- '৫': '5',
9896
- '৬': '6',
9897
- '৭': '7',
9898
- '৮': '8',
9899
- '৯': '9',
9900
- '০': '0'
9901
- };
9902
-
9903
- var bn = moment.defineLocale('bn', {
9904
- months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
9905
- monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
9906
- weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
9907
- weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
9908
- weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
9909
- longDateFormat : {
9910
- LT : 'A h:mm সময়',
9911
- LTS : 'A h:mm:ss সময়',
9912
- L : 'DD/MM/YYYY',
9913
- LL : 'D MMMM YYYY',
9914
- LLL : 'D MMMM YYYY, A h:mm সময়',
9915
- LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
9916
- },
9917
- calendar : {
9918
- sameDay : '[আজ] LT',
9919
- nextDay : '[আগামীকাল] LT',
9920
- nextWeek : 'dddd, LT',
9921
- lastDay : '[গতকাল] LT',
9922
- lastWeek : '[গত] dddd, LT',
9923
- sameElse : 'L'
9924
- },
9925
- relativeTime : {
9926
- future : '%s পরে',
9927
- past : '%s আগে',
9928
- s : 'কয়েক সেকেন্ড',
9929
- ss : '%d সেকেন্ড',
9930
- m : 'এক মিনিট',
9931
- mm : '%d মিনিট',
9932
- h : 'এক ঘন্টা',
9933
- hh : '%d ঘন্টা',
9934
- d : 'এক দিন',
9935
- dd : '%d দিন',
9936
- M : 'এক মাস',
9937
- MM : '%d মাস',
9938
- y : 'এক বছর',
9939
- yy : '%d বছর'
9940
- },
9941
- preparse: function (string) {
9942
- return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
9943
- return numberMap[match];
9944
- });
9945
- },
9946
- postformat: function (string) {
9947
- return string.replace(/\d/g, function (match) {
9948
- return symbolMap[match];
9949
- });
9950
- },
9951
- meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
9952
- meridiemHour : function (hour, meridiem) {
9953
- if (hour === 12) {
9954
- hour = 0;
9955
- }
9956
- if ((meridiem === 'রাত' && hour >= 4) ||
9957
- (meridiem === 'দুপুর' && hour < 5) ||
9958
- meridiem === 'বিকাল') {
9959
- return hour + 12;
9960
- } else {
9961
- return hour;
9962
- }
9963
- },
9964
- meridiem : function (hour, minute, isLower) {
9965
- if (hour < 4) {
9966
- return 'রাত';
9967
- } else if (hour < 10) {
9968
- return 'সকাল';
9969
- } else if (hour < 17) {
9970
- return 'দুপুর';
9971
- } else if (hour < 20) {
9972
- return 'বিকাল';
9973
- } else {
9974
- return 'রাত';
9975
- }
9976
- },
9977
- week : {
9978
- dow : 0, // Sunday is the first day of the week.
9979
- doy : 6 // The week that contains Jan 1st is the first week of the year.
9980
- }
9981
- });
9982
-
9983
- return bn;
9984
-
9985
- })));
9986
-
9987
-
9988
- /***/ }),
9989
-
9990
- /***/ "./node_modules/moment/locale/bo.js":
9991
- /*!******************************************!*\
9992
- !*** ./node_modules/moment/locale/bo.js ***!
9993
- \******************************************/
9994
- /*! no static exports found */
9995
- /***/ (function(module, exports, __webpack_require__) {
9996
-
9997
- //! moment.js locale configuration
9998
-
9999
- ;(function (global, factory) {
10000
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10001
- undefined
10002
- }(this, (function (moment) { 'use strict';
10003
-
10004
-
10005
- var symbolMap = {
10006
- '1': '༡',
10007
- '2': '༢',
10008
- '3': '༣',
10009
- '4': '༤',
10010
- '5': '༥',
10011
- '6': '༦',
10012
- '7': '༧',
10013
- '8': '༨',
10014
- '9': '༩',
10015
- '0': '༠'
10016
- },
10017
- numberMap = {
10018
- '༡': '1',
10019
- '༢': '2',
10020
- '༣': '3',
10021
- '༤': '4',
10022
- '༥': '5',
10023
- '༦': '6',
10024
- '༧': '7',
10025
- '༨': '8',
10026
- '༩': '9',
10027
- '༠': '0'
10028
- };
10029
-
10030
- var bo = moment.defineLocale('bo', {
10031
- months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
10032
- monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
10033
- weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
10034
- weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
10035
- weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
10036
- longDateFormat : {
10037
- LT : 'A h:mm',
10038
- LTS : 'A h:mm:ss',
10039
- L : 'DD/MM/YYYY',
10040
- LL : 'D MMMM YYYY',
10041
- LLL : 'D MMMM YYYY, A h:mm',
10042
- LLLL : 'dddd, D MMMM YYYY, A h:mm'
10043
- },
10044
- calendar : {
10045
- sameDay : '[དི་རིང] LT',
10046
- nextDay : '[སང་ཉིན] LT',
10047
- nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
10048
- lastDay : '[ཁ་སང] LT',
10049
- lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
10050
- sameElse : 'L'
10051
- },
10052
- relativeTime : {
10053
- future : '%s ལ་',
10054
- past : '%s སྔན་ལ',
10055
- s : 'ལམ་སང',
10056
- ss : '%d སྐར་ཆ།',
10057
- m : 'སྐར་མ་གཅིག',
10058
- mm : '%d སྐར་མ',
10059
- h : 'ཆུ་ཚོད་གཅིག',
10060
- hh : '%d ཆུ་ཚོད',
10061
- d : 'ཉིན་གཅིག',
10062
- dd : '%d ཉིན་',
10063
- M : 'ཟླ་བ་གཅིག',
10064
- MM : '%d ཟླ་བ',
10065
- y : 'ལོ་གཅིག',
10066
- yy : '%d ལོ'
10067
- },
10068
- preparse: function (string) {
10069
- return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
10070
- return numberMap[match];
10071
- });
10072
- },
10073
- postformat: function (string) {
10074
- return string.replace(/\d/g, function (match) {
10075
- return symbolMap[match];
10076
- });
10077
- },
10078
- meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
10079
- meridiemHour : function (hour, meridiem) {
10080
- if (hour === 12) {
10081
- hour = 0;
10082
- }
10083
- if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
10084
- (meridiem === 'ཉིན་གུང' && hour < 5) ||
10085
- meridiem === 'དགོང་དག') {
10086
- return hour + 12;
10087
- } else {
10088
- return hour;
10089
- }
10090
- },
10091
- meridiem : function (hour, minute, isLower) {
10092
- if (hour < 4) {
10093
- return 'མཚན་མོ';
10094
- } else if (hour < 10) {
10095
- return 'ཞོགས་ཀས';
10096
- } else if (hour < 17) {
10097
- return 'ཉིན་གུང';
10098
- } else if (hour < 20) {
10099
- return 'དགོང་དག';
10100
- } else {
10101
- return 'མཚན་མོ';
10102
- }
10103
- },
10104
- week : {
10105
- dow : 0, // Sunday is the first day of the week.
10106
- doy : 6 // The week that contains Jan 1st is the first week of the year.
10107
- }
10108
- });
10109
-
10110
- return bo;
10111
-
10112
- })));
10113
-
10114
-
10115
- /***/ }),
10116
-
10117
- /***/ "./node_modules/moment/locale/br.js":
10118
- /*!******************************************!*\
10119
- !*** ./node_modules/moment/locale/br.js ***!
10120
- \******************************************/
10121
- /*! no static exports found */
10122
- /***/ (function(module, exports, __webpack_require__) {
10123
-
10124
- //! moment.js locale configuration
10125
-
10126
- ;(function (global, factory) {
10127
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10128
- undefined
10129
- }(this, (function (moment) { 'use strict';
10130
-
10131
-
10132
- function relativeTimeWithMutation(number, withoutSuffix, key) {
10133
- var format = {
10134
- 'mm': 'munutenn',
10135
- 'MM': 'miz',
10136
- 'dd': 'devezh'
10137
- };
10138
- return number + ' ' + mutation(format[key], number);
10139
- }
10140
- function specialMutationForYears(number) {
10141
- switch (lastNumber(number)) {
10142
- case 1:
10143
- case 3:
10144
- case 4:
10145
- case 5:
10146
- case 9:
10147
- return number + ' bloaz';
10148
- default:
10149
- return number + ' vloaz';
10150
- }
10151
- }
10152
- function lastNumber(number) {
10153
- if (number > 9) {
10154
- return lastNumber(number % 10);
10155
- }
10156
- return number;
10157
- }
10158
- function mutation(text, number) {
10159
- if (number === 2) {
10160
- return softMutation(text);
10161
- }
10162
- return text;
10163
- }
10164
- function softMutation(text) {
10165
- var mutationTable = {
10166
- 'm': 'v',
10167
- 'b': 'v',
10168
- 'd': 'z'
10169
- };
10170
- if (mutationTable[text.charAt(0)] === undefined) {
10171
- return text;
10172
- }
10173
- return mutationTable[text.charAt(0)] + text.substring(1);
10174
- }
10175
-
10176
- var br = moment.defineLocale('br', {
10177
- months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
10178
- monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
10179
- weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
10180
- weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
10181
- weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
10182
- weekdaysParseExact : true,
10183
- longDateFormat : {
10184
- LT : 'h[e]mm A',
10185
- LTS : 'h[e]mm:ss A',
10186
- L : 'DD/MM/YYYY',
10187
- LL : 'D [a viz] MMMM YYYY',
10188
- LLL : 'D [a viz] MMMM YYYY h[e]mm A',
10189
- LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
10190
- },
10191
- calendar : {
10192
- sameDay : '[Hiziv da] LT',
10193
- nextDay : '[Warc\'hoazh da] LT',
10194
- nextWeek : 'dddd [da] LT',
10195
- lastDay : '[Dec\'h da] LT',
10196
- lastWeek : 'dddd [paset da] LT',
10197
- sameElse : 'L'
10198
- },
10199
- relativeTime : {
10200
- future : 'a-benn %s',
10201
- past : '%s \'zo',
10202
- s : 'un nebeud segondennoù',
10203
- ss : '%d eilenn',
10204
- m : 'ur vunutenn',
10205
- mm : relativeTimeWithMutation,
10206
- h : 'un eur',
10207
- hh : '%d eur',
10208
- d : 'un devezh',
10209
- dd : relativeTimeWithMutation,
10210
- M : 'ur miz',
10211
- MM : relativeTimeWithMutation,
10212
- y : 'ur bloaz',
10213
- yy : specialMutationForYears
10214
- },
10215
- dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
10216
- ordinal : function (number) {
10217
- var output = (number === 1) ? 'añ' : 'vet';
10218
- return number + output;
10219
- },
10220
- week : {
10221
- dow : 1, // Monday is the first day of the week.
10222
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10223
- }
10224
- });
10225
-
10226
- return br;
10227
-
10228
- })));
10229
-
10230
-
10231
- /***/ }),
10232
-
10233
- /***/ "./node_modules/moment/locale/bs.js":
10234
- /*!******************************************!*\
10235
- !*** ./node_modules/moment/locale/bs.js ***!
10236
- \******************************************/
10237
- /*! no static exports found */
10238
- /***/ (function(module, exports, __webpack_require__) {
10239
-
10240
- //! moment.js locale configuration
10241
-
10242
- ;(function (global, factory) {
10243
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10244
- undefined
10245
- }(this, (function (moment) { 'use strict';
10246
-
10247
-
10248
- function translate(number, withoutSuffix, key) {
10249
- var result = number + ' ';
10250
- switch (key) {
10251
- case 'ss':
10252
- if (number === 1) {
10253
- result += 'sekunda';
10254
- } else if (number === 2 || number === 3 || number === 4) {
10255
- result += 'sekunde';
10256
- } else {
10257
- result += 'sekundi';
10258
- }
10259
- return result;
10260
- case 'm':
10261
- return withoutSuffix ? 'jedna minuta' : 'jedne minute';
10262
- case 'mm':
10263
- if (number === 1) {
10264
- result += 'minuta';
10265
- } else if (number === 2 || number === 3 || number === 4) {
10266
- result += 'minute';
10267
- } else {
10268
- result += 'minuta';
10269
- }
10270
- return result;
10271
- case 'h':
10272
- return withoutSuffix ? 'jedan sat' : 'jednog sata';
10273
- case 'hh':
10274
- if (number === 1) {
10275
- result += 'sat';
10276
- } else if (number === 2 || number === 3 || number === 4) {
10277
- result += 'sata';
10278
- } else {
10279
- result += 'sati';
10280
- }
10281
- return result;
10282
- case 'dd':
10283
- if (number === 1) {
10284
- result += 'dan';
10285
- } else {
10286
- result += 'dana';
10287
- }
10288
- return result;
10289
- case 'MM':
10290
- if (number === 1) {
10291
- result += 'mjesec';
10292
- } else if (number === 2 || number === 3 || number === 4) {
10293
- result += 'mjeseca';
10294
- } else {
10295
- result += 'mjeseci';
10296
- }
10297
- return result;
10298
- case 'yy':
10299
- if (number === 1) {
10300
- result += 'godina';
10301
- } else if (number === 2 || number === 3 || number === 4) {
10302
- result += 'godine';
10303
- } else {
10304
- result += 'godina';
10305
- }
10306
- return result;
10307
- }
10308
- }
10309
-
10310
- var bs = moment.defineLocale('bs', {
10311
- months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
10312
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
10313
- monthsParseExact: true,
10314
- weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
10315
- weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
10316
- weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
10317
- weekdaysParseExact : true,
10318
- longDateFormat : {
10319
- LT : 'H:mm',
10320
- LTS : 'H:mm:ss',
10321
- L : 'DD.MM.YYYY',
10322
- LL : 'D. MMMM YYYY',
10323
- LLL : 'D. MMMM YYYY H:mm',
10324
- LLLL : 'dddd, D. MMMM YYYY H:mm'
10325
- },
10326
- calendar : {
10327
- sameDay : '[danas u] LT',
10328
- nextDay : '[sutra u] LT',
10329
- nextWeek : function () {
10330
- switch (this.day()) {
10331
- case 0:
10332
- return '[u] [nedjelju] [u] LT';
10333
- case 3:
10334
- return '[u] [srijedu] [u] LT';
10335
- case 6:
10336
- return '[u] [subotu] [u] LT';
10337
- case 1:
10338
- case 2:
10339
- case 4:
10340
- case 5:
10341
- return '[u] dddd [u] LT';
10342
- }
10343
- },
10344
- lastDay : '[jučer u] LT',
10345
- lastWeek : function () {
10346
- switch (this.day()) {
10347
- case 0:
10348
- case 3:
10349
- return '[prošlu] dddd [u] LT';
10350
- case 6:
10351
- return '[prošle] [subote] [u] LT';
10352
- case 1:
10353
- case 2:
10354
- case 4:
10355
- case 5:
10356
- return '[prošli] dddd [u] LT';
10357
- }
10358
- },
10359
- sameElse : 'L'
10360
- },
10361
- relativeTime : {
10362
- future : 'za %s',
10363
- past : 'prije %s',
10364
- s : 'par sekundi',
10365
- ss : translate,
10366
- m : translate,
10367
- mm : translate,
10368
- h : translate,
10369
- hh : translate,
10370
- d : 'dan',
10371
- dd : translate,
10372
- M : 'mjesec',
10373
- MM : translate,
10374
- y : 'godinu',
10375
- yy : translate
10376
- },
10377
- dayOfMonthOrdinalParse: /\d{1,2}\./,
10378
- ordinal : '%d.',
10379
- week : {
10380
- dow : 1, // Monday is the first day of the week.
10381
- doy : 7 // The week that contains Jan 1st is the first week of the year.
10382
- }
10383
- });
10384
-
10385
- return bs;
10386
-
10387
- })));
10388
-
10389
-
10390
- /***/ }),
10391
-
10392
- /***/ "./node_modules/moment/locale/ca.js":
10393
- /*!******************************************!*\
10394
- !*** ./node_modules/moment/locale/ca.js ***!
10395
- \******************************************/
10396
- /*! no static exports found */
10397
- /***/ (function(module, exports, __webpack_require__) {
10398
-
10399
- //! moment.js locale configuration
10400
-
10401
- ;(function (global, factory) {
10402
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10403
- undefined
10404
- }(this, (function (moment) { 'use strict';
10405
-
10406
-
10407
- var ca = moment.defineLocale('ca', {
10408
- months : {
10409
- standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
10410
- format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
10411
- isFormat: /D[oD]?(\s)+MMMM/
10412
- },
10413
- monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
10414
- monthsParseExact : true,
10415
- weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
10416
- weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
10417
- weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
10418
- weekdaysParseExact : true,
10419
- longDateFormat : {
10420
- LT : 'H:mm',
10421
- LTS : 'H:mm:ss',
10422
- L : 'DD/MM/YYYY',
10423
- LL : 'D MMMM [de] YYYY',
10424
- ll : 'D MMM YYYY',
10425
- LLL : 'D MMMM [de] YYYY [a les] H:mm',
10426
- lll : 'D MMM YYYY, H:mm',
10427
- LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
10428
- llll : 'ddd D MMM YYYY, H:mm'
10429
- },
10430
- calendar : {
10431
- sameDay : function () {
10432
- return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
10433
- },
10434
- nextDay : function () {
10435
- return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
10436
- },
10437
- nextWeek : function () {
10438
- return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
10439
- },
10440
- lastDay : function () {
10441
- return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
10442
- },
10443
- lastWeek : function () {
10444
- return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
10445
- },
10446
- sameElse : 'L'
10447
- },
10448
- relativeTime : {
10449
- future : 'd\'aquí %s',
10450
- past : 'fa %s',
10451
- s : 'uns segons',
10452
- ss : '%d segons',
10453
- m : 'un minut',
10454
- mm : '%d minuts',
10455
- h : 'una hora',
10456
- hh : '%d hores',
10457
- d : 'un dia',
10458
- dd : '%d dies',
10459
- M : 'un mes',
10460
- MM : '%d mesos',
10461
- y : 'un any',
10462
- yy : '%d anys'
10463
- },
10464
- dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
10465
- ordinal : function (number, period) {
10466
- var output = (number === 1) ? 'r' :
10467
- (number === 2) ? 'n' :
10468
- (number === 3) ? 'r' :
10469
- (number === 4) ? 't' : 'è';
10470
- if (period === 'w' || period === 'W') {
10471
- output = 'a';
10472
- }
10473
- return number + output;
10474
- },
10475
- week : {
10476
- dow : 1, // Monday is the first day of the week.
10477
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10478
- }
10479
- });
10480
-
10481
- return ca;
10482
-
10483
- })));
10484
-
10485
-
10486
- /***/ }),
10487
-
10488
- /***/ "./node_modules/moment/locale/cs.js":
10489
- /*!******************************************!*\
10490
- !*** ./node_modules/moment/locale/cs.js ***!
10491
- \******************************************/
10492
- /*! no static exports found */
10493
- /***/ (function(module, exports, __webpack_require__) {
10494
-
10495
- //! moment.js locale configuration
10496
-
10497
- ;(function (global, factory) {
10498
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10499
- undefined
10500
- }(this, (function (moment) { 'use strict';
10501
-
10502
-
10503
- var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
10504
- monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
10505
- function plural(n) {
10506
- return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
10507
- }
10508
- function translate(number, withoutSuffix, key, isFuture) {
10509
- var result = number + ' ';
10510
- switch (key) {
10511
- case 's': // a few seconds / in a few seconds / a few seconds ago
10512
- return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
10513
- case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
10514
- if (withoutSuffix || isFuture) {
10515
- return result + (plural(number) ? 'sekundy' : 'sekund');
10516
- } else {
10517
- return result + 'sekundami';
10518
- }
10519
- break;
10520
- case 'm': // a minute / in a minute / a minute ago
10521
- return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
10522
- case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
10523
- if (withoutSuffix || isFuture) {
10524
- return result + (plural(number) ? 'minuty' : 'minut');
10525
- } else {
10526
- return result + 'minutami';
10527
- }
10528
- break;
10529
- case 'h': // an hour / in an hour / an hour ago
10530
- return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
10531
- case 'hh': // 9 hours / in 9 hours / 9 hours ago
10532
- if (withoutSuffix || isFuture) {
10533
- return result + (plural(number) ? 'hodiny' : 'hodin');
10534
- } else {
10535
- return result + 'hodinami';
10536
- }
10537
- break;
10538
- case 'd': // a day / in a day / a day ago
10539
- return (withoutSuffix || isFuture) ? 'den' : 'dnem';
10540
- case 'dd': // 9 days / in 9 days / 9 days ago
10541
- if (withoutSuffix || isFuture) {
10542
- return result + (plural(number) ? 'dny' : 'dní');
10543
- } else {
10544
- return result + 'dny';
10545
- }
10546
- break;
10547
- case 'M': // a month / in a month / a month ago
10548
- return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
10549
- case 'MM': // 9 months / in 9 months / 9 months ago
10550
- if (withoutSuffix || isFuture) {
10551
- return result + (plural(number) ? 'měsíce' : 'měsíců');
10552
- } else {
10553
- return result + 'měsíci';
10554
- }
10555
- break;
10556
- case 'y': // a year / in a year / a year ago
10557
- return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
10558
- case 'yy': // 9 years / in 9 years / 9 years ago
10559
- if (withoutSuffix || isFuture) {
10560
- return result + (plural(number) ? 'roky' : 'let');
10561
- } else {
10562
- return result + 'lety';
10563
- }
10564
- break;
10565
- }
10566
- }
10567
-
10568
- var cs = moment.defineLocale('cs', {
10569
- months : months,
10570
- monthsShort : monthsShort,
10571
- monthsParse : (function (months, monthsShort) {
10572
- var i, _monthsParse = [];
10573
- for (i = 0; i < 12; i++) {
10574
- // use custom parser to solve problem with July (červenec)
10575
- _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
10576
- }
10577
- return _monthsParse;
10578
- }(months, monthsShort)),
10579
- shortMonthsParse : (function (monthsShort) {
10580
- var i, _shortMonthsParse = [];
10581
- for (i = 0; i < 12; i++) {
10582
- _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
10583
- }
10584
- return _shortMonthsParse;
10585
- }(monthsShort)),
10586
- longMonthsParse : (function (months) {
10587
- var i, _longMonthsParse = [];
10588
- for (i = 0; i < 12; i++) {
10589
- _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
10590
- }
10591
- return _longMonthsParse;
10592
- }(months)),
10593
- weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
10594
- weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
10595
- weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
10596
- longDateFormat : {
10597
- LT: 'H:mm',
10598
- LTS : 'H:mm:ss',
10599
- L : 'DD.MM.YYYY',
10600
- LL : 'D. MMMM YYYY',
10601
- LLL : 'D. MMMM YYYY H:mm',
10602
- LLLL : 'dddd D. MMMM YYYY H:mm',
10603
- l : 'D. M. YYYY'
10604
- },
10605
- calendar : {
10606
- sameDay: '[dnes v] LT',
10607
- nextDay: '[zítra v] LT',
10608
- nextWeek: function () {
10609
- switch (this.day()) {
10610
- case 0:
10611
- return '[v neděli v] LT';
10612
- case 1:
10613
- case 2:
10614
- return '[v] dddd [v] LT';
10615
- case 3:
10616
- return '[ve středu v] LT';
10617
- case 4:
10618
- return '[ve čtvrtek v] LT';
10619
- case 5:
10620
- return '[v pátek v] LT';
10621
- case 6:
10622
- return '[v sobotu v] LT';
10623
- }
10624
- },
10625
- lastDay: '[včera v] LT',
10626
- lastWeek: function () {
10627
- switch (this.day()) {
10628
- case 0:
10629
- return '[minulou neděli v] LT';
10630
- case 1:
10631
- case 2:
10632
- return '[minulé] dddd [v] LT';
10633
- case 3:
10634
- return '[minulou středu v] LT';
10635
- case 4:
10636
- case 5:
10637
- return '[minulý] dddd [v] LT';
10638
- case 6:
10639
- return '[minulou sobotu v] LT';
10640
- }
10641
- },
10642
- sameElse: 'L'
10643
- },
10644
- relativeTime : {
10645
- future : 'za %s',
10646
- past : 'před %s',
10647
- s : translate,
10648
- ss : translate,
10649
- m : translate,
10650
- mm : translate,
10651
- h : translate,
10652
- hh : translate,
10653
- d : translate,
10654
- dd : translate,
10655
- M : translate,
10656
- MM : translate,
10657
- y : translate,
10658
- yy : translate
10659
- },
10660
- dayOfMonthOrdinalParse : /\d{1,2}\./,
10661
- ordinal : '%d.',
10662
- week : {
10663
- dow : 1, // Monday is the first day of the week.
10664
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10665
- }
10666
- });
10667
-
10668
- return cs;
10669
-
10670
- })));
10671
-
10672
-
10673
- /***/ }),
10674
-
10675
- /***/ "./node_modules/moment/locale/cv.js":
10676
- /*!******************************************!*\
10677
- !*** ./node_modules/moment/locale/cv.js ***!
10678
- \******************************************/
10679
- /*! no static exports found */
10680
- /***/ (function(module, exports, __webpack_require__) {
10681
-
10682
- //! moment.js locale configuration
10683
-
10684
- ;(function (global, factory) {
10685
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10686
- undefined
10687
- }(this, (function (moment) { 'use strict';
10688
-
10689
-
10690
- var cv = moment.defineLocale('cv', {
10691
- months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
10692
- monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
10693
- weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
10694
- weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
10695
- weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
10696
- longDateFormat : {
10697
- LT : 'HH:mm',
10698
- LTS : 'HH:mm:ss',
10699
- L : 'DD-MM-YYYY',
10700
- LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
10701
- LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
10702
- LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
10703
- },
10704
- calendar : {
10705
- sameDay: '[Паян] LT [сехетре]',
10706
- nextDay: '[Ыран] LT [сехетре]',
10707
- lastDay: '[Ӗнер] LT [сехетре]',
10708
- nextWeek: '[Ҫитес] dddd LT [сехетре]',
10709
- lastWeek: '[Иртнӗ] dddd LT [сехетре]',
10710
- sameElse: 'L'
10711
- },
10712
- relativeTime : {
10713
- future : function (output) {
10714
- var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
10715
- return output + affix;
10716
- },
10717
- past : '%s каялла',
10718
- s : 'пӗр-ик ҫеккунт',
10719
- ss : '%d ҫеккунт',
10720
- m : 'пӗр минут',
10721
- mm : '%d минут',
10722
- h : 'пӗр сехет',
10723
- hh : '%d сехет',
10724
- d : 'пӗр кун',
10725
- dd : '%d кун',
10726
- M : 'пӗр уйӑх',
10727
- MM : '%d уйӑх',
10728
- y : 'пӗр ҫул',
10729
- yy : '%d ҫул'
10730
- },
10731
- dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
10732
- ordinal : '%d-мӗш',
10733
- week : {
10734
- dow : 1, // Monday is the first day of the week.
10735
- doy : 7 // The week that contains Jan 1st is the first week of the year.
10736
- }
10737
- });
10738
-
10739
- return cv;
10740
-
10741
- })));
10742
-
10743
-
10744
- /***/ }),
10745
-
10746
- /***/ "./node_modules/moment/locale/cy.js":
10747
- /*!******************************************!*\
10748
- !*** ./node_modules/moment/locale/cy.js ***!
10749
- \******************************************/
10750
- /*! no static exports found */
10751
- /***/ (function(module, exports, __webpack_require__) {
10752
-
10753
- //! moment.js locale configuration
10754
-
10755
- ;(function (global, factory) {
10756
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10757
- undefined
10758
- }(this, (function (moment) { 'use strict';
10759
-
10760
-
10761
- var cy = moment.defineLocale('cy', {
10762
- months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
10763
- monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
10764
- weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
10765
- weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
10766
- weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
10767
- weekdaysParseExact : true,
10768
- // time formats are the same as en-gb
10769
- longDateFormat: {
10770
- LT: 'HH:mm',
10771
- LTS : 'HH:mm:ss',
10772
- L: 'DD/MM/YYYY',
10773
- LL: 'D MMMM YYYY',
10774
- LLL: 'D MMMM YYYY HH:mm',
10775
- LLLL: 'dddd, D MMMM YYYY HH:mm'
10776
- },
10777
- calendar: {
10778
- sameDay: '[Heddiw am] LT',
10779
- nextDay: '[Yfory am] LT',
10780
- nextWeek: 'dddd [am] LT',
10781
- lastDay: '[Ddoe am] LT',
10782
- lastWeek: 'dddd [diwethaf am] LT',
10783
- sameElse: 'L'
10784
- },
10785
- relativeTime: {
10786
- future: 'mewn %s',
10787
- past: '%s yn ôl',
10788
- s: 'ychydig eiliadau',
10789
- ss: '%d eiliad',
10790
- m: 'munud',
10791
- mm: '%d munud',
10792
- h: 'awr',
10793
- hh: '%d awr',
10794
- d: 'diwrnod',
10795
- dd: '%d diwrnod',
10796
- M: 'mis',
10797
- MM: '%d mis',
10798
- y: 'blwyddyn',
10799
- yy: '%d flynedd'
10800
- },
10801
- dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
10802
- // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
10803
- ordinal: function (number) {
10804
- var b = number,
10805
- output = '',
10806
- lookup = [
10807
- '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
10808
- 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
10809
- ];
10810
- if (b > 20) {
10811
- if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
10812
- output = 'fed'; // not 30ain, 70ain or 90ain
10813
- } else {
10814
- output = 'ain';
10815
- }
10816
- } else if (b > 0) {
10817
- output = lookup[b];
10818
- }
10819
- return number + output;
10820
- },
10821
- week : {
10822
- dow : 1, // Monday is the first day of the week.
10823
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10824
- }
10825
- });
10826
-
10827
- return cy;
10828
-
10829
- })));
10830
-
10831
-
10832
- /***/ }),
10833
-
10834
- /***/ "./node_modules/moment/locale/da.js":
10835
- /*!******************************************!*\
10836
- !*** ./node_modules/moment/locale/da.js ***!
10837
- \******************************************/
10838
- /*! no static exports found */
10839
- /***/ (function(module, exports, __webpack_require__) {
10840
-
10841
- //! moment.js locale configuration
10842
-
10843
- ;(function (global, factory) {
10844
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10845
- undefined
10846
- }(this, (function (moment) { 'use strict';
10847
-
10848
-
10849
- var da = moment.defineLocale('da', {
10850
- months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
10851
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
10852
- weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
10853
- weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
10854
- weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
10855
- longDateFormat : {
10856
- LT : 'HH:mm',
10857
- LTS : 'HH:mm:ss',
10858
- L : 'DD.MM.YYYY',
10859
- LL : 'D. MMMM YYYY',
10860
- LLL : 'D. MMMM YYYY HH:mm',
10861
- LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
10862
- },
10863
- calendar : {
10864
- sameDay : '[i dag kl.] LT',
10865
- nextDay : '[i morgen kl.] LT',
10866
- nextWeek : 'på dddd [kl.] LT',
10867
- lastDay : '[i går kl.] LT',
10868
- lastWeek : '[i] dddd[s kl.] LT',
10869
- sameElse : 'L'
10870
- },
10871
- relativeTime : {
10872
- future : 'om %s',
10873
- past : '%s siden',
10874
- s : 'få sekunder',
10875
- ss : '%d sekunder',
10876
- m : 'et minut',
10877
- mm : '%d minutter',
10878
- h : 'en time',
10879
- hh : '%d timer',
10880
- d : 'en dag',
10881
- dd : '%d dage',
10882
- M : 'en måned',
10883
- MM : '%d måneder',
10884
- y : 'et år',
10885
- yy : '%d år'
10886
- },
10887
- dayOfMonthOrdinalParse: /\d{1,2}\./,
10888
- ordinal : '%d.',
10889
- week : {
10890
- dow : 1, // Monday is the first day of the week.
10891
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10892
- }
10893
- });
10894
-
10895
- return da;
10896
-
10897
- })));
10898
-
10899
-
10900
- /***/ }),
10901
-
10902
- /***/ "./node_modules/moment/locale/de-at.js":
10903
- /*!*********************************************!*\
10904
- !*** ./node_modules/moment/locale/de-at.js ***!
10905
- \*********************************************/
10906
- /*! no static exports found */
10907
- /***/ (function(module, exports, __webpack_require__) {
10908
-
10909
- //! moment.js locale configuration
10910
-
10911
- ;(function (global, factory) {
10912
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10913
- undefined
10914
- }(this, (function (moment) { 'use strict';
10915
-
10916
-
10917
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
10918
- var format = {
10919
- 'm': ['eine Minute', 'einer Minute'],
10920
- 'h': ['eine Stunde', 'einer Stunde'],
10921
- 'd': ['ein Tag', 'einem Tag'],
10922
- 'dd': [number + ' Tage', number + ' Tagen'],
10923
- 'M': ['ein Monat', 'einem Monat'],
10924
- 'MM': [number + ' Monate', number + ' Monaten'],
10925
- 'y': ['ein Jahr', 'einem Jahr'],
10926
- 'yy': [number + ' Jahre', number + ' Jahren']
10927
- };
10928
- return withoutSuffix ? format[key][0] : format[key][1];
10929
- }
10930
-
10931
- var deAt = moment.defineLocale('de-at', {
10932
- months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
10933
- monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
10934
- monthsParseExact : true,
10935
- weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
10936
- weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
10937
- weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
10938
- weekdaysParseExact : true,
10939
- longDateFormat : {
10940
- LT: 'HH:mm',
10941
- LTS: 'HH:mm:ss',
10942
- L : 'DD.MM.YYYY',
10943
- LL : 'D. MMMM YYYY',
10944
- LLL : 'D. MMMM YYYY HH:mm',
10945
- LLLL : 'dddd, D. MMMM YYYY HH:mm'
10946
- },
10947
- calendar : {
10948
- sameDay: '[heute um] LT [Uhr]',
10949
- sameElse: 'L',
10950
- nextDay: '[morgen um] LT [Uhr]',
10951
- nextWeek: 'dddd [um] LT [Uhr]',
10952
- lastDay: '[gestern um] LT [Uhr]',
10953
- lastWeek: '[letzten] dddd [um] LT [Uhr]'
10954
- },
10955
- relativeTime : {
10956
- future : 'in %s',
10957
- past : 'vor %s',
10958
- s : 'ein paar Sekunden',
10959
- ss : '%d Sekunden',
10960
- m : processRelativeTime,
10961
- mm : '%d Minuten',
10962
- h : processRelativeTime,
10963
- hh : '%d Stunden',
10964
- d : processRelativeTime,
10965
- dd : processRelativeTime,
10966
- M : processRelativeTime,
10967
- MM : processRelativeTime,
10968
- y : processRelativeTime,
10969
- yy : processRelativeTime
10970
- },
10971
- dayOfMonthOrdinalParse: /\d{1,2}\./,
10972
- ordinal : '%d.',
10973
- week : {
10974
- dow : 1, // Monday is the first day of the week.
10975
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10976
- }
10977
- });
10978
-
10979
- return deAt;
10980
-
10981
- })));
10982
-
10983
-
10984
- /***/ }),
10985
-
10986
- /***/ "./node_modules/moment/locale/de-ch.js":
10987
- /*!*********************************************!*\
10988
- !*** ./node_modules/moment/locale/de-ch.js ***!
10989
- \*********************************************/
10990
- /*! no static exports found */
10991
- /***/ (function(module, exports, __webpack_require__) {
10992
-
10993
- //! moment.js locale configuration
10994
-
10995
- ;(function (global, factory) {
10996
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10997
- undefined
10998
- }(this, (function (moment) { 'use strict';
10999
-
11000
-
11001
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
11002
- var format = {
11003
- 'm': ['eine Minute', 'einer Minute'],
11004
- 'h': ['eine Stunde', 'einer Stunde'],
11005
- 'd': ['ein Tag', 'einem Tag'],
11006
- 'dd': [number + ' Tage', number + ' Tagen'],
11007
- 'M': ['ein Monat', 'einem Monat'],
11008
- 'MM': [number + ' Monate', number + ' Monaten'],
11009
- 'y': ['ein Jahr', 'einem Jahr'],
11010
- 'yy': [number + ' Jahre', number + ' Jahren']
11011
- };
11012
- return withoutSuffix ? format[key][0] : format[key][1];
11013
- }
11014
-
11015
- var deCh = moment.defineLocale('de-ch', {
11016
- months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
11017
- monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
11018
- monthsParseExact : true,
11019
- weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
11020
- weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
11021
- weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
11022
- weekdaysParseExact : true,
11023
- longDateFormat : {
11024
- LT: 'HH:mm',
11025
- LTS: 'HH:mm:ss',
11026
- L : 'DD.MM.YYYY',
11027
- LL : 'D. MMMM YYYY',
11028
- LLL : 'D. MMMM YYYY HH:mm',
11029
- LLLL : 'dddd, D. MMMM YYYY HH:mm'
11030
- },
11031
- calendar : {
11032
- sameDay: '[heute um] LT [Uhr]',
11033
- sameElse: 'L',
11034
- nextDay: '[morgen um] LT [Uhr]',
11035
- nextWeek: 'dddd [um] LT [Uhr]',
11036
- lastDay: '[gestern um] LT [Uhr]',
11037
- lastWeek: '[letzten] dddd [um] LT [Uhr]'
11038
- },
11039
- relativeTime : {
11040
- future : 'in %s',
11041
- past : 'vor %s',
11042
- s : 'ein paar Sekunden',
11043
- ss : '%d Sekunden',
11044
- m : processRelativeTime,
11045
- mm : '%d Minuten',
11046
- h : processRelativeTime,
11047
- hh : '%d Stunden',
11048
- d : processRelativeTime,
11049
- dd : processRelativeTime,
11050
- M : processRelativeTime,
11051
- MM : processRelativeTime,
11052
- y : processRelativeTime,
11053
- yy : processRelativeTime
11054
- },
11055
- dayOfMonthOrdinalParse: /\d{1,2}\./,
11056
- ordinal : '%d.',
11057
- week : {
11058
- dow : 1, // Monday is the first day of the week.
11059
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11060
- }
11061
- });
11062
-
11063
- return deCh;
11064
-
11065
- })));
11066
-
11067
-
11068
- /***/ }),
11069
-
11070
- /***/ "./node_modules/moment/locale/de.js":
11071
- /*!******************************************!*\
11072
- !*** ./node_modules/moment/locale/de.js ***!
11073
- \******************************************/
11074
- /*! no static exports found */
11075
- /***/ (function(module, exports, __webpack_require__) {
11076
-
11077
- //! moment.js locale configuration
11078
-
11079
- ;(function (global, factory) {
11080
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11081
- undefined
11082
- }(this, (function (moment) { 'use strict';
11083
-
11084
-
11085
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
11086
- var format = {
11087
- 'm': ['eine Minute', 'einer Minute'],
11088
- 'h': ['eine Stunde', 'einer Stunde'],
11089
- 'd': ['ein Tag', 'einem Tag'],
11090
- 'dd': [number + ' Tage', number + ' Tagen'],
11091
- 'M': ['ein Monat', 'einem Monat'],
11092
- 'MM': [number + ' Monate', number + ' Monaten'],
11093
- 'y': ['ein Jahr', 'einem Jahr'],
11094
- 'yy': [number + ' Jahre', number + ' Jahren']
11095
- };
11096
- return withoutSuffix ? format[key][0] : format[key][1];
11097
- }
11098
-
11099
- var de = moment.defineLocale('de', {
11100
- months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
11101
- monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
11102
- monthsParseExact : true,
11103
- weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
11104
- weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
11105
- weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
11106
- weekdaysParseExact : true,
11107
- longDateFormat : {
11108
- LT: 'HH:mm',
11109
- LTS: 'HH:mm:ss',
11110
- L : 'DD.MM.YYYY',
11111
- LL : 'D. MMMM YYYY',
11112
- LLL : 'D. MMMM YYYY HH:mm',
11113
- LLLL : 'dddd, D. MMMM YYYY HH:mm'
11114
- },
11115
- calendar : {
11116
- sameDay: '[heute um] LT [Uhr]',
11117
- sameElse: 'L',
11118
- nextDay: '[morgen um] LT [Uhr]',
11119
- nextWeek: 'dddd [um] LT [Uhr]',
11120
- lastDay: '[gestern um] LT [Uhr]',
11121
- lastWeek: '[letzten] dddd [um] LT [Uhr]'
11122
- },
11123
- relativeTime : {
11124
- future : 'in %s',
11125
- past : 'vor %s',
11126
- s : 'ein paar Sekunden',
11127
- ss : '%d Sekunden',
11128
- m : processRelativeTime,
11129
- mm : '%d Minuten',
11130
- h : processRelativeTime,
11131
- hh : '%d Stunden',
11132
- d : processRelativeTime,
11133
- dd : processRelativeTime,
11134
- M : processRelativeTime,
11135
- MM : processRelativeTime,
11136
- y : processRelativeTime,
11137
- yy : processRelativeTime
11138
- },
11139
- dayOfMonthOrdinalParse: /\d{1,2}\./,
11140
- ordinal : '%d.',
11141
- week : {
11142
- dow : 1, // Monday is the first day of the week.
11143
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11144
- }
11145
- });
11146
-
11147
- return de;
11148
-
11149
- })));
11150
-
11151
-
11152
- /***/ }),
11153
-
11154
- /***/ "./node_modules/moment/locale/dv.js":
11155
- /*!******************************************!*\
11156
- !*** ./node_modules/moment/locale/dv.js ***!
11157
- \******************************************/
11158
- /*! no static exports found */
11159
- /***/ (function(module, exports, __webpack_require__) {
11160
-
11161
- //! moment.js locale configuration
11162
-
11163
- ;(function (global, factory) {
11164
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11165
- undefined
11166
- }(this, (function (moment) { 'use strict';
11167
-
11168
-
11169
- var months = [
11170
- 'ޖެނުއަރީ',
11171
- 'ފެބްރުއަރީ',
11172
- 'މާރިޗު',
11173
- 'އޭޕްރީލު',
11174
- 'މޭ',
11175
- 'ޖޫން',
11176
- 'ޖުލައި',
11177
- 'އޯގަސްޓު',
11178
- 'ސެޕްޓެމްބަރު',
11179
- 'އޮކްޓޯބަރު',
11180
- 'ނޮވެމްބަރު',
11181
- 'ޑިސެމްބަރު'
11182
- ], weekdays = [
11183
- 'އާދިއްތަ',
11184
- 'ހޯމަ',
11185
- 'އަންގާރަ',
11186
- 'ބުދަ',
11187
- 'ބުރާސްފަތި',
11188
- 'ހުކުރު',
11189
- 'ހޮނިހިރު'
11190
- ];
11191
-
11192
- var dv = moment.defineLocale('dv', {
11193
- months : months,
11194
- monthsShort : months,
11195
- weekdays : weekdays,
11196
- weekdaysShort : weekdays,
11197
- weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
11198
- longDateFormat : {
11199
-
11200
- LT : 'HH:mm',
11201
- LTS : 'HH:mm:ss',
11202
- L : 'D/M/YYYY',
11203
- LL : 'D MMMM YYYY',
11204
- LLL : 'D MMMM YYYY HH:mm',
11205
- LLLL : 'dddd D MMMM YYYY HH:mm'
11206
- },
11207
- meridiemParse: /މކ|މފ/,
11208
- isPM : function (input) {
11209
- return 'މފ' === input;
11210
- },
11211
- meridiem : function (hour, minute, isLower) {
11212
- if (hour < 12) {
11213
- return 'މކ';
11214
- } else {
11215
- return 'މފ';
11216
- }
11217
- },
11218
- calendar : {
11219
- sameDay : '[މިއަދު] LT',
11220
- nextDay : '[މާދަމާ] LT',
11221
- nextWeek : 'dddd LT',
11222
- lastDay : '[އިއްޔެ] LT',
11223
- lastWeek : '[ފާއިތުވި] dddd LT',
11224
- sameElse : 'L'
11225
- },
11226
- relativeTime : {
11227
- future : 'ތެރޭގައި %s',
11228
- past : 'ކުރިން %s',
11229
- s : 'ސިކުންތުކޮޅެއް',
11230
- ss : 'd% ސިކުންތު',
11231
- m : 'މިނިޓެއް',
11232
- mm : 'މިނިޓު %d',
11233
- h : 'ގަޑިއިރެއް',
11234
- hh : 'ގަޑިއިރު %d',
11235
- d : 'ދުވަހެއް',
11236
- dd : 'ދުވަސް %d',
11237
- M : 'މަހެއް',
11238
- MM : 'މަސް %d',
11239
- y : 'އަހަރެއް',
11240
- yy : 'އަހަރު %d'
11241
- },
11242
- preparse: function (string) {
11243
- return string.replace(/،/g, ',');
11244
- },
11245
- postformat: function (string) {
11246
- return string.replace(/,/g, '،');
11247
- },
11248
- week : {
11249
- dow : 7, // Sunday is the first day of the week.
11250
- doy : 12 // The week that contains Jan 1st is the first week of the year.
11251
- }
11252
- });
11253
-
11254
- return dv;
11255
-
11256
- })));
11257
-
11258
-
11259
- /***/ }),
11260
-
11261
- /***/ "./node_modules/moment/locale/el.js":
11262
- /*!******************************************!*\
11263
- !*** ./node_modules/moment/locale/el.js ***!
11264
- \******************************************/
11265
- /*! no static exports found */
11266
- /***/ (function(module, exports, __webpack_require__) {
11267
-
11268
- //! moment.js locale configuration
11269
-
11270
- ;(function (global, factory) {
11271
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11272
- undefined
11273
- }(this, (function (moment) { 'use strict';
11274
-
11275
- function isFunction(input) {
11276
- return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
11277
- }
11278
-
11279
-
11280
- var el = moment.defineLocale('el', {
11281
- monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
11282
- monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
11283
- months : function (momentToFormat, format) {
11284
- if (!momentToFormat) {
11285
- return this._monthsNominativeEl;
11286
- } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
11287
- return this._monthsGenitiveEl[momentToFormat.month()];
11288
- } else {
11289
- return this._monthsNominativeEl[momentToFormat.month()];
11290
- }
11291
- },
11292
- monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
11293
- weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
11294
- weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
11295
- weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
11296
- meridiem : function (hours, minutes, isLower) {
11297
- if (hours > 11) {
11298
- return isLower ? 'μμ' : 'ΜΜ';
11299
- } else {
11300
- return isLower ? 'πμ' : 'ΠΜ';
11301
- }
11302
- },
11303
- isPM : function (input) {
11304
- return ((input + '').toLowerCase()[0] === 'μ');
11305
- },
11306
- meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
11307
- longDateFormat : {
11308
- LT : 'h:mm A',
11309
- LTS : 'h:mm:ss A',
11310
- L : 'DD/MM/YYYY',
11311
- LL : 'D MMMM YYYY',
11312
- LLL : 'D MMMM YYYY h:mm A',
11313
- LLLL : 'dddd, D MMMM YYYY h:mm A'
11314
- },
11315
- calendarEl : {
11316
- sameDay : '[Σήμερα {}] LT',
11317
- nextDay : '[Αύριο {}] LT',
11318
- nextWeek : 'dddd [{}] LT',
11319
- lastDay : '[Χθες {}] LT',
11320
- lastWeek : function () {
11321
- switch (this.day()) {
11322
- case 6:
11323
- return '[το προηγούμενο] dddd [{}] LT';
11324
- default:
11325
- return '[την προηγούμενη] dddd [{}] LT';
11326
- }
11327
- },
11328
- sameElse : 'L'
11329
- },
11330
- calendar : function (key, mom) {
11331
- var output = this._calendarEl[key],
11332
- hours = mom && mom.hours();
11333
- if (isFunction(output)) {
11334
- output = output.apply(mom);
11335
- }
11336
- return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
11337
- },
11338
- relativeTime : {
11339
- future : 'σε %s',
11340
- past : '%s πριν',
11341
- s : 'λίγα δευτερόλεπτα',
11342
- ss : '%d δευτερόλεπτα',
11343
- m : 'ένα λεπτό',
11344
- mm : '%d λεπτά',
11345
- h : 'μία ώρα',
11346
- hh : '%d ώρες',
11347
- d : 'μία μέρα',
11348
- dd : '%d μέρες',
11349
- M : 'ένας μήνας',
11350
- MM : '%d μήνες',
11351
- y : 'ένας χρόνος',
11352
- yy : '%d χρόνια'
11353
- },
11354
- dayOfMonthOrdinalParse: /\d{1,2}η/,
11355
- ordinal: '%dη',
11356
- week : {
11357
- dow : 1, // Monday is the first day of the week.
11358
- doy : 4 // The week that contains Jan 4st is the first week of the year.
11359
- }
11360
- });
11361
-
11362
- return el;
11363
-
11364
- })));
11365
-
11366
-
11367
- /***/ }),
11368
-
11369
- /***/ "./node_modules/moment/locale/en-au.js":
11370
- /*!*********************************************!*\
11371
- !*** ./node_modules/moment/locale/en-au.js ***!
11372
- \*********************************************/
11373
- /*! no static exports found */
11374
- /***/ (function(module, exports, __webpack_require__) {
11375
-
11376
- //! moment.js locale configuration
11377
-
11378
- ;(function (global, factory) {
11379
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11380
- undefined
11381
- }(this, (function (moment) { 'use strict';
11382
-
11383
-
11384
- var enAu = moment.defineLocale('en-au', {
11385
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11386
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11387
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11388
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11389
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11390
- longDateFormat : {
11391
- LT : 'h:mm A',
11392
- LTS : 'h:mm:ss A',
11393
- L : 'DD/MM/YYYY',
11394
- LL : 'D MMMM YYYY',
11395
- LLL : 'D MMMM YYYY h:mm A',
11396
- LLLL : 'dddd, D MMMM YYYY h:mm A'
11397
- },
11398
- calendar : {
11399
- sameDay : '[Today at] LT',
11400
- nextDay : '[Tomorrow at] LT',
11401
- nextWeek : 'dddd [at] LT',
11402
- lastDay : '[Yesterday at] LT',
11403
- lastWeek : '[Last] dddd [at] LT',
11404
- sameElse : 'L'
11405
- },
11406
- relativeTime : {
11407
- future : 'in %s',
11408
- past : '%s ago',
11409
- s : 'a few seconds',
11410
- ss : '%d seconds',
11411
- m : 'a minute',
11412
- mm : '%d minutes',
11413
- h : 'an hour',
11414
- hh : '%d hours',
11415
- d : 'a day',
11416
- dd : '%d days',
11417
- M : 'a month',
11418
- MM : '%d months',
11419
- y : 'a year',
11420
- yy : '%d years'
11421
- },
11422
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11423
- ordinal : function (number) {
11424
- var b = number % 10,
11425
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11426
- (b === 1) ? 'st' :
11427
- (b === 2) ? 'nd' :
11428
- (b === 3) ? 'rd' : 'th';
11429
- return number + output;
11430
- },
11431
- week : {
11432
- dow : 1, // Monday is the first day of the week.
11433
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11434
- }
11435
- });
11436
-
11437
- return enAu;
11438
-
11439
- })));
11440
-
11441
-
11442
- /***/ }),
11443
-
11444
- /***/ "./node_modules/moment/locale/en-ca.js":
11445
- /*!*********************************************!*\
11446
- !*** ./node_modules/moment/locale/en-ca.js ***!
11447
- \*********************************************/
11448
- /*! no static exports found */
11449
- /***/ (function(module, exports, __webpack_require__) {
11450
-
11451
- //! moment.js locale configuration
11452
-
11453
- ;(function (global, factory) {
11454
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11455
- undefined
11456
- }(this, (function (moment) { 'use strict';
11457
-
11458
-
11459
- var enCa = moment.defineLocale('en-ca', {
11460
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11461
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11462
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11463
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11464
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11465
- longDateFormat : {
11466
- LT : 'h:mm A',
11467
- LTS : 'h:mm:ss A',
11468
- L : 'YYYY-MM-DD',
11469
- LL : 'MMMM D, YYYY',
11470
- LLL : 'MMMM D, YYYY h:mm A',
11471
- LLLL : 'dddd, MMMM D, YYYY h:mm A'
11472
- },
11473
- calendar : {
11474
- sameDay : '[Today at] LT',
11475
- nextDay : '[Tomorrow at] LT',
11476
- nextWeek : 'dddd [at] LT',
11477
- lastDay : '[Yesterday at] LT',
11478
- lastWeek : '[Last] dddd [at] LT',
11479
- sameElse : 'L'
11480
- },
11481
- relativeTime : {
11482
- future : 'in %s',
11483
- past : '%s ago',
11484
- s : 'a few seconds',
11485
- ss : '%d seconds',
11486
- m : 'a minute',
11487
- mm : '%d minutes',
11488
- h : 'an hour',
11489
- hh : '%d hours',
11490
- d : 'a day',
11491
- dd : '%d days',
11492
- M : 'a month',
11493
- MM : '%d months',
11494
- y : 'a year',
11495
- yy : '%d years'
11496
- },
11497
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11498
- ordinal : function (number) {
11499
- var b = number % 10,
11500
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11501
- (b === 1) ? 'st' :
11502
- (b === 2) ? 'nd' :
11503
- (b === 3) ? 'rd' : 'th';
11504
- return number + output;
11505
- }
11506
- });
11507
-
11508
- return enCa;
11509
-
11510
- })));
11511
-
11512
-
11513
- /***/ }),
11514
-
11515
- /***/ "./node_modules/moment/locale/en-gb.js":
11516
- /*!*********************************************!*\
11517
- !*** ./node_modules/moment/locale/en-gb.js ***!
11518
- \*********************************************/
11519
- /*! no static exports found */
11520
- /***/ (function(module, exports, __webpack_require__) {
11521
-
11522
- //! moment.js locale configuration
11523
-
11524
- ;(function (global, factory) {
11525
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11526
- undefined
11527
- }(this, (function (moment) { 'use strict';
11528
-
11529
-
11530
- var enGb = moment.defineLocale('en-gb', {
11531
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11532
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11533
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11534
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11535
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11536
- longDateFormat : {
11537
- LT : 'HH:mm',
11538
- LTS : 'HH:mm:ss',
11539
- L : 'DD/MM/YYYY',
11540
- LL : 'D MMMM YYYY',
11541
- LLL : 'D MMMM YYYY HH:mm',
11542
- LLLL : 'dddd, D MMMM YYYY HH:mm'
11543
- },
11544
- calendar : {
11545
- sameDay : '[Today at] LT',
11546
- nextDay : '[Tomorrow at] LT',
11547
- nextWeek : 'dddd [at] LT',
11548
- lastDay : '[Yesterday at] LT',
11549
- lastWeek : '[Last] dddd [at] LT',
11550
- sameElse : 'L'
11551
- },
11552
- relativeTime : {
11553
- future : 'in %s',
11554
- past : '%s ago',
11555
- s : 'a few seconds',
11556
- ss : '%d seconds',
11557
- m : 'a minute',
11558
- mm : '%d minutes',
11559
- h : 'an hour',
11560
- hh : '%d hours',
11561
- d : 'a day',
11562
- dd : '%d days',
11563
- M : 'a month',
11564
- MM : '%d months',
11565
- y : 'a year',
11566
- yy : '%d years'
11567
- },
11568
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11569
- ordinal : function (number) {
11570
- var b = number % 10,
11571
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11572
- (b === 1) ? 'st' :
11573
- (b === 2) ? 'nd' :
11574
- (b === 3) ? 'rd' : 'th';
11575
- return number + output;
11576
- },
11577
- week : {
11578
- dow : 1, // Monday is the first day of the week.
11579
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11580
- }
11581
- });
11582
-
11583
- return enGb;
11584
-
11585
- })));
11586
-
11587
-
11588
- /***/ }),
11589
-
11590
- /***/ "./node_modules/moment/locale/en-ie.js":
11591
- /*!*********************************************!*\
11592
- !*** ./node_modules/moment/locale/en-ie.js ***!
11593
- \*********************************************/
11594
- /*! no static exports found */
11595
- /***/ (function(module, exports, __webpack_require__) {
11596
-
11597
- //! moment.js locale configuration
11598
-
11599
- ;(function (global, factory) {
11600
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11601
- undefined
11602
- }(this, (function (moment) { 'use strict';
11603
-
11604
-
11605
- var enIe = moment.defineLocale('en-ie', {
11606
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11607
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11608
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11609
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11610
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11611
- longDateFormat : {
11612
- LT : 'HH:mm',
11613
- LTS : 'HH:mm:ss',
11614
- L : 'DD-MM-YYYY',
11615
- LL : 'D MMMM YYYY',
11616
- LLL : 'D MMMM YYYY HH:mm',
11617
- LLLL : 'dddd D MMMM YYYY HH:mm'
11618
- },
11619
- calendar : {
11620
- sameDay : '[Today at] LT',
11621
- nextDay : '[Tomorrow at] LT',
11622
- nextWeek : 'dddd [at] LT',
11623
- lastDay : '[Yesterday at] LT',
11624
- lastWeek : '[Last] dddd [at] LT',
11625
- sameElse : 'L'
11626
- },
11627
- relativeTime : {
11628
- future : 'in %s',
11629
- past : '%s ago',
11630
- s : 'a few seconds',
11631
- ss : '%d seconds',
11632
- m : 'a minute',
11633
- mm : '%d minutes',
11634
- h : 'an hour',
11635
- hh : '%d hours',
11636
- d : 'a day',
11637
- dd : '%d days',
11638
- M : 'a month',
11639
- MM : '%d months',
11640
- y : 'a year',
11641
- yy : '%d years'
11642
- },
11643
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11644
- ordinal : function (number) {
11645
- var b = number % 10,
11646
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11647
- (b === 1) ? 'st' :
11648
- (b === 2) ? 'nd' :
11649
- (b === 3) ? 'rd' : 'th';
11650
- return number + output;
11651
- },
11652
- week : {
11653
- dow : 1, // Monday is the first day of the week.
11654
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11655
- }
11656
- });
11657
-
11658
- return enIe;
11659
-
11660
- })));
11661
-
11662
-
11663
- /***/ }),
11664
-
11665
- /***/ "./node_modules/moment/locale/en-il.js":
11666
- /*!*********************************************!*\
11667
- !*** ./node_modules/moment/locale/en-il.js ***!
11668
- \*********************************************/
11669
- /*! no static exports found */
11670
- /***/ (function(module, exports, __webpack_require__) {
11671
-
11672
- //! moment.js locale configuration
11673
-
11674
- ;(function (global, factory) {
11675
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11676
- undefined
11677
- }(this, (function (moment) { 'use strict';
11678
-
11679
-
11680
- var enIl = moment.defineLocale('en-il', {
11681
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11682
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11683
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11684
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11685
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11686
- longDateFormat : {
11687
- LT : 'HH:mm',
11688
- LTS : 'HH:mm:ss',
11689
- L : 'DD/MM/YYYY',
11690
- LL : 'D MMMM YYYY',
11691
- LLL : 'D MMMM YYYY HH:mm',
11692
- LLLL : 'dddd, D MMMM YYYY HH:mm'
11693
- },
11694
- calendar : {
11695
- sameDay : '[Today at] LT',
11696
- nextDay : '[Tomorrow at] LT',
11697
- nextWeek : 'dddd [at] LT',
11698
- lastDay : '[Yesterday at] LT',
11699
- lastWeek : '[Last] dddd [at] LT',
11700
- sameElse : 'L'
11701
- },
11702
- relativeTime : {
11703
- future : 'in %s',
11704
- past : '%s ago',
11705
- s : 'a few seconds',
11706
- m : 'a minute',
11707
- mm : '%d minutes',
11708
- h : 'an hour',
11709
- hh : '%d hours',
11710
- d : 'a day',
11711
- dd : '%d days',
11712
- M : 'a month',
11713
- MM : '%d months',
11714
- y : 'a year',
11715
- yy : '%d years'
11716
- },
11717
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11718
- ordinal : function (number) {
11719
- var b = number % 10,
11720
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11721
- (b === 1) ? 'st' :
11722
- (b === 2) ? 'nd' :
11723
- (b === 3) ? 'rd' : 'th';
11724
- return number + output;
11725
- }
11726
- });
11727
-
11728
- return enIl;
11729
-
11730
- })));
11731
-
11732
-
11733
- /***/ }),
11734
-
11735
- /***/ "./node_modules/moment/locale/en-nz.js":
11736
- /*!*********************************************!*\
11737
- !*** ./node_modules/moment/locale/en-nz.js ***!
11738
- \*********************************************/
11739
- /*! no static exports found */
11740
- /***/ (function(module, exports, __webpack_require__) {
11741
-
11742
- //! moment.js locale configuration
11743
-
11744
- ;(function (global, factory) {
11745
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11746
- undefined
11747
- }(this, (function (moment) { 'use strict';
11748
-
11749
-
11750
- var enNz = moment.defineLocale('en-nz', {
11751
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11752
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11753
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11754
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11755
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11756
- longDateFormat : {
11757
- LT : 'h:mm A',
11758
- LTS : 'h:mm:ss A',
11759
- L : 'DD/MM/YYYY',
11760
- LL : 'D MMMM YYYY',
11761
- LLL : 'D MMMM YYYY h:mm A',
11762
- LLLL : 'dddd, D MMMM YYYY h:mm A'
11763
- },
11764
- calendar : {
11765
- sameDay : '[Today at] LT',
11766
- nextDay : '[Tomorrow at] LT',
11767
- nextWeek : 'dddd [at] LT',
11768
- lastDay : '[Yesterday at] LT',
11769
- lastWeek : '[Last] dddd [at] LT',
11770
- sameElse : 'L'
11771
- },
11772
- relativeTime : {
11773
- future : 'in %s',
11774
- past : '%s ago',
11775
- s : 'a few seconds',
11776
- ss : '%d seconds',
11777
- m : 'a minute',
11778
- mm : '%d minutes',
11779
- h : 'an hour',
11780
- hh : '%d hours',
11781
- d : 'a day',
11782
- dd : '%d days',
11783
- M : 'a month',
11784
- MM : '%d months',
11785
- y : 'a year',
11786
- yy : '%d years'
11787
- },
11788
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11789
- ordinal : function (number) {
11790
- var b = number % 10,
11791
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11792
- (b === 1) ? 'st' :
11793
- (b === 2) ? 'nd' :
11794
- (b === 3) ? 'rd' : 'th';
11795
- return number + output;
11796
- },
11797
- week : {
11798
- dow : 1, // Monday is the first day of the week.
11799
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11800
- }
11801
- });
11802
-
11803
- return enNz;
11804
-
11805
- })));
11806
-
11807
-
11808
- /***/ }),
11809
-
11810
- /***/ "./node_modules/moment/locale/eo.js":
11811
- /*!******************************************!*\
11812
- !*** ./node_modules/moment/locale/eo.js ***!
11813
- \******************************************/
11814
- /*! no static exports found */
11815
- /***/ (function(module, exports, __webpack_require__) {
11816
-
11817
- //! moment.js locale configuration
11818
-
11819
- ;(function (global, factory) {
11820
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11821
- undefined
11822
- }(this, (function (moment) { 'use strict';
11823
-
11824
-
11825
- var eo = moment.defineLocale('eo', {
11826
- months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
11827
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
11828
- weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
11829
- weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
11830
- weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
11831
- longDateFormat : {
11832
- LT : 'HH:mm',
11833
- LTS : 'HH:mm:ss',
11834
- L : 'YYYY-MM-DD',
11835
- LL : 'D[-a de] MMMM, YYYY',
11836
- LLL : 'D[-a de] MMMM, YYYY HH:mm',
11837
- LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
11838
- },
11839
- meridiemParse: /[ap]\.t\.m/i,
11840
- isPM: function (input) {
11841
- return input.charAt(0).toLowerCase() === 'p';
11842
- },
11843
- meridiem : function (hours, minutes, isLower) {
11844
- if (hours > 11) {
11845
- return isLower ? 'p.t.m.' : 'P.T.M.';
11846
- } else {
11847
- return isLower ? 'a.t.m.' : 'A.T.M.';
11848
- }
11849
- },
11850
- calendar : {
11851
- sameDay : '[Hodiaŭ je] LT',
11852
- nextDay : '[Morgaŭ je] LT',
11853
- nextWeek : 'dddd [je] LT',
11854
- lastDay : '[Hieraŭ je] LT',
11855
- lastWeek : '[pasinta] dddd [je] LT',
11856
- sameElse : 'L'
11857
- },
11858
- relativeTime : {
11859
- future : 'post %s',
11860
- past : 'antaŭ %s',
11861
- s : 'sekundoj',
11862
- ss : '%d sekundoj',
11863
- m : 'minuto',
11864
- mm : '%d minutoj',
11865
- h : 'horo',
11866
- hh : '%d horoj',
11867
- d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
11868
- dd : '%d tagoj',
11869
- M : 'monato',
11870
- MM : '%d monatoj',
11871
- y : 'jaro',
11872
- yy : '%d jaroj'
11873
- },
11874
- dayOfMonthOrdinalParse: /\d{1,2}a/,
11875
- ordinal : '%da',
11876
- week : {
11877
- dow : 1, // Monday is the first day of the week.
11878
- doy : 7 // The week that contains Jan 1st is the first week of the year.
11879
- }
11880
- });
11881
-
11882
- return eo;
11883
-
11884
- })));
11885
-
11886
-
11887
- /***/ }),
11888
-
11889
- /***/ "./node_modules/moment/locale/es-do.js":
11890
- /*!*********************************************!*\
11891
- !*** ./node_modules/moment/locale/es-do.js ***!
11892
- \*********************************************/
11893
- /*! no static exports found */
11894
- /***/ (function(module, exports, __webpack_require__) {
11895
-
11896
- //! moment.js locale configuration
11897
-
11898
- ;(function (global, factory) {
11899
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11900
- undefined
11901
- }(this, (function (moment) { 'use strict';
11902
-
11903
-
11904
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
11905
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
11906
-
11907
- var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
11908
- var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
11909
-
11910
- var esDo = moment.defineLocale('es-do', {
11911
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
11912
- monthsShort : function (m, format) {
11913
- if (!m) {
11914
- return monthsShortDot;
11915
- } else if (/-MMM-/.test(format)) {
11916
- return monthsShort[m.month()];
11917
- } else {
11918
- return monthsShortDot[m.month()];
11919
- }
11920
- },
11921
- monthsRegex: monthsRegex,
11922
- monthsShortRegex: monthsRegex,
11923
- monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
11924
- monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
11925
- monthsParse: monthsParse,
11926
- longMonthsParse: monthsParse,
11927
- shortMonthsParse: monthsParse,
11928
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
11929
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
11930
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
11931
- weekdaysParseExact : true,
11932
- longDateFormat : {
11933
- LT : 'h:mm A',
11934
- LTS : 'h:mm:ss A',
11935
- L : 'DD/MM/YYYY',
11936
- LL : 'D [de] MMMM [de] YYYY',
11937
- LLL : 'D [de] MMMM [de] YYYY h:mm A',
11938
- LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
11939
- },
11940
- calendar : {
11941
- sameDay : function () {
11942
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11943
- },
11944
- nextDay : function () {
11945
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11946
- },
11947
- nextWeek : function () {
11948
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11949
- },
11950
- lastDay : function () {
11951
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11952
- },
11953
- lastWeek : function () {
11954
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11955
- },
11956
- sameElse : 'L'
11957
- },
11958
- relativeTime : {
11959
- future : 'en %s',
11960
- past : 'hace %s',
11961
- s : 'unos segundos',
11962
- ss : '%d segundos',
11963
- m : 'un minuto',
11964
- mm : '%d minutos',
11965
- h : 'una hora',
11966
- hh : '%d horas',
11967
- d : 'un día',
11968
- dd : '%d días',
11969
- M : 'un mes',
11970
- MM : '%d meses',
11971
- y : 'un año',
11972
- yy : '%d años'
11973
- },
11974
- dayOfMonthOrdinalParse : /\d{1,2}º/,
11975
- ordinal : '%dº',
11976
- week : {
11977
- dow : 1, // Monday is the first day of the week.
11978
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11979
- }
11980
- });
11981
-
11982
- return esDo;
11983
-
11984
- })));
11985
-
11986
-
11987
- /***/ }),
11988
-
11989
- /***/ "./node_modules/moment/locale/es-us.js":
11990
- /*!*********************************************!*\
11991
- !*** ./node_modules/moment/locale/es-us.js ***!
11992
- \*********************************************/
11993
- /*! no static exports found */
11994
- /***/ (function(module, exports, __webpack_require__) {
11995
-
11996
- //! moment.js locale configuration
11997
-
11998
- ;(function (global, factory) {
11999
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12000
- undefined
12001
- }(this, (function (moment) { 'use strict';
12002
-
12003
-
12004
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
12005
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
12006
-
12007
- var esUs = moment.defineLocale('es-us', {
12008
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
12009
- monthsShort : function (m, format) {
12010
- if (!m) {
12011
- return monthsShortDot;
12012
- } else if (/-MMM-/.test(format)) {
12013
- return monthsShort[m.month()];
12014
- } else {
12015
- return monthsShortDot[m.month()];
12016
- }
12017
- },
12018
- monthsParseExact : true,
12019
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
12020
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
12021
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
12022
- weekdaysParseExact : true,
12023
- longDateFormat : {
12024
- LT : 'h:mm A',
12025
- LTS : 'h:mm:ss A',
12026
- L : 'MM/DD/YYYY',
12027
- LL : 'MMMM [de] D [de] YYYY',
12028
- LLL : 'MMMM [de] D [de] YYYY h:mm A',
12029
- LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A'
12030
- },
12031
- calendar : {
12032
- sameDay : function () {
12033
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12034
- },
12035
- nextDay : function () {
12036
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12037
- },
12038
- nextWeek : function () {
12039
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12040
- },
12041
- lastDay : function () {
12042
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12043
- },
12044
- lastWeek : function () {
12045
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12046
- },
12047
- sameElse : 'L'
12048
- },
12049
- relativeTime : {
12050
- future : 'en %s',
12051
- past : 'hace %s',
12052
- s : 'unos segundos',
12053
- ss : '%d segundos',
12054
- m : 'un minuto',
12055
- mm : '%d minutos',
12056
- h : 'una hora',
12057
- hh : '%d horas',
12058
- d : 'un día',
12059
- dd : '%d días',
12060
- M : 'un mes',
12061
- MM : '%d meses',
12062
- y : 'un año',
12063
- yy : '%d años'
12064
- },
12065
- dayOfMonthOrdinalParse : /\d{1,2}º/,
12066
- ordinal : '%dº',
12067
- week : {
12068
- dow : 0, // Sunday is the first day of the week.
12069
- doy : 6 // The week that contains Jan 1st is the first week of the year.
12070
- }
12071
- });
12072
-
12073
- return esUs;
12074
-
12075
- })));
12076
-
12077
-
12078
- /***/ }),
12079
-
12080
- /***/ "./node_modules/moment/locale/es.js":
12081
- /*!******************************************!*\
12082
- !*** ./node_modules/moment/locale/es.js ***!
12083
- \******************************************/
12084
- /*! no static exports found */
12085
- /***/ (function(module, exports, __webpack_require__) {
12086
-
12087
- //! moment.js locale configuration
12088
-
12089
- ;(function (global, factory) {
12090
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12091
- undefined
12092
- }(this, (function (moment) { 'use strict';
12093
-
12094
-
12095
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
12096
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
12097
-
12098
- var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
12099
- var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
12100
-
12101
- var es = moment.defineLocale('es', {
12102
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
12103
- monthsShort : function (m, format) {
12104
- if (!m) {
12105
- return monthsShortDot;
12106
- } else if (/-MMM-/.test(format)) {
12107
- return monthsShort[m.month()];
12108
- } else {
12109
- return monthsShortDot[m.month()];
12110
- }
12111
- },
12112
- monthsRegex : monthsRegex,
12113
- monthsShortRegex : monthsRegex,
12114
- monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
12115
- monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
12116
- monthsParse : monthsParse,
12117
- longMonthsParse : monthsParse,
12118
- shortMonthsParse : monthsParse,
12119
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
12120
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
12121
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
12122
- weekdaysParseExact : true,
12123
- longDateFormat : {
12124
- LT : 'H:mm',
12125
- LTS : 'H:mm:ss',
12126
- L : 'DD/MM/YYYY',
12127
- LL : 'D [de] MMMM [de] YYYY',
12128
- LLL : 'D [de] MMMM [de] YYYY H:mm',
12129
- LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
12130
- },
12131
- calendar : {
12132
- sameDay : function () {
12133
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12134
- },
12135
- nextDay : function () {
12136
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12137
- },
12138
- nextWeek : function () {
12139
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12140
- },
12141
- lastDay : function () {
12142
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12143
- },
12144
- lastWeek : function () {
12145
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
12146
- },
12147
- sameElse : 'L'
12148
- },
12149
- relativeTime : {
12150
- future : 'en %s',
12151
- past : 'hace %s',
12152
- s : 'unos segundos',
12153
- ss : '%d segundos',
12154
- m : 'un minuto',
12155
- mm : '%d minutos',
12156
- h : 'una hora',
12157
- hh : '%d horas',
12158
- d : 'un día',
12159
- dd : '%d días',
12160
- M : 'un mes',
12161
- MM : '%d meses',
12162
- y : 'un año',
12163
- yy : '%d años'
12164
- },
12165
- dayOfMonthOrdinalParse : /\d{1,2}º/,
12166
- ordinal : '%dº',
12167
- week : {
12168
- dow : 1, // Monday is the first day of the week.
12169
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12170
- }
12171
- });
12172
-
12173
- return es;
12174
-
12175
- })));
12176
-
12177
-
12178
- /***/ }),
12179
-
12180
- /***/ "./node_modules/moment/locale/et.js":
12181
- /*!******************************************!*\
12182
- !*** ./node_modules/moment/locale/et.js ***!
12183
- \******************************************/
12184
- /*! no static exports found */
12185
- /***/ (function(module, exports, __webpack_require__) {
12186
-
12187
- //! moment.js locale configuration
12188
-
12189
- ;(function (global, factory) {
12190
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12191
- undefined
12192
- }(this, (function (moment) { 'use strict';
12193
-
12194
-
12195
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
12196
- var format = {
12197
- 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
12198
- 'ss': [number + 'sekundi', number + 'sekundit'],
12199
- 'm' : ['ühe minuti', 'üks minut'],
12200
- 'mm': [number + ' minuti', number + ' minutit'],
12201
- 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
12202
- 'hh': [number + ' tunni', number + ' tundi'],
12203
- 'd' : ['ühe päeva', 'üks päev'],
12204
- 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
12205
- 'MM': [number + ' kuu', number + ' kuud'],
12206
- 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
12207
- 'yy': [number + ' aasta', number + ' aastat']
12208
- };
12209
- if (withoutSuffix) {
12210
- return format[key][2] ? format[key][2] : format[key][1];
12211
- }
12212
- return isFuture ? format[key][0] : format[key][1];
12213
- }
12214
-
12215
- var et = moment.defineLocale('et', {
12216
- months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
12217
- monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
12218
- weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
12219
- weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
12220
- weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
12221
- longDateFormat : {
12222
- LT : 'H:mm',
12223
- LTS : 'H:mm:ss',
12224
- L : 'DD.MM.YYYY',
12225
- LL : 'D. MMMM YYYY',
12226
- LLL : 'D. MMMM YYYY H:mm',
12227
- LLLL : 'dddd, D. MMMM YYYY H:mm'
12228
- },
12229
- calendar : {
12230
- sameDay : '[Täna,] LT',
12231
- nextDay : '[Homme,] LT',
12232
- nextWeek : '[Järgmine] dddd LT',
12233
- lastDay : '[Eile,] LT',
12234
- lastWeek : '[Eelmine] dddd LT',
12235
- sameElse : 'L'
12236
- },
12237
- relativeTime : {
12238
- future : '%s pärast',
12239
- past : '%s tagasi',
12240
- s : processRelativeTime,
12241
- ss : processRelativeTime,
12242
- m : processRelativeTime,
12243
- mm : processRelativeTime,
12244
- h : processRelativeTime,
12245
- hh : processRelativeTime,
12246
- d : processRelativeTime,
12247
- dd : '%d päeva',
12248
- M : processRelativeTime,
12249
- MM : processRelativeTime,
12250
- y : processRelativeTime,
12251
- yy : processRelativeTime
12252
- },
12253
- dayOfMonthOrdinalParse: /\d{1,2}\./,
12254
- ordinal : '%d.',
12255
- week : {
12256
- dow : 1, // Monday is the first day of the week.
12257
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12258
- }
12259
- });
12260
-
12261
- return et;
12262
-
12263
- })));
12264
-
12265
-
12266
- /***/ }),
12267
-
12268
- /***/ "./node_modules/moment/locale/eu.js":
12269
- /*!******************************************!*\
12270
- !*** ./node_modules/moment/locale/eu.js ***!
12271
- \******************************************/
12272
- /*! no static exports found */
12273
- /***/ (function(module, exports, __webpack_require__) {
12274
-
12275
- //! moment.js locale configuration
12276
-
12277
- ;(function (global, factory) {
12278
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12279
- undefined
12280
- }(this, (function (moment) { 'use strict';
12281
-
12282
-
12283
- var eu = moment.defineLocale('eu', {
12284
- months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
12285
- monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
12286
- monthsParseExact : true,
12287
- weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
12288
- weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
12289
- weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
12290
- weekdaysParseExact : true,
12291
- longDateFormat : {
12292
- LT : 'HH:mm',
12293
- LTS : 'HH:mm:ss',
12294
- L : 'YYYY-MM-DD',
12295
- LL : 'YYYY[ko] MMMM[ren] D[a]',
12296
- LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
12297
- LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
12298
- l : 'YYYY-M-D',
12299
- ll : 'YYYY[ko] MMM D[a]',
12300
- lll : 'YYYY[ko] MMM D[a] HH:mm',
12301
- llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
12302
- },
12303
- calendar : {
12304
- sameDay : '[gaur] LT[etan]',
12305
- nextDay : '[bihar] LT[etan]',
12306
- nextWeek : 'dddd LT[etan]',
12307
- lastDay : '[atzo] LT[etan]',
12308
- lastWeek : '[aurreko] dddd LT[etan]',
12309
- sameElse : 'L'
12310
- },
12311
- relativeTime : {
12312
- future : '%s barru',
12313
- past : 'duela %s',
12314
- s : 'segundo batzuk',
12315
- ss : '%d segundo',
12316
- m : 'minutu bat',
12317
- mm : '%d minutu',
12318
- h : 'ordu bat',
12319
- hh : '%d ordu',
12320
- d : 'egun bat',
12321
- dd : '%d egun',
12322
- M : 'hilabete bat',
12323
- MM : '%d hilabete',
12324
- y : 'urte bat',
12325
- yy : '%d urte'
12326
- },
12327
- dayOfMonthOrdinalParse: /\d{1,2}\./,
12328
- ordinal : '%d.',
12329
- week : {
12330
- dow : 1, // Monday is the first day of the week.
12331
- doy : 7 // The week that contains Jan 1st is the first week of the year.
12332
- }
12333
- });
12334
-
12335
- return eu;
12336
-
12337
- })));
12338
-
12339
-
12340
- /***/ }),
12341
-
12342
- /***/ "./node_modules/moment/locale/fa.js":
12343
- /*!******************************************!*\
12344
- !*** ./node_modules/moment/locale/fa.js ***!
12345
- \******************************************/
12346
- /*! no static exports found */
12347
- /***/ (function(module, exports, __webpack_require__) {
12348
-
12349
- //! moment.js locale configuration
12350
-
12351
- ;(function (global, factory) {
12352
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12353
- undefined
12354
- }(this, (function (moment) { 'use strict';
12355
-
12356
-
12357
- var symbolMap = {
12358
- '1': '۱',
12359
- '2': '۲',
12360
- '3': '۳',
12361
- '4': '۴',
12362
- '5': '۵',
12363
- '6': '۶',
12364
- '7': '۷',
12365
- '8': '۸',
12366
- '9': '۹',
12367
- '0': '۰'
12368
- }, numberMap = {
12369
- '۱': '1',
12370
- '۲': '2',
12371
- '۳': '3',
12372
- '۴': '4',
12373
- '۵': '5',
12374
- '۶': '6',
12375
- '۷': '7',
12376
- '۸': '8',
12377
- '۹': '9',
12378
- '۰': '0'
12379
- };
12380
-
12381
- var fa = moment.defineLocale('fa', {
12382
- months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
12383
- monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
12384
- weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
12385
- weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
12386
- weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
12387
- weekdaysParseExact : true,
12388
- longDateFormat : {
12389
- LT : 'HH:mm',
12390
- LTS : 'HH:mm:ss',
12391
- L : 'DD/MM/YYYY',
12392
- LL : 'D MMMM YYYY',
12393
- LLL : 'D MMMM YYYY HH:mm',
12394
- LLLL : 'dddd, D MMMM YYYY HH:mm'
12395
- },
12396
- meridiemParse: /قبل از ظهر|بعد از ظهر/,
12397
- isPM: function (input) {
12398
- return /بعد از ظهر/.test(input);
12399
- },
12400
- meridiem : function (hour, minute, isLower) {
12401
- if (hour < 12) {
12402
- return 'قبل از ظهر';
12403
- } else {
12404
- return 'بعد از ظهر';
12405
- }
12406
- },
12407
- calendar : {
12408
- sameDay : '[امروز ساعت] LT',
12409
- nextDay : '[فردا ساعت] LT',
12410
- nextWeek : 'dddd [ساعت] LT',
12411
- lastDay : '[دیروز ساعت] LT',
12412
- lastWeek : 'dddd [پیش] [ساعت] LT',
12413
- sameElse : 'L'
12414
- },
12415
- relativeTime : {
12416
- future : 'در %s',
12417
- past : '%s پیش',
12418
- s : 'چند ثانیه',
12419
- ss : 'ثانیه d%',
12420
- m : 'یک دقیقه',
12421
- mm : '%d دقیقه',
12422
- h : 'یک ساعت',
12423
- hh : '%d ساعت',
12424
- d : 'یک روز',
12425
- dd : '%d روز',
12426
- M : 'یک ماه',
12427
- MM : '%d ماه',
12428
- y : 'یک سال',
12429
- yy : '%d سال'
12430
- },
12431
- preparse: function (string) {
12432
- return string.replace(/[۰-۹]/g, function (match) {
12433
- return numberMap[match];
12434
- }).replace(/،/g, ',');
12435
- },
12436
- postformat: function (string) {
12437
- return string.replace(/\d/g, function (match) {
12438
- return symbolMap[match];
12439
- }).replace(/,/g, '،');
12440
- },
12441
- dayOfMonthOrdinalParse: /\d{1,2}م/,
12442
- ordinal : '%dم',
12443
- week : {
12444
- dow : 6, // Saturday is the first day of the week.
12445
- doy : 12 // The week that contains Jan 1st is the first week of the year.
12446
- }
12447
- });
12448
-
12449
- return fa;
12450
-
12451
- })));
12452
-
12453
-
12454
- /***/ }),
12455
-
12456
- /***/ "./node_modules/moment/locale/fi.js":
12457
- /*!******************************************!*\
12458
- !*** ./node_modules/moment/locale/fi.js ***!
12459
- \******************************************/
12460
- /*! no static exports found */
12461
- /***/ (function(module, exports, __webpack_require__) {
12462
-
12463
- //! moment.js locale configuration
12464
-
12465
- ;(function (global, factory) {
12466
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12467
- undefined
12468
- }(this, (function (moment) { 'use strict';
12469
-
12470
-
12471
- var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
12472
- numbersFuture = [
12473
- 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
12474
- numbersPast[7], numbersPast[8], numbersPast[9]
12475
- ];
12476
- function translate(number, withoutSuffix, key, isFuture) {
12477
- var result = '';
12478
- switch (key) {
12479
- case 's':
12480
- return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
12481
- case 'ss':
12482
- return isFuture ? 'sekunnin' : 'sekuntia';
12483
- case 'm':
12484
- return isFuture ? 'minuutin' : 'minuutti';
12485
- case 'mm':
12486
- result = isFuture ? 'minuutin' : 'minuuttia';
12487
- break;
12488
- case 'h':
12489
- return isFuture ? 'tunnin' : 'tunti';
12490
- case 'hh':
12491
- result = isFuture ? 'tunnin' : 'tuntia';
12492
- break;
12493
- case 'd':
12494
- return isFuture ? 'päivän' : 'päivä';
12495
- case 'dd':
12496
- result = isFuture ? 'päivän' : 'päivää';
12497
- break;
12498
- case 'M':
12499
- return isFuture ? 'kuukauden' : 'kuukausi';
12500
- case 'MM':
12501
- result = isFuture ? 'kuukauden' : 'kuukautta';
12502
- break;
12503
- case 'y':
12504
- return isFuture ? 'vuoden' : 'vuosi';
12505
- case 'yy':
12506
- result = isFuture ? 'vuoden' : 'vuotta';
12507
- break;
12508
- }
12509
- result = verbalNumber(number, isFuture) + ' ' + result;
12510
- return result;
12511
- }
12512
- function verbalNumber(number, isFuture) {
12513
- return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
12514
- }
12515
-
12516
- var fi = moment.defineLocale('fi', {
12517
- months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
12518
- monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
12519
- weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
12520
- weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
12521
- weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
12522
- longDateFormat : {
12523
- LT : 'HH.mm',
12524
- LTS : 'HH.mm.ss',
12525
- L : 'DD.MM.YYYY',
12526
- LL : 'Do MMMM[ta] YYYY',
12527
- LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
12528
- LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
12529
- l : 'D.M.YYYY',
12530
- ll : 'Do MMM YYYY',
12531
- lll : 'Do MMM YYYY, [klo] HH.mm',
12532
- llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
12533
- },
12534
- calendar : {
12535
- sameDay : '[tänään] [klo] LT',
12536
- nextDay : '[huomenna] [klo] LT',
12537
- nextWeek : 'dddd [klo] LT',
12538
- lastDay : '[eilen] [klo] LT',
12539
- lastWeek : '[viime] dddd[na] [klo] LT',
12540
- sameElse : 'L'
12541
- },
12542
- relativeTime : {
12543
- future : '%s päästä',
12544
- past : '%s sitten',
12545
- s : translate,
12546
- ss : translate,
12547
- m : translate,
12548
- mm : translate,
12549
- h : translate,
12550
- hh : translate,
12551
- d : translate,
12552
- dd : translate,
12553
- M : translate,
12554
- MM : translate,
12555
- y : translate,
12556
- yy : translate
12557
- },
12558
- dayOfMonthOrdinalParse: /\d{1,2}\./,
12559
- ordinal : '%d.',
12560
- week : {
12561
- dow : 1, // Monday is the first day of the week.
12562
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12563
- }
12564
- });
12565
-
12566
- return fi;
12567
-
12568
- })));
12569
-
12570
-
12571
- /***/ }),
12572
-
12573
- /***/ "./node_modules/moment/locale/fo.js":
12574
- /*!******************************************!*\
12575
- !*** ./node_modules/moment/locale/fo.js ***!
12576
- \******************************************/
12577
- /*! no static exports found */
12578
- /***/ (function(module, exports, __webpack_require__) {
12579
-
12580
- //! moment.js locale configuration
12581
-
12582
- ;(function (global, factory) {
12583
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12584
- undefined
12585
- }(this, (function (moment) { 'use strict';
12586
-
12587
-
12588
- var fo = moment.defineLocale('fo', {
12589
- months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
12590
- monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
12591
- weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
12592
- weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
12593
- weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
12594
- longDateFormat : {
12595
- LT : 'HH:mm',
12596
- LTS : 'HH:mm:ss',
12597
- L : 'DD/MM/YYYY',
12598
- LL : 'D MMMM YYYY',
12599
- LLL : 'D MMMM YYYY HH:mm',
12600
- LLLL : 'dddd D. MMMM, YYYY HH:mm'
12601
- },
12602
- calendar : {
12603
- sameDay : '[Í dag kl.] LT',
12604
- nextDay : '[Í morgin kl.] LT',
12605
- nextWeek : 'dddd [kl.] LT',
12606
- lastDay : '[Í gjár kl.] LT',
12607
- lastWeek : '[síðstu] dddd [kl] LT',
12608
- sameElse : 'L'
12609
- },
12610
- relativeTime : {
12611
- future : 'um %s',
12612
- past : '%s síðani',
12613
- s : 'fá sekund',
12614
- ss : '%d sekundir',
12615
- m : 'ein minutt',
12616
- mm : '%d minuttir',
12617
- h : 'ein tími',
12618
- hh : '%d tímar',
12619
- d : 'ein dagur',
12620
- dd : '%d dagar',
12621
- M : 'ein mánaði',
12622
- MM : '%d mánaðir',
12623
- y : 'eitt ár',
12624
- yy : '%d ár'
12625
- },
12626
- dayOfMonthOrdinalParse: /\d{1,2}\./,
12627
- ordinal : '%d.',
12628
- week : {
12629
- dow : 1, // Monday is the first day of the week.
12630
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12631
- }
12632
- });
12633
-
12634
- return fo;
12635
-
12636
- })));
12637
-
12638
-
12639
- /***/ }),
12640
-
12641
- /***/ "./node_modules/moment/locale/fr-ca.js":
12642
- /*!*********************************************!*\
12643
- !*** ./node_modules/moment/locale/fr-ca.js ***!
12644
- \*********************************************/
12645
- /*! no static exports found */
12646
- /***/ (function(module, exports, __webpack_require__) {
12647
-
12648
- //! moment.js locale configuration
12649
-
12650
- ;(function (global, factory) {
12651
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12652
- undefined
12653
- }(this, (function (moment) { 'use strict';
12654
-
12655
-
12656
- var frCa = moment.defineLocale('fr-ca', {
12657
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
12658
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
12659
- monthsParseExact : true,
12660
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
12661
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
12662
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
12663
- weekdaysParseExact : true,
12664
- longDateFormat : {
12665
- LT : 'HH:mm',
12666
- LTS : 'HH:mm:ss',
12667
- L : 'YYYY-MM-DD',
12668
- LL : 'D MMMM YYYY',
12669
- LLL : 'D MMMM YYYY HH:mm',
12670
- LLLL : 'dddd D MMMM YYYY HH:mm'
12671
- },
12672
- calendar : {
12673
- sameDay : '[Aujourd’hui à] LT',
12674
- nextDay : '[Demain à] LT',
12675
- nextWeek : 'dddd [à] LT',
12676
- lastDay : '[Hier à] LT',
12677
- lastWeek : 'dddd [dernier à] LT',
12678
- sameElse : 'L'
12679
- },
12680
- relativeTime : {
12681
- future : 'dans %s',
12682
- past : 'il y a %s',
12683
- s : 'quelques secondes',
12684
- ss : '%d secondes',
12685
- m : 'une minute',
12686
- mm : '%d minutes',
12687
- h : 'une heure',
12688
- hh : '%d heures',
12689
- d : 'un jour',
12690
- dd : '%d jours',
12691
- M : 'un mois',
12692
- MM : '%d mois',
12693
- y : 'un an',
12694
- yy : '%d ans'
12695
- },
12696
- dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
12697
- ordinal : function (number, period) {
12698
- switch (period) {
12699
- // Words with masculine grammatical gender: mois, trimestre, jour
12700
- default:
12701
- case 'M':
12702
- case 'Q':
12703
- case 'D':
12704
- case 'DDD':
12705
- case 'd':
12706
- return number + (number === 1 ? 'er' : 'e');
12707
-
12708
- // Words with feminine grammatical gender: semaine
12709
- case 'w':
12710
- case 'W':
12711
- return number + (number === 1 ? 're' : 'e');
12712
- }
12713
- }
12714
- });
12715
-
12716
- return frCa;
12717
-
12718
- })));
12719
-
12720
-
12721
- /***/ }),
12722
-
12723
- /***/ "./node_modules/moment/locale/fr-ch.js":
12724
- /*!*********************************************!*\
12725
- !*** ./node_modules/moment/locale/fr-ch.js ***!
12726
- \*********************************************/
12727
- /*! no static exports found */
12728
- /***/ (function(module, exports, __webpack_require__) {
12729
-
12730
- //! moment.js locale configuration
12731
-
12732
- ;(function (global, factory) {
12733
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12734
- undefined
12735
- }(this, (function (moment) { 'use strict';
12736
-
12737
-
12738
- var frCh = moment.defineLocale('fr-ch', {
12739
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
12740
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
12741
- monthsParseExact : true,
12742
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
12743
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
12744
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
12745
- weekdaysParseExact : true,
12746
- longDateFormat : {
12747
- LT : 'HH:mm',
12748
- LTS : 'HH:mm:ss',
12749
- L : 'DD.MM.YYYY',
12750
- LL : 'D MMMM YYYY',
12751
- LLL : 'D MMMM YYYY HH:mm',
12752
- LLLL : 'dddd D MMMM YYYY HH:mm'
12753
- },
12754
- calendar : {
12755
- sameDay : '[Aujourd’hui à] LT',
12756
- nextDay : '[Demain à] LT',
12757
- nextWeek : 'dddd [à] LT',
12758
- lastDay : '[Hier à] LT',
12759
- lastWeek : 'dddd [dernier à] LT',
12760
- sameElse : 'L'
12761
- },
12762
- relativeTime : {
12763
- future : 'dans %s',
12764
- past : 'il y a %s',
12765
- s : 'quelques secondes',
12766
- ss : '%d secondes',
12767
- m : 'une minute',
12768
- mm : '%d minutes',
12769
- h : 'une heure',
12770
- hh : '%d heures',
12771
- d : 'un jour',
12772
- dd : '%d jours',
12773
- M : 'un mois',
12774
- MM : '%d mois',
12775
- y : 'un an',
12776
- yy : '%d ans'
12777
- },
12778
- dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
12779
- ordinal : function (number, period) {
12780
- switch (period) {
12781
- // Words with masculine grammatical gender: mois, trimestre, jour
12782
- default:
12783
- case 'M':
12784
- case 'Q':
12785
- case 'D':
12786
- case 'DDD':
12787
- case 'd':
12788
- return number + (number === 1 ? 'er' : 'e');
12789
-
12790
- // Words with feminine grammatical gender: semaine
12791
- case 'w':
12792
- case 'W':
12793
- return number + (number === 1 ? 're' : 'e');
12794
- }
12795
- },
12796
- week : {
12797
- dow : 1, // Monday is the first day of the week.
12798
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12799
- }
12800
- });
12801
-
12802
- return frCh;
12803
-
12804
- })));
12805
-
12806
-
12807
- /***/ }),
12808
-
12809
- /***/ "./node_modules/moment/locale/fr.js":
12810
- /*!******************************************!*\
12811
- !*** ./node_modules/moment/locale/fr.js ***!
12812
- \******************************************/
12813
- /*! no static exports found */
12814
- /***/ (function(module, exports, __webpack_require__) {
12815
-
12816
- //! moment.js locale configuration
12817
-
12818
- ;(function (global, factory) {
12819
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12820
- undefined
12821
- }(this, (function (moment) { 'use strict';
12822
-
12823
-
12824
- var fr = moment.defineLocale('fr', {
12825
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
12826
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
12827
- monthsParseExact : true,
12828
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
12829
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
12830
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
12831
- weekdaysParseExact : true,
12832
- longDateFormat : {
12833
- LT : 'HH:mm',
12834
- LTS : 'HH:mm:ss',
12835
- L : 'DD/MM/YYYY',
12836
- LL : 'D MMMM YYYY',
12837
- LLL : 'D MMMM YYYY HH:mm',
12838
- LLLL : 'dddd D MMMM YYYY HH:mm'
12839
- },
12840
- calendar : {
12841
- sameDay : '[Aujourd’hui à] LT',
12842
- nextDay : '[Demain à] LT',
12843
- nextWeek : 'dddd [à] LT',
12844
- lastDay : '[Hier à] LT',
12845
- lastWeek : 'dddd [dernier à] LT',
12846
- sameElse : 'L'
12847
- },
12848
- relativeTime : {
12849
- future : 'dans %s',
12850
- past : 'il y a %s',
12851
- s : 'quelques secondes',
12852
- ss : '%d secondes',
12853
- m : 'une minute',
12854
- mm : '%d minutes',
12855
- h : 'une heure',
12856
- hh : '%d heures',
12857
- d : 'un jour',
12858
- dd : '%d jours',
12859
- M : 'un mois',
12860
- MM : '%d mois',
12861
- y : 'un an',
12862
- yy : '%d ans'
12863
- },
12864
- dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
12865
- ordinal : function (number, period) {
12866
- switch (period) {
12867
- // TODO: Return 'e' when day of month > 1. Move this case inside
12868
- // block for masculine words below.
12869
- // See https://github.com/moment/moment/issues/3375
12870
- case 'D':
12871
- return number + (number === 1 ? 'er' : '');
12872
-
12873
- // Words with masculine grammatical gender: mois, trimestre, jour
12874
- default:
12875
- case 'M':
12876
- case 'Q':
12877
- case 'DDD':
12878
- case 'd':
12879
- return number + (number === 1 ? 'er' : 'e');
12880
-
12881
- // Words with feminine grammatical gender: semaine
12882
- case 'w':
12883
- case 'W':
12884
- return number + (number === 1 ? 're' : 'e');
12885
- }
12886
- },
12887
- week : {
12888
- dow : 1, // Monday is the first day of the week.
12889
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12890
- }
12891
- });
12892
-
12893
- return fr;
12894
-
12895
- })));
12896
-
12897
-
12898
- /***/ }),
12899
-
12900
- /***/ "./node_modules/moment/locale/fy.js":
12901
- /*!******************************************!*\
12902
- !*** ./node_modules/moment/locale/fy.js ***!
12903
- \******************************************/
12904
- /*! no static exports found */
12905
- /***/ (function(module, exports, __webpack_require__) {
12906
-
12907
- //! moment.js locale configuration
12908
-
12909
- ;(function (global, factory) {
12910
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12911
- undefined
12912
- }(this, (function (moment) { 'use strict';
12913
-
12914
-
12915
- var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
12916
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
12917
-
12918
- var fy = moment.defineLocale('fy', {
12919
- months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
12920
- monthsShort : function (m, format) {
12921
- if (!m) {
12922
- return monthsShortWithDots;
12923
- } else if (/-MMM-/.test(format)) {
12924
- return monthsShortWithoutDots[m.month()];
12925
- } else {
12926
- return monthsShortWithDots[m.month()];
12927
- }
12928
- },
12929
- monthsParseExact : true,
12930
- weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
12931
- weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
12932
- weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
12933
- weekdaysParseExact : true,
12934
- longDateFormat : {
12935
- LT : 'HH:mm',
12936
- LTS : 'HH:mm:ss',
12937
- L : 'DD-MM-YYYY',
12938
- LL : 'D MMMM YYYY',
12939
- LLL : 'D MMMM YYYY HH:mm',
12940
- LLLL : 'dddd D MMMM YYYY HH:mm'
12941
- },
12942
- calendar : {
12943
- sameDay: '[hjoed om] LT',
12944
- nextDay: '[moarn om] LT',
12945
- nextWeek: 'dddd [om] LT',
12946
- lastDay: '[juster om] LT',
12947
- lastWeek: '[ôfrûne] dddd [om] LT',
12948
- sameElse: 'L'
12949
- },
12950
- relativeTime : {
12951
- future : 'oer %s',
12952
- past : '%s lyn',
12953
- s : 'in pear sekonden',
12954
- ss : '%d sekonden',
12955
- m : 'ien minút',
12956
- mm : '%d minuten',
12957
- h : 'ien oere',
12958
- hh : '%d oeren',
12959
- d : 'ien dei',
12960
- dd : '%d dagen',
12961
- M : 'ien moanne',
12962
- MM : '%d moannen',
12963
- y : 'ien jier',
12964
- yy : '%d jierren'
12965
- },
12966
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
12967
- ordinal : function (number) {
12968
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
12969
- },
12970
- week : {
12971
- dow : 1, // Monday is the first day of the week.
12972
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12973
- }
12974
- });
12975
-
12976
- return fy;
12977
-
12978
- })));
12979
-
12980
-
12981
- /***/ }),
12982
-
12983
- /***/ "./node_modules/moment/locale/gd.js":
12984
- /*!******************************************!*\
12985
- !*** ./node_modules/moment/locale/gd.js ***!
12986
- \******************************************/
12987
- /*! no static exports found */
12988
- /***/ (function(module, exports, __webpack_require__) {
12989
-
12990
- //! moment.js locale configuration
12991
-
12992
- ;(function (global, factory) {
12993
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12994
- undefined
12995
- }(this, (function (moment) { 'use strict';
12996
-
12997
-
12998
- var months = [
12999
- 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
13000
- ];
13001
-
13002
- var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
13003
-
13004
- var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
13005
-
13006
- var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
13007
-
13008
- var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
13009
-
13010
- var gd = moment.defineLocale('gd', {
13011
- months : months,
13012
- monthsShort : monthsShort,
13013
- monthsParseExact : true,
13014
- weekdays : weekdays,
13015
- weekdaysShort : weekdaysShort,
13016
- weekdaysMin : weekdaysMin,
13017
- longDateFormat : {
13018
- LT : 'HH:mm',
13019
- LTS : 'HH:mm:ss',
13020
- L : 'DD/MM/YYYY',
13021
- LL : 'D MMMM YYYY',
13022
- LLL : 'D MMMM YYYY HH:mm',
13023
- LLLL : 'dddd, D MMMM YYYY HH:mm'
13024
- },
13025
- calendar : {
13026
- sameDay : '[An-diugh aig] LT',
13027
- nextDay : '[A-màireach aig] LT',
13028
- nextWeek : 'dddd [aig] LT',
13029
- lastDay : '[An-dè aig] LT',
13030
- lastWeek : 'dddd [seo chaidh] [aig] LT',
13031
- sameElse : 'L'
13032
- },
13033
- relativeTime : {
13034
- future : 'ann an %s',
13035
- past : 'bho chionn %s',
13036
- s : 'beagan diogan',
13037
- ss : '%d diogan',
13038
- m : 'mionaid',
13039
- mm : '%d mionaidean',
13040
- h : 'uair',
13041
- hh : '%d uairean',
13042
- d : 'latha',
13043
- dd : '%d latha',
13044
- M : 'mìos',
13045
- MM : '%d mìosan',
13046
- y : 'bliadhna',
13047
- yy : '%d bliadhna'
13048
- },
13049
- dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
13050
- ordinal : function (number) {
13051
- var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
13052
- return number + output;
13053
- },
13054
- week : {
13055
- dow : 1, // Monday is the first day of the week.
13056
- doy : 4 // The week that contains Jan 4th is the first week of the year.
13057
- }
13058
- });
13059
-
13060
- return gd;
13061
-
13062
- })));
13063
-
13064
-
13065
- /***/ }),
13066
-
13067
- /***/ "./node_modules/moment/locale/gl.js":
13068
- /*!******************************************!*\
13069
- !*** ./node_modules/moment/locale/gl.js ***!
13070
- \******************************************/
13071
- /*! no static exports found */
13072
- /***/ (function(module, exports, __webpack_require__) {
13073
-
13074
- //! moment.js locale configuration
13075
-
13076
- ;(function (global, factory) {
13077
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13078
- undefined
13079
- }(this, (function (moment) { 'use strict';
13080
-
13081
-
13082
- var gl = moment.defineLocale('gl', {
13083
- months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
13084
- monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
13085
- monthsParseExact: true,
13086
- weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
13087
- weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
13088
- weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
13089
- weekdaysParseExact : true,
13090
- longDateFormat : {
13091
- LT : 'H:mm',
13092
- LTS : 'H:mm:ss',
13093
- L : 'DD/MM/YYYY',
13094
- LL : 'D [de] MMMM [de] YYYY',
13095
- LLL : 'D [de] MMMM [de] YYYY H:mm',
13096
- LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
13097
- },
13098
- calendar : {
13099
- sameDay : function () {
13100
- return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
13101
- },
13102
- nextDay : function () {
13103
- return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
13104
- },
13105
- nextWeek : function () {
13106
- return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
13107
- },
13108
- lastDay : function () {
13109
- return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
13110
- },
13111
- lastWeek : function () {
13112
- return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
13113
- },
13114
- sameElse : 'L'
13115
- },
13116
- relativeTime : {
13117
- future : function (str) {
13118
- if (str.indexOf('un') === 0) {
13119
- return 'n' + str;
13120
- }
13121
- return 'en ' + str;
13122
- },
13123
- past : 'hai %s',
13124
- s : 'uns segundos',
13125
- ss : '%d segundos',
13126
- m : 'un minuto',
13127
- mm : '%d minutos',
13128
- h : 'unha hora',
13129
- hh : '%d horas',
13130
- d : 'un día',
13131
- dd : '%d días',
13132
- M : 'un mes',
13133
- MM : '%d meses',
13134
- y : 'un ano',
13135
- yy : '%d anos'
13136
- },
13137
- dayOfMonthOrdinalParse : /\d{1,2}º/,
13138
- ordinal : '%dº',
13139
- week : {
13140
- dow : 1, // Monday is the first day of the week.
13141
- doy : 4 // The week that contains Jan 4th is the first week of the year.
13142
- }
13143
- });
13144
-
13145
- return gl;
13146
-
13147
- })));
13148
-
13149
-
13150
- /***/ }),
13151
-
13152
- /***/ "./node_modules/moment/locale/gom-latn.js":
13153
- /*!************************************************!*\
13154
- !*** ./node_modules/moment/locale/gom-latn.js ***!
13155
- \************************************************/
13156
- /*! no static exports found */
13157
- /***/ (function(module, exports, __webpack_require__) {
13158
-
13159
- //! moment.js locale configuration
13160
-
13161
- ;(function (global, factory) {
13162
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13163
- undefined
13164
- }(this, (function (moment) { 'use strict';
13165
-
13166
-
13167
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
13168
- var format = {
13169
- 's': ['thodde secondanim', 'thodde second'],
13170
- 'ss': [number + ' secondanim', number + ' second'],
13171
- 'm': ['eka mintan', 'ek minute'],
13172
- 'mm': [number + ' mintanim', number + ' mintam'],
13173
- 'h': ['eka horan', 'ek hor'],
13174
- 'hh': [number + ' horanim', number + ' hor'],
13175
- 'd': ['eka disan', 'ek dis'],
13176
- 'dd': [number + ' disanim', number + ' dis'],
13177
- 'M': ['eka mhoinean', 'ek mhoino'],
13178
- 'MM': [number + ' mhoineanim', number + ' mhoine'],
13179
- 'y': ['eka vorsan', 'ek voros'],
13180
- 'yy': [number + ' vorsanim', number + ' vorsam']
13181
- };
13182
- return withoutSuffix ? format[key][0] : format[key][1];
13183
- }
13184
-
13185
- var gomLatn = moment.defineLocale('gom-latn', {
13186
- months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
13187
- monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
13188
- monthsParseExact : true,
13189
- weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
13190
- weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
13191
- weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
13192
- weekdaysParseExact : true,
13193
- longDateFormat : {
13194
- LT : 'A h:mm [vazta]',
13195
- LTS : 'A h:mm:ss [vazta]',
13196
- L : 'DD-MM-YYYY',
13197
- LL : 'D MMMM YYYY',
13198
- LLL : 'D MMMM YYYY A h:mm [vazta]',
13199
- LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
13200
- llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
13201
- },
13202
- calendar : {
13203
- sameDay: '[Aiz] LT',
13204
- nextDay: '[Faleam] LT',
13205
- nextWeek: '[Ieta to] dddd[,] LT',
13206
- lastDay: '[Kal] LT',
13207
- lastWeek: '[Fatlo] dddd[,] LT',
13208
- sameElse: 'L'
13209
- },
13210
- relativeTime : {
13211
- future : '%s',
13212
- past : '%s adim',
13213
- s : processRelativeTime,
13214
- ss : processRelativeTime,
13215
- m : processRelativeTime,
13216
- mm : processRelativeTime,
13217
- h : processRelativeTime,
13218
- hh : processRelativeTime,
13219
- d : processRelativeTime,
13220
- dd : processRelativeTime,
13221
- M : processRelativeTime,
13222
- MM : processRelativeTime,
13223
- y : processRelativeTime,
13224
- yy : processRelativeTime
13225
- },
13226
- dayOfMonthOrdinalParse : /\d{1,2}(er)/,
13227
- ordinal : function (number, period) {
13228
- switch (period) {
13229
- // the ordinal 'er' only applies to day of the month
13230
- case 'D':
13231
- return number + 'er';
13232
- default:
13233
- case 'M':
13234
- case 'Q':
13235
- case 'DDD':
13236
- case 'd':
13237
- case 'w':
13238
- case 'W':
13239
- return number;
13240
- }
13241
- },
13242
- week : {
13243
- dow : 1, // Monday is the first day of the week.
13244
- doy : 4 // The week that contains Jan 4th is the first week of the year.
13245
- },
13246
- meridiemParse: /rati|sokalli|donparam|sanje/,
13247
- meridiemHour : function (hour, meridiem) {
13248
- if (hour === 12) {
13249
- hour = 0;
13250
- }
13251
- if (meridiem === 'rati') {
13252
- return hour < 4 ? hour : hour + 12;
13253
- } else if (meridiem === 'sokalli') {
13254
- return hour;
13255
- } else if (meridiem === 'donparam') {
13256
- return hour > 12 ? hour : hour + 12;
13257
- } else if (meridiem === 'sanje') {
13258
- return hour + 12;
13259
- }
13260
- },
13261
- meridiem : function (hour, minute, isLower) {
13262
- if (hour < 4) {
13263
- return 'rati';
13264
- } else if (hour < 12) {
13265
- return 'sokalli';
13266
- } else if (hour < 16) {
13267
- return 'donparam';
13268
- } else if (hour < 20) {
13269
- return 'sanje';
13270
- } else {
13271
- return 'rati';
13272
- }
13273
- }
13274
- });
13275
-
13276
- return gomLatn;
13277
-
13278
- })));
13279
-
13280
-
13281
- /***/ }),
13282
-
13283
- /***/ "./node_modules/moment/locale/gu.js":
13284
- /*!******************************************!*\
13285
- !*** ./node_modules/moment/locale/gu.js ***!
13286
- \******************************************/
13287
- /*! no static exports found */
13288
- /***/ (function(module, exports, __webpack_require__) {
13289
-
13290
- //! moment.js locale configuration
13291
-
13292
- ;(function (global, factory) {
13293
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13294
- undefined
13295
- }(this, (function (moment) { 'use strict';
13296
-
13297
-
13298
- var symbolMap = {
13299
- '1': '૧',
13300
- '2': '૨',
13301
- '3': '૩',
13302
- '4': '૪',
13303
- '5': '૫',
13304
- '6': '૬',
13305
- '7': '૭',
13306
- '8': '૮',
13307
- '9': '૯',
13308
- '0': '૦'
13309
- },
13310
- numberMap = {
13311
- '૧': '1',
13312
- '૨': '2',
13313
- '૩': '3',
13314
- '૪': '4',
13315
- '૫': '5',
13316
- '૬': '6',
13317
- '૭': '7',
13318
- '૮': '8',
13319
- '૯': '9',
13320
- '૦': '0'
13321
- };
13322
-
13323
- var gu = moment.defineLocale('gu', {
13324
- months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
13325
- monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
13326
- monthsParseExact: true,
13327
- weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
13328
- weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
13329
- weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
13330
- longDateFormat: {
13331
- LT: 'A h:mm વાગ્યે',
13332
- LTS: 'A h:mm:ss વાગ્યે',
13333
- L: 'DD/MM/YYYY',
13334
- LL: 'D MMMM YYYY',
13335
- LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
13336
- LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
13337
- },
13338
- calendar: {
13339
- sameDay: '[આજ] LT',
13340
- nextDay: '[કાલે] LT',
13341
- nextWeek: 'dddd, LT',
13342
- lastDay: '[ગઇકાલે] LT',
13343
- lastWeek: '[પાછલા] dddd, LT',
13344
- sameElse: 'L'
13345
- },
13346
- relativeTime: {
13347
- future: '%s મા',
13348
- past: '%s પેહલા',
13349
- s: 'અમુક પળો',
13350
- ss: '%d સેકંડ',
13351
- m: 'એક મિનિટ',
13352
- mm: '%d મિનિટ',
13353
- h: 'એક કલાક',
13354
- hh: '%d કલાક',
13355
- d: 'એક દિવસ',
13356
- dd: '%d દિવસ',
13357
- M: 'એક મહિનો',
13358
- MM: '%d મહિનો',
13359
- y: 'એક વર્ષ',
13360
- yy: '%d વર્ષ'
13361
- },
13362
- preparse: function (string) {
13363
- return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
13364
- return numberMap[match];
13365
- });
13366
- },
13367
- postformat: function (string) {
13368
- return string.replace(/\d/g, function (match) {
13369
- return symbolMap[match];
13370
- });
13371
- },
13372
- // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
13373
- // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
13374
- meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
13375
- meridiemHour: function (hour, meridiem) {
13376
- if (hour === 12) {
13377
- hour = 0;
13378
- }
13379
- if (meridiem === 'રાત') {
13380
- return hour < 4 ? hour : hour + 12;
13381
- } else if (meridiem === 'સવાર') {
13382
- return hour;
13383
- } else if (meridiem === 'બપોર') {
13384
- return hour >= 10 ? hour : hour + 12;
13385
- } else if (meridiem === 'સાંજ') {
13386
- return hour + 12;
13387
- }
13388
- },
13389
- meridiem: function (hour, minute, isLower) {
13390
- if (hour < 4) {
13391
- return 'રાત';
13392
- } else if (hour < 10) {
13393
- return 'સવાર';
13394
- } else if (hour < 17) {
13395
- return 'બપોર';
13396
- } else if (hour < 20) {
13397
- return 'સાંજ';
13398
- } else {
13399
- return 'રાત';
13400
- }
13401
- },
13402
- week: {
13403
- dow: 0, // Sunday is the first day of the week.
13404
- doy: 6 // The week that contains Jan 1st is the first week of the year.
13405
- }
13406
- });
13407
-
13408
- return gu;
13409
-
13410
- })));
13411
-
13412
-
13413
- /***/ }),
13414
-
13415
- /***/ "./node_modules/moment/locale/he.js":
13416
- /*!******************************************!*\
13417
- !*** ./node_modules/moment/locale/he.js ***!
13418
- \******************************************/
13419
- /*! no static exports found */
13420
- /***/ (function(module, exports, __webpack_require__) {
13421
-
13422
- //! moment.js locale configuration
13423
-
13424
- ;(function (global, factory) {
13425
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13426
- undefined
13427
- }(this, (function (moment) { 'use strict';
13428
-
13429
-
13430
- var he = moment.defineLocale('he', {
13431
- months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
13432
- monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
13433
- weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
13434
- weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
13435
- weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
13436
- longDateFormat : {
13437
- LT : 'HH:mm',
13438
- LTS : 'HH:mm:ss',
13439
- L : 'DD/MM/YYYY',
13440
- LL : 'D [ב]MMMM YYYY',
13441
- LLL : 'D [ב]MMMM YYYY HH:mm',
13442
- LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
13443
- l : 'D/M/YYYY',
13444
- ll : 'D MMM YYYY',
13445
- lll : 'D MMM YYYY HH:mm',
13446
- llll : 'ddd, D MMM YYYY HH:mm'
13447
- },
13448
- calendar : {
13449
- sameDay : '[היום ב־]LT',
13450
- nextDay : '[מחר ב־]LT',
13451
- nextWeek : 'dddd [בשעה] LT',
13452
- lastDay : '[אתמול ב־]LT',
13453
- lastWeek : '[ביום] dddd [האחרון בשעה] LT',
13454
- sameElse : 'L'
13455
- },
13456
- relativeTime : {
13457
- future : 'בעוד %s',
13458
- past : 'לפני %s',
13459
- s : 'מספר שניות',
13460
- ss : '%d שניות',
13461
- m : 'דקה',
13462
- mm : '%d דקות',
13463
- h : 'שעה',
13464
- hh : function (number) {
13465
- if (number === 2) {
13466
- return 'שעתיים';
13467
- }
13468
- return number + ' שעות';
13469
- },
13470
- d : 'יום',
13471
- dd : function (number) {
13472
- if (number === 2) {
13473
- return 'יומיים';
13474
- }
13475
- return number + ' ימים';
13476
- },
13477
- M : 'חודש',
13478
- MM : function (number) {
13479
- if (number === 2) {
13480
- return 'חודשיים';
13481
- }
13482
- return number + ' חודשים';
13483
- },
13484
- y : 'שנה',
13485
- yy : function (number) {
13486
- if (number === 2) {
13487
- return 'שנתיים';
13488
- } else if (number % 10 === 0 && number !== 10) {
13489
- return number + ' שנה';
13490
- }
13491
- return number + ' שנים';
13492
- }
13493
- },
13494
- meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
13495
- isPM : function (input) {
13496
- return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
13497
- },
13498
- meridiem : function (hour, minute, isLower) {
13499
- if (hour < 5) {
13500
- return 'לפנות בוקר';
13501
- } else if (hour < 10) {
13502
- return 'בבוקר';
13503
- } else if (hour < 12) {
13504
- return isLower ? 'לפנה"צ' : 'לפני הצהריים';
13505
- } else if (hour < 18) {
13506
- return isLower ? 'אחה"צ' : 'אחרי הצהריים';
13507
- } else {
13508
- return 'בערב';
13509
- }
13510
- }
13511
- });
13512
-
13513
- return he;
13514
-
13515
- })));
13516
-
13517
-
13518
- /***/ }),
13519
-
13520
- /***/ "./node_modules/moment/locale/hi.js":
13521
- /*!******************************************!*\
13522
- !*** ./node_modules/moment/locale/hi.js ***!
13523
- \******************************************/
13524
- /*! no static exports found */
13525
- /***/ (function(module, exports, __webpack_require__) {
13526
-
13527
- //! moment.js locale configuration
13528
-
13529
- ;(function (global, factory) {
13530
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13531
- undefined
13532
- }(this, (function (moment) { 'use strict';
13533
-
13534
-
13535
- var symbolMap = {
13536
- '1': '१',
13537
- '2': '२',
13538
- '3': '३',
13539
- '4': '४',
13540
- '5': '५',
13541
- '6': '६',
13542
- '7': '७',
13543
- '8': '८',
13544
- '9': '९',
13545
- '0': '०'
13546
- },
13547
- numberMap = {
13548
- '१': '1',
13549
- '२': '2',
13550
- '३': '3',
13551
- '४': '4',
13552
- '५': '5',
13553
- '६': '6',
13554
- '७': '7',
13555
- '८': '8',
13556
- '९': '9',
13557
- '०': '0'
13558
- };
13559
-
13560
- var hi = moment.defineLocale('hi', {
13561
- months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
13562
- monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
13563
- monthsParseExact: true,
13564
- weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
13565
- weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
13566
- weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
13567
- longDateFormat : {
13568
- LT : 'A h:mm बजे',
13569
- LTS : 'A h:mm:ss बजे',
13570
- L : 'DD/MM/YYYY',
13571
- LL : 'D MMMM YYYY',
13572
- LLL : 'D MMMM YYYY, A h:mm बजे',
13573
- LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
13574
- },
13575
- calendar : {
13576
- sameDay : '[आज] LT',
13577
- nextDay : '[कल] LT',
13578
- nextWeek : 'dddd, LT',
13579
- lastDay : '[कल] LT',
13580
- lastWeek : '[पिछले] dddd, LT',
13581
- sameElse : 'L'
13582
- },
13583
- relativeTime : {
13584
- future : '%s में',
13585
- past : '%s पहले',
13586
- s : 'कुछ ही क्षण',
13587
- ss : '%d सेकंड',
13588
- m : 'एक मिनट',
13589
- mm : '%d मिनट',
13590
- h : 'एक घंटा',
13591
- hh : '%d घंटे',
13592
- d : 'एक दिन',
13593
- dd : '%d दिन',
13594
- M : 'एक महीने',
13595
- MM : '%d महीने',
13596
- y : 'एक वर्ष',
13597
- yy : '%d वर्ष'
13598
- },
13599
- preparse: function (string) {
13600
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
13601
- return numberMap[match];
13602
- });
13603
- },
13604
- postformat: function (string) {
13605
- return string.replace(/\d/g, function (match) {
13606
- return symbolMap[match];
13607
- });
13608
- },
13609
- // Hindi notation for meridiems are quite fuzzy in practice. While there exists
13610
- // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
13611
- meridiemParse: /रात|सुबह|दोपहर|शाम/,
13612
- meridiemHour : function (hour, meridiem) {
13613
- if (hour === 12) {
13614
- hour = 0;
13615
- }
13616
- if (meridiem === 'रात') {
13617
- return hour < 4 ? hour : hour + 12;
13618
- } else if (meridiem === 'सुबह') {
13619
- return hour;
13620
- } else if (meridiem === 'दोपहर') {
13621
- return hour >= 10 ? hour : hour + 12;
13622
- } else if (meridiem === 'शाम') {
13623
- return hour + 12;
13624
- }
13625
- },
13626
- meridiem : function (hour, minute, isLower) {
13627
- if (hour < 4) {
13628
- return 'रात';
13629
- } else if (hour < 10) {
13630
- return 'सुबह';
13631
- } else if (hour < 17) {
13632
- return 'दोपहर';
13633
- } else if (hour < 20) {
13634
- return 'शाम';
13635
- } else {
13636
- return 'रात';
13637
- }
13638
- },
13639
- week : {
13640
- dow : 0, // Sunday is the first day of the week.
13641
- doy : 6 // The week that contains Jan 1st is the first week of the year.
13642
- }
13643
- });
13644
-
13645
- return hi;
13646
-
13647
- })));
13648
-
13649
-
13650
- /***/ }),
13651
-
13652
- /***/ "./node_modules/moment/locale/hr.js":
13653
- /*!******************************************!*\
13654
- !*** ./node_modules/moment/locale/hr.js ***!
13655
- \******************************************/
13656
- /*! no static exports found */
13657
- /***/ (function(module, exports, __webpack_require__) {
13658
-
13659
- //! moment.js locale configuration
13660
-
13661
- ;(function (global, factory) {
13662
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13663
- undefined
13664
- }(this, (function (moment) { 'use strict';
13665
-
13666
-
13667
- function translate(number, withoutSuffix, key) {
13668
- var result = number + ' ';
13669
- switch (key) {
13670
- case 'ss':
13671
- if (number === 1) {
13672
- result += 'sekunda';
13673
- } else if (number === 2 || number === 3 || number === 4) {
13674
- result += 'sekunde';
13675
- } else {
13676
- result += 'sekundi';
13677
- }
13678
- return result;
13679
- case 'm':
13680
- return withoutSuffix ? 'jedna minuta' : 'jedne minute';
13681
- case 'mm':
13682
- if (number === 1) {
13683
- result += 'minuta';
13684
- } else if (number === 2 || number === 3 || number === 4) {
13685
- result += 'minute';
13686
- } else {
13687
- result += 'minuta';
13688
- }
13689
- return result;
13690
- case 'h':
13691
- return withoutSuffix ? 'jedan sat' : 'jednog sata';
13692
- case 'hh':
13693
- if (number === 1) {
13694
- result += 'sat';
13695
- } else if (number === 2 || number === 3 || number === 4) {
13696
- result += 'sata';
13697
- } else {
13698
- result += 'sati';
13699
- }
13700
- return result;
13701
- case 'dd':
13702
- if (number === 1) {
13703
- result += 'dan';
13704
- } else {
13705
- result += 'dana';
13706
- }
13707
- return result;
13708
- case 'MM':
13709
- if (number === 1) {
13710
- result += 'mjesec';
13711
- } else if (number === 2 || number === 3 || number === 4) {
13712
- result += 'mjeseca';
13713
- } else {
13714
- result += 'mjeseci';
13715
- }
13716
- return result;
13717
- case 'yy':
13718
- if (number === 1) {
13719
- result += 'godina';
13720
- } else if (number === 2 || number === 3 || number === 4) {
13721
- result += 'godine';
13722
- } else {
13723
- result += 'godina';
13724
- }
13725
- return result;
13726
- }
13727
- }
13728
-
13729
- var hr = moment.defineLocale('hr', {
13730
- months : {
13731
- format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
13732
- standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
13733
- },
13734
- monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
13735
- monthsParseExact: true,
13736
- weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
13737
- weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
13738
- weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
13739
- weekdaysParseExact : true,
13740
- longDateFormat : {
13741
- LT : 'H:mm',
13742
- LTS : 'H:mm:ss',
13743
- L : 'DD.MM.YYYY',
13744
- LL : 'D. MMMM YYYY',
13745
- LLL : 'D. MMMM YYYY H:mm',
13746
- LLLL : 'dddd, D. MMMM YYYY H:mm'
13747
- },
13748
- calendar : {
13749
- sameDay : '[danas u] LT',
13750
- nextDay : '[sutra u] LT',
13751
- nextWeek : function () {
13752
- switch (this.day()) {
13753
- case 0:
13754
- return '[u] [nedjelju] [u] LT';
13755
- case 3:
13756
- return '[u] [srijedu] [u] LT';
13757
- case 6:
13758
- return '[u] [subotu] [u] LT';
13759
- case 1:
13760
- case 2:
13761
- case 4:
13762
- case 5:
13763
- return '[u] dddd [u] LT';
13764
- }
13765
- },
13766
- lastDay : '[jučer u] LT',
13767
- lastWeek : function () {
13768
- switch (this.day()) {
13769
- case 0:
13770
- case 3:
13771
- return '[prošlu] dddd [u] LT';
13772
- case 6:
13773
- return '[prošle] [subote] [u] LT';
13774
- case 1:
13775
- case 2:
13776
- case 4:
13777
- case 5:
13778
- return '[prošli] dddd [u] LT';
13779
- }
13780
- },
13781
- sameElse : 'L'
13782
- },
13783
- relativeTime : {
13784
- future : 'za %s',
13785
- past : 'prije %s',
13786
- s : 'par sekundi',
13787
- ss : translate,
13788
- m : translate,
13789
- mm : translate,
13790
- h : translate,
13791
- hh : translate,
13792
- d : 'dan',
13793
- dd : translate,
13794
- M : 'mjesec',
13795
- MM : translate,
13796
- y : 'godinu',
13797
- yy : translate
13798
- },
13799
- dayOfMonthOrdinalParse: /\d{1,2}\./,
13800
- ordinal : '%d.',
13801
- week : {
13802
- dow : 1, // Monday is the first day of the week.
13803
- doy : 7 // The week that contains Jan 1st is the first week of the year.
13804
- }
13805
- });
13806
-
13807
- return hr;
13808
-
13809
- })));
13810
-
13811
-
13812
- /***/ }),
13813
-
13814
- /***/ "./node_modules/moment/locale/hu.js":
13815
- /*!******************************************!*\
13816
- !*** ./node_modules/moment/locale/hu.js ***!
13817
- \******************************************/
13818
- /*! no static exports found */
13819
- /***/ (function(module, exports, __webpack_require__) {
13820
-
13821
- //! moment.js locale configuration
13822
-
13823
- ;(function (global, factory) {
13824
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13825
- undefined
13826
- }(this, (function (moment) { 'use strict';
13827
-
13828
-
13829
- var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
13830
- function translate(number, withoutSuffix, key, isFuture) {
13831
- var num = number;
13832
- switch (key) {
13833
- case 's':
13834
- return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
13835
- case 'ss':
13836
- return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
13837
- case 'm':
13838
- return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
13839
- case 'mm':
13840
- return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
13841
- case 'h':
13842
- return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
13843
- case 'hh':
13844
- return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
13845
- case 'd':
13846
- return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
13847
- case 'dd':
13848
- return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
13849
- case 'M':
13850
- return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
13851
- case 'MM':
13852
- return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
13853
- case 'y':
13854
- return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
13855
- case 'yy':
13856
- return num + (isFuture || withoutSuffix ? ' év' : ' éve');
13857
- }
13858
- return '';
13859
- }
13860
- function week(isFuture) {
13861
- return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
13862
- }
13863
-
13864
- var hu = moment.defineLocale('hu', {
13865
- months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
13866
- monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
13867
- weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
13868
- weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
13869
- weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
13870
- longDateFormat : {
13871
- LT : 'H:mm',
13872
- LTS : 'H:mm:ss',
13873
- L : 'YYYY.MM.DD.',
13874
- LL : 'YYYY. MMMM D.',
13875
- LLL : 'YYYY. MMMM D. H:mm',
13876
- LLLL : 'YYYY. MMMM D., dddd H:mm'
13877
- },
13878
- meridiemParse: /de|du/i,
13879
- isPM: function (input) {
13880
- return input.charAt(1).toLowerCase() === 'u';
13881
- },
13882
- meridiem : function (hours, minutes, isLower) {
13883
- if (hours < 12) {
13884
- return isLower === true ? 'de' : 'DE';
13885
- } else {
13886
- return isLower === true ? 'du' : 'DU';
13887
- }
13888
- },
13889
- calendar : {
13890
- sameDay : '[ma] LT[-kor]',
13891
- nextDay : '[holnap] LT[-kor]',
13892
- nextWeek : function () {
13893
- return week.call(this, true);
13894
- },
13895
- lastDay : '[tegnap] LT[-kor]',
13896
- lastWeek : function () {
13897
- return week.call(this, false);
13898
- },
13899
- sameElse : 'L'
13900
- },
13901
- relativeTime : {
13902
- future : '%s múlva',
13903
- past : '%s',
13904
- s : translate,
13905
- ss : translate,
13906
- m : translate,
13907
- mm : translate,
13908
- h : translate,
13909
- hh : translate,
13910
- d : translate,
13911
- dd : translate,
13912
- M : translate,
13913
- MM : translate,
13914
- y : translate,
13915
- yy : translate
13916
- },
13917
- dayOfMonthOrdinalParse: /\d{1,2}\./,
13918
- ordinal : '%d.',
13919
- week : {
13920
- dow : 1, // Monday is the first day of the week.
13921
- doy : 4 // The week that contains Jan 4th is the first week of the year.
13922
- }
13923
- });
13924
-
13925
- return hu;
13926
-
13927
- })));
13928
-
13929
-
13930
- /***/ }),
13931
-
13932
- /***/ "./node_modules/moment/locale/hy-am.js":
13933
- /*!*********************************************!*\
13934
- !*** ./node_modules/moment/locale/hy-am.js ***!
13935
- \*********************************************/
13936
- /*! no static exports found */
13937
- /***/ (function(module, exports, __webpack_require__) {
13938
-
13939
- //! moment.js locale configuration
13940
-
13941
- ;(function (global, factory) {
13942
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13943
- undefined
13944
- }(this, (function (moment) { 'use strict';
13945
-
13946
-
13947
- var hyAm = moment.defineLocale('hy-am', {
13948
- months : {
13949
- format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
13950
- standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
13951
- },
13952
- monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
13953
- weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
13954
- weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
13955
- weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
13956
- longDateFormat : {
13957
- LT : 'HH:mm',
13958
- LTS : 'HH:mm:ss',
13959
- L : 'DD.MM.YYYY',
13960
- LL : 'D MMMM YYYY թ.',
13961
- LLL : 'D MMMM YYYY թ., HH:mm',
13962
- LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
13963
- },
13964
- calendar : {
13965
- sameDay: '[այսօր] LT',
13966
- nextDay: '[վաղը] LT',
13967
- lastDay: '[երեկ] LT',
13968
- nextWeek: function () {
13969
- return 'dddd [օրը ժամը] LT';
13970
- },
13971
- lastWeek: function () {
13972
- return '[անցած] dddd [օրը ժամը] LT';
13973
- },
13974
- sameElse: 'L'
13975
- },
13976
- relativeTime : {
13977
- future : '%s հետո',
13978
- past : '%s առաջ',
13979
- s : 'մի քանի վայրկյան',
13980
- ss : '%d վայրկյան',
13981
- m : 'րոպե',
13982
- mm : '%d րոպե',
13983
- h : 'ժամ',
13984
- hh : '%d ժամ',
13985
- d : 'օր',
13986
- dd : '%d օր',
13987
- M : 'ամիս',
13988
- MM : '%d ամիս',
13989
- y : 'տարի',
13990
- yy : '%d տարի'
13991
- },
13992
- meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
13993
- isPM: function (input) {
13994
- return /^(ցերեկվա|երեկոյան)$/.test(input);
13995
- },
13996
- meridiem : function (hour) {
13997
- if (hour < 4) {
13998
- return 'գիշերվա';
13999
- } else if (hour < 12) {
14000
- return 'առավոտվա';
14001
- } else if (hour < 17) {
14002
- return 'ցերեկվա';
14003
- } else {
14004
- return 'երեկոյան';
14005
- }
14006
- },
14007
- dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
14008
- ordinal: function (number, period) {
14009
- switch (period) {
14010
- case 'DDD':
14011
- case 'w':
14012
- case 'W':
14013
- case 'DDDo':
14014
- if (number === 1) {
14015
- return number + '-ին';
14016
- }
14017
- return number + '-րդ';
14018
- default:
14019
- return number;
14020
- }
14021
- },
14022
- week : {
14023
- dow : 1, // Monday is the first day of the week.
14024
- doy : 7 // The week that contains Jan 1st is the first week of the year.
14025
- }
14026
- });
14027
-
14028
- return hyAm;
14029
-
14030
- })));
14031
-
14032
-
14033
- /***/ }),
14034
-
14035
- /***/ "./node_modules/moment/locale/id.js":
14036
- /*!******************************************!*\
14037
- !*** ./node_modules/moment/locale/id.js ***!
14038
- \******************************************/
14039
- /*! no static exports found */
14040
- /***/ (function(module, exports, __webpack_require__) {
14041
-
14042
- //! moment.js locale configuration
14043
-
14044
- ;(function (global, factory) {
14045
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14046
- undefined
14047
- }(this, (function (moment) { 'use strict';
14048
-
14049
-
14050
- var id = moment.defineLocale('id', {
14051
- months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
14052
- monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
14053
- weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
14054
- weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
14055
- weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
14056
- longDateFormat : {
14057
- LT : 'HH.mm',
14058
- LTS : 'HH.mm.ss',
14059
- L : 'DD/MM/YYYY',
14060
- LL : 'D MMMM YYYY',
14061
- LLL : 'D MMMM YYYY [pukul] HH.mm',
14062
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
14063
- },
14064
- meridiemParse: /pagi|siang|sore|malam/,
14065
- meridiemHour : function (hour, meridiem) {
14066
- if (hour === 12) {
14067
- hour = 0;
14068
- }
14069
- if (meridiem === 'pagi') {
14070
- return hour;
14071
- } else if (meridiem === 'siang') {
14072
- return hour >= 11 ? hour : hour + 12;
14073
- } else if (meridiem === 'sore' || meridiem === 'malam') {
14074
- return hour + 12;
14075
- }
14076
- },
14077
- meridiem : function (hours, minutes, isLower) {
14078
- if (hours < 11) {
14079
- return 'pagi';
14080
- } else if (hours < 15) {
14081
- return 'siang';
14082
- } else if (hours < 19) {
14083
- return 'sore';
14084
- } else {
14085
- return 'malam';
14086
- }
14087
- },
14088
- calendar : {
14089
- sameDay : '[Hari ini pukul] LT',
14090
- nextDay : '[Besok pukul] LT',
14091
- nextWeek : 'dddd [pukul] LT',
14092
- lastDay : '[Kemarin pukul] LT',
14093
- lastWeek : 'dddd [lalu pukul] LT',
14094
- sameElse : 'L'
14095
- },
14096
- relativeTime : {
14097
- future : 'dalam %s',
14098
- past : '%s yang lalu',
14099
- s : 'beberapa detik',
14100
- ss : '%d detik',
14101
- m : 'semenit',
14102
- mm : '%d menit',
14103
- h : 'sejam',
14104
- hh : '%d jam',
14105
- d : 'sehari',
14106
- dd : '%d hari',
14107
- M : 'sebulan',
14108
- MM : '%d bulan',
14109
- y : 'setahun',
14110
- yy : '%d tahun'
14111
- },
14112
- week : {
14113
- dow : 1, // Monday is the first day of the week.
14114
- doy : 7 // The week that contains Jan 1st is the first week of the year.
14115
- }
14116
- });
14117
-
14118
- return id;
14119
-
14120
- })));
14121
-
14122
-
14123
- /***/ }),
14124
-
14125
- /***/ "./node_modules/moment/locale/is.js":
14126
- /*!******************************************!*\
14127
- !*** ./node_modules/moment/locale/is.js ***!
14128
- \******************************************/
14129
- /*! no static exports found */
14130
- /***/ (function(module, exports, __webpack_require__) {
14131
-
14132
- //! moment.js locale configuration
14133
-
14134
- ;(function (global, factory) {
14135
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14136
- undefined
14137
- }(this, (function (moment) { 'use strict';
14138
-
14139
-
14140
- function plural(n) {
14141
- if (n % 100 === 11) {
14142
- return true;
14143
- } else if (n % 10 === 1) {
14144
- return false;
14145
- }
14146
- return true;
14147
- }
14148
- function translate(number, withoutSuffix, key, isFuture) {
14149
- var result = number + ' ';
14150
- switch (key) {
14151
- case 's':
14152
- return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
14153
- case 'ss':
14154
- if (plural(number)) {
14155
- return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
14156
- }
14157
- return result + 'sekúnda';
14158
- case 'm':
14159
- return withoutSuffix ? 'mínúta' : 'mínútu';
14160
- case 'mm':
14161
- if (plural(number)) {
14162
- return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
14163
- } else if (withoutSuffix) {
14164
- return result + 'mínúta';
14165
- }
14166
- return result + 'mínútu';
14167
- case 'hh':
14168
- if (plural(number)) {
14169
- return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
14170
- }
14171
- return result + 'klukkustund';
14172
- case 'd':
14173
- if (withoutSuffix) {
14174
- return 'dagur';
14175
- }
14176
- return isFuture ? 'dag' : 'degi';
14177
- case 'dd':
14178
- if (plural(number)) {
14179
- if (withoutSuffix) {
14180
- return result + 'dagar';
14181
- }
14182
- return result + (isFuture ? 'daga' : 'dögum');
14183
- } else if (withoutSuffix) {
14184
- return result + 'dagur';
14185
- }
14186
- return result + (isFuture ? 'dag' : 'degi');
14187
- case 'M':
14188
- if (withoutSuffix) {
14189
- return 'mánuður';
14190
- }
14191
- return isFuture ? 'mánuð' : 'mánuði';
14192
- case 'MM':
14193
- if (plural(number)) {
14194
- if (withoutSuffix) {
14195
- return result + 'mánuðir';
14196
- }
14197
- return result + (isFuture ? 'mánuði' : 'mánuðum');
14198
- } else if (withoutSuffix) {
14199
- return result + 'mánuður';
14200
- }
14201
- return result + (isFuture ? 'mánuð' : 'mánuði');
14202
- case 'y':
14203
- return withoutSuffix || isFuture ? 'ár' : 'ári';
14204
- case 'yy':
14205
- if (plural(number)) {
14206
- return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
14207
- }
14208
- return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
14209
- }
14210
- }
14211
-
14212
- var is = moment.defineLocale('is', {
14213
- months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
14214
- monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
14215
- weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
14216
- weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
14217
- weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
14218
- longDateFormat : {
14219
- LT : 'H:mm',
14220
- LTS : 'H:mm:ss',
14221
- L : 'DD.MM.YYYY',
14222
- LL : 'D. MMMM YYYY',
14223
- LLL : 'D. MMMM YYYY [kl.] H:mm',
14224
- LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
14225
- },
14226
- calendar : {
14227
- sameDay : '[í dag kl.] LT',
14228
- nextDay : '[á morgun kl.] LT',
14229
- nextWeek : 'dddd [kl.] LT',
14230
- lastDay : '[í gær kl.] LT',
14231
- lastWeek : '[síðasta] dddd [kl.] LT',
14232
- sameElse : 'L'
14233
- },
14234
- relativeTime : {
14235
- future : 'eftir %s',
14236
- past : 'fyrir %s síðan',
14237
- s : translate,
14238
- ss : translate,
14239
- m : translate,
14240
- mm : translate,
14241
- h : 'klukkustund',
14242
- hh : translate,
14243
- d : translate,
14244
- dd : translate,
14245
- M : translate,
14246
- MM : translate,
14247
- y : translate,
14248
- yy : translate
14249
- },
14250
- dayOfMonthOrdinalParse: /\d{1,2}\./,
14251
- ordinal : '%d.',
14252
- week : {
14253
- dow : 1, // Monday is the first day of the week.
14254
- doy : 4 // The week that contains Jan 4th is the first week of the year.
14255
- }
14256
- });
14257
-
14258
- return is;
14259
-
14260
- })));
14261
-
14262
-
14263
- /***/ }),
14264
-
14265
- /***/ "./node_modules/moment/locale/it.js":
14266
- /*!******************************************!*\
14267
- !*** ./node_modules/moment/locale/it.js ***!
14268
- \******************************************/
14269
- /*! no static exports found */
14270
- /***/ (function(module, exports, __webpack_require__) {
14271
-
14272
- //! moment.js locale configuration
14273
-
14274
- ;(function (global, factory) {
14275
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14276
- undefined
14277
- }(this, (function (moment) { 'use strict';
14278
-
14279
-
14280
- var it = moment.defineLocale('it', {
14281
- months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
14282
- monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
14283
- weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
14284
- weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
14285
- weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
14286
- longDateFormat : {
14287
- LT : 'HH:mm',
14288
- LTS : 'HH:mm:ss',
14289
- L : 'DD/MM/YYYY',
14290
- LL : 'D MMMM YYYY',
14291
- LLL : 'D MMMM YYYY HH:mm',
14292
- LLLL : 'dddd D MMMM YYYY HH:mm'
14293
- },
14294
- calendar : {
14295
- sameDay: '[Oggi alle] LT',
14296
- nextDay: '[Domani alle] LT',
14297
- nextWeek: 'dddd [alle] LT',
14298
- lastDay: '[Ieri alle] LT',
14299
- lastWeek: function () {
14300
- switch (this.day()) {
14301
- case 0:
14302
- return '[la scorsa] dddd [alle] LT';
14303
- default:
14304
- return '[lo scorso] dddd [alle] LT';
14305
- }
14306
- },
14307
- sameElse: 'L'
14308
- },
14309
- relativeTime : {
14310
- future : function (s) {
14311
- return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
14312
- },
14313
- past : '%s fa',
14314
- s : 'alcuni secondi',
14315
- ss : '%d secondi',
14316
- m : 'un minuto',
14317
- mm : '%d minuti',
14318
- h : 'un\'ora',
14319
- hh : '%d ore',
14320
- d : 'un giorno',
14321
- dd : '%d giorni',
14322
- M : 'un mese',
14323
- MM : '%d mesi',
14324
- y : 'un anno',
14325
- yy : '%d anni'
14326
- },
14327
- dayOfMonthOrdinalParse : /\d{1,2}º/,
14328
- ordinal: '%dº',
14329
- week : {
14330
- dow : 1, // Monday is the first day of the week.
14331
- doy : 4 // The week that contains Jan 4th is the first week of the year.
14332
- }
14333
- });
14334
-
14335
- return it;
14336
-
14337
- })));
14338
-
14339
-
14340
- /***/ }),
14341
-
14342
- /***/ "./node_modules/moment/locale/ja.js":
14343
- /*!******************************************!*\
14344
- !*** ./node_modules/moment/locale/ja.js ***!
14345
- \******************************************/
14346
- /*! no static exports found */
14347
- /***/ (function(module, exports, __webpack_require__) {
14348
-
14349
- //! moment.js locale configuration
14350
-
14351
- ;(function (global, factory) {
14352
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14353
- undefined
14354
- }(this, (function (moment) { 'use strict';
14355
-
14356
-
14357
- var ja = moment.defineLocale('ja', {
14358
- months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
14359
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
14360
- weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
14361
- weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
14362
- weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
14363
- longDateFormat : {
14364
- LT : 'HH:mm',
14365
- LTS : 'HH:mm:ss',
14366
- L : 'YYYY/MM/DD',
14367
- LL : 'YYYY年M月D日',
14368
- LLL : 'YYYY年M月D日 HH:mm',
14369
- LLLL : 'YYYY年M月D日 HH:mm dddd',
14370
- l : 'YYYY/MM/DD',
14371
- ll : 'YYYY年M月D日',
14372
- lll : 'YYYY年M月D日 HH:mm',
14373
- llll : 'YYYY年M月D日 HH:mm dddd'
14374
- },
14375
- meridiemParse: /午前|午後/i,
14376
- isPM : function (input) {
14377
- return input === '午後';
14378
- },
14379
- meridiem : function (hour, minute, isLower) {
14380
- if (hour < 12) {
14381
- return '午前';
14382
- } else {
14383
- return '午後';
14384
- }
14385
- },
14386
- calendar : {
14387
- sameDay : '[今日] LT',
14388
- nextDay : '[明日] LT',
14389
- nextWeek : '[来週]dddd LT',
14390
- lastDay : '[昨日] LT',
14391
- lastWeek : '[前週]dddd LT',
14392
- sameElse : 'L'
14393
- },
14394
- dayOfMonthOrdinalParse : /\d{1,2}日/,
14395
- ordinal : function (number, period) {
14396
- switch (period) {
14397
- case 'd':
14398
- case 'D':
14399
- case 'DDD':
14400
- return number + '日';
14401
- default:
14402
- return number;
14403
- }
14404
- },
14405
- relativeTime : {
14406
- future : '%s後',
14407
- past : '%s前',
14408
- s : '数秒',
14409
- ss : '%d秒',
14410
- m : '1分',
14411
- mm : '%d分',
14412
- h : '1時間',
14413
- hh : '%d時間',
14414
- d : '1日',
14415
- dd : '%d日',
14416
- M : '1ヶ月',
14417
- MM : '%dヶ月',
14418
- y : '1年',
14419
- yy : '%d年'
14420
- }
14421
- });
14422
-
14423
- return ja;
14424
-
14425
- })));
14426
-
14427
-
14428
- /***/ }),
14429
-
14430
- /***/ "./node_modules/moment/locale/jv.js":
14431
- /*!******************************************!*\
14432
- !*** ./node_modules/moment/locale/jv.js ***!
14433
- \******************************************/
14434
- /*! no static exports found */
14435
- /***/ (function(module, exports, __webpack_require__) {
14436
-
14437
- //! moment.js locale configuration
14438
-
14439
- ;(function (global, factory) {
14440
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14441
- undefined
14442
- }(this, (function (moment) { 'use strict';
14443
-
14444
-
14445
- var jv = moment.defineLocale('jv', {
14446
- months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
14447
- monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
14448
- weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
14449
- weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
14450
- weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
14451
- longDateFormat : {
14452
- LT : 'HH.mm',
14453
- LTS : 'HH.mm.ss',
14454
- L : 'DD/MM/YYYY',
14455
- LL : 'D MMMM YYYY',
14456
- LLL : 'D MMMM YYYY [pukul] HH.mm',
14457
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
14458
- },
14459
- meridiemParse: /enjing|siyang|sonten|ndalu/,
14460
- meridiemHour : function (hour, meridiem) {
14461
- if (hour === 12) {
14462
- hour = 0;
14463
- }
14464
- if (meridiem === 'enjing') {
14465
- return hour;
14466
- } else if (meridiem === 'siyang') {
14467
- return hour >= 11 ? hour : hour + 12;
14468
- } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
14469
- return hour + 12;
14470
- }
14471
- },
14472
- meridiem : function (hours, minutes, isLower) {
14473
- if (hours < 11) {
14474
- return 'enjing';
14475
- } else if (hours < 15) {
14476
- return 'siyang';
14477
- } else if (hours < 19) {
14478
- return 'sonten';
14479
- } else {
14480
- return 'ndalu';
14481
- }
14482
- },
14483
- calendar : {
14484
- sameDay : '[Dinten puniko pukul] LT',
14485
- nextDay : '[Mbenjang pukul] LT',
14486
- nextWeek : 'dddd [pukul] LT',
14487
- lastDay : '[Kala wingi pukul] LT',
14488
- lastWeek : 'dddd [kepengker pukul] LT',
14489
- sameElse : 'L'
14490
- },
14491
- relativeTime : {
14492
- future : 'wonten ing %s',
14493
- past : '%s ingkang kepengker',
14494
- s : 'sawetawis detik',
14495
- ss : '%d detik',
14496
- m : 'setunggal menit',
14497
- mm : '%d menit',
14498
- h : 'setunggal jam',
14499
- hh : '%d jam',
14500
- d : 'sedinten',
14501
- dd : '%d dinten',
14502
- M : 'sewulan',
14503
- MM : '%d wulan',
14504
- y : 'setaun',
14505
- yy : '%d taun'
14506
- },
14507
- week : {
14508
- dow : 1, // Monday is the first day of the week.
14509
- doy : 7 // The week that contains Jan 1st is the first week of the year.
14510
- }
14511
- });
14512
-
14513
- return jv;
14514
-
14515
- })));
14516
-
14517
-
14518
- /***/ }),
14519
-
14520
- /***/ "./node_modules/moment/locale/ka.js":
14521
- /*!******************************************!*\
14522
- !*** ./node_modules/moment/locale/ka.js ***!
14523
- \******************************************/
14524
- /*! no static exports found */
14525
- /***/ (function(module, exports, __webpack_require__) {
14526
-
14527
- //! moment.js locale configuration
14528
-
14529
- ;(function (global, factory) {
14530
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14531
- undefined
14532
- }(this, (function (moment) { 'use strict';
14533
-
14534
-
14535
- var ka = moment.defineLocale('ka', {
14536
- months : {
14537
- standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
14538
- format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
14539
- },
14540
- monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
14541
- weekdays : {
14542
- standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
14543
- format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
14544
- isFormat: /(წინა|შემდეგ)/
14545
- },
14546
- weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
14547
- weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
14548
- longDateFormat : {
14549
- LT : 'h:mm A',
14550
- LTS : 'h:mm:ss A',
14551
- L : 'DD/MM/YYYY',
14552
- LL : 'D MMMM YYYY',
14553
- LLL : 'D MMMM YYYY h:mm A',
14554
- LLLL : 'dddd, D MMMM YYYY h:mm A'
14555
- },
14556
- calendar : {
14557
- sameDay : '[დღეს] LT[-ზე]',
14558
- nextDay : '[ხვალ] LT[-ზე]',
14559
- lastDay : '[გუშინ] LT[-ზე]',
14560
- nextWeek : '[შემდეგ] dddd LT[-ზე]',
14561
- lastWeek : '[წინა] dddd LT-ზე',
14562
- sameElse : 'L'
14563
- },
14564
- relativeTime : {
14565
- future : function (s) {
14566
- return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
14567
- s.replace(/ი$/, 'ში') :
14568
- s + 'ში';
14569
- },
14570
- past : function (s) {
14571
- if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
14572
- return s.replace(/(ი|ე)$/, 'ის უკან');
14573
- }
14574
- if ((/წელი/).test(s)) {
14575
- return s.replace(/წელი$/, 'წლის უკან');
14576
- }
14577
- },
14578
- s : 'რამდენიმე წამი',
14579
- ss : '%d წამი',
14580
- m : 'წუთი',
14581
- mm : '%d წუთი',
14582
- h : 'საათი',
14583
- hh : '%d საათი',
14584
- d : 'დღე',
14585
- dd : '%d დღე',
14586
- M : 'თვე',
14587
- MM : '%d თვე',
14588
- y : 'წელი',
14589
- yy : '%d წელი'
14590
- },
14591
- dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
14592
- ordinal : function (number) {
14593
- if (number === 0) {
14594
- return number;
14595
- }
14596
- if (number === 1) {
14597
- return number + '-ლი';
14598
- }
14599
- if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
14600
- return 'მე-' + number;
14601
- }
14602
- return number + '-ე';
14603
- },
14604
- week : {
14605
- dow : 1,
14606
- doy : 7
14607
- }
14608
- });
14609
-
14610
- return ka;
14611
-
14612
- })));
14613
-
14614
-
14615
- /***/ }),
14616
-
14617
- /***/ "./node_modules/moment/locale/kk.js":
14618
- /*!******************************************!*\
14619
- !*** ./node_modules/moment/locale/kk.js ***!
14620
- \******************************************/
14621
- /*! no static exports found */
14622
- /***/ (function(module, exports, __webpack_require__) {
14623
-
14624
- //! moment.js locale configuration
14625
-
14626
- ;(function (global, factory) {
14627
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14628
- undefined
14629
- }(this, (function (moment) { 'use strict';
14630
-
14631
-
14632
- var suffixes = {
14633
- 0: '-ші',
14634
- 1: '-ші',
14635
- 2: '-ші',
14636
- 3: '-ші',
14637
- 4: '-ші',
14638
- 5: '-ші',
14639
- 6: '-шы',
14640
- 7: '-ші',
14641
- 8: '-ші',
14642
- 9: '-шы',
14643
- 10: '-шы',
14644
- 20: '-шы',
14645
- 30: '-шы',
14646
- 40: '-шы',
14647
- 50: '-ші',
14648
- 60: '-шы',
14649
- 70: '-ші',
14650
- 80: '-ші',
14651
- 90: '-шы',
14652
- 100: '-ші'
14653
- };
14654
-
14655
- var kk = moment.defineLocale('kk', {
14656
- months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
14657
- monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
14658
- weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
14659
- weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
14660
- weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
14661
- longDateFormat : {
14662
- LT : 'HH:mm',
14663
- LTS : 'HH:mm:ss',
14664
- L : 'DD.MM.YYYY',
14665
- LL : 'D MMMM YYYY',
14666
- LLL : 'D MMMM YYYY HH:mm',
14667
- LLLL : 'dddd, D MMMM YYYY HH:mm'
14668
- },
14669
- calendar : {
14670
- sameDay : '[Бүгін сағат] LT',
14671
- nextDay : '[Ертең сағат] LT',
14672
- nextWeek : 'dddd [сағат] LT',
14673
- lastDay : '[Кеше сағат] LT',
14674
- lastWeek : '[Өткен аптаның] dddd [сағат] LT',
14675
- sameElse : 'L'
14676
- },
14677
- relativeTime : {
14678
- future : '%s ішінде',
14679
- past : '%s бұрын',
14680
- s : 'бірнеше секунд',
14681
- ss : '%d секунд',
14682
- m : 'бір минут',
14683
- mm : '%d минут',
14684
- h : 'бір сағат',
14685
- hh : '%d сағат',
14686
- d : 'бір күн',
14687
- dd : '%d күн',
14688
- M : 'бір ай',
14689
- MM : '%d ай',
14690
- y : 'бір жыл',
14691
- yy : '%d жыл'
14692
- },
14693
- dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
14694
- ordinal : function (number) {
14695
- var a = number % 10,
14696
- b = number >= 100 ? 100 : null;
14697
- return number + (suffixes[number] || suffixes[a] || suffixes[b]);
14698
- },
14699
- week : {
14700
- dow : 1, // Monday is the first day of the week.
14701
- doy : 7 // The week that contains Jan 1st is the first week of the year.
14702
- }
14703
- });
14704
-
14705
- return kk;
14706
-
14707
- })));
14708
-
14709
-
14710
- /***/ }),
14711
-
14712
- /***/ "./node_modules/moment/locale/km.js":
14713
- /*!******************************************!*\
14714
- !*** ./node_modules/moment/locale/km.js ***!
14715
- \******************************************/
14716
- /*! no static exports found */
14717
- /***/ (function(module, exports, __webpack_require__) {
14718
-
14719
- //! moment.js locale configuration
14720
-
14721
- ;(function (global, factory) {
14722
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14723
- undefined
14724
- }(this, (function (moment) { 'use strict';
14725
-
14726
-
14727
- var km = moment.defineLocale('km', {
14728
- months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
14729
- monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
14730
- weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
14731
- weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
14732
- weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
14733
- longDateFormat: {
14734
- LT: 'HH:mm',
14735
- LTS : 'HH:mm:ss',
14736
- L: 'DD/MM/YYYY',
14737
- LL: 'D MMMM YYYY',
14738
- LLL: 'D MMMM YYYY HH:mm',
14739
- LLLL: 'dddd, D MMMM YYYY HH:mm'
14740
- },
14741
- calendar: {
14742
- sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
14743
- nextDay: '[ស្អែក ម៉ោង] LT',
14744
- nextWeek: 'dddd [ម៉ោង] LT',
14745
- lastDay: '[ម្សិលមិញ ម៉ោង] LT',
14746
- lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
14747
- sameElse: 'L'
14748
- },
14749
- relativeTime: {
14750
- future: '%sទៀត',
14751
- past: '%sមុន',
14752
- s: 'ប៉ុន្មានវិនាទី',
14753
- ss: '%d វិនាទី',
14754
- m: 'មួយនាទី',
14755
- mm: '%d នាទី',
14756
- h: 'មួយម៉ោង',
14757
- hh: '%d ម៉ោង',
14758
- d: 'មួយថ្ងៃ',
14759
- dd: '%d ថ្ងៃ',
14760
- M: 'មួយខែ',
14761
- MM: '%d ខែ',
14762
- y: 'មួយឆ្នាំ',
14763
- yy: '%d ឆ្នាំ'
14764
- },
14765
- week: {
14766
- dow: 1, // Monday is the first day of the week.
14767
- doy: 4 // The week that contains Jan 4th is the first week of the year.
14768
- }
14769
- });
14770
-
14771
- return km;
14772
-
14773
- })));
14774
-
14775
-
14776
- /***/ }),
14777
-
14778
- /***/ "./node_modules/moment/locale/kn.js":
14779
- /*!******************************************!*\
14780
- !*** ./node_modules/moment/locale/kn.js ***!
14781
- \******************************************/
14782
- /*! no static exports found */
14783
- /***/ (function(module, exports, __webpack_require__) {
14784
-
14785
- //! moment.js locale configuration
14786
-
14787
- ;(function (global, factory) {
14788
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14789
- undefined
14790
- }(this, (function (moment) { 'use strict';
14791
-
14792
-
14793
- var symbolMap = {
14794
- '1': '೧',
14795
- '2': '೨',
14796
- '3': '೩',
14797
- '4': '೪',
14798
- '5': '೫',
14799
- '6': '೬',
14800
- '7': '೭',
14801
- '8': '೮',
14802
- '9': '೯',
14803
- '0': '೦'
14804
- },
14805
- numberMap = {
14806
- '೧': '1',
14807
- '೨': '2',
14808
- '೩': '3',
14809
- '೪': '4',
14810
- '೫': '5',
14811
- '೬': '6',
14812
- '೭': '7',
14813
- '೮': '8',
14814
- '೯': '9',
14815
- '೦': '0'
14816
- };
14817
-
14818
- var kn = moment.defineLocale('kn', {
14819
- months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
14820
- monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
14821
- monthsParseExact: true,
14822
- weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
14823
- weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
14824
- weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
14825
- longDateFormat : {
14826
- LT : 'A h:mm',
14827
- LTS : 'A h:mm:ss',
14828
- L : 'DD/MM/YYYY',
14829
- LL : 'D MMMM YYYY',
14830
- LLL : 'D MMMM YYYY, A h:mm',
14831
- LLLL : 'dddd, D MMMM YYYY, A h:mm'
14832
- },
14833
- calendar : {
14834
- sameDay : '[ಇಂದು] LT',
14835
- nextDay : '[ನಾಳೆ] LT',
14836
- nextWeek : 'dddd, LT',
14837
- lastDay : '[ನಿನ್ನೆ] LT',
14838
- lastWeek : '[ಕೊನೆಯ] dddd, LT',
14839
- sameElse : 'L'
14840
- },
14841
- relativeTime : {
14842
- future : '%s ನಂತರ',
14843
- past : '%s ಹಿಂದೆ',
14844
- s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
14845
- ss : '%d ಸೆಕೆಂಡುಗಳು',
14846
- m : 'ಒಂದು ನಿಮಿಷ',
14847
- mm : '%d ನಿಮಿಷ',
14848
- h : 'ಒಂದು ಗಂಟೆ',
14849
- hh : '%d ಗಂಟೆ',
14850
- d : 'ಒಂದು ದಿನ',
14851
- dd : '%d ದಿನ',
14852
- M : 'ಒಂದು ತಿಂಗಳು',
14853
- MM : '%d ತಿಂಗಳು',
14854
- y : 'ಒಂದು ವರ್ಷ',
14855
- yy : '%d ವರ್ಷ'
14856
- },
14857
- preparse: function (string) {
14858
- return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
14859
- return numberMap[match];
14860
- });
14861
- },
14862
- postformat: function (string) {
14863
- return string.replace(/\d/g, function (match) {
14864
- return symbolMap[match];
14865
- });
14866
- },
14867
- meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
14868
- meridiemHour : function (hour, meridiem) {
14869
- if (hour === 12) {
14870
- hour = 0;
14871
- }
14872
- if (meridiem === 'ರಾತ್ರಿ') {
14873
- return hour < 4 ? hour : hour + 12;
14874
- } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
14875
- return hour;
14876
- } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
14877
- return hour >= 10 ? hour : hour + 12;
14878
- } else if (meridiem === 'ಸಂಜೆ') {
14879
- return hour + 12;
14880
- }
14881
- },
14882
- meridiem : function (hour, minute, isLower) {
14883
- if (hour < 4) {
14884
- return 'ರಾತ್ರಿ';
14885
- } else if (hour < 10) {
14886
- return 'ಬೆಳಿಗ್ಗೆ';
14887
- } else if (hour < 17) {
14888
- return 'ಮಧ್ಯಾಹ್ನ';
14889
- } else if (hour < 20) {
14890
- return 'ಸಂಜೆ';
14891
- } else {
14892
- return 'ರಾತ್ರಿ';
14893
- }
14894
- },
14895
- dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
14896
- ordinal : function (number) {
14897
- return number + 'ನೇ';
14898
- },
14899
- week : {
14900
- dow : 0, // Sunday is the first day of the week.
14901
- doy : 6 // The week that contains Jan 1st is the first week of the year.
14902
- }
14903
- });
14904
-
14905
- return kn;
14906
-
14907
- })));
14908
-
14909
-
14910
- /***/ }),
14911
-
14912
- /***/ "./node_modules/moment/locale/ko.js":
14913
- /*!******************************************!*\
14914
- !*** ./node_modules/moment/locale/ko.js ***!
14915
- \******************************************/
14916
- /*! no static exports found */
14917
- /***/ (function(module, exports, __webpack_require__) {
14918
-
14919
- //! moment.js locale configuration
14920
-
14921
- ;(function (global, factory) {
14922
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14923
- undefined
14924
- }(this, (function (moment) { 'use strict';
14925
-
14926
-
14927
- var ko = moment.defineLocale('ko', {
14928
- months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
14929
- monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
14930
- weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
14931
- weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
14932
- weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
14933
- longDateFormat : {
14934
- LT : 'A h:mm',
14935
- LTS : 'A h:mm:ss',
14936
- L : 'YYYY.MM.DD.',
14937
- LL : 'YYYY년 MMMM D일',
14938
- LLL : 'YYYY년 MMMM D일 A h:mm',
14939
- LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
14940
- l : 'YYYY.MM.DD.',
14941
- ll : 'YYYY년 MMMM D일',
14942
- lll : 'YYYY년 MMMM D일 A h:mm',
14943
- llll : 'YYYY년 MMMM D일 dddd A h:mm'
14944
- },
14945
- calendar : {
14946
- sameDay : '오늘 LT',
14947
- nextDay : '내일 LT',
14948
- nextWeek : 'dddd LT',
14949
- lastDay : '어제 LT',
14950
- lastWeek : '지난주 dddd LT',
14951
- sameElse : 'L'
14952
- },
14953
- relativeTime : {
14954
- future : '%s 후',
14955
- past : '%s 전',
14956
- s : '몇 초',
14957
- ss : '%d초',
14958
- m : '1분',
14959
- mm : '%d분',
14960
- h : '한 시간',
14961
- hh : '%d시간',
14962
- d : '하루',
14963
- dd : '%d일',
14964
- M : '한 달',
14965
- MM : '%d달',
14966
- y : '일 년',
14967
- yy : '%d년'
14968
- },
14969
- dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
14970
- ordinal : function (number, period) {
14971
- switch (period) {
14972
- case 'd':
14973
- case 'D':
14974
- case 'DDD':
14975
- return number + '일';
14976
- case 'M':
14977
- return number + '월';
14978
- case 'w':
14979
- case 'W':
14980
- return number + '주';
14981
- default:
14982
- return number;
14983
- }
14984
- },
14985
- meridiemParse : /오전|오후/,
14986
- isPM : function (token) {
14987
- return token === '오후';
14988
- },
14989
- meridiem : function (hour, minute, isUpper) {
14990
- return hour < 12 ? '오전' : '오후';
14991
- }
14992
- });
14993
-
14994
- return ko;
14995
-
14996
- })));
14997
-
14998
-
14999
- /***/ }),
15000
-
15001
- /***/ "./node_modules/moment/locale/ky.js":
15002
- /*!******************************************!*\
15003
- !*** ./node_modules/moment/locale/ky.js ***!
15004
- \******************************************/
15005
- /*! no static exports found */
15006
- /***/ (function(module, exports, __webpack_require__) {
15007
-
15008
- //! moment.js locale configuration
15009
-
15010
- ;(function (global, factory) {
15011
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15012
- undefined
15013
- }(this, (function (moment) { 'use strict';
15014
-
15015
-
15016
- var suffixes = {
15017
- 0: '-чү',
15018
- 1: '-чи',
15019
- 2: '-чи',
15020
- 3: '-чү',
15021
- 4: '-чү',
15022
- 5: '-чи',
15023
- 6: '-чы',
15024
- 7: '-чи',
15025
- 8: '-чи',
15026
- 9: '-чу',
15027
- 10: '-чу',
15028
- 20: '-чы',
15029
- 30: '-чу',
15030
- 40: '-чы',
15031
- 50: '-чү',
15032
- 60: '-чы',
15033
- 70: '-чи',
15034
- 80: '-чи',
15035
- 90: '-чу',
15036
- 100: '-чү'
15037
- };
15038
-
15039
- var ky = moment.defineLocale('ky', {
15040
- months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
15041
- monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
15042
- weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
15043
- weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
15044
- weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
15045
- longDateFormat : {
15046
- LT : 'HH:mm',
15047
- LTS : 'HH:mm:ss',
15048
- L : 'DD.MM.YYYY',
15049
- LL : 'D MMMM YYYY',
15050
- LLL : 'D MMMM YYYY HH:mm',
15051
- LLLL : 'dddd, D MMMM YYYY HH:mm'
15052
- },
15053
- calendar : {
15054
- sameDay : '[Бүгүн саат] LT',
15055
- nextDay : '[Эртең саат] LT',
15056
- nextWeek : 'dddd [саат] LT',
15057
- lastDay : '[Кече саат] LT',
15058
- lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
15059
- sameElse : 'L'
15060
- },
15061
- relativeTime : {
15062
- future : '%s ичинде',
15063
- past : '%s мурун',
15064
- s : 'бирнече секунд',
15065
- ss : '%d секунд',
15066
- m : 'бир мүнөт',
15067
- mm : '%d мүнөт',
15068
- h : 'бир саат',
15069
- hh : '%d саат',
15070
- d : 'бир күн',
15071
- dd : '%d күн',
15072
- M : 'бир ай',
15073
- MM : '%d ай',
15074
- y : 'бир жыл',
15075
- yy : '%d жыл'
15076
- },
15077
- dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
15078
- ordinal : function (number) {
15079
- var a = number % 10,
15080
- b = number >= 100 ? 100 : null;
15081
- return number + (suffixes[number] || suffixes[a] || suffixes[b]);
15082
- },
15083
- week : {
15084
- dow : 1, // Monday is the first day of the week.
15085
- doy : 7 // The week that contains Jan 1st is the first week of the year.
15086
- }
15087
- });
15088
-
15089
- return ky;
15090
-
15091
- })));
15092
-
15093
-
15094
- /***/ }),
15095
-
15096
- /***/ "./node_modules/moment/locale/lb.js":
15097
- /*!******************************************!*\
15098
- !*** ./node_modules/moment/locale/lb.js ***!
15099
- \******************************************/
15100
- /*! no static exports found */
15101
- /***/ (function(module, exports, __webpack_require__) {
15102
-
15103
- //! moment.js locale configuration
15104
-
15105
- ;(function (global, factory) {
15106
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15107
- undefined
15108
- }(this, (function (moment) { 'use strict';
15109
-
15110
-
15111
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
15112
- var format = {
15113
- 'm': ['eng Minutt', 'enger Minutt'],
15114
- 'h': ['eng Stonn', 'enger Stonn'],
15115
- 'd': ['een Dag', 'engem Dag'],
15116
- 'M': ['ee Mount', 'engem Mount'],
15117
- 'y': ['ee Joer', 'engem Joer']
15118
- };
15119
- return withoutSuffix ? format[key][0] : format[key][1];
15120
- }
15121
- function processFutureTime(string) {
15122
- var number = string.substr(0, string.indexOf(' '));
15123
- if (eifelerRegelAppliesToNumber(number)) {
15124
- return 'a ' + string;
15125
- }
15126
- return 'an ' + string;
15127
- }
15128
- function processPastTime(string) {
15129
- var number = string.substr(0, string.indexOf(' '));
15130
- if (eifelerRegelAppliesToNumber(number)) {
15131
- return 'viru ' + string;
15132
- }
15133
- return 'virun ' + string;
15134
- }
15135
- /**
15136
- * Returns true if the word before the given number loses the '-n' ending.
15137
- * e.g. 'an 10 Deeg' but 'a 5 Deeg'
15138
- *
15139
- * @param number {integer}
15140
- * @returns {boolean}
15141
- */
15142
- function eifelerRegelAppliesToNumber(number) {
15143
- number = parseInt(number, 10);
15144
- if (isNaN(number)) {
15145
- return false;
15146
- }
15147
- if (number < 0) {
15148
- // Negative Number --> always true
15149
- return true;
15150
- } else if (number < 10) {
15151
- // Only 1 digit
15152
- if (4 <= number && number <= 7) {
15153
- return true;
15154
- }
15155
- return false;
15156
- } else if (number < 100) {
15157
- // 2 digits
15158
- var lastDigit = number % 10, firstDigit = number / 10;
15159
- if (lastDigit === 0) {
15160
- return eifelerRegelAppliesToNumber(firstDigit);
15161
- }
15162
- return eifelerRegelAppliesToNumber(lastDigit);
15163
- } else if (number < 10000) {
15164
- // 3 or 4 digits --> recursively check first digit
15165
- while (number >= 10) {
15166
- number = number / 10;
15167
- }
15168
- return eifelerRegelAppliesToNumber(number);
15169
- } else {
15170
- // Anything larger than 4 digits: recursively check first n-3 digits
15171
- number = number / 1000;
15172
- return eifelerRegelAppliesToNumber(number);
15173
- }
15174
- }
15175
-
15176
- var lb = moment.defineLocale('lb', {
15177
- months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
15178
- monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
15179
- monthsParseExact : true,
15180
- weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
15181
- weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
15182
- weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
15183
- weekdaysParseExact : true,
15184
- longDateFormat: {
15185
- LT: 'H:mm [Auer]',
15186
- LTS: 'H:mm:ss [Auer]',
15187
- L: 'DD.MM.YYYY',
15188
- LL: 'D. MMMM YYYY',
15189
- LLL: 'D. MMMM YYYY H:mm [Auer]',
15190
- LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
15191
- },
15192
- calendar: {
15193
- sameDay: '[Haut um] LT',
15194
- sameElse: 'L',
15195
- nextDay: '[Muer um] LT',
15196
- nextWeek: 'dddd [um] LT',
15197
- lastDay: '[Gëschter um] LT',
15198
- lastWeek: function () {
15199
- // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
15200
- switch (this.day()) {
15201
- case 2:
15202
- case 4:
15203
- return '[Leschten] dddd [um] LT';
15204
- default:
15205
- return '[Leschte] dddd [um] LT';
15206
- }
15207
- }
15208
- },
15209
- relativeTime : {
15210
- future : processFutureTime,
15211
- past : processPastTime,
15212
- s : 'e puer Sekonnen',
15213
- ss : '%d Sekonnen',
15214
- m : processRelativeTime,
15215
- mm : '%d Minutten',
15216
- h : processRelativeTime,
15217
- hh : '%d Stonnen',
15218
- d : processRelativeTime,
15219
- dd : '%d Deeg',
15220
- M : processRelativeTime,
15221
- MM : '%d Méint',
15222
- y : processRelativeTime,
15223
- yy : '%d Joer'
15224
- },
15225
- dayOfMonthOrdinalParse: /\d{1,2}\./,
15226
- ordinal: '%d.',
15227
- week: {
15228
- dow: 1, // Monday is the first day of the week.
15229
- doy: 4 // The week that contains Jan 4th is the first week of the year.
15230
- }
15231
- });
15232
-
15233
- return lb;
15234
-
15235
- })));
15236
-
15237
-
15238
- /***/ }),
15239
-
15240
- /***/ "./node_modules/moment/locale/lo.js":
15241
- /*!******************************************!*\
15242
- !*** ./node_modules/moment/locale/lo.js ***!
15243
- \******************************************/
15244
- /*! no static exports found */
15245
- /***/ (function(module, exports, __webpack_require__) {
15246
-
15247
- //! moment.js locale configuration
15248
-
15249
- ;(function (global, factory) {
15250
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15251
- undefined
15252
- }(this, (function (moment) { 'use strict';
15253
-
15254
-
15255
- var lo = moment.defineLocale('lo', {
15256
- months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15257
- monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15258
- weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
15259
- weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
15260
- weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
15261
- weekdaysParseExact : true,
15262
- longDateFormat : {
15263
- LT : 'HH:mm',
15264
- LTS : 'HH:mm:ss',
15265
- L : 'DD/MM/YYYY',
15266
- LL : 'D MMMM YYYY',
15267
- LLL : 'D MMMM YYYY HH:mm',
15268
- LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
15269
- },
15270
- meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
15271
- isPM: function (input) {
15272
- return input === 'ຕອນແລງ';
15273
- },
15274
- meridiem : function (hour, minute, isLower) {
15275
- if (hour < 12) {
15276
- return 'ຕອນເຊົ້າ';
15277
- } else {
15278
- return 'ຕອນແລງ';
15279
- }
15280
- },
15281
- calendar : {
15282
- sameDay : '[ມື້ນີ້ເວລາ] LT',
15283
- nextDay : '[ມື້ອື່ນເວລາ] LT',
15284
- nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
15285
- lastDay : '[ມື້ວານນີ້ເວລາ] LT',
15286
- lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
15287
- sameElse : 'L'
15288
- },
15289
- relativeTime : {
15290
- future : 'ອີກ %s',
15291
- past : '%sຜ່ານມາ',
15292
- s : 'ບໍ່ເທົ່າໃດວິນາທີ',
15293
- ss : '%d ວິນາທີ' ,
15294
- m : '1 ນາທີ',
15295
- mm : '%d ນາທີ',
15296
- h : '1 ຊົ່ວໂມງ',
15297
- hh : '%d ຊົ່ວໂມງ',
15298
- d : '1 ມື້',
15299
- dd : '%d ມື້',
15300
- M : '1 ເດືອນ',
15301
- MM : '%d ເດືອນ',
15302
- y : '1 ປີ',
15303
- yy : '%d ປີ'
15304
- },
15305
- dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
15306
- ordinal : function (number) {
15307
- return 'ທີ່' + number;
15308
- }
15309
- });
15310
-
15311
- return lo;
15312
-
15313
- })));
15314
-
15315
-
15316
- /***/ }),
15317
-
15318
- /***/ "./node_modules/moment/locale/lt.js":
15319
- /*!******************************************!*\
15320
- !*** ./node_modules/moment/locale/lt.js ***!
15321
- \******************************************/
15322
- /*! no static exports found */
15323
- /***/ (function(module, exports, __webpack_require__) {
15324
-
15325
- //! moment.js locale configuration
15326
-
15327
- ;(function (global, factory) {
15328
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15329
- undefined
15330
- }(this, (function (moment) { 'use strict';
15331
-
15332
-
15333
- var units = {
15334
- 'ss' : 'sekundė_sekundžių_sekundes',
15335
- 'm' : 'minutė_minutės_minutę',
15336
- 'mm': 'minutės_minučių_minutes',
15337
- 'h' : 'valanda_valandos_valandą',
15338
- 'hh': 'valandos_valandų_valandas',
15339
- 'd' : 'diena_dienos_dieną',
15340
- 'dd': 'dienos_dienų_dienas',
15341
- 'M' : 'mėnuo_mėnesio_mėnesį',
15342
- 'MM': 'mėnesiai_mėnesių_mėnesius',
15343
- 'y' : 'metai_metų_metus',
15344
- 'yy': 'metai_metų_metus'
15345
- };
15346
- function translateSeconds(number, withoutSuffix, key, isFuture) {
15347
- if (withoutSuffix) {
15348
- return 'kelios sekundės';
15349
- } else {
15350
- return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
15351
- }
15352
- }
15353
- function translateSingular(number, withoutSuffix, key, isFuture) {
15354
- return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
15355
- }
15356
- function special(number) {
15357
- return number % 10 === 0 || (number > 10 && number < 20);
15358
- }
15359
- function forms(key) {
15360
- return units[key].split('_');
15361
- }
15362
- function translate(number, withoutSuffix, key, isFuture) {
15363
- var result = number + ' ';
15364
- if (number === 1) {
15365
- return result + translateSingular(number, withoutSuffix, key[0], isFuture);
15366
- } else if (withoutSuffix) {
15367
- return result + (special(number) ? forms(key)[1] : forms(key)[0]);
15368
- } else {
15369
- if (isFuture) {
15370
- return result + forms(key)[1];
15371
- } else {
15372
- return result + (special(number) ? forms(key)[1] : forms(key)[2]);
15373
- }
15374
- }
15375
- }
15376
- var lt = moment.defineLocale('lt', {
15377
- months : {
15378
- format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
15379
- standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
15380
- isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
15381
- },
15382
- monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
15383
- weekdays : {
15384
- format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
15385
- standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
15386
- isFormat: /dddd HH:mm/
15387
- },
15388
- weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
15389
- weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
15390
- weekdaysParseExact : true,
15391
- longDateFormat : {
15392
- LT : 'HH:mm',
15393
- LTS : 'HH:mm:ss',
15394
- L : 'YYYY-MM-DD',
15395
- LL : 'YYYY [m.] MMMM D [d.]',
15396
- LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
15397
- LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
15398
- l : 'YYYY-MM-DD',
15399
- ll : 'YYYY [m.] MMMM D [d.]',
15400
- lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
15401
- llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
15402
- },
15403
- calendar : {
15404
- sameDay : '[Šiandien] LT',
15405
- nextDay : '[Rytoj] LT',
15406
- nextWeek : 'dddd LT',
15407
- lastDay : '[Vakar] LT',
15408
- lastWeek : '[Praėjusį] dddd LT',
15409
- sameElse : 'L'
15410
- },
15411
- relativeTime : {
15412
- future : 'po %s',
15413
- past : 'prieš %s',
15414
- s : translateSeconds,
15415
- ss : translate,
15416
- m : translateSingular,
15417
- mm : translate,
15418
- h : translateSingular,
15419
- hh : translate,
15420
- d : translateSingular,
15421
- dd : translate,
15422
- M : translateSingular,
15423
- MM : translate,
15424
- y : translateSingular,
15425
- yy : translate
15426
- },
15427
- dayOfMonthOrdinalParse: /\d{1,2}-oji/,
15428
- ordinal : function (number) {
15429
- return number + '-oji';
15430
- },
15431
- week : {
15432
- dow : 1, // Monday is the first day of the week.
15433
- doy : 4 // The week that contains Jan 4th is the first week of the year.
15434
- }
15435
- });
15436
-
15437
- return lt;
15438
-
15439
- })));
15440
-
15441
-
15442
- /***/ }),
15443
-
15444
- /***/ "./node_modules/moment/locale/lv.js":
15445
- /*!******************************************!*\
15446
- !*** ./node_modules/moment/locale/lv.js ***!
15447
- \******************************************/
15448
- /*! no static exports found */
15449
- /***/ (function(module, exports, __webpack_require__) {
15450
-
15451
- //! moment.js locale configuration
15452
-
15453
- ;(function (global, factory) {
15454
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15455
- undefined
15456
- }(this, (function (moment) { 'use strict';
15457
-
15458
-
15459
- var units = {
15460
- 'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
15461
- 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
15462
- 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
15463
- 'h': 'stundas_stundām_stunda_stundas'.split('_'),
15464
- 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
15465
- 'd': 'dienas_dienām_diena_dienas'.split('_'),
15466
- 'dd': 'dienas_dienām_diena_dienas'.split('_'),
15467
- 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
15468
- 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
15469
- 'y': 'gada_gadiem_gads_gadi'.split('_'),
15470
- 'yy': 'gada_gadiem_gads_gadi'.split('_')
15471
- };
15472
- /**
15473
- * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
15474
- */
15475
- function format(forms, number, withoutSuffix) {
15476
- if (withoutSuffix) {
15477
- // E.g. "21 minūte", "3 minūtes".
15478
- return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
15479
- } else {
15480
- // E.g. "21 minūtes" as in "pēc 21 minūtes".
15481
- // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
15482
- return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
15483
- }
15484
- }
15485
- function relativeTimeWithPlural(number, withoutSuffix, key) {
15486
- return number + ' ' + format(units[key], number, withoutSuffix);
15487
- }
15488
- function relativeTimeWithSingular(number, withoutSuffix, key) {
15489
- return format(units[key], number, withoutSuffix);
15490
- }
15491
- function relativeSeconds(number, withoutSuffix) {
15492
- return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
15493
- }
15494
-
15495
- var lv = moment.defineLocale('lv', {
15496
- months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
15497
- monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
15498
- weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
15499
- weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
15500
- weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
15501
- weekdaysParseExact : true,
15502
- longDateFormat : {
15503
- LT : 'HH:mm',
15504
- LTS : 'HH:mm:ss',
15505
- L : 'DD.MM.YYYY.',
15506
- LL : 'YYYY. [gada] D. MMMM',
15507
- LLL : 'YYYY. [gada] D. MMMM, HH:mm',
15508
- LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
15509
- },
15510
- calendar : {
15511
- sameDay : '[Šodien pulksten] LT',
15512
- nextDay : '[Rīt pulksten] LT',
15513
- nextWeek : 'dddd [pulksten] LT',
15514
- lastDay : '[Vakar pulksten] LT',
15515
- lastWeek : '[Pagājušā] dddd [pulksten] LT',
15516
- sameElse : 'L'
15517
- },
15518
- relativeTime : {
15519
- future : 'pēc %s',
15520
- past : 'pirms %s',
15521
- s : relativeSeconds,
15522
- ss : relativeTimeWithPlural,
15523
- m : relativeTimeWithSingular,
15524
- mm : relativeTimeWithPlural,
15525
- h : relativeTimeWithSingular,
15526
- hh : relativeTimeWithPlural,
15527
- d : relativeTimeWithSingular,
15528
- dd : relativeTimeWithPlural,
15529
- M : relativeTimeWithSingular,
15530
- MM : relativeTimeWithPlural,
15531
- y : relativeTimeWithSingular,
15532
- yy : relativeTimeWithPlural
15533
- },
15534
- dayOfMonthOrdinalParse: /\d{1,2}\./,
15535
- ordinal : '%d.',
15536
- week : {
15537
- dow : 1, // Monday is the first day of the week.
15538
- doy : 4 // The week that contains Jan 4th is the first week of the year.
15539
- }
15540
- });
15541
-
15542
- return lv;
15543
-
15544
- })));
15545
-
15546
-
15547
- /***/ }),
15548
-
15549
- /***/ "./node_modules/moment/locale/me.js":
15550
- /*!******************************************!*\
15551
- !*** ./node_modules/moment/locale/me.js ***!
15552
- \******************************************/
15553
- /*! no static exports found */
15554
- /***/ (function(module, exports, __webpack_require__) {
15555
-
15556
- //! moment.js locale configuration
15557
-
15558
- ;(function (global, factory) {
15559
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15560
- undefined
15561
- }(this, (function (moment) { 'use strict';
15562
-
15563
-
15564
- var translator = {
15565
- words: { //Different grammatical cases
15566
- ss: ['sekund', 'sekunda', 'sekundi'],
15567
- m: ['jedan minut', 'jednog minuta'],
15568
- mm: ['minut', 'minuta', 'minuta'],
15569
- h: ['jedan sat', 'jednog sata'],
15570
- hh: ['sat', 'sata', 'sati'],
15571
- dd: ['dan', 'dana', 'dana'],
15572
- MM: ['mjesec', 'mjeseca', 'mjeseci'],
15573
- yy: ['godina', 'godine', 'godina']
15574
- },
15575
- correctGrammaticalCase: function (number, wordKey) {
15576
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
15577
- },
15578
- translate: function (number, withoutSuffix, key) {
15579
- var wordKey = translator.words[key];
15580
- if (key.length === 1) {
15581
- return withoutSuffix ? wordKey[0] : wordKey[1];
15582
- } else {
15583
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
15584
- }
15585
- }
15586
- };
15587
-
15588
- var me = moment.defineLocale('me', {
15589
- months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
15590
- monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
15591
- monthsParseExact : true,
15592
- weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
15593
- weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
15594
- weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
15595
- weekdaysParseExact : true,
15596
- longDateFormat: {
15597
- LT: 'H:mm',
15598
- LTS : 'H:mm:ss',
15599
- L: 'DD.MM.YYYY',
15600
- LL: 'D. MMMM YYYY',
15601
- LLL: 'D. MMMM YYYY H:mm',
15602
- LLLL: 'dddd, D. MMMM YYYY H:mm'
15603
- },
15604
- calendar: {
15605
- sameDay: '[danas u] LT',
15606
- nextDay: '[sjutra u] LT',
15607
-
15608
- nextWeek: function () {
15609
- switch (this.day()) {
15610
- case 0:
15611
- return '[u] [nedjelju] [u] LT';
15612
- case 3:
15613
- return '[u] [srijedu] [u] LT';
15614
- case 6:
15615
- return '[u] [subotu] [u] LT';
15616
- case 1:
15617
- case 2:
15618
- case 4:
15619
- case 5:
15620
- return '[u] dddd [u] LT';
15621
- }
15622
- },
15623
- lastDay : '[juče u] LT',
15624
- lastWeek : function () {
15625
- var lastWeekDays = [
15626
- '[prošle] [nedjelje] [u] LT',
15627
- '[prošlog] [ponedjeljka] [u] LT',
15628
- '[prošlog] [utorka] [u] LT',
15629
- '[prošle] [srijede] [u] LT',
15630
- '[prošlog] [četvrtka] [u] LT',
15631
- '[prošlog] [petka] [u] LT',
15632
- '[prošle] [subote] [u] LT'
15633
- ];
15634
- return lastWeekDays[this.day()];
15635
- },
15636
- sameElse : 'L'
15637
- },
15638
- relativeTime : {
15639
- future : 'za %s',
15640
- past : 'prije %s',
15641
- s : 'nekoliko sekundi',
15642
- ss : translator.translate,
15643
- m : translator.translate,
15644
- mm : translator.translate,
15645
- h : translator.translate,
15646
- hh : translator.translate,
15647
- d : 'dan',
15648
- dd : translator.translate,
15649
- M : 'mjesec',
15650
- MM : translator.translate,
15651
- y : 'godinu',
15652
- yy : translator.translate
15653
- },
15654
- dayOfMonthOrdinalParse: /\d{1,2}\./,
15655
- ordinal : '%d.',
15656
- week : {
15657
- dow : 1, // Monday is the first day of the week.
15658
- doy : 7 // The week that contains Jan 1st is the first week of the year.
15659
- }
15660
- });
15661
-
15662
- return me;
15663
-
15664
- })));
15665
-
15666
-
15667
- /***/ }),
15668
-
15669
- /***/ "./node_modules/moment/locale/mi.js":
15670
- /*!******************************************!*\
15671
- !*** ./node_modules/moment/locale/mi.js ***!
15672
- \******************************************/
15673
- /*! no static exports found */
15674
- /***/ (function(module, exports, __webpack_require__) {
15675
-
15676
- //! moment.js locale configuration
15677
-
15678
- ;(function (global, factory) {
15679
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15680
- undefined
15681
- }(this, (function (moment) { 'use strict';
15682
-
15683
-
15684
- var mi = moment.defineLocale('mi', {
15685
- months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
15686
- monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
15687
- monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
15688
- monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
15689
- monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
15690
- monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
15691
- weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
15692
- weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
15693
- weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
15694
- longDateFormat: {
15695
- LT: 'HH:mm',
15696
- LTS: 'HH:mm:ss',
15697
- L: 'DD/MM/YYYY',
15698
- LL: 'D MMMM YYYY',
15699
- LLL: 'D MMMM YYYY [i] HH:mm',
15700
- LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
15701
- },
15702
- calendar: {
15703
- sameDay: '[i teie mahana, i] LT',
15704
- nextDay: '[apopo i] LT',
15705
- nextWeek: 'dddd [i] LT',
15706
- lastDay: '[inanahi i] LT',
15707
- lastWeek: 'dddd [whakamutunga i] LT',
15708
- sameElse: 'L'
15709
- },
15710
- relativeTime: {
15711
- future: 'i roto i %s',
15712
- past: '%s i mua',
15713
- s: 'te hēkona ruarua',
15714
- ss: '%d hēkona',
15715
- m: 'he meneti',
15716
- mm: '%d meneti',
15717
- h: 'te haora',
15718
- hh: '%d haora',
15719
- d: 'he ra',
15720
- dd: '%d ra',
15721
- M: 'he marama',
15722
- MM: '%d marama',
15723
- y: 'he tau',
15724
- yy: '%d tau'
15725
- },
15726
- dayOfMonthOrdinalParse: /\d{1,2}º/,
15727
- ordinal: '%dº',
15728
- week : {
15729
- dow : 1, // Monday is the first day of the week.
15730
- doy : 4 // The week that contains Jan 4th is the first week of the year.
15731
- }
15732
- });
15733
-
15734
- return mi;
15735
-
15736
- })));
15737
-
15738
-
15739
- /***/ }),
15740
-
15741
- /***/ "./node_modules/moment/locale/mk.js":
15742
- /*!******************************************!*\
15743
- !*** ./node_modules/moment/locale/mk.js ***!
15744
- \******************************************/
15745
- /*! no static exports found */
15746
- /***/ (function(module, exports, __webpack_require__) {
15747
-
15748
- //! moment.js locale configuration
15749
-
15750
- ;(function (global, factory) {
15751
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15752
- undefined
15753
- }(this, (function (moment) { 'use strict';
15754
-
15755
-
15756
- var mk = moment.defineLocale('mk', {
15757
- months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
15758
- monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
15759
- weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
15760
- weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
15761
- weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
15762
- longDateFormat : {
15763
- LT : 'H:mm',
15764
- LTS : 'H:mm:ss',
15765
- L : 'D.MM.YYYY',
15766
- LL : 'D MMMM YYYY',
15767
- LLL : 'D MMMM YYYY H:mm',
15768
- LLLL : 'dddd, D MMMM YYYY H:mm'
15769
- },
15770
- calendar : {
15771
- sameDay : '[Денес во] LT',
15772
- nextDay : '[Утре во] LT',
15773
- nextWeek : '[Во] dddd [во] LT',
15774
- lastDay : '[Вчера во] LT',
15775
- lastWeek : function () {
15776
- switch (this.day()) {
15777
- case 0:
15778
- case 3:
15779
- case 6:
15780
- return '[Изминатата] dddd [во] LT';
15781
- case 1:
15782
- case 2:
15783
- case 4:
15784
- case 5:
15785
- return '[Изминатиот] dddd [во] LT';
15786
- }
15787
- },
15788
- sameElse : 'L'
15789
- },
15790
- relativeTime : {
15791
- future : 'после %s',
15792
- past : 'пред %s',
15793
- s : 'неколку секунди',
15794
- ss : '%d секунди',
15795
- m : 'минута',
15796
- mm : '%d минути',
15797
- h : 'час',
15798
- hh : '%d часа',
15799
- d : 'ден',
15800
- dd : '%d дена',
15801
- M : 'месец',
15802
- MM : '%d месеци',
15803
- y : 'година',
15804
- yy : '%d години'
15805
- },
15806
- dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
15807
- ordinal : function (number) {
15808
- var lastDigit = number % 10,
15809
- last2Digits = number % 100;
15810
- if (number === 0) {
15811
- return number + '-ев';
15812
- } else if (last2Digits === 0) {
15813
- return number + '-ен';
15814
- } else if (last2Digits > 10 && last2Digits < 20) {
15815
- return number + '-ти';
15816
- } else if (lastDigit === 1) {
15817
- return number + '-ви';
15818
- } else if (lastDigit === 2) {
15819
- return number + '-ри';
15820
- } else if (lastDigit === 7 || lastDigit === 8) {
15821
- return number + '-ми';
15822
- } else {
15823
- return number + '-ти';
15824
- }
15825
- },
15826
- week : {
15827
- dow : 1, // Monday is the first day of the week.
15828
- doy : 7 // The week that contains Jan 1st is the first week of the year.
15829
- }
15830
- });
15831
-
15832
- return mk;
15833
-
15834
- })));
15835
-
15836
-
15837
- /***/ }),
15838
-
15839
- /***/ "./node_modules/moment/locale/ml.js":
15840
- /*!******************************************!*\
15841
- !*** ./node_modules/moment/locale/ml.js ***!
15842
- \******************************************/
15843
- /*! no static exports found */
15844
- /***/ (function(module, exports, __webpack_require__) {
15845
-
15846
- //! moment.js locale configuration
15847
-
15848
- ;(function (global, factory) {
15849
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15850
- undefined
15851
- }(this, (function (moment) { 'use strict';
15852
-
15853
-
15854
- var ml = moment.defineLocale('ml', {
15855
- months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
15856
- monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
15857
- monthsParseExact : true,
15858
- weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
15859
- weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
15860
- weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
15861
- longDateFormat : {
15862
- LT : 'A h:mm -നു',
15863
- LTS : 'A h:mm:ss -നു',
15864
- L : 'DD/MM/YYYY',
15865
- LL : 'D MMMM YYYY',
15866
- LLL : 'D MMMM YYYY, A h:mm -നു',
15867
- LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
15868
- },
15869
- calendar : {
15870
- sameDay : '[ഇന്ന്] LT',
15871
- nextDay : '[നാളെ] LT',
15872
- nextWeek : 'dddd, LT',
15873
- lastDay : '[ഇന്നലെ] LT',
15874
- lastWeek : '[കഴിഞ്ഞ] dddd, LT',
15875
- sameElse : 'L'
15876
- },
15877
- relativeTime : {
15878
- future : '%s കഴിഞ്ഞ്',
15879
- past : '%s മുൻപ്',
15880
- s : 'അൽപ നിമിഷങ്ങൾ',
15881
- ss : '%d സെക്കൻഡ്',
15882
- m : 'ഒരു മിനിറ്റ്',
15883
- mm : '%d മിനിറ്റ്',
15884
- h : 'ഒരു മണിക്കൂർ',
15885
- hh : '%d മണിക്കൂർ',
15886
- d : 'ഒരു ദിവസം',
15887
- dd : '%d ദിവസം',
15888
- M : 'ഒരു മാസം',
15889
- MM : '%d മാസം',
15890
- y : 'ഒരു വർഷം',
15891
- yy : '%d വർഷം'
15892
- },
15893
- meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
15894
- meridiemHour : function (hour, meridiem) {
15895
- if (hour === 12) {
15896
- hour = 0;
15897
- }
15898
- if ((meridiem === 'രാത്രി' && hour >= 4) ||
15899
- meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
15900
- meridiem === 'വൈകുന്നേരം') {
15901
- return hour + 12;
15902
- } else {
15903
- return hour;
15904
- }
15905
- },
15906
- meridiem : function (hour, minute, isLower) {
15907
- if (hour < 4) {
15908
- return 'രാത്രി';
15909
- } else if (hour < 12) {
15910
- return 'രാവിലെ';
15911
- } else if (hour < 17) {
15912
- return 'ഉച്ച കഴിഞ്ഞ്';
15913
- } else if (hour < 20) {
15914
- return 'വൈകുന്നേരം';
15915
- } else {
15916
- return 'രാത്രി';
15917
- }
15918
- }
15919
- });
15920
-
15921
- return ml;
15922
-
15923
- })));
15924
-
15925
-
15926
- /***/ }),
15927
-
15928
- /***/ "./node_modules/moment/locale/mr.js":
15929
- /*!******************************************!*\
15930
- !*** ./node_modules/moment/locale/mr.js ***!
15931
- \******************************************/
15932
- /*! no static exports found */
15933
- /***/ (function(module, exports, __webpack_require__) {
15934
-
15935
- //! moment.js locale configuration
15936
-
15937
- ;(function (global, factory) {
15938
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15939
- undefined
15940
- }(this, (function (moment) { 'use strict';
15941
-
15942
-
15943
- var symbolMap = {
15944
- '1': '१',
15945
- '2': '२',
15946
- '3': '३',
15947
- '4': '४',
15948
- '5': '५',
15949
- '6': '६',
15950
- '7': '७',
15951
- '8': '८',
15952
- '9': '९',
15953
- '0': '०'
15954
- },
15955
- numberMap = {
15956
- '१': '1',
15957
- '२': '2',
15958
- '३': '3',
15959
- '४': '4',
15960
- '५': '5',
15961
- '६': '6',
15962
- '७': '7',
15963
- '८': '8',
15964
- '९': '9',
15965
- '०': '0'
15966
- };
15967
-
15968
- function relativeTimeMr(number, withoutSuffix, string, isFuture)
15969
- {
15970
- var output = '';
15971
- if (withoutSuffix) {
15972
- switch (string) {
15973
- case 's': output = 'काही सेकंद'; break;
15974
- case 'ss': output = '%d सेकंद'; break;
15975
- case 'm': output = 'एक मिनिट'; break;
15976
- case 'mm': output = '%d मिनिटे'; break;
15977
- case 'h': output = 'एक तास'; break;
15978
- case 'hh': output = '%d तास'; break;
15979
- case 'd': output = 'एक दिवस'; break;
15980
- case 'dd': output = '%d दिवस'; break;
15981
- case 'M': output = 'एक महिना'; break;
15982
- case 'MM': output = '%d महिने'; break;
15983
- case 'y': output = 'एक वर्ष'; break;
15984
- case 'yy': output = '%d वर्षे'; break;
15985
- }
15986
- }
15987
- else {
15988
- switch (string) {
15989
- case 's': output = 'काही सेकंदां'; break;
15990
- case 'ss': output = '%d सेकंदां'; break;
15991
- case 'm': output = 'एका मिनिटा'; break;
15992
- case 'mm': output = '%d मिनिटां'; break;
15993
- case 'h': output = 'एका तासा'; break;
15994
- case 'hh': output = '%d तासां'; break;
15995
- case 'd': output = 'एका दिवसा'; break;
15996
- case 'dd': output = '%d दिवसां'; break;
15997
- case 'M': output = 'एका महिन्या'; break;
15998
- case 'MM': output = '%d महिन्यां'; break;
15999
- case 'y': output = 'एका वर्षा'; break;
16000
- case 'yy': output = '%d वर्षां'; break;
16001
- }
16002
- }
16003
- return output.replace(/%d/i, number);
16004
- }
16005
-
16006
- var mr = moment.defineLocale('mr', {
16007
- months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
16008
- monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
16009
- monthsParseExact : true,
16010
- weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
16011
- weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
16012
- weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
16013
- longDateFormat : {
16014
- LT : 'A h:mm वाजता',
16015
- LTS : 'A h:mm:ss वाजता',
16016
- L : 'DD/MM/YYYY',
16017
- LL : 'D MMMM YYYY',
16018
- LLL : 'D MMMM YYYY, A h:mm वाजता',
16019
- LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
16020
- },
16021
- calendar : {
16022
- sameDay : '[आज] LT',
16023
- nextDay : '[उद्या] LT',
16024
- nextWeek : 'dddd, LT',
16025
- lastDay : '[काल] LT',
16026
- lastWeek: '[मागील] dddd, LT',
16027
- sameElse : 'L'
16028
- },
16029
- relativeTime : {
16030
- future: '%sमध्ये',
16031
- past: '%sपूर्वी',
16032
- s: relativeTimeMr,
16033
- ss: relativeTimeMr,
16034
- m: relativeTimeMr,
16035
- mm: relativeTimeMr,
16036
- h: relativeTimeMr,
16037
- hh: relativeTimeMr,
16038
- d: relativeTimeMr,
16039
- dd: relativeTimeMr,
16040
- M: relativeTimeMr,
16041
- MM: relativeTimeMr,
16042
- y: relativeTimeMr,
16043
- yy: relativeTimeMr
16044
- },
16045
- preparse: function (string) {
16046
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
16047
- return numberMap[match];
16048
- });
16049
- },
16050
- postformat: function (string) {
16051
- return string.replace(/\d/g, function (match) {
16052
- return symbolMap[match];
16053
- });
16054
- },
16055
- meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
16056
- meridiemHour : function (hour, meridiem) {
16057
- if (hour === 12) {
16058
- hour = 0;
16059
- }
16060
- if (meridiem === 'रात्री') {
16061
- return hour < 4 ? hour : hour + 12;
16062
- } else if (meridiem === 'सकाळी') {
16063
- return hour;
16064
- } else if (meridiem === 'दुपारी') {
16065
- return hour >= 10 ? hour : hour + 12;
16066
- } else if (meridiem === 'सायंकाळी') {
16067
- return hour + 12;
16068
- }
16069
- },
16070
- meridiem: function (hour, minute, isLower) {
16071
- if (hour < 4) {
16072
- return 'रात्री';
16073
- } else if (hour < 10) {
16074
- return 'सकाळी';
16075
- } else if (hour < 17) {
16076
- return 'दुपारी';
16077
- } else if (hour < 20) {
16078
- return 'सायंकाळी';
16079
- } else {
16080
- return 'रात्री';
16081
- }
16082
- },
16083
- week : {
16084
- dow : 0, // Sunday is the first day of the week.
16085
- doy : 6 // The week that contains Jan 1st is the first week of the year.
16086
- }
16087
- });
16088
-
16089
- return mr;
16090
-
16091
- })));
16092
-
16093
-
16094
- /***/ }),
16095
-
16096
- /***/ "./node_modules/moment/locale/ms-my.js":
16097
- /*!*********************************************!*\
16098
- !*** ./node_modules/moment/locale/ms-my.js ***!
16099
- \*********************************************/
16100
- /*! no static exports found */
16101
- /***/ (function(module, exports, __webpack_require__) {
16102
-
16103
- //! moment.js locale configuration
16104
-
16105
- ;(function (global, factory) {
16106
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16107
- undefined
16108
- }(this, (function (moment) { 'use strict';
16109
-
16110
-
16111
- var msMy = moment.defineLocale('ms-my', {
16112
- months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
16113
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
16114
- weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
16115
- weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
16116
- weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
16117
- longDateFormat : {
16118
- LT : 'HH.mm',
16119
- LTS : 'HH.mm.ss',
16120
- L : 'DD/MM/YYYY',
16121
- LL : 'D MMMM YYYY',
16122
- LLL : 'D MMMM YYYY [pukul] HH.mm',
16123
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
16124
- },
16125
- meridiemParse: /pagi|tengahari|petang|malam/,
16126
- meridiemHour: function (hour, meridiem) {
16127
- if (hour === 12) {
16128
- hour = 0;
16129
- }
16130
- if (meridiem === 'pagi') {
16131
- return hour;
16132
- } else if (meridiem === 'tengahari') {
16133
- return hour >= 11 ? hour : hour + 12;
16134
- } else if (meridiem === 'petang' || meridiem === 'malam') {
16135
- return hour + 12;
16136
- }
16137
- },
16138
- meridiem : function (hours, minutes, isLower) {
16139
- if (hours < 11) {
16140
- return 'pagi';
16141
- } else if (hours < 15) {
16142
- return 'tengahari';
16143
- } else if (hours < 19) {
16144
- return 'petang';
16145
- } else {
16146
- return 'malam';
16147
- }
16148
- },
16149
- calendar : {
16150
- sameDay : '[Hari ini pukul] LT',
16151
- nextDay : '[Esok pukul] LT',
16152
- nextWeek : 'dddd [pukul] LT',
16153
- lastDay : '[Kelmarin pukul] LT',
16154
- lastWeek : 'dddd [lepas pukul] LT',
16155
- sameElse : 'L'
16156
- },
16157
- relativeTime : {
16158
- future : 'dalam %s',
16159
- past : '%s yang lepas',
16160
- s : 'beberapa saat',
16161
- ss : '%d saat',
16162
- m : 'seminit',
16163
- mm : '%d minit',
16164
- h : 'sejam',
16165
- hh : '%d jam',
16166
- d : 'sehari',
16167
- dd : '%d hari',
16168
- M : 'sebulan',
16169
- MM : '%d bulan',
16170
- y : 'setahun',
16171
- yy : '%d tahun'
16172
- },
16173
- week : {
16174
- dow : 1, // Monday is the first day of the week.
16175
- doy : 7 // The week that contains Jan 1st is the first week of the year.
16176
- }
16177
- });
16178
-
16179
- return msMy;
16180
-
16181
- })));
16182
-
16183
-
16184
- /***/ }),
16185
-
16186
- /***/ "./node_modules/moment/locale/ms.js":
16187
- /*!******************************************!*\
16188
- !*** ./node_modules/moment/locale/ms.js ***!
16189
- \******************************************/
16190
- /*! no static exports found */
16191
- /***/ (function(module, exports, __webpack_require__) {
16192
-
16193
- //! moment.js locale configuration
16194
-
16195
- ;(function (global, factory) {
16196
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16197
- undefined
16198
- }(this, (function (moment) { 'use strict';
16199
-
16200
-
16201
- var ms = moment.defineLocale('ms', {
16202
- months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
16203
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
16204
- weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
16205
- weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
16206
- weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
16207
- longDateFormat : {
16208
- LT : 'HH.mm',
16209
- LTS : 'HH.mm.ss',
16210
- L : 'DD/MM/YYYY',
16211
- LL : 'D MMMM YYYY',
16212
- LLL : 'D MMMM YYYY [pukul] HH.mm',
16213
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
16214
- },
16215
- meridiemParse: /pagi|tengahari|petang|malam/,
16216
- meridiemHour: function (hour, meridiem) {
16217
- if (hour === 12) {
16218
- hour = 0;
16219
- }
16220
- if (meridiem === 'pagi') {
16221
- return hour;
16222
- } else if (meridiem === 'tengahari') {
16223
- return hour >= 11 ? hour : hour + 12;
16224
- } else if (meridiem === 'petang' || meridiem === 'malam') {
16225
- return hour + 12;
16226
- }
16227
- },
16228
- meridiem : function (hours, minutes, isLower) {
16229
- if (hours < 11) {
16230
- return 'pagi';
16231
- } else if (hours < 15) {
16232
- return 'tengahari';
16233
- } else if (hours < 19) {
16234
- return 'petang';
16235
- } else {
16236
- return 'malam';
16237
- }
16238
- },
16239
- calendar : {
16240
- sameDay : '[Hari ini pukul] LT',
16241
- nextDay : '[Esok pukul] LT',
16242
- nextWeek : 'dddd [pukul] LT',
16243
- lastDay : '[Kelmarin pukul] LT',
16244
- lastWeek : 'dddd [lepas pukul] LT',
16245
- sameElse : 'L'
16246
- },
16247
- relativeTime : {
16248
- future : 'dalam %s',
16249
- past : '%s yang lepas',
16250
- s : 'beberapa saat',
16251
- ss : '%d saat',
16252
- m : 'seminit',
16253
- mm : '%d minit',
16254
- h : 'sejam',
16255
- hh : '%d jam',
16256
- d : 'sehari',
16257
- dd : '%d hari',
16258
- M : 'sebulan',
16259
- MM : '%d bulan',
16260
- y : 'setahun',
16261
- yy : '%d tahun'
16262
- },
16263
- week : {
16264
- dow : 1, // Monday is the first day of the week.
16265
- doy : 7 // The week that contains Jan 1st is the first week of the year.
16266
- }
16267
- });
16268
-
16269
- return ms;
16270
-
16271
- })));
16272
-
16273
-
16274
- /***/ }),
16275
-
16276
- /***/ "./node_modules/moment/locale/mt.js":
16277
- /*!******************************************!*\
16278
- !*** ./node_modules/moment/locale/mt.js ***!
16279
- \******************************************/
16280
- /*! no static exports found */
16281
- /***/ (function(module, exports, __webpack_require__) {
16282
-
16283
- //! moment.js locale configuration
16284
-
16285
- ;(function (global, factory) {
16286
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16287
- undefined
16288
- }(this, (function (moment) { 'use strict';
16289
-
16290
-
16291
- var mt = moment.defineLocale('mt', {
16292
- months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
16293
- monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
16294
- weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
16295
- weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
16296
- weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
16297
- longDateFormat : {
16298
- LT : 'HH:mm',
16299
- LTS : 'HH:mm:ss',
16300
- L : 'DD/MM/YYYY',
16301
- LL : 'D MMMM YYYY',
16302
- LLL : 'D MMMM YYYY HH:mm',
16303
- LLLL : 'dddd, D MMMM YYYY HH:mm'
16304
- },
16305
- calendar : {
16306
- sameDay : '[Illum fil-]LT',
16307
- nextDay : '[Għada fil-]LT',
16308
- nextWeek : 'dddd [fil-]LT',
16309
- lastDay : '[Il-bieraħ fil-]LT',
16310
- lastWeek : 'dddd [li għadda] [fil-]LT',
16311
- sameElse : 'L'
16312
- },
16313
- relativeTime : {
16314
- future : 'f’ %s',
16315
- past : '%s ilu',
16316
- s : 'ftit sekondi',
16317
- ss : '%d sekondi',
16318
- m : 'minuta',
16319
- mm : '%d minuti',
16320
- h : 'siegħa',
16321
- hh : '%d siegħat',
16322
- d : 'ġurnata',
16323
- dd : '%d ġranet',
16324
- M : 'xahar',
16325
- MM : '%d xhur',
16326
- y : 'sena',
16327
- yy : '%d sni'
16328
- },
16329
- dayOfMonthOrdinalParse : /\d{1,2}º/,
16330
- ordinal: '%dº',
16331
- week : {
16332
- dow : 1, // Monday is the first day of the week.
16333
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16334
- }
16335
- });
16336
-
16337
- return mt;
16338
-
16339
- })));
16340
-
16341
-
16342
- /***/ }),
16343
-
16344
- /***/ "./node_modules/moment/locale/my.js":
16345
- /*!******************************************!*\
16346
- !*** ./node_modules/moment/locale/my.js ***!
16347
- \******************************************/
16348
- /*! no static exports found */
16349
- /***/ (function(module, exports, __webpack_require__) {
16350
-
16351
- //! moment.js locale configuration
16352
-
16353
- ;(function (global, factory) {
16354
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16355
- undefined
16356
- }(this, (function (moment) { 'use strict';
16357
-
16358
-
16359
- var symbolMap = {
16360
- '1': '၁',
16361
- '2': '၂',
16362
- '3': '၃',
16363
- '4': '၄',
16364
- '5': '၅',
16365
- '6': '၆',
16366
- '7': '၇',
16367
- '8': '၈',
16368
- '9': '၉',
16369
- '0': '၀'
16370
- }, numberMap = {
16371
- '၁': '1',
16372
- '၂': '2',
16373
- '၃': '3',
16374
- '၄': '4',
16375
- '၅': '5',
16376
- '၆': '6',
16377
- '၇': '7',
16378
- '၈': '8',
16379
- '၉': '9',
16380
- '၀': '0'
16381
- };
16382
-
16383
- var my = moment.defineLocale('my', {
16384
- months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
16385
- monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
16386
- weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
16387
- weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
16388
- weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
16389
-
16390
- longDateFormat: {
16391
- LT: 'HH:mm',
16392
- LTS: 'HH:mm:ss',
16393
- L: 'DD/MM/YYYY',
16394
- LL: 'D MMMM YYYY',
16395
- LLL: 'D MMMM YYYY HH:mm',
16396
- LLLL: 'dddd D MMMM YYYY HH:mm'
16397
- },
16398
- calendar: {
16399
- sameDay: '[ယနေ.] LT [မှာ]',
16400
- nextDay: '[မနက်ဖြန်] LT [မှာ]',
16401
- nextWeek: 'dddd LT [မှာ]',
16402
- lastDay: '[မနေ.က] LT [မှာ]',
16403
- lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
16404
- sameElse: 'L'
16405
- },
16406
- relativeTime: {
16407
- future: 'လာမည့် %s မှာ',
16408
- past: 'လွန်ခဲ့သော %s က',
16409
- s: 'စက္ကန်.အနည်းငယ်',
16410
- ss : '%d စက္ကန့်',
16411
- m: 'တစ်မိနစ်',
16412
- mm: '%d မိနစ်',
16413
- h: 'တစ်နာရီ',
16414
- hh: '%d နာရီ',
16415
- d: 'တစ်ရက်',
16416
- dd: '%d ရက်',
16417
- M: 'တစ်လ',
16418
- MM: '%d လ',
16419
- y: 'တစ်နှစ်',
16420
- yy: '%d နှစ်'
16421
- },
16422
- preparse: function (string) {
16423
- return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
16424
- return numberMap[match];
16425
- });
16426
- },
16427
- postformat: function (string) {
16428
- return string.replace(/\d/g, function (match) {
16429
- return symbolMap[match];
16430
- });
16431
- },
16432
- week: {
16433
- dow: 1, // Monday is the first day of the week.
16434
- doy: 4 // The week that contains Jan 1st is the first week of the year.
16435
- }
16436
- });
16437
-
16438
- return my;
16439
-
16440
- })));
16441
-
16442
-
16443
- /***/ }),
16444
-
16445
- /***/ "./node_modules/moment/locale/nb.js":
16446
- /*!******************************************!*\
16447
- !*** ./node_modules/moment/locale/nb.js ***!
16448
- \******************************************/
16449
- /*! no static exports found */
16450
- /***/ (function(module, exports, __webpack_require__) {
16451
-
16452
- //! moment.js locale configuration
16453
-
16454
- ;(function (global, factory) {
16455
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16456
- undefined
16457
- }(this, (function (moment) { 'use strict';
16458
-
16459
-
16460
- var nb = moment.defineLocale('nb', {
16461
- months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
16462
- monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
16463
- monthsParseExact : true,
16464
- weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
16465
- weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
16466
- weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
16467
- weekdaysParseExact : true,
16468
- longDateFormat : {
16469
- LT : 'HH:mm',
16470
- LTS : 'HH:mm:ss',
16471
- L : 'DD.MM.YYYY',
16472
- LL : 'D. MMMM YYYY',
16473
- LLL : 'D. MMMM YYYY [kl.] HH:mm',
16474
- LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
16475
- },
16476
- calendar : {
16477
- sameDay: '[i dag kl.] LT',
16478
- nextDay: '[i morgen kl.] LT',
16479
- nextWeek: 'dddd [kl.] LT',
16480
- lastDay: '[i går kl.] LT',
16481
- lastWeek: '[forrige] dddd [kl.] LT',
16482
- sameElse: 'L'
16483
- },
16484
- relativeTime : {
16485
- future : 'om %s',
16486
- past : '%s siden',
16487
- s : 'noen sekunder',
16488
- ss : '%d sekunder',
16489
- m : 'ett minutt',
16490
- mm : '%d minutter',
16491
- h : 'en time',
16492
- hh : '%d timer',
16493
- d : 'en dag',
16494
- dd : '%d dager',
16495
- M : 'en måned',
16496
- MM : '%d måneder',
16497
- y : 'ett år',
16498
- yy : '%d år'
16499
- },
16500
- dayOfMonthOrdinalParse: /\d{1,2}\./,
16501
- ordinal : '%d.',
16502
- week : {
16503
- dow : 1, // Monday is the first day of the week.
16504
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16505
- }
16506
- });
16507
-
16508
- return nb;
16509
-
16510
- })));
16511
-
16512
-
16513
- /***/ }),
16514
-
16515
- /***/ "./node_modules/moment/locale/ne.js":
16516
- /*!******************************************!*\
16517
- !*** ./node_modules/moment/locale/ne.js ***!
16518
- \******************************************/
16519
- /*! no static exports found */
16520
- /***/ (function(module, exports, __webpack_require__) {
16521
-
16522
- //! moment.js locale configuration
16523
-
16524
- ;(function (global, factory) {
16525
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16526
- undefined
16527
- }(this, (function (moment) { 'use strict';
16528
-
16529
-
16530
- var symbolMap = {
16531
- '1': '१',
16532
- '2': '२',
16533
- '3': '३',
16534
- '4': '४',
16535
- '5': '५',
16536
- '6': '६',
16537
- '7': '७',
16538
- '8': '८',
16539
- '9': '९',
16540
- '0': '०'
16541
- },
16542
- numberMap = {
16543
- '१': '1',
16544
- '२': '2',
16545
- '३': '3',
16546
- '४': '4',
16547
- '५': '5',
16548
- '६': '6',
16549
- '७': '7',
16550
- '८': '8',
16551
- '९': '9',
16552
- '०': '0'
16553
- };
16554
-
16555
- var ne = moment.defineLocale('ne', {
16556
- months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
16557
- monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
16558
- monthsParseExact : true,
16559
- weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
16560
- weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
16561
- weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
16562
- weekdaysParseExact : true,
16563
- longDateFormat : {
16564
- LT : 'Aको h:mm बजे',
16565
- LTS : 'Aको h:mm:ss बजे',
16566
- L : 'DD/MM/YYYY',
16567
- LL : 'D MMMM YYYY',
16568
- LLL : 'D MMMM YYYY, Aको h:mm बजे',
16569
- LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
16570
- },
16571
- preparse: function (string) {
16572
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
16573
- return numberMap[match];
16574
- });
16575
- },
16576
- postformat: function (string) {
16577
- return string.replace(/\d/g, function (match) {
16578
- return symbolMap[match];
16579
- });
16580
- },
16581
- meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
16582
- meridiemHour : function (hour, meridiem) {
16583
- if (hour === 12) {
16584
- hour = 0;
16585
- }
16586
- if (meridiem === 'राति') {
16587
- return hour < 4 ? hour : hour + 12;
16588
- } else if (meridiem === 'बिहान') {
16589
- return hour;
16590
- } else if (meridiem === 'दिउँसो') {
16591
- return hour >= 10 ? hour : hour + 12;
16592
- } else if (meridiem === 'साँझ') {
16593
- return hour + 12;
16594
- }
16595
- },
16596
- meridiem : function (hour, minute, isLower) {
16597
- if (hour < 3) {
16598
- return 'राति';
16599
- } else if (hour < 12) {
16600
- return 'बिहान';
16601
- } else if (hour < 16) {
16602
- return 'दिउँसो';
16603
- } else if (hour < 20) {
16604
- return 'साँझ';
16605
- } else {
16606
- return 'राति';
16607
- }
16608
- },
16609
- calendar : {
16610
- sameDay : '[आज] LT',
16611
- nextDay : '[भोलि] LT',
16612
- nextWeek : '[आउँदो] dddd[,] LT',
16613
- lastDay : '[हिजो] LT',
16614
- lastWeek : '[गएको] dddd[,] LT',
16615
- sameElse : 'L'
16616
- },
16617
- relativeTime : {
16618
- future : '%sमा',
16619
- past : '%s अगाडि',
16620
- s : 'केही क्षण',
16621
- ss : '%d सेकेण्ड',
16622
- m : 'एक मिनेट',
16623
- mm : '%d मिनेट',
16624
- h : 'एक घण्टा',
16625
- hh : '%d घण्टा',
16626
- d : 'एक दिन',
16627
- dd : '%d दिन',
16628
- M : 'एक महिना',
16629
- MM : '%d महिना',
16630
- y : 'एक बर्ष',
16631
- yy : '%d बर्ष'
16632
- },
16633
- week : {
16634
- dow : 0, // Sunday is the first day of the week.
16635
- doy : 6 // The week that contains Jan 1st is the first week of the year.
16636
- }
16637
- });
16638
-
16639
- return ne;
16640
-
16641
- })));
16642
-
16643
-
16644
- /***/ }),
16645
-
16646
- /***/ "./node_modules/moment/locale/nl-be.js":
16647
- /*!*********************************************!*\
16648
- !*** ./node_modules/moment/locale/nl-be.js ***!
16649
- \*********************************************/
16650
- /*! no static exports found */
16651
- /***/ (function(module, exports, __webpack_require__) {
16652
-
16653
- //! moment.js locale configuration
16654
-
16655
- ;(function (global, factory) {
16656
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16657
- undefined
16658
- }(this, (function (moment) { 'use strict';
16659
-
16660
-
16661
- var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
16662
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
16663
-
16664
- var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
16665
- var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
16666
-
16667
- var nlBe = moment.defineLocale('nl-be', {
16668
- months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
16669
- monthsShort : function (m, format) {
16670
- if (!m) {
16671
- return monthsShortWithDots;
16672
- } else if (/-MMM-/.test(format)) {
16673
- return monthsShortWithoutDots[m.month()];
16674
- } else {
16675
- return monthsShortWithDots[m.month()];
16676
- }
16677
- },
16678
-
16679
- monthsRegex: monthsRegex,
16680
- monthsShortRegex: monthsRegex,
16681
- monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
16682
- monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
16683
-
16684
- monthsParse : monthsParse,
16685
- longMonthsParse : monthsParse,
16686
- shortMonthsParse : monthsParse,
16687
-
16688
- weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
16689
- weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
16690
- weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
16691
- weekdaysParseExact : true,
16692
- longDateFormat : {
16693
- LT : 'HH:mm',
16694
- LTS : 'HH:mm:ss',
16695
- L : 'DD/MM/YYYY',
16696
- LL : 'D MMMM YYYY',
16697
- LLL : 'D MMMM YYYY HH:mm',
16698
- LLLL : 'dddd D MMMM YYYY HH:mm'
16699
- },
16700
- calendar : {
16701
- sameDay: '[vandaag om] LT',
16702
- nextDay: '[morgen om] LT',
16703
- nextWeek: 'dddd [om] LT',
16704
- lastDay: '[gisteren om] LT',
16705
- lastWeek: '[afgelopen] dddd [om] LT',
16706
- sameElse: 'L'
16707
- },
16708
- relativeTime : {
16709
- future : 'over %s',
16710
- past : '%s geleden',
16711
- s : 'een paar seconden',
16712
- ss : '%d seconden',
16713
- m : 'één minuut',
16714
- mm : '%d minuten',
16715
- h : 'één uur',
16716
- hh : '%d uur',
16717
- d : 'één dag',
16718
- dd : '%d dagen',
16719
- M : 'één maand',
16720
- MM : '%d maanden',
16721
- y : 'één jaar',
16722
- yy : '%d jaar'
16723
- },
16724
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
16725
- ordinal : function (number) {
16726
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
16727
- },
16728
- week : {
16729
- dow : 1, // Monday is the first day of the week.
16730
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16731
- }
16732
- });
16733
-
16734
- return nlBe;
16735
-
16736
- })));
16737
-
16738
-
16739
- /***/ }),
16740
-
16741
- /***/ "./node_modules/moment/locale/nl.js":
16742
- /*!******************************************!*\
16743
- !*** ./node_modules/moment/locale/nl.js ***!
16744
- \******************************************/
16745
- /*! no static exports found */
16746
- /***/ (function(module, exports, __webpack_require__) {
16747
-
16748
- //! moment.js locale configuration
16749
-
16750
- ;(function (global, factory) {
16751
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16752
- undefined
16753
- }(this, (function (moment) { 'use strict';
16754
-
16755
-
16756
- var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
16757
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
16758
-
16759
- var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
16760
- var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
16761
-
16762
- var nl = moment.defineLocale('nl', {
16763
- months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
16764
- monthsShort : function (m, format) {
16765
- if (!m) {
16766
- return monthsShortWithDots;
16767
- } else if (/-MMM-/.test(format)) {
16768
- return monthsShortWithoutDots[m.month()];
16769
- } else {
16770
- return monthsShortWithDots[m.month()];
16771
- }
16772
- },
16773
-
16774
- monthsRegex: monthsRegex,
16775
- monthsShortRegex: monthsRegex,
16776
- monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
16777
- monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
16778
-
16779
- monthsParse : monthsParse,
16780
- longMonthsParse : monthsParse,
16781
- shortMonthsParse : monthsParse,
16782
-
16783
- weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
16784
- weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
16785
- weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
16786
- weekdaysParseExact : true,
16787
- longDateFormat : {
16788
- LT : 'HH:mm',
16789
- LTS : 'HH:mm:ss',
16790
- L : 'DD-MM-YYYY',
16791
- LL : 'D MMMM YYYY',
16792
- LLL : 'D MMMM YYYY HH:mm',
16793
- LLLL : 'dddd D MMMM YYYY HH:mm'
16794
- },
16795
- calendar : {
16796
- sameDay: '[vandaag om] LT',
16797
- nextDay: '[morgen om] LT',
16798
- nextWeek: 'dddd [om] LT',
16799
- lastDay: '[gisteren om] LT',
16800
- lastWeek: '[afgelopen] dddd [om] LT',
16801
- sameElse: 'L'
16802
- },
16803
- relativeTime : {
16804
- future : 'over %s',
16805
- past : '%s geleden',
16806
- s : 'een paar seconden',
16807
- ss : '%d seconden',
16808
- m : 'één minuut',
16809
- mm : '%d minuten',
16810
- h : 'één uur',
16811
- hh : '%d uur',
16812
- d : 'één dag',
16813
- dd : '%d dagen',
16814
- M : 'één maand',
16815
- MM : '%d maanden',
16816
- y : 'één jaar',
16817
- yy : '%d jaar'
16818
- },
16819
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
16820
- ordinal : function (number) {
16821
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
16822
- },
16823
- week : {
16824
- dow : 1, // Monday is the first day of the week.
16825
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16826
- }
16827
- });
16828
-
16829
- return nl;
16830
-
16831
- })));
16832
-
16833
-
16834
- /***/ }),
16835
-
16836
- /***/ "./node_modules/moment/locale/nn.js":
16837
- /*!******************************************!*\
16838
- !*** ./node_modules/moment/locale/nn.js ***!
16839
- \******************************************/
16840
- /*! no static exports found */
16841
- /***/ (function(module, exports, __webpack_require__) {
16842
-
16843
- //! moment.js locale configuration
16844
-
16845
- ;(function (global, factory) {
16846
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16847
- undefined
16848
- }(this, (function (moment) { 'use strict';
16849
-
16850
-
16851
- var nn = moment.defineLocale('nn', {
16852
- months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
16853
- monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16854
- weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
16855
- weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
16856
- weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
16857
- longDateFormat : {
16858
- LT : 'HH:mm',
16859
- LTS : 'HH:mm:ss',
16860
- L : 'DD.MM.YYYY',
16861
- LL : 'D. MMMM YYYY',
16862
- LLL : 'D. MMMM YYYY [kl.] H:mm',
16863
- LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
16864
- },
16865
- calendar : {
16866
- sameDay: '[I dag klokka] LT',
16867
- nextDay: '[I morgon klokka] LT',
16868
- nextWeek: 'dddd [klokka] LT',
16869
- lastDay: '[I går klokka] LT',
16870
- lastWeek: '[Føregåande] dddd [klokka] LT',
16871
- sameElse: 'L'
16872
- },
16873
- relativeTime : {
16874
- future : 'om %s',
16875
- past : '%s sidan',
16876
- s : 'nokre sekund',
16877
- ss : '%d sekund',
16878
- m : 'eit minutt',
16879
- mm : '%d minutt',
16880
- h : 'ein time',
16881
- hh : '%d timar',
16882
- d : 'ein dag',
16883
- dd : '%d dagar',
16884
- M : 'ein månad',
16885
- MM : '%d månader',
16886
- y : 'eit år',
16887
- yy : '%d år'
16888
- },
16889
- dayOfMonthOrdinalParse: /\d{1,2}\./,
16890
- ordinal : '%d.',
16891
- week : {
16892
- dow : 1, // Monday is the first day of the week.
16893
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16894
- }
16895
- });
16896
-
16897
- return nn;
16898
-
16899
- })));
16900
-
16901
-
16902
- /***/ }),
16903
-
16904
- /***/ "./node_modules/moment/locale/pa-in.js":
16905
- /*!*********************************************!*\
16906
- !*** ./node_modules/moment/locale/pa-in.js ***!
16907
- \*********************************************/
16908
- /*! no static exports found */
16909
- /***/ (function(module, exports, __webpack_require__) {
16910
-
16911
- //! moment.js locale configuration
16912
-
16913
- ;(function (global, factory) {
16914
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16915
- undefined
16916
- }(this, (function (moment) { 'use strict';
16917
-
16918
-
16919
- var symbolMap = {
16920
- '1': '੧',
16921
- '2': '੨',
16922
- '3': '੩',
16923
- '4': '੪',
16924
- '5': '੫',
16925
- '6': '੬',
16926
- '7': '੭',
16927
- '8': '੮',
16928
- '9': '੯',
16929
- '0': '੦'
16930
- },
16931
- numberMap = {
16932
- '੧': '1',
16933
- '੨': '2',
16934
- '੩': '3',
16935
- '੪': '4',
16936
- '੫': '5',
16937
- '੬': '6',
16938
- '੭': '7',
16939
- '੮': '8',
16940
- '੯': '9',
16941
- '੦': '0'
16942
- };
16943
-
16944
- var paIn = moment.defineLocale('pa-in', {
16945
- // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
16946
- months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
16947
- monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
16948
- weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
16949
- weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
16950
- weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
16951
- longDateFormat : {
16952
- LT : 'A h:mm ਵਜੇ',
16953
- LTS : 'A h:mm:ss ਵਜੇ',
16954
- L : 'DD/MM/YYYY',
16955
- LL : 'D MMMM YYYY',
16956
- LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
16957
- LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
16958
- },
16959
- calendar : {
16960
- sameDay : '[ਅਜ] LT',
16961
- nextDay : '[ਕਲ] LT',
16962
- nextWeek : 'dddd, LT',
16963
- lastDay : '[ਕਲ] LT',
16964
- lastWeek : '[ਪਿਛਲੇ] dddd, LT',
16965
- sameElse : 'L'
16966
- },
16967
- relativeTime : {
16968
- future : '%s ਵਿੱਚ',
16969
- past : '%s ਪਿਛਲੇ',
16970
- s : 'ਕੁਝ ਸਕਿੰਟ',
16971
- ss : '%d ਸਕਿੰਟ',
16972
- m : 'ਇਕ ਮਿੰਟ',
16973
- mm : '%d ਮਿੰਟ',
16974
- h : 'ਇੱਕ ਘੰਟਾ',
16975
- hh : '%d ਘੰਟੇ',
16976
- d : 'ਇੱਕ ਦਿਨ',
16977
- dd : '%d ਦਿਨ',
16978
- M : 'ਇੱਕ ਮਹੀਨਾ',
16979
- MM : '%d ਮਹੀਨੇ',
16980
- y : 'ਇੱਕ ਸਾਲ',
16981
- yy : '%d ਸਾਲ'
16982
- },
16983
- preparse: function (string) {
16984
- return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
16985
- return numberMap[match];
16986
- });
16987
- },
16988
- postformat: function (string) {
16989
- return string.replace(/\d/g, function (match) {
16990
- return symbolMap[match];
16991
- });
16992
- },
16993
- // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
16994
- // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
16995
- meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
16996
- meridiemHour : function (hour, meridiem) {
16997
- if (hour === 12) {
16998
- hour = 0;
16999
- }
17000
- if (meridiem === 'ਰਾਤ') {
17001
- return hour < 4 ? hour : hour + 12;
17002
- } else if (meridiem === 'ਸਵੇਰ') {
17003
- return hour;
17004
- } else if (meridiem === 'ਦੁਪਹਿਰ') {
17005
- return hour >= 10 ? hour : hour + 12;
17006
- } else if (meridiem === 'ਸ਼ਾਮ') {
17007
- return hour + 12;
17008
- }
17009
- },
17010
- meridiem : function (hour, minute, isLower) {
17011
- if (hour < 4) {
17012
- return 'ਰਾਤ';
17013
- } else if (hour < 10) {
17014
- return 'ਸਵੇਰ';
17015
- } else if (hour < 17) {
17016
- return 'ਦੁਪਹਿਰ';
17017
- } else if (hour < 20) {
17018
- return 'ਸ਼ਾਮ';
17019
- } else {
17020
- return 'ਰਾਤ';
17021
- }
17022
- },
17023
- week : {
17024
- dow : 0, // Sunday is the first day of the week.
17025
- doy : 6 // The week that contains Jan 1st is the first week of the year.
17026
- }
17027
- });
17028
-
17029
- return paIn;
17030
-
17031
- })));
17032
-
17033
-
17034
- /***/ }),
17035
-
17036
- /***/ "./node_modules/moment/locale/pl.js":
17037
- /*!******************************************!*\
17038
- !*** ./node_modules/moment/locale/pl.js ***!
17039
- \******************************************/
17040
- /*! no static exports found */
17041
- /***/ (function(module, exports, __webpack_require__) {
17042
-
17043
- //! moment.js locale configuration
17044
-
17045
- ;(function (global, factory) {
17046
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17047
- undefined
17048
- }(this, (function (moment) { 'use strict';
17049
-
17050
-
17051
- var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
17052
- monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
17053
- function plural(n) {
17054
- return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
17055
- }
17056
- function translate(number, withoutSuffix, key) {
17057
- var result = number + ' ';
17058
- switch (key) {
17059
- case 'ss':
17060
- return result + (plural(number) ? 'sekundy' : 'sekund');
17061
- case 'm':
17062
- return withoutSuffix ? 'minuta' : 'minutę';
17063
- case 'mm':
17064
- return result + (plural(number) ? 'minuty' : 'minut');
17065
- case 'h':
17066
- return withoutSuffix ? 'godzina' : 'godzinę';
17067
- case 'hh':
17068
- return result + (plural(number) ? 'godziny' : 'godzin');
17069
- case 'MM':
17070
- return result + (plural(number) ? 'miesiące' : 'miesięcy');
17071
- case 'yy':
17072
- return result + (plural(number) ? 'lata' : 'lat');
17073
- }
17074
- }
17075
-
17076
- var pl = moment.defineLocale('pl', {
17077
- months : function (momentToFormat, format) {
17078
- if (!momentToFormat) {
17079
- return monthsNominative;
17080
- } else if (format === '') {
17081
- // Hack: if format empty we know this is used to generate
17082
- // RegExp by moment. Give then back both valid forms of months
17083
- // in RegExp ready format.
17084
- return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
17085
- } else if (/D MMMM/.test(format)) {
17086
- return monthsSubjective[momentToFormat.month()];
17087
- } else {
17088
- return monthsNominative[momentToFormat.month()];
17089
- }
17090
- },
17091
- monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
17092
- weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
17093
- weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
17094
- weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
17095
- longDateFormat : {
17096
- LT : 'HH:mm',
17097
- LTS : 'HH:mm:ss',
17098
- L : 'DD.MM.YYYY',
17099
- LL : 'D MMMM YYYY',
17100
- LLL : 'D MMMM YYYY HH:mm',
17101
- LLLL : 'dddd, D MMMM YYYY HH:mm'
17102
- },
17103
- calendar : {
17104
- sameDay: '[Dziś o] LT',
17105
- nextDay: '[Jutro o] LT',
17106
- nextWeek: function () {
17107
- switch (this.day()) {
17108
- case 0:
17109
- return '[W niedzielę o] LT';
17110
-
17111
- case 2:
17112
- return '[We wtorek o] LT';
17113
-
17114
- case 3:
17115
- return '[W środę o] LT';
17116
-
17117
- case 6:
17118
- return '[W sobotę o] LT';
17119
-
17120
- default:
17121
- return '[W] dddd [o] LT';
17122
- }
17123
- },
17124
- lastDay: '[Wczoraj o] LT',
17125
- lastWeek: function () {
17126
- switch (this.day()) {
17127
- case 0:
17128
- return '[W zeszłą niedzielę o] LT';
17129
- case 3:
17130
- return '[W zeszłą środę o] LT';
17131
- case 6:
17132
- return '[W zeszłą sobotę o] LT';
17133
- default:
17134
- return '[W zeszły] dddd [o] LT';
17135
- }
17136
- },
17137
- sameElse: 'L'
17138
- },
17139
- relativeTime : {
17140
- future : 'za %s',
17141
- past : '%s temu',
17142
- s : 'kilka sekund',
17143
- ss : translate,
17144
- m : translate,
17145
- mm : translate,
17146
- h : translate,
17147
- hh : translate,
17148
- d : '1 dzień',
17149
- dd : '%d dni',
17150
- M : 'miesiąc',
17151
- MM : translate,
17152
- y : 'rok',
17153
- yy : translate
17154
- },
17155
- dayOfMonthOrdinalParse: /\d{1,2}\./,
17156
- ordinal : '%d.',
17157
- week : {
17158
- dow : 1, // Monday is the first day of the week.
17159
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17160
- }
17161
- });
17162
-
17163
- return pl;
17164
-
17165
- })));
17166
-
17167
-
17168
- /***/ }),
17169
-
17170
- /***/ "./node_modules/moment/locale/pt-br.js":
17171
- /*!*********************************************!*\
17172
- !*** ./node_modules/moment/locale/pt-br.js ***!
17173
- \*********************************************/
17174
- /*! no static exports found */
17175
- /***/ (function(module, exports, __webpack_require__) {
17176
-
17177
- //! moment.js locale configuration
17178
-
17179
- ;(function (global, factory) {
17180
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17181
- undefined
17182
- }(this, (function (moment) { 'use strict';
17183
-
17184
-
17185
- var ptBr = moment.defineLocale('pt-br', {
17186
- months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
17187
- monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
17188
- weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
17189
- weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
17190
- weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
17191
- weekdaysParseExact : true,
17192
- longDateFormat : {
17193
- LT : 'HH:mm',
17194
- LTS : 'HH:mm:ss',
17195
- L : 'DD/MM/YYYY',
17196
- LL : 'D [de] MMMM [de] YYYY',
17197
- LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
17198
- LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
17199
- },
17200
- calendar : {
17201
- sameDay: '[Hoje às] LT',
17202
- nextDay: '[Amanhã às] LT',
17203
- nextWeek: 'dddd [às] LT',
17204
- lastDay: '[Ontem às] LT',
17205
- lastWeek: function () {
17206
- return (this.day() === 0 || this.day() === 6) ?
17207
- '[Último] dddd [às] LT' : // Saturday + Sunday
17208
- '[Última] dddd [às] LT'; // Monday - Friday
17209
- },
17210
- sameElse: 'L'
17211
- },
17212
- relativeTime : {
17213
- future : 'em %s',
17214
- past : 'há %s',
17215
- s : 'poucos segundos',
17216
- ss : '%d segundos',
17217
- m : 'um minuto',
17218
- mm : '%d minutos',
17219
- h : 'uma hora',
17220
- hh : '%d horas',
17221
- d : 'um dia',
17222
- dd : '%d dias',
17223
- M : 'um mês',
17224
- MM : '%d meses',
17225
- y : 'um ano',
17226
- yy : '%d anos'
17227
- },
17228
- dayOfMonthOrdinalParse: /\d{1,2}º/,
17229
- ordinal : '%dº'
17230
- });
17231
-
17232
- return ptBr;
17233
-
17234
- })));
17235
-
17236
-
17237
- /***/ }),
17238
-
17239
- /***/ "./node_modules/moment/locale/pt.js":
17240
- /*!******************************************!*\
17241
- !*** ./node_modules/moment/locale/pt.js ***!
17242
- \******************************************/
17243
- /*! no static exports found */
17244
- /***/ (function(module, exports, __webpack_require__) {
17245
-
17246
- //! moment.js locale configuration
17247
-
17248
- ;(function (global, factory) {
17249
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17250
- undefined
17251
- }(this, (function (moment) { 'use strict';
17252
-
17253
-
17254
- var pt = moment.defineLocale('pt', {
17255
- months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
17256
- monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
17257
- weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
17258
- weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
17259
- weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
17260
- weekdaysParseExact : true,
17261
- longDateFormat : {
17262
- LT : 'HH:mm',
17263
- LTS : 'HH:mm:ss',
17264
- L : 'DD/MM/YYYY',
17265
- LL : 'D [de] MMMM [de] YYYY',
17266
- LLL : 'D [de] MMMM [de] YYYY HH:mm',
17267
- LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
17268
- },
17269
- calendar : {
17270
- sameDay: '[Hoje às] LT',
17271
- nextDay: '[Amanhã às] LT',
17272
- nextWeek: 'dddd [às] LT',
17273
- lastDay: '[Ontem às] LT',
17274
- lastWeek: function () {
17275
- return (this.day() === 0 || this.day() === 6) ?
17276
- '[Último] dddd [às] LT' : // Saturday + Sunday
17277
- '[Última] dddd [às] LT'; // Monday - Friday
17278
- },
17279
- sameElse: 'L'
17280
- },
17281
- relativeTime : {
17282
- future : 'em %s',
17283
- past : 'há %s',
17284
- s : 'segundos',
17285
- ss : '%d segundos',
17286
- m : 'um minuto',
17287
- mm : '%d minutos',
17288
- h : 'uma hora',
17289
- hh : '%d horas',
17290
- d : 'um dia',
17291
- dd : '%d dias',
17292
- M : 'um mês',
17293
- MM : '%d meses',
17294
- y : 'um ano',
17295
- yy : '%d anos'
17296
- },
17297
- dayOfMonthOrdinalParse: /\d{1,2}º/,
17298
- ordinal : '%dº',
17299
- week : {
17300
- dow : 1, // Monday is the first day of the week.
17301
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17302
- }
17303
- });
17304
-
17305
- return pt;
17306
-
17307
- })));
17308
-
17309
-
17310
- /***/ }),
17311
-
17312
- /***/ "./node_modules/moment/locale/ro.js":
17313
- /*!******************************************!*\
17314
- !*** ./node_modules/moment/locale/ro.js ***!
17315
- \******************************************/
17316
- /*! no static exports found */
17317
- /***/ (function(module, exports, __webpack_require__) {
17318
-
17319
- //! moment.js locale configuration
17320
-
17321
- ;(function (global, factory) {
17322
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17323
- undefined
17324
- }(this, (function (moment) { 'use strict';
17325
-
17326
-
17327
- function relativeTimeWithPlural(number, withoutSuffix, key) {
17328
- var format = {
17329
- 'ss': 'secunde',
17330
- 'mm': 'minute',
17331
- 'hh': 'ore',
17332
- 'dd': 'zile',
17333
- 'MM': 'luni',
17334
- 'yy': 'ani'
17335
- },
17336
- separator = ' ';
17337
- if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
17338
- separator = ' de ';
17339
- }
17340
- return number + separator + format[key];
17341
- }
17342
-
17343
- var ro = moment.defineLocale('ro', {
17344
- months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
17345
- monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
17346
- monthsParseExact: true,
17347
- weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
17348
- weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
17349
- weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
17350
- longDateFormat : {
17351
- LT : 'H:mm',
17352
- LTS : 'H:mm:ss',
17353
- L : 'DD.MM.YYYY',
17354
- LL : 'D MMMM YYYY',
17355
- LLL : 'D MMMM YYYY H:mm',
17356
- LLLL : 'dddd, D MMMM YYYY H:mm'
17357
- },
17358
- calendar : {
17359
- sameDay: '[azi la] LT',
17360
- nextDay: '[mâine la] LT',
17361
- nextWeek: 'dddd [la] LT',
17362
- lastDay: '[ieri la] LT',
17363
- lastWeek: '[fosta] dddd [la] LT',
17364
- sameElse: 'L'
17365
- },
17366
- relativeTime : {
17367
- future : 'peste %s',
17368
- past : '%s în urmă',
17369
- s : 'câteva secunde',
17370
- ss : relativeTimeWithPlural,
17371
- m : 'un minut',
17372
- mm : relativeTimeWithPlural,
17373
- h : 'o oră',
17374
- hh : relativeTimeWithPlural,
17375
- d : 'o zi',
17376
- dd : relativeTimeWithPlural,
17377
- M : 'o lună',
17378
- MM : relativeTimeWithPlural,
17379
- y : 'un an',
17380
- yy : relativeTimeWithPlural
17381
- },
17382
- week : {
17383
- dow : 1, // Monday is the first day of the week.
17384
- doy : 7 // The week that contains Jan 1st is the first week of the year.
17385
- }
17386
- });
17387
-
17388
- return ro;
17389
-
17390
- })));
17391
-
17392
-
17393
- /***/ }),
17394
-
17395
- /***/ "./node_modules/moment/locale/ru.js":
17396
- /*!******************************************!*\
17397
- !*** ./node_modules/moment/locale/ru.js ***!
17398
- \******************************************/
17399
- /*! no static exports found */
17400
- /***/ (function(module, exports, __webpack_require__) {
17401
-
17402
- //! moment.js locale configuration
17403
-
17404
- ;(function (global, factory) {
17405
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17406
- undefined
17407
- }(this, (function (moment) { 'use strict';
17408
-
17409
-
17410
- function plural(word, num) {
17411
- var forms = word.split('_');
17412
- return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
17413
- }
17414
- function relativeTimeWithPlural(number, withoutSuffix, key) {
17415
- var format = {
17416
- 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
17417
- 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
17418
- 'hh': 'час_часа_часов',
17419
- 'dd': 'день_дня_дней',
17420
- 'MM': 'месяц_месяца_месяцев',
17421
- 'yy': 'год_года_лет'
17422
- };
17423
- if (key === 'm') {
17424
- return withoutSuffix ? 'минута' : 'минуту';
17425
- }
17426
- else {
17427
- return number + ' ' + plural(format[key], +number);
17428
- }
17429
- }
17430
- var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
17431
-
17432
- // http://new.gramota.ru/spravka/rules/139-prop : § 103
17433
- // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
17434
- // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
17435
- var ru = moment.defineLocale('ru', {
17436
- months : {
17437
- format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
17438
- standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
17439
- },
17440
- monthsShort : {
17441
- // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
17442
- format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
17443
- standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
17444
- },
17445
- weekdays : {
17446
- standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
17447
- format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
17448
- isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
17449
- },
17450
- weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
17451
- weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
17452
- monthsParse : monthsParse,
17453
- longMonthsParse : monthsParse,
17454
- shortMonthsParse : monthsParse,
17455
-
17456
- // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
17457
- monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
17458
-
17459
- // копия предыдущего
17460
- monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
17461
-
17462
- // полные названия с падежами
17463
- monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
17464
-
17465
- // Выражение, которое соотвествует только сокращённым формам
17466
- monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
17467
- longDateFormat : {
17468
- LT : 'H:mm',
17469
- LTS : 'H:mm:ss',
17470
- L : 'DD.MM.YYYY',
17471
- LL : 'D MMMM YYYY г.',
17472
- LLL : 'D MMMM YYYY г., H:mm',
17473
- LLLL : 'dddd, D MMMM YYYY г., H:mm'
17474
- },
17475
- calendar : {
17476
- sameDay: '[Сегодня в] LT',
17477
- nextDay: '[Завтра в] LT',
17478
- lastDay: '[Вчера в] LT',
17479
- nextWeek: function (now) {
17480
- if (now.week() !== this.week()) {
17481
- switch (this.day()) {
17482
- case 0:
17483
- return '[В следующее] dddd [в] LT';
17484
- case 1:
17485
- case 2:
17486
- case 4:
17487
- return '[В следующий] dddd [в] LT';
17488
- case 3:
17489
- case 5:
17490
- case 6:
17491
- return '[В следующую] dddd [в] LT';
17492
- }
17493
- } else {
17494
- if (this.day() === 2) {
17495
- return '[Во] dddd [в] LT';
17496
- } else {
17497
- return '[В] dddd [в] LT';
17498
- }
17499
- }
17500
- },
17501
- lastWeek: function (now) {
17502
- if (now.week() !== this.week()) {
17503
- switch (this.day()) {
17504
- case 0:
17505
- return '[В прошлое] dddd [в] LT';
17506
- case 1:
17507
- case 2:
17508
- case 4:
17509
- return '[В прошлый] dddd [в] LT';
17510
- case 3:
17511
- case 5:
17512
- case 6:
17513
- return '[В прошлую] dddd [в] LT';
17514
- }
17515
- } else {
17516
- if (this.day() === 2) {
17517
- return '[Во] dddd [в] LT';
17518
- } else {
17519
- return '[В] dddd [в] LT';
17520
- }
17521
- }
17522
- },
17523
- sameElse: 'L'
17524
- },
17525
- relativeTime : {
17526
- future : 'через %s',
17527
- past : '%s назад',
17528
- s : 'несколько секунд',
17529
- ss : relativeTimeWithPlural,
17530
- m : relativeTimeWithPlural,
17531
- mm : relativeTimeWithPlural,
17532
- h : 'час',
17533
- hh : relativeTimeWithPlural,
17534
- d : 'день',
17535
- dd : relativeTimeWithPlural,
17536
- M : 'месяц',
17537
- MM : relativeTimeWithPlural,
17538
- y : 'год',
17539
- yy : relativeTimeWithPlural
17540
- },
17541
- meridiemParse: /ночи|утра|дня|вечера/i,
17542
- isPM : function (input) {
17543
- return /^(дня|вечера)$/.test(input);
17544
- },
17545
- meridiem : function (hour, minute, isLower) {
17546
- if (hour < 4) {
17547
- return 'ночи';
17548
- } else if (hour < 12) {
17549
- return 'утра';
17550
- } else if (hour < 17) {
17551
- return 'дня';
17552
- } else {
17553
- return 'вечера';
17554
- }
17555
- },
17556
- dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
17557
- ordinal: function (number, period) {
17558
- switch (period) {
17559
- case 'M':
17560
- case 'd':
17561
- case 'DDD':
17562
- return number + '-й';
17563
- case 'D':
17564
- return number + '-го';
17565
- case 'w':
17566
- case 'W':
17567
- return number + '-я';
17568
- default:
17569
- return number;
17570
- }
17571
- },
17572
- week : {
17573
- dow : 1, // Monday is the first day of the week.
17574
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17575
- }
17576
- });
17577
-
17578
- return ru;
17579
-
17580
- })));
17581
-
17582
-
17583
- /***/ }),
17584
-
17585
- /***/ "./node_modules/moment/locale/sd.js":
17586
- /*!******************************************!*\
17587
- !*** ./node_modules/moment/locale/sd.js ***!
17588
- \******************************************/
17589
- /*! no static exports found */
17590
- /***/ (function(module, exports, __webpack_require__) {
17591
-
17592
- //! moment.js locale configuration
17593
-
17594
- ;(function (global, factory) {
17595
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17596
- undefined
17597
- }(this, (function (moment) { 'use strict';
17598
-
17599
-
17600
- var months = [
17601
- 'جنوري',
17602
- 'فيبروري',
17603
- 'مارچ',
17604
- 'اپريل',
17605
- 'مئي',
17606
- 'جون',
17607
- 'جولاءِ',
17608
- 'آگسٽ',
17609
- 'سيپٽمبر',
17610
- 'آڪٽوبر',
17611
- 'نومبر',
17612
- 'ڊسمبر'
17613
- ];
17614
- var days = [
17615
- 'آچر',
17616
- 'سومر',
17617
- 'اڱارو',
17618
- 'اربع',
17619
- 'خميس',
17620
- 'جمع',
17621
- 'ڇنڇر'
17622
- ];
17623
-
17624
- var sd = moment.defineLocale('sd', {
17625
- months : months,
17626
- monthsShort : months,
17627
- weekdays : days,
17628
- weekdaysShort : days,
17629
- weekdaysMin : days,
17630
- longDateFormat : {
17631
- LT : 'HH:mm',
17632
- LTS : 'HH:mm:ss',
17633
- L : 'DD/MM/YYYY',
17634
- LL : 'D MMMM YYYY',
17635
- LLL : 'D MMMM YYYY HH:mm',
17636
- LLLL : 'dddd، D MMMM YYYY HH:mm'
17637
- },
17638
- meridiemParse: /صبح|شام/,
17639
- isPM : function (input) {
17640
- return 'شام' === input;
17641
- },
17642
- meridiem : function (hour, minute, isLower) {
17643
- if (hour < 12) {
17644
- return 'صبح';
17645
- }
17646
- return 'شام';
17647
- },
17648
- calendar : {
17649
- sameDay : '[اڄ] LT',
17650
- nextDay : '[سڀاڻي] LT',
17651
- nextWeek : 'dddd [اڳين هفتي تي] LT',
17652
- lastDay : '[ڪالهه] LT',
17653
- lastWeek : '[گزريل هفتي] dddd [تي] LT',
17654
- sameElse : 'L'
17655
- },
17656
- relativeTime : {
17657
- future : '%s پوء',
17658
- past : '%s اڳ',
17659
- s : 'چند سيڪنڊ',
17660
- ss : '%d سيڪنڊ',
17661
- m : 'هڪ منٽ',
17662
- mm : '%d منٽ',
17663
- h : 'هڪ ڪلاڪ',
17664
- hh : '%d ڪلاڪ',
17665
- d : 'هڪ ڏينهن',
17666
- dd : '%d ڏينهن',
17667
- M : 'هڪ مهينو',
17668
- MM : '%d مهينا',
17669
- y : 'هڪ سال',
17670
- yy : '%d سال'
17671
- },
17672
- preparse: function (string) {
17673
- return string.replace(/،/g, ',');
17674
- },
17675
- postformat: function (string) {
17676
- return string.replace(/,/g, '،');
17677
- },
17678
- week : {
17679
- dow : 1, // Monday is the first day of the week.
17680
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17681
- }
17682
- });
17683
-
17684
- return sd;
17685
-
17686
- })));
17687
-
17688
-
17689
- /***/ }),
17690
-
17691
- /***/ "./node_modules/moment/locale/se.js":
17692
- /*!******************************************!*\
17693
- !*** ./node_modules/moment/locale/se.js ***!
17694
- \******************************************/
17695
- /*! no static exports found */
17696
- /***/ (function(module, exports, __webpack_require__) {
17697
-
17698
- //! moment.js locale configuration
17699
-
17700
- ;(function (global, factory) {
17701
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17702
- undefined
17703
- }(this, (function (moment) { 'use strict';
17704
-
17705
-
17706
- var se = moment.defineLocale('se', {
17707
- months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
17708
- monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
17709
- weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
17710
- weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
17711
- weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
17712
- longDateFormat : {
17713
- LT : 'HH:mm',
17714
- LTS : 'HH:mm:ss',
17715
- L : 'DD.MM.YYYY',
17716
- LL : 'MMMM D. [b.] YYYY',
17717
- LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
17718
- LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
17719
- },
17720
- calendar : {
17721
- sameDay: '[otne ti] LT',
17722
- nextDay: '[ihttin ti] LT',
17723
- nextWeek: 'dddd [ti] LT',
17724
- lastDay: '[ikte ti] LT',
17725
- lastWeek: '[ovddit] dddd [ti] LT',
17726
- sameElse: 'L'
17727
- },
17728
- relativeTime : {
17729
- future : '%s geažes',
17730
- past : 'maŋit %s',
17731
- s : 'moadde sekunddat',
17732
- ss: '%d sekunddat',
17733
- m : 'okta minuhta',
17734
- mm : '%d minuhtat',
17735
- h : 'okta diimmu',
17736
- hh : '%d diimmut',
17737
- d : 'okta beaivi',
17738
- dd : '%d beaivvit',
17739
- M : 'okta mánnu',
17740
- MM : '%d mánut',
17741
- y : 'okta jahki',
17742
- yy : '%d jagit'
17743
- },
17744
- dayOfMonthOrdinalParse: /\d{1,2}\./,
17745
- ordinal : '%d.',
17746
- week : {
17747
- dow : 1, // Monday is the first day of the week.
17748
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17749
- }
17750
- });
17751
-
17752
- return se;
17753
-
17754
- })));
17755
-
17756
-
17757
- /***/ }),
17758
-
17759
- /***/ "./node_modules/moment/locale/si.js":
17760
- /*!******************************************!*\
17761
- !*** ./node_modules/moment/locale/si.js ***!
17762
- \******************************************/
17763
- /*! no static exports found */
17764
- /***/ (function(module, exports, __webpack_require__) {
17765
-
17766
- //! moment.js locale configuration
17767
-
17768
- ;(function (global, factory) {
17769
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17770
- undefined
17771
- }(this, (function (moment) { 'use strict';
17772
-
17773
-
17774
- /*jshint -W100*/
17775
- var si = moment.defineLocale('si', {
17776
- months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
17777
- monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
17778
- weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
17779
- weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
17780
- weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
17781
- weekdaysParseExact : true,
17782
- longDateFormat : {
17783
- LT : 'a h:mm',
17784
- LTS : 'a h:mm:ss',
17785
- L : 'YYYY/MM/DD',
17786
- LL : 'YYYY MMMM D',
17787
- LLL : 'YYYY MMMM D, a h:mm',
17788
- LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
17789
- },
17790
- calendar : {
17791
- sameDay : '[අද] LT[ට]',
17792
- nextDay : '[හෙට] LT[ට]',
17793
- nextWeek : 'dddd LT[ට]',
17794
- lastDay : '[ඊයේ] LT[ට]',
17795
- lastWeek : '[පසුගිය] dddd LT[ට]',
17796
- sameElse : 'L'
17797
- },
17798
- relativeTime : {
17799
- future : '%sකින්',
17800
- past : '%sකට පෙර',
17801
- s : 'තත්පර කිහිපය',
17802
- ss : 'තත්පර %d',
17803
- m : 'මිනිත්තුව',
17804
- mm : 'මිනිත්තු %d',
17805
- h : 'පැය',
17806
- hh : 'පැය %d',
17807
- d : 'දිනය',
17808
- dd : 'දින %d',
17809
- M : 'මාසය',
17810
- MM : 'මාස %d',
17811
- y : 'වසර',
17812
- yy : 'වසර %d'
17813
- },
17814
- dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
17815
- ordinal : function (number) {
17816
- return number + ' වැනි';
17817
- },
17818
- meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
17819
- isPM : function (input) {
17820
- return input === 'ප.ව.' || input === 'පස් වරු';
17821
- },
17822
- meridiem : function (hours, minutes, isLower) {
17823
- if (hours > 11) {
17824
- return isLower ? 'ප.ව.' : 'පස් වරු';
17825
- } else {
17826
- return isLower ? 'පෙ.ව.' : 'පෙර වරු';
17827
- }
17828
- }
17829
- });
17830
-
17831
- return si;
17832
-
17833
- })));
17834
-
17835
-
17836
- /***/ }),
17837
-
17838
- /***/ "./node_modules/moment/locale/sk.js":
17839
- /*!******************************************!*\
17840
- !*** ./node_modules/moment/locale/sk.js ***!
17841
- \******************************************/
17842
- /*! no static exports found */
17843
- /***/ (function(module, exports, __webpack_require__) {
17844
-
17845
- //! moment.js locale configuration
17846
-
17847
- ;(function (global, factory) {
17848
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17849
- undefined
17850
- }(this, (function (moment) { 'use strict';
17851
-
17852
-
17853
- var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
17854
- monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
17855
- function plural(n) {
17856
- return (n > 1) && (n < 5);
17857
- }
17858
- function translate(number, withoutSuffix, key, isFuture) {
17859
- var result = number + ' ';
17860
- switch (key) {
17861
- case 's': // a few seconds / in a few seconds / a few seconds ago
17862
- return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
17863
- case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
17864
- if (withoutSuffix || isFuture) {
17865
- return result + (plural(number) ? 'sekundy' : 'sekúnd');
17866
- } else {
17867
- return result + 'sekundami';
17868
- }
17869
- break;
17870
- case 'm': // a minute / in a minute / a minute ago
17871
- return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
17872
- case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
17873
- if (withoutSuffix || isFuture) {
17874
- return result + (plural(number) ? 'minúty' : 'minút');
17875
- } else {
17876
- return result + 'minútami';
17877
- }
17878
- break;
17879
- case 'h': // an hour / in an hour / an hour ago
17880
- return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
17881
- case 'hh': // 9 hours / in 9 hours / 9 hours ago
17882
- if (withoutSuffix || isFuture) {
17883
- return result + (plural(number) ? 'hodiny' : 'hodín');
17884
- } else {
17885
- return result + 'hodinami';
17886
- }
17887
- break;
17888
- case 'd': // a day / in a day / a day ago
17889
- return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
17890
- case 'dd': // 9 days / in 9 days / 9 days ago
17891
- if (withoutSuffix || isFuture) {
17892
- return result + (plural(number) ? 'dni' : 'dní');
17893
- } else {
17894
- return result + 'dňami';
17895
- }
17896
- break;
17897
- case 'M': // a month / in a month / a month ago
17898
- return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
17899
- case 'MM': // 9 months / in 9 months / 9 months ago
17900
- if (withoutSuffix || isFuture) {
17901
- return result + (plural(number) ? 'mesiace' : 'mesiacov');
17902
- } else {
17903
- return result + 'mesiacmi';
17904
- }
17905
- break;
17906
- case 'y': // a year / in a year / a year ago
17907
- return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
17908
- case 'yy': // 9 years / in 9 years / 9 years ago
17909
- if (withoutSuffix || isFuture) {
17910
- return result + (plural(number) ? 'roky' : 'rokov');
17911
- } else {
17912
- return result + 'rokmi';
17913
- }
17914
- break;
17915
- }
17916
- }
17917
-
17918
- var sk = moment.defineLocale('sk', {
17919
- months : months,
17920
- monthsShort : monthsShort,
17921
- weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
17922
- weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
17923
- weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
17924
- longDateFormat : {
17925
- LT: 'H:mm',
17926
- LTS : 'H:mm:ss',
17927
- L : 'DD.MM.YYYY',
17928
- LL : 'D. MMMM YYYY',
17929
- LLL : 'D. MMMM YYYY H:mm',
17930
- LLLL : 'dddd D. MMMM YYYY H:mm'
17931
- },
17932
- calendar : {
17933
- sameDay: '[dnes o] LT',
17934
- nextDay: '[zajtra o] LT',
17935
- nextWeek: function () {
17936
- switch (this.day()) {
17937
- case 0:
17938
- return '[v nedeľu o] LT';
17939
- case 1:
17940
- case 2:
17941
- return '[v] dddd [o] LT';
17942
- case 3:
17943
- return '[v stredu o] LT';
17944
- case 4:
17945
- return '[vo štvrtok o] LT';
17946
- case 5:
17947
- return '[v piatok o] LT';
17948
- case 6:
17949
- return '[v sobotu o] LT';
17950
- }
17951
- },
17952
- lastDay: '[včera o] LT',
17953
- lastWeek: function () {
17954
- switch (this.day()) {
17955
- case 0:
17956
- return '[minulú nedeľu o] LT';
17957
- case 1:
17958
- case 2:
17959
- return '[minulý] dddd [o] LT';
17960
- case 3:
17961
- return '[minulú stredu o] LT';
17962
- case 4:
17963
- case 5:
17964
- return '[minulý] dddd [o] LT';
17965
- case 6:
17966
- return '[minulú sobotu o] LT';
17967
- }
17968
- },
17969
- sameElse: 'L'
17970
- },
17971
- relativeTime : {
17972
- future : 'za %s',
17973
- past : 'pred %s',
17974
- s : translate,
17975
- ss : translate,
17976
- m : translate,
17977
- mm : translate,
17978
- h : translate,
17979
- hh : translate,
17980
- d : translate,
17981
- dd : translate,
17982
- M : translate,
17983
- MM : translate,
17984
- y : translate,
17985
- yy : translate
17986
- },
17987
- dayOfMonthOrdinalParse: /\d{1,2}\./,
17988
- ordinal : '%d.',
17989
- week : {
17990
- dow : 1, // Monday is the first day of the week.
17991
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17992
- }
17993
- });
17994
-
17995
- return sk;
17996
-
17997
- })));
17998
-
17999
-
18000
- /***/ }),
18001
-
18002
- /***/ "./node_modules/moment/locale/sl.js":
18003
- /*!******************************************!*\
18004
- !*** ./node_modules/moment/locale/sl.js ***!
18005
- \******************************************/
18006
- /*! no static exports found */
18007
- /***/ (function(module, exports, __webpack_require__) {
18008
-
18009
- //! moment.js locale configuration
18010
-
18011
- ;(function (global, factory) {
18012
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18013
- undefined
18014
- }(this, (function (moment) { 'use strict';
18015
-
18016
-
18017
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
18018
- var result = number + ' ';
18019
- switch (key) {
18020
- case 's':
18021
- return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
18022
- case 'ss':
18023
- if (number === 1) {
18024
- result += withoutSuffix ? 'sekundo' : 'sekundi';
18025
- } else if (number === 2) {
18026
- result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
18027
- } else if (number < 5) {
18028
- result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
18029
- } else {
18030
- result += withoutSuffix || isFuture ? 'sekund' : 'sekund';
18031
- }
18032
- return result;
18033
- case 'm':
18034
- return withoutSuffix ? 'ena minuta' : 'eno minuto';
18035
- case 'mm':
18036
- if (number === 1) {
18037
- result += withoutSuffix ? 'minuta' : 'minuto';
18038
- } else if (number === 2) {
18039
- result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
18040
- } else if (number < 5) {
18041
- result += withoutSuffix || isFuture ? 'minute' : 'minutami';
18042
- } else {
18043
- result += withoutSuffix || isFuture ? 'minut' : 'minutami';
18044
- }
18045
- return result;
18046
- case 'h':
18047
- return withoutSuffix ? 'ena ura' : 'eno uro';
18048
- case 'hh':
18049
- if (number === 1) {
18050
- result += withoutSuffix ? 'ura' : 'uro';
18051
- } else if (number === 2) {
18052
- result += withoutSuffix || isFuture ? 'uri' : 'urama';
18053
- } else if (number < 5) {
18054
- result += withoutSuffix || isFuture ? 'ure' : 'urami';
18055
- } else {
18056
- result += withoutSuffix || isFuture ? 'ur' : 'urami';
18057
- }
18058
- return result;
18059
- case 'd':
18060
- return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
18061
- case 'dd':
18062
- if (number === 1) {
18063
- result += withoutSuffix || isFuture ? 'dan' : 'dnem';
18064
- } else if (number === 2) {
18065
- result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
18066
- } else {
18067
- result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
18068
- }
18069
- return result;
18070
- case 'M':
18071
- return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
18072
- case 'MM':
18073
- if (number === 1) {
18074
- result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
18075
- } else if (number === 2) {
18076
- result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
18077
- } else if (number < 5) {
18078
- result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
18079
- } else {
18080
- result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
18081
- }
18082
- return result;
18083
- case 'y':
18084
- return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
18085
- case 'yy':
18086
- if (number === 1) {
18087
- result += withoutSuffix || isFuture ? 'leto' : 'letom';
18088
- } else if (number === 2) {
18089
- result += withoutSuffix || isFuture ? 'leti' : 'letoma';
18090
- } else if (number < 5) {
18091
- result += withoutSuffix || isFuture ? 'leta' : 'leti';
18092
- } else {
18093
- result += withoutSuffix || isFuture ? 'let' : 'leti';
18094
- }
18095
- return result;
18096
- }
18097
- }
18098
-
18099
- var sl = moment.defineLocale('sl', {
18100
- months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
18101
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
18102
- monthsParseExact: true,
18103
- weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
18104
- weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
18105
- weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
18106
- weekdaysParseExact : true,
18107
- longDateFormat : {
18108
- LT : 'H:mm',
18109
- LTS : 'H:mm:ss',
18110
- L : 'DD.MM.YYYY',
18111
- LL : 'D. MMMM YYYY',
18112
- LLL : 'D. MMMM YYYY H:mm',
18113
- LLLL : 'dddd, D. MMMM YYYY H:mm'
18114
- },
18115
- calendar : {
18116
- sameDay : '[danes ob] LT',
18117
- nextDay : '[jutri ob] LT',
18118
-
18119
- nextWeek : function () {
18120
- switch (this.day()) {
18121
- case 0:
18122
- return '[v] [nedeljo] [ob] LT';
18123
- case 3:
18124
- return '[v] [sredo] [ob] LT';
18125
- case 6:
18126
- return '[v] [soboto] [ob] LT';
18127
- case 1:
18128
- case 2:
18129
- case 4:
18130
- case 5:
18131
- return '[v] dddd [ob] LT';
18132
- }
18133
- },
18134
- lastDay : '[včeraj ob] LT',
18135
- lastWeek : function () {
18136
- switch (this.day()) {
18137
- case 0:
18138
- return '[prejšnjo] [nedeljo] [ob] LT';
18139
- case 3:
18140
- return '[prejšnjo] [sredo] [ob] LT';
18141
- case 6:
18142
- return '[prejšnjo] [soboto] [ob] LT';
18143
- case 1:
18144
- case 2:
18145
- case 4:
18146
- case 5:
18147
- return '[prejšnji] dddd [ob] LT';
18148
- }
18149
- },
18150
- sameElse : 'L'
18151
- },
18152
- relativeTime : {
18153
- future : 'čez %s',
18154
- past : 'pred %s',
18155
- s : processRelativeTime,
18156
- ss : processRelativeTime,
18157
- m : processRelativeTime,
18158
- mm : processRelativeTime,
18159
- h : processRelativeTime,
18160
- hh : processRelativeTime,
18161
- d : processRelativeTime,
18162
- dd : processRelativeTime,
18163
- M : processRelativeTime,
18164
- MM : processRelativeTime,
18165
- y : processRelativeTime,
18166
- yy : processRelativeTime
18167
- },
18168
- dayOfMonthOrdinalParse: /\d{1,2}\./,
18169
- ordinal : '%d.',
18170
- week : {
18171
- dow : 1, // Monday is the first day of the week.
18172
- doy : 7 // The week that contains Jan 1st is the first week of the year.
18173
- }
18174
- });
18175
-
18176
- return sl;
18177
-
18178
- })));
18179
-
18180
-
18181
- /***/ }),
18182
-
18183
- /***/ "./node_modules/moment/locale/sq.js":
18184
- /*!******************************************!*\
18185
- !*** ./node_modules/moment/locale/sq.js ***!
18186
- \******************************************/
18187
- /*! no static exports found */
18188
- /***/ (function(module, exports, __webpack_require__) {
18189
-
18190
- //! moment.js locale configuration
18191
-
18192
- ;(function (global, factory) {
18193
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18194
- undefined
18195
- }(this, (function (moment) { 'use strict';
18196
-
18197
-
18198
- var sq = moment.defineLocale('sq', {
18199
- months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
18200
- monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
18201
- weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
18202
- weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
18203
- weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
18204
- weekdaysParseExact : true,
18205
- meridiemParse: /PD|MD/,
18206
- isPM: function (input) {
18207
- return input.charAt(0) === 'M';
18208
- },
18209
- meridiem : function (hours, minutes, isLower) {
18210
- return hours < 12 ? 'PD' : 'MD';
18211
- },
18212
- longDateFormat : {
18213
- LT : 'HH:mm',
18214
- LTS : 'HH:mm:ss',
18215
- L : 'DD/MM/YYYY',
18216
- LL : 'D MMMM YYYY',
18217
- LLL : 'D MMMM YYYY HH:mm',
18218
- LLLL : 'dddd, D MMMM YYYY HH:mm'
18219
- },
18220
- calendar : {
18221
- sameDay : '[Sot në] LT',
18222
- nextDay : '[Nesër në] LT',
18223
- nextWeek : 'dddd [në] LT',
18224
- lastDay : '[Dje në] LT',
18225
- lastWeek : 'dddd [e kaluar në] LT',
18226
- sameElse : 'L'
18227
- },
18228
- relativeTime : {
18229
- future : 'në %s',
18230
- past : '%s më parë',
18231
- s : 'disa sekonda',
18232
- ss : '%d sekonda',
18233
- m : 'një minutë',
18234
- mm : '%d minuta',
18235
- h : 'një orë',
18236
- hh : '%d orë',
18237
- d : 'një ditë',
18238
- dd : '%d ditë',
18239
- M : 'një muaj',
18240
- MM : '%d muaj',
18241
- y : 'një vit',
18242
- yy : '%d vite'
18243
- },
18244
- dayOfMonthOrdinalParse: /\d{1,2}\./,
18245
- ordinal : '%d.',
18246
- week : {
18247
- dow : 1, // Monday is the first day of the week.
18248
- doy : 4 // The week that contains Jan 4th is the first week of the year.
18249
- }
18250
- });
18251
-
18252
- return sq;
18253
-
18254
- })));
18255
-
18256
-
18257
- /***/ }),
18258
-
18259
- /***/ "./node_modules/moment/locale/sr-cyrl.js":
18260
- /*!***********************************************!*\
18261
- !*** ./node_modules/moment/locale/sr-cyrl.js ***!
18262
- \***********************************************/
18263
- /*! no static exports found */
18264
- /***/ (function(module, exports, __webpack_require__) {
18265
-
18266
- //! moment.js locale configuration
18267
-
18268
- ;(function (global, factory) {
18269
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18270
- undefined
18271
- }(this, (function (moment) { 'use strict';
18272
-
18273
-
18274
- var translator = {
18275
- words: { //Different grammatical cases
18276
- ss: ['секунда', 'секунде', 'секунди'],
18277
- m: ['један минут', 'једне минуте'],
18278
- mm: ['минут', 'минуте', 'минута'],
18279
- h: ['један сат', 'једног сата'],
18280
- hh: ['сат', 'сата', 'сати'],
18281
- dd: ['дан', 'дана', 'дана'],
18282
- MM: ['месец', 'месеца', 'месеци'],
18283
- yy: ['година', 'године', 'година']
18284
- },
18285
- correctGrammaticalCase: function (number, wordKey) {
18286
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
18287
- },
18288
- translate: function (number, withoutSuffix, key) {
18289
- var wordKey = translator.words[key];
18290
- if (key.length === 1) {
18291
- return withoutSuffix ? wordKey[0] : wordKey[1];
18292
- } else {
18293
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
18294
- }
18295
- }
18296
- };
18297
-
18298
- var srCyrl = moment.defineLocale('sr-cyrl', {
18299
- months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
18300
- monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
18301
- monthsParseExact: true,
18302
- weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
18303
- weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
18304
- weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
18305
- weekdaysParseExact : true,
18306
- longDateFormat: {
18307
- LT: 'H:mm',
18308
- LTS : 'H:mm:ss',
18309
- L: 'DD.MM.YYYY',
18310
- LL: 'D. MMMM YYYY',
18311
- LLL: 'D. MMMM YYYY H:mm',
18312
- LLLL: 'dddd, D. MMMM YYYY H:mm'
18313
- },
18314
- calendar: {
18315
- sameDay: '[данас у] LT',
18316
- nextDay: '[сутра у] LT',
18317
- nextWeek: function () {
18318
- switch (this.day()) {
18319
- case 0:
18320
- return '[у] [недељу] [у] LT';
18321
- case 3:
18322
- return '[у] [среду] [у] LT';
18323
- case 6:
18324
- return '[у] [суботу] [у] LT';
18325
- case 1:
18326
- case 2:
18327
- case 4:
18328
- case 5:
18329
- return '[у] dddd [у] LT';
18330
- }
18331
- },
18332
- lastDay : '[јуче у] LT',
18333
- lastWeek : function () {
18334
- var lastWeekDays = [
18335
- '[прошле] [недеље] [у] LT',
18336
- '[прошлог] [понедељка] [у] LT',
18337
- '[прошлог] [уторка] [у] LT',
18338
- '[прошле] [среде] [у] LT',
18339
- '[прошлог] [четвртка] [у] LT',
18340
- '[прошлог] [петка] [у] LT',
18341
- '[прошле] [суботе] [у] LT'
18342
- ];
18343
- return lastWeekDays[this.day()];
18344
- },
18345
- sameElse : 'L'
18346
- },
18347
- relativeTime : {
18348
- future : 'за %s',
18349
- past : 'пре %s',
18350
- s : 'неколико секунди',
18351
- ss : translator.translate,
18352
- m : translator.translate,
18353
- mm : translator.translate,
18354
- h : translator.translate,
18355
- hh : translator.translate,
18356
- d : 'дан',
18357
- dd : translator.translate,
18358
- M : 'месец',
18359
- MM : translator.translate,
18360
- y : 'годину',
18361
- yy : translator.translate
18362
- },
18363
- dayOfMonthOrdinalParse: /\d{1,2}\./,
18364
- ordinal : '%d.',
18365
- week : {
18366
- dow : 1, // Monday is the first day of the week.
18367
- doy : 7 // The week that contains Jan 1st is the first week of the year.
18368
- }
18369
- });
18370
-
18371
- return srCyrl;
18372
-
18373
- })));
18374
-
18375
-
18376
- /***/ }),
18377
-
18378
- /***/ "./node_modules/moment/locale/sr.js":
18379
- /*!******************************************!*\
18380
- !*** ./node_modules/moment/locale/sr.js ***!
18381
- \******************************************/
18382
- /*! no static exports found */
18383
- /***/ (function(module, exports, __webpack_require__) {
18384
-
18385
- //! moment.js locale configuration
18386
-
18387
- ;(function (global, factory) {
18388
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18389
- undefined
18390
- }(this, (function (moment) { 'use strict';
18391
-
18392
-
18393
- var translator = {
18394
- words: { //Different grammatical cases
18395
- ss: ['sekunda', 'sekunde', 'sekundi'],
18396
- m: ['jedan minut', 'jedne minute'],
18397
- mm: ['minut', 'minute', 'minuta'],
18398
- h: ['jedan sat', 'jednog sata'],
18399
- hh: ['sat', 'sata', 'sati'],
18400
- dd: ['dan', 'dana', 'dana'],
18401
- MM: ['mesec', 'meseca', 'meseci'],
18402
- yy: ['godina', 'godine', 'godina']
18403
- },
18404
- correctGrammaticalCase: function (number, wordKey) {
18405
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
18406
- },
18407
- translate: function (number, withoutSuffix, key) {
18408
- var wordKey = translator.words[key];
18409
- if (key.length === 1) {
18410
- return withoutSuffix ? wordKey[0] : wordKey[1];
18411
- } else {
18412
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
18413
- }
18414
- }
18415
- };
18416
-
18417
- var sr = moment.defineLocale('sr', {
18418
- months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
18419
- monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
18420
- monthsParseExact: true,
18421
- weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
18422
- weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
18423
- weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
18424
- weekdaysParseExact : true,
18425
- longDateFormat: {
18426
- LT: 'H:mm',
18427
- LTS : 'H:mm:ss',
18428
- L: 'DD.MM.YYYY',
18429
- LL: 'D. MMMM YYYY',
18430
- LLL: 'D. MMMM YYYY H:mm',
18431
- LLLL: 'dddd, D. MMMM YYYY H:mm'
18432
- },
18433
- calendar: {
18434
- sameDay: '[danas u] LT',
18435
- nextDay: '[sutra u] LT',
18436
- nextWeek: function () {
18437
- switch (this.day()) {
18438
- case 0:
18439
- return '[u] [nedelju] [u] LT';
18440
- case 3:
18441
- return '[u] [sredu] [u] LT';
18442
- case 6:
18443
- return '[u] [subotu] [u] LT';
18444
- case 1:
18445
- case 2:
18446
- case 4:
18447
- case 5:
18448
- return '[u] dddd [u] LT';
18449
- }
18450
- },
18451
- lastDay : '[juče u] LT',
18452
- lastWeek : function () {
18453
- var lastWeekDays = [
18454
- '[prošle] [nedelje] [u] LT',
18455
- '[prošlog] [ponedeljka] [u] LT',
18456
- '[prošlog] [utorka] [u] LT',
18457
- '[prošle] [srede] [u] LT',
18458
- '[prošlog] [četvrtka] [u] LT',
18459
- '[prošlog] [petka] [u] LT',
18460
- '[prošle] [subote] [u] LT'
18461
- ];
18462
- return lastWeekDays[this.day()];
18463
- },
18464
- sameElse : 'L'
18465
- },
18466
- relativeTime : {
18467
- future : 'za %s',
18468
- past : 'pre %s',
18469
- s : 'nekoliko sekundi',
18470
- ss : translator.translate,
18471
- m : translator.translate,
18472
- mm : translator.translate,
18473
- h : translator.translate,
18474
- hh : translator.translate,
18475
- d : 'dan',
18476
- dd : translator.translate,
18477
- M : 'mesec',
18478
- MM : translator.translate,
18479
- y : 'godinu',
18480
- yy : translator.translate
18481
- },
18482
- dayOfMonthOrdinalParse: /\d{1,2}\./,
18483
- ordinal : '%d.',
18484
- week : {
18485
- dow : 1, // Monday is the first day of the week.
18486
- doy : 7 // The week that contains Jan 1st is the first week of the year.
18487
- }
18488
- });
18489
-
18490
- return sr;
18491
-
18492
- })));
18493
-
18494
-
18495
- /***/ }),
18496
-
18497
- /***/ "./node_modules/moment/locale/ss.js":
18498
- /*!******************************************!*\
18499
- !*** ./node_modules/moment/locale/ss.js ***!
18500
- \******************************************/
18501
- /*! no static exports found */
18502
- /***/ (function(module, exports, __webpack_require__) {
18503
-
18504
- //! moment.js locale configuration
18505
-
18506
- ;(function (global, factory) {
18507
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18508
- undefined
18509
- }(this, (function (moment) { 'use strict';
18510
-
18511
-
18512
- var ss = moment.defineLocale('ss', {
18513
- months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
18514
- monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
18515
- weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
18516
- weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
18517
- weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
18518
- weekdaysParseExact : true,
18519
- longDateFormat : {
18520
- LT : 'h:mm A',
18521
- LTS : 'h:mm:ss A',
18522
- L : 'DD/MM/YYYY',
18523
- LL : 'D MMMM YYYY',
18524
- LLL : 'D MMMM YYYY h:mm A',
18525
- LLLL : 'dddd, D MMMM YYYY h:mm A'
18526
- },
18527
- calendar : {
18528
- sameDay : '[Namuhla nga] LT',
18529
- nextDay : '[Kusasa nga] LT',
18530
- nextWeek : 'dddd [nga] LT',
18531
- lastDay : '[Itolo nga] LT',
18532
- lastWeek : 'dddd [leliphelile] [nga] LT',
18533
- sameElse : 'L'
18534
- },
18535
- relativeTime : {
18536
- future : 'nga %s',
18537
- past : 'wenteka nga %s',
18538
- s : 'emizuzwana lomcane',
18539
- ss : '%d mzuzwana',
18540
- m : 'umzuzu',
18541
- mm : '%d emizuzu',
18542
- h : 'lihora',
18543
- hh : '%d emahora',
18544
- d : 'lilanga',
18545
- dd : '%d emalanga',
18546
- M : 'inyanga',
18547
- MM : '%d tinyanga',
18548
- y : 'umnyaka',
18549
- yy : '%d iminyaka'
18550
- },
18551
- meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
18552
- meridiem : function (hours, minutes, isLower) {
18553
- if (hours < 11) {
18554
- return 'ekuseni';
18555
- } else if (hours < 15) {
18556
- return 'emini';
18557
- } else if (hours < 19) {
18558
- return 'entsambama';
18559
- } else {
18560
- return 'ebusuku';
18561
- }
18562
- },
18563
- meridiemHour : function (hour, meridiem) {
18564
- if (hour === 12) {
18565
- hour = 0;
18566
- }
18567
- if (meridiem === 'ekuseni') {
18568
- return hour;
18569
- } else if (meridiem === 'emini') {
18570
- return hour >= 11 ? hour : hour + 12;
18571
- } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
18572
- if (hour === 0) {
18573
- return 0;
18574
- }
18575
- return hour + 12;
18576
- }
18577
- },
18578
- dayOfMonthOrdinalParse: /\d{1,2}/,
18579
- ordinal : '%d',
18580
- week : {
18581
- dow : 1, // Monday is the first day of the week.
18582
- doy : 4 // The week that contains Jan 4th is the first week of the year.
18583
- }
18584
- });
18585
-
18586
- return ss;
18587
-
18588
- })));
18589
-
18590
-
18591
- /***/ }),
18592
-
18593
- /***/ "./node_modules/moment/locale/sv.js":
18594
- /*!******************************************!*\
18595
- !*** ./node_modules/moment/locale/sv.js ***!
18596
- \******************************************/
18597
- /*! no static exports found */
18598
- /***/ (function(module, exports, __webpack_require__) {
18599
-
18600
- //! moment.js locale configuration
18601
-
18602
- ;(function (global, factory) {
18603
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18604
- undefined
18605
- }(this, (function (moment) { 'use strict';
18606
-
18607
-
18608
- var sv = moment.defineLocale('sv', {
18609
- months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
18610
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
18611
- weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
18612
- weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
18613
- weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
18614
- longDateFormat : {
18615
- LT : 'HH:mm',
18616
- LTS : 'HH:mm:ss',
18617
- L : 'YYYY-MM-DD',
18618
- LL : 'D MMMM YYYY',
18619
- LLL : 'D MMMM YYYY [kl.] HH:mm',
18620
- LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
18621
- lll : 'D MMM YYYY HH:mm',
18622
- llll : 'ddd D MMM YYYY HH:mm'
18623
- },
18624
- calendar : {
18625
- sameDay: '[Idag] LT',
18626
- nextDay: '[Imorgon] LT',
18627
- lastDay: '[Igår] LT',
18628
- nextWeek: '[På] dddd LT',
18629
- lastWeek: '[I] dddd[s] LT',
18630
- sameElse: 'L'
18631
- },
18632
- relativeTime : {
18633
- future : 'om %s',
18634
- past : 'för %s sedan',
18635
- s : 'några sekunder',
18636
- ss : '%d sekunder',
18637
- m : 'en minut',
18638
- mm : '%d minuter',
18639
- h : 'en timme',
18640
- hh : '%d timmar',
18641
- d : 'en dag',
18642
- dd : '%d dagar',
18643
- M : 'en månad',
18644
- MM : '%d månader',
18645
- y : 'ett år',
18646
- yy : '%d år'
18647
- },
18648
- dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
18649
- ordinal : function (number) {
18650
- var b = number % 10,
18651
- output = (~~(number % 100 / 10) === 1) ? 'e' :
18652
- (b === 1) ? 'a' :
18653
- (b === 2) ? 'a' :
18654
- (b === 3) ? 'e' : 'e';
18655
- return number + output;
18656
- },
18657
- week : {
18658
- dow : 1, // Monday is the first day of the week.
18659
- doy : 4 // The week that contains Jan 4th is the first week of the year.
18660
- }
18661
- });
18662
-
18663
- return sv;
18664
-
18665
- })));
18666
-
18667
-
18668
- /***/ }),
18669
-
18670
- /***/ "./node_modules/moment/locale/sw.js":
18671
- /*!******************************************!*\
18672
- !*** ./node_modules/moment/locale/sw.js ***!
18673
- \******************************************/
18674
- /*! no static exports found */
18675
- /***/ (function(module, exports, __webpack_require__) {
18676
-
18677
- //! moment.js locale configuration
18678
-
18679
- ;(function (global, factory) {
18680
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18681
- undefined
18682
- }(this, (function (moment) { 'use strict';
18683
-
18684
-
18685
- var sw = moment.defineLocale('sw', {
18686
- months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
18687
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
18688
- weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
18689
- weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
18690
- weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
18691
- weekdaysParseExact : true,
18692
- longDateFormat : {
18693
- LT : 'HH:mm',
18694
- LTS : 'HH:mm:ss',
18695
- L : 'DD.MM.YYYY',
18696
- LL : 'D MMMM YYYY',
18697
- LLL : 'D MMMM YYYY HH:mm',
18698
- LLLL : 'dddd, D MMMM YYYY HH:mm'
18699
- },
18700
- calendar : {
18701
- sameDay : '[leo saa] LT',
18702
- nextDay : '[kesho saa] LT',
18703
- nextWeek : '[wiki ijayo] dddd [saat] LT',
18704
- lastDay : '[jana] LT',
18705
- lastWeek : '[wiki iliyopita] dddd [saat] LT',
18706
- sameElse : 'L'
18707
- },
18708
- relativeTime : {
18709
- future : '%s baadaye',
18710
- past : 'tokea %s',
18711
- s : 'hivi punde',
18712
- ss : 'sekunde %d',
18713
- m : 'dakika moja',
18714
- mm : 'dakika %d',
18715
- h : 'saa limoja',
18716
- hh : 'masaa %d',
18717
- d : 'siku moja',
18718
- dd : 'masiku %d',
18719
- M : 'mwezi mmoja',
18720
- MM : 'miezi %d',
18721
- y : 'mwaka mmoja',
18722
- yy : 'miaka %d'
18723
- },
18724
- week : {
18725
- dow : 1, // Monday is the first day of the week.
18726
- doy : 7 // The week that contains Jan 1st is the first week of the year.
18727
- }
18728
- });
18729
-
18730
- return sw;
18731
-
18732
- })));
18733
-
18734
-
18735
- /***/ }),
18736
-
18737
- /***/ "./node_modules/moment/locale/ta.js":
18738
- /*!******************************************!*\
18739
- !*** ./node_modules/moment/locale/ta.js ***!
18740
- \******************************************/
18741
- /*! no static exports found */
18742
- /***/ (function(module, exports, __webpack_require__) {
18743
-
18744
- //! moment.js locale configuration
18745
-
18746
- ;(function (global, factory) {
18747
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18748
- undefined
18749
- }(this, (function (moment) { 'use strict';
18750
-
18751
-
18752
- var symbolMap = {
18753
- '1': '௧',
18754
- '2': '௨',
18755
- '3': '௩',
18756
- '4': '௪',
18757
- '5': '௫',
18758
- '6': '௬',
18759
- '7': '௭',
18760
- '8': '௮',
18761
- '9': '௯',
18762
- '0': '௦'
18763
- }, numberMap = {
18764
- '௧': '1',
18765
- '௨': '2',
18766
- '௩': '3',
18767
- '௪': '4',
18768
- '௫': '5',
18769
- '௬': '6',
18770
- '௭': '7',
18771
- '௮': '8',
18772
- '௯': '9',
18773
- '௦': '0'
18774
- };
18775
-
18776
- var ta = moment.defineLocale('ta', {
18777
- months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
18778
- monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
18779
- weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
18780
- weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
18781
- weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
18782
- longDateFormat : {
18783
- LT : 'HH:mm',
18784
- LTS : 'HH:mm:ss',
18785
- L : 'DD/MM/YYYY',
18786
- LL : 'D MMMM YYYY',
18787
- LLL : 'D MMMM YYYY, HH:mm',
18788
- LLLL : 'dddd, D MMMM YYYY, HH:mm'
18789
- },
18790
- calendar : {
18791
- sameDay : '[இன்று] LT',
18792
- nextDay : '[நாளை] LT',
18793
- nextWeek : 'dddd, LT',
18794
- lastDay : '[நேற்று] LT',
18795
- lastWeek : '[கடந்த வாரம்] dddd, LT',
18796
- sameElse : 'L'
18797
- },
18798
- relativeTime : {
18799
- future : '%s இல்',
18800
- past : '%s முன்',
18801
- s : 'ஒரு சில விநாடிகள்',
18802
- ss : '%d விநாடிகள்',
18803
- m : 'ஒரு நிமிடம்',
18804
- mm : '%d நிமிடங்கள்',
18805
- h : 'ஒரு மணி நேரம்',
18806
- hh : '%d மணி நேரம்',
18807
- d : 'ஒரு நாள்',
18808
- dd : '%d நாட்கள்',
18809
- M : 'ஒரு மாதம்',
18810
- MM : '%d மாதங்கள்',
18811
- y : 'ஒரு வருடம்',
18812
- yy : '%d ஆண்டுகள்'
18813
- },
18814
- dayOfMonthOrdinalParse: /\d{1,2}வது/,
18815
- ordinal : function (number) {
18816
- return number + 'வது';
18817
- },
18818
- preparse: function (string) {
18819
- return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
18820
- return numberMap[match];
18821
- });
18822
- },
18823
- postformat: function (string) {
18824
- return string.replace(/\d/g, function (match) {
18825
- return symbolMap[match];
18826
- });
18827
- },
18828
- // refer http://ta.wikipedia.org/s/1er1
18829
- meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
18830
- meridiem : function (hour, minute, isLower) {
18831
- if (hour < 2) {
18832
- return ' யாமம்';
18833
- } else if (hour < 6) {
18834
- return ' வைகறை'; // வைகறை
18835
- } else if (hour < 10) {
18836
- return ' காலை'; // காலை
18837
- } else if (hour < 14) {
18838
- return ' நண்பகல்'; // நண்பகல்
18839
- } else if (hour < 18) {
18840
- return ' எற்பாடு'; // எற்பாடு
18841
- } else if (hour < 22) {
18842
- return ' மாலை'; // மாலை
18843
- } else {
18844
- return ' யாமம்';
18845
- }
18846
- },
18847
- meridiemHour : function (hour, meridiem) {
18848
- if (hour === 12) {
18849
- hour = 0;
18850
- }
18851
- if (meridiem === 'யாமம்') {
18852
- return hour < 2 ? hour : hour + 12;
18853
- } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
18854
- return hour;
18855
- } else if (meridiem === 'நண்பகல்') {
18856
- return hour >= 10 ? hour : hour + 12;
18857
- } else {
18858
- return hour + 12;
18859
- }
18860
- },
18861
- week : {
18862
- dow : 0, // Sunday is the first day of the week.
18863
- doy : 6 // The week that contains Jan 1st is the first week of the year.
18864
- }
18865
- });
18866
-
18867
- return ta;
18868
-
18869
- })));
18870
-
18871
-
18872
- /***/ }),
18873
-
18874
- /***/ "./node_modules/moment/locale/te.js":
18875
- /*!******************************************!*\
18876
- !*** ./node_modules/moment/locale/te.js ***!
18877
- \******************************************/
18878
- /*! no static exports found */
18879
- /***/ (function(module, exports, __webpack_require__) {
18880
-
18881
- //! moment.js locale configuration
18882
-
18883
- ;(function (global, factory) {
18884
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18885
- undefined
18886
- }(this, (function (moment) { 'use strict';
18887
-
18888
-
18889
- var te = moment.defineLocale('te', {
18890
- months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
18891
- monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
18892
- monthsParseExact : true,
18893
- weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
18894
- weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
18895
- weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
18896
- longDateFormat : {
18897
- LT : 'A h:mm',
18898
- LTS : 'A h:mm:ss',
18899
- L : 'DD/MM/YYYY',
18900
- LL : 'D MMMM YYYY',
18901
- LLL : 'D MMMM YYYY, A h:mm',
18902
- LLLL : 'dddd, D MMMM YYYY, A h:mm'
18903
- },
18904
- calendar : {
18905
- sameDay : '[నేడు] LT',
18906
- nextDay : '[రేపు] LT',
18907
- nextWeek : 'dddd, LT',
18908
- lastDay : '[నిన్న] LT',
18909
- lastWeek : '[గత] dddd, LT',
18910
- sameElse : 'L'
18911
- },
18912
- relativeTime : {
18913
- future : '%s లో',
18914
- past : '%s క్రితం',
18915
- s : 'కొన్ని క్షణాలు',
18916
- ss : '%d సెకన్లు',
18917
- m : 'ఒక నిమిషం',
18918
- mm : '%d నిమిషాలు',
18919
- h : 'ఒక గంట',
18920
- hh : '%d గంటలు',
18921
- d : 'ఒక రోజు',
18922
- dd : '%d రోజులు',
18923
- M : 'ఒక నెల',
18924
- MM : '%d నెలలు',
18925
- y : 'ఒక సంవత్సరం',
18926
- yy : '%d సంవత్సరాలు'
18927
- },
18928
- dayOfMonthOrdinalParse : /\d{1,2}వ/,
18929
- ordinal : '%dవ',
18930
- meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
18931
- meridiemHour : function (hour, meridiem) {
18932
- if (hour === 12) {
18933
- hour = 0;
18934
- }
18935
- if (meridiem === 'రాత్రి') {
18936
- return hour < 4 ? hour : hour + 12;
18937
- } else if (meridiem === 'ఉదయం') {
18938
- return hour;
18939
- } else if (meridiem === 'మధ్యాహ్నం') {
18940
- return hour >= 10 ? hour : hour + 12;
18941
- } else if (meridiem === 'సాయంత్రం') {
18942
- return hour + 12;
18943
- }
18944
- },
18945
- meridiem : function (hour, minute, isLower) {
18946
- if (hour < 4) {
18947
- return 'రాత్రి';
18948
- } else if (hour < 10) {
18949
- return 'ఉదయం';
18950
- } else if (hour < 17) {
18951
- return 'మధ్యాహ్నం';
18952
- } else if (hour < 20) {
18953
- return 'సాయంత్రం';
18954
- } else {
18955
- return 'రాత్రి';
18956
- }
18957
- },
18958
- week : {
18959
- dow : 0, // Sunday is the first day of the week.
18960
- doy : 6 // The week that contains Jan 1st is the first week of the year.
18961
- }
18962
- });
18963
-
18964
- return te;
18965
-
18966
- })));
18967
-
18968
-
18969
- /***/ }),
18970
-
18971
- /***/ "./node_modules/moment/locale/tet.js":
18972
- /*!*******************************************!*\
18973
- !*** ./node_modules/moment/locale/tet.js ***!
18974
- \*******************************************/
18975
- /*! no static exports found */
18976
- /***/ (function(module, exports, __webpack_require__) {
18977
-
18978
- //! moment.js locale configuration
18979
-
18980
- ;(function (global, factory) {
18981
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18982
- undefined
18983
- }(this, (function (moment) { 'use strict';
18984
-
18985
-
18986
- var tet = moment.defineLocale('tet', {
18987
- months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
18988
- monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
18989
- weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
18990
- weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
18991
- weekdaysMin : 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
18992
- longDateFormat : {
18993
- LT : 'HH:mm',
18994
- LTS : 'HH:mm:ss',
18995
- L : 'DD/MM/YYYY',
18996
- LL : 'D MMMM YYYY',
18997
- LLL : 'D MMMM YYYY HH:mm',
18998
- LLLL : 'dddd, D MMMM YYYY HH:mm'
18999
- },
19000
- calendar : {
19001
- sameDay: '[Ohin iha] LT',
19002
- nextDay: '[Aban iha] LT',
19003
- nextWeek: 'dddd [iha] LT',
19004
- lastDay: '[Horiseik iha] LT',
19005
- lastWeek: 'dddd [semana kotuk] [iha] LT',
19006
- sameElse: 'L'
19007
- },
19008
- relativeTime : {
19009
- future : 'iha %s',
19010
- past : '%s liuba',
19011
- s : 'minutu balun',
19012
- ss : 'minutu %d',
19013
- m : 'minutu ida',
19014
- mm : 'minutu %d',
19015
- h : 'oras ida',
19016
- hh : 'oras %d',
19017
- d : 'loron ida',
19018
- dd : 'loron %d',
19019
- M : 'fulan ida',
19020
- MM : 'fulan %d',
19021
- y : 'tinan ida',
19022
- yy : 'tinan %d'
19023
- },
19024
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
19025
- ordinal : function (number) {
19026
- var b = number % 10,
19027
- output = (~~(number % 100 / 10) === 1) ? 'th' :
19028
- (b === 1) ? 'st' :
19029
- (b === 2) ? 'nd' :
19030
- (b === 3) ? 'rd' : 'th';
19031
- return number + output;
19032
- },
19033
- week : {
19034
- dow : 1, // Monday is the first day of the week.
19035
- doy : 4 // The week that contains Jan 4th is the first week of the year.
19036
- }
19037
- });
19038
-
19039
- return tet;
19040
-
19041
- })));
19042
-
19043
-
19044
- /***/ }),
19045
-
19046
- /***/ "./node_modules/moment/locale/tg.js":
19047
- /*!******************************************!*\
19048
- !*** ./node_modules/moment/locale/tg.js ***!
19049
- \******************************************/
19050
- /*! no static exports found */
19051
- /***/ (function(module, exports, __webpack_require__) {
19052
-
19053
- //! moment.js locale configuration
19054
-
19055
- ;(function (global, factory) {
19056
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19057
- undefined
19058
- }(this, (function (moment) { 'use strict';
19059
-
19060
-
19061
- var suffixes = {
19062
- 0: '-ум',
19063
- 1: '-ум',
19064
- 2: '-юм',
19065
- 3: '-юм',
19066
- 4: '-ум',
19067
- 5: '-ум',
19068
- 6: '-ум',
19069
- 7: '-ум',
19070
- 8: '-ум',
19071
- 9: '-ум',
19072
- 10: '-ум',
19073
- 12: '-ум',
19074
- 13: '-ум',
19075
- 20: '-ум',
19076
- 30: '-юм',
19077
- 40: '-ум',
19078
- 50: '-ум',
19079
- 60: '-ум',
19080
- 70: '-ум',
19081
- 80: '-ум',
19082
- 90: '-ум',
19083
- 100: '-ум'
19084
- };
19085
-
19086
- var tg = moment.defineLocale('tg', {
19087
- months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
19088
- monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
19089
- weekdays : 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
19090
- weekdaysShort : 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
19091
- weekdaysMin : 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
19092
- longDateFormat : {
19093
- LT : 'HH:mm',
19094
- LTS : 'HH:mm:ss',
19095
- L : 'DD/MM/YYYY',
19096
- LL : 'D MMMM YYYY',
19097
- LLL : 'D MMMM YYYY HH:mm',
19098
- LLLL : 'dddd, D MMMM YYYY HH:mm'
19099
- },
19100
- calendar : {
19101
- sameDay : '[Имрӯз соати] LT',
19102
- nextDay : '[Пагоҳ соати] LT',
19103
- lastDay : '[Дирӯз соати] LT',
19104
- nextWeek : 'dddd[и] [ҳафтаи оянда соати] LT',
19105
- lastWeek : 'dddd[и] [ҳафтаи гузашта соати] LT',
19106
- sameElse : 'L'
19107
- },
19108
- relativeTime : {
19109
- future : 'баъди %s',
19110
- past : '%s пеш',
19111
- s : 'якчанд сония',
19112
- m : 'як дақиқа',
19113
- mm : '%d дақиқа',
19114
- h : 'як соат',
19115
- hh : '%d соат',
19116
- d : 'як рӯз',
19117
- dd : '%d рӯз',
19118
- M : 'як моҳ',
19119
- MM : '%d моҳ',
19120
- y : 'як сол',
19121
- yy : '%d сол'
19122
- },
19123
- meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
19124
- meridiemHour: function (hour, meridiem) {
19125
- if (hour === 12) {
19126
- hour = 0;
19127
- }
19128
- if (meridiem === 'шаб') {
19129
- return hour < 4 ? hour : hour + 12;
19130
- } else if (meridiem === 'субҳ') {
19131
- return hour;
19132
- } else if (meridiem === 'рӯз') {
19133
- return hour >= 11 ? hour : hour + 12;
19134
- } else if (meridiem === 'бегоҳ') {
19135
- return hour + 12;
19136
- }
19137
- },
19138
- meridiem: function (hour, minute, isLower) {
19139
- if (hour < 4) {
19140
- return 'шаб';
19141
- } else if (hour < 11) {
19142
- return 'субҳ';
19143
- } else if (hour < 16) {
19144
- return 'рӯз';
19145
- } else if (hour < 19) {
19146
- return 'бегоҳ';
19147
- } else {
19148
- return 'шаб';
19149
- }
19150
- },
19151
- dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
19152
- ordinal: function (number) {
19153
- var a = number % 10,
19154
- b = number >= 100 ? 100 : null;
19155
- return number + (suffixes[number] || suffixes[a] || suffixes[b]);
19156
- },
19157
- week : {
19158
- dow : 1, // Monday is the first day of the week.
19159
- doy : 7 // The week that contains Jan 1th is the first week of the year.
19160
- }
19161
- });
19162
-
19163
- return tg;
19164
-
19165
- })));
19166
-
19167
-
19168
- /***/ }),
19169
-
19170
- /***/ "./node_modules/moment/locale/th.js":
19171
- /*!******************************************!*\
19172
- !*** ./node_modules/moment/locale/th.js ***!
19173
- \******************************************/
19174
- /*! no static exports found */
19175
- /***/ (function(module, exports, __webpack_require__) {
19176
-
19177
- //! moment.js locale configuration
19178
-
19179
- ;(function (global, factory) {
19180
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19181
- undefined
19182
- }(this, (function (moment) { 'use strict';
19183
-
19184
-
19185
- var th = moment.defineLocale('th', {
19186
- months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
19187
- monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
19188
- monthsParseExact: true,
19189
- weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
19190
- weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
19191
- weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
19192
- weekdaysParseExact : true,
19193
- longDateFormat : {
19194
- LT : 'H:mm',
19195
- LTS : 'H:mm:ss',
19196
- L : 'DD/MM/YYYY',
19197
- LL : 'D MMMM YYYY',
19198
- LLL : 'D MMMM YYYY เวลา H:mm',
19199
- LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
19200
- },
19201
- meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
19202
- isPM: function (input) {
19203
- return input === 'หลังเที่ยง';
19204
- },
19205
- meridiem : function (hour, minute, isLower) {
19206
- if (hour < 12) {
19207
- return 'ก่อนเที่ยง';
19208
- } else {
19209
- return 'หลังเที่ยง';
19210
- }
19211
- },
19212
- calendar : {
19213
- sameDay : '[วันนี้ เวลา] LT',
19214
- nextDay : '[พรุ่งนี้ เวลา] LT',
19215
- nextWeek : 'dddd[หน้า เวลา] LT',
19216
- lastDay : '[เมื่อวานนี้ เวลา] LT',
19217
- lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
19218
- sameElse : 'L'
19219
- },
19220
- relativeTime : {
19221
- future : 'อีก %s',
19222
- past : '%sที่แล้ว',
19223
- s : 'ไม่กี่วินาที',
19224
- ss : '%d วินาที',
19225
- m : '1 นาที',
19226
- mm : '%d นาที',
19227
- h : '1 ชั่วโมง',
19228
- hh : '%d ชั่วโมง',
19229
- d : '1 วัน',
19230
- dd : '%d วัน',
19231
- M : '1 เดือน',
19232
- MM : '%d เดือน',
19233
- y : '1 ปี',
19234
- yy : '%d ปี'
19235
- }
19236
- });
19237
-
19238
- return th;
19239
-
19240
- })));
19241
-
19242
-
19243
- /***/ }),
19244
-
19245
- /***/ "./node_modules/moment/locale/tl-ph.js":
19246
- /*!*********************************************!*\
19247
- !*** ./node_modules/moment/locale/tl-ph.js ***!
19248
- \*********************************************/
19249
- /*! no static exports found */
19250
- /***/ (function(module, exports, __webpack_require__) {
19251
-
19252
- //! moment.js locale configuration
19253
-
19254
- ;(function (global, factory) {
19255
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19256
- undefined
19257
- }(this, (function (moment) { 'use strict';
19258
-
19259
-
19260
- var tlPh = moment.defineLocale('tl-ph', {
19261
- months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
19262
- monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
19263
- weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
19264
- weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
19265
- weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
19266
- longDateFormat : {
19267
- LT : 'HH:mm',
19268
- LTS : 'HH:mm:ss',
19269
- L : 'MM/D/YYYY',
19270
- LL : 'MMMM D, YYYY',
19271
- LLL : 'MMMM D, YYYY HH:mm',
19272
- LLLL : 'dddd, MMMM DD, YYYY HH:mm'
19273
- },
19274
- calendar : {
19275
- sameDay: 'LT [ngayong araw]',
19276
- nextDay: '[Bukas ng] LT',
19277
- nextWeek: 'LT [sa susunod na] dddd',
19278
- lastDay: 'LT [kahapon]',
19279
- lastWeek: 'LT [noong nakaraang] dddd',
19280
- sameElse: 'L'
19281
- },
19282
- relativeTime : {
19283
- future : 'sa loob ng %s',
19284
- past : '%s ang nakalipas',
19285
- s : 'ilang segundo',
19286
- ss : '%d segundo',
19287
- m : 'isang minuto',
19288
- mm : '%d minuto',
19289
- h : 'isang oras',
19290
- hh : '%d oras',
19291
- d : 'isang araw',
19292
- dd : '%d araw',
19293
- M : 'isang buwan',
19294
- MM : '%d buwan',
19295
- y : 'isang taon',
19296
- yy : '%d taon'
19297
- },
19298
- dayOfMonthOrdinalParse: /\d{1,2}/,
19299
- ordinal : function (number) {
19300
- return number;
19301
- },
19302
- week : {
19303
- dow : 1, // Monday is the first day of the week.
19304
- doy : 4 // The week that contains Jan 4th is the first week of the year.
19305
- }
19306
- });
19307
-
19308
- return tlPh;
19309
-
19310
- })));
19311
-
19312
-
19313
- /***/ }),
19314
-
19315
- /***/ "./node_modules/moment/locale/tlh.js":
19316
- /*!*******************************************!*\
19317
- !*** ./node_modules/moment/locale/tlh.js ***!
19318
- \*******************************************/
19319
- /*! no static exports found */
19320
- /***/ (function(module, exports, __webpack_require__) {
19321
-
19322
- //! moment.js locale configuration
19323
-
19324
- ;(function (global, factory) {
19325
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19326
- undefined
19327
- }(this, (function (moment) { 'use strict';
19328
-
19329
-
19330
- var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
19331
-
19332
- function translateFuture(output) {
19333
- var time = output;
19334
- time = (output.indexOf('jaj') !== -1) ?
19335
- time.slice(0, -3) + 'leS' :
19336
- (output.indexOf('jar') !== -1) ?
19337
- time.slice(0, -3) + 'waQ' :
19338
- (output.indexOf('DIS') !== -1) ?
19339
- time.slice(0, -3) + 'nem' :
19340
- time + ' pIq';
19341
- return time;
19342
- }
19343
-
19344
- function translatePast(output) {
19345
- var time = output;
19346
- time = (output.indexOf('jaj') !== -1) ?
19347
- time.slice(0, -3) + 'Hu’' :
19348
- (output.indexOf('jar') !== -1) ?
19349
- time.slice(0, -3) + 'wen' :
19350
- (output.indexOf('DIS') !== -1) ?
19351
- time.slice(0, -3) + 'ben' :
19352
- time + ' ret';
19353
- return time;
19354
- }
19355
-
19356
- function translate(number, withoutSuffix, string, isFuture) {
19357
- var numberNoun = numberAsNoun(number);
19358
- switch (string) {
19359
- case 'ss':
19360
- return numberNoun + ' lup';
19361
- case 'mm':
19362
- return numberNoun + ' tup';
19363
- case 'hh':
19364
- return numberNoun + ' rep';
19365
- case 'dd':
19366
- return numberNoun + ' jaj';
19367
- case 'MM':
19368
- return numberNoun + ' jar';
19369
- case 'yy':
19370
- return numberNoun + ' DIS';
19371
- }
19372
- }
19373
-
19374
- function numberAsNoun(number) {
19375
- var hundred = Math.floor((number % 1000) / 100),
19376
- ten = Math.floor((number % 100) / 10),
19377
- one = number % 10,
19378
- word = '';
19379
- if (hundred > 0) {
19380
- word += numbersNouns[hundred] + 'vatlh';
19381
- }
19382
- if (ten > 0) {
19383
- word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
19384
- }
19385
- if (one > 0) {
19386
- word += ((word !== '') ? ' ' : '') + numbersNouns[one];
19387
- }
19388
- return (word === '') ? 'pagh' : word;
19389
- }
19390
-
19391
- var tlh = moment.defineLocale('tlh', {
19392
- months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
19393
- monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
19394
- monthsParseExact : true,
19395
- weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
19396
- weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
19397
- weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
19398
- longDateFormat : {
19399
- LT : 'HH:mm',
19400
- LTS : 'HH:mm:ss',
19401
- L : 'DD.MM.YYYY',
19402
- LL : 'D MMMM YYYY',
19403
- LLL : 'D MMMM YYYY HH:mm',
19404
- LLLL : 'dddd, D MMMM YYYY HH:mm'
19405
- },
19406
- calendar : {
19407
- sameDay: '[DaHjaj] LT',
19408
- nextDay: '[wa’leS] LT',
19409
- nextWeek: 'LLL',
19410
- lastDay: '[wa’Hu’] LT',
19411
- lastWeek: 'LLL',
19412
- sameElse: 'L'
19413
- },
19414
- relativeTime : {
19415
- future : translateFuture,
19416
- past : translatePast,
19417
- s : 'puS lup',
19418
- ss : translate,
19419
- m : 'wa’ tup',
19420
- mm : translate,
19421
- h : 'wa’ rep',
19422
- hh : translate,
19423
- d : 'wa’ jaj',
19424
- dd : translate,
19425
- M : 'wa’ jar',
19426
- MM : translate,
19427
- y : 'wa’ DIS',
19428
- yy : translate
19429
- },
19430
- dayOfMonthOrdinalParse: /\d{1,2}\./,
19431
- ordinal : '%d.',
19432
- week : {
19433
- dow : 1, // Monday is the first day of the week.
19434
- doy : 4 // The week that contains Jan 4th is the first week of the year.
19435
- }
19436
- });
19437
-
19438
- return tlh;
19439
-
19440
- })));
19441
-
19442
-
19443
- /***/ }),
19444
-
19445
- /***/ "./node_modules/moment/locale/tr.js":
19446
- /*!******************************************!*\
19447
- !*** ./node_modules/moment/locale/tr.js ***!
19448
- \******************************************/
19449
- /*! no static exports found */
19450
- /***/ (function(module, exports, __webpack_require__) {
19451
-
19452
-
19453
- ;(function (global, factory) {
19454
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19455
- undefined
19456
- }(this, (function (moment) { 'use strict';
19457
-
19458
- var suffixes = {
19459
- 1: '\'inci',
19460
- 5: '\'inci',
19461
- 8: '\'inci',
19462
- 70: '\'inci',
19463
- 80: '\'inci',
19464
- 2: '\'nci',
19465
- 7: '\'nci',
19466
- 20: '\'nci',
19467
- 50: '\'nci',
19468
- 3: '\'üncü',
19469
- 4: '\'üncü',
19470
- 100: '\'üncü',
19471
- 6: '\'ncı',
19472
- 9: '\'uncu',
19473
- 10: '\'uncu',
19474
- 30: '\'uncu',
19475
- 60: '\'ıncı',
19476
- 90: '\'ıncı'
19477
- };
19478
-
19479
- var tr = moment.defineLocale('tr', {
19480
- months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
19481
- monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
19482
- weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
19483
- weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
19484
- weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
19485
- longDateFormat : {
19486
- LT : 'HH:mm',
19487
- LTS : 'HH:mm:ss',
19488
- L : 'DD.MM.YYYY',
19489
- LL : 'D MMMM YYYY',
19490
- LLL : 'D MMMM YYYY HH:mm',
19491
- LLLL : 'dddd, D MMMM YYYY HH:mm'
19492
- },
19493
- calendar : {
19494
- sameDay : '[bugün saat] LT',
19495
- nextDay : '[yarın saat] LT',
19496
- nextWeek : '[gelecek] dddd [saat] LT',
19497
- lastDay : '[dün] LT',
19498
- lastWeek : '[geçen] dddd [saat] LT',
19499
- sameElse : 'L'
19500
- },
19501
- relativeTime : {
19502
- future : '%s sonra',
19503
- past : '%s önce',
19504
- s : 'birkaç saniye',
19505
- ss : '%d saniye',
19506
- m : 'bir dakika',
19507
- mm : '%d dakika',
19508
- h : 'bir saat',
19509
- hh : '%d saat',
19510
- d : 'bir gün',
19511
- dd : '%d gün',
19512
- M : 'bir ay',
19513
- MM : '%d ay',
19514
- y : 'bir yıl',
19515
- yy : '%d yıl'
19516
- },
19517
- ordinal: function (number, period) {
19518
- switch (period) {
19519
- case 'd':
19520
- case 'D':
19521
- case 'Do':
19522
- case 'DD':
19523
- return number;
19524
- default:
19525
- if (number === 0) { // special case for zero
19526
- return number + '\'ıncı';
19527
- }
19528
- var a = number % 10,
19529
- b = number % 100 - a,
19530
- c = number >= 100 ? 100 : null;
19531
- return number + (suffixes[a] || suffixes[b] || suffixes[c]);
19532
- }
19533
- },
19534
- week : {
19535
- dow : 1, // Monday is the first day of the week.
19536
- doy : 7 // The week that contains Jan 1st is the first week of the year.
19537
- }
19538
- });
19539
-
19540
- return tr;
19541
-
19542
- })));
19543
-
19544
-
19545
- /***/ }),
19546
-
19547
- /***/ "./node_modules/moment/locale/tzl.js":
19548
- /*!*******************************************!*\
19549
- !*** ./node_modules/moment/locale/tzl.js ***!
19550
- \*******************************************/
19551
- /*! no static exports found */
19552
- /***/ (function(module, exports, __webpack_require__) {
19553
-
19554
- //! moment.js locale configuration
19555
-
19556
- ;(function (global, factory) {
19557
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19558
- undefined
19559
- }(this, (function (moment) { 'use strict';
19560
-
19561
-
19562
- // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
19563
- // This is currently too difficult (maybe even impossible) to add.
19564
- var tzl = moment.defineLocale('tzl', {
19565
- months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
19566
- monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
19567
- weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
19568
- weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
19569
- weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
19570
- longDateFormat : {
19571
- LT : 'HH.mm',
19572
- LTS : 'HH.mm.ss',
19573
- L : 'DD.MM.YYYY',
19574
- LL : 'D. MMMM [dallas] YYYY',
19575
- LLL : 'D. MMMM [dallas] YYYY HH.mm',
19576
- LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
19577
- },
19578
- meridiemParse: /d\'o|d\'a/i,
19579
- isPM : function (input) {
19580
- return 'd\'o' === input.toLowerCase();
19581
- },
19582
- meridiem : function (hours, minutes, isLower) {
19583
- if (hours > 11) {
19584
- return isLower ? 'd\'o' : 'D\'O';
19585
- } else {
19586
- return isLower ? 'd\'a' : 'D\'A';
19587
- }
19588
- },
19589
- calendar : {
19590
- sameDay : '[oxhi à] LT',
19591
- nextDay : '[demà à] LT',
19592
- nextWeek : 'dddd [à] LT',
19593
- lastDay : '[ieiri à] LT',
19594
- lastWeek : '[sür el] dddd [lasteu à] LT',
19595
- sameElse : 'L'
19596
- },
19597
- relativeTime : {
19598
- future : 'osprei %s',
19599
- past : 'ja%s',
19600
- s : processRelativeTime,
19601
- ss : processRelativeTime,
19602
- m : processRelativeTime,
19603
- mm : processRelativeTime,
19604
- h : processRelativeTime,
19605
- hh : processRelativeTime,
19606
- d : processRelativeTime,
19607
- dd : processRelativeTime,
19608
- M : processRelativeTime,
19609
- MM : processRelativeTime,
19610
- y : processRelativeTime,
19611
- yy : processRelativeTime
19612
- },
19613
- dayOfMonthOrdinalParse: /\d{1,2}\./,
19614
- ordinal : '%d.',
19615
- week : {
19616
- dow : 1, // Monday is the first day of the week.
19617
- doy : 4 // The week that contains Jan 4th is the first week of the year.
19618
- }
19619
- });
19620
-
19621
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
19622
- var format = {
19623
- 's': ['viensas secunds', '\'iensas secunds'],
19624
- 'ss': [number + ' secunds', '' + number + ' secunds'],
19625
- 'm': ['\'n míut', '\'iens míut'],
19626
- 'mm': [number + ' míuts', '' + number + ' míuts'],
19627
- 'h': ['\'n þora', '\'iensa þora'],
19628
- 'hh': [number + ' þoras', '' + number + ' þoras'],
19629
- 'd': ['\'n ziua', '\'iensa ziua'],
19630
- 'dd': [number + ' ziuas', '' + number + ' ziuas'],
19631
- 'M': ['\'n mes', '\'iens mes'],
19632
- 'MM': [number + ' mesen', '' + number + ' mesen'],
19633
- 'y': ['\'n ar', '\'iens ar'],
19634
- 'yy': [number + ' ars', '' + number + ' ars']
19635
- };
19636
- return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
19637
- }
19638
-
19639
- return tzl;
19640
-
19641
- })));
19642
-
19643
-
19644
- /***/ }),
19645
-
19646
- /***/ "./node_modules/moment/locale/tzm-latn.js":
19647
- /*!************************************************!*\
19648
- !*** ./node_modules/moment/locale/tzm-latn.js ***!
19649
- \************************************************/
19650
- /*! no static exports found */
19651
- /***/ (function(module, exports, __webpack_require__) {
19652
-
19653
- //! moment.js locale configuration
19654
-
19655
- ;(function (global, factory) {
19656
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19657
- undefined
19658
- }(this, (function (moment) { 'use strict';
19659
-
19660
-
19661
- var tzmLatn = moment.defineLocale('tzm-latn', {
19662
- months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
19663
- monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
19664
- weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
19665
- weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
19666
- weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
19667
- longDateFormat : {
19668
- LT : 'HH:mm',
19669
- LTS : 'HH:mm:ss',
19670
- L : 'DD/MM/YYYY',
19671
- LL : 'D MMMM YYYY',
19672
- LLL : 'D MMMM YYYY HH:mm',
19673
- LLLL : 'dddd D MMMM YYYY HH:mm'
19674
- },
19675
- calendar : {
19676
- sameDay: '[asdkh g] LT',
19677
- nextDay: '[aska g] LT',
19678
- nextWeek: 'dddd [g] LT',
19679
- lastDay: '[assant g] LT',
19680
- lastWeek: 'dddd [g] LT',
19681
- sameElse: 'L'
19682
- },
19683
- relativeTime : {
19684
- future : 'dadkh s yan %s',
19685
- past : 'yan %s',
19686
- s : 'imik',
19687
- ss : '%d imik',
19688
- m : 'minuḍ',
19689
- mm : '%d minuḍ',
19690
- h : 'saɛa',
19691
- hh : '%d tassaɛin',
19692
- d : 'ass',
19693
- dd : '%d ossan',
19694
- M : 'ayowr',
19695
- MM : '%d iyyirn',
19696
- y : 'asgas',
19697
- yy : '%d isgasn'
19698
- },
19699
- week : {
19700
- dow : 6, // Saturday is the first day of the week.
19701
- doy : 12 // The week that contains Jan 1st is the first week of the year.
19702
- }
19703
- });
19704
-
19705
- return tzmLatn;
19706
-
19707
- })));
19708
-
19709
-
19710
- /***/ }),
19711
-
19712
- /***/ "./node_modules/moment/locale/tzm.js":
19713
- /*!*******************************************!*\
19714
- !*** ./node_modules/moment/locale/tzm.js ***!
19715
- \*******************************************/
19716
- /*! no static exports found */
19717
- /***/ (function(module, exports, __webpack_require__) {
19718
-
19719
- //! moment.js locale configuration
19720
-
19721
- ;(function (global, factory) {
19722
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19723
- undefined
19724
- }(this, (function (moment) { 'use strict';
19725
-
19726
-
19727
- var tzm = moment.defineLocale('tzm', {
19728
- months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
19729
- monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
19730
- weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19731
- weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19732
- weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19733
- longDateFormat : {
19734
- LT : 'HH:mm',
19735
- LTS: 'HH:mm:ss',
19736
- L : 'DD/MM/YYYY',
19737
- LL : 'D MMMM YYYY',
19738
- LLL : 'D MMMM YYYY HH:mm',
19739
- LLLL : 'dddd D MMMM YYYY HH:mm'
19740
- },
19741
- calendar : {
19742
- sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
19743
- nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
19744
- nextWeek: 'dddd [ⴴ] LT',
19745
- lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
19746
- lastWeek: 'dddd [ⴴ] LT',
19747
- sameElse: 'L'
19748
- },
19749
- relativeTime : {
19750
- future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
19751
- past : 'ⵢⴰⵏ %s',
19752
- s : 'ⵉⵎⵉⴽ',
19753
- ss : '%d ⵉⵎⵉⴽ',
19754
- m : 'ⵎⵉⵏⵓⴺ',
19755
- mm : '%d ⵎⵉⵏⵓⴺ',
19756
- h : 'ⵙⴰⵄⴰ',
19757
- hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
19758
- d : 'ⴰⵙⵙ',
19759
- dd : '%d oⵙⵙⴰⵏ',
19760
- M : 'ⴰⵢoⵓⵔ',
19761
- MM : '%d ⵉⵢⵢⵉⵔⵏ',
19762
- y : 'ⴰⵙⴳⴰⵙ',
19763
- yy : '%d ⵉⵙⴳⴰⵙⵏ'
19764
- },
19765
- week : {
19766
- dow : 6, // Saturday is the first day of the week.
19767
- doy : 12 // The week that contains Jan 1st is the first week of the year.
19768
- }
19769
- });
19770
-
19771
- return tzm;
19772
-
19773
- })));
19774
-
19775
-
19776
- /***/ }),
19777
-
19778
- /***/ "./node_modules/moment/locale/ug-cn.js":
19779
- /*!*********************************************!*\
19780
- !*** ./node_modules/moment/locale/ug-cn.js ***!
19781
- \*********************************************/
19782
- /*! no static exports found */
19783
- /***/ (function(module, exports, __webpack_require__) {
19784
-
19785
- //! moment.js language configuration
19786
-
19787
- ;(function (global, factory) {
19788
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19789
- undefined
19790
- }(this, (function (moment) { 'use strict';
19791
-
19792
-
19793
- var ugCn = moment.defineLocale('ug-cn', {
19794
- months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
19795
- '_'
19796
- ),
19797
- monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
19798
- '_'
19799
- ),
19800
- weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
19801
- '_'
19802
- ),
19803
- weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
19804
- weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
19805
- longDateFormat: {
19806
- LT: 'HH:mm',
19807
- LTS: 'HH:mm:ss',
19808
- L: 'YYYY-MM-DD',
19809
- LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
19810
- LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
19811
- LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
19812
- },
19813
- meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
19814
- meridiemHour: function (hour, meridiem) {
19815
- if (hour === 12) {
19816
- hour = 0;
19817
- }
19818
- if (
19819
- meridiem === 'يېرىم كېچە' ||
19820
- meridiem === 'سەھەر' ||
19821
- meridiem === 'چۈشتىن بۇرۇن'
19822
- ) {
19823
- return hour;
19824
- } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
19825
- return hour + 12;
19826
- } else {
19827
- return hour >= 11 ? hour : hour + 12;
19828
- }
19829
- },
19830
- meridiem: function (hour, minute, isLower) {
19831
- var hm = hour * 100 + minute;
19832
- if (hm < 600) {
19833
- return 'يېرىم كېچە';
19834
- } else if (hm < 900) {
19835
- return 'سەھەر';
19836
- } else if (hm < 1130) {
19837
- return 'چۈشتىن بۇرۇن';
19838
- } else if (hm < 1230) {
19839
- return 'چۈش';
19840
- } else if (hm < 1800) {
19841
- return 'چۈشتىن كېيىن';
19842
- } else {
19843
- return 'كەچ';
19844
- }
19845
- },
19846
- calendar: {
19847
- sameDay: '[بۈگۈن سائەت] LT',
19848
- nextDay: '[ئەتە سائەت] LT',
19849
- nextWeek: '[كېلەركى] dddd [سائەت] LT',
19850
- lastDay: '[تۆنۈگۈن] LT',
19851
- lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
19852
- sameElse: 'L'
19853
- },
19854
- relativeTime: {
19855
- future: '%s كېيىن',
19856
- past: '%s بۇرۇن',
19857
- s: 'نەچچە سېكونت',
19858
- ss: '%d سېكونت',
19859
- m: 'بىر مىنۇت',
19860
- mm: '%d مىنۇت',
19861
- h: 'بىر سائەت',
19862
- hh: '%d سائەت',
19863
- d: 'بىر كۈن',
19864
- dd: '%d كۈن',
19865
- M: 'بىر ئاي',
19866
- MM: '%d ئاي',
19867
- y: 'بىر يىل',
19868
- yy: '%d يىل'
19869
- },
19870
-
19871
- dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
19872
- ordinal: function (number, period) {
19873
- switch (period) {
19874
- case 'd':
19875
- case 'D':
19876
- case 'DDD':
19877
- return number + '-كۈنى';
19878
- case 'w':
19879
- case 'W':
19880
- return number + '-ھەپتە';
19881
- default:
19882
- return number;
19883
- }
19884
- },
19885
- preparse: function (string) {
19886
- return string.replace(/،/g, ',');
19887
- },
19888
- postformat: function (string) {
19889
- return string.replace(/,/g, '،');
19890
- },
19891
- week: {
19892
- // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
19893
- dow: 1, // Monday is the first day of the week.
19894
- doy: 7 // The week that contains Jan 1st is the first week of the year.
19895
- }
19896
- });
19897
-
19898
- return ugCn;
19899
-
19900
- })));
19901
-
19902
-
19903
- /***/ }),
19904
-
19905
- /***/ "./node_modules/moment/locale/uk.js":
19906
- /*!******************************************!*\
19907
- !*** ./node_modules/moment/locale/uk.js ***!
19908
- \******************************************/
19909
- /*! no static exports found */
19910
- /***/ (function(module, exports, __webpack_require__) {
19911
-
19912
- //! moment.js locale configuration
19913
-
19914
- ;(function (global, factory) {
19915
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19916
- undefined
19917
- }(this, (function (moment) { 'use strict';
19918
-
19919
-
19920
- function plural(word, num) {
19921
- var forms = word.split('_');
19922
- return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
19923
- }
19924
- function relativeTimeWithPlural(number, withoutSuffix, key) {
19925
- var format = {
19926
- 'ss': withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
19927
- 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
19928
- 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
19929
- 'dd': 'день_дні_днів',
19930
- 'MM': 'місяць_місяці_місяців',
19931
- 'yy': 'рік_роки_років'
19932
- };
19933
- if (key === 'm') {
19934
- return withoutSuffix ? 'хвилина' : 'хвилину';
19935
- }
19936
- else if (key === 'h') {
19937
- return withoutSuffix ? 'година' : 'годину';
19938
- }
19939
- else {
19940
- return number + ' ' + plural(format[key], +number);
19941
- }
19942
- }
19943
- function weekdaysCaseReplace(m, format) {
19944
- var weekdays = {
19945
- 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
19946
- 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
19947
- 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
19948
- };
19949
-
19950
- if (!m) {
19951
- return weekdays['nominative'];
19952
- }
19953
-
19954
- var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
19955
- 'accusative' :
19956
- ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
19957
- 'genitive' :
19958
- 'nominative');
19959
- return weekdays[nounCase][m.day()];
19960
- }
19961
- function processHoursFunction(str) {
19962
- return function () {
19963
- return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
19964
- };
19965
- }
19966
-
19967
- var uk = moment.defineLocale('uk', {
19968
- months : {
19969
- 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
19970
- 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
19971
- },
19972
- monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
19973
- weekdays : weekdaysCaseReplace,
19974
- weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
19975
- weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
19976
- longDateFormat : {
19977
- LT : 'HH:mm',
19978
- LTS : 'HH:mm:ss',
19979
- L : 'DD.MM.YYYY',
19980
- LL : 'D MMMM YYYY р.',
19981
- LLL : 'D MMMM YYYY р., HH:mm',
19982
- LLLL : 'dddd, D MMMM YYYY р., HH:mm'
19983
- },
19984
- calendar : {
19985
- sameDay: processHoursFunction('[Сьогодні '),
19986
- nextDay: processHoursFunction('[Завтра '),
19987
- lastDay: processHoursFunction('[Вчора '),
19988
- nextWeek: processHoursFunction('[У] dddd ['),
19989
- lastWeek: function () {
19990
- switch (this.day()) {
19991
- case 0:
19992
- case 3:
19993
- case 5:
19994
- case 6:
19995
- return processHoursFunction('[Минулої] dddd [').call(this);
19996
- case 1:
19997
- case 2:
19998
- case 4:
19999
- return processHoursFunction('[Минулого] dddd [').call(this);
20000
- }
20001
- },
20002
- sameElse: 'L'
20003
- },
20004
- relativeTime : {
20005
- future : 'за %s',
20006
- past : '%s тому',
20007
- s : 'декілька секунд',
20008
- ss : relativeTimeWithPlural,
20009
- m : relativeTimeWithPlural,
20010
- mm : relativeTimeWithPlural,
20011
- h : 'годину',
20012
- hh : relativeTimeWithPlural,
20013
- d : 'день',
20014
- dd : relativeTimeWithPlural,
20015
- M : 'місяць',
20016
- MM : relativeTimeWithPlural,
20017
- y : 'рік',
20018
- yy : relativeTimeWithPlural
20019
- },
20020
- // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
20021
- meridiemParse: /ночі|ранку|дня|вечора/,
20022
- isPM: function (input) {
20023
- return /^(дня|вечора)$/.test(input);
20024
- },
20025
- meridiem : function (hour, minute, isLower) {
20026
- if (hour < 4) {
20027
- return 'ночі';
20028
- } else if (hour < 12) {
20029
- return 'ранку';
20030
- } else if (hour < 17) {
20031
- return 'дня';
20032
- } else {
20033
- return 'вечора';
20034
- }
20035
- },
20036
- dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
20037
- ordinal: function (number, period) {
20038
- switch (period) {
20039
- case 'M':
20040
- case 'd':
20041
- case 'DDD':
20042
- case 'w':
20043
- case 'W':
20044
- return number + '-й';
20045
- case 'D':
20046
- return number + '-го';
20047
- default:
20048
- return number;
20049
- }
20050
- },
20051
- week : {
20052
- dow : 1, // Monday is the first day of the week.
20053
- doy : 7 // The week that contains Jan 1st is the first week of the year.
20054
- }
20055
- });
20056
-
20057
- return uk;
20058
-
20059
- })));
20060
-
20061
-
20062
- /***/ }),
20063
-
20064
- /***/ "./node_modules/moment/locale/ur.js":
20065
- /*!******************************************!*\
20066
- !*** ./node_modules/moment/locale/ur.js ***!
20067
- \******************************************/
20068
- /*! no static exports found */
20069
- /***/ (function(module, exports, __webpack_require__) {
20070
-
20071
- //! moment.js locale configuration
20072
-
20073
- ;(function (global, factory) {
20074
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20075
- undefined
20076
- }(this, (function (moment) { 'use strict';
20077
-
20078
-
20079
- var months = [
20080
- 'جنوری',
20081
- 'فروری',
20082
- 'مارچ',
20083
- 'اپریل',
20084
- 'مئی',
20085
- 'جون',
20086
- 'جولائی',
20087
- 'اگست',
20088
- 'ستمبر',
20089
- 'اکتوبر',
20090
- 'نومبر',
20091
- 'دسمبر'
20092
- ];
20093
- var days = [
20094
- 'اتوار',
20095
- 'پیر',
20096
- 'منگل',
20097
- 'بدھ',
20098
- 'جمعرات',
20099
- 'جمعہ',
20100
- 'ہفتہ'
20101
- ];
20102
-
20103
- var ur = moment.defineLocale('ur', {
20104
- months : months,
20105
- monthsShort : months,
20106
- weekdays : days,
20107
- weekdaysShort : days,
20108
- weekdaysMin : days,
20109
- longDateFormat : {
20110
- LT : 'HH:mm',
20111
- LTS : 'HH:mm:ss',
20112
- L : 'DD/MM/YYYY',
20113
- LL : 'D MMMM YYYY',
20114
- LLL : 'D MMMM YYYY HH:mm',
20115
- LLLL : 'dddd، D MMMM YYYY HH:mm'
20116
- },
20117
- meridiemParse: /صبح|شام/,
20118
- isPM : function (input) {
20119
- return 'شام' === input;
20120
- },
20121
- meridiem : function (hour, minute, isLower) {
20122
- if (hour < 12) {
20123
- return 'صبح';
20124
- }
20125
- return 'شام';
20126
- },
20127
- calendar : {
20128
- sameDay : '[آج بوقت] LT',
20129
- nextDay : '[کل بوقت] LT',
20130
- nextWeek : 'dddd [بوقت] LT',
20131
- lastDay : '[گذشتہ روز بوقت] LT',
20132
- lastWeek : '[گذشتہ] dddd [بوقت] LT',
20133
- sameElse : 'L'
20134
- },
20135
- relativeTime : {
20136
- future : '%s بعد',
20137
- past : '%s قبل',
20138
- s : 'چند سیکنڈ',
20139
- ss : '%d سیکنڈ',
20140
- m : 'ایک منٹ',
20141
- mm : '%d منٹ',
20142
- h : 'ایک گھنٹہ',
20143
- hh : '%d گھنٹے',
20144
- d : 'ایک دن',
20145
- dd : '%d دن',
20146
- M : 'ایک ماہ',
20147
- MM : '%d ماہ',
20148
- y : 'ایک سال',
20149
- yy : '%d سال'
20150
- },
20151
- preparse: function (string) {
20152
- return string.replace(/،/g, ',');
20153
- },
20154
- postformat: function (string) {
20155
- return string.replace(/,/g, '،');
20156
- },
20157
- week : {
20158
- dow : 1, // Monday is the first day of the week.
20159
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20160
- }
20161
- });
20162
-
20163
- return ur;
20164
-
20165
- })));
20166
-
20167
-
20168
- /***/ }),
20169
-
20170
- /***/ "./node_modules/moment/locale/uz-latn.js":
20171
- /*!***********************************************!*\
20172
- !*** ./node_modules/moment/locale/uz-latn.js ***!
20173
- \***********************************************/
20174
- /*! no static exports found */
20175
- /***/ (function(module, exports, __webpack_require__) {
20176
-
20177
- //! moment.js locale configuration
20178
-
20179
- ;(function (global, factory) {
20180
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20181
- undefined
20182
- }(this, (function (moment) { 'use strict';
20183
-
20184
-
20185
- var uzLatn = moment.defineLocale('uz-latn', {
20186
- months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
20187
- monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
20188
- weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
20189
- weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
20190
- weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
20191
- longDateFormat : {
20192
- LT : 'HH:mm',
20193
- LTS : 'HH:mm:ss',
20194
- L : 'DD/MM/YYYY',
20195
- LL : 'D MMMM YYYY',
20196
- LLL : 'D MMMM YYYY HH:mm',
20197
- LLLL : 'D MMMM YYYY, dddd HH:mm'
20198
- },
20199
- calendar : {
20200
- sameDay : '[Bugun soat] LT [da]',
20201
- nextDay : '[Ertaga] LT [da]',
20202
- nextWeek : 'dddd [kuni soat] LT [da]',
20203
- lastDay : '[Kecha soat] LT [da]',
20204
- lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
20205
- sameElse : 'L'
20206
- },
20207
- relativeTime : {
20208
- future : 'Yaqin %s ichida',
20209
- past : 'Bir necha %s oldin',
20210
- s : 'soniya',
20211
- ss : '%d soniya',
20212
- m : 'bir daqiqa',
20213
- mm : '%d daqiqa',
20214
- h : 'bir soat',
20215
- hh : '%d soat',
20216
- d : 'bir kun',
20217
- dd : '%d kun',
20218
- M : 'bir oy',
20219
- MM : '%d oy',
20220
- y : 'bir yil',
20221
- yy : '%d yil'
20222
- },
20223
- week : {
20224
- dow : 1, // Monday is the first day of the week.
20225
- doy : 7 // The week that contains Jan 1st is the first week of the year.
20226
- }
20227
- });
20228
-
20229
- return uzLatn;
20230
-
20231
- })));
20232
-
20233
-
20234
- /***/ }),
20235
-
20236
- /***/ "./node_modules/moment/locale/uz.js":
20237
- /*!******************************************!*\
20238
- !*** ./node_modules/moment/locale/uz.js ***!
20239
- \******************************************/
20240
- /*! no static exports found */
20241
- /***/ (function(module, exports, __webpack_require__) {
20242
-
20243
- //! moment.js locale configuration
20244
-
20245
- ;(function (global, factory) {
20246
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20247
- undefined
20248
- }(this, (function (moment) { 'use strict';
20249
-
20250
-
20251
- var uz = moment.defineLocale('uz', {
20252
- months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
20253
- monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
20254
- weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
20255
- weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
20256
- weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
20257
- longDateFormat : {
20258
- LT : 'HH:mm',
20259
- LTS : 'HH:mm:ss',
20260
- L : 'DD/MM/YYYY',
20261
- LL : 'D MMMM YYYY',
20262
- LLL : 'D MMMM YYYY HH:mm',
20263
- LLLL : 'D MMMM YYYY, dddd HH:mm'
20264
- },
20265
- calendar : {
20266
- sameDay : '[Бугун соат] LT [да]',
20267
- nextDay : '[Эртага] LT [да]',
20268
- nextWeek : 'dddd [куни соат] LT [да]',
20269
- lastDay : '[Кеча соат] LT [да]',
20270
- lastWeek : '[Утган] dddd [куни соат] LT [да]',
20271
- sameElse : 'L'
20272
- },
20273
- relativeTime : {
20274
- future : 'Якин %s ичида',
20275
- past : 'Бир неча %s олдин',
20276
- s : 'фурсат',
20277
- ss : '%d фурсат',
20278
- m : 'бир дакика',
20279
- mm : '%d дакика',
20280
- h : 'бир соат',
20281
- hh : '%d соат',
20282
- d : 'бир кун',
20283
- dd : '%d кун',
20284
- M : 'бир ой',
20285
- MM : '%d ой',
20286
- y : 'бир йил',
20287
- yy : '%d йил'
20288
- },
20289
- week : {
20290
- dow : 1, // Monday is the first day of the week.
20291
- doy : 7 // The week that contains Jan 4th is the first week of the year.
20292
- }
20293
- });
20294
-
20295
- return uz;
20296
-
20297
- })));
20298
-
20299
-
20300
- /***/ }),
20301
-
20302
- /***/ "./node_modules/moment/locale/vi.js":
20303
- /*!******************************************!*\
20304
- !*** ./node_modules/moment/locale/vi.js ***!
20305
- \******************************************/
20306
- /*! no static exports found */
20307
- /***/ (function(module, exports, __webpack_require__) {
20308
-
20309
- //! moment.js locale configuration
20310
-
20311
- ;(function (global, factory) {
20312
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20313
- undefined
20314
- }(this, (function (moment) { 'use strict';
20315
-
20316
-
20317
- var vi = moment.defineLocale('vi', {
20318
- months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
20319
- monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
20320
- monthsParseExact : true,
20321
- weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
20322
- weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20323
- weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20324
- weekdaysParseExact : true,
20325
- meridiemParse: /sa|ch/i,
20326
- isPM : function (input) {
20327
- return /^ch$/i.test(input);
20328
- },
20329
- meridiem : function (hours, minutes, isLower) {
20330
- if (hours < 12) {
20331
- return isLower ? 'sa' : 'SA';
20332
- } else {
20333
- return isLower ? 'ch' : 'CH';
20334
- }
20335
- },
20336
- longDateFormat : {
20337
- LT : 'HH:mm',
20338
- LTS : 'HH:mm:ss',
20339
- L : 'DD/MM/YYYY',
20340
- LL : 'D MMMM [năm] YYYY',
20341
- LLL : 'D MMMM [năm] YYYY HH:mm',
20342
- LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
20343
- l : 'DD/M/YYYY',
20344
- ll : 'D MMM YYYY',
20345
- lll : 'D MMM YYYY HH:mm',
20346
- llll : 'ddd, D MMM YYYY HH:mm'
20347
- },
20348
- calendar : {
20349
- sameDay: '[Hôm nay lúc] LT',
20350
- nextDay: '[Ngày mai lúc] LT',
20351
- nextWeek: 'dddd [tuần tới lúc] LT',
20352
- lastDay: '[Hôm qua lúc] LT',
20353
- lastWeek: 'dddd [tuần rồi lúc] LT',
20354
- sameElse: 'L'
20355
- },
20356
- relativeTime : {
20357
- future : '%s tới',
20358
- past : '%s trước',
20359
- s : 'vài giây',
20360
- ss : '%d giây' ,
20361
- m : 'một phút',
20362
- mm : '%d phút',
20363
- h : 'một giờ',
20364
- hh : '%d giờ',
20365
- d : 'một ngày',
20366
- dd : '%d ngày',
20367
- M : 'một tháng',
20368
- MM : '%d tháng',
20369
- y : 'một năm',
20370
- yy : '%d năm'
20371
- },
20372
- dayOfMonthOrdinalParse: /\d{1,2}/,
20373
- ordinal : function (number) {
20374
- return number;
20375
- },
20376
- week : {
20377
- dow : 1, // Monday is the first day of the week.
20378
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20379
- }
20380
- });
20381
-
20382
- return vi;
20383
-
20384
- })));
20385
-
20386
-
20387
- /***/ }),
20388
-
20389
- /***/ "./node_modules/moment/locale/x-pseudo.js":
20390
- /*!************************************************!*\
20391
- !*** ./node_modules/moment/locale/x-pseudo.js ***!
20392
- \************************************************/
20393
- /*! no static exports found */
20394
- /***/ (function(module, exports, __webpack_require__) {
20395
-
20396
- //! moment.js locale configuration
20397
-
20398
- ;(function (global, factory) {
20399
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20400
- undefined
20401
- }(this, (function (moment) { 'use strict';
20402
-
20403
-
20404
- var xPseudo = moment.defineLocale('x-pseudo', {
20405
- months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
20406
- monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
20407
- monthsParseExact : true,
20408
- weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
20409
- weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
20410
- weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
20411
- weekdaysParseExact : true,
20412
- longDateFormat : {
20413
- LT : 'HH:mm',
20414
- L : 'DD/MM/YYYY',
20415
- LL : 'D MMMM YYYY',
20416
- LLL : 'D MMMM YYYY HH:mm',
20417
- LLLL : 'dddd, D MMMM YYYY HH:mm'
20418
- },
20419
- calendar : {
20420
- sameDay : '[T~ódá~ý át] LT',
20421
- nextDay : '[T~ómó~rró~w át] LT',
20422
- nextWeek : 'dddd [át] LT',
20423
- lastDay : '[Ý~ést~érdá~ý át] LT',
20424
- lastWeek : '[L~ást] dddd [át] LT',
20425
- sameElse : 'L'
20426
- },
20427
- relativeTime : {
20428
- future : 'í~ñ %s',
20429
- past : '%s á~gó',
20430
- s : 'á ~féw ~sécó~ñds',
20431
- ss : '%d s~écóñ~ds',
20432
- m : 'á ~míñ~úté',
20433
- mm : '%d m~íñú~tés',
20434
- h : 'á~ñ hó~úr',
20435
- hh : '%d h~óúrs',
20436
- d : 'á ~dáý',
20437
- dd : '%d d~áýs',
20438
- M : 'á ~móñ~th',
20439
- MM : '%d m~óñt~hs',
20440
- y : 'á ~ýéár',
20441
- yy : '%d ý~éárs'
20442
- },
20443
- dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
20444
- ordinal : function (number) {
20445
- var b = number % 10,
20446
- output = (~~(number % 100 / 10) === 1) ? 'th' :
20447
- (b === 1) ? 'st' :
20448
- (b === 2) ? 'nd' :
20449
- (b === 3) ? 'rd' : 'th';
20450
- return number + output;
20451
- },
20452
- week : {
20453
- dow : 1, // Monday is the first day of the week.
20454
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20455
- }
20456
- });
20457
-
20458
- return xPseudo;
20459
-
20460
- })));
20461
-
20462
-
20463
- /***/ }),
20464
-
20465
- /***/ "./node_modules/moment/locale/yo.js":
20466
- /*!******************************************!*\
20467
- !*** ./node_modules/moment/locale/yo.js ***!
20468
- \******************************************/
20469
- /*! no static exports found */
20470
- /***/ (function(module, exports, __webpack_require__) {
20471
-
20472
- //! moment.js locale configuration
20473
-
20474
- ;(function (global, factory) {
20475
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20476
- undefined
20477
- }(this, (function (moment) { 'use strict';
20478
-
20479
-
20480
- var yo = moment.defineLocale('yo', {
20481
- months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
20482
- monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
20483
- weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
20484
- weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
20485
- weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
20486
- longDateFormat : {
20487
- LT : 'h:mm A',
20488
- LTS : 'h:mm:ss A',
20489
- L : 'DD/MM/YYYY',
20490
- LL : 'D MMMM YYYY',
20491
- LLL : 'D MMMM YYYY h:mm A',
20492
- LLLL : 'dddd, D MMMM YYYY h:mm A'
20493
- },
20494
- calendar : {
20495
- sameDay : '[Ònì ni] LT',
20496
- nextDay : '[Ọ̀la ni] LT',
20497
- nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
20498
- lastDay : '[Àna ni] LT',
20499
- lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
20500
- sameElse : 'L'
20501
- },
20502
- relativeTime : {
20503
- future : 'ní %s',
20504
- past : '%s kọjá',
20505
- s : 'ìsẹjú aayá die',
20506
- ss :'aayá %d',
20507
- m : 'ìsẹjú kan',
20508
- mm : 'ìsẹjú %d',
20509
- h : 'wákati kan',
20510
- hh : 'wákati %d',
20511
- d : 'ọjọ́ kan',
20512
- dd : 'ọjọ́ %d',
20513
- M : 'osù kan',
20514
- MM : 'osù %d',
20515
- y : 'ọdún kan',
20516
- yy : 'ọdún %d'
20517
- },
20518
- dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
20519
- ordinal : 'ọjọ́ %d',
20520
- week : {
20521
- dow : 1, // Monday is the first day of the week.
20522
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20523
- }
20524
- });
20525
-
20526
- return yo;
20527
-
20528
- })));
20529
-
20530
-
20531
- /***/ }),
20532
-
20533
- /***/ "./node_modules/moment/locale/zh-cn.js":
20534
- /*!*********************************************!*\
20535
- !*** ./node_modules/moment/locale/zh-cn.js ***!
20536
- \*********************************************/
20537
- /*! no static exports found */
20538
- /***/ (function(module, exports, __webpack_require__) {
20539
-
20540
- //! moment.js locale configuration
20541
-
20542
- ;(function (global, factory) {
20543
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20544
- undefined
20545
- }(this, (function (moment) { 'use strict';
20546
-
20547
-
20548
- var zhCn = moment.defineLocale('zh-cn', {
20549
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
20550
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
20551
- weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
20552
- weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
20553
- weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20554
- longDateFormat : {
20555
- LT : 'HH:mm',
20556
- LTS : 'HH:mm:ss',
20557
- L : 'YYYY/MM/DD',
20558
- LL : 'YYYY年M月D日',
20559
- LLL : 'YYYY年M月D日Ah点mm分',
20560
- LLLL : 'YYYY年M月D日ddddAh点mm分',
20561
- l : 'YYYY/M/D',
20562
- ll : 'YYYY年M月D日',
20563
- lll : 'YYYY年M月D日 HH:mm',
20564
- llll : 'YYYY年M月D日dddd HH:mm'
20565
- },
20566
- meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
20567
- meridiemHour: function (hour, meridiem) {
20568
- if (hour === 12) {
20569
- hour = 0;
20570
- }
20571
- if (meridiem === '凌晨' || meridiem === '早上' ||
20572
- meridiem === '上午') {
20573
- return hour;
20574
- } else if (meridiem === '下午' || meridiem === '晚上') {
20575
- return hour + 12;
20576
- } else {
20577
- // '中午'
20578
- return hour >= 11 ? hour : hour + 12;
20579
- }
20580
- },
20581
- meridiem : function (hour, minute, isLower) {
20582
- var hm = hour * 100 + minute;
20583
- if (hm < 600) {
20584
- return '凌晨';
20585
- } else if (hm < 900) {
20586
- return '早上';
20587
- } else if (hm < 1130) {
20588
- return '上午';
20589
- } else if (hm < 1230) {
20590
- return '中午';
20591
- } else if (hm < 1800) {
20592
- return '下午';
20593
- } else {
20594
- return '晚上';
20595
- }
20596
- },
20597
- calendar : {
20598
- sameDay : '[今天]LT',
20599
- nextDay : '[明天]LT',
20600
- nextWeek : '[下]ddddLT',
20601
- lastDay : '[昨天]LT',
20602
- lastWeek : '[上]ddddLT',
20603
- sameElse : 'L'
20604
- },
20605
- dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
20606
- ordinal : function (number, period) {
20607
- switch (period) {
20608
- case 'd':
20609
- case 'D':
20610
- case 'DDD':
20611
- return number + '日';
20612
- case 'M':
20613
- return number + '月';
20614
- case 'w':
20615
- case 'W':
20616
- return number + '周';
20617
- default:
20618
- return number;
20619
- }
20620
- },
20621
- relativeTime : {
20622
- future : '%s内',
20623
- past : '%s前',
20624
- s : '几秒',
20625
- ss : '%d 秒',
20626
- m : '1 分钟',
20627
- mm : '%d 分钟',
20628
- h : '1 小时',
20629
- hh : '%d 小时',
20630
- d : '1 天',
20631
- dd : '%d 天',
20632
- M : '1 个月',
20633
- MM : '%d 个月',
20634
- y : '1 年',
20635
- yy : '%d 年'
20636
- },
20637
- week : {
20638
- // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
20639
- dow : 1, // Monday is the first day of the week.
20640
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20641
- }
20642
- });
20643
-
20644
- return zhCn;
20645
-
20646
- })));
20647
-
20648
-
20649
- /***/ }),
20650
-
20651
- /***/ "./node_modules/moment/locale/zh-hk.js":
20652
- /*!*********************************************!*\
20653
- !*** ./node_modules/moment/locale/zh-hk.js ***!
20654
- \*********************************************/
20655
- /*! no static exports found */
20656
- /***/ (function(module, exports, __webpack_require__) {
20657
-
20658
- //! moment.js locale configuration
20659
-
20660
- ;(function (global, factory) {
20661
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20662
- undefined
20663
- }(this, (function (moment) { 'use strict';
20664
-
20665
-
20666
- var zhHk = moment.defineLocale('zh-hk', {
20667
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
20668
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
20669
- weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
20670
- weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
20671
- weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20672
- longDateFormat : {
20673
- LT : 'HH:mm',
20674
- LTS : 'HH:mm:ss',
20675
- L : 'YYYY/MM/DD',
20676
- LL : 'YYYY年M月D日',
20677
- LLL : 'YYYY年M月D日 HH:mm',
20678
- LLLL : 'YYYY年M月D日dddd HH:mm',
20679
- l : 'YYYY/M/D',
20680
- ll : 'YYYY年M月D日',
20681
- lll : 'YYYY年M月D日 HH:mm',
20682
- llll : 'YYYY年M月D日dddd HH:mm'
20683
- },
20684
- meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
20685
- meridiemHour : function (hour, meridiem) {
20686
- if (hour === 12) {
20687
- hour = 0;
20688
- }
20689
- if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
20690
- return hour;
20691
- } else if (meridiem === '中午') {
20692
- return hour >= 11 ? hour : hour + 12;
20693
- } else if (meridiem === '下午' || meridiem === '晚上') {
20694
- return hour + 12;
20695
- }
20696
- },
20697
- meridiem : function (hour, minute, isLower) {
20698
- var hm = hour * 100 + minute;
20699
- if (hm < 600) {
20700
- return '凌晨';
20701
- } else if (hm < 900) {
20702
- return '早上';
20703
- } else if (hm < 1130) {
20704
- return '上午';
20705
- } else if (hm < 1230) {
20706
- return '中午';
20707
- } else if (hm < 1800) {
20708
- return '下午';
20709
- } else {
20710
- return '晚上';
20711
- }
20712
- },
20713
- calendar : {
20714
- sameDay : '[今天]LT',
20715
- nextDay : '[明天]LT',
20716
- nextWeek : '[下]ddddLT',
20717
- lastDay : '[昨天]LT',
20718
- lastWeek : '[上]ddddLT',
20719
- sameElse : 'L'
20720
- },
20721
- dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
20722
- ordinal : function (number, period) {
20723
- switch (period) {
20724
- case 'd' :
20725
- case 'D' :
20726
- case 'DDD' :
20727
- return number + '日';
20728
- case 'M' :
20729
- return number + '月';
20730
- case 'w' :
20731
- case 'W' :
20732
- return number + '週';
20733
- default :
20734
- return number;
20735
- }
20736
- },
20737
- relativeTime : {
20738
- future : '%s內',
20739
- past : '%s前',
20740
- s : '幾秒',
20741
- ss : '%d 秒',
20742
- m : '1 分鐘',
20743
- mm : '%d 分鐘',
20744
- h : '1 小時',
20745
- hh : '%d 小時',
20746
- d : '1 天',
20747
- dd : '%d 天',
20748
- M : '1 個月',
20749
- MM : '%d 個月',
20750
- y : '1 年',
20751
- yy : '%d 年'
20752
- }
20753
- });
20754
-
20755
- return zhHk;
20756
-
20757
- })));
20758
-
20759
-
20760
- /***/ }),
20761
-
20762
- /***/ "./node_modules/moment/locale/zh-tw.js":
20763
- /*!*********************************************!*\
20764
- !*** ./node_modules/moment/locale/zh-tw.js ***!
20765
- \*********************************************/
20766
- /*! no static exports found */
20767
- /***/ (function(module, exports, __webpack_require__) {
20768
-
20769
- //! moment.js locale configuration
20770
-
20771
- ;(function (global, factory) {
20772
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20773
- undefined
20774
- }(this, (function (moment) { 'use strict';
20775
-
20776
-
20777
- var zhTw = moment.defineLocale('zh-tw', {
20778
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
20779
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
20780
- weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
20781
- weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
20782
- weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20783
- longDateFormat : {
20784
- LT : 'HH:mm',
20785
- LTS : 'HH:mm:ss',
20786
- L : 'YYYY/MM/DD',
20787
- LL : 'YYYY年M月D日',
20788
- LLL : 'YYYY年M月D日 HH:mm',
20789
- LLLL : 'YYYY年M月D日dddd HH:mm',
20790
- l : 'YYYY/M/D',
20791
- ll : 'YYYY年M月D日',
20792
- lll : 'YYYY年M月D日 HH:mm',
20793
- llll : 'YYYY年M月D日dddd HH:mm'
20794
- },
20795
- meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
20796
- meridiemHour : function (hour, meridiem) {
20797
- if (hour === 12) {
20798
- hour = 0;
20799
- }
20800
- if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
20801
- return hour;
20802
- } else if (meridiem === '中午') {
20803
- return hour >= 11 ? hour : hour + 12;
20804
- } else if (meridiem === '下午' || meridiem === '晚上') {
20805
- return hour + 12;
20806
- }
20807
- },
20808
- meridiem : function (hour, minute, isLower) {
20809
- var hm = hour * 100 + minute;
20810
- if (hm < 600) {
20811
- return '凌晨';
20812
- } else if (hm < 900) {
20813
- return '早上';
20814
- } else if (hm < 1130) {
20815
- return '上午';
20816
- } else if (hm < 1230) {
20817
- return '中午';
20818
- } else if (hm < 1800) {
20819
- return '下午';
20820
- } else {
20821
- return '晚上';
20822
- }
20823
- },
20824
- calendar : {
20825
- sameDay : '[今天]LT',
20826
- nextDay : '[明天]LT',
20827
- nextWeek : '[下]ddddLT',
20828
- lastDay : '[昨天]LT',
20829
- lastWeek : '[上]ddddLT',
20830
- sameElse : 'L'
20831
- },
20832
- dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
20833
- ordinal : function (number, period) {
20834
- switch (period) {
20835
- case 'd' :
20836
- case 'D' :
20837
- case 'DDD' :
20838
- return number + '日';
20839
- case 'M' :
20840
- return number + '月';
20841
- case 'w' :
20842
- case 'W' :
20843
- return number + '週';
20844
- default :
20845
- return number;
20846
- }
20847
- },
20848
- relativeTime : {
20849
- future : '%s內',
20850
- past : '%s前',
20851
- s : '幾秒',
20852
- ss : '%d 秒',
20853
- m : '1 分鐘',
20854
- mm : '%d 分鐘',
20855
- h : '1 小時',
20856
- hh : '%d 小時',
20857
- d : '1 天',
20858
- dd : '%d 天',
20859
- M : '1 個月',
20860
- MM : '%d 個月',
20861
- y : '1 年',
20862
- yy : '%d 年'
20863
- }
20864
- });
20865
-
20866
- return zhTw;
20867
-
20868
- })));
20869
-
20870
-
20871
- /***/ }),
20872
-
20873
- /***/ "./node_modules/moment/moment.js":
20874
- /*!***************************************!*\
20875
- !*** ./node_modules/moment/moment.js ***!
20876
- \***************************************/
20877
- /*! no static exports found */
20878
- /***/ (function(module, exports, __webpack_require__) {
20879
-
20880
- /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
20881
-
20882
- ;(function (global, factory) {
20883
- true ? module.exports = factory() :
20884
- undefined
20885
- }(this, (function () { 'use strict';
20886
-
20887
- var hookCallback;
20888
-
20889
- function hooks () {
20890
- return hookCallback.apply(null, arguments);
20891
- }
20892
-
20893
- // This is done to register the method called with moment()
20894
- // without creating circular dependencies.
20895
- function setHookCallback (callback) {
20896
- hookCallback = callback;
20897
- }
20898
-
20899
- function isArray(input) {
20900
- return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
20901
- }
20902
-
20903
- function isObject(input) {
20904
- // IE8 will treat undefined and null as object if it wasn't for
20905
- // input != null
20906
- return input != null && Object.prototype.toString.call(input) === '[object Object]';
20907
- }
20908
-
20909
- function isObjectEmpty(obj) {
20910
- if (Object.getOwnPropertyNames) {
20911
- return (Object.getOwnPropertyNames(obj).length === 0);
20912
- } else {
20913
- var k;
20914
- for (k in obj) {
20915
- if (obj.hasOwnProperty(k)) {
20916
- return false;
20917
- }
20918
- }
20919
- return true;
20920
- }
20921
- }
20922
-
20923
- function isUndefined(input) {
20924
- return input === void 0;
20925
- }
20926
-
20927
- function isNumber(input) {
20928
- return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
20929
- }
20930
-
20931
- function isDate(input) {
20932
- return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
20933
- }
20934
-
20935
- function map(arr, fn) {
20936
- var res = [], i;
20937
- for (i = 0; i < arr.length; ++i) {
20938
- res.push(fn(arr[i], i));
20939
- }
20940
- return res;
20941
- }
20942
-
20943
- function hasOwnProp(a, b) {
20944
- return Object.prototype.hasOwnProperty.call(a, b);
20945
- }
20946
-
20947
- function extend(a, b) {
20948
- for (var i in b) {
20949
- if (hasOwnProp(b, i)) {
20950
- a[i] = b[i];
20951
- }
20952
- }
20953
-
20954
- if (hasOwnProp(b, 'toString')) {
20955
- a.toString = b.toString;
20956
- }
20957
-
20958
- if (hasOwnProp(b, 'valueOf')) {
20959
- a.valueOf = b.valueOf;
20960
- }
20961
-
20962
- return a;
20963
- }
20964
-
20965
- function createUTC (input, format, locale, strict) {
20966
- return createLocalOrUTC(input, format, locale, strict, true).utc();
20967
- }
20968
-
20969
- function defaultParsingFlags() {
20970
- // We need to deep clone this object.
20971
- return {
20972
- empty : false,
20973
- unusedTokens : [],
20974
- unusedInput : [],
20975
- overflow : -2,
20976
- charsLeftOver : 0,
20977
- nullInput : false,
20978
- invalidMonth : null,
20979
- invalidFormat : false,
20980
- userInvalidated : false,
20981
- iso : false,
20982
- parsedDateParts : [],
20983
- meridiem : null,
20984
- rfc2822 : false,
20985
- weekdayMismatch : false
20986
- };
20987
- }
20988
-
20989
- function getParsingFlags(m) {
20990
- if (m._pf == null) {
20991
- m._pf = defaultParsingFlags();
20992
- }
20993
- return m._pf;
20994
- }
20995
-
20996
- var some;
20997
- if (Array.prototype.some) {
20998
- some = Array.prototype.some;
20999
- } else {
21000
- some = function (fun) {
21001
- var t = Object(this);
21002
- var len = t.length >>> 0;
21003
-
21004
- for (var i = 0; i < len; i++) {
21005
- if (i in t && fun.call(this, t[i], i, t)) {
21006
- return true;
21007
- }
21008
- }
21009
-
21010
- return false;
21011
- };
21012
- }
21013
-
21014
- function isValid(m) {
21015
- if (m._isValid == null) {
21016
- var flags = getParsingFlags(m);
21017
- var parsedParts = some.call(flags.parsedDateParts, function (i) {
21018
- return i != null;
21019
- });
21020
- var isNowValid = !isNaN(m._d.getTime()) &&
21021
- flags.overflow < 0 &&
21022
- !flags.empty &&
21023
- !flags.invalidMonth &&
21024
- !flags.invalidWeekday &&
21025
- !flags.weekdayMismatch &&
21026
- !flags.nullInput &&
21027
- !flags.invalidFormat &&
21028
- !flags.userInvalidated &&
21029
- (!flags.meridiem || (flags.meridiem && parsedParts));
21030
-
21031
- if (m._strict) {
21032
- isNowValid = isNowValid &&
21033
- flags.charsLeftOver === 0 &&
21034
- flags.unusedTokens.length === 0 &&
21035
- flags.bigHour === undefined;
21036
- }
21037
-
21038
- if (Object.isFrozen == null || !Object.isFrozen(m)) {
21039
- m._isValid = isNowValid;
21040
- }
21041
- else {
21042
- return isNowValid;
21043
- }
21044
- }
21045
- return m._isValid;
21046
- }
21047
-
21048
- function createInvalid (flags) {
21049
- var m = createUTC(NaN);
21050
- if (flags != null) {
21051
- extend(getParsingFlags(m), flags);
21052
- }
21053
- else {
21054
- getParsingFlags(m).userInvalidated = true;
21055
- }
21056
-
21057
- return m;
21058
- }
21059
-
21060
- // Plugins that add properties should also add the key here (null value),
21061
- // so we can properly clone ourselves.
21062
- var momentProperties = hooks.momentProperties = [];
21063
-
21064
- function copyConfig(to, from) {
21065
- var i, prop, val;
21066
-
21067
- if (!isUndefined(from._isAMomentObject)) {
21068
- to._isAMomentObject = from._isAMomentObject;
21069
- }
21070
- if (!isUndefined(from._i)) {
21071
- to._i = from._i;
21072
- }
21073
- if (!isUndefined(from._f)) {
21074
- to._f = from._f;
21075
- }
21076
- if (!isUndefined(from._l)) {
21077
- to._l = from._l;
21078
- }
21079
- if (!isUndefined(from._strict)) {
21080
- to._strict = from._strict;
21081
- }
21082
- if (!isUndefined(from._tzm)) {
21083
- to._tzm = from._tzm;
21084
- }
21085
- if (!isUndefined(from._isUTC)) {
21086
- to._isUTC = from._isUTC;
21087
- }
21088
- if (!isUndefined(from._offset)) {
21089
- to._offset = from._offset;
21090
- }
21091
- if (!isUndefined(from._pf)) {
21092
- to._pf = getParsingFlags(from);
21093
- }
21094
- if (!isUndefined(from._locale)) {
21095
- to._locale = from._locale;
21096
- }
21097
-
21098
- if (momentProperties.length > 0) {
21099
- for (i = 0; i < momentProperties.length; i++) {
21100
- prop = momentProperties[i];
21101
- val = from[prop];
21102
- if (!isUndefined(val)) {
21103
- to[prop] = val;
21104
- }
21105
- }
21106
- }
21107
-
21108
- return to;
21109
- }
21110
-
21111
- var updateInProgress = false;
21112
-
21113
- // Moment prototype object
21114
- function Moment(config) {
21115
- copyConfig(this, config);
21116
- this._d = new Date(config._d != null ? config._d.getTime() : NaN);
21117
- if (!this.isValid()) {
21118
- this._d = new Date(NaN);
21119
- }
21120
- // Prevent infinite loop in case updateOffset creates new moment
21121
- // objects.
21122
- if (updateInProgress === false) {
21123
- updateInProgress = true;
21124
- hooks.updateOffset(this);
21125
- updateInProgress = false;
21126
- }
21127
- }
21128
-
21129
- function isMoment (obj) {
21130
- return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
21131
- }
21132
-
21133
- function absFloor (number) {
21134
- if (number < 0) {
21135
- // -0 -> 0
21136
- return Math.ceil(number) || 0;
21137
- } else {
21138
- return Math.floor(number);
21139
- }
21140
- }
21141
-
21142
- function toInt(argumentForCoercion) {
21143
- var coercedNumber = +argumentForCoercion,
21144
- value = 0;
21145
-
21146
- if (coercedNumber !== 0 && isFinite(coercedNumber)) {
21147
- value = absFloor(coercedNumber);
21148
- }
21149
-
21150
- return value;
21151
- }
21152
-
21153
- // compare two arrays, return the number of differences
21154
- function compareArrays(array1, array2, dontConvert) {
21155
- var len = Math.min(array1.length, array2.length),
21156
- lengthDiff = Math.abs(array1.length - array2.length),
21157
- diffs = 0,
21158
- i;
21159
- for (i = 0; i < len; i++) {
21160
- if ((dontConvert && array1[i] !== array2[i]) ||
21161
- (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
21162
- diffs++;
21163
- }
21164
- }
21165
- return diffs + lengthDiff;
21166
- }
21167
-
21168
- function warn(msg) {
21169
- if (hooks.suppressDeprecationWarnings === false &&
21170
- (typeof console !== 'undefined') && console.warn) {
21171
- console.warn('Deprecation warning: ' + msg);
21172
- }
21173
- }
21174
-
21175
- function deprecate(msg, fn) {
21176
- var firstTime = true;
21177
-
21178
- return extend(function () {
21179
- if (hooks.deprecationHandler != null) {
21180
- hooks.deprecationHandler(null, msg);
21181
- }
21182
- if (firstTime) {
21183
- var args = [];
21184
- var arg;
21185
- for (var i = 0; i < arguments.length; i++) {
21186
- arg = '';
21187
- if (typeof arguments[i] === 'object') {
21188
- arg += '\n[' + i + '] ';
21189
- for (var key in arguments[0]) {
21190
- arg += key + ': ' + arguments[0][key] + ', ';
21191
- }
21192
- arg = arg.slice(0, -2); // Remove trailing comma and space
21193
- } else {
21194
- arg = arguments[i];
21195
- }
21196
- args.push(arg);
21197
- }
21198
- warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
21199
- firstTime = false;
21200
- }
21201
- return fn.apply(this, arguments);
21202
- }, fn);
21203
- }
21204
-
21205
- var deprecations = {};
21206
-
21207
- function deprecateSimple(name, msg) {
21208
- if (hooks.deprecationHandler != null) {
21209
- hooks.deprecationHandler(name, msg);
21210
- }
21211
- if (!deprecations[name]) {
21212
- warn(msg);
21213
- deprecations[name] = true;
21214
- }
21215
- }
21216
-
21217
- hooks.suppressDeprecationWarnings = false;
21218
- hooks.deprecationHandler = null;
21219
-
21220
- function isFunction(input) {
21221
- return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
21222
- }
21223
-
21224
- function set (config) {
21225
- var prop, i;
21226
- for (i in config) {
21227
- prop = config[i];
21228
- if (isFunction(prop)) {
21229
- this[i] = prop;
21230
- } else {
21231
- this['_' + i] = prop;
21232
- }
21233
- }
21234
- this._config = config;
21235
- // Lenient ordinal parsing accepts just a number in addition to
21236
- // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
21237
- // TODO: Remove "ordinalParse" fallback in next major release.
21238
- this._dayOfMonthOrdinalParseLenient = new RegExp(
21239
- (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
21240
- '|' + (/\d{1,2}/).source);
21241
- }
21242
-
21243
- function mergeConfigs(parentConfig, childConfig) {
21244
- var res = extend({}, parentConfig), prop;
21245
- for (prop in childConfig) {
21246
- if (hasOwnProp(childConfig, prop)) {
21247
- if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
21248
- res[prop] = {};
21249
- extend(res[prop], parentConfig[prop]);
21250
- extend(res[prop], childConfig[prop]);
21251
- } else if (childConfig[prop] != null) {
21252
- res[prop] = childConfig[prop];
21253
- } else {
21254
- delete res[prop];
21255
- }
21256
- }
21257
- }
21258
- for (prop in parentConfig) {
21259
- if (hasOwnProp(parentConfig, prop) &&
21260
- !hasOwnProp(childConfig, prop) &&
21261
- isObject(parentConfig[prop])) {
21262
- // make sure changes to properties don't modify parent config
21263
- res[prop] = extend({}, res[prop]);
21264
- }
21265
- }
21266
- return res;
21267
- }
21268
-
21269
- function Locale(config) {
21270
- if (config != null) {
21271
- this.set(config);
21272
- }
21273
- }
21274
-
21275
- var keys;
21276
-
21277
- if (Object.keys) {
21278
- keys = Object.keys;
21279
- } else {
21280
- keys = function (obj) {
21281
- var i, res = [];
21282
- for (i in obj) {
21283
- if (hasOwnProp(obj, i)) {
21284
- res.push(i);
21285
- }
21286
- }
21287
- return res;
21288
- };
21289
- }
21290
-
21291
- var defaultCalendar = {
21292
- sameDay : '[Today at] LT',
21293
- nextDay : '[Tomorrow at] LT',
21294
- nextWeek : 'dddd [at] LT',
21295
- lastDay : '[Yesterday at] LT',
21296
- lastWeek : '[Last] dddd [at] LT',
21297
- sameElse : 'L'
21298
- };
21299
-
21300
- function calendar (key, mom, now) {
21301
- var output = this._calendar[key] || this._calendar['sameElse'];
21302
- return isFunction(output) ? output.call(mom, now) : output;
21303
- }
21304
-
21305
- var defaultLongDateFormat = {
21306
- LTS : 'h:mm:ss A',
21307
- LT : 'h:mm A',
21308
- L : 'MM/DD/YYYY',
21309
- LL : 'MMMM D, YYYY',
21310
- LLL : 'MMMM D, YYYY h:mm A',
21311
- LLLL : 'dddd, MMMM D, YYYY h:mm A'
21312
- };
21313
-
21314
- function longDateFormat (key) {
21315
- var format = this._longDateFormat[key],
21316
- formatUpper = this._longDateFormat[key.toUpperCase()];
21317
-
21318
- if (format || !formatUpper) {
21319
- return format;
21320
- }
21321
-
21322
- this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
21323
- return val.slice(1);
21324
- });
21325
-
21326
- return this._longDateFormat[key];
21327
- }
21328
-
21329
- var defaultInvalidDate = 'Invalid date';
21330
-
21331
- function invalidDate () {
21332
- return this._invalidDate;
21333
- }
21334
-
21335
- var defaultOrdinal = '%d';
21336
- var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
21337
-
21338
- function ordinal (number) {
21339
- return this._ordinal.replace('%d', number);
21340
- }
21341
-
21342
- var defaultRelativeTime = {
21343
- future : 'in %s',
21344
- past : '%s ago',
21345
- s : 'a few seconds',
21346
- ss : '%d seconds',
21347
- m : 'a minute',
21348
- mm : '%d minutes',
21349
- h : 'an hour',
21350
- hh : '%d hours',
21351
- d : 'a day',
21352
- dd : '%d days',
21353
- M : 'a month',
21354
- MM : '%d months',
21355
- y : 'a year',
21356
- yy : '%d years'
21357
- };
21358
-
21359
- function relativeTime (number, withoutSuffix, string, isFuture) {
21360
- var output = this._relativeTime[string];
21361
- return (isFunction(output)) ?
21362
- output(number, withoutSuffix, string, isFuture) :
21363
- output.replace(/%d/i, number);
21364
- }
21365
-
21366
- function pastFuture (diff, output) {
21367
- var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
21368
- return isFunction(format) ? format(output) : format.replace(/%s/i, output);
21369
- }
21370
-
21371
- var aliases = {};
21372
-
21373
- function addUnitAlias (unit, shorthand) {
21374
- var lowerCase = unit.toLowerCase();
21375
- aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
21376
- }
21377
-
21378
- function normalizeUnits(units) {
21379
- return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
21380
- }
21381
-
21382
- function normalizeObjectUnits(inputObject) {
21383
- var normalizedInput = {},
21384
- normalizedProp,
21385
- prop;
21386
-
21387
- for (prop in inputObject) {
21388
- if (hasOwnProp(inputObject, prop)) {
21389
- normalizedProp = normalizeUnits(prop);
21390
- if (normalizedProp) {
21391
- normalizedInput[normalizedProp] = inputObject[prop];
21392
- }
21393
- }
21394
- }
21395
-
21396
- return normalizedInput;
21397
- }
21398
-
21399
- var priorities = {};
21400
-
21401
- function addUnitPriority(unit, priority) {
21402
- priorities[unit] = priority;
21403
- }
21404
-
21405
- function getPrioritizedUnits(unitsObj) {
21406
- var units = [];
21407
- for (var u in unitsObj) {
21408
- units.push({unit: u, priority: priorities[u]});
21409
- }
21410
- units.sort(function (a, b) {
21411
- return a.priority - b.priority;
21412
- });
21413
- return units;
21414
- }
21415
-
21416
- function zeroFill(number, targetLength, forceSign) {
21417
- var absNumber = '' + Math.abs(number),
21418
- zerosToFill = targetLength - absNumber.length,
21419
- sign = number >= 0;
21420
- return (sign ? (forceSign ? '+' : '') : '-') +
21421
- Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
21422
- }
21423
-
21424
- var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
21425
-
21426
- var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
21427
-
21428
- var formatFunctions = {};
21429
-
21430
- var formatTokenFunctions = {};
21431
-
21432
- // token: 'M'
21433
- // padded: ['MM', 2]
21434
- // ordinal: 'Mo'
21435
- // callback: function () { this.month() + 1 }
21436
- function addFormatToken (token, padded, ordinal, callback) {
21437
- var func = callback;
21438
- if (typeof callback === 'string') {
21439
- func = function () {
21440
- return this[callback]();
21441
- };
21442
- }
21443
- if (token) {
21444
- formatTokenFunctions[token] = func;
21445
- }
21446
- if (padded) {
21447
- formatTokenFunctions[padded[0]] = function () {
21448
- return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
21449
- };
21450
- }
21451
- if (ordinal) {
21452
- formatTokenFunctions[ordinal] = function () {
21453
- return this.localeData().ordinal(func.apply(this, arguments), token);
21454
- };
21455
- }
21456
- }
21457
-
21458
- function removeFormattingTokens(input) {
21459
- if (input.match(/\[[\s\S]/)) {
21460
- return input.replace(/^\[|\]$/g, '');
21461
- }
21462
- return input.replace(/\\/g, '');
21463
- }
21464
-
21465
- function makeFormatFunction(format) {
21466
- var array = format.match(formattingTokens), i, length;
21467
-
21468
- for (i = 0, length = array.length; i < length; i++) {
21469
- if (formatTokenFunctions[array[i]]) {
21470
- array[i] = formatTokenFunctions[array[i]];
21471
- } else {
21472
- array[i] = removeFormattingTokens(array[i]);
21473
- }
21474
- }
21475
-
21476
- return function (mom) {
21477
- var output = '', i;
21478
- for (i = 0; i < length; i++) {
21479
- output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
21480
- }
21481
- return output;
21482
- };
21483
- }
21484
-
21485
- // format date using native date object
21486
- function formatMoment(m, format) {
21487
- if (!m.isValid()) {
21488
- return m.localeData().invalidDate();
21489
- }
21490
-
21491
- format = expandFormat(format, m.localeData());
21492
- formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
21493
-
21494
- return formatFunctions[format](m);
21495
- }
21496
-
21497
- function expandFormat(format, locale) {
21498
- var i = 5;
21499
-
21500
- function replaceLongDateFormatTokens(input) {
21501
- return locale.longDateFormat(input) || input;
21502
- }
21503
-
21504
- localFormattingTokens.lastIndex = 0;
21505
- while (i >= 0 && localFormattingTokens.test(format)) {
21506
- format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
21507
- localFormattingTokens.lastIndex = 0;
21508
- i -= 1;
21509
- }
21510
-
21511
- return format;
21512
- }
21513
-
21514
- var match1 = /\d/; // 0 - 9
21515
- var match2 = /\d\d/; // 00 - 99
21516
- var match3 = /\d{3}/; // 000 - 999
21517
- var match4 = /\d{4}/; // 0000 - 9999
21518
- var match6 = /[+-]?\d{6}/; // -999999 - 999999
21519
- var match1to2 = /\d\d?/; // 0 - 99
21520
- var match3to4 = /\d\d\d\d?/; // 999 - 9999
21521
- var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
21522
- var match1to3 = /\d{1,3}/; // 0 - 999
21523
- var match1to4 = /\d{1,4}/; // 0 - 9999
21524
- var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
21525
-
21526
- var matchUnsigned = /\d+/; // 0 - inf
21527
- var matchSigned = /[+-]?\d+/; // -inf - inf
21528
-
21529
- var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
21530
- var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
21531
-
21532
- var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
21533
-
21534
- // any word (or two) characters or numbers including two/three word month in arabic.
21535
- // includes scottish gaelic two word and hyphenated months
21536
- var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
21537
-
21538
- var regexes = {};
21539
-
21540
- function addRegexToken (token, regex, strictRegex) {
21541
- regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
21542
- return (isStrict && strictRegex) ? strictRegex : regex;
21543
- };
21544
- }
21545
-
21546
- function getParseRegexForToken (token, config) {
21547
- if (!hasOwnProp(regexes, token)) {
21548
- return new RegExp(unescapeFormat(token));
21549
- }
21550
-
21551
- return regexes[token](config._strict, config._locale);
21552
- }
21553
-
21554
- // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
21555
- function unescapeFormat(s) {
21556
- return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
21557
- return p1 || p2 || p3 || p4;
21558
- }));
21559
- }
21560
-
21561
- function regexEscape(s) {
21562
- return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
21563
- }
21564
-
21565
- var tokens = {};
21566
-
21567
- function addParseToken (token, callback) {
21568
- var i, func = callback;
21569
- if (typeof token === 'string') {
21570
- token = [token];
21571
- }
21572
- if (isNumber(callback)) {
21573
- func = function (input, array) {
21574
- array[callback] = toInt(input);
21575
- };
21576
- }
21577
- for (i = 0; i < token.length; i++) {
21578
- tokens[token[i]] = func;
21579
- }
21580
- }
21581
-
21582
- function addWeekParseToken (token, callback) {
21583
- addParseToken(token, function (input, array, config, token) {
21584
- config._w = config._w || {};
21585
- callback(input, config._w, config, token);
21586
- });
21587
- }
21588
-
21589
- function addTimeToArrayFromToken(token, input, config) {
21590
- if (input != null && hasOwnProp(tokens, token)) {
21591
- tokens[token](input, config._a, config, token);
21592
- }
21593
- }
21594
-
21595
- var YEAR = 0;
21596
- var MONTH = 1;
21597
- var DATE = 2;
21598
- var HOUR = 3;
21599
- var MINUTE = 4;
21600
- var SECOND = 5;
21601
- var MILLISECOND = 6;
21602
- var WEEK = 7;
21603
- var WEEKDAY = 8;
21604
-
21605
- // FORMATTING
21606
-
21607
- addFormatToken('Y', 0, 0, function () {
21608
- var y = this.year();
21609
- return y <= 9999 ? '' + y : '+' + y;
21610
- });
21611
-
21612
- addFormatToken(0, ['YY', 2], 0, function () {
21613
- return this.year() % 100;
21614
- });
21615
-
21616
- addFormatToken(0, ['YYYY', 4], 0, 'year');
21617
- addFormatToken(0, ['YYYYY', 5], 0, 'year');
21618
- addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
21619
-
21620
- // ALIASES
21621
-
21622
- addUnitAlias('year', 'y');
21623
-
21624
- // PRIORITIES
21625
-
21626
- addUnitPriority('year', 1);
21627
-
21628
- // PARSING
21629
-
21630
- addRegexToken('Y', matchSigned);
21631
- addRegexToken('YY', match1to2, match2);
21632
- addRegexToken('YYYY', match1to4, match4);
21633
- addRegexToken('YYYYY', match1to6, match6);
21634
- addRegexToken('YYYYYY', match1to6, match6);
21635
-
21636
- addParseToken(['YYYYY', 'YYYYYY'], YEAR);
21637
- addParseToken('YYYY', function (input, array) {
21638
- array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
21639
- });
21640
- addParseToken('YY', function (input, array) {
21641
- array[YEAR] = hooks.parseTwoDigitYear(input);
21642
- });
21643
- addParseToken('Y', function (input, array) {
21644
- array[YEAR] = parseInt(input, 10);
21645
- });
21646
-
21647
- // HELPERS
21648
-
21649
- function daysInYear(year) {
21650
- return isLeapYear(year) ? 366 : 365;
21651
- }
21652
-
21653
- function isLeapYear(year) {
21654
- return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
21655
- }
21656
-
21657
- // HOOKS
21658
-
21659
- hooks.parseTwoDigitYear = function (input) {
21660
- return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
21661
- };
21662
-
21663
- // MOMENTS
21664
-
21665
- var getSetYear = makeGetSet('FullYear', true);
21666
-
21667
- function getIsLeapYear () {
21668
- return isLeapYear(this.year());
21669
- }
21670
-
21671
- function makeGetSet (unit, keepTime) {
21672
- return function (value) {
21673
- if (value != null) {
21674
- set$1(this, unit, value);
21675
- hooks.updateOffset(this, keepTime);
21676
- return this;
21677
- } else {
21678
- return get(this, unit);
21679
- }
21680
- };
21681
- }
21682
-
21683
- function get (mom, unit) {
21684
- return mom.isValid() ?
21685
- mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
21686
- }
21687
-
21688
- function set$1 (mom, unit, value) {
21689
- if (mom.isValid() && !isNaN(value)) {
21690
- if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
21691
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
21692
- }
21693
- else {
21694
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
21695
- }
21696
- }
21697
- }
21698
-
21699
- // MOMENTS
21700
-
21701
- function stringGet (units) {
21702
- units = normalizeUnits(units);
21703
- if (isFunction(this[units])) {
21704
- return this[units]();
21705
- }
21706
- return this;
21707
- }
21708
-
21709
-
21710
- function stringSet (units, value) {
21711
- if (typeof units === 'object') {
21712
- units = normalizeObjectUnits(units);
21713
- var prioritized = getPrioritizedUnits(units);
21714
- for (var i = 0; i < prioritized.length; i++) {
21715
- this[prioritized[i].unit](units[prioritized[i].unit]);
21716
- }
21717
- } else {
21718
- units = normalizeUnits(units);
21719
- if (isFunction(this[units])) {
21720
- return this[units](value);
21721
- }
21722
- }
21723
- return this;
21724
- }
21725
-
21726
- function mod(n, x) {
21727
- return ((n % x) + x) % x;
21728
- }
21729
-
21730
- var indexOf;
21731
-
21732
- if (Array.prototype.indexOf) {
21733
- indexOf = Array.prototype.indexOf;
21734
- } else {
21735
- indexOf = function (o) {
21736
- // I know
21737
- var i;
21738
- for (i = 0; i < this.length; ++i) {
21739
- if (this[i] === o) {
21740
- return i;
21741
- }
21742
- }
21743
- return -1;
21744
- };
21745
- }
21746
-
21747
- function daysInMonth(year, month) {
21748
- if (isNaN(year) || isNaN(month)) {
21749
- return NaN;
21750
- }
21751
- var modMonth = mod(month, 12);
21752
- year += (month - modMonth) / 12;
21753
- return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
21754
- }
21755
-
21756
- // FORMATTING
21757
-
21758
- addFormatToken('M', ['MM', 2], 'Mo', function () {
21759
- return this.month() + 1;
21760
- });
21761
-
21762
- addFormatToken('MMM', 0, 0, function (format) {
21763
- return this.localeData().monthsShort(this, format);
21764
- });
21765
-
21766
- addFormatToken('MMMM', 0, 0, function (format) {
21767
- return this.localeData().months(this, format);
21768
- });
21769
-
21770
- // ALIASES
21771
-
21772
- addUnitAlias('month', 'M');
21773
-
21774
- // PRIORITY
21775
-
21776
- addUnitPriority('month', 8);
21777
-
21778
- // PARSING
21779
-
21780
- addRegexToken('M', match1to2);
21781
- addRegexToken('MM', match1to2, match2);
21782
- addRegexToken('MMM', function (isStrict, locale) {
21783
- return locale.monthsShortRegex(isStrict);
21784
- });
21785
- addRegexToken('MMMM', function (isStrict, locale) {
21786
- return locale.monthsRegex(isStrict);
21787
- });
21788
-
21789
- addParseToken(['M', 'MM'], function (input, array) {
21790
- array[MONTH] = toInt(input) - 1;
21791
- });
21792
-
21793
- addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
21794
- var month = config._locale.monthsParse(input, token, config._strict);
21795
- // if we didn't find a month name, mark the date as invalid.
21796
- if (month != null) {
21797
- array[MONTH] = month;
21798
- } else {
21799
- getParsingFlags(config).invalidMonth = input;
21800
- }
21801
- });
21802
-
21803
- // LOCALES
21804
-
21805
- var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
21806
- var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
21807
- function localeMonths (m, format) {
21808
- if (!m) {
21809
- return isArray(this._months) ? this._months :
21810
- this._months['standalone'];
21811
- }
21812
- return isArray(this._months) ? this._months[m.month()] :
21813
- this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
21814
- }
21815
-
21816
- var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
21817
- function localeMonthsShort (m, format) {
21818
- if (!m) {
21819
- return isArray(this._monthsShort) ? this._monthsShort :
21820
- this._monthsShort['standalone'];
21821
- }
21822
- return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
21823
- this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
21824
- }
21825
-
21826
- function handleStrictParse(monthName, format, strict) {
21827
- var i, ii, mom, llc = monthName.toLocaleLowerCase();
21828
- if (!this._monthsParse) {
21829
- // this is not used
21830
- this._monthsParse = [];
21831
- this._longMonthsParse = [];
21832
- this._shortMonthsParse = [];
21833
- for (i = 0; i < 12; ++i) {
21834
- mom = createUTC([2000, i]);
21835
- this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
21836
- this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
21837
- }
21838
- }
21839
-
21840
- if (strict) {
21841
- if (format === 'MMM') {
21842
- ii = indexOf.call(this._shortMonthsParse, llc);
21843
- return ii !== -1 ? ii : null;
21844
- } else {
21845
- ii = indexOf.call(this._longMonthsParse, llc);
21846
- return ii !== -1 ? ii : null;
21847
- }
21848
- } else {
21849
- if (format === 'MMM') {
21850
- ii = indexOf.call(this._shortMonthsParse, llc);
21851
- if (ii !== -1) {
21852
- return ii;
21853
- }
21854
- ii = indexOf.call(this._longMonthsParse, llc);
21855
- return ii !== -1 ? ii : null;
21856
- } else {
21857
- ii = indexOf.call(this._longMonthsParse, llc);
21858
- if (ii !== -1) {
21859
- return ii;
21860
- }
21861
- ii = indexOf.call(this._shortMonthsParse, llc);
21862
- return ii !== -1 ? ii : null;
21863
- }
21864
- }
21865
- }
21866
-
21867
- function localeMonthsParse (monthName, format, strict) {
21868
- var i, mom, regex;
21869
-
21870
- if (this._monthsParseExact) {
21871
- return handleStrictParse.call(this, monthName, format, strict);
21872
- }
21873
-
21874
- if (!this._monthsParse) {
21875
- this._monthsParse = [];
21876
- this._longMonthsParse = [];
21877
- this._shortMonthsParse = [];
21878
- }
21879
-
21880
- // TODO: add sorting
21881
- // Sorting makes sure if one month (or abbr) is a prefix of another
21882
- // see sorting in computeMonthsParse
21883
- for (i = 0; i < 12; i++) {
21884
- // make the regex if we don't have it already
21885
- mom = createUTC([2000, i]);
21886
- if (strict && !this._longMonthsParse[i]) {
21887
- this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
21888
- this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
21889
- }
21890
- if (!strict && !this._monthsParse[i]) {
21891
- regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
21892
- this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
21893
- }
21894
- // test the regex
21895
- if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
21896
- return i;
21897
- } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
21898
- return i;
21899
- } else if (!strict && this._monthsParse[i].test(monthName)) {
21900
- return i;
21901
- }
21902
- }
21903
- }
21904
-
21905
- // MOMENTS
21906
-
21907
- function setMonth (mom, value) {
21908
- var dayOfMonth;
21909
-
21910
- if (!mom.isValid()) {
21911
- // No op
21912
- return mom;
21913
- }
21914
-
21915
- if (typeof value === 'string') {
21916
- if (/^\d+$/.test(value)) {
21917
- value = toInt(value);
21918
- } else {
21919
- value = mom.localeData().monthsParse(value);
21920
- // TODO: Another silent failure?
21921
- if (!isNumber(value)) {
21922
- return mom;
21923
- }
21924
- }
21925
- }
21926
-
21927
- dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
21928
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
21929
- return mom;
21930
- }
21931
-
21932
- function getSetMonth (value) {
21933
- if (value != null) {
21934
- setMonth(this, value);
21935
- hooks.updateOffset(this, true);
21936
- return this;
21937
- } else {
21938
- return get(this, 'Month');
21939
- }
21940
- }
21941
-
21942
- function getDaysInMonth () {
21943
- return daysInMonth(this.year(), this.month());
21944
- }
21945
-
21946
- var defaultMonthsShortRegex = matchWord;
21947
- function monthsShortRegex (isStrict) {
21948
- if (this._monthsParseExact) {
21949
- if (!hasOwnProp(this, '_monthsRegex')) {
21950
- computeMonthsParse.call(this);
21951
- }
21952
- if (isStrict) {
21953
- return this._monthsShortStrictRegex;
21954
- } else {
21955
- return this._monthsShortRegex;
21956
- }
21957
- } else {
21958
- if (!hasOwnProp(this, '_monthsShortRegex')) {
21959
- this._monthsShortRegex = defaultMonthsShortRegex;
21960
- }
21961
- return this._monthsShortStrictRegex && isStrict ?
21962
- this._monthsShortStrictRegex : this._monthsShortRegex;
21963
- }
21964
- }
21965
-
21966
- var defaultMonthsRegex = matchWord;
21967
- function monthsRegex (isStrict) {
21968
- if (this._monthsParseExact) {
21969
- if (!hasOwnProp(this, '_monthsRegex')) {
21970
- computeMonthsParse.call(this);
21971
- }
21972
- if (isStrict) {
21973
- return this._monthsStrictRegex;
21974
- } else {
21975
- return this._monthsRegex;
21976
- }
21977
- } else {
21978
- if (!hasOwnProp(this, '_monthsRegex')) {
21979
- this._monthsRegex = defaultMonthsRegex;
21980
- }
21981
- return this._monthsStrictRegex && isStrict ?
21982
- this._monthsStrictRegex : this._monthsRegex;
21983
- }
21984
- }
21985
-
21986
- function computeMonthsParse () {
21987
- function cmpLenRev(a, b) {
21988
- return b.length - a.length;
21989
- }
21990
-
21991
- var shortPieces = [], longPieces = [], mixedPieces = [],
21992
- i, mom;
21993
- for (i = 0; i < 12; i++) {
21994
- // make the regex if we don't have it already
21995
- mom = createUTC([2000, i]);
21996
- shortPieces.push(this.monthsShort(mom, ''));
21997
- longPieces.push(this.months(mom, ''));
21998
- mixedPieces.push(this.months(mom, ''));
21999
- mixedPieces.push(this.monthsShort(mom, ''));
22000
- }
22001
- // Sorting makes sure if one month (or abbr) is a prefix of another it
22002
- // will match the longer piece.
22003
- shortPieces.sort(cmpLenRev);
22004
- longPieces.sort(cmpLenRev);
22005
- mixedPieces.sort(cmpLenRev);
22006
- for (i = 0; i < 12; i++) {
22007
- shortPieces[i] = regexEscape(shortPieces[i]);
22008
- longPieces[i] = regexEscape(longPieces[i]);
22009
- }
22010
- for (i = 0; i < 24; i++) {
22011
- mixedPieces[i] = regexEscape(mixedPieces[i]);
22012
- }
22013
-
22014
- this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
22015
- this._monthsShortRegex = this._monthsRegex;
22016
- this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
22017
- this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
22018
- }
22019
-
22020
- function createDate (y, m, d, h, M, s, ms) {
22021
- // can't just apply() to create a date:
22022
- // https://stackoverflow.com/q/181348
22023
- var date = new Date(y, m, d, h, M, s, ms);
22024
-
22025
- // the date constructor remaps years 0-99 to 1900-1999
22026
- if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
22027
- date.setFullYear(y);
22028
- }
22029
- return date;
22030
- }
22031
-
22032
- function createUTCDate (y) {
22033
- var date = new Date(Date.UTC.apply(null, arguments));
22034
-
22035
- // the Date.UTC function remaps years 0-99 to 1900-1999
22036
- if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
22037
- date.setUTCFullYear(y);
22038
- }
22039
- return date;
22040
- }
22041
-
22042
- // start-of-first-week - start-of-year
22043
- function firstWeekOffset(year, dow, doy) {
22044
- var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
22045
- fwd = 7 + dow - doy,
22046
- // first-week day local weekday -- which local weekday is fwd
22047
- fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
22048
-
22049
- return -fwdlw + fwd - 1;
22050
- }
22051
-
22052
- // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
22053
- function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
22054
- var localWeekday = (7 + weekday - dow) % 7,
22055
- weekOffset = firstWeekOffset(year, dow, doy),
22056
- dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
22057
- resYear, resDayOfYear;
22058
-
22059
- if (dayOfYear <= 0) {
22060
- resYear = year - 1;
22061
- resDayOfYear = daysInYear(resYear) + dayOfYear;
22062
- } else if (dayOfYear > daysInYear(year)) {
22063
- resYear = year + 1;
22064
- resDayOfYear = dayOfYear - daysInYear(year);
22065
- } else {
22066
- resYear = year;
22067
- resDayOfYear = dayOfYear;
22068
- }
22069
-
22070
- return {
22071
- year: resYear,
22072
- dayOfYear: resDayOfYear
22073
- };
22074
- }
22075
-
22076
- function weekOfYear(mom, dow, doy) {
22077
- var weekOffset = firstWeekOffset(mom.year(), dow, doy),
22078
- week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
22079
- resWeek, resYear;
22080
-
22081
- if (week < 1) {
22082
- resYear = mom.year() - 1;
22083
- resWeek = week + weeksInYear(resYear, dow, doy);
22084
- } else if (week > weeksInYear(mom.year(), dow, doy)) {
22085
- resWeek = week - weeksInYear(mom.year(), dow, doy);
22086
- resYear = mom.year() + 1;
22087
- } else {
22088
- resYear = mom.year();
22089
- resWeek = week;
22090
- }
22091
-
22092
- return {
22093
- week: resWeek,
22094
- year: resYear
22095
- };
22096
- }
22097
-
22098
- function weeksInYear(year, dow, doy) {
22099
- var weekOffset = firstWeekOffset(year, dow, doy),
22100
- weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
22101
- return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
22102
- }
22103
-
22104
- // FORMATTING
22105
-
22106
- addFormatToken('w', ['ww', 2], 'wo', 'week');
22107
- addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
22108
-
22109
- // ALIASES
22110
-
22111
- addUnitAlias('week', 'w');
22112
- addUnitAlias('isoWeek', 'W');
22113
-
22114
- // PRIORITIES
22115
-
22116
- addUnitPriority('week', 5);
22117
- addUnitPriority('isoWeek', 5);
22118
-
22119
- // PARSING
22120
-
22121
- addRegexToken('w', match1to2);
22122
- addRegexToken('ww', match1to2, match2);
22123
- addRegexToken('W', match1to2);
22124
- addRegexToken('WW', match1to2, match2);
22125
-
22126
- addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
22127
- week[token.substr(0, 1)] = toInt(input);
22128
- });
22129
-
22130
- // HELPERS
22131
-
22132
- // LOCALES
22133
-
22134
- function localeWeek (mom) {
22135
- return weekOfYear(mom, this._week.dow, this._week.doy).week;
22136
- }
22137
-
22138
- var defaultLocaleWeek = {
22139
- dow : 0, // Sunday is the first day of the week.
22140
- doy : 6 // The week that contains Jan 1st is the first week of the year.
22141
- };
22142
-
22143
- function localeFirstDayOfWeek () {
22144
- return this._week.dow;
22145
- }
22146
-
22147
- function localeFirstDayOfYear () {
22148
- return this._week.doy;
22149
- }
22150
-
22151
- // MOMENTS
22152
-
22153
- function getSetWeek (input) {
22154
- var week = this.localeData().week(this);
22155
- return input == null ? week : this.add((input - week) * 7, 'd');
22156
- }
22157
-
22158
- function getSetISOWeek (input) {
22159
- var week = weekOfYear(this, 1, 4).week;
22160
- return input == null ? week : this.add((input - week) * 7, 'd');
22161
- }
22162
-
22163
- // FORMATTING
22164
-
22165
- addFormatToken('d', 0, 'do', 'day');
22166
-
22167
- addFormatToken('dd', 0, 0, function (format) {
22168
- return this.localeData().weekdaysMin(this, format);
22169
- });
22170
-
22171
- addFormatToken('ddd', 0, 0, function (format) {
22172
- return this.localeData().weekdaysShort(this, format);
22173
- });
22174
-
22175
- addFormatToken('dddd', 0, 0, function (format) {
22176
- return this.localeData().weekdays(this, format);
22177
- });
22178
-
22179
- addFormatToken('e', 0, 0, 'weekday');
22180
- addFormatToken('E', 0, 0, 'isoWeekday');
22181
-
22182
- // ALIASES
22183
-
22184
- addUnitAlias('day', 'd');
22185
- addUnitAlias('weekday', 'e');
22186
- addUnitAlias('isoWeekday', 'E');
22187
-
22188
- // PRIORITY
22189
- addUnitPriority('day', 11);
22190
- addUnitPriority('weekday', 11);
22191
- addUnitPriority('isoWeekday', 11);
22192
-
22193
- // PARSING
22194
-
22195
- addRegexToken('d', match1to2);
22196
- addRegexToken('e', match1to2);
22197
- addRegexToken('E', match1to2);
22198
- addRegexToken('dd', function (isStrict, locale) {
22199
- return locale.weekdaysMinRegex(isStrict);
22200
- });
22201
- addRegexToken('ddd', function (isStrict, locale) {
22202
- return locale.weekdaysShortRegex(isStrict);
22203
- });
22204
- addRegexToken('dddd', function (isStrict, locale) {
22205
- return locale.weekdaysRegex(isStrict);
22206
- });
22207
-
22208
- addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
22209
- var weekday = config._locale.weekdaysParse(input, token, config._strict);
22210
- // if we didn't get a weekday name, mark the date as invalid
22211
- if (weekday != null) {
22212
- week.d = weekday;
22213
- } else {
22214
- getParsingFlags(config).invalidWeekday = input;
22215
- }
22216
- });
22217
-
22218
- addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
22219
- week[token] = toInt(input);
22220
- });
22221
-
22222
- // HELPERS
22223
-
22224
- function parseWeekday(input, locale) {
22225
- if (typeof input !== 'string') {
22226
- return input;
22227
- }
22228
-
22229
- if (!isNaN(input)) {
22230
- return parseInt(input, 10);
22231
- }
22232
-
22233
- input = locale.weekdaysParse(input);
22234
- if (typeof input === 'number') {
22235
- return input;
22236
- }
22237
-
22238
- return null;
22239
- }
22240
-
22241
- function parseIsoWeekday(input, locale) {
22242
- if (typeof input === 'string') {
22243
- return locale.weekdaysParse(input) % 7 || 7;
22244
- }
22245
- return isNaN(input) ? null : input;
22246
- }
22247
-
22248
- // LOCALES
22249
-
22250
- var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
22251
- function localeWeekdays (m, format) {
22252
- if (!m) {
22253
- return isArray(this._weekdays) ? this._weekdays :
22254
- this._weekdays['standalone'];
22255
- }
22256
- return isArray(this._weekdays) ? this._weekdays[m.day()] :
22257
- this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
22258
- }
22259
-
22260
- var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
22261
- function localeWeekdaysShort (m) {
22262
- return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
22263
- }
22264
-
22265
- var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
22266
- function localeWeekdaysMin (m) {
22267
- return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
22268
- }
22269
-
22270
- function handleStrictParse$1(weekdayName, format, strict) {
22271
- var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
22272
- if (!this._weekdaysParse) {
22273
- this._weekdaysParse = [];
22274
- this._shortWeekdaysParse = [];
22275
- this._minWeekdaysParse = [];
22276
-
22277
- for (i = 0; i < 7; ++i) {
22278
- mom = createUTC([2000, 1]).day(i);
22279
- this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
22280
- this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
22281
- this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
22282
- }
22283
- }
22284
-
22285
- if (strict) {
22286
- if (format === 'dddd') {
22287
- ii = indexOf.call(this._weekdaysParse, llc);
22288
- return ii !== -1 ? ii : null;
22289
- } else if (format === 'ddd') {
22290
- ii = indexOf.call(this._shortWeekdaysParse, llc);
22291
- return ii !== -1 ? ii : null;
22292
- } else {
22293
- ii = indexOf.call(this._minWeekdaysParse, llc);
22294
- return ii !== -1 ? ii : null;
22295
- }
22296
- } else {
22297
- if (format === 'dddd') {
22298
- ii = indexOf.call(this._weekdaysParse, llc);
22299
- if (ii !== -1) {
22300
- return ii;
22301
- }
22302
- ii = indexOf.call(this._shortWeekdaysParse, llc);
22303
- if (ii !== -1) {
22304
- return ii;
22305
- }
22306
- ii = indexOf.call(this._minWeekdaysParse, llc);
22307
- return ii !== -1 ? ii : null;
22308
- } else if (format === 'ddd') {
22309
- ii = indexOf.call(this._shortWeekdaysParse, llc);
22310
- if (ii !== -1) {
22311
- return ii;
22312
- }
22313
- ii = indexOf.call(this._weekdaysParse, llc);
22314
- if (ii !== -1) {
22315
- return ii;
22316
- }
22317
- ii = indexOf.call(this._minWeekdaysParse, llc);
22318
- return ii !== -1 ? ii : null;
22319
- } else {
22320
- ii = indexOf.call(this._minWeekdaysParse, llc);
22321
- if (ii !== -1) {
22322
- return ii;
22323
- }
22324
- ii = indexOf.call(this._weekdaysParse, llc);
22325
- if (ii !== -1) {
22326
- return ii;
22327
- }
22328
- ii = indexOf.call(this._shortWeekdaysParse, llc);
22329
- return ii !== -1 ? ii : null;
22330
- }
22331
- }
22332
- }
22333
-
22334
- function localeWeekdaysParse (weekdayName, format, strict) {
22335
- var i, mom, regex;
22336
-
22337
- if (this._weekdaysParseExact) {
22338
- return handleStrictParse$1.call(this, weekdayName, format, strict);
22339
- }
22340
-
22341
- if (!this._weekdaysParse) {
22342
- this._weekdaysParse = [];
22343
- this._minWeekdaysParse = [];
22344
- this._shortWeekdaysParse = [];
22345
- this._fullWeekdaysParse = [];
22346
- }
22347
-
22348
- for (i = 0; i < 7; i++) {
22349
- // make the regex if we don't have it already
22350
-
22351
- mom = createUTC([2000, 1]).day(i);
22352
- if (strict && !this._fullWeekdaysParse[i]) {
22353
- this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
22354
- this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
22355
- this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
22356
- }
22357
- if (!this._weekdaysParse[i]) {
22358
- regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
22359
- this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
22360
- }
22361
- // test the regex
22362
- if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
22363
- return i;
22364
- } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
22365
- return i;
22366
- } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
22367
- return i;
22368
- } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
22369
- return i;
22370
- }
22371
- }
22372
- }
22373
-
22374
- // MOMENTS
22375
-
22376
- function getSetDayOfWeek (input) {
22377
- if (!this.isValid()) {
22378
- return input != null ? this : NaN;
22379
- }
22380
- var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
22381
- if (input != null) {
22382
- input = parseWeekday(input, this.localeData());
22383
- return this.add(input - day, 'd');
22384
- } else {
22385
- return day;
22386
- }
22387
- }
22388
-
22389
- function getSetLocaleDayOfWeek (input) {
22390
- if (!this.isValid()) {
22391
- return input != null ? this : NaN;
22392
- }
22393
- var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
22394
- return input == null ? weekday : this.add(input - weekday, 'd');
22395
- }
22396
-
22397
- function getSetISODayOfWeek (input) {
22398
- if (!this.isValid()) {
22399
- return input != null ? this : NaN;
22400
- }
22401
-
22402
- // behaves the same as moment#day except
22403
- // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
22404
- // as a setter, sunday should belong to the previous week.
22405
-
22406
- if (input != null) {
22407
- var weekday = parseIsoWeekday(input, this.localeData());
22408
- return this.day(this.day() % 7 ? weekday : weekday - 7);
22409
- } else {
22410
- return this.day() || 7;
22411
- }
22412
- }
22413
-
22414
- var defaultWeekdaysRegex = matchWord;
22415
- function weekdaysRegex (isStrict) {
22416
- if (this._weekdaysParseExact) {
22417
- if (!hasOwnProp(this, '_weekdaysRegex')) {
22418
- computeWeekdaysParse.call(this);
22419
- }
22420
- if (isStrict) {
22421
- return this._weekdaysStrictRegex;
22422
- } else {
22423
- return this._weekdaysRegex;
22424
- }
22425
- } else {
22426
- if (!hasOwnProp(this, '_weekdaysRegex')) {
22427
- this._weekdaysRegex = defaultWeekdaysRegex;
22428
- }
22429
- return this._weekdaysStrictRegex && isStrict ?
22430
- this._weekdaysStrictRegex : this._weekdaysRegex;
22431
- }
22432
- }
22433
-
22434
- var defaultWeekdaysShortRegex = matchWord;
22435
- function weekdaysShortRegex (isStrict) {
22436
- if (this._weekdaysParseExact) {
22437
- if (!hasOwnProp(this, '_weekdaysRegex')) {
22438
- computeWeekdaysParse.call(this);
22439
- }
22440
- if (isStrict) {
22441
- return this._weekdaysShortStrictRegex;
22442
- } else {
22443
- return this._weekdaysShortRegex;
22444
- }
22445
- } else {
22446
- if (!hasOwnProp(this, '_weekdaysShortRegex')) {
22447
- this._weekdaysShortRegex = defaultWeekdaysShortRegex;
22448
- }
22449
- return this._weekdaysShortStrictRegex && isStrict ?
22450
- this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
22451
- }
22452
- }
22453
-
22454
- var defaultWeekdaysMinRegex = matchWord;
22455
- function weekdaysMinRegex (isStrict) {
22456
- if (this._weekdaysParseExact) {
22457
- if (!hasOwnProp(this, '_weekdaysRegex')) {
22458
- computeWeekdaysParse.call(this);
22459
- }
22460
- if (isStrict) {
22461
- return this._weekdaysMinStrictRegex;
22462
- } else {
22463
- return this._weekdaysMinRegex;
22464
- }
22465
- } else {
22466
- if (!hasOwnProp(this, '_weekdaysMinRegex')) {
22467
- this._weekdaysMinRegex = defaultWeekdaysMinRegex;
22468
- }
22469
- return this._weekdaysMinStrictRegex && isStrict ?
22470
- this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
22471
- }
22472
- }
22473
-
22474
-
22475
- function computeWeekdaysParse () {
22476
- function cmpLenRev(a, b) {
22477
- return b.length - a.length;
22478
- }
22479
-
22480
- var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
22481
- i, mom, minp, shortp, longp;
22482
- for (i = 0; i < 7; i++) {
22483
- // make the regex if we don't have it already
22484
- mom = createUTC([2000, 1]).day(i);
22485
- minp = this.weekdaysMin(mom, '');
22486
- shortp = this.weekdaysShort(mom, '');
22487
- longp = this.weekdays(mom, '');
22488
- minPieces.push(minp);
22489
- shortPieces.push(shortp);
22490
- longPieces.push(longp);
22491
- mixedPieces.push(minp);
22492
- mixedPieces.push(shortp);
22493
- mixedPieces.push(longp);
22494
- }
22495
- // Sorting makes sure if one weekday (or abbr) is a prefix of another it
22496
- // will match the longer piece.
22497
- minPieces.sort(cmpLenRev);
22498
- shortPieces.sort(cmpLenRev);
22499
- longPieces.sort(cmpLenRev);
22500
- mixedPieces.sort(cmpLenRev);
22501
- for (i = 0; i < 7; i++) {
22502
- shortPieces[i] = regexEscape(shortPieces[i]);
22503
- longPieces[i] = regexEscape(longPieces[i]);
22504
- mixedPieces[i] = regexEscape(mixedPieces[i]);
22505
- }
22506
-
22507
- this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
22508
- this._weekdaysShortRegex = this._weekdaysRegex;
22509
- this._weekdaysMinRegex = this._weekdaysRegex;
22510
-
22511
- this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
22512
- this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
22513
- this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
22514
- }
22515
-
22516
- // FORMATTING
22517
-
22518
- function hFormat() {
22519
- return this.hours() % 12 || 12;
22520
- }
22521
-
22522
- function kFormat() {
22523
- return this.hours() || 24;
22524
- }
22525
-
22526
- addFormatToken('H', ['HH', 2], 0, 'hour');
22527
- addFormatToken('h', ['hh', 2], 0, hFormat);
22528
- addFormatToken('k', ['kk', 2], 0, kFormat);
22529
-
22530
- addFormatToken('hmm', 0, 0, function () {
22531
- return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
22532
- });
22533
-
22534
- addFormatToken('hmmss', 0, 0, function () {
22535
- return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
22536
- zeroFill(this.seconds(), 2);
22537
- });
22538
-
22539
- addFormatToken('Hmm', 0, 0, function () {
22540
- return '' + this.hours() + zeroFill(this.minutes(), 2);
22541
- });
22542
-
22543
- addFormatToken('Hmmss', 0, 0, function () {
22544
- return '' + this.hours() + zeroFill(this.minutes(), 2) +
22545
- zeroFill(this.seconds(), 2);
22546
- });
22547
-
22548
- function meridiem (token, lowercase) {
22549
- addFormatToken(token, 0, 0, function () {
22550
- return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
22551
- });
22552
- }
22553
-
22554
- meridiem('a', true);
22555
- meridiem('A', false);
22556
-
22557
- // ALIASES
22558
-
22559
- addUnitAlias('hour', 'h');
22560
-
22561
- // PRIORITY
22562
- addUnitPriority('hour', 13);
22563
-
22564
- // PARSING
22565
-
22566
- function matchMeridiem (isStrict, locale) {
22567
- return locale._meridiemParse;
22568
- }
22569
-
22570
- addRegexToken('a', matchMeridiem);
22571
- addRegexToken('A', matchMeridiem);
22572
- addRegexToken('H', match1to2);
22573
- addRegexToken('h', match1to2);
22574
- addRegexToken('k', match1to2);
22575
- addRegexToken('HH', match1to2, match2);
22576
- addRegexToken('hh', match1to2, match2);
22577
- addRegexToken('kk', match1to2, match2);
22578
-
22579
- addRegexToken('hmm', match3to4);
22580
- addRegexToken('hmmss', match5to6);
22581
- addRegexToken('Hmm', match3to4);
22582
- addRegexToken('Hmmss', match5to6);
22583
-
22584
- addParseToken(['H', 'HH'], HOUR);
22585
- addParseToken(['k', 'kk'], function (input, array, config) {
22586
- var kInput = toInt(input);
22587
- array[HOUR] = kInput === 24 ? 0 : kInput;
22588
- });
22589
- addParseToken(['a', 'A'], function (input, array, config) {
22590
- config._isPm = config._locale.isPM(input);
22591
- config._meridiem = input;
22592
- });
22593
- addParseToken(['h', 'hh'], function (input, array, config) {
22594
- array[HOUR] = toInt(input);
22595
- getParsingFlags(config).bigHour = true;
22596
- });
22597
- addParseToken('hmm', function (input, array, config) {
22598
- var pos = input.length - 2;
22599
- array[HOUR] = toInt(input.substr(0, pos));
22600
- array[MINUTE] = toInt(input.substr(pos));
22601
- getParsingFlags(config).bigHour = true;
22602
- });
22603
- addParseToken('hmmss', function (input, array, config) {
22604
- var pos1 = input.length - 4;
22605
- var pos2 = input.length - 2;
22606
- array[HOUR] = toInt(input.substr(0, pos1));
22607
- array[MINUTE] = toInt(input.substr(pos1, 2));
22608
- array[SECOND] = toInt(input.substr(pos2));
22609
- getParsingFlags(config).bigHour = true;
22610
- });
22611
- addParseToken('Hmm', function (input, array, config) {
22612
- var pos = input.length - 2;
22613
- array[HOUR] = toInt(input.substr(0, pos));
22614
- array[MINUTE] = toInt(input.substr(pos));
22615
- });
22616
- addParseToken('Hmmss', function (input, array, config) {
22617
- var pos1 = input.length - 4;
22618
- var pos2 = input.length - 2;
22619
- array[HOUR] = toInt(input.substr(0, pos1));
22620
- array[MINUTE] = toInt(input.substr(pos1, 2));
22621
- array[SECOND] = toInt(input.substr(pos2));
22622
- });
22623
-
22624
- // LOCALES
22625
-
22626
- function localeIsPM (input) {
22627
- // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
22628
- // Using charAt should be more compatible.
22629
- return ((input + '').toLowerCase().charAt(0) === 'p');
22630
- }
22631
-
22632
- var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
22633
- function localeMeridiem (hours, minutes, isLower) {
22634
- if (hours > 11) {
22635
- return isLower ? 'pm' : 'PM';
22636
- } else {
22637
- return isLower ? 'am' : 'AM';
22638
- }
22639
- }
22640
-
22641
-
22642
- // MOMENTS
22643
-
22644
- // Setting the hour should keep the time, because the user explicitly
22645
- // specified which hour he wants. So trying to maintain the same hour (in
22646
- // a new timezone) makes sense. Adding/subtracting hours does not follow
22647
- // this rule.
22648
- var getSetHour = makeGetSet('Hours', true);
22649
-
22650
- var baseConfig = {
22651
- calendar: defaultCalendar,
22652
- longDateFormat: defaultLongDateFormat,
22653
- invalidDate: defaultInvalidDate,
22654
- ordinal: defaultOrdinal,
22655
- dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
22656
- relativeTime: defaultRelativeTime,
22657
-
22658
- months: defaultLocaleMonths,
22659
- monthsShort: defaultLocaleMonthsShort,
22660
-
22661
- week: defaultLocaleWeek,
22662
-
22663
- weekdays: defaultLocaleWeekdays,
22664
- weekdaysMin: defaultLocaleWeekdaysMin,
22665
- weekdaysShort: defaultLocaleWeekdaysShort,
22666
-
22667
- meridiemParse: defaultLocaleMeridiemParse
22668
- };
22669
-
22670
- // internal storage for locale config files
22671
- var locales = {};
22672
- var localeFamilies = {};
22673
- var globalLocale;
22674
-
22675
- function normalizeLocale(key) {
22676
- return key ? key.toLowerCase().replace('_', '-') : key;
22677
- }
22678
-
22679
- // pick the locale from the array
22680
- // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
22681
- // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
22682
- function chooseLocale(names) {
22683
- var i = 0, j, next, locale, split;
22684
-
22685
- while (i < names.length) {
22686
- split = normalizeLocale(names[i]).split('-');
22687
- j = split.length;
22688
- next = normalizeLocale(names[i + 1]);
22689
- next = next ? next.split('-') : null;
22690
- while (j > 0) {
22691
- locale = loadLocale(split.slice(0, j).join('-'));
22692
- if (locale) {
22693
- return locale;
22694
- }
22695
- if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
22696
- //the next array item is better than a shallower substring of this one
22697
- break;
22698
- }
22699
- j--;
22700
- }
22701
- i++;
22702
- }
22703
- return globalLocale;
22704
- }
22705
-
22706
- function loadLocale(name) {
22707
- var oldLocale = null;
22708
- // TODO: Find a better way to register and load all the locales in Node
22709
- if (!locales[name] && (typeof module !== 'undefined') &&
22710
- module && module.exports) {
22711
- try {
22712
- oldLocale = globalLocale._abbr;
22713
- var aliasedRequire = require;
22714
- __webpack_require__("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./" + name);
22715
- getSetGlobalLocale(oldLocale);
22716
- } catch (e) {}
22717
- }
22718
- return locales[name];
22719
- }
22720
-
22721
- // This function will load locale and then set the global locale. If
22722
- // no arguments are passed in, it will simply return the current global
22723
- // locale key.
22724
- function getSetGlobalLocale (key, values) {
22725
- var data;
22726
- if (key) {
22727
- if (isUndefined(values)) {
22728
- data = getLocale(key);
22729
- }
22730
- else {
22731
- data = defineLocale(key, values);
22732
- }
22733
-
22734
- if (data) {
22735
- // moment.duration._locale = moment._locale = data;
22736
- globalLocale = data;
22737
- }
22738
- else {
22739
- if ((typeof console !== 'undefined') && console.warn) {
22740
- //warn user if arguments are passed but the locale could not be set
22741
- console.warn('Locale ' + key + ' not found. Did you forget to load it?');
22742
- }
22743
- }
22744
- }
22745
-
22746
- return globalLocale._abbr;
22747
- }
22748
-
22749
- function defineLocale (name, config) {
22750
- if (config !== null) {
22751
- var locale, parentConfig = baseConfig;
22752
- config.abbr = name;
22753
- if (locales[name] != null) {
22754
- deprecateSimple('defineLocaleOverride',
22755
- 'use moment.updateLocale(localeName, config) to change ' +
22756
- 'an existing locale. moment.defineLocale(localeName, ' +
22757
- 'config) should only be used for creating a new locale ' +
22758
- 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
22759
- parentConfig = locales[name]._config;
22760
- } else if (config.parentLocale != null) {
22761
- if (locales[config.parentLocale] != null) {
22762
- parentConfig = locales[config.parentLocale]._config;
22763
- } else {
22764
- locale = loadLocale(config.parentLocale);
22765
- if (locale != null) {
22766
- parentConfig = locale._config;
22767
- } else {
22768
- if (!localeFamilies[config.parentLocale]) {
22769
- localeFamilies[config.parentLocale] = [];
22770
- }
22771
- localeFamilies[config.parentLocale].push({
22772
- name: name,
22773
- config: config
22774
- });
22775
- return null;
22776
- }
22777
- }
22778
- }
22779
- locales[name] = new Locale(mergeConfigs(parentConfig, config));
22780
-
22781
- if (localeFamilies[name]) {
22782
- localeFamilies[name].forEach(function (x) {
22783
- defineLocale(x.name, x.config);
22784
- });
22785
- }
22786
-
22787
- // backwards compat for now: also set the locale
22788
- // make sure we set the locale AFTER all child locales have been
22789
- // created, so we won't end up with the child locale set.
22790
- getSetGlobalLocale(name);
22791
-
22792
-
22793
- return locales[name];
22794
- } else {
22795
- // useful for testing
22796
- delete locales[name];
22797
- return null;
22798
- }
22799
- }
22800
-
22801
- function updateLocale(name, config) {
22802
- if (config != null) {
22803
- var locale, tmpLocale, parentConfig = baseConfig;
22804
- // MERGE
22805
- tmpLocale = loadLocale(name);
22806
- if (tmpLocale != null) {
22807
- parentConfig = tmpLocale._config;
22808
- }
22809
- config = mergeConfigs(parentConfig, config);
22810
- locale = new Locale(config);
22811
- locale.parentLocale = locales[name];
22812
- locales[name] = locale;
22813
-
22814
- // backwards compat for now: also set the locale
22815
- getSetGlobalLocale(name);
22816
- } else {
22817
- // pass null for config to unupdate, useful for tests
22818
- if (locales[name] != null) {
22819
- if (locales[name].parentLocale != null) {
22820
- locales[name] = locales[name].parentLocale;
22821
- } else if (locales[name] != null) {
22822
- delete locales[name];
22823
- }
22824
- }
22825
- }
22826
- return locales[name];
22827
- }
22828
-
22829
- // returns locale data
22830
- function getLocale (key) {
22831
- var locale;
22832
-
22833
- if (key && key._locale && key._locale._abbr) {
22834
- key = key._locale._abbr;
22835
- }
22836
-
22837
- if (!key) {
22838
- return globalLocale;
22839
- }
22840
-
22841
- if (!isArray(key)) {
22842
- //short-circuit everything else
22843
- locale = loadLocale(key);
22844
- if (locale) {
22845
- return locale;
22846
- }
22847
- key = [key];
22848
- }
22849
-
22850
- return chooseLocale(key);
22851
- }
22852
-
22853
- function listLocales() {
22854
- return keys(locales);
22855
- }
22856
-
22857
- function checkOverflow (m) {
22858
- var overflow;
22859
- var a = m._a;
22860
-
22861
- if (a && getParsingFlags(m).overflow === -2) {
22862
- overflow =
22863
- a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
22864
- a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
22865
- a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
22866
- a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
22867
- a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
22868
- a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
22869
- -1;
22870
-
22871
- if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
22872
- overflow = DATE;
22873
- }
22874
- if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
22875
- overflow = WEEK;
22876
- }
22877
- if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
22878
- overflow = WEEKDAY;
22879
- }
22880
-
22881
- getParsingFlags(m).overflow = overflow;
22882
- }
22883
-
22884
- return m;
22885
- }
22886
-
22887
- // Pick the first defined of two or three arguments.
22888
- function defaults(a, b, c) {
22889
- if (a != null) {
22890
- return a;
22891
- }
22892
- if (b != null) {
22893
- return b;
22894
- }
22895
- return c;
22896
- }
22897
-
22898
- function currentDateArray(config) {
22899
- // hooks is actually the exported moment object
22900
- var nowValue = new Date(hooks.now());
22901
- if (config._useUTC) {
22902
- return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
22903
- }
22904
- return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
22905
- }
22906
-
22907
- // convert an array to a date.
22908
- // the array should mirror the parameters below
22909
- // note: all values past the year are optional and will default to the lowest possible value.
22910
- // [year, month, day , hour, minute, second, millisecond]
22911
- function configFromArray (config) {
22912
- var i, date, input = [], currentDate, expectedWeekday, yearToUse;
22913
-
22914
- if (config._d) {
22915
- return;
22916
- }
22917
-
22918
- currentDate = currentDateArray(config);
22919
-
22920
- //compute day of the year from weeks and weekdays
22921
- if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
22922
- dayOfYearFromWeekInfo(config);
22923
- }
22924
-
22925
- //if the day of the year is set, figure out what it is
22926
- if (config._dayOfYear != null) {
22927
- yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
22928
-
22929
- if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
22930
- getParsingFlags(config)._overflowDayOfYear = true;
22931
- }
22932
-
22933
- date = createUTCDate(yearToUse, 0, config._dayOfYear);
22934
- config._a[MONTH] = date.getUTCMonth();
22935
- config._a[DATE] = date.getUTCDate();
22936
- }
22937
-
22938
- // Default to current date.
22939
- // * if no year, month, day of month are given, default to today
22940
- // * if day of month is given, default month and year
22941
- // * if month is given, default only year
22942
- // * if year is given, don't default anything
22943
- for (i = 0; i < 3 && config._a[i] == null; ++i) {
22944
- config._a[i] = input[i] = currentDate[i];
22945
- }
22946
-
22947
- // Zero out whatever was not defaulted, including time
22948
- for (; i < 7; i++) {
22949
- config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
22950
- }
22951
-
22952
- // Check for 24:00:00.000
22953
- if (config._a[HOUR] === 24 &&
22954
- config._a[MINUTE] === 0 &&
22955
- config._a[SECOND] === 0 &&
22956
- config._a[MILLISECOND] === 0) {
22957
- config._nextDay = true;
22958
- config._a[HOUR] = 0;
22959
- }
22960
-
22961
- config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
22962
- expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
22963
-
22964
- // Apply timezone offset from input. The actual utcOffset can be changed
22965
- // with parseZone.
22966
- if (config._tzm != null) {
22967
- config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
22968
- }
22969
-
22970
- if (config._nextDay) {
22971
- config._a[HOUR] = 24;
22972
- }
22973
-
22974
- // check for mismatching day of week
22975
- if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
22976
- getParsingFlags(config).weekdayMismatch = true;
22977
- }
22978
- }
22979
-
22980
- function dayOfYearFromWeekInfo(config) {
22981
- var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
22982
-
22983
- w = config._w;
22984
- if (w.GG != null || w.W != null || w.E != null) {
22985
- dow = 1;
22986
- doy = 4;
22987
-
22988
- // TODO: We need to take the current isoWeekYear, but that depends on
22989
- // how we interpret now (local, utc, fixed offset). So create
22990
- // a now version of current config (take local/utc/offset flags, and
22991
- // create now).
22992
- weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
22993
- week = defaults(w.W, 1);
22994
- weekday = defaults(w.E, 1);
22995
- if (weekday < 1 || weekday > 7) {
22996
- weekdayOverflow = true;
22997
- }
22998
- } else {
22999
- dow = config._locale._week.dow;
23000
- doy = config._locale._week.doy;
23001
-
23002
- var curWeek = weekOfYear(createLocal(), dow, doy);
23003
-
23004
- weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
23005
-
23006
- // Default to current week.
23007
- week = defaults(w.w, curWeek.week);
23008
-
23009
- if (w.d != null) {
23010
- // weekday -- low day numbers are considered next week
23011
- weekday = w.d;
23012
- if (weekday < 0 || weekday > 6) {
23013
- weekdayOverflow = true;
23014
- }
23015
- } else if (w.e != null) {
23016
- // local weekday -- counting starts from begining of week
23017
- weekday = w.e + dow;
23018
- if (w.e < 0 || w.e > 6) {
23019
- weekdayOverflow = true;
23020
- }
23021
- } else {
23022
- // default to begining of week
23023
- weekday = dow;
23024
- }
23025
- }
23026
- if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
23027
- getParsingFlags(config)._overflowWeeks = true;
23028
- } else if (weekdayOverflow != null) {
23029
- getParsingFlags(config)._overflowWeekday = true;
23030
- } else {
23031
- temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
23032
- config._a[YEAR] = temp.year;
23033
- config._dayOfYear = temp.dayOfYear;
23034
- }
23035
- }
23036
-
23037
- // iso 8601 regex
23038
- // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
23039
- var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
23040
- var basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
23041
-
23042
- var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
23043
-
23044
- var isoDates = [
23045
- ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
23046
- ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
23047
- ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
23048
- ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
23049
- ['YYYY-DDD', /\d{4}-\d{3}/],
23050
- ['YYYY-MM', /\d{4}-\d\d/, false],
23051
- ['YYYYYYMMDD', /[+-]\d{10}/],
23052
- ['YYYYMMDD', /\d{8}/],
23053
- // YYYYMM is NOT allowed by the standard
23054
- ['GGGG[W]WWE', /\d{4}W\d{3}/],
23055
- ['GGGG[W]WW', /\d{4}W\d{2}/, false],
23056
- ['YYYYDDD', /\d{7}/]
23057
- ];
23058
-
23059
- // iso time formats and regexes
23060
- var isoTimes = [
23061
- ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
23062
- ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
23063
- ['HH:mm:ss', /\d\d:\d\d:\d\d/],
23064
- ['HH:mm', /\d\d:\d\d/],
23065
- ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
23066
- ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
23067
- ['HHmmss', /\d\d\d\d\d\d/],
23068
- ['HHmm', /\d\d\d\d/],
23069
- ['HH', /\d\d/]
23070
- ];
23071
-
23072
- var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
23073
-
23074
- // date from iso format
23075
- function configFromISO(config) {
23076
- var i, l,
23077
- string = config._i,
23078
- match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
23079
- allowTime, dateFormat, timeFormat, tzFormat;
23080
-
23081
- if (match) {
23082
- getParsingFlags(config).iso = true;
23083
-
23084
- for (i = 0, l = isoDates.length; i < l; i++) {
23085
- if (isoDates[i][1].exec(match[1])) {
23086
- dateFormat = isoDates[i][0];
23087
- allowTime = isoDates[i][2] !== false;
23088
- break;
23089
- }
23090
- }
23091
- if (dateFormat == null) {
23092
- config._isValid = false;
23093
- return;
23094
- }
23095
- if (match[3]) {
23096
- for (i = 0, l = isoTimes.length; i < l; i++) {
23097
- if (isoTimes[i][1].exec(match[3])) {
23098
- // match[2] should be 'T' or space
23099
- timeFormat = (match[2] || ' ') + isoTimes[i][0];
23100
- break;
23101
- }
23102
- }
23103
- if (timeFormat == null) {
23104
- config._isValid = false;
23105
- return;
23106
- }
23107
- }
23108
- if (!allowTime && timeFormat != null) {
23109
- config._isValid = false;
23110
- return;
23111
- }
23112
- if (match[4]) {
23113
- if (tzRegex.exec(match[4])) {
23114
- tzFormat = 'Z';
23115
- } else {
23116
- config._isValid = false;
23117
- return;
23118
- }
23119
- }
23120
- config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
23121
- configFromStringAndFormat(config);
23122
- } else {
23123
- config._isValid = false;
23124
- }
23125
- }
23126
-
23127
- // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
23128
- var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
23129
-
23130
- function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
23131
- var result = [
23132
- untruncateYear(yearStr),
23133
- defaultLocaleMonthsShort.indexOf(monthStr),
23134
- parseInt(dayStr, 10),
23135
- parseInt(hourStr, 10),
23136
- parseInt(minuteStr, 10)
23137
- ];
23138
-
23139
- if (secondStr) {
23140
- result.push(parseInt(secondStr, 10));
23141
- }
23142
-
23143
- return result;
23144
- }
23145
-
23146
- function untruncateYear(yearStr) {
23147
- var year = parseInt(yearStr, 10);
23148
- if (year <= 49) {
23149
- return 2000 + year;
23150
- } else if (year <= 999) {
23151
- return 1900 + year;
23152
- }
23153
- return year;
23154
- }
23155
-
23156
- function preprocessRFC2822(s) {
23157
- // Remove comments and folding whitespace and replace multiple-spaces with a single space
23158
- return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim();
23159
- }
23160
-
23161
- function checkWeekday(weekdayStr, parsedInput, config) {
23162
- if (weekdayStr) {
23163
- // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
23164
- var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
23165
- weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
23166
- if (weekdayProvided !== weekdayActual) {
23167
- getParsingFlags(config).weekdayMismatch = true;
23168
- config._isValid = false;
23169
- return false;
23170
- }
23171
- }
23172
- return true;
23173
- }
23174
-
23175
- var obsOffsets = {
23176
- UT: 0,
23177
- GMT: 0,
23178
- EDT: -4 * 60,
23179
- EST: -5 * 60,
23180
- CDT: -5 * 60,
23181
- CST: -6 * 60,
23182
- MDT: -6 * 60,
23183
- MST: -7 * 60,
23184
- PDT: -7 * 60,
23185
- PST: -8 * 60
23186
- };
23187
-
23188
- function calculateOffset(obsOffset, militaryOffset, numOffset) {
23189
- if (obsOffset) {
23190
- return obsOffsets[obsOffset];
23191
- } else if (militaryOffset) {
23192
- // the only allowed military tz is Z
23193
- return 0;
23194
- } else {
23195
- var hm = parseInt(numOffset, 10);
23196
- var m = hm % 100, h = (hm - m) / 100;
23197
- return h * 60 + m;
23198
- }
23199
- }
23200
-
23201
- // date and time from ref 2822 format
23202
- function configFromRFC2822(config) {
23203
- var match = rfc2822.exec(preprocessRFC2822(config._i));
23204
- if (match) {
23205
- var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
23206
- if (!checkWeekday(match[1], parsedArray, config)) {
23207
- return;
23208
- }
23209
-
23210
- config._a = parsedArray;
23211
- config._tzm = calculateOffset(match[8], match[9], match[10]);
23212
-
23213
- config._d = createUTCDate.apply(null, config._a);
23214
- config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
23215
-
23216
- getParsingFlags(config).rfc2822 = true;
23217
- } else {
23218
- config._isValid = false;
23219
- }
23220
- }
23221
-
23222
- // date from iso format or fallback
23223
- function configFromString(config) {
23224
- var matched = aspNetJsonRegex.exec(config._i);
23225
-
23226
- if (matched !== null) {
23227
- config._d = new Date(+matched[1]);
23228
- return;
23229
- }
23230
-
23231
- configFromISO(config);
23232
- if (config._isValid === false) {
23233
- delete config._isValid;
23234
- } else {
23235
- return;
23236
- }
23237
-
23238
- configFromRFC2822(config);
23239
- if (config._isValid === false) {
23240
- delete config._isValid;
23241
- } else {
23242
- return;
23243
- }
23244
-
23245
- // Final attempt, use Input Fallback
23246
- hooks.createFromInputFallback(config);
23247
- }
23248
-
23249
- hooks.createFromInputFallback = deprecate(
23250
- 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
23251
- 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
23252
- 'discouraged and will be removed in an upcoming major release. Please refer to ' +
23253
- 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
23254
- function (config) {
23255
- config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
23256
- }
23257
- );
23258
-
23259
- // constant that refers to the ISO standard
23260
- hooks.ISO_8601 = function () {};
23261
-
23262
- // constant that refers to the RFC 2822 form
23263
- hooks.RFC_2822 = function () {};
23264
-
23265
- // date from string and format string
23266
- function configFromStringAndFormat(config) {
23267
- // TODO: Move this to another part of the creation flow to prevent circular deps
23268
- if (config._f === hooks.ISO_8601) {
23269
- configFromISO(config);
23270
- return;
23271
- }
23272
- if (config._f === hooks.RFC_2822) {
23273
- configFromRFC2822(config);
23274
- return;
23275
- }
23276
- config._a = [];
23277
- getParsingFlags(config).empty = true;
23278
-
23279
- // This array is used to make a Date, either with `new Date` or `Date.UTC`
23280
- var string = '' + config._i,
23281
- i, parsedInput, tokens, token, skipped,
23282
- stringLength = string.length,
23283
- totalParsedInputLength = 0;
23284
-
23285
- tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
23286
-
23287
- for (i = 0; i < tokens.length; i++) {
23288
- token = tokens[i];
23289
- parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
23290
- // console.log('token', token, 'parsedInput', parsedInput,
23291
- // 'regex', getParseRegexForToken(token, config));
23292
- if (parsedInput) {
23293
- skipped = string.substr(0, string.indexOf(parsedInput));
23294
- if (skipped.length > 0) {
23295
- getParsingFlags(config).unusedInput.push(skipped);
23296
- }
23297
- string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
23298
- totalParsedInputLength += parsedInput.length;
23299
- }
23300
- // don't parse if it's not a known token
23301
- if (formatTokenFunctions[token]) {
23302
- if (parsedInput) {
23303
- getParsingFlags(config).empty = false;
23304
- }
23305
- else {
23306
- getParsingFlags(config).unusedTokens.push(token);
23307
- }
23308
- addTimeToArrayFromToken(token, parsedInput, config);
23309
- }
23310
- else if (config._strict && !parsedInput) {
23311
- getParsingFlags(config).unusedTokens.push(token);
23312
- }
23313
- }
23314
-
23315
- // add remaining unparsed input length to the string
23316
- getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
23317
- if (string.length > 0) {
23318
- getParsingFlags(config).unusedInput.push(string);
23319
- }
23320
-
23321
- // clear _12h flag if hour is <= 12
23322
- if (config._a[HOUR] <= 12 &&
23323
- getParsingFlags(config).bigHour === true &&
23324
- config._a[HOUR] > 0) {
23325
- getParsingFlags(config).bigHour = undefined;
23326
- }
23327
-
23328
- getParsingFlags(config).parsedDateParts = config._a.slice(0);
23329
- getParsingFlags(config).meridiem = config._meridiem;
23330
- // handle meridiem
23331
- config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
23332
-
23333
- configFromArray(config);
23334
- checkOverflow(config);
23335
- }
23336
-
23337
-
23338
- function meridiemFixWrap (locale, hour, meridiem) {
23339
- var isPm;
23340
-
23341
- if (meridiem == null) {
23342
- // nothing to do
23343
- return hour;
23344
- }
23345
- if (locale.meridiemHour != null) {
23346
- return locale.meridiemHour(hour, meridiem);
23347
- } else if (locale.isPM != null) {
23348
- // Fallback
23349
- isPm = locale.isPM(meridiem);
23350
- if (isPm && hour < 12) {
23351
- hour += 12;
23352
- }
23353
- if (!isPm && hour === 12) {
23354
- hour = 0;
23355
- }
23356
- return hour;
23357
- } else {
23358
- // this is not supposed to happen
23359
- return hour;
23360
- }
23361
- }
23362
-
23363
- // date from string and array of format strings
23364
- function configFromStringAndArray(config) {
23365
- var tempConfig,
23366
- bestMoment,
23367
-
23368
- scoreToBeat,
23369
- i,
23370
- currentScore;
23371
-
23372
- if (config._f.length === 0) {
23373
- getParsingFlags(config).invalidFormat = true;
23374
- config._d = new Date(NaN);
23375
- return;
23376
- }
23377
-
23378
- for (i = 0; i < config._f.length; i++) {
23379
- currentScore = 0;
23380
- tempConfig = copyConfig({}, config);
23381
- if (config._useUTC != null) {
23382
- tempConfig._useUTC = config._useUTC;
23383
- }
23384
- tempConfig._f = config._f[i];
23385
- configFromStringAndFormat(tempConfig);
23386
-
23387
- if (!isValid(tempConfig)) {
23388
- continue;
23389
- }
23390
-
23391
- // if there is any input that was not parsed add a penalty for that format
23392
- currentScore += getParsingFlags(tempConfig).charsLeftOver;
23393
-
23394
- //or tokens
23395
- currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
23396
-
23397
- getParsingFlags(tempConfig).score = currentScore;
23398
-
23399
- if (scoreToBeat == null || currentScore < scoreToBeat) {
23400
- scoreToBeat = currentScore;
23401
- bestMoment = tempConfig;
23402
- }
23403
- }
23404
-
23405
- extend(config, bestMoment || tempConfig);
23406
- }
23407
-
23408
- function configFromObject(config) {
23409
- if (config._d) {
23410
- return;
23411
- }
23412
-
23413
- var i = normalizeObjectUnits(config._i);
23414
- config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
23415
- return obj && parseInt(obj, 10);
23416
- });
23417
-
23418
- configFromArray(config);
23419
- }
23420
-
23421
- function createFromConfig (config) {
23422
- var res = new Moment(checkOverflow(prepareConfig(config)));
23423
- if (res._nextDay) {
23424
- // Adding is smart enough around DST
23425
- res.add(1, 'd');
23426
- res._nextDay = undefined;
23427
- }
23428
-
23429
- return res;
23430
- }
23431
-
23432
- function prepareConfig (config) {
23433
- var input = config._i,
23434
- format = config._f;
23435
-
23436
- config._locale = config._locale || getLocale(config._l);
23437
-
23438
- if (input === null || (format === undefined && input === '')) {
23439
- return createInvalid({nullInput: true});
23440
- }
23441
-
23442
- if (typeof input === 'string') {
23443
- config._i = input = config._locale.preparse(input);
23444
- }
23445
-
23446
- if (isMoment(input)) {
23447
- return new Moment(checkOverflow(input));
23448
- } else if (isDate(input)) {
23449
- config._d = input;
23450
- } else if (isArray(format)) {
23451
- configFromStringAndArray(config);
23452
- } else if (format) {
23453
- configFromStringAndFormat(config);
23454
- } else {
23455
- configFromInput(config);
23456
- }
23457
-
23458
- if (!isValid(config)) {
23459
- config._d = null;
23460
- }
23461
-
23462
- return config;
23463
- }
23464
-
23465
- function configFromInput(config) {
23466
- var input = config._i;
23467
- if (isUndefined(input)) {
23468
- config._d = new Date(hooks.now());
23469
- } else if (isDate(input)) {
23470
- config._d = new Date(input.valueOf());
23471
- } else if (typeof input === 'string') {
23472
- configFromString(config);
23473
- } else if (isArray(input)) {
23474
- config._a = map(input.slice(0), function (obj) {
23475
- return parseInt(obj, 10);
23476
- });
23477
- configFromArray(config);
23478
- } else if (isObject(input)) {
23479
- configFromObject(config);
23480
- } else if (isNumber(input)) {
23481
- // from milliseconds
23482
- config._d = new Date(input);
23483
- } else {
23484
- hooks.createFromInputFallback(config);
23485
- }
23486
- }
23487
-
23488
- function createLocalOrUTC (input, format, locale, strict, isUTC) {
23489
- var c = {};
23490
-
23491
- if (locale === true || locale === false) {
23492
- strict = locale;
23493
- locale = undefined;
23494
- }
23495
-
23496
- if ((isObject(input) && isObjectEmpty(input)) ||
23497
- (isArray(input) && input.length === 0)) {
23498
- input = undefined;
23499
- }
23500
- // object construction must be done this way.
23501
- // https://github.com/moment/moment/issues/1423
23502
- c._isAMomentObject = true;
23503
- c._useUTC = c._isUTC = isUTC;
23504
- c._l = locale;
23505
- c._i = input;
23506
- c._f = format;
23507
- c._strict = strict;
23508
-
23509
- return createFromConfig(c);
23510
- }
23511
-
23512
- function createLocal (input, format, locale, strict) {
23513
- return createLocalOrUTC(input, format, locale, strict, false);
23514
- }
23515
-
23516
- var prototypeMin = deprecate(
23517
- 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
23518
- function () {
23519
- var other = createLocal.apply(null, arguments);
23520
- if (this.isValid() && other.isValid()) {
23521
- return other < this ? this : other;
23522
- } else {
23523
- return createInvalid();
23524
- }
23525
- }
23526
- );
23527
-
23528
- var prototypeMax = deprecate(
23529
- 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
23530
- function () {
23531
- var other = createLocal.apply(null, arguments);
23532
- if (this.isValid() && other.isValid()) {
23533
- return other > this ? this : other;
23534
- } else {
23535
- return createInvalid();
23536
- }
23537
- }
23538
- );
23539
-
23540
- // Pick a moment m from moments so that m[fn](other) is true for all
23541
- // other. This relies on the function fn to be transitive.
23542
- //
23543
- // moments should either be an array of moment objects or an array, whose
23544
- // first element is an array of moment objects.
23545
- function pickBy(fn, moments) {
23546
- var res, i;
23547
- if (moments.length === 1 && isArray(moments[0])) {
23548
- moments = moments[0];
23549
- }
23550
- if (!moments.length) {
23551
- return createLocal();
23552
- }
23553
- res = moments[0];
23554
- for (i = 1; i < moments.length; ++i) {
23555
- if (!moments[i].isValid() || moments[i][fn](res)) {
23556
- res = moments[i];
23557
- }
23558
- }
23559
- return res;
23560
- }
23561
-
23562
- // TODO: Use [].sort instead?
23563
- function min () {
23564
- var args = [].slice.call(arguments, 0);
23565
-
23566
- return pickBy('isBefore', args);
23567
- }
23568
-
23569
- function max () {
23570
- var args = [].slice.call(arguments, 0);
23571
-
23572
- return pickBy('isAfter', args);
23573
- }
23574
-
23575
- var now = function () {
23576
- return Date.now ? Date.now() : +(new Date());
23577
- };
23578
-
23579
- var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
23580
-
23581
- function isDurationValid(m) {
23582
- for (var key in m) {
23583
- if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
23584
- return false;
23585
- }
23586
- }
23587
-
23588
- var unitHasDecimal = false;
23589
- for (var i = 0; i < ordering.length; ++i) {
23590
- if (m[ordering[i]]) {
23591
- if (unitHasDecimal) {
23592
- return false; // only allow non-integers for smallest unit
23593
- }
23594
- if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
23595
- unitHasDecimal = true;
23596
- }
23597
- }
23598
- }
23599
-
23600
- return true;
23601
- }
23602
-
23603
- function isValid$1() {
23604
- return this._isValid;
23605
- }
23606
-
23607
- function createInvalid$1() {
23608
- return createDuration(NaN);
23609
- }
23610
-
23611
- function Duration (duration) {
23612
- var normalizedInput = normalizeObjectUnits(duration),
23613
- years = normalizedInput.year || 0,
23614
- quarters = normalizedInput.quarter || 0,
23615
- months = normalizedInput.month || 0,
23616
- weeks = normalizedInput.week || 0,
23617
- days = normalizedInput.day || 0,
23618
- hours = normalizedInput.hour || 0,
23619
- minutes = normalizedInput.minute || 0,
23620
- seconds = normalizedInput.second || 0,
23621
- milliseconds = normalizedInput.millisecond || 0;
23622
-
23623
- this._isValid = isDurationValid(normalizedInput);
23624
-
23625
- // representation for dateAddRemove
23626
- this._milliseconds = +milliseconds +
23627
- seconds * 1e3 + // 1000
23628
- minutes * 6e4 + // 1000 * 60
23629
- hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
23630
- // Because of dateAddRemove treats 24 hours as different from a
23631
- // day when working around DST, we need to store them separately
23632
- this._days = +days +
23633
- weeks * 7;
23634
- // It is impossible to translate months into days without knowing
23635
- // which months you are are talking about, so we have to store
23636
- // it separately.
23637
- this._months = +months +
23638
- quarters * 3 +
23639
- years * 12;
23640
-
23641
- this._data = {};
23642
-
23643
- this._locale = getLocale();
23644
-
23645
- this._bubble();
23646
- }
23647
-
23648
- function isDuration (obj) {
23649
- return obj instanceof Duration;
23650
- }
23651
-
23652
- function absRound (number) {
23653
- if (number < 0) {
23654
- return Math.round(-1 * number) * -1;
23655
- } else {
23656
- return Math.round(number);
23657
- }
23658
- }
23659
-
23660
- // FORMATTING
23661
-
23662
- function offset (token, separator) {
23663
- addFormatToken(token, 0, 0, function () {
23664
- var offset = this.utcOffset();
23665
- var sign = '+';
23666
- if (offset < 0) {
23667
- offset = -offset;
23668
- sign = '-';
23669
- }
23670
- return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
23671
- });
23672
- }
23673
-
23674
- offset('Z', ':');
23675
- offset('ZZ', '');
23676
-
23677
- // PARSING
23678
-
23679
- addRegexToken('Z', matchShortOffset);
23680
- addRegexToken('ZZ', matchShortOffset);
23681
- addParseToken(['Z', 'ZZ'], function (input, array, config) {
23682
- config._useUTC = true;
23683
- config._tzm = offsetFromString(matchShortOffset, input);
23684
- });
23685
-
23686
- // HELPERS
23687
-
23688
- // timezone chunker
23689
- // '+10:00' > ['10', '00']
23690
- // '-1530' > ['-15', '30']
23691
- var chunkOffset = /([\+\-]|\d\d)/gi;
23692
-
23693
- function offsetFromString(matcher, string) {
23694
- var matches = (string || '').match(matcher);
23695
-
23696
- if (matches === null) {
23697
- return null;
23698
- }
23699
-
23700
- var chunk = matches[matches.length - 1] || [];
23701
- var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
23702
- var minutes = +(parts[1] * 60) + toInt(parts[2]);
23703
-
23704
- return minutes === 0 ?
23705
- 0 :
23706
- parts[0] === '+' ? minutes : -minutes;
23707
- }
23708
-
23709
- // Return a moment from input, that is local/utc/zone equivalent to model.
23710
- function cloneWithOffset(input, model) {
23711
- var res, diff;
23712
- if (model._isUTC) {
23713
- res = model.clone();
23714
- diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
23715
- // Use low-level api, because this fn is low-level api.
23716
- res._d.setTime(res._d.valueOf() + diff);
23717
- hooks.updateOffset(res, false);
23718
- return res;
23719
- } else {
23720
- return createLocal(input).local();
23721
- }
23722
- }
23723
-
23724
- function getDateOffset (m) {
23725
- // On Firefox.24 Date#getTimezoneOffset returns a floating point.
23726
- // https://github.com/moment/moment/pull/1871
23727
- return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
23728
- }
23729
-
23730
- // HOOKS
23731
-
23732
- // This function will be called whenever a moment is mutated.
23733
- // It is intended to keep the offset in sync with the timezone.
23734
- hooks.updateOffset = function () {};
23735
-
23736
- // MOMENTS
23737
-
23738
- // keepLocalTime = true means only change the timezone, without
23739
- // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
23740
- // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
23741
- // +0200, so we adjust the time as needed, to be valid.
23742
- //
23743
- // Keeping the time actually adds/subtracts (one hour)
23744
- // from the actual represented time. That is why we call updateOffset
23745
- // a second time. In case it wants us to change the offset again
23746
- // _changeInProgress == true case, then we have to adjust, because
23747
- // there is no such time in the given timezone.
23748
- function getSetOffset (input, keepLocalTime, keepMinutes) {
23749
- var offset = this._offset || 0,
23750
- localAdjust;
23751
- if (!this.isValid()) {
23752
- return input != null ? this : NaN;
23753
- }
23754
- if (input != null) {
23755
- if (typeof input === 'string') {
23756
- input = offsetFromString(matchShortOffset, input);
23757
- if (input === null) {
23758
- return this;
23759
- }
23760
- } else if (Math.abs(input) < 16 && !keepMinutes) {
23761
- input = input * 60;
23762
- }
23763
- if (!this._isUTC && keepLocalTime) {
23764
- localAdjust = getDateOffset(this);
23765
- }
23766
- this._offset = input;
23767
- this._isUTC = true;
23768
- if (localAdjust != null) {
23769
- this.add(localAdjust, 'm');
23770
- }
23771
- if (offset !== input) {
23772
- if (!keepLocalTime || this._changeInProgress) {
23773
- addSubtract(this, createDuration(input - offset, 'm'), 1, false);
23774
- } else if (!this._changeInProgress) {
23775
- this._changeInProgress = true;
23776
- hooks.updateOffset(this, true);
23777
- this._changeInProgress = null;
23778
- }
23779
- }
23780
- return this;
23781
- } else {
23782
- return this._isUTC ? offset : getDateOffset(this);
23783
- }
23784
- }
23785
-
23786
- function getSetZone (input, keepLocalTime) {
23787
- if (input != null) {
23788
- if (typeof input !== 'string') {
23789
- input = -input;
23790
- }
23791
-
23792
- this.utcOffset(input, keepLocalTime);
23793
-
23794
- return this;
23795
- } else {
23796
- return -this.utcOffset();
23797
- }
23798
- }
23799
-
23800
- function setOffsetToUTC (keepLocalTime) {
23801
- return this.utcOffset(0, keepLocalTime);
23802
- }
23803
-
23804
- function setOffsetToLocal (keepLocalTime) {
23805
- if (this._isUTC) {
23806
- this.utcOffset(0, keepLocalTime);
23807
- this._isUTC = false;
23808
-
23809
- if (keepLocalTime) {
23810
- this.subtract(getDateOffset(this), 'm');
23811
- }
23812
- }
23813
- return this;
23814
- }
23815
-
23816
- function setOffsetToParsedOffset () {
23817
- if (this._tzm != null) {
23818
- this.utcOffset(this._tzm, false, true);
23819
- } else if (typeof this._i === 'string') {
23820
- var tZone = offsetFromString(matchOffset, this._i);
23821
- if (tZone != null) {
23822
- this.utcOffset(tZone);
23823
- }
23824
- else {
23825
- this.utcOffset(0, true);
23826
- }
23827
- }
23828
- return this;
23829
- }
23830
-
23831
- function hasAlignedHourOffset (input) {
23832
- if (!this.isValid()) {
23833
- return false;
23834
- }
23835
- input = input ? createLocal(input).utcOffset() : 0;
23836
-
23837
- return (this.utcOffset() - input) % 60 === 0;
23838
- }
23839
-
23840
- function isDaylightSavingTime () {
23841
- return (
23842
- this.utcOffset() > this.clone().month(0).utcOffset() ||
23843
- this.utcOffset() > this.clone().month(5).utcOffset()
23844
- );
23845
- }
23846
-
23847
- function isDaylightSavingTimeShifted () {
23848
- if (!isUndefined(this._isDSTShifted)) {
23849
- return this._isDSTShifted;
23850
- }
23851
-
23852
- var c = {};
23853
-
23854
- copyConfig(c, this);
23855
- c = prepareConfig(c);
23856
-
23857
- if (c._a) {
23858
- var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
23859
- this._isDSTShifted = this.isValid() &&
23860
- compareArrays(c._a, other.toArray()) > 0;
23861
- } else {
23862
- this._isDSTShifted = false;
23863
- }
23864
-
23865
- return this._isDSTShifted;
23866
- }
23867
-
23868
- function isLocal () {
23869
- return this.isValid() ? !this._isUTC : false;
23870
- }
23871
-
23872
- function isUtcOffset () {
23873
- return this.isValid() ? this._isUTC : false;
23874
- }
23875
-
23876
- function isUtc () {
23877
- return this.isValid() ? this._isUTC && this._offset === 0 : false;
23878
- }
23879
-
23880
- // ASP.NET json date format regex
23881
- var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
23882
-
23883
- // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
23884
- // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
23885
- // and further modified to allow for strings containing both week and day
23886
- var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
23887
-
23888
- function createDuration (input, key) {
23889
- var duration = input,
23890
- // matching against regexp is expensive, do it on demand
23891
- match = null,
23892
- sign,
23893
- ret,
23894
- diffRes;
23895
-
23896
- if (isDuration(input)) {
23897
- duration = {
23898
- ms : input._milliseconds,
23899
- d : input._days,
23900
- M : input._months
23901
- };
23902
- } else if (isNumber(input)) {
23903
- duration = {};
23904
- if (key) {
23905
- duration[key] = input;
23906
- } else {
23907
- duration.milliseconds = input;
23908
- }
23909
- } else if (!!(match = aspNetRegex.exec(input))) {
23910
- sign = (match[1] === '-') ? -1 : 1;
23911
- duration = {
23912
- y : 0,
23913
- d : toInt(match[DATE]) * sign,
23914
- h : toInt(match[HOUR]) * sign,
23915
- m : toInt(match[MINUTE]) * sign,
23916
- s : toInt(match[SECOND]) * sign,
23917
- ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
23918
- };
23919
- } else if (!!(match = isoRegex.exec(input))) {
23920
- sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
23921
- duration = {
23922
- y : parseIso(match[2], sign),
23923
- M : parseIso(match[3], sign),
23924
- w : parseIso(match[4], sign),
23925
- d : parseIso(match[5], sign),
23926
- h : parseIso(match[6], sign),
23927
- m : parseIso(match[7], sign),
23928
- s : parseIso(match[8], sign)
23929
- };
23930
- } else if (duration == null) {// checks for null or undefined
23931
- duration = {};
23932
- } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
23933
- diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
23934
-
23935
- duration = {};
23936
- duration.ms = diffRes.milliseconds;
23937
- duration.M = diffRes.months;
23938
- }
23939
-
23940
- ret = new Duration(duration);
23941
-
23942
- if (isDuration(input) && hasOwnProp(input, '_locale')) {
23943
- ret._locale = input._locale;
23944
- }
23945
-
23946
- return ret;
23947
- }
23948
-
23949
- createDuration.fn = Duration.prototype;
23950
- createDuration.invalid = createInvalid$1;
23951
-
23952
- function parseIso (inp, sign) {
23953
- // We'd normally use ~~inp for this, but unfortunately it also
23954
- // converts floats to ints.
23955
- // inp may be undefined, so careful calling replace on it.
23956
- var res = inp && parseFloat(inp.replace(',', '.'));
23957
- // apply sign while we're at it
23958
- return (isNaN(res) ? 0 : res) * sign;
23959
- }
23960
-
23961
- function positiveMomentsDifference(base, other) {
23962
- var res = {milliseconds: 0, months: 0};
23963
-
23964
- res.months = other.month() - base.month() +
23965
- (other.year() - base.year()) * 12;
23966
- if (base.clone().add(res.months, 'M').isAfter(other)) {
23967
- --res.months;
23968
- }
23969
-
23970
- res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
23971
-
23972
- return res;
23973
- }
23974
-
23975
- function momentsDifference(base, other) {
23976
- var res;
23977
- if (!(base.isValid() && other.isValid())) {
23978
- return {milliseconds: 0, months: 0};
23979
- }
23980
-
23981
- other = cloneWithOffset(other, base);
23982
- if (base.isBefore(other)) {
23983
- res = positiveMomentsDifference(base, other);
23984
- } else {
23985
- res = positiveMomentsDifference(other, base);
23986
- res.milliseconds = -res.milliseconds;
23987
- res.months = -res.months;
23988
- }
23989
-
23990
- return res;
23991
- }
23992
-
23993
- // TODO: remove 'name' arg after deprecation is removed
23994
- function createAdder(direction, name) {
23995
- return function (val, period) {
23996
- var dur, tmp;
23997
- //invert the arguments, but complain about it
23998
- if (period !== null && !isNaN(+period)) {
23999
- deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
24000
- 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
24001
- tmp = val; val = period; period = tmp;
24002
- }
24003
-
24004
- val = typeof val === 'string' ? +val : val;
24005
- dur = createDuration(val, period);
24006
- addSubtract(this, dur, direction);
24007
- return this;
24008
- };
24009
- }
24010
-
24011
- function addSubtract (mom, duration, isAdding, updateOffset) {
24012
- var milliseconds = duration._milliseconds,
24013
- days = absRound(duration._days),
24014
- months = absRound(duration._months);
24015
-
24016
- if (!mom.isValid()) {
24017
- // No op
24018
- return;
24019
- }
24020
-
24021
- updateOffset = updateOffset == null ? true : updateOffset;
24022
-
24023
- if (months) {
24024
- setMonth(mom, get(mom, 'Month') + months * isAdding);
24025
- }
24026
- if (days) {
24027
- set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
24028
- }
24029
- if (milliseconds) {
24030
- mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
24031
- }
24032
- if (updateOffset) {
24033
- hooks.updateOffset(mom, days || months);
24034
- }
24035
- }
24036
-
24037
- var add = createAdder(1, 'add');
24038
- var subtract = createAdder(-1, 'subtract');
24039
-
24040
- function getCalendarFormat(myMoment, now) {
24041
- var diff = myMoment.diff(now, 'days', true);
24042
- return diff < -6 ? 'sameElse' :
24043
- diff < -1 ? 'lastWeek' :
24044
- diff < 0 ? 'lastDay' :
24045
- diff < 1 ? 'sameDay' :
24046
- diff < 2 ? 'nextDay' :
24047
- diff < 7 ? 'nextWeek' : 'sameElse';
24048
- }
24049
-
24050
- function calendar$1 (time, formats) {
24051
- // We want to compare the start of today, vs this.
24052
- // Getting start-of-today depends on whether we're local/utc/offset or not.
24053
- var now = time || createLocal(),
24054
- sod = cloneWithOffset(now, this).startOf('day'),
24055
- format = hooks.calendarFormat(this, sod) || 'sameElse';
24056
-
24057
- var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
24058
-
24059
- return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
24060
- }
24061
-
24062
- function clone () {
24063
- return new Moment(this);
24064
- }
24065
-
24066
- function isAfter (input, units) {
24067
- var localInput = isMoment(input) ? input : createLocal(input);
24068
- if (!(this.isValid() && localInput.isValid())) {
24069
- return false;
24070
- }
24071
- units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
24072
- if (units === 'millisecond') {
24073
- return this.valueOf() > localInput.valueOf();
24074
- } else {
24075
- return localInput.valueOf() < this.clone().startOf(units).valueOf();
24076
- }
24077
- }
24078
-
24079
- function isBefore (input, units) {
24080
- var localInput = isMoment(input) ? input : createLocal(input);
24081
- if (!(this.isValid() && localInput.isValid())) {
24082
- return false;
24083
- }
24084
- units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
24085
- if (units === 'millisecond') {
24086
- return this.valueOf() < localInput.valueOf();
24087
- } else {
24088
- return this.clone().endOf(units).valueOf() < localInput.valueOf();
24089
- }
24090
- }
24091
-
24092
- function isBetween (from, to, units, inclusivity) {
24093
- inclusivity = inclusivity || '()';
24094
- return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
24095
- (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
24096
- }
24097
-
24098
- function isSame (input, units) {
24099
- var localInput = isMoment(input) ? input : createLocal(input),
24100
- inputMs;
24101
- if (!(this.isValid() && localInput.isValid())) {
24102
- return false;
24103
- }
24104
- units = normalizeUnits(units || 'millisecond');
24105
- if (units === 'millisecond') {
24106
- return this.valueOf() === localInput.valueOf();
24107
- } else {
24108
- inputMs = localInput.valueOf();
24109
- return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
24110
- }
24111
- }
24112
-
24113
- function isSameOrAfter (input, units) {
24114
- return this.isSame(input, units) || this.isAfter(input,units);
24115
- }
24116
-
24117
- function isSameOrBefore (input, units) {
24118
- return this.isSame(input, units) || this.isBefore(input,units);
24119
- }
24120
-
24121
- function diff (input, units, asFloat) {
24122
- var that,
24123
- zoneDelta,
24124
- output;
24125
-
24126
- if (!this.isValid()) {
24127
- return NaN;
24128
- }
24129
-
24130
- that = cloneWithOffset(input, this);
24131
-
24132
- if (!that.isValid()) {
24133
- return NaN;
24134
- }
24135
-
24136
- zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
24137
-
24138
- units = normalizeUnits(units);
24139
-
24140
- switch (units) {
24141
- case 'year': output = monthDiff(this, that) / 12; break;
24142
- case 'month': output = monthDiff(this, that); break;
24143
- case 'quarter': output = monthDiff(this, that) / 3; break;
24144
- case 'second': output = (this - that) / 1e3; break; // 1000
24145
- case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
24146
- case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
24147
- case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
24148
- case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
24149
- default: output = this - that;
24150
- }
24151
-
24152
- return asFloat ? output : absFloor(output);
24153
- }
24154
-
24155
- function monthDiff (a, b) {
24156
- // difference in months
24157
- var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
24158
- // b is in (anchor - 1 month, anchor + 1 month)
24159
- anchor = a.clone().add(wholeMonthDiff, 'months'),
24160
- anchor2, adjust;
24161
-
24162
- if (b - anchor < 0) {
24163
- anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
24164
- // linear across the month
24165
- adjust = (b - anchor) / (anchor - anchor2);
24166
- } else {
24167
- anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
24168
- // linear across the month
24169
- adjust = (b - anchor) / (anchor2 - anchor);
24170
- }
24171
-
24172
- //check for negative zero, return zero if negative zero
24173
- return -(wholeMonthDiff + adjust) || 0;
24174
- }
24175
-
24176
- hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
24177
- hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
24178
-
24179
- function toString () {
24180
- return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
24181
- }
24182
-
24183
- function toISOString(keepOffset) {
24184
- if (!this.isValid()) {
24185
- return null;
24186
- }
24187
- var utc = keepOffset !== true;
24188
- var m = utc ? this.clone().utc() : this;
24189
- if (m.year() < 0 || m.year() > 9999) {
24190
- return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
24191
- }
24192
- if (isFunction(Date.prototype.toISOString)) {
24193
- // native implementation is ~50x faster, use it when we can
24194
- if (utc) {
24195
- return this.toDate().toISOString();
24196
- } else {
24197
- return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
24198
- }
24199
- }
24200
- return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
24201
- }
24202
-
24203
- /**
24204
- * Return a human readable representation of a moment that can
24205
- * also be evaluated to get a new moment which is the same
24206
- *
24207
- * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
24208
- */
24209
- function inspect () {
24210
- if (!this.isValid()) {
24211
- return 'moment.invalid(/* ' + this._i + ' */)';
24212
- }
24213
- var func = 'moment';
24214
- var zone = '';
24215
- if (!this.isLocal()) {
24216
- func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
24217
- zone = 'Z';
24218
- }
24219
- var prefix = '[' + func + '("]';
24220
- var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
24221
- var datetime = '-MM-DD[T]HH:mm:ss.SSS';
24222
- var suffix = zone + '[")]';
24223
-
24224
- return this.format(prefix + year + datetime + suffix);
24225
- }
24226
-
24227
- function format (inputString) {
24228
- if (!inputString) {
24229
- inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
24230
- }
24231
- var output = formatMoment(this, inputString);
24232
- return this.localeData().postformat(output);
24233
- }
24234
-
24235
- function from (time, withoutSuffix) {
24236
- if (this.isValid() &&
24237
- ((isMoment(time) && time.isValid()) ||
24238
- createLocal(time).isValid())) {
24239
- return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
24240
- } else {
24241
- return this.localeData().invalidDate();
24242
- }
24243
- }
24244
-
24245
- function fromNow (withoutSuffix) {
24246
- return this.from(createLocal(), withoutSuffix);
24247
- }
24248
-
24249
- function to (time, withoutSuffix) {
24250
- if (this.isValid() &&
24251
- ((isMoment(time) && time.isValid()) ||
24252
- createLocal(time).isValid())) {
24253
- return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
24254
- } else {
24255
- return this.localeData().invalidDate();
24256
- }
24257
- }
24258
-
24259
- function toNow (withoutSuffix) {
24260
- return this.to(createLocal(), withoutSuffix);
24261
- }
24262
-
24263
- // If passed a locale key, it will set the locale for this
24264
- // instance. Otherwise, it will return the locale configuration
24265
- // variables for this instance.
24266
- function locale (key) {
24267
- var newLocaleData;
24268
-
24269
- if (key === undefined) {
24270
- return this._locale._abbr;
24271
- } else {
24272
- newLocaleData = getLocale(key);
24273
- if (newLocaleData != null) {
24274
- this._locale = newLocaleData;
24275
- }
24276
- return this;
24277
- }
24278
- }
24279
-
24280
- var lang = deprecate(
24281
- 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
24282
- function (key) {
24283
- if (key === undefined) {
24284
- return this.localeData();
24285
- } else {
24286
- return this.locale(key);
24287
- }
24288
- }
24289
- );
24290
-
24291
- function localeData () {
24292
- return this._locale;
24293
- }
24294
-
24295
- function startOf (units) {
24296
- units = normalizeUnits(units);
24297
- // the following switch intentionally omits break keywords
24298
- // to utilize falling through the cases.
24299
- switch (units) {
24300
- case 'year':
24301
- this.month(0);
24302
- /* falls through */
24303
- case 'quarter':
24304
- case 'month':
24305
- this.date(1);
24306
- /* falls through */
24307
- case 'week':
24308
- case 'isoWeek':
24309
- case 'day':
24310
- case 'date':
24311
- this.hours(0);
24312
- /* falls through */
24313
- case 'hour':
24314
- this.minutes(0);
24315
- /* falls through */
24316
- case 'minute':
24317
- this.seconds(0);
24318
- /* falls through */
24319
- case 'second':
24320
- this.milliseconds(0);
24321
- }
24322
-
24323
- // weeks are a special case
24324
- if (units === 'week') {
24325
- this.weekday(0);
24326
- }
24327
- if (units === 'isoWeek') {
24328
- this.isoWeekday(1);
24329
- }
24330
-
24331
- // quarters are also special
24332
- if (units === 'quarter') {
24333
- this.month(Math.floor(this.month() / 3) * 3);
24334
- }
24335
-
24336
- return this;
24337
- }
24338
-
24339
- function endOf (units) {
24340
- units = normalizeUnits(units);
24341
- if (units === undefined || units === 'millisecond') {
24342
- return this;
24343
- }
24344
-
24345
- // 'date' is an alias for 'day', so it should be considered as such.
24346
- if (units === 'date') {
24347
- units = 'day';
24348
- }
24349
-
24350
- return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
24351
- }
24352
-
24353
- function valueOf () {
24354
- return this._d.valueOf() - ((this._offset || 0) * 60000);
24355
- }
24356
-
24357
- function unix () {
24358
- return Math.floor(this.valueOf() / 1000);
24359
- }
24360
-
24361
- function toDate () {
24362
- return new Date(this.valueOf());
24363
- }
24364
-
24365
- function toArray () {
24366
- var m = this;
24367
- return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
24368
- }
24369
-
24370
- function toObject () {
24371
- var m = this;
24372
- return {
24373
- years: m.year(),
24374
- months: m.month(),
24375
- date: m.date(),
24376
- hours: m.hours(),
24377
- minutes: m.minutes(),
24378
- seconds: m.seconds(),
24379
- milliseconds: m.milliseconds()
24380
- };
24381
- }
24382
-
24383
- function toJSON () {
24384
- // new Date(NaN).toJSON() === null
24385
- return this.isValid() ? this.toISOString() : null;
24386
- }
24387
-
24388
- function isValid$2 () {
24389
- return isValid(this);
24390
- }
24391
-
24392
- function parsingFlags () {
24393
- return extend({}, getParsingFlags(this));
24394
- }
24395
-
24396
- function invalidAt () {
24397
- return getParsingFlags(this).overflow;
24398
- }
24399
-
24400
- function creationData() {
24401
- return {
24402
- input: this._i,
24403
- format: this._f,
24404
- locale: this._locale,
24405
- isUTC: this._isUTC,
24406
- strict: this._strict
24407
- };
24408
- }
24409
-
24410
- // FORMATTING
24411
-
24412
- addFormatToken(0, ['gg', 2], 0, function () {
24413
- return this.weekYear() % 100;
24414
- });
24415
-
24416
- addFormatToken(0, ['GG', 2], 0, function () {
24417
- return this.isoWeekYear() % 100;
24418
- });
24419
-
24420
- function addWeekYearFormatToken (token, getter) {
24421
- addFormatToken(0, [token, token.length], 0, getter);
24422
- }
24423
-
24424
- addWeekYearFormatToken('gggg', 'weekYear');
24425
- addWeekYearFormatToken('ggggg', 'weekYear');
24426
- addWeekYearFormatToken('GGGG', 'isoWeekYear');
24427
- addWeekYearFormatToken('GGGGG', 'isoWeekYear');
24428
-
24429
- // ALIASES
24430
-
24431
- addUnitAlias('weekYear', 'gg');
24432
- addUnitAlias('isoWeekYear', 'GG');
24433
-
24434
- // PRIORITY
24435
-
24436
- addUnitPriority('weekYear', 1);
24437
- addUnitPriority('isoWeekYear', 1);
24438
-
24439
-
24440
- // PARSING
24441
-
24442
- addRegexToken('G', matchSigned);
24443
- addRegexToken('g', matchSigned);
24444
- addRegexToken('GG', match1to2, match2);
24445
- addRegexToken('gg', match1to2, match2);
24446
- addRegexToken('GGGG', match1to4, match4);
24447
- addRegexToken('gggg', match1to4, match4);
24448
- addRegexToken('GGGGG', match1to6, match6);
24449
- addRegexToken('ggggg', match1to6, match6);
24450
-
24451
- addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
24452
- week[token.substr(0, 2)] = toInt(input);
24453
- });
24454
-
24455
- addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
24456
- week[token] = hooks.parseTwoDigitYear(input);
24457
- });
24458
-
24459
- // MOMENTS
24460
-
24461
- function getSetWeekYear (input) {
24462
- return getSetWeekYearHelper.call(this,
24463
- input,
24464
- this.week(),
24465
- this.weekday(),
24466
- this.localeData()._week.dow,
24467
- this.localeData()._week.doy);
24468
- }
24469
-
24470
- function getSetISOWeekYear (input) {
24471
- return getSetWeekYearHelper.call(this,
24472
- input, this.isoWeek(), this.isoWeekday(), 1, 4);
24473
- }
24474
-
24475
- function getISOWeeksInYear () {
24476
- return weeksInYear(this.year(), 1, 4);
24477
- }
24478
-
24479
- function getWeeksInYear () {
24480
- var weekInfo = this.localeData()._week;
24481
- return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
24482
- }
24483
-
24484
- function getSetWeekYearHelper(input, week, weekday, dow, doy) {
24485
- var weeksTarget;
24486
- if (input == null) {
24487
- return weekOfYear(this, dow, doy).year;
24488
- } else {
24489
- weeksTarget = weeksInYear(input, dow, doy);
24490
- if (week > weeksTarget) {
24491
- week = weeksTarget;
24492
- }
24493
- return setWeekAll.call(this, input, week, weekday, dow, doy);
24494
- }
24495
- }
24496
-
24497
- function setWeekAll(weekYear, week, weekday, dow, doy) {
24498
- var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
24499
- date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
24500
-
24501
- this.year(date.getUTCFullYear());
24502
- this.month(date.getUTCMonth());
24503
- this.date(date.getUTCDate());
24504
- return this;
24505
- }
24506
-
24507
- // FORMATTING
24508
-
24509
- addFormatToken('Q', 0, 'Qo', 'quarter');
24510
-
24511
- // ALIASES
24512
-
24513
- addUnitAlias('quarter', 'Q');
24514
-
24515
- // PRIORITY
24516
-
24517
- addUnitPriority('quarter', 7);
24518
-
24519
- // PARSING
24520
-
24521
- addRegexToken('Q', match1);
24522
- addParseToken('Q', function (input, array) {
24523
- array[MONTH] = (toInt(input) - 1) * 3;
24524
- });
24525
-
24526
- // MOMENTS
24527
-
24528
- function getSetQuarter (input) {
24529
- return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
24530
- }
24531
-
24532
- // FORMATTING
24533
-
24534
- addFormatToken('D', ['DD', 2], 'Do', 'date');
24535
-
24536
- // ALIASES
24537
-
24538
- addUnitAlias('date', 'D');
24539
-
24540
- // PRIOROITY
24541
- addUnitPriority('date', 9);
24542
-
24543
- // PARSING
24544
-
24545
- addRegexToken('D', match1to2);
24546
- addRegexToken('DD', match1to2, match2);
24547
- addRegexToken('Do', function (isStrict, locale) {
24548
- // TODO: Remove "ordinalParse" fallback in next major release.
24549
- return isStrict ?
24550
- (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
24551
- locale._dayOfMonthOrdinalParseLenient;
24552
- });
24553
-
24554
- addParseToken(['D', 'DD'], DATE);
24555
- addParseToken('Do', function (input, array) {
24556
- array[DATE] = toInt(input.match(match1to2)[0]);
24557
- });
24558
-
24559
- // MOMENTS
24560
-
24561
- var getSetDayOfMonth = makeGetSet('Date', true);
24562
-
24563
- // FORMATTING
24564
-
24565
- addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
24566
-
24567
- // ALIASES
24568
-
24569
- addUnitAlias('dayOfYear', 'DDD');
24570
-
24571
- // PRIORITY
24572
- addUnitPriority('dayOfYear', 4);
24573
-
24574
- // PARSING
24575
-
24576
- addRegexToken('DDD', match1to3);
24577
- addRegexToken('DDDD', match3);
24578
- addParseToken(['DDD', 'DDDD'], function (input, array, config) {
24579
- config._dayOfYear = toInt(input);
24580
- });
24581
-
24582
- // HELPERS
24583
-
24584
- // MOMENTS
24585
-
24586
- function getSetDayOfYear (input) {
24587
- var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
24588
- return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
24589
- }
24590
-
24591
- // FORMATTING
24592
-
24593
- addFormatToken('m', ['mm', 2], 0, 'minute');
24594
-
24595
- // ALIASES
24596
-
24597
- addUnitAlias('minute', 'm');
24598
-
24599
- // PRIORITY
24600
-
24601
- addUnitPriority('minute', 14);
24602
-
24603
- // PARSING
24604
-
24605
- addRegexToken('m', match1to2);
24606
- addRegexToken('mm', match1to2, match2);
24607
- addParseToken(['m', 'mm'], MINUTE);
24608
-
24609
- // MOMENTS
24610
-
24611
- var getSetMinute = makeGetSet('Minutes', false);
24612
-
24613
- // FORMATTING
24614
-
24615
- addFormatToken('s', ['ss', 2], 0, 'second');
24616
-
24617
- // ALIASES
24618
-
24619
- addUnitAlias('second', 's');
24620
-
24621
- // PRIORITY
24622
-
24623
- addUnitPriority('second', 15);
24624
-
24625
- // PARSING
24626
-
24627
- addRegexToken('s', match1to2);
24628
- addRegexToken('ss', match1to2, match2);
24629
- addParseToken(['s', 'ss'], SECOND);
24630
-
24631
- // MOMENTS
24632
-
24633
- var getSetSecond = makeGetSet('Seconds', false);
24634
-
24635
- // FORMATTING
24636
-
24637
- addFormatToken('S', 0, 0, function () {
24638
- return ~~(this.millisecond() / 100);
24639
- });
24640
-
24641
- addFormatToken(0, ['SS', 2], 0, function () {
24642
- return ~~(this.millisecond() / 10);
24643
- });
24644
-
24645
- addFormatToken(0, ['SSS', 3], 0, 'millisecond');
24646
- addFormatToken(0, ['SSSS', 4], 0, function () {
24647
- return this.millisecond() * 10;
24648
- });
24649
- addFormatToken(0, ['SSSSS', 5], 0, function () {
24650
- return this.millisecond() * 100;
24651
- });
24652
- addFormatToken(0, ['SSSSSS', 6], 0, function () {
24653
- return this.millisecond() * 1000;
24654
- });
24655
- addFormatToken(0, ['SSSSSSS', 7], 0, function () {
24656
- return this.millisecond() * 10000;
24657
- });
24658
- addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
24659
- return this.millisecond() * 100000;
24660
- });
24661
- addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
24662
- return this.millisecond() * 1000000;
24663
- });
24664
-
24665
-
24666
- // ALIASES
24667
-
24668
- addUnitAlias('millisecond', 'ms');
24669
-
24670
- // PRIORITY
24671
-
24672
- addUnitPriority('millisecond', 16);
24673
-
24674
- // PARSING
24675
-
24676
- addRegexToken('S', match1to3, match1);
24677
- addRegexToken('SS', match1to3, match2);
24678
- addRegexToken('SSS', match1to3, match3);
24679
-
24680
- var token;
24681
- for (token = 'SSSS'; token.length <= 9; token += 'S') {
24682
- addRegexToken(token, matchUnsigned);
24683
- }
24684
-
24685
- function parseMs(input, array) {
24686
- array[MILLISECOND] = toInt(('0.' + input) * 1000);
24687
- }
24688
-
24689
- for (token = 'S'; token.length <= 9; token += 'S') {
24690
- addParseToken(token, parseMs);
24691
- }
24692
- // MOMENTS
24693
-
24694
- var getSetMillisecond = makeGetSet('Milliseconds', false);
24695
-
24696
- // FORMATTING
24697
-
24698
- addFormatToken('z', 0, 0, 'zoneAbbr');
24699
- addFormatToken('zz', 0, 0, 'zoneName');
24700
-
24701
- // MOMENTS
24702
-
24703
- function getZoneAbbr () {
24704
- return this._isUTC ? 'UTC' : '';
24705
- }
24706
-
24707
- function getZoneName () {
24708
- return this._isUTC ? 'Coordinated Universal Time' : '';
24709
- }
24710
-
24711
- var proto = Moment.prototype;
24712
-
24713
- proto.add = add;
24714
- proto.calendar = calendar$1;
24715
- proto.clone = clone;
24716
- proto.diff = diff;
24717
- proto.endOf = endOf;
24718
- proto.format = format;
24719
- proto.from = from;
24720
- proto.fromNow = fromNow;
24721
- proto.to = to;
24722
- proto.toNow = toNow;
24723
- proto.get = stringGet;
24724
- proto.invalidAt = invalidAt;
24725
- proto.isAfter = isAfter;
24726
- proto.isBefore = isBefore;
24727
- proto.isBetween = isBetween;
24728
- proto.isSame = isSame;
24729
- proto.isSameOrAfter = isSameOrAfter;
24730
- proto.isSameOrBefore = isSameOrBefore;
24731
- proto.isValid = isValid$2;
24732
- proto.lang = lang;
24733
- proto.locale = locale;
24734
- proto.localeData = localeData;
24735
- proto.max = prototypeMax;
24736
- proto.min = prototypeMin;
24737
- proto.parsingFlags = parsingFlags;
24738
- proto.set = stringSet;
24739
- proto.startOf = startOf;
24740
- proto.subtract = subtract;
24741
- proto.toArray = toArray;
24742
- proto.toObject = toObject;
24743
- proto.toDate = toDate;
24744
- proto.toISOString = toISOString;
24745
- proto.inspect = inspect;
24746
- proto.toJSON = toJSON;
24747
- proto.toString = toString;
24748
- proto.unix = unix;
24749
- proto.valueOf = valueOf;
24750
- proto.creationData = creationData;
24751
- proto.year = getSetYear;
24752
- proto.isLeapYear = getIsLeapYear;
24753
- proto.weekYear = getSetWeekYear;
24754
- proto.isoWeekYear = getSetISOWeekYear;
24755
- proto.quarter = proto.quarters = getSetQuarter;
24756
- proto.month = getSetMonth;
24757
- proto.daysInMonth = getDaysInMonth;
24758
- proto.week = proto.weeks = getSetWeek;
24759
- proto.isoWeek = proto.isoWeeks = getSetISOWeek;
24760
- proto.weeksInYear = getWeeksInYear;
24761
- proto.isoWeeksInYear = getISOWeeksInYear;
24762
- proto.date = getSetDayOfMonth;
24763
- proto.day = proto.days = getSetDayOfWeek;
24764
- proto.weekday = getSetLocaleDayOfWeek;
24765
- proto.isoWeekday = getSetISODayOfWeek;
24766
- proto.dayOfYear = getSetDayOfYear;
24767
- proto.hour = proto.hours = getSetHour;
24768
- proto.minute = proto.minutes = getSetMinute;
24769
- proto.second = proto.seconds = getSetSecond;
24770
- proto.millisecond = proto.milliseconds = getSetMillisecond;
24771
- proto.utcOffset = getSetOffset;
24772
- proto.utc = setOffsetToUTC;
24773
- proto.local = setOffsetToLocal;
24774
- proto.parseZone = setOffsetToParsedOffset;
24775
- proto.hasAlignedHourOffset = hasAlignedHourOffset;
24776
- proto.isDST = isDaylightSavingTime;
24777
- proto.isLocal = isLocal;
24778
- proto.isUtcOffset = isUtcOffset;
24779
- proto.isUtc = isUtc;
24780
- proto.isUTC = isUtc;
24781
- proto.zoneAbbr = getZoneAbbr;
24782
- proto.zoneName = getZoneName;
24783
- proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
24784
- proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
24785
- proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
24786
- proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
24787
- proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
24788
-
24789
- function createUnix (input) {
24790
- return createLocal(input * 1000);
24791
- }
24792
-
24793
- function createInZone () {
24794
- return createLocal.apply(null, arguments).parseZone();
24795
- }
24796
-
24797
- function preParsePostFormat (string) {
24798
- return string;
24799
- }
24800
-
24801
- var proto$1 = Locale.prototype;
24802
-
24803
- proto$1.calendar = calendar;
24804
- proto$1.longDateFormat = longDateFormat;
24805
- proto$1.invalidDate = invalidDate;
24806
- proto$1.ordinal = ordinal;
24807
- proto$1.preparse = preParsePostFormat;
24808
- proto$1.postformat = preParsePostFormat;
24809
- proto$1.relativeTime = relativeTime;
24810
- proto$1.pastFuture = pastFuture;
24811
- proto$1.set = set;
24812
-
24813
- proto$1.months = localeMonths;
24814
- proto$1.monthsShort = localeMonthsShort;
24815
- proto$1.monthsParse = localeMonthsParse;
24816
- proto$1.monthsRegex = monthsRegex;
24817
- proto$1.monthsShortRegex = monthsShortRegex;
24818
- proto$1.week = localeWeek;
24819
- proto$1.firstDayOfYear = localeFirstDayOfYear;
24820
- proto$1.firstDayOfWeek = localeFirstDayOfWeek;
24821
-
24822
- proto$1.weekdays = localeWeekdays;
24823
- proto$1.weekdaysMin = localeWeekdaysMin;
24824
- proto$1.weekdaysShort = localeWeekdaysShort;
24825
- proto$1.weekdaysParse = localeWeekdaysParse;
24826
-
24827
- proto$1.weekdaysRegex = weekdaysRegex;
24828
- proto$1.weekdaysShortRegex = weekdaysShortRegex;
24829
- proto$1.weekdaysMinRegex = weekdaysMinRegex;
24830
-
24831
- proto$1.isPM = localeIsPM;
24832
- proto$1.meridiem = localeMeridiem;
24833
-
24834
- function get$1 (format, index, field, setter) {
24835
- var locale = getLocale();
24836
- var utc = createUTC().set(setter, index);
24837
- return locale[field](utc, format);
24838
- }
24839
-
24840
- function listMonthsImpl (format, index, field) {
24841
- if (isNumber(format)) {
24842
- index = format;
24843
- format = undefined;
24844
- }
24845
-
24846
- format = format || '';
24847
-
24848
- if (index != null) {
24849
- return get$1(format, index, field, 'month');
24850
- }
24851
-
24852
- var i;
24853
- var out = [];
24854
- for (i = 0; i < 12; i++) {
24855
- out[i] = get$1(format, i, field, 'month');
24856
- }
24857
- return out;
24858
- }
24859
-
24860
- // ()
24861
- // (5)
24862
- // (fmt, 5)
24863
- // (fmt)
24864
- // (true)
24865
- // (true, 5)
24866
- // (true, fmt, 5)
24867
- // (true, fmt)
24868
- function listWeekdaysImpl (localeSorted, format, index, field) {
24869
- if (typeof localeSorted === 'boolean') {
24870
- if (isNumber(format)) {
24871
- index = format;
24872
- format = undefined;
24873
- }
24874
-
24875
- format = format || '';
24876
- } else {
24877
- format = localeSorted;
24878
- index = format;
24879
- localeSorted = false;
24880
-
24881
- if (isNumber(format)) {
24882
- index = format;
24883
- format = undefined;
24884
- }
24885
-
24886
- format = format || '';
24887
- }
24888
-
24889
- var locale = getLocale(),
24890
- shift = localeSorted ? locale._week.dow : 0;
24891
-
24892
- if (index != null) {
24893
- return get$1(format, (index + shift) % 7, field, 'day');
24894
- }
24895
-
24896
- var i;
24897
- var out = [];
24898
- for (i = 0; i < 7; i++) {
24899
- out[i] = get$1(format, (i + shift) % 7, field, 'day');
24900
- }
24901
- return out;
24902
- }
24903
-
24904
- function listMonths (format, index) {
24905
- return listMonthsImpl(format, index, 'months');
24906
- }
24907
-
24908
- function listMonthsShort (format, index) {
24909
- return listMonthsImpl(format, index, 'monthsShort');
24910
- }
24911
-
24912
- function listWeekdays (localeSorted, format, index) {
24913
- return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
24914
- }
24915
-
24916
- function listWeekdaysShort (localeSorted, format, index) {
24917
- return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
24918
- }
24919
-
24920
- function listWeekdaysMin (localeSorted, format, index) {
24921
- return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
24922
- }
24923
-
24924
- getSetGlobalLocale('en', {
24925
- dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
24926
- ordinal : function (number) {
24927
- var b = number % 10,
24928
- output = (toInt(number % 100 / 10) === 1) ? 'th' :
24929
- (b === 1) ? 'st' :
24930
- (b === 2) ? 'nd' :
24931
- (b === 3) ? 'rd' : 'th';
24932
- return number + output;
24933
- }
24934
- });
24935
-
24936
- // Side effect imports
24937
-
24938
- hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
24939
- hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
24940
-
24941
- var mathAbs = Math.abs;
24942
-
24943
- function abs () {
24944
- var data = this._data;
24945
-
24946
- this._milliseconds = mathAbs(this._milliseconds);
24947
- this._days = mathAbs(this._days);
24948
- this._months = mathAbs(this._months);
24949
-
24950
- data.milliseconds = mathAbs(data.milliseconds);
24951
- data.seconds = mathAbs(data.seconds);
24952
- data.minutes = mathAbs(data.minutes);
24953
- data.hours = mathAbs(data.hours);
24954
- data.months = mathAbs(data.months);
24955
- data.years = mathAbs(data.years);
24956
-
24957
- return this;
24958
- }
24959
-
24960
- function addSubtract$1 (duration, input, value, direction) {
24961
- var other = createDuration(input, value);
24962
-
24963
- duration._milliseconds += direction * other._milliseconds;
24964
- duration._days += direction * other._days;
24965
- duration._months += direction * other._months;
24966
-
24967
- return duration._bubble();
24968
- }
24969
-
24970
- // supports only 2.0-style add(1, 's') or add(duration)
24971
- function add$1 (input, value) {
24972
- return addSubtract$1(this, input, value, 1);
24973
- }
24974
-
24975
- // supports only 2.0-style subtract(1, 's') or subtract(duration)
24976
- function subtract$1 (input, value) {
24977
- return addSubtract$1(this, input, value, -1);
24978
- }
24979
-
24980
- function absCeil (number) {
24981
- if (number < 0) {
24982
- return Math.floor(number);
24983
- } else {
24984
- return Math.ceil(number);
24985
- }
24986
- }
24987
-
24988
- function bubble () {
24989
- var milliseconds = this._milliseconds;
24990
- var days = this._days;
24991
- var months = this._months;
24992
- var data = this._data;
24993
- var seconds, minutes, hours, years, monthsFromDays;
24994
-
24995
- // if we have a mix of positive and negative values, bubble down first
24996
- // check: https://github.com/moment/moment/issues/2166
24997
- if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
24998
- (milliseconds <= 0 && days <= 0 && months <= 0))) {
24999
- milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
25000
- days = 0;
25001
- months = 0;
25002
- }
25003
-
25004
- // The following code bubbles up values, see the tests for
25005
- // examples of what that means.
25006
- data.milliseconds = milliseconds % 1000;
25007
-
25008
- seconds = absFloor(milliseconds / 1000);
25009
- data.seconds = seconds % 60;
25010
-
25011
- minutes = absFloor(seconds / 60);
25012
- data.minutes = minutes % 60;
25013
-
25014
- hours = absFloor(minutes / 60);
25015
- data.hours = hours % 24;
25016
-
25017
- days += absFloor(hours / 24);
25018
-
25019
- // convert days to months
25020
- monthsFromDays = absFloor(daysToMonths(days));
25021
- months += monthsFromDays;
25022
- days -= absCeil(monthsToDays(monthsFromDays));
25023
-
25024
- // 12 months -> 1 year
25025
- years = absFloor(months / 12);
25026
- months %= 12;
25027
-
25028
- data.days = days;
25029
- data.months = months;
25030
- data.years = years;
25031
-
25032
- return this;
25033
- }
25034
-
25035
- function daysToMonths (days) {
25036
- // 400 years have 146097 days (taking into account leap year rules)
25037
- // 400 years have 12 months === 4800
25038
- return days * 4800 / 146097;
25039
- }
25040
-
25041
- function monthsToDays (months) {
25042
- // the reverse of daysToMonths
25043
- return months * 146097 / 4800;
25044
- }
25045
-
25046
- function as (units) {
25047
- if (!this.isValid()) {
25048
- return NaN;
25049
- }
25050
- var days;
25051
- var months;
25052
- var milliseconds = this._milliseconds;
25053
-
25054
- units = normalizeUnits(units);
25055
-
25056
- if (units === 'month' || units === 'year') {
25057
- days = this._days + milliseconds / 864e5;
25058
- months = this._months + daysToMonths(days);
25059
- return units === 'month' ? months : months / 12;
25060
- } else {
25061
- // handle milliseconds separately because of floating point math errors (issue #1867)
25062
- days = this._days + Math.round(monthsToDays(this._months));
25063
- switch (units) {
25064
- case 'week' : return days / 7 + milliseconds / 6048e5;
25065
- case 'day' : return days + milliseconds / 864e5;
25066
- case 'hour' : return days * 24 + milliseconds / 36e5;
25067
- case 'minute' : return days * 1440 + milliseconds / 6e4;
25068
- case 'second' : return days * 86400 + milliseconds / 1000;
25069
- // Math.floor prevents floating point math errors here
25070
- case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
25071
- default: throw new Error('Unknown unit ' + units);
25072
- }
25073
- }
25074
- }
25075
-
25076
- // TODO: Use this.as('ms')?
25077
- function valueOf$1 () {
25078
- if (!this.isValid()) {
25079
- return NaN;
25080
- }
25081
- return (
25082
- this._milliseconds +
25083
- this._days * 864e5 +
25084
- (this._months % 12) * 2592e6 +
25085
- toInt(this._months / 12) * 31536e6
25086
- );
25087
- }
25088
-
25089
- function makeAs (alias) {
25090
- return function () {
25091
- return this.as(alias);
25092
- };
25093
- }
25094
-
25095
- var asMilliseconds = makeAs('ms');
25096
- var asSeconds = makeAs('s');
25097
- var asMinutes = makeAs('m');
25098
- var asHours = makeAs('h');
25099
- var asDays = makeAs('d');
25100
- var asWeeks = makeAs('w');
25101
- var asMonths = makeAs('M');
25102
- var asYears = makeAs('y');
25103
-
25104
- function clone$1 () {
25105
- return createDuration(this);
25106
- }
25107
-
25108
- function get$2 (units) {
25109
- units = normalizeUnits(units);
25110
- return this.isValid() ? this[units + 's']() : NaN;
25111
- }
25112
-
25113
- function makeGetter(name) {
25114
- return function () {
25115
- return this.isValid() ? this._data[name] : NaN;
25116
- };
25117
- }
25118
-
25119
- var milliseconds = makeGetter('milliseconds');
25120
- var seconds = makeGetter('seconds');
25121
- var minutes = makeGetter('minutes');
25122
- var hours = makeGetter('hours');
25123
- var days = makeGetter('days');
25124
- var months = makeGetter('months');
25125
- var years = makeGetter('years');
25126
-
25127
- function weeks () {
25128
- return absFloor(this.days() / 7);
25129
- }
25130
-
25131
- var round = Math.round;
25132
- var thresholds = {
25133
- ss: 44, // a few seconds to seconds
25134
- s : 45, // seconds to minute
25135
- m : 45, // minutes to hour
25136
- h : 22, // hours to day
25137
- d : 26, // days to month
25138
- M : 11 // months to year
25139
- };
25140
-
25141
- // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
25142
- function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
25143
- return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
25144
- }
25145
-
25146
- function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
25147
- var duration = createDuration(posNegDuration).abs();
25148
- var seconds = round(duration.as('s'));
25149
- var minutes = round(duration.as('m'));
25150
- var hours = round(duration.as('h'));
25151
- var days = round(duration.as('d'));
25152
- var months = round(duration.as('M'));
25153
- var years = round(duration.as('y'));
25154
-
25155
- var a = seconds <= thresholds.ss && ['s', seconds] ||
25156
- seconds < thresholds.s && ['ss', seconds] ||
25157
- minutes <= 1 && ['m'] ||
25158
- minutes < thresholds.m && ['mm', minutes] ||
25159
- hours <= 1 && ['h'] ||
25160
- hours < thresholds.h && ['hh', hours] ||
25161
- days <= 1 && ['d'] ||
25162
- days < thresholds.d && ['dd', days] ||
25163
- months <= 1 && ['M'] ||
25164
- months < thresholds.M && ['MM', months] ||
25165
- years <= 1 && ['y'] || ['yy', years];
25166
-
25167
- a[2] = withoutSuffix;
25168
- a[3] = +posNegDuration > 0;
25169
- a[4] = locale;
25170
- return substituteTimeAgo.apply(null, a);
25171
- }
25172
-
25173
- // This function allows you to set the rounding function for relative time strings
25174
- function getSetRelativeTimeRounding (roundingFunction) {
25175
- if (roundingFunction === undefined) {
25176
- return round;
25177
- }
25178
- if (typeof(roundingFunction) === 'function') {
25179
- round = roundingFunction;
25180
- return true;
25181
- }
25182
- return false;
25183
- }
25184
-
25185
- // This function allows you to set a threshold for relative time strings
25186
- function getSetRelativeTimeThreshold (threshold, limit) {
25187
- if (thresholds[threshold] === undefined) {
25188
- return false;
25189
- }
25190
- if (limit === undefined) {
25191
- return thresholds[threshold];
25192
- }
25193
- thresholds[threshold] = limit;
25194
- if (threshold === 's') {
25195
- thresholds.ss = limit - 1;
25196
- }
25197
- return true;
25198
- }
25199
-
25200
- function humanize (withSuffix) {
25201
- if (!this.isValid()) {
25202
- return this.localeData().invalidDate();
25203
- }
25204
-
25205
- var locale = this.localeData();
25206
- var output = relativeTime$1(this, !withSuffix, locale);
25207
-
25208
- if (withSuffix) {
25209
- output = locale.pastFuture(+this, output);
25210
- }
25211
-
25212
- return locale.postformat(output);
25213
- }
25214
-
25215
- var abs$1 = Math.abs;
25216
-
25217
- function sign(x) {
25218
- return ((x > 0) - (x < 0)) || +x;
25219
- }
25220
-
25221
- function toISOString$1() {
25222
- // for ISO strings we do not use the normal bubbling rules:
25223
- // * milliseconds bubble up until they become hours
25224
- // * days do not bubble at all
25225
- // * months bubble up until they become years
25226
- // This is because there is no context-free conversion between hours and days
25227
- // (think of clock changes)
25228
- // and also not between days and months (28-31 days per month)
25229
- if (!this.isValid()) {
25230
- return this.localeData().invalidDate();
25231
- }
25232
-
25233
- var seconds = abs$1(this._milliseconds) / 1000;
25234
- var days = abs$1(this._days);
25235
- var months = abs$1(this._months);
25236
- var minutes, hours, years;
25237
-
25238
- // 3600 seconds -> 60 minutes -> 1 hour
25239
- minutes = absFloor(seconds / 60);
25240
- hours = absFloor(minutes / 60);
25241
- seconds %= 60;
25242
- minutes %= 60;
25243
-
25244
- // 12 months -> 1 year
25245
- years = absFloor(months / 12);
25246
- months %= 12;
25247
-
25248
-
25249
- // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
25250
- var Y = years;
25251
- var M = months;
25252
- var D = days;
25253
- var h = hours;
25254
- var m = minutes;
25255
- var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
25256
- var total = this.asSeconds();
25257
-
25258
- if (!total) {
25259
- // this is the same as C#'s (Noda) and python (isodate)...
25260
- // but not other JS (goog.date)
25261
- return 'P0D';
25262
- }
25263
-
25264
- var totalSign = total < 0 ? '-' : '';
25265
- var ymSign = sign(this._months) !== sign(total) ? '-' : '';
25266
- var daysSign = sign(this._days) !== sign(total) ? '-' : '';
25267
- var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
25268
-
25269
- return totalSign + 'P' +
25270
- (Y ? ymSign + Y + 'Y' : '') +
25271
- (M ? ymSign + M + 'M' : '') +
25272
- (D ? daysSign + D + 'D' : '') +
25273
- ((h || m || s) ? 'T' : '') +
25274
- (h ? hmsSign + h + 'H' : '') +
25275
- (m ? hmsSign + m + 'M' : '') +
25276
- (s ? hmsSign + s + 'S' : '');
25277
- }
25278
-
25279
- var proto$2 = Duration.prototype;
25280
-
25281
- proto$2.isValid = isValid$1;
25282
- proto$2.abs = abs;
25283
- proto$2.add = add$1;
25284
- proto$2.subtract = subtract$1;
25285
- proto$2.as = as;
25286
- proto$2.asMilliseconds = asMilliseconds;
25287
- proto$2.asSeconds = asSeconds;
25288
- proto$2.asMinutes = asMinutes;
25289
- proto$2.asHours = asHours;
25290
- proto$2.asDays = asDays;
25291
- proto$2.asWeeks = asWeeks;
25292
- proto$2.asMonths = asMonths;
25293
- proto$2.asYears = asYears;
25294
- proto$2.valueOf = valueOf$1;
25295
- proto$2._bubble = bubble;
25296
- proto$2.clone = clone$1;
25297
- proto$2.get = get$2;
25298
- proto$2.milliseconds = milliseconds;
25299
- proto$2.seconds = seconds;
25300
- proto$2.minutes = minutes;
25301
- proto$2.hours = hours;
25302
- proto$2.days = days;
25303
- proto$2.weeks = weeks;
25304
- proto$2.months = months;
25305
- proto$2.years = years;
25306
- proto$2.humanize = humanize;
25307
- proto$2.toISOString = toISOString$1;
25308
- proto$2.toString = toISOString$1;
25309
- proto$2.toJSON = toISOString$1;
25310
- proto$2.locale = locale;
25311
- proto$2.localeData = localeData;
25312
-
25313
- proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
25314
- proto$2.lang = lang;
25315
-
25316
- // Side effect imports
25317
-
25318
- // FORMATTING
25319
-
25320
- addFormatToken('X', 0, 0, 'unix');
25321
- addFormatToken('x', 0, 0, 'valueOf');
25322
-
25323
- // PARSING
25324
-
25325
- addRegexToken('x', matchSigned);
25326
- addRegexToken('X', matchTimestamp);
25327
- addParseToken('X', function (input, array, config) {
25328
- config._d = new Date(parseFloat(input, 10) * 1000);
25329
- });
25330
- addParseToken('x', function (input, array, config) {
25331
- config._d = new Date(toInt(input));
25332
- });
25333
-
25334
- // Side effect imports
25335
-
25336
-
25337
- hooks.version = '2.21.0';
25338
-
25339
- setHookCallback(createLocal);
25340
-
25341
- hooks.fn = proto;
25342
- hooks.min = min;
25343
- hooks.max = max;
25344
- hooks.now = now;
25345
- hooks.utc = createUTC;
25346
- hooks.unix = createUnix;
25347
- hooks.months = listMonths;
25348
- hooks.isDate = isDate;
25349
- hooks.locale = getSetGlobalLocale;
25350
- hooks.invalid = createInvalid;
25351
- hooks.duration = createDuration;
25352
- hooks.isMoment = isMoment;
25353
- hooks.weekdays = listWeekdays;
25354
- hooks.parseZone = createInZone;
25355
- hooks.localeData = getLocale;
25356
- hooks.isDuration = isDuration;
25357
- hooks.monthsShort = listMonthsShort;
25358
- hooks.weekdaysMin = listWeekdaysMin;
25359
- hooks.defineLocale = defineLocale;
25360
- hooks.updateLocale = updateLocale;
25361
- hooks.locales = listLocales;
25362
- hooks.weekdaysShort = listWeekdaysShort;
25363
- hooks.normalizeUnits = normalizeUnits;
25364
- hooks.relativeTimeRounding = getSetRelativeTimeRounding;
25365
- hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
25366
- hooks.calendarFormat = getCalendarFormat;
25367
- hooks.prototype = proto;
25368
-
25369
- // currently HTML5 input type only supports 24-hour formats
25370
- hooks.HTML5_FMT = {
25371
- DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
25372
- DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
25373
- DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
25374
- DATE: 'YYYY-MM-DD', // <input type="date" />
25375
- TIME: 'HH:mm', // <input type="time" />
25376
- TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
25377
- TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
25378
- WEEK: 'YYYY-[W]WW', // <input type="week" />
25379
- MONTH: 'YYYY-MM' // <input type="month" />
25380
- };
25381
-
25382
- return hooks;
25383
-
25384
- })));
25385
-
25386
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
25387
-
25388
- /***/ }),
25389
-
25390
- /***/ "./node_modules/object-assign/index.js":
25391
- /*!*********************************************!*\
25392
- !*** ./node_modules/object-assign/index.js ***!
25393
- \*********************************************/
25394
- /*! no static exports found */
25395
- /***/ (function(module, exports, __webpack_require__) {
25396
-
25397
- "use strict";
25398
- /*
25399
- object-assign
25400
- (c) Sindre Sorhus
25401
- @license MIT
25402
- */
25403
-
25404
-
25405
- /* eslint-disable no-unused-vars */
25406
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
25407
- var hasOwnProperty = Object.prototype.hasOwnProperty;
25408
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
25409
-
25410
- function toObject(val) {
25411
- if (val === null || val === undefined) {
25412
- throw new TypeError('Object.assign cannot be called with null or undefined');
25413
- }
25414
-
25415
- return Object(val);
25416
- }
25417
-
25418
- function shouldUseNative() {
25419
- try {
25420
- if (!Object.assign) {
25421
- return false;
25422
- }
25423
-
25424
- // Detect buggy property enumeration order in older V8 versions.
25425
-
25426
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
25427
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
25428
- test1[5] = 'de';
25429
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
25430
- return false;
25431
- }
25432
-
25433
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
25434
- var test2 = {};
25435
- for (var i = 0; i < 10; i++) {
25436
- test2['_' + String.fromCharCode(i)] = i;
25437
- }
25438
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
25439
- return test2[n];
25440
- });
25441
- if (order2.join('') !== '0123456789') {
25442
- return false;
25443
- }
25444
-
25445
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
25446
- var test3 = {};
25447
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
25448
- test3[letter] = letter;
25449
- });
25450
- if (Object.keys(Object.assign({}, test3)).join('') !==
25451
- 'abcdefghijklmnopqrst') {
25452
- return false;
25453
- }
25454
-
25455
- return true;
25456
- } catch (err) {
25457
- // We don't expect any of the above to throw, but better to be safe.
25458
- return false;
25459
- }
25460
- }
25461
-
25462
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
25463
- var from;
25464
- var to = toObject(target);
25465
- var symbols;
25466
-
25467
- for (var s = 1; s < arguments.length; s++) {
25468
- from = Object(arguments[s]);
25469
-
25470
- for (var key in from) {
25471
- if (hasOwnProperty.call(from, key)) {
25472
- to[key] = from[key];
25473
- }
25474
- }
25475
-
25476
- if (getOwnPropertySymbols) {
25477
- symbols = getOwnPropertySymbols(from);
25478
- for (var i = 0; i < symbols.length; i++) {
25479
- if (propIsEnumerable.call(from, symbols[i])) {
25480
- to[symbols[i]] = from[symbols[i]];
25481
- }
25482
- }
25483
- }
25484
- }
25485
-
25486
- return to;
25487
- };
25488
-
25489
-
25490
- /***/ }),
25491
-
25492
- /***/ "./node_modules/prop-types/checkPropTypes.js":
25493
- /*!***************************************************!*\
25494
- !*** ./node_modules/prop-types/checkPropTypes.js ***!
25495
- \***************************************************/
25496
- /*! no static exports found */
25497
- /***/ (function(module, exports, __webpack_require__) {
25498
-
25499
- "use strict";
25500
- /**
25501
- * Copyright (c) 2013-present, Facebook, Inc.
25502
- *
25503
- * This source code is licensed under the MIT license found in the
25504
- * LICENSE file in the root directory of this source tree.
25505
- */
25506
-
25507
-
25508
-
25509
- if (true) {
25510
- var invariant = __webpack_require__(/*! fbjs/lib/invariant */ "./node_modules/fbjs/lib/invariant.js");
25511
- var warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");
25512
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
25513
- var loggedTypeFailures = {};
25514
- }
25515
-
25516
- /**
25517
- * Assert that the values match with the type specs.
25518
- * Error messages are memorized and will only be shown once.
25519
- *
25520
- * @param {object} typeSpecs Map of name to a ReactPropType
25521
- * @param {object} values Runtime values that need to be type-checked
25522
- * @param {string} location e.g. "prop", "context", "child context"
25523
- * @param {string} componentName Name of the component for error messages.
25524
- * @param {?Function} getStack Returns the component stack.
25525
- * @private
25526
- */
25527
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
25528
- if (true) {
25529
- for (var typeSpecName in typeSpecs) {
25530
- if (typeSpecs.hasOwnProperty(typeSpecName)) {
25531
- var error;
25532
- // Prop type validation may throw. In case they do, we don't want to
25533
- // fail the render phase where it didn't fail before. So we log it.
25534
- // After these have been cleaned up, we'll let them throw.
25535
- try {
25536
- // This is intentionally an invariant that gets caught. It's the same
25537
- // behavior as without this statement except with a better message.
25538
- invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);
25539
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
25540
- } catch (ex) {
25541
- error = ex;
25542
- }
25543
- warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
25544
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
25545
- // Only monitor this failure once because there tends to be a lot of the
25546
- // same error.
25547
- loggedTypeFailures[error.message] = true;
25548
-
25549
- var stack = getStack ? getStack() : '';
25550
-
25551
- warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
25552
- }
25553
- }
25554
- }
25555
- }
25556
- }
25557
-
25558
- module.exports = checkPropTypes;
25559
-
25560
-
25561
- /***/ }),
25562
-
25563
- /***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
25564
- /*!************************************************************!*\
25565
- !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
25566
- \************************************************************/
25567
- /*! no static exports found */
25568
- /***/ (function(module, exports, __webpack_require__) {
25569
-
25570
- "use strict";
25571
- /**
25572
- * Copyright (c) 2013-present, Facebook, Inc.
25573
- *
25574
- * This source code is licensed under the MIT license found in the
25575
- * LICENSE file in the root directory of this source tree.
25576
- */
25577
-
25578
-
25579
-
25580
- var emptyFunction = __webpack_require__(/*! fbjs/lib/emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");
25581
- var invariant = __webpack_require__(/*! fbjs/lib/invariant */ "./node_modules/fbjs/lib/invariant.js");
25582
- var warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");
25583
- var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
25584
-
25585
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
25586
- var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
25587
-
25588
- module.exports = function(isValidElement, throwOnDirectAccess) {
25589
- /* global Symbol */
25590
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
25591
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
25592
-
25593
- /**
25594
- * Returns the iterator method function contained on the iterable object.
25595
- *
25596
- * Be sure to invoke the function with the iterable as context:
25597
- *
25598
- * var iteratorFn = getIteratorFn(myIterable);
25599
- * if (iteratorFn) {
25600
- * var iterator = iteratorFn.call(myIterable);
25601
- * ...
25602
- * }
25603
- *
25604
- * @param {?object} maybeIterable
25605
- * @return {?function}
25606
- */
25607
- function getIteratorFn(maybeIterable) {
25608
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
25609
- if (typeof iteratorFn === 'function') {
25610
- return iteratorFn;
25611
- }
25612
- }
25613
-
25614
- /**
25615
- * Collection of methods that allow declaration and validation of props that are
25616
- * supplied to React components. Example usage:
25617
- *
25618
- * var Props = require('ReactPropTypes');
25619
- * var MyArticle = React.createClass({
25620
- * propTypes: {
25621
- * // An optional string prop named "description".
25622
- * description: Props.string,
25623
- *
25624
- * // A required enum prop named "category".
25625
- * category: Props.oneOf(['News','Photos']).isRequired,
25626
- *
25627
- * // A prop named "dialog" that requires an instance of Dialog.
25628
- * dialog: Props.instanceOf(Dialog).isRequired
25629
- * },
25630
- * render: function() { ... }
25631
- * });
25632
- *
25633
- * A more formal specification of how these methods are used:
25634
- *
25635
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
25636
- * decl := ReactPropTypes.{type}(.isRequired)?
25637
- *
25638
- * Each and every declaration produces a function with the same signature. This
25639
- * allows the creation of custom validation functions. For example:
25640
- *
25641
- * var MyLink = React.createClass({
25642
- * propTypes: {
25643
- * // An optional string or URI prop named "href".
25644
- * href: function(props, propName, componentName) {
25645
- * var propValue = props[propName];
25646
- * if (propValue != null && typeof propValue !== 'string' &&
25647
- * !(propValue instanceof URI)) {
25648
- * return new Error(
25649
- * 'Expected a string or an URI for ' + propName + ' in ' +
25650
- * componentName
25651
- * );
25652
- * }
25653
- * }
25654
- * },
25655
- * render: function() {...}
25656
- * });
25657
- *
25658
- * @internal
25659
- */
25660
-
25661
- var ANONYMOUS = '<<anonymous>>';
25662
-
25663
- // Important!
25664
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
25665
- var ReactPropTypes = {
25666
- array: createPrimitiveTypeChecker('array'),
25667
- bool: createPrimitiveTypeChecker('boolean'),
25668
- func: createPrimitiveTypeChecker('function'),
25669
- number: createPrimitiveTypeChecker('number'),
25670
- object: createPrimitiveTypeChecker('object'),
25671
- string: createPrimitiveTypeChecker('string'),
25672
- symbol: createPrimitiveTypeChecker('symbol'),
25673
-
25674
- any: createAnyTypeChecker(),
25675
- arrayOf: createArrayOfTypeChecker,
25676
- element: createElementTypeChecker(),
25677
- instanceOf: createInstanceTypeChecker,
25678
- node: createNodeChecker(),
25679
- objectOf: createObjectOfTypeChecker,
25680
- oneOf: createEnumTypeChecker,
25681
- oneOfType: createUnionTypeChecker,
25682
- shape: createShapeTypeChecker,
25683
- exact: createStrictShapeTypeChecker,
25684
- };
25685
-
25686
- /**
25687
- * inlined Object.is polyfill to avoid requiring consumers ship their own
25688
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
25689
- */
25690
- /*eslint-disable no-self-compare*/
25691
- function is(x, y) {
25692
- // SameValue algorithm
25693
- if (x === y) {
25694
- // Steps 1-5, 7-10
25695
- // Steps 6.b-6.e: +0 != -0
25696
- return x !== 0 || 1 / x === 1 / y;
25697
- } else {
25698
- // Step 6.a: NaN == NaN
25699
- return x !== x && y !== y;
25700
- }
25701
- }
25702
- /*eslint-enable no-self-compare*/
25703
-
25704
- /**
25705
- * We use an Error-like object for backward compatibility as people may call
25706
- * PropTypes directly and inspect their output. However, we don't use real
25707
- * Errors anymore. We don't inspect their stack anyway, and creating them
25708
- * is prohibitively expensive if they are created too often, such as what
25709
- * happens in oneOfType() for any type before the one that matched.
25710
- */
25711
- function PropTypeError(message) {
25712
- this.message = message;
25713
- this.stack = '';
25714
- }
25715
- // Make `instanceof Error` still work for returned errors.
25716
- PropTypeError.prototype = Error.prototype;
25717
-
25718
- function createChainableTypeChecker(validate) {
25719
- if (true) {
25720
- var manualPropTypeCallCache = {};
25721
- var manualPropTypeWarningCount = 0;
25722
- }
25723
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
25724
- componentName = componentName || ANONYMOUS;
25725
- propFullName = propFullName || propName;
25726
-
25727
- if (secret !== ReactPropTypesSecret) {
25728
- if (throwOnDirectAccess) {
25729
- // New behavior only for users of `prop-types` package
25730
- invariant(
25731
- false,
25732
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
25733
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
25734
- 'Read more at http://fb.me/use-check-prop-types'
25735
- );
25736
- } else if ("development" !== 'production' && typeof console !== 'undefined') {
25737
- // Old behavior for people using React.PropTypes
25738
- var cacheKey = componentName + ':' + propName;
25739
- if (
25740
- !manualPropTypeCallCache[cacheKey] &&
25741
- // Avoid spamming the console because they are often not actionable except for lib authors
25742
- manualPropTypeWarningCount < 3
25743
- ) {
25744
- warning(
25745
- false,
25746
- 'You are manually calling a React.PropTypes validation ' +
25747
- 'function for the `%s` prop on `%s`. This is deprecated ' +
25748
- 'and will throw in the standalone `prop-types` package. ' +
25749
- 'You may be seeing this warning due to a third-party PropTypes ' +
25750
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
25751
- propFullName,
25752
- componentName
25753
- );
25754
- manualPropTypeCallCache[cacheKey] = true;
25755
- manualPropTypeWarningCount++;
25756
- }
25757
- }
25758
- }
25759
- if (props[propName] == null) {
25760
- if (isRequired) {
25761
- if (props[propName] === null) {
25762
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
25763
- }
25764
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
25765
- }
25766
- return null;
25767
- } else {
25768
- return validate(props, propName, componentName, location, propFullName);
25769
- }
25770
- }
25771
-
25772
- var chainedCheckType = checkType.bind(null, false);
25773
- chainedCheckType.isRequired = checkType.bind(null, true);
25774
-
25775
- return chainedCheckType;
25776
- }
25777
-
25778
- function createPrimitiveTypeChecker(expectedType) {
25779
- function validate(props, propName, componentName, location, propFullName, secret) {
25780
- var propValue = props[propName];
25781
- var propType = getPropType(propValue);
25782
- if (propType !== expectedType) {
25783
- // `propValue` being instance of, say, date/regexp, pass the 'object'
25784
- // check, but we can offer a more precise error message here rather than
25785
- // 'of type `object`'.
25786
- var preciseType = getPreciseType(propValue);
25787
-
25788
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
25789
- }
25790
- return null;
25791
- }
25792
- return createChainableTypeChecker(validate);
25793
- }
25794
-
25795
- function createAnyTypeChecker() {
25796
- return createChainableTypeChecker(emptyFunction.thatReturnsNull);
25797
- }
25798
-
25799
- function createArrayOfTypeChecker(typeChecker) {
25800
- function validate(props, propName, componentName, location, propFullName) {
25801
- if (typeof typeChecker !== 'function') {
25802
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
25803
- }
25804
- var propValue = props[propName];
25805
- if (!Array.isArray(propValue)) {
25806
- var propType = getPropType(propValue);
25807
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
25808
- }
25809
- for (var i = 0; i < propValue.length; i++) {
25810
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
25811
- if (error instanceof Error) {
25812
- return error;
25813
- }
25814
- }
25815
- return null;
25816
- }
25817
- return createChainableTypeChecker(validate);
25818
- }
25819
-
25820
- function createElementTypeChecker() {
25821
- function validate(props, propName, componentName, location, propFullName) {
25822
- var propValue = props[propName];
25823
- if (!isValidElement(propValue)) {
25824
- var propType = getPropType(propValue);
25825
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
25826
- }
25827
- return null;
25828
- }
25829
- return createChainableTypeChecker(validate);
25830
- }
25831
-
25832
- function createInstanceTypeChecker(expectedClass) {
25833
- function validate(props, propName, componentName, location, propFullName) {
25834
- if (!(props[propName] instanceof expectedClass)) {
25835
- var expectedClassName = expectedClass.name || ANONYMOUS;
25836
- var actualClassName = getClassName(props[propName]);
25837
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
25838
- }
25839
- return null;
25840
- }
25841
- return createChainableTypeChecker(validate);
25842
- }
25843
-
25844
- function createEnumTypeChecker(expectedValues) {
25845
- if (!Array.isArray(expectedValues)) {
25846
- true ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : undefined;
25847
- return emptyFunction.thatReturnsNull;
25848
- }
25849
-
25850
- function validate(props, propName, componentName, location, propFullName) {
25851
- var propValue = props[propName];
25852
- for (var i = 0; i < expectedValues.length; i++) {
25853
- if (is(propValue, expectedValues[i])) {
25854
- return null;
25855
- }
25856
- }
25857
-
25858
- var valuesString = JSON.stringify(expectedValues);
25859
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
25860
- }
25861
- return createChainableTypeChecker(validate);
25862
- }
25863
-
25864
- function createObjectOfTypeChecker(typeChecker) {
25865
- function validate(props, propName, componentName, location, propFullName) {
25866
- if (typeof typeChecker !== 'function') {
25867
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
25868
- }
25869
- var propValue = props[propName];
25870
- var propType = getPropType(propValue);
25871
- if (propType !== 'object') {
25872
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
25873
- }
25874
- for (var key in propValue) {
25875
- if (propValue.hasOwnProperty(key)) {
25876
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
25877
- if (error instanceof Error) {
25878
- return error;
25879
- }
25880
- }
25881
- }
25882
- return null;
25883
- }
25884
- return createChainableTypeChecker(validate);
25885
- }
25886
-
25887
- function createUnionTypeChecker(arrayOfTypeCheckers) {
25888
- if (!Array.isArray(arrayOfTypeCheckers)) {
25889
- true ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
25890
- return emptyFunction.thatReturnsNull;
25891
- }
25892
-
25893
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
25894
- var checker = arrayOfTypeCheckers[i];
25895
- if (typeof checker !== 'function') {
25896
- warning(
25897
- false,
25898
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
25899
- 'received %s at index %s.',
25900
- getPostfixForTypeWarning(checker),
25901
- i
25902
- );
25903
- return emptyFunction.thatReturnsNull;
25904
- }
25905
- }
25906
-
25907
- function validate(props, propName, componentName, location, propFullName) {
25908
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
25909
- var checker = arrayOfTypeCheckers[i];
25910
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
25911
- return null;
25912
- }
25913
- }
25914
-
25915
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
25916
- }
25917
- return createChainableTypeChecker(validate);
25918
- }
25919
-
25920
- function createNodeChecker() {
25921
- function validate(props, propName, componentName, location, propFullName) {
25922
- if (!isNode(props[propName])) {
25923
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
25924
- }
25925
- return null;
25926
- }
25927
- return createChainableTypeChecker(validate);
25928
- }
25929
-
25930
- function createShapeTypeChecker(shapeTypes) {
25931
- function validate(props, propName, componentName, location, propFullName) {
25932
- var propValue = props[propName];
25933
- var propType = getPropType(propValue);
25934
- if (propType !== 'object') {
25935
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
25936
- }
25937
- for (var key in shapeTypes) {
25938
- var checker = shapeTypes[key];
25939
- if (!checker) {
25940
- continue;
25941
- }
25942
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
25943
- if (error) {
25944
- return error;
25945
- }
25946
- }
25947
- return null;
25948
- }
25949
- return createChainableTypeChecker(validate);
25950
- }
25951
-
25952
- function createStrictShapeTypeChecker(shapeTypes) {
25953
- function validate(props, propName, componentName, location, propFullName) {
25954
- var propValue = props[propName];
25955
- var propType = getPropType(propValue);
25956
- if (propType !== 'object') {
25957
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
25958
- }
25959
- // We need to check all keys in case some are required but missing from
25960
- // props.
25961
- var allKeys = assign({}, props[propName], shapeTypes);
25962
- for (var key in allKeys) {
25963
- var checker = shapeTypes[key];
25964
- if (!checker) {
25965
- return new PropTypeError(
25966
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
25967
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
25968
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
25969
- );
25970
- }
25971
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
25972
- if (error) {
25973
- return error;
25974
- }
25975
- }
25976
- return null;
25977
- }
25978
-
25979
- return createChainableTypeChecker(validate);
25980
- }
25981
-
25982
- function isNode(propValue) {
25983
- switch (typeof propValue) {
25984
- case 'number':
25985
- case 'string':
25986
- case 'undefined':
25987
- return true;
25988
- case 'boolean':
25989
- return !propValue;
25990
- case 'object':
25991
- if (Array.isArray(propValue)) {
25992
- return propValue.every(isNode);
25993
- }
25994
- if (propValue === null || isValidElement(propValue)) {
25995
- return true;
25996
- }
25997
-
25998
- var iteratorFn = getIteratorFn(propValue);
25999
- if (iteratorFn) {
26000
- var iterator = iteratorFn.call(propValue);
26001
- var step;
26002
- if (iteratorFn !== propValue.entries) {
26003
- while (!(step = iterator.next()).done) {
26004
- if (!isNode(step.value)) {
26005
- return false;
26006
- }
26007
- }
26008
- } else {
26009
- // Iterator will provide entry [k,v] tuples rather than values.
26010
- while (!(step = iterator.next()).done) {
26011
- var entry = step.value;
26012
- if (entry) {
26013
- if (!isNode(entry[1])) {
26014
- return false;
26015
- }
26016
- }
26017
- }
26018
- }
26019
- } else {
26020
- return false;
26021
- }
26022
-
26023
- return true;
26024
- default:
26025
- return false;
26026
- }
26027
- }
26028
-
26029
- function isSymbol(propType, propValue) {
26030
- // Native Symbol.
26031
- if (propType === 'symbol') {
26032
- return true;
26033
- }
26034
-
26035
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
26036
- if (propValue['@@toStringTag'] === 'Symbol') {
26037
- return true;
26038
- }
26039
-
26040
- // Fallback for non-spec compliant Symbols which are polyfilled.
26041
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
26042
- return true;
26043
- }
26044
-
26045
- return false;
26046
- }
26047
-
26048
- // Equivalent of `typeof` but with special handling for array and regexp.
26049
- function getPropType(propValue) {
26050
- var propType = typeof propValue;
26051
- if (Array.isArray(propValue)) {
26052
- return 'array';
26053
- }
26054
- if (propValue instanceof RegExp) {
26055
- // Old webkits (at least until Android 4.0) return 'function' rather than
26056
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
26057
- // passes PropTypes.object.
26058
- return 'object';
26059
- }
26060
- if (isSymbol(propType, propValue)) {
26061
- return 'symbol';
26062
- }
26063
- return propType;
26064
- }
26065
-
26066
- // This handles more types than `getPropType`. Only used for error messages.
26067
- // See `createPrimitiveTypeChecker`.
26068
- function getPreciseType(propValue) {
26069
- if (typeof propValue === 'undefined' || propValue === null) {
26070
- return '' + propValue;
26071
- }
26072
- var propType = getPropType(propValue);
26073
- if (propType === 'object') {
26074
- if (propValue instanceof Date) {
26075
- return 'date';
26076
- } else if (propValue instanceof RegExp) {
26077
- return 'regexp';
26078
- }
26079
- }
26080
- return propType;
26081
- }
26082
-
26083
- // Returns a string that is postfixed to a warning about an invalid type.
26084
- // For example, "undefined" or "of type array"
26085
- function getPostfixForTypeWarning(value) {
26086
- var type = getPreciseType(value);
26087
- switch (type) {
26088
- case 'array':
26089
- case 'object':
26090
- return 'an ' + type;
26091
- case 'boolean':
26092
- case 'date':
26093
- case 'regexp':
26094
- return 'a ' + type;
26095
- default:
26096
- return type;
26097
- }
26098
- }
26099
-
26100
- // Returns class name of the object, if any.
26101
- function getClassName(propValue) {
26102
- if (!propValue.constructor || !propValue.constructor.name) {
26103
- return ANONYMOUS;
26104
- }
26105
- return propValue.constructor.name;
26106
- }
26107
-
26108
- ReactPropTypes.checkPropTypes = checkPropTypes;
26109
- ReactPropTypes.PropTypes = ReactPropTypes;
26110
-
26111
- return ReactPropTypes;
26112
- };
26113
-
26114
-
26115
- /***/ }),
26116
-
26117
- /***/ "./node_modules/prop-types/index.js":
26118
- /*!******************************************!*\
26119
- !*** ./node_modules/prop-types/index.js ***!
26120
- \******************************************/
26121
- /*! no static exports found */
26122
- /***/ (function(module, exports, __webpack_require__) {
26123
-
26124
- /**
26125
- * Copyright (c) 2013-present, Facebook, Inc.
26126
- *
26127
- * This source code is licensed under the MIT license found in the
26128
- * LICENSE file in the root directory of this source tree.
26129
- */
26130
-
26131
- if (true) {
26132
- var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
26133
- Symbol.for &&
26134
- Symbol.for('react.element')) ||
26135
- 0xeac7;
26136
-
26137
- var isValidElement = function(object) {
26138
- return typeof object === 'object' &&
26139
- object !== null &&
26140
- object.$$typeof === REACT_ELEMENT_TYPE;
26141
- };
26142
-
26143
- // By explicitly using `prop-types` you are opting into new development behavior.
26144
- // http://fb.me/prop-types-in-prod
26145
- var throwOnDirectAccess = true;
26146
- module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess);
26147
- } else {}
26148
-
26149
-
26150
- /***/ }),
26151
-
26152
- /***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
26153
- /*!*************************************************************!*\
26154
- !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
26155
- \*************************************************************/
26156
- /*! no static exports found */
26157
- /***/ (function(module, exports, __webpack_require__) {
26158
-
26159
- "use strict";
26160
- /**
26161
- * Copyright (c) 2013-present, Facebook, Inc.
26162
- *
26163
- * This source code is licensed under the MIT license found in the
26164
- * LICENSE file in the root directory of this source tree.
26165
- */
26166
-
26167
-
26168
-
26169
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
26170
-
26171
- module.exports = ReactPropTypesSecret;
26172
-
26173
-
26174
- /***/ }),
26175
-
26176
- /***/ "./node_modules/react-dom/cjs/react-dom.development.js":
26177
- /*!*************************************************************!*\
26178
- !*** ./node_modules/react-dom/cjs/react-dom.development.js ***!
26179
- \*************************************************************/
26180
- /*! no static exports found */
26181
- /***/ (function(module, exports, __webpack_require__) {
26182
-
26183
- "use strict";
26184
- /** @license React v16.2.0
26185
- * react-dom.development.js
26186
- *
26187
- * Copyright (c) 2013-present, Facebook, Inc.
26188
- *
26189
- * This source code is licensed under the MIT license found in the
26190
- * LICENSE file in the root directory of this source tree.
26191
- */
26192
-
26193
-
26194
-
26195
-
26196
-
26197
- if (true) {
26198
- (function() {
26199
- 'use strict';
26200
-
26201
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
26202
- var invariant = __webpack_require__(/*! fbjs/lib/invariant */ "./node_modules/fbjs/lib/invariant.js");
26203
- var warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");
26204
- var ExecutionEnvironment = __webpack_require__(/*! fbjs/lib/ExecutionEnvironment */ "./node_modules/fbjs/lib/ExecutionEnvironment.js");
26205
- var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
26206
- var emptyFunction = __webpack_require__(/*! fbjs/lib/emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");
26207
- var EventListener = __webpack_require__(/*! fbjs/lib/EventListener */ "./node_modules/fbjs/lib/EventListener.js");
26208
- var getActiveElement = __webpack_require__(/*! fbjs/lib/getActiveElement */ "./node_modules/fbjs/lib/getActiveElement.js");
26209
- var shallowEqual = __webpack_require__(/*! fbjs/lib/shallowEqual */ "./node_modules/fbjs/lib/shallowEqual.js");
26210
- var containsNode = __webpack_require__(/*! fbjs/lib/containsNode */ "./node_modules/fbjs/lib/containsNode.js");
26211
- var focusNode = __webpack_require__(/*! fbjs/lib/focusNode */ "./node_modules/fbjs/lib/focusNode.js");
26212
- var emptyObject = __webpack_require__(/*! fbjs/lib/emptyObject */ "./node_modules/fbjs/lib/emptyObject.js");
26213
- var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
26214
- var hyphenateStyleName = __webpack_require__(/*! fbjs/lib/hyphenateStyleName */ "./node_modules/fbjs/lib/hyphenateStyleName.js");
26215
- var camelizeStyleName = __webpack_require__(/*! fbjs/lib/camelizeStyleName */ "./node_modules/fbjs/lib/camelizeStyleName.js");
26216
-
26217
- /**
26218
- * WARNING: DO NOT manually require this module.
26219
- * This is a replacement for `invariant(...)` used by the error code system
26220
- * and will _only_ be required by the corresponding babel pass.
26221
- * It always throws.
26222
- */
26223
-
26224
- !React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;
26225
-
26226
- // These attributes should be all lowercase to allow for
26227
- // case insensitive checks
26228
- var RESERVED_PROPS = {
26229
- children: true,
26230
- dangerouslySetInnerHTML: true,
26231
- defaultValue: true,
26232
- defaultChecked: true,
26233
- innerHTML: true,
26234
- suppressContentEditableWarning: true,
26235
- suppressHydrationWarning: true,
26236
- style: true
26237
- };
26238
-
26239
- function checkMask(value, bitmask) {
26240
- return (value & bitmask) === bitmask;
26241
- }
26242
-
26243
- var DOMPropertyInjection = {
26244
- /**
26245
- * Mapping from normalized, camelcased property names to a configuration that
26246
- * specifies how the associated DOM property should be accessed or rendered.
26247
- */
26248
- MUST_USE_PROPERTY: 0x1,
26249
- HAS_BOOLEAN_VALUE: 0x4,
26250
- HAS_NUMERIC_VALUE: 0x8,
26251
- HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
26252
- HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
26253
- HAS_STRING_BOOLEAN_VALUE: 0x40,
26254
-
26255
- /**
26256
- * Inject some specialized knowledge about the DOM. This takes a config object
26257
- * with the following properties:
26258
- *
26259
- * Properties: object mapping DOM property name to one of the
26260
- * DOMPropertyInjection constants or null. If your attribute isn't in here,
26261
- * it won't get written to the DOM.
26262
- *
26263
- * DOMAttributeNames: object mapping React attribute name to the DOM
26264
- * attribute name. Attribute names not specified use the **lowercase**
26265
- * normalized name.
26266
- *
26267
- * DOMAttributeNamespaces: object mapping React attribute name to the DOM
26268
- * attribute namespace URL. (Attribute names not specified use no namespace.)
26269
- *
26270
- * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
26271
- * Property names not specified use the normalized name.
26272
- *
26273
- * DOMMutationMethods: Properties that require special mutation methods. If
26274
- * `value` is undefined, the mutation method should unset the property.
26275
- *
26276
- * @param {object} domPropertyConfig the config as described above.
26277
- */
26278
- injectDOMPropertyConfig: function (domPropertyConfig) {
26279
- var Injection = DOMPropertyInjection;
26280
- var Properties = domPropertyConfig.Properties || {};
26281
- var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
26282
- var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
26283
- var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
26284
-
26285
- for (var propName in Properties) {
26286
- !!properties.hasOwnProperty(propName) ? invariant(false, "injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.", propName) : void 0;
26287
-
26288
- var lowerCased = propName.toLowerCase();
26289
- var propConfig = Properties[propName];
26290
-
26291
- var propertyInfo = {
26292
- attributeName: lowerCased,
26293
- attributeNamespace: null,
26294
- propertyName: propName,
26295
- mutationMethod: null,
26296
-
26297
- mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
26298
- hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
26299
- hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
26300
- hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
26301
- hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE),
26302
- hasStringBooleanValue: checkMask(propConfig, Injection.HAS_STRING_BOOLEAN_VALUE)
26303
- };
26304
- !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? invariant(false, "DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s", propName) : void 0;
26305
-
26306
- if (DOMAttributeNames.hasOwnProperty(propName)) {
26307
- var attributeName = DOMAttributeNames[propName];
26308
-
26309
- propertyInfo.attributeName = attributeName;
26310
- }
26311
-
26312
- if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
26313
- propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
26314
- }
26315
-
26316
- if (DOMMutationMethods.hasOwnProperty(propName)) {
26317
- propertyInfo.mutationMethod = DOMMutationMethods[propName];
26318
- }
26319
-
26320
- // Downcase references to whitelist properties to check for membership
26321
- // without case-sensitivity. This allows the whitelist to pick up
26322
- // `allowfullscreen`, which should be written using the property configuration
26323
- // for `allowFullscreen`
26324
- properties[propName] = propertyInfo;
26325
- }
26326
- }
26327
- };
26328
-
26329
- /* eslint-disable max-len */
26330
- var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
26331
- /* eslint-enable max-len */
26332
- var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
26333
-
26334
-
26335
- var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
26336
-
26337
- /**
26338
- * Map from property "standard name" to an object with info about how to set
26339
- * the property in the DOM. Each object contains:
26340
- *
26341
- * attributeName:
26342
- * Used when rendering markup or with `*Attribute()`.
26343
- * attributeNamespace
26344
- * propertyName:
26345
- * Used on DOM node instances. (This includes properties that mutate due to
26346
- * external factors.)
26347
- * mutationMethod:
26348
- * If non-null, used instead of the property or `setAttribute()` after
26349
- * initial render.
26350
- * mustUseProperty:
26351
- * Whether the property must be accessed and mutated as an object property.
26352
- * hasBooleanValue:
26353
- * Whether the property should be removed when set to a falsey value.
26354
- * hasNumericValue:
26355
- * Whether the property must be numeric or parse as a numeric and should be
26356
- * removed when set to a falsey value.
26357
- * hasPositiveNumericValue:
26358
- * Whether the property must be positive numeric or parse as a positive
26359
- * numeric and should be removed when set to a falsey value.
26360
- * hasOverloadedBooleanValue:
26361
- * Whether the property can be used as a flag as well as with a value.
26362
- * Removed when strictly equal to false; present without a value when
26363
- * strictly equal to true; present with a value otherwise.
26364
- */
26365
- var properties = {};
26366
-
26367
- /**
26368
- * Checks whether a property name is a writeable attribute.
26369
- * @method
26370
- */
26371
- function shouldSetAttribute(name, value) {
26372
- if (isReservedProp(name)) {
26373
- return false;
26374
- }
26375
- if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
26376
- return false;
26377
- }
26378
- if (value === null) {
26379
- return true;
26380
- }
26381
- switch (typeof value) {
26382
- case 'boolean':
26383
- return shouldAttributeAcceptBooleanValue(name);
26384
- case 'undefined':
26385
- case 'number':
26386
- case 'string':
26387
- case 'object':
26388
- return true;
26389
- default:
26390
- // function, symbol
26391
- return false;
26392
- }
26393
- }
26394
-
26395
- function getPropertyInfo(name) {
26396
- return properties.hasOwnProperty(name) ? properties[name] : null;
26397
- }
26398
-
26399
- function shouldAttributeAcceptBooleanValue(name) {
26400
- if (isReservedProp(name)) {
26401
- return true;
26402
- }
26403
- var propertyInfo = getPropertyInfo(name);
26404
- if (propertyInfo) {
26405
- return propertyInfo.hasBooleanValue || propertyInfo.hasStringBooleanValue || propertyInfo.hasOverloadedBooleanValue;
26406
- }
26407
- var prefix = name.toLowerCase().slice(0, 5);
26408
- return prefix === 'data-' || prefix === 'aria-';
26409
- }
26410
-
26411
- /**
26412
- * Checks to see if a property name is within the list of properties
26413
- * reserved for internal React operations. These properties should
26414
- * not be set on an HTML element.
26415
- *
26416
- * @private
26417
- * @param {string} name
26418
- * @return {boolean} If the name is within reserved props
26419
- */
26420
- function isReservedProp(name) {
26421
- return RESERVED_PROPS.hasOwnProperty(name);
26422
- }
26423
-
26424
- var injection = DOMPropertyInjection;
26425
-
26426
- var MUST_USE_PROPERTY = injection.MUST_USE_PROPERTY;
26427
- var HAS_BOOLEAN_VALUE = injection.HAS_BOOLEAN_VALUE;
26428
- var HAS_NUMERIC_VALUE = injection.HAS_NUMERIC_VALUE;
26429
- var HAS_POSITIVE_NUMERIC_VALUE = injection.HAS_POSITIVE_NUMERIC_VALUE;
26430
- var HAS_OVERLOADED_BOOLEAN_VALUE = injection.HAS_OVERLOADED_BOOLEAN_VALUE;
26431
- var HAS_STRING_BOOLEAN_VALUE = injection.HAS_STRING_BOOLEAN_VALUE;
26432
-
26433
- var HTMLDOMPropertyConfig = {
26434
- // When adding attributes to this list, be sure to also add them to
26435
- // the `possibleStandardNames` module to ensure casing and incorrect
26436
- // name warnings.
26437
- Properties: {
26438
- allowFullScreen: HAS_BOOLEAN_VALUE,
26439
- // specifies target context for links with `preload` type
26440
- async: HAS_BOOLEAN_VALUE,
26441
- // Note: there is a special case that prevents it from being written to the DOM
26442
- // on the client side because the browsers are inconsistent. Instead we call focus().
26443
- autoFocus: HAS_BOOLEAN_VALUE,
26444
- autoPlay: HAS_BOOLEAN_VALUE,
26445
- capture: HAS_OVERLOADED_BOOLEAN_VALUE,
26446
- checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
26447
- cols: HAS_POSITIVE_NUMERIC_VALUE,
26448
- contentEditable: HAS_STRING_BOOLEAN_VALUE,
26449
- controls: HAS_BOOLEAN_VALUE,
26450
- 'default': HAS_BOOLEAN_VALUE,
26451
- defer: HAS_BOOLEAN_VALUE,
26452
- disabled: HAS_BOOLEAN_VALUE,
26453
- download: HAS_OVERLOADED_BOOLEAN_VALUE,
26454
- draggable: HAS_STRING_BOOLEAN_VALUE,
26455
- formNoValidate: HAS_BOOLEAN_VALUE,
26456
- hidden: HAS_BOOLEAN_VALUE,
26457
- loop: HAS_BOOLEAN_VALUE,
26458
- // Caution; `option.selected` is not updated if `select.multiple` is
26459
- // disabled with `removeAttribute`.
26460
- multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
26461
- muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
26462
- noValidate: HAS_BOOLEAN_VALUE,
26463
- open: HAS_BOOLEAN_VALUE,
26464
- playsInline: HAS_BOOLEAN_VALUE,
26465
- readOnly: HAS_BOOLEAN_VALUE,
26466
- required: HAS_BOOLEAN_VALUE,
26467
- reversed: HAS_BOOLEAN_VALUE,
26468
- rows: HAS_POSITIVE_NUMERIC_VALUE,
26469
- rowSpan: HAS_NUMERIC_VALUE,
26470
- scoped: HAS_BOOLEAN_VALUE,
26471
- seamless: HAS_BOOLEAN_VALUE,
26472
- selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
26473
- size: HAS_POSITIVE_NUMERIC_VALUE,
26474
- start: HAS_NUMERIC_VALUE,
26475
- // support for projecting regular DOM Elements via V1 named slots ( shadow dom )
26476
- span: HAS_POSITIVE_NUMERIC_VALUE,
26477
- spellCheck: HAS_STRING_BOOLEAN_VALUE,
26478
- // Style must be explicitly set in the attribute list. React components
26479
- // expect a style object
26480
- style: 0,
26481
- // Keep it in the whitelist because it is case-sensitive for SVG.
26482
- tabIndex: 0,
26483
- // itemScope is for for Microdata support.
26484
- // See http://schema.org/docs/gs.html
26485
- itemScope: HAS_BOOLEAN_VALUE,
26486
- // These attributes must stay in the white-list because they have
26487
- // different attribute names (see DOMAttributeNames below)
26488
- acceptCharset: 0,
26489
- className: 0,
26490
- htmlFor: 0,
26491
- httpEquiv: 0,
26492
- // Attributes with mutation methods must be specified in the whitelist
26493
- // Set the string boolean flag to allow the behavior
26494
- value: HAS_STRING_BOOLEAN_VALUE
26495
- },
26496
- DOMAttributeNames: {
26497
- acceptCharset: 'accept-charset',
26498
- className: 'class',
26499
- htmlFor: 'for',
26500
- httpEquiv: 'http-equiv'
26501
- },
26502
- DOMMutationMethods: {
26503
- value: function (node, value) {
26504
- if (value == null) {
26505
- return node.removeAttribute('value');
26506
- }
26507
-
26508
- // Number inputs get special treatment due to some edge cases in
26509
- // Chrome. Let everything else assign the value attribute as normal.
26510
- // https://github.com/facebook/react/issues/7253#issuecomment-236074326
26511
- if (node.type !== 'number' || node.hasAttribute('value') === false) {
26512
- node.setAttribute('value', '' + value);
26513
- } else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) {
26514
- // Don't assign an attribute if validation reports bad
26515
- // input. Chrome will clear the value. Additionally, don't
26516
- // operate on inputs that have focus, otherwise Chrome might
26517
- // strip off trailing decimal places and cause the user's
26518
- // cursor position to jump to the beginning of the input.
26519
- //
26520
- // In ReactDOMInput, we have an onBlur event that will trigger
26521
- // this function again when focus is lost.
26522
- node.setAttribute('value', '' + value);
26523
- }
26524
- }
26525
- }
26526
- };
26527
-
26528
- var HAS_STRING_BOOLEAN_VALUE$1 = injection.HAS_STRING_BOOLEAN_VALUE;
26529
-
26530
-
26531
- var NS = {
26532
- xlink: 'http://www.w3.org/1999/xlink',
26533
- xml: 'http://www.w3.org/XML/1998/namespace'
26534
- };
26535
-
26536
- /**
26537
- * This is a list of all SVG attributes that need special casing,
26538
- * namespacing, or boolean value assignment.
26539
- *
26540
- * When adding attributes to this list, be sure to also add them to
26541
- * the `possibleStandardNames` module to ensure casing and incorrect
26542
- * name warnings.
26543
- *
26544
- * SVG Attributes List:
26545
- * https://www.w3.org/TR/SVG/attindex.html
26546
- * SMIL Spec:
26547
- * https://www.w3.org/TR/smil
26548
- */
26549
- var ATTRS = ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'x-height', 'xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type', 'xml:base', 'xmlns:xlink', 'xml:lang', 'xml:space'];
26550
-
26551
- var SVGDOMPropertyConfig = {
26552
- Properties: {
26553
- autoReverse: HAS_STRING_BOOLEAN_VALUE$1,
26554
- externalResourcesRequired: HAS_STRING_BOOLEAN_VALUE$1,
26555
- preserveAlpha: HAS_STRING_BOOLEAN_VALUE$1
26556
- },
26557
- DOMAttributeNames: {
26558
- autoReverse: 'autoReverse',
26559
- externalResourcesRequired: 'externalResourcesRequired',
26560
- preserveAlpha: 'preserveAlpha'
26561
- },
26562
- DOMAttributeNamespaces: {
26563
- xlinkActuate: NS.xlink,
26564
- xlinkArcrole: NS.xlink,
26565
- xlinkHref: NS.xlink,
26566
- xlinkRole: NS.xlink,
26567
- xlinkShow: NS.xlink,
26568
- xlinkTitle: NS.xlink,
26569
- xlinkType: NS.xlink,
26570
- xmlBase: NS.xml,
26571
- xmlLang: NS.xml,
26572
- xmlSpace: NS.xml
26573
- }
26574
- };
26575
-
26576
- var CAMELIZE = /[\-\:]([a-z])/g;
26577
- var capitalize = function (token) {
26578
- return token[1].toUpperCase();
26579
- };
26580
-
26581
- ATTRS.forEach(function (original) {
26582
- var reactName = original.replace(CAMELIZE, capitalize);
26583
-
26584
- SVGDOMPropertyConfig.Properties[reactName] = 0;
26585
- SVGDOMPropertyConfig.DOMAttributeNames[reactName] = original;
26586
- });
26587
-
26588
- injection.injectDOMPropertyConfig(HTMLDOMPropertyConfig);
26589
- injection.injectDOMPropertyConfig(SVGDOMPropertyConfig);
26590
-
26591
- var ReactErrorUtils = {
26592
- // Used by Fiber to simulate a try-catch.
26593
- _caughtError: null,
26594
- _hasCaughtError: false,
26595
-
26596
- // Used by event system to capture/rethrow the first error.
26597
- _rethrowError: null,
26598
- _hasRethrowError: false,
26599
-
26600
- injection: {
26601
- injectErrorUtils: function (injectedErrorUtils) {
26602
- !(typeof injectedErrorUtils.invokeGuardedCallback === 'function') ? invariant(false, 'Injected invokeGuardedCallback() must be a function.') : void 0;
26603
- invokeGuardedCallback = injectedErrorUtils.invokeGuardedCallback;
26604
- }
26605
- },
26606
-
26607
- /**
26608
- * Call a function while guarding against errors that happens within it.
26609
- * Returns an error if it throws, otherwise null.
26610
- *
26611
- * In production, this is implemented using a try-catch. The reason we don't
26612
- * use a try-catch directly is so that we can swap out a different
26613
- * implementation in DEV mode.
26614
- *
26615
- * @param {String} name of the guard to use for logging or debugging
26616
- * @param {Function} func The function to invoke
26617
- * @param {*} context The context to use when calling the function
26618
- * @param {...*} args Arguments for function
26619
- */
26620
- invokeGuardedCallback: function (name, func, context, a, b, c, d, e, f) {
26621
- invokeGuardedCallback.apply(ReactErrorUtils, arguments);
26622
- },
26623
-
26624
- /**
26625
- * Same as invokeGuardedCallback, but instead of returning an error, it stores
26626
- * it in a global so it can be rethrown by `rethrowCaughtError` later.
26627
- * TODO: See if _caughtError and _rethrowError can be unified.
26628
- *
26629
- * @param {String} name of the guard to use for logging or debugging
26630
- * @param {Function} func The function to invoke
26631
- * @param {*} context The context to use when calling the function
26632
- * @param {...*} args Arguments for function
26633
- */
26634
- invokeGuardedCallbackAndCatchFirstError: function (name, func, context, a, b, c, d, e, f) {
26635
- ReactErrorUtils.invokeGuardedCallback.apply(this, arguments);
26636
- if (ReactErrorUtils.hasCaughtError()) {
26637
- var error = ReactErrorUtils.clearCaughtError();
26638
- if (!ReactErrorUtils._hasRethrowError) {
26639
- ReactErrorUtils._hasRethrowError = true;
26640
- ReactErrorUtils._rethrowError = error;
26641
- }
26642
- }
26643
- },
26644
-
26645
- /**
26646
- * During execution of guarded functions we will capture the first error which
26647
- * we will rethrow to be handled by the top level error handler.
26648
- */
26649
- rethrowCaughtError: function () {
26650
- return rethrowCaughtError.apply(ReactErrorUtils, arguments);
26651
- },
26652
-
26653
- hasCaughtError: function () {
26654
- return ReactErrorUtils._hasCaughtError;
26655
- },
26656
-
26657
- clearCaughtError: function () {
26658
- if (ReactErrorUtils._hasCaughtError) {
26659
- var error = ReactErrorUtils._caughtError;
26660
- ReactErrorUtils._caughtError = null;
26661
- ReactErrorUtils._hasCaughtError = false;
26662
- return error;
26663
- } else {
26664
- invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');
26665
- }
26666
- }
26667
- };
26668
-
26669
- var invokeGuardedCallback = function (name, func, context, a, b, c, d, e, f) {
26670
- ReactErrorUtils._hasCaughtError = false;
26671
- ReactErrorUtils._caughtError = null;
26672
- var funcArgs = Array.prototype.slice.call(arguments, 3);
26673
- try {
26674
- func.apply(context, funcArgs);
26675
- } catch (error) {
26676
- ReactErrorUtils._caughtError = error;
26677
- ReactErrorUtils._hasCaughtError = true;
26678
- }
26679
- };
26680
-
26681
- {
26682
- // In DEV mode, we swap out invokeGuardedCallback for a special version
26683
- // that plays more nicely with the browser's DevTools. The idea is to preserve
26684
- // "Pause on exceptions" behavior. Because React wraps all user-provided
26685
- // functions in invokeGuardedCallback, and the production version of
26686
- // invokeGuardedCallback uses a try-catch, all user exceptions are treated
26687
- // like caught exceptions, and the DevTools won't pause unless the developer
26688
- // takes the extra step of enabling pause on caught exceptions. This is
26689
- // untintuitive, though, because even though React has caught the error, from
26690
- // the developer's perspective, the error is uncaught.
26691
- //
26692
- // To preserve the expected "Pause on exceptions" behavior, we don't use a
26693
- // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
26694
- // DOM node, and call the user-provided callback from inside an event handler
26695
- // for that fake event. If the callback throws, the error is "captured" using
26696
- // a global event handler. But because the error happens in a different
26697
- // event loop context, it does not interrupt the normal program flow.
26698
- // Effectively, this gives us try-catch behavior without actually using
26699
- // try-catch. Neat!
26700
-
26701
- // Check that the browser supports the APIs we need to implement our special
26702
- // DEV version of invokeGuardedCallback
26703
- if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
26704
- var fakeNode = document.createElement('react');
26705
-
26706
- var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
26707
- // Keeps track of whether the user-provided callback threw an error. We
26708
- // set this to true at the beginning, then set it to false right after
26709
- // calling the function. If the function errors, `didError` will never be
26710
- // set to false. This strategy works even if the browser is flaky and
26711
- // fails to call our global error handler, because it doesn't rely on
26712
- // the error event at all.
26713
- var didError = true;
26714
-
26715
- // Create an event handler for our fake event. We will synchronously
26716
- // dispatch our fake event using `dispatchEvent`. Inside the handler, we
26717
- // call the user-provided callback.
26718
- var funcArgs = Array.prototype.slice.call(arguments, 3);
26719
- function callCallback() {
26720
- // We immediately remove the callback from event listeners so that
26721
- // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
26722
- // nested call would trigger the fake event handlers of any call higher
26723
- // in the stack.
26724
- fakeNode.removeEventListener(evtType, callCallback, false);
26725
- func.apply(context, funcArgs);
26726
- didError = false;
26727
- }
26728
-
26729
- // Create a global error event handler. We use this to capture the value
26730
- // that was thrown. It's possible that this error handler will fire more
26731
- // than once; for example, if non-React code also calls `dispatchEvent`
26732
- // and a handler for that event throws. We should be resilient to most of
26733
- // those cases. Even if our error event handler fires more than once, the
26734
- // last error event is always used. If the callback actually does error,
26735
- // we know that the last error event is the correct one, because it's not
26736
- // possible for anything else to have happened in between our callback
26737
- // erroring and the code that follows the `dispatchEvent` call below. If
26738
- // the callback doesn't error, but the error event was fired, we know to
26739
- // ignore it because `didError` will be false, as described above.
26740
- var error = void 0;
26741
- // Use this to track whether the error event is ever called.
26742
- var didSetError = false;
26743
- var isCrossOriginError = false;
26744
-
26745
- function onError(event) {
26746
- error = event.error;
26747
- didSetError = true;
26748
- if (error === null && event.colno === 0 && event.lineno === 0) {
26749
- isCrossOriginError = true;
26750
- }
26751
- }
26752
-
26753
- // Create a fake event type.
26754
- var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
26755
-
26756
- // Attach our event handlers
26757
- window.addEventListener('error', onError);
26758
- fakeNode.addEventListener(evtType, callCallback, false);
26759
-
26760
- // Synchronously dispatch our fake event. If the user-provided function
26761
- // errors, it will trigger our global error handler.
26762
- var evt = document.createEvent('Event');
26763
- evt.initEvent(evtType, false, false);
26764
- fakeNode.dispatchEvent(evt);
26765
-
26766
- if (didError) {
26767
- if (!didSetError) {
26768
- // The callback errored, but the error event never fired.
26769
- error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
26770
- } else if (isCrossOriginError) {
26771
- error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');
26772
- }
26773
- ReactErrorUtils._hasCaughtError = true;
26774
- ReactErrorUtils._caughtError = error;
26775
- } else {
26776
- ReactErrorUtils._hasCaughtError = false;
26777
- ReactErrorUtils._caughtError = null;
26778
- }
26779
-
26780
- // Remove our event listeners
26781
- window.removeEventListener('error', onError);
26782
- };
26783
-
26784
- invokeGuardedCallback = invokeGuardedCallbackDev;
26785
- }
26786
- }
26787
-
26788
- var rethrowCaughtError = function () {
26789
- if (ReactErrorUtils._hasRethrowError) {
26790
- var error = ReactErrorUtils._rethrowError;
26791
- ReactErrorUtils._rethrowError = null;
26792
- ReactErrorUtils._hasRethrowError = false;
26793
- throw error;
26794
- }
26795
- };
26796
-
26797
- /**
26798
- * Injectable ordering of event plugins.
26799
- */
26800
- var eventPluginOrder = null;
26801
-
26802
- /**
26803
- * Injectable mapping from names to event plugin modules.
26804
- */
26805
- var namesToPlugins = {};
26806
-
26807
- /**
26808
- * Recomputes the plugin list using the injected plugins and plugin ordering.
26809
- *
26810
- * @private
26811
- */
26812
- function recomputePluginOrdering() {
26813
- if (!eventPluginOrder) {
26814
- // Wait until an `eventPluginOrder` is injected.
26815
- return;
26816
- }
26817
- for (var pluginName in namesToPlugins) {
26818
- var pluginModule = namesToPlugins[pluginName];
26819
- var pluginIndex = eventPluginOrder.indexOf(pluginName);
26820
- !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;
26821
- if (plugins[pluginIndex]) {
26822
- continue;
26823
- }
26824
- !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;
26825
- plugins[pluginIndex] = pluginModule;
26826
- var publishedEvents = pluginModule.eventTypes;
26827
- for (var eventName in publishedEvents) {
26828
- !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;
26829
- }
26830
- }
26831
- }
26832
-
26833
- /**
26834
- * Publishes an event so that it can be dispatched by the supplied plugin.
26835
- *
26836
- * @param {object} dispatchConfig Dispatch configuration for the event.
26837
- * @param {object} PluginModule Plugin publishing the event.
26838
- * @return {boolean} True if the event was successfully published.
26839
- * @private
26840
- */
26841
- function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
26842
- !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;
26843
- eventNameDispatchConfigs[eventName] = dispatchConfig;
26844
-
26845
- var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
26846
- if (phasedRegistrationNames) {
26847
- for (var phaseName in phasedRegistrationNames) {
26848
- if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
26849
- var phasedRegistrationName = phasedRegistrationNames[phaseName];
26850
- publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
26851
- }
26852
- }
26853
- return true;
26854
- } else if (dispatchConfig.registrationName) {
26855
- publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
26856
- return true;
26857
- }
26858
- return false;
26859
- }
26860
-
26861
- /**
26862
- * Publishes a registration name that is used to identify dispatched events.
26863
- *
26864
- * @param {string} registrationName Registration name to add.
26865
- * @param {object} PluginModule Plugin publishing the event.
26866
- * @private
26867
- */
26868
- function publishRegistrationName(registrationName, pluginModule, eventName) {
26869
- !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;
26870
- registrationNameModules[registrationName] = pluginModule;
26871
- registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
26872
-
26873
- {
26874
- var lowerCasedName = registrationName.toLowerCase();
26875
- possibleRegistrationNames[lowerCasedName] = registrationName;
26876
-
26877
- if (registrationName === 'onDoubleClick') {
26878
- possibleRegistrationNames.ondblclick = registrationName;
26879
- }
26880
- }
26881
- }
26882
-
26883
- /**
26884
- * Registers plugins so that they can extract and dispatch events.
26885
- *
26886
- * @see {EventPluginHub}
26887
- */
26888
-
26889
- /**
26890
- * Ordered list of injected plugins.
26891
- */
26892
- var plugins = [];
26893
-
26894
- /**
26895
- * Mapping from event name to dispatch config
26896
- */
26897
- var eventNameDispatchConfigs = {};
26898
-
26899
- /**
26900
- * Mapping from registration name to plugin module
26901
- */
26902
- var registrationNameModules = {};
26903
-
26904
- /**
26905
- * Mapping from registration name to event name
26906
- */
26907
- var registrationNameDependencies = {};
26908
-
26909
- /**
26910
- * Mapping from lowercase registration names to the properly cased version,
26911
- * used to warn in the case of missing event handlers. Available
26912
- * only in true.
26913
- * @type {Object}
26914
- */
26915
- var possibleRegistrationNames = {};
26916
- // Trust the developer to only use possibleRegistrationNames in true
26917
-
26918
- /**
26919
- * Injects an ordering of plugins (by plugin name). This allows the ordering
26920
- * to be decoupled from injection of the actual plugins so that ordering is
26921
- * always deterministic regardless of packaging, on-the-fly injection, etc.
26922
- *
26923
- * @param {array} InjectedEventPluginOrder
26924
- * @internal
26925
- * @see {EventPluginHub.injection.injectEventPluginOrder}
26926
- */
26927
- function injectEventPluginOrder(injectedEventPluginOrder) {
26928
- !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;
26929
- // Clone the ordering so it cannot be dynamically mutated.
26930
- eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
26931
- recomputePluginOrdering();
26932
- }
26933
-
26934
- /**
26935
- * Injects plugins to be used by `EventPluginHub`. The plugin names must be
26936
- * in the ordering injected by `injectEventPluginOrder`.
26937
- *
26938
- * Plugins can be injected as part of page initialization or on-the-fly.
26939
- *
26940
- * @param {object} injectedNamesToPlugins Map from names to plugin modules.
26941
- * @internal
26942
- * @see {EventPluginHub.injection.injectEventPluginsByName}
26943
- */
26944
- function injectEventPluginsByName(injectedNamesToPlugins) {
26945
- var isOrderingDirty = false;
26946
- for (var pluginName in injectedNamesToPlugins) {
26947
- if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
26948
- continue;
26949
- }
26950
- var pluginModule = injectedNamesToPlugins[pluginName];
26951
- if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
26952
- !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;
26953
- namesToPlugins[pluginName] = pluginModule;
26954
- isOrderingDirty = true;
26955
- }
26956
- }
26957
- if (isOrderingDirty) {
26958
- recomputePluginOrdering();
26959
- }
26960
- }
26961
-
26962
- var EventPluginRegistry = Object.freeze({
26963
- plugins: plugins,
26964
- eventNameDispatchConfigs: eventNameDispatchConfigs,
26965
- registrationNameModules: registrationNameModules,
26966
- registrationNameDependencies: registrationNameDependencies,
26967
- possibleRegistrationNames: possibleRegistrationNames,
26968
- injectEventPluginOrder: injectEventPluginOrder,
26969
- injectEventPluginsByName: injectEventPluginsByName
26970
- });
26971
-
26972
- var getFiberCurrentPropsFromNode = null;
26973
- var getInstanceFromNode = null;
26974
- var getNodeFromInstance = null;
26975
-
26976
- var injection$2 = {
26977
- injectComponentTree: function (Injected) {
26978
- getFiberCurrentPropsFromNode = Injected.getFiberCurrentPropsFromNode;
26979
- getInstanceFromNode = Injected.getInstanceFromNode;
26980
- getNodeFromInstance = Injected.getNodeFromInstance;
26981
-
26982
- {
26983
- warning(getNodeFromInstance && getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');
26984
- }
26985
- }
26986
- };
26987
-
26988
-
26989
-
26990
-
26991
-
26992
-
26993
- var validateEventDispatches;
26994
- {
26995
- validateEventDispatches = function (event) {
26996
- var dispatchListeners = event._dispatchListeners;
26997
- var dispatchInstances = event._dispatchInstances;
26998
-
26999
- var listenersIsArr = Array.isArray(dispatchListeners);
27000
- var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
27001
-
27002
- var instancesIsArr = Array.isArray(dispatchInstances);
27003
- var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
27004
-
27005
- warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.');
27006
- };
27007
- }
27008
-
27009
- /**
27010
- * Dispatch the event to the listener.
27011
- * @param {SyntheticEvent} event SyntheticEvent to handle
27012
- * @param {boolean} simulated If the event is simulated (changes exn behavior)
27013
- * @param {function} listener Application-level callback
27014
- * @param {*} inst Internal component instance
27015
- */
27016
- function executeDispatch(event, simulated, listener, inst) {
27017
- var type = event.type || 'unknown-event';
27018
- event.currentTarget = getNodeFromInstance(inst);
27019
- ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
27020
- event.currentTarget = null;
27021
- }
27022
-
27023
- /**
27024
- * Standard/simple iteration through an event's collected dispatches.
27025
- */
27026
- function executeDispatchesInOrder(event, simulated) {
27027
- var dispatchListeners = event._dispatchListeners;
27028
- var dispatchInstances = event._dispatchInstances;
27029
- {
27030
- validateEventDispatches(event);
27031
- }
27032
- if (Array.isArray(dispatchListeners)) {
27033
- for (var i = 0; i < dispatchListeners.length; i++) {
27034
- if (event.isPropagationStopped()) {
27035
- break;
27036
- }
27037
- // Listeners and Instances are two parallel arrays that are always in sync.
27038
- executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]);
27039
- }
27040
- } else if (dispatchListeners) {
27041
- executeDispatch(event, simulated, dispatchListeners, dispatchInstances);
27042
- }
27043
- event._dispatchListeners = null;
27044
- event._dispatchInstances = null;
27045
- }
27046
-
27047
- /**
27048
- * @see executeDispatchesInOrderStopAtTrueImpl
27049
- */
27050
-
27051
-
27052
- /**
27053
- * Execution of a "direct" dispatch - there must be at most one dispatch
27054
- * accumulated on the event or it is considered an error. It doesn't really make
27055
- * sense for an event with multiple dispatches (bubbled) to keep track of the
27056
- * return values at each dispatch execution, but it does tend to make sense when
27057
- * dealing with "direct" dispatches.
27058
- *
27059
- * @return {*} The return value of executing the single dispatch.
27060
- */
27061
-
27062
-
27063
- /**
27064
- * @param {SyntheticEvent} event
27065
- * @return {boolean} True iff number of dispatches accumulated is greater than 0.
27066
- */
27067
-
27068
- /**
27069
- * Accumulates items that must not be null or undefined into the first one. This
27070
- * is used to conserve memory by avoiding array allocations, and thus sacrifices
27071
- * API cleanness. Since `current` can be null before being passed in and not
27072
- * null after this function, make sure to assign it back to `current`:
27073
- *
27074
- * `a = accumulateInto(a, b);`
27075
- *
27076
- * This API should be sparingly used. Try `accumulate` for something cleaner.
27077
- *
27078
- * @return {*|array<*>} An accumulation of items.
27079
- */
27080
-
27081
- function accumulateInto(current, next) {
27082
- !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;
27083
-
27084
- if (current == null) {
27085
- return next;
27086
- }
27087
-
27088
- // Both are not empty. Warning: Never call x.concat(y) when you are not
27089
- // certain that x is an Array (x could be a string with concat method).
27090
- if (Array.isArray(current)) {
27091
- if (Array.isArray(next)) {
27092
- current.push.apply(current, next);
27093
- return current;
27094
- }
27095
- current.push(next);
27096
- return current;
27097
- }
27098
-
27099
- if (Array.isArray(next)) {
27100
- // A bit too dangerous to mutate `next`.
27101
- return [current].concat(next);
27102
- }
27103
-
27104
- return [current, next];
27105
- }
27106
-
27107
- /**
27108
- * @param {array} arr an "accumulation" of items which is either an Array or
27109
- * a single item. Useful when paired with the `accumulate` module. This is a
27110
- * simple utility that allows us to reason about a collection of items, but
27111
- * handling the case when there is exactly one item (and we do not need to
27112
- * allocate an array).
27113
- * @param {function} cb Callback invoked with each element or a collection.
27114
- * @param {?} [scope] Scope used as `this` in a callback.
27115
- */
27116
- function forEachAccumulated(arr, cb, scope) {
27117
- if (Array.isArray(arr)) {
27118
- arr.forEach(cb, scope);
27119
- } else if (arr) {
27120
- cb.call(scope, arr);
27121
- }
27122
- }
27123
-
27124
- /**
27125
- * Internal queue of events that have accumulated their dispatches and are
27126
- * waiting to have their dispatches executed.
27127
- */
27128
- var eventQueue = null;
27129
-
27130
- /**
27131
- * Dispatches an event and releases it back into the pool, unless persistent.
27132
- *
27133
- * @param {?object} event Synthetic event to be dispatched.
27134
- * @param {boolean} simulated If the event is simulated (changes exn behavior)
27135
- * @private
27136
- */
27137
- var executeDispatchesAndRelease = function (event, simulated) {
27138
- if (event) {
27139
- executeDispatchesInOrder(event, simulated);
27140
-
27141
- if (!event.isPersistent()) {
27142
- event.constructor.release(event);
27143
- }
27144
- }
27145
- };
27146
- var executeDispatchesAndReleaseSimulated = function (e) {
27147
- return executeDispatchesAndRelease(e, true);
27148
- };
27149
- var executeDispatchesAndReleaseTopLevel = function (e) {
27150
- return executeDispatchesAndRelease(e, false);
27151
- };
27152
-
27153
- function isInteractive(tag) {
27154
- return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
27155
- }
27156
-
27157
- function shouldPreventMouseEvent(name, type, props) {
27158
- switch (name) {
27159
- case 'onClick':
27160
- case 'onClickCapture':
27161
- case 'onDoubleClick':
27162
- case 'onDoubleClickCapture':
27163
- case 'onMouseDown':
27164
- case 'onMouseDownCapture':
27165
- case 'onMouseMove':
27166
- case 'onMouseMoveCapture':
27167
- case 'onMouseUp':
27168
- case 'onMouseUpCapture':
27169
- return !!(props.disabled && isInteractive(type));
27170
- default:
27171
- return false;
27172
- }
27173
- }
27174
-
27175
- /**
27176
- * This is a unified interface for event plugins to be installed and configured.
27177
- *
27178
- * Event plugins can implement the following properties:
27179
- *
27180
- * `extractEvents` {function(string, DOMEventTarget, string, object): *}
27181
- * Required. When a top-level event is fired, this method is expected to
27182
- * extract synthetic events that will in turn be queued and dispatched.
27183
- *
27184
- * `eventTypes` {object}
27185
- * Optional, plugins that fire events must publish a mapping of registration
27186
- * names that are used to register listeners. Values of this mapping must
27187
- * be objects that contain `registrationName` or `phasedRegistrationNames`.
27188
- *
27189
- * `executeDispatch` {function(object, function, string)}
27190
- * Optional, allows plugins to override how an event gets dispatched. By
27191
- * default, the listener is simply invoked.
27192
- *
27193
- * Each plugin that is injected into `EventsPluginHub` is immediately operable.
27194
- *
27195
- * @public
27196
- */
27197
-
27198
- /**
27199
- * Methods for injecting dependencies.
27200
- */
27201
- var injection$1 = {
27202
- /**
27203
- * @param {array} InjectedEventPluginOrder
27204
- * @public
27205
- */
27206
- injectEventPluginOrder: injectEventPluginOrder,
27207
-
27208
- /**
27209
- * @param {object} injectedNamesToPlugins Map from names to plugin modules.
27210
- */
27211
- injectEventPluginsByName: injectEventPluginsByName
27212
- };
27213
-
27214
- /**
27215
- * @param {object} inst The instance, which is the source of events.
27216
- * @param {string} registrationName Name of listener (e.g. `onClick`).
27217
- * @return {?function} The stored callback.
27218
- */
27219
- function getListener(inst, registrationName) {
27220
- var listener;
27221
-
27222
- // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
27223
- // live here; needs to be moved to a better place soon
27224
- var stateNode = inst.stateNode;
27225
- if (!stateNode) {
27226
- // Work in progress (ex: onload events in incremental mode).
27227
- return null;
27228
- }
27229
- var props = getFiberCurrentPropsFromNode(stateNode);
27230
- if (!props) {
27231
- // Work in progress.
27232
- return null;
27233
- }
27234
- listener = props[registrationName];
27235
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
27236
- return null;
27237
- }
27238
- !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;
27239
- return listener;
27240
- }
27241
-
27242
- /**
27243
- * Allows registered plugins an opportunity to extract events from top-level
27244
- * native browser events.
27245
- *
27246
- * @return {*} An accumulation of synthetic events.
27247
- * @internal
27248
- */
27249
- function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
27250
- var events;
27251
- for (var i = 0; i < plugins.length; i++) {
27252
- // Not every plugin in the ordering may be loaded at runtime.
27253
- var possiblePlugin = plugins[i];
27254
- if (possiblePlugin) {
27255
- var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
27256
- if (extractedEvents) {
27257
- events = accumulateInto(events, extractedEvents);
27258
- }
27259
- }
27260
- }
27261
- return events;
27262
- }
27263
-
27264
- /**
27265
- * Enqueues a synthetic event that should be dispatched when
27266
- * `processEventQueue` is invoked.
27267
- *
27268
- * @param {*} events An accumulation of synthetic events.
27269
- * @internal
27270
- */
27271
- function enqueueEvents(events) {
27272
- if (events) {
27273
- eventQueue = accumulateInto(eventQueue, events);
27274
- }
27275
- }
27276
-
27277
- /**
27278
- * Dispatches all synthetic events on the event queue.
27279
- *
27280
- * @internal
27281
- */
27282
- function processEventQueue(simulated) {
27283
- // Set `eventQueue` to null before processing it so that we can tell if more
27284
- // events get enqueued while processing.
27285
- var processingEventQueue = eventQueue;
27286
- eventQueue = null;
27287
-
27288
- if (!processingEventQueue) {
27289
- return;
27290
- }
27291
-
27292
- if (simulated) {
27293
- forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated);
27294
- } else {
27295
- forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
27296
- }
27297
- !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;
27298
- // This would be a good time to rethrow if any of the event handlers threw.
27299
- ReactErrorUtils.rethrowCaughtError();
27300
- }
27301
-
27302
- var EventPluginHub = Object.freeze({
27303
- injection: injection$1,
27304
- getListener: getListener,
27305
- extractEvents: extractEvents,
27306
- enqueueEvents: enqueueEvents,
27307
- processEventQueue: processEventQueue
27308
- });
27309
-
27310
- var IndeterminateComponent = 0; // Before we know whether it is functional or class
27311
- var FunctionalComponent = 1;
27312
- var ClassComponent = 2;
27313
- var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
27314
- var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
27315
- var HostComponent = 5;
27316
- var HostText = 6;
27317
- var CallComponent = 7;
27318
- var CallHandlerPhase = 8;
27319
- var ReturnComponent = 9;
27320
- var Fragment = 10;
27321
-
27322
- var randomKey = Math.random().toString(36).slice(2);
27323
- var internalInstanceKey = '__reactInternalInstance$' + randomKey;
27324
- var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
27325
-
27326
- function precacheFiberNode$1(hostInst, node) {
27327
- node[internalInstanceKey] = hostInst;
27328
- }
27329
-
27330
- /**
27331
- * Given a DOM node, return the closest ReactDOMComponent or
27332
- * ReactDOMTextComponent instance ancestor.
27333
- */
27334
- function getClosestInstanceFromNode(node) {
27335
- if (node[internalInstanceKey]) {
27336
- return node[internalInstanceKey];
27337
- }
27338
-
27339
- // Walk up the tree until we find an ancestor whose instance we have cached.
27340
- var parents = [];
27341
- while (!node[internalInstanceKey]) {
27342
- parents.push(node);
27343
- if (node.parentNode) {
27344
- node = node.parentNode;
27345
- } else {
27346
- // Top of the tree. This node must not be part of a React tree (or is
27347
- // unmounted, potentially).
27348
- return null;
27349
- }
27350
- }
27351
-
27352
- var closest = void 0;
27353
- var inst = node[internalInstanceKey];
27354
- if (inst.tag === HostComponent || inst.tag === HostText) {
27355
- // In Fiber, this will always be the deepest root.
27356
- return inst;
27357
- }
27358
- for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {
27359
- closest = inst;
27360
- }
27361
-
27362
- return closest;
27363
- }
27364
-
27365
- /**
27366
- * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
27367
- * instance, or null if the node was not rendered by this React.
27368
- */
27369
- function getInstanceFromNode$1(node) {
27370
- var inst = node[internalInstanceKey];
27371
- if (inst) {
27372
- if (inst.tag === HostComponent || inst.tag === HostText) {
27373
- return inst;
27374
- } else {
27375
- return null;
27376
- }
27377
- }
27378
- return null;
27379
- }
27380
-
27381
- /**
27382
- * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
27383
- * DOM node.
27384
- */
27385
- function getNodeFromInstance$1(inst) {
27386
- if (inst.tag === HostComponent || inst.tag === HostText) {
27387
- // In Fiber this, is just the state node right now. We assume it will be
27388
- // a host component or host text.
27389
- return inst.stateNode;
27390
- }
27391
-
27392
- // Without this first invariant, passing a non-DOM-component triggers the next
27393
- // invariant for a missing parent, which is super confusing.
27394
- invariant(false, 'getNodeFromInstance: Invalid argument.');
27395
- }
27396
-
27397
- function getFiberCurrentPropsFromNode$1(node) {
27398
- return node[internalEventHandlersKey] || null;
27399
- }
27400
-
27401
- function updateFiberProps$1(node, props) {
27402
- node[internalEventHandlersKey] = props;
27403
- }
27404
-
27405
- var ReactDOMComponentTree = Object.freeze({
27406
- precacheFiberNode: precacheFiberNode$1,
27407
- getClosestInstanceFromNode: getClosestInstanceFromNode,
27408
- getInstanceFromNode: getInstanceFromNode$1,
27409
- getNodeFromInstance: getNodeFromInstance$1,
27410
- getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode$1,
27411
- updateFiberProps: updateFiberProps$1
27412
- });
27413
-
27414
- function getParent(inst) {
27415
- do {
27416
- inst = inst['return'];
27417
- // TODO: If this is a HostRoot we might want to bail out.
27418
- // That is depending on if we want nested subtrees (layers) to bubble
27419
- // events to their parent. We could also go through parentNode on the
27420
- // host node but that wouldn't work for React Native and doesn't let us
27421
- // do the portal feature.
27422
- } while (inst && inst.tag !== HostComponent);
27423
- if (inst) {
27424
- return inst;
27425
- }
27426
- return null;
27427
- }
27428
-
27429
- /**
27430
- * Return the lowest common ancestor of A and B, or null if they are in
27431
- * different trees.
27432
- */
27433
- function getLowestCommonAncestor(instA, instB) {
27434
- var depthA = 0;
27435
- for (var tempA = instA; tempA; tempA = getParent(tempA)) {
27436
- depthA++;
27437
- }
27438
- var depthB = 0;
27439
- for (var tempB = instB; tempB; tempB = getParent(tempB)) {
27440
- depthB++;
27441
- }
27442
-
27443
- // If A is deeper, crawl up.
27444
- while (depthA - depthB > 0) {
27445
- instA = getParent(instA);
27446
- depthA--;
27447
- }
27448
-
27449
- // If B is deeper, crawl up.
27450
- while (depthB - depthA > 0) {
27451
- instB = getParent(instB);
27452
- depthB--;
27453
- }
27454
-
27455
- // Walk in lockstep until we find a match.
27456
- var depth = depthA;
27457
- while (depth--) {
27458
- if (instA === instB || instA === instB.alternate) {
27459
- return instA;
27460
- }
27461
- instA = getParent(instA);
27462
- instB = getParent(instB);
27463
- }
27464
- return null;
27465
- }
27466
-
27467
- /**
27468
- * Return if A is an ancestor of B.
27469
- */
27470
-
27471
-
27472
- /**
27473
- * Return the parent instance of the passed-in instance.
27474
- */
27475
- function getParentInstance(inst) {
27476
- return getParent(inst);
27477
- }
27478
-
27479
- /**
27480
- * Simulates the traversal of a two-phase, capture/bubble event dispatch.
27481
- */
27482
- function traverseTwoPhase(inst, fn, arg) {
27483
- var path = [];
27484
- while (inst) {
27485
- path.push(inst);
27486
- inst = getParent(inst);
27487
- }
27488
- var i;
27489
- for (i = path.length; i-- > 0;) {
27490
- fn(path[i], 'captured', arg);
27491
- }
27492
- for (i = 0; i < path.length; i++) {
27493
- fn(path[i], 'bubbled', arg);
27494
- }
27495
- }
27496
-
27497
- /**
27498
- * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
27499
- * should would receive a `mouseEnter` or `mouseLeave` event.
27500
- *
27501
- * Does not invoke the callback on the nearest common ancestor because nothing
27502
- * "entered" or "left" that element.
27503
- */
27504
- function traverseEnterLeave(from, to, fn, argFrom, argTo) {
27505
- var common = from && to ? getLowestCommonAncestor(from, to) : null;
27506
- var pathFrom = [];
27507
- while (true) {
27508
- if (!from) {
27509
- break;
27510
- }
27511
- if (from === common) {
27512
- break;
27513
- }
27514
- var alternate = from.alternate;
27515
- if (alternate !== null && alternate === common) {
27516
- break;
27517
- }
27518
- pathFrom.push(from);
27519
- from = getParent(from);
27520
- }
27521
- var pathTo = [];
27522
- while (true) {
27523
- if (!to) {
27524
- break;
27525
- }
27526
- if (to === common) {
27527
- break;
27528
- }
27529
- var _alternate = to.alternate;
27530
- if (_alternate !== null && _alternate === common) {
27531
- break;
27532
- }
27533
- pathTo.push(to);
27534
- to = getParent(to);
27535
- }
27536
- for (var i = 0; i < pathFrom.length; i++) {
27537
- fn(pathFrom[i], 'bubbled', argFrom);
27538
- }
27539
- for (var _i = pathTo.length; _i-- > 0;) {
27540
- fn(pathTo[_i], 'captured', argTo);
27541
- }
27542
- }
27543
-
27544
- /**
27545
- * Some event types have a notion of different registration names for different
27546
- * "phases" of propagation. This finds listeners by a given phase.
27547
- */
27548
- function listenerAtPhase(inst, event, propagationPhase) {
27549
- var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
27550
- return getListener(inst, registrationName);
27551
- }
27552
-
27553
- /**
27554
- * A small set of propagation patterns, each of which will accept a small amount
27555
- * of information, and generate a set of "dispatch ready event objects" - which
27556
- * are sets of events that have already been annotated with a set of dispatched
27557
- * listener functions/ids. The API is designed this way to discourage these
27558
- * propagation strategies from actually executing the dispatches, since we
27559
- * always want to collect the entire set of dispatches before executing even a
27560
- * single one.
27561
- */
27562
-
27563
- /**
27564
- * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
27565
- * here, allows us to not have to bind or create functions for each event.
27566
- * Mutating the event's members allows us to not have to create a wrapping
27567
- * "dispatch" object that pairs the event with the listener.
27568
- */
27569
- function accumulateDirectionalDispatches(inst, phase, event) {
27570
- {
27571
- warning(inst, 'Dispatching inst must not be null');
27572
- }
27573
- var listener = listenerAtPhase(inst, event, phase);
27574
- if (listener) {
27575
- event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
27576
- event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
27577
- }
27578
- }
27579
-
27580
- /**
27581
- * Collect dispatches (must be entirely collected before dispatching - see unit
27582
- * tests). Lazily allocate the array to conserve memory. We must loop through
27583
- * each event and perform the traversal for each one. We cannot perform a
27584
- * single traversal for the entire collection of events because each event may
27585
- * have a different target.
27586
- */
27587
- function accumulateTwoPhaseDispatchesSingle(event) {
27588
- if (event && event.dispatchConfig.phasedRegistrationNames) {
27589
- traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
27590
- }
27591
- }
27592
-
27593
- /**
27594
- * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID.
27595
- */
27596
- function accumulateTwoPhaseDispatchesSingleSkipTarget(event) {
27597
- if (event && event.dispatchConfig.phasedRegistrationNames) {
27598
- var targetInst = event._targetInst;
27599
- var parentInst = targetInst ? getParentInstance(targetInst) : null;
27600
- traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event);
27601
- }
27602
- }
27603
-
27604
- /**
27605
- * Accumulates without regard to direction, does not look for phased
27606
- * registration names. Same as `accumulateDirectDispatchesSingle` but without
27607
- * requiring that the `dispatchMarker` be the same as the dispatched ID.
27608
- */
27609
- function accumulateDispatches(inst, ignoredDirection, event) {
27610
- if (inst && event && event.dispatchConfig.registrationName) {
27611
- var registrationName = event.dispatchConfig.registrationName;
27612
- var listener = getListener(inst, registrationName);
27613
- if (listener) {
27614
- event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
27615
- event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
27616
- }
27617
- }
27618
- }
27619
-
27620
- /**
27621
- * Accumulates dispatches on an `SyntheticEvent`, but only for the
27622
- * `dispatchMarker`.
27623
- * @param {SyntheticEvent} event
27624
- */
27625
- function accumulateDirectDispatchesSingle(event) {
27626
- if (event && event.dispatchConfig.registrationName) {
27627
- accumulateDispatches(event._targetInst, null, event);
27628
- }
27629
- }
27630
-
27631
- function accumulateTwoPhaseDispatches(events) {
27632
- forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
27633
- }
27634
-
27635
- function accumulateTwoPhaseDispatchesSkipTarget(events) {
27636
- forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget);
27637
- }
27638
-
27639
- function accumulateEnterLeaveDispatches(leave, enter, from, to) {
27640
- traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
27641
- }
27642
-
27643
- function accumulateDirectDispatches(events) {
27644
- forEachAccumulated(events, accumulateDirectDispatchesSingle);
27645
- }
27646
-
27647
- var EventPropagators = Object.freeze({
27648
- accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches,
27649
- accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget,
27650
- accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches,
27651
- accumulateDirectDispatches: accumulateDirectDispatches
27652
- });
27653
-
27654
- var contentKey = null;
27655
-
27656
- /**
27657
- * Gets the key used to access text content on a DOM node.
27658
- *
27659
- * @return {?string} Key used to access text content.
27660
- * @internal
27661
- */
27662
- function getTextContentAccessor() {
27663
- if (!contentKey && ExecutionEnvironment.canUseDOM) {
27664
- // Prefer textContent to innerText because many browsers support both but
27665
- // SVG <text> elements don't support innerText even when <div> does.
27666
- contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText';
27667
- }
27668
- return contentKey;
27669
- }
27670
-
27671
- /**
27672
- * This helper object stores information about text content of a target node,
27673
- * allowing comparison of content before and after a given event.
27674
- *
27675
- * Identify the node where selection currently begins, then observe
27676
- * both its text content and its current position in the DOM. Since the
27677
- * browser may natively replace the target node during composition, we can
27678
- * use its position to find its replacement.
27679
- *
27680
- *
27681
- */
27682
- var compositionState = {
27683
- _root: null,
27684
- _startText: null,
27685
- _fallbackText: null
27686
- };
27687
-
27688
- function initialize(nativeEventTarget) {
27689
- compositionState._root = nativeEventTarget;
27690
- compositionState._startText = getText();
27691
- return true;
27692
- }
27693
-
27694
- function reset() {
27695
- compositionState._root = null;
27696
- compositionState._startText = null;
27697
- compositionState._fallbackText = null;
27698
- }
27699
-
27700
- function getData() {
27701
- if (compositionState._fallbackText) {
27702
- return compositionState._fallbackText;
27703
- }
27704
-
27705
- var start;
27706
- var startValue = compositionState._startText;
27707
- var startLength = startValue.length;
27708
- var end;
27709
- var endValue = getText();
27710
- var endLength = endValue.length;
27711
-
27712
- for (start = 0; start < startLength; start++) {
27713
- if (startValue[start] !== endValue[start]) {
27714
- break;
27715
- }
27716
- }
27717
-
27718
- var minEnd = startLength - start;
27719
- for (end = 1; end <= minEnd; end++) {
27720
- if (startValue[startLength - end] !== endValue[endLength - end]) {
27721
- break;
27722
- }
27723
- }
27724
-
27725
- var sliceTail = end > 1 ? 1 - end : undefined;
27726
- compositionState._fallbackText = endValue.slice(start, sliceTail);
27727
- return compositionState._fallbackText;
27728
- }
27729
-
27730
- function getText() {
27731
- if ('value' in compositionState._root) {
27732
- return compositionState._root.value;
27733
- }
27734
- return compositionState._root[getTextContentAccessor()];
27735
- }
27736
-
27737
- /* eslint valid-typeof: 0 */
27738
-
27739
- var didWarnForAddedNewProperty = false;
27740
- var isProxySupported = typeof Proxy === 'function';
27741
- var EVENT_POOL_SIZE = 10;
27742
-
27743
- var shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances'];
27744
-
27745
- /**
27746
- * @interface Event
27747
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
27748
- */
27749
- var EventInterface = {
27750
- type: null,
27751
- target: null,
27752
- // currentTarget is set when dispatching; no use in copying it here
27753
- currentTarget: emptyFunction.thatReturnsNull,
27754
- eventPhase: null,
27755
- bubbles: null,
27756
- cancelable: null,
27757
- timeStamp: function (event) {
27758
- return event.timeStamp || Date.now();
27759
- },
27760
- defaultPrevented: null,
27761
- isTrusted: null
27762
- };
27763
-
27764
- /**
27765
- * Synthetic events are dispatched by event plugins, typically in response to a
27766
- * top-level event delegation handler.
27767
- *
27768
- * These systems should generally use pooling to reduce the frequency of garbage
27769
- * collection. The system should check `isPersistent` to determine whether the
27770
- * event should be released into the pool after being dispatched. Users that
27771
- * need a persisted event should invoke `persist`.
27772
- *
27773
- * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
27774
- * normalizing browser quirks. Subclasses do not necessarily have to implement a
27775
- * DOM interface; custom application-specific events can also subclass this.
27776
- *
27777
- * @param {object} dispatchConfig Configuration used to dispatch this event.
27778
- * @param {*} targetInst Marker identifying the event target.
27779
- * @param {object} nativeEvent Native browser event.
27780
- * @param {DOMEventTarget} nativeEventTarget Target node.
27781
- */
27782
- function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
27783
- {
27784
- // these have a getter/setter for warnings
27785
- delete this.nativeEvent;
27786
- delete this.preventDefault;
27787
- delete this.stopPropagation;
27788
- }
27789
-
27790
- this.dispatchConfig = dispatchConfig;
27791
- this._targetInst = targetInst;
27792
- this.nativeEvent = nativeEvent;
27793
-
27794
- var Interface = this.constructor.Interface;
27795
- for (var propName in Interface) {
27796
- if (!Interface.hasOwnProperty(propName)) {
27797
- continue;
27798
- }
27799
- {
27800
- delete this[propName]; // this has a getter/setter for warnings
27801
- }
27802
- var normalize = Interface[propName];
27803
- if (normalize) {
27804
- this[propName] = normalize(nativeEvent);
27805
- } else {
27806
- if (propName === 'target') {
27807
- this.target = nativeEventTarget;
27808
- } else {
27809
- this[propName] = nativeEvent[propName];
27810
- }
27811
- }
27812
- }
27813
-
27814
- var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
27815
- if (defaultPrevented) {
27816
- this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
27817
- } else {
27818
- this.isDefaultPrevented = emptyFunction.thatReturnsFalse;
27819
- }
27820
- this.isPropagationStopped = emptyFunction.thatReturnsFalse;
27821
- return this;
27822
- }
27823
-
27824
- _assign(SyntheticEvent.prototype, {
27825
- preventDefault: function () {
27826
- this.defaultPrevented = true;
27827
- var event = this.nativeEvent;
27828
- if (!event) {
27829
- return;
27830
- }
27831
-
27832
- if (event.preventDefault) {
27833
- event.preventDefault();
27834
- } else if (typeof event.returnValue !== 'unknown') {
27835
- event.returnValue = false;
27836
- }
27837
- this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
27838
- },
27839
-
27840
- stopPropagation: function () {
27841
- var event = this.nativeEvent;
27842
- if (!event) {
27843
- return;
27844
- }
27845
-
27846
- if (event.stopPropagation) {
27847
- event.stopPropagation();
27848
- } else if (typeof event.cancelBubble !== 'unknown') {
27849
- // The ChangeEventPlugin registers a "propertychange" event for
27850
- // IE. This event does not support bubbling or cancelling, and
27851
- // any references to cancelBubble throw "Member not found". A
27852
- // typeof check of "unknown" circumvents this issue (and is also
27853
- // IE specific).
27854
- event.cancelBubble = true;
27855
- }
27856
-
27857
- this.isPropagationStopped = emptyFunction.thatReturnsTrue;
27858
- },
27859
-
27860
- /**
27861
- * We release all dispatched `SyntheticEvent`s after each event loop, adding
27862
- * them back into the pool. This allows a way to hold onto a reference that
27863
- * won't be added back into the pool.
27864
- */
27865
- persist: function () {
27866
- this.isPersistent = emptyFunction.thatReturnsTrue;
27867
- },
27868
-
27869
- /**
27870
- * Checks if this event should be released back into the pool.
27871
- *
27872
- * @return {boolean} True if this should not be released, false otherwise.
27873
- */
27874
- isPersistent: emptyFunction.thatReturnsFalse,
27875
-
27876
- /**
27877
- * `PooledClass` looks for `destructor` on each instance it releases.
27878
- */
27879
- destructor: function () {
27880
- var Interface = this.constructor.Interface;
27881
- for (var propName in Interface) {
27882
- {
27883
- Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
27884
- }
27885
- }
27886
- for (var i = 0; i < shouldBeReleasedProperties.length; i++) {
27887
- this[shouldBeReleasedProperties[i]] = null;
27888
- }
27889
- {
27890
- Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
27891
- Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction));
27892
- Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));
27893
- }
27894
- }
27895
- });
27896
-
27897
- SyntheticEvent.Interface = EventInterface;
27898
-
27899
- /**
27900
- * Helper to reduce boilerplate when creating subclasses.
27901
- *
27902
- * @param {function} Class
27903
- * @param {?object} Interface
27904
- */
27905
- SyntheticEvent.augmentClass = function (Class, Interface) {
27906
- var Super = this;
27907
-
27908
- var E = function () {};
27909
- E.prototype = Super.prototype;
27910
- var prototype = new E();
27911
-
27912
- _assign(prototype, Class.prototype);
27913
- Class.prototype = prototype;
27914
- Class.prototype.constructor = Class;
27915
-
27916
- Class.Interface = _assign({}, Super.Interface, Interface);
27917
- Class.augmentClass = Super.augmentClass;
27918
- addEventPoolingTo(Class);
27919
- };
27920
-
27921
- /** Proxying after everything set on SyntheticEvent
27922
- * to resolve Proxy issue on some WebKit browsers
27923
- * in which some Event properties are set to undefined (GH#10010)
27924
- */
27925
- {
27926
- if (isProxySupported) {
27927
- /*eslint-disable no-func-assign */
27928
- SyntheticEvent = new Proxy(SyntheticEvent, {
27929
- construct: function (target, args) {
27930
- return this.apply(target, Object.create(target.prototype), args);
27931
- },
27932
- apply: function (constructor, that, args) {
27933
- return new Proxy(constructor.apply(that, args), {
27934
- set: function (target, prop, value) {
27935
- if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
27936
- warning(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.');
27937
- didWarnForAddedNewProperty = true;
27938
- }
27939
- target[prop] = value;
27940
- return true;
27941
- }
27942
- });
27943
- }
27944
- });
27945
- /*eslint-enable no-func-assign */
27946
- }
27947
- }
27948
-
27949
- addEventPoolingTo(SyntheticEvent);
27950
-
27951
- /**
27952
- * Helper to nullify syntheticEvent instance properties when destructing
27953
- *
27954
- * @param {String} propName
27955
- * @param {?object} getVal
27956
- * @return {object} defineProperty object
27957
- */
27958
- function getPooledWarningPropertyDefinition(propName, getVal) {
27959
- var isFunction = typeof getVal === 'function';
27960
- return {
27961
- configurable: true,
27962
- set: set,
27963
- get: get
27964
- };
27965
-
27966
- function set(val) {
27967
- var action = isFunction ? 'setting the method' : 'setting the property';
27968
- warn(action, 'This is effectively a no-op');
27969
- return val;
27970
- }
27971
-
27972
- function get() {
27973
- var action = isFunction ? 'accessing the method' : 'accessing the property';
27974
- var result = isFunction ? 'This is a no-op function' : 'This is set to null';
27975
- warn(action, result);
27976
- return getVal;
27977
- }
27978
-
27979
- function warn(action, result) {
27980
- var warningCondition = false;
27981
- warning(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result);
27982
- }
27983
- }
27984
-
27985
- function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
27986
- var EventConstructor = this;
27987
- if (EventConstructor.eventPool.length) {
27988
- var instance = EventConstructor.eventPool.pop();
27989
- EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
27990
- return instance;
27991
- }
27992
- return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
27993
- }
27994
-
27995
- function releasePooledEvent(event) {
27996
- var EventConstructor = this;
27997
- !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;
27998
- event.destructor();
27999
- if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
28000
- EventConstructor.eventPool.push(event);
28001
- }
28002
- }
28003
-
28004
- function addEventPoolingTo(EventConstructor) {
28005
- EventConstructor.eventPool = [];
28006
- EventConstructor.getPooled = getPooledEvent;
28007
- EventConstructor.release = releasePooledEvent;
28008
- }
28009
-
28010
- var SyntheticEvent$1 = SyntheticEvent;
28011
-
28012
- /**
28013
- * @interface Event
28014
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
28015
- */
28016
- var CompositionEventInterface = {
28017
- data: null
28018
- };
28019
-
28020
- /**
28021
- * @param {object} dispatchConfig Configuration used to dispatch this event.
28022
- * @param {string} dispatchMarker Marker identifying the event target.
28023
- * @param {object} nativeEvent Native browser event.
28024
- * @extends {SyntheticEvent}
28025
- */
28026
- function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
28027
- return SyntheticEvent$1.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
28028
- }
28029
-
28030
- SyntheticEvent$1.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);
28031
-
28032
- /**
28033
- * @interface Event
28034
- * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
28035
- * /#events-inputevents
28036
- */
28037
- var InputEventInterface = {
28038
- data: null
28039
- };
28040
-
28041
- /**
28042
- * @param {object} dispatchConfig Configuration used to dispatch this event.
28043
- * @param {string} dispatchMarker Marker identifying the event target.
28044
- * @param {object} nativeEvent Native browser event.
28045
- * @extends {SyntheticEvent}
28046
- */
28047
- function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
28048
- return SyntheticEvent$1.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
28049
- }
28050
-
28051
- SyntheticEvent$1.augmentClass(SyntheticInputEvent, InputEventInterface);
28052
-
28053
- var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
28054
- var START_KEYCODE = 229;
28055
-
28056
- var canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window;
28057
-
28058
- var documentMode = null;
28059
- if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) {
28060
- documentMode = document.documentMode;
28061
- }
28062
-
28063
- // Webkit offers a very useful `textInput` event that can be used to
28064
- // directly represent `beforeInput`. The IE `textinput` event is not as
28065
- // useful, so we don't use it.
28066
- var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto();
28067
-
28068
- // In IE9+, we have access to composition events, but the data supplied
28069
- // by the native compositionend event may be incorrect. Japanese ideographic
28070
- // spaces, for instance (\u3000) are not recorded correctly.
28071
- var useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
28072
-
28073
- /**
28074
- * Opera <= 12 includes TextEvent in window, but does not fire
28075
- * text input events. Rely on keypress instead.
28076
- */
28077
- function isPresto() {
28078
- var opera = window.opera;
28079
- return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;
28080
- }
28081
-
28082
- var SPACEBAR_CODE = 32;
28083
- var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
28084
-
28085
- // Events and their corresponding property names.
28086
- var eventTypes = {
28087
- beforeInput: {
28088
- phasedRegistrationNames: {
28089
- bubbled: 'onBeforeInput',
28090
- captured: 'onBeforeInputCapture'
28091
- },
28092
- dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste']
28093
- },
28094
- compositionEnd: {
28095
- phasedRegistrationNames: {
28096
- bubbled: 'onCompositionEnd',
28097
- captured: 'onCompositionEndCapture'
28098
- },
28099
- dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
28100
- },
28101
- compositionStart: {
28102
- phasedRegistrationNames: {
28103
- bubbled: 'onCompositionStart',
28104
- captured: 'onCompositionStartCapture'
28105
- },
28106
- dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
28107
- },
28108
- compositionUpdate: {
28109
- phasedRegistrationNames: {
28110
- bubbled: 'onCompositionUpdate',
28111
- captured: 'onCompositionUpdateCapture'
28112
- },
28113
- dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
28114
- }
28115
- };
28116
-
28117
- // Track whether we've ever handled a keypress on the space key.
28118
- var hasSpaceKeypress = false;
28119
-
28120
- /**
28121
- * Return whether a native keypress event is assumed to be a command.
28122
- * This is required because Firefox fires `keypress` events for key commands
28123
- * (cut, copy, select-all, etc.) even though no character is inserted.
28124
- */
28125
- function isKeypressCommand(nativeEvent) {
28126
- return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
28127
- // ctrlKey && altKey is equivalent to AltGr, and is not a command.
28128
- !(nativeEvent.ctrlKey && nativeEvent.altKey);
28129
- }
28130
-
28131
- /**
28132
- * Translate native top level events into event types.
28133
- *
28134
- * @param {string} topLevelType
28135
- * @return {object}
28136
- */
28137
- function getCompositionEventType(topLevelType) {
28138
- switch (topLevelType) {
28139
- case 'topCompositionStart':
28140
- return eventTypes.compositionStart;
28141
- case 'topCompositionEnd':
28142
- return eventTypes.compositionEnd;
28143
- case 'topCompositionUpdate':
28144
- return eventTypes.compositionUpdate;
28145
- }
28146
- }
28147
-
28148
- /**
28149
- * Does our fallback best-guess model think this event signifies that
28150
- * composition has begun?
28151
- *
28152
- * @param {string} topLevelType
28153
- * @param {object} nativeEvent
28154
- * @return {boolean}
28155
- */
28156
- function isFallbackCompositionStart(topLevelType, nativeEvent) {
28157
- return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE;
28158
- }
28159
-
28160
- /**
28161
- * Does our fallback mode think that this event is the end of composition?
28162
- *
28163
- * @param {string} topLevelType
28164
- * @param {object} nativeEvent
28165
- * @return {boolean}
28166
- */
28167
- function isFallbackCompositionEnd(topLevelType, nativeEvent) {
28168
- switch (topLevelType) {
28169
- case 'topKeyUp':
28170
- // Command keys insert or clear IME input.
28171
- return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
28172
- case 'topKeyDown':
28173
- // Expect IME keyCode on each keydown. If we get any other
28174
- // code we must have exited earlier.
28175
- return nativeEvent.keyCode !== START_KEYCODE;
28176
- case 'topKeyPress':
28177
- case 'topMouseDown':
28178
- case 'topBlur':
28179
- // Events are not possible without cancelling IME.
28180
- return true;
28181
- default:
28182
- return false;
28183
- }
28184
- }
28185
-
28186
- /**
28187
- * Google Input Tools provides composition data via a CustomEvent,
28188
- * with the `data` property populated in the `detail` object. If this
28189
- * is available on the event object, use it. If not, this is a plain
28190
- * composition event and we have nothing special to extract.
28191
- *
28192
- * @param {object} nativeEvent
28193
- * @return {?string}
28194
- */
28195
- function getDataFromCustomEvent(nativeEvent) {
28196
- var detail = nativeEvent.detail;
28197
- if (typeof detail === 'object' && 'data' in detail) {
28198
- return detail.data;
28199
- }
28200
- return null;
28201
- }
28202
-
28203
- // Track the current IME composition status, if any.
28204
- var isComposing = false;
28205
-
28206
- /**
28207
- * @return {?object} A SyntheticCompositionEvent.
28208
- */
28209
- function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
28210
- var eventType;
28211
- var fallbackData;
28212
-
28213
- if (canUseCompositionEvent) {
28214
- eventType = getCompositionEventType(topLevelType);
28215
- } else if (!isComposing) {
28216
- if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
28217
- eventType = eventTypes.compositionStart;
28218
- }
28219
- } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
28220
- eventType = eventTypes.compositionEnd;
28221
- }
28222
-
28223
- if (!eventType) {
28224
- return null;
28225
- }
28226
-
28227
- if (useFallbackCompositionData) {
28228
- // The current composition is stored statically and must not be
28229
- // overwritten while composition continues.
28230
- if (!isComposing && eventType === eventTypes.compositionStart) {
28231
- isComposing = initialize(nativeEventTarget);
28232
- } else if (eventType === eventTypes.compositionEnd) {
28233
- if (isComposing) {
28234
- fallbackData = getData();
28235
- }
28236
- }
28237
- }
28238
-
28239
- var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
28240
-
28241
- if (fallbackData) {
28242
- // Inject data generated from fallback path into the synthetic event.
28243
- // This matches the property of native CompositionEventInterface.
28244
- event.data = fallbackData;
28245
- } else {
28246
- var customData = getDataFromCustomEvent(nativeEvent);
28247
- if (customData !== null) {
28248
- event.data = customData;
28249
- }
28250
- }
28251
-
28252
- accumulateTwoPhaseDispatches(event);
28253
- return event;
28254
- }
28255
-
28256
- /**
28257
- * @param {TopLevelTypes} topLevelType Record from `BrowserEventConstants`.
28258
- * @param {object} nativeEvent Native browser event.
28259
- * @return {?string} The string corresponding to this `beforeInput` event.
28260
- */
28261
- function getNativeBeforeInputChars(topLevelType, nativeEvent) {
28262
- switch (topLevelType) {
28263
- case 'topCompositionEnd':
28264
- return getDataFromCustomEvent(nativeEvent);
28265
- case 'topKeyPress':
28266
- /**
28267
- * If native `textInput` events are available, our goal is to make
28268
- * use of them. However, there is a special case: the spacebar key.
28269
- * In Webkit, preventing default on a spacebar `textInput` event
28270
- * cancels character insertion, but it *also* causes the browser
28271
- * to fall back to its default spacebar behavior of scrolling the
28272
- * page.
28273
- *
28274
- * Tracking at:
28275
- * https://code.google.com/p/chromium/issues/detail?id=355103
28276
- *
28277
- * To avoid this issue, use the keypress event as if no `textInput`
28278
- * event is available.
28279
- */
28280
- var which = nativeEvent.which;
28281
- if (which !== SPACEBAR_CODE) {
28282
- return null;
28283
- }
28284
-
28285
- hasSpaceKeypress = true;
28286
- return SPACEBAR_CHAR;
28287
-
28288
- case 'topTextInput':
28289
- // Record the characters to be added to the DOM.
28290
- var chars = nativeEvent.data;
28291
-
28292
- // If it's a spacebar character, assume that we have already handled
28293
- // it at the keypress level and bail immediately. Android Chrome
28294
- // doesn't give us keycodes, so we need to blacklist it.
28295
- if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
28296
- return null;
28297
- }
28298
-
28299
- return chars;
28300
-
28301
- default:
28302
- // For other native event types, do nothing.
28303
- return null;
28304
- }
28305
- }
28306
-
28307
- /**
28308
- * For browsers that do not provide the `textInput` event, extract the
28309
- * appropriate string to use for SyntheticInputEvent.
28310
- *
28311
- * @param {string} topLevelType Record from `BrowserEventConstants`.
28312
- * @param {object} nativeEvent Native browser event.
28313
- * @return {?string} The fallback string for this `beforeInput` event.
28314
- */
28315
- function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
28316
- // If we are currently composing (IME) and using a fallback to do so,
28317
- // try to extract the composed characters from the fallback object.
28318
- // If composition event is available, we extract a string only at
28319
- // compositionevent, otherwise extract it at fallback events.
28320
- if (isComposing) {
28321
- if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
28322
- var chars = getData();
28323
- reset();
28324
- isComposing = false;
28325
- return chars;
28326
- }
28327
- return null;
28328
- }
28329
-
28330
- switch (topLevelType) {
28331
- case 'topPaste':
28332
- // If a paste event occurs after a keypress, throw out the input
28333
- // chars. Paste events should not lead to BeforeInput events.
28334
- return null;
28335
- case 'topKeyPress':
28336
- /**
28337
- * As of v27, Firefox may fire keypress events even when no character
28338
- * will be inserted. A few possibilities:
28339
- *
28340
- * - `which` is `0`. Arrow keys, Esc key, etc.
28341
- *
28342
- * - `which` is the pressed key code, but no char is available.
28343
- * Ex: 'AltGr + d` in Polish. There is no modified character for
28344
- * this key combination and no character is inserted into the
28345
- * document, but FF fires the keypress for char code `100` anyway.
28346
- * No `input` event will occur.
28347
- *
28348
- * - `which` is the pressed key code, but a command combination is
28349
- * being used. Ex: `Cmd+C`. No character is inserted, and no
28350
- * `input` event will occur.
28351
- */
28352
- if (!isKeypressCommand(nativeEvent)) {
28353
- // IE fires the `keypress` event when a user types an emoji via
28354
- // Touch keyboard of Windows. In such a case, the `char` property
28355
- // holds an emoji character like `\uD83D\uDE0A`. Because its length
28356
- // is 2, the property `which` does not represent an emoji correctly.
28357
- // In such a case, we directly return the `char` property instead of
28358
- // using `which`.
28359
- if (nativeEvent.char && nativeEvent.char.length > 1) {
28360
- return nativeEvent.char;
28361
- } else if (nativeEvent.which) {
28362
- return String.fromCharCode(nativeEvent.which);
28363
- }
28364
- }
28365
- return null;
28366
- case 'topCompositionEnd':
28367
- return useFallbackCompositionData ? null : nativeEvent.data;
28368
- default:
28369
- return null;
28370
- }
28371
- }
28372
-
28373
- /**
28374
- * Extract a SyntheticInputEvent for `beforeInput`, based on either native
28375
- * `textInput` or fallback behavior.
28376
- *
28377
- * @return {?object} A SyntheticInputEvent.
28378
- */
28379
- function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
28380
- var chars;
28381
-
28382
- if (canUseTextInputEvent) {
28383
- chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
28384
- } else {
28385
- chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
28386
- }
28387
-
28388
- // If no characters are being inserted, no BeforeInput event should
28389
- // be fired.
28390
- if (!chars) {
28391
- return null;
28392
- }
28393
-
28394
- var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
28395
-
28396
- event.data = chars;
28397
- accumulateTwoPhaseDispatches(event);
28398
- return event;
28399
- }
28400
-
28401
- /**
28402
- * Create an `onBeforeInput` event to match
28403
- * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
28404
- *
28405
- * This event plugin is based on the native `textInput` event
28406
- * available in Chrome, Safari, Opera, and IE. This event fires after
28407
- * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
28408
- *
28409
- * `beforeInput` is spec'd but not implemented in any browsers, and
28410
- * the `input` event does not provide any useful information about what has
28411
- * actually been added, contrary to the spec. Thus, `textInput` is the best
28412
- * available event to identify the characters that have actually been inserted
28413
- * into the target node.
28414
- *
28415
- * This plugin is also responsible for emitting `composition` events, thus
28416
- * allowing us to share composition fallback code for both `beforeInput` and
28417
- * `composition` event types.
28418
- */
28419
- var BeforeInputEventPlugin = {
28420
- eventTypes: eventTypes,
28421
-
28422
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
28423
- return [extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget)];
28424
- }
28425
- };
28426
-
28427
- // Use to restore controlled state after a change event has fired.
28428
-
28429
- var fiberHostComponent = null;
28430
-
28431
- var ReactControlledComponentInjection = {
28432
- injectFiberControlledHostComponent: function (hostComponentImpl) {
28433
- // The fiber implementation doesn't use dynamic dispatch so we need to
28434
- // inject the implementation.
28435
- fiberHostComponent = hostComponentImpl;
28436
- }
28437
- };
28438
-
28439
- var restoreTarget = null;
28440
- var restoreQueue = null;
28441
-
28442
- function restoreStateOfTarget(target) {
28443
- // We perform this translation at the end of the event loop so that we
28444
- // always receive the correct fiber here
28445
- var internalInstance = getInstanceFromNode(target);
28446
- if (!internalInstance) {
28447
- // Unmounted
28448
- return;
28449
- }
28450
- !(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function') ? invariant(false, 'Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;
28451
- var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
28452
- fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props);
28453
- }
28454
-
28455
- var injection$3 = ReactControlledComponentInjection;
28456
-
28457
- function enqueueStateRestore(target) {
28458
- if (restoreTarget) {
28459
- if (restoreQueue) {
28460
- restoreQueue.push(target);
28461
- } else {
28462
- restoreQueue = [target];
28463
- }
28464
- } else {
28465
- restoreTarget = target;
28466
- }
28467
- }
28468
-
28469
- function restoreStateIfNeeded() {
28470
- if (!restoreTarget) {
28471
- return;
28472
- }
28473
- var target = restoreTarget;
28474
- var queuedTargets = restoreQueue;
28475
- restoreTarget = null;
28476
- restoreQueue = null;
28477
-
28478
- restoreStateOfTarget(target);
28479
- if (queuedTargets) {
28480
- for (var i = 0; i < queuedTargets.length; i++) {
28481
- restoreStateOfTarget(queuedTargets[i]);
28482
- }
28483
- }
28484
- }
28485
-
28486
- var ReactControlledComponent = Object.freeze({
28487
- injection: injection$3,
28488
- enqueueStateRestore: enqueueStateRestore,
28489
- restoreStateIfNeeded: restoreStateIfNeeded
28490
- });
28491
-
28492
- // Used as a way to call batchedUpdates when we don't have a reference to
28493
- // the renderer. Such as when we're dispatching events or if third party
28494
- // libraries need to call batchedUpdates. Eventually, this API will go away when
28495
- // everything is batched by default. We'll then have a similar API to opt-out of
28496
- // scheduled work and instead do synchronous work.
28497
-
28498
- // Defaults
28499
- var fiberBatchedUpdates = function (fn, bookkeeping) {
28500
- return fn(bookkeeping);
28501
- };
28502
-
28503
- var isNestingBatched = false;
28504
- function batchedUpdates(fn, bookkeeping) {
28505
- if (isNestingBatched) {
28506
- // If we are currently inside another batch, we need to wait until it
28507
- // fully completes before restoring state. Therefore, we add the target to
28508
- // a queue of work.
28509
- return fiberBatchedUpdates(fn, bookkeeping);
28510
- }
28511
- isNestingBatched = true;
28512
- try {
28513
- return fiberBatchedUpdates(fn, bookkeeping);
28514
- } finally {
28515
- // Here we wait until all updates have propagated, which is important
28516
- // when using controlled components within layers:
28517
- // https://github.com/facebook/react/issues/1698
28518
- // Then we restore state of any controlled component.
28519
- isNestingBatched = false;
28520
- restoreStateIfNeeded();
28521
- }
28522
- }
28523
-
28524
- var ReactGenericBatchingInjection = {
28525
- injectFiberBatchedUpdates: function (_batchedUpdates) {
28526
- fiberBatchedUpdates = _batchedUpdates;
28527
- }
28528
- };
28529
-
28530
- var injection$4 = ReactGenericBatchingInjection;
28531
-
28532
- /**
28533
- * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
28534
- */
28535
- var supportedInputTypes = {
28536
- color: true,
28537
- date: true,
28538
- datetime: true,
28539
- 'datetime-local': true,
28540
- email: true,
28541
- month: true,
28542
- number: true,
28543
- password: true,
28544
- range: true,
28545
- search: true,
28546
- tel: true,
28547
- text: true,
28548
- time: true,
28549
- url: true,
28550
- week: true
28551
- };
28552
-
28553
- function isTextInputElement(elem) {
28554
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
28555
-
28556
- if (nodeName === 'input') {
28557
- return !!supportedInputTypes[elem.type];
28558
- }
28559
-
28560
- if (nodeName === 'textarea') {
28561
- return true;
28562
- }
28563
-
28564
- return false;
28565
- }
28566
-
28567
- /**
28568
- * HTML nodeType values that represent the type of the node
28569
- */
28570
-
28571
- var ELEMENT_NODE = 1;
28572
- var TEXT_NODE = 3;
28573
- var COMMENT_NODE = 8;
28574
- var DOCUMENT_NODE = 9;
28575
- var DOCUMENT_FRAGMENT_NODE = 11;
28576
-
28577
- /**
28578
- * Gets the target node from a native browser event by accounting for
28579
- * inconsistencies in browser DOM APIs.
28580
- *
28581
- * @param {object} nativeEvent Native browser event.
28582
- * @return {DOMEventTarget} Target node.
28583
- */
28584
- function getEventTarget(nativeEvent) {
28585
- var target = nativeEvent.target || nativeEvent.srcElement || window;
28586
-
28587
- // Normalize SVG <use> element events #4963
28588
- if (target.correspondingUseElement) {
28589
- target = target.correspondingUseElement;
28590
- }
28591
-
28592
- // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
28593
- // @see http://www.quirksmode.org/js/events_properties.html
28594
- return target.nodeType === TEXT_NODE ? target.parentNode : target;
28595
- }
28596
-
28597
- var useHasFeature;
28598
- if (ExecutionEnvironment.canUseDOM) {
28599
- useHasFeature = document.implementation && document.implementation.hasFeature &&
28600
- // always returns true in newer browsers as per the standard.
28601
- // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
28602
- document.implementation.hasFeature('', '') !== true;
28603
- }
28604
-
28605
- /**
28606
- * Checks if an event is supported in the current execution environment.
28607
- *
28608
- * NOTE: This will not work correctly for non-generic events such as `change`,
28609
- * `reset`, `load`, `error`, and `select`.
28610
- *
28611
- * Borrows from Modernizr.
28612
- *
28613
- * @param {string} eventNameSuffix Event name, e.g. "click".
28614
- * @param {?boolean} capture Check if the capture phase is supported.
28615
- * @return {boolean} True if the event is supported.
28616
- * @internal
28617
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
28618
- */
28619
- function isEventSupported(eventNameSuffix, capture) {
28620
- if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) {
28621
- return false;
28622
- }
28623
-
28624
- var eventName = 'on' + eventNameSuffix;
28625
- var isSupported = eventName in document;
28626
-
28627
- if (!isSupported) {
28628
- var element = document.createElement('div');
28629
- element.setAttribute(eventName, 'return;');
28630
- isSupported = typeof element[eventName] === 'function';
28631
- }
28632
-
28633
- if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
28634
- // This is the only way to test support for the `wheel` event in IE9+.
28635
- isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
28636
- }
28637
-
28638
- return isSupported;
28639
- }
28640
-
28641
- function isCheckable(elem) {
28642
- var type = elem.type;
28643
- var nodeName = elem.nodeName;
28644
- return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
28645
- }
28646
-
28647
- function getTracker(node) {
28648
- return node._valueTracker;
28649
- }
28650
-
28651
- function detachTracker(node) {
28652
- node._valueTracker = null;
28653
- }
28654
-
28655
- function getValueFromNode(node) {
28656
- var value = '';
28657
- if (!node) {
28658
- return value;
28659
- }
28660
-
28661
- if (isCheckable(node)) {
28662
- value = node.checked ? 'true' : 'false';
28663
- } else {
28664
- value = node.value;
28665
- }
28666
-
28667
- return value;
28668
- }
28669
-
28670
- function trackValueOnNode(node) {
28671
- var valueField = isCheckable(node) ? 'checked' : 'value';
28672
- var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
28673
-
28674
- var currentValue = '' + node[valueField];
28675
-
28676
- // if someone has already defined a value or Safari, then bail
28677
- // and don't track value will cause over reporting of changes,
28678
- // but it's better then a hard failure
28679
- // (needed for certain tests that spyOn input values and Safari)
28680
- if (node.hasOwnProperty(valueField) || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
28681
- return;
28682
- }
28683
-
28684
- Object.defineProperty(node, valueField, {
28685
- enumerable: descriptor.enumerable,
28686
- configurable: true,
28687
- get: function () {
28688
- return descriptor.get.call(this);
28689
- },
28690
- set: function (value) {
28691
- currentValue = '' + value;
28692
- descriptor.set.call(this, value);
28693
- }
28694
- });
28695
-
28696
- var tracker = {
28697
- getValue: function () {
28698
- return currentValue;
28699
- },
28700
- setValue: function (value) {
28701
- currentValue = '' + value;
28702
- },
28703
- stopTracking: function () {
28704
- detachTracker(node);
28705
- delete node[valueField];
28706
- }
28707
- };
28708
- return tracker;
28709
- }
28710
-
28711
- function track(node) {
28712
- if (getTracker(node)) {
28713
- return;
28714
- }
28715
-
28716
- // TODO: Once it's just Fiber we can move this to node._wrapperState
28717
- node._valueTracker = trackValueOnNode(node);
28718
- }
28719
-
28720
- function updateValueIfChanged(node) {
28721
- if (!node) {
28722
- return false;
28723
- }
28724
-
28725
- var tracker = getTracker(node);
28726
- // if there is no tracker at this point it's unlikely
28727
- // that trying again will succeed
28728
- if (!tracker) {
28729
- return true;
28730
- }
28731
-
28732
- var lastValue = tracker.getValue();
28733
- var nextValue = getValueFromNode(node);
28734
- if (nextValue !== lastValue) {
28735
- tracker.setValue(nextValue);
28736
- return true;
28737
- }
28738
- return false;
28739
- }
28740
-
28741
- var eventTypes$1 = {
28742
- change: {
28743
- phasedRegistrationNames: {
28744
- bubbled: 'onChange',
28745
- captured: 'onChangeCapture'
28746
- },
28747
- dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange']
28748
- }
28749
- };
28750
-
28751
- function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
28752
- var event = SyntheticEvent$1.getPooled(eventTypes$1.change, inst, nativeEvent, target);
28753
- event.type = 'change';
28754
- // Flag this event loop as needing state restore.
28755
- enqueueStateRestore(target);
28756
- accumulateTwoPhaseDispatches(event);
28757
- return event;
28758
- }
28759
- /**
28760
- * For IE shims
28761
- */
28762
- var activeElement = null;
28763
- var activeElementInst = null;
28764
-
28765
- /**
28766
- * SECTION: handle `change` event
28767
- */
28768
- function shouldUseChangeEvent(elem) {
28769
- var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
28770
- return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
28771
- }
28772
-
28773
- function manualDispatchChangeEvent(nativeEvent) {
28774
- var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
28775
-
28776
- // If change and propertychange bubbled, we'd just bind to it like all the
28777
- // other events and have it go through ReactBrowserEventEmitter. Since it
28778
- // doesn't, we manually listen for the events and so we have to enqueue and
28779
- // process the abstract event manually.
28780
- //
28781
- // Batching is necessary here in order to ensure that all event handlers run
28782
- // before the next rerender (including event handlers attached to ancestor
28783
- // elements instead of directly on the input). Without this, controlled
28784
- // components don't work properly in conjunction with event bubbling because
28785
- // the component is rerendered and the value reverted before all the event
28786
- // handlers can run. See https://github.com/facebook/react/issues/708.
28787
- batchedUpdates(runEventInBatch, event);
28788
- }
28789
-
28790
- function runEventInBatch(event) {
28791
- enqueueEvents(event);
28792
- processEventQueue(false);
28793
- }
28794
-
28795
- function getInstIfValueChanged(targetInst) {
28796
- var targetNode = getNodeFromInstance$1(targetInst);
28797
- if (updateValueIfChanged(targetNode)) {
28798
- return targetInst;
28799
- }
28800
- }
28801
-
28802
- function getTargetInstForChangeEvent(topLevelType, targetInst) {
28803
- if (topLevelType === 'topChange') {
28804
- return targetInst;
28805
- }
28806
- }
28807
-
28808
- /**
28809
- * SECTION: handle `input` event
28810
- */
28811
- var isInputEventSupported = false;
28812
- if (ExecutionEnvironment.canUseDOM) {
28813
- // IE9 claims to support the input event but fails to trigger it when
28814
- // deleting text, so we ignore its input events.
28815
- isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
28816
- }
28817
-
28818
- /**
28819
- * (For IE <=9) Starts tracking propertychange events on the passed-in element
28820
- * and override the value property so that we can distinguish user events from
28821
- * value changes in JS.
28822
- */
28823
- function startWatchingForValueChange(target, targetInst) {
28824
- activeElement = target;
28825
- activeElementInst = targetInst;
28826
- activeElement.attachEvent('onpropertychange', handlePropertyChange);
28827
- }
28828
-
28829
- /**
28830
- * (For IE <=9) Removes the event listeners from the currently-tracked element,
28831
- * if any exists.
28832
- */
28833
- function stopWatchingForValueChange() {
28834
- if (!activeElement) {
28835
- return;
28836
- }
28837
- activeElement.detachEvent('onpropertychange', handlePropertyChange);
28838
- activeElement = null;
28839
- activeElementInst = null;
28840
- }
28841
-
28842
- /**
28843
- * (For IE <=9) Handles a propertychange event, sending a `change` event if
28844
- * the value of the active element has changed.
28845
- */
28846
- function handlePropertyChange(nativeEvent) {
28847
- if (nativeEvent.propertyName !== 'value') {
28848
- return;
28849
- }
28850
- if (getInstIfValueChanged(activeElementInst)) {
28851
- manualDispatchChangeEvent(nativeEvent);
28852
- }
28853
- }
28854
-
28855
- function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
28856
- if (topLevelType === 'topFocus') {
28857
- // In IE9, propertychange fires for most input events but is buggy and
28858
- // doesn't fire when text is deleted, but conveniently, selectionchange
28859
- // appears to fire in all of the remaining cases so we catch those and
28860
- // forward the event if the value has changed
28861
- // In either case, we don't want to call the event handler if the value
28862
- // is changed from JS so we redefine a setter for `.value` that updates
28863
- // our activeElementValue variable, allowing us to ignore those changes
28864
- //
28865
- // stopWatching() should be a noop here but we call it just in case we
28866
- // missed a blur event somehow.
28867
- stopWatchingForValueChange();
28868
- startWatchingForValueChange(target, targetInst);
28869
- } else if (topLevelType === 'topBlur') {
28870
- stopWatchingForValueChange();
28871
- }
28872
- }
28873
-
28874
- // For IE8 and IE9.
28875
- function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
28876
- if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') {
28877
- // On the selectionchange event, the target is just document which isn't
28878
- // helpful for us so just check activeElement instead.
28879
- //
28880
- // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
28881
- // propertychange on the first input event after setting `value` from a
28882
- // script and fires only keydown, keypress, keyup. Catching keyup usually
28883
- // gets it and catching keydown lets us fire an event for the first
28884
- // keystroke if user does a key repeat (it'll be a little delayed: right
28885
- // before the second keystroke). Other input methods (e.g., paste) seem to
28886
- // fire selectionchange normally.
28887
- return getInstIfValueChanged(activeElementInst);
28888
- }
28889
- }
28890
-
28891
- /**
28892
- * SECTION: handle `click` event
28893
- */
28894
- function shouldUseClickEvent(elem) {
28895
- // Use the `click` event to detect changes to checkbox and radio inputs.
28896
- // This approach works across all browsers, whereas `change` does not fire
28897
- // until `blur` in IE8.
28898
- var nodeName = elem.nodeName;
28899
- return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
28900
- }
28901
-
28902
- function getTargetInstForClickEvent(topLevelType, targetInst) {
28903
- if (topLevelType === 'topClick') {
28904
- return getInstIfValueChanged(targetInst);
28905
- }
28906
- }
28907
-
28908
- function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
28909
- if (topLevelType === 'topInput' || topLevelType === 'topChange') {
28910
- return getInstIfValueChanged(targetInst);
28911
- }
28912
- }
28913
-
28914
- function handleControlledInputBlur(inst, node) {
28915
- // TODO: In IE, inst is occasionally null. Why?
28916
- if (inst == null) {
28917
- return;
28918
- }
28919
-
28920
- // Fiber and ReactDOM keep wrapper state in separate places
28921
- var state = inst._wrapperState || node._wrapperState;
28922
-
28923
- if (!state || !state.controlled || node.type !== 'number') {
28924
- return;
28925
- }
28926
-
28927
- // If controlled, assign the value attribute to the current value on blur
28928
- var value = '' + node.value;
28929
- if (node.getAttribute('value') !== value) {
28930
- node.setAttribute('value', value);
28931
- }
28932
- }
28933
-
28934
- /**
28935
- * This plugin creates an `onChange` event that normalizes change events
28936
- * across form elements. This event fires at a time when it's possible to
28937
- * change the element's value without seeing a flicker.
28938
- *
28939
- * Supported elements are:
28940
- * - input (see `isTextInputElement`)
28941
- * - textarea
28942
- * - select
28943
- */
28944
- var ChangeEventPlugin = {
28945
- eventTypes: eventTypes$1,
28946
-
28947
- _isInputEventSupported: isInputEventSupported,
28948
-
28949
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
28950
- var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
28951
-
28952
- var getTargetInstFunc, handleEventFunc;
28953
- if (shouldUseChangeEvent(targetNode)) {
28954
- getTargetInstFunc = getTargetInstForChangeEvent;
28955
- } else if (isTextInputElement(targetNode)) {
28956
- if (isInputEventSupported) {
28957
- getTargetInstFunc = getTargetInstForInputOrChangeEvent;
28958
- } else {
28959
- getTargetInstFunc = getTargetInstForInputEventPolyfill;
28960
- handleEventFunc = handleEventsForInputEventPolyfill;
28961
- }
28962
- } else if (shouldUseClickEvent(targetNode)) {
28963
- getTargetInstFunc = getTargetInstForClickEvent;
28964
- }
28965
-
28966
- if (getTargetInstFunc) {
28967
- var inst = getTargetInstFunc(topLevelType, targetInst);
28968
- if (inst) {
28969
- var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
28970
- return event;
28971
- }
28972
- }
28973
-
28974
- if (handleEventFunc) {
28975
- handleEventFunc(topLevelType, targetNode, targetInst);
28976
- }
28977
-
28978
- // When blurring, set the value attribute for number inputs
28979
- if (topLevelType === 'topBlur') {
28980
- handleControlledInputBlur(targetInst, targetNode);
28981
- }
28982
- }
28983
- };
28984
-
28985
- /**
28986
- * Module that is injectable into `EventPluginHub`, that specifies a
28987
- * deterministic ordering of `EventPlugin`s. A convenient way to reason about
28988
- * plugins, without having to package every one of them. This is better than
28989
- * having plugins be ordered in the same order that they are injected because
28990
- * that ordering would be influenced by the packaging order.
28991
- * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
28992
- * preventing default on events is convenient in `SimpleEventPlugin` handlers.
28993
- */
28994
- var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
28995
-
28996
- /**
28997
- * @interface UIEvent
28998
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
28999
- */
29000
- var UIEventInterface = {
29001
- view: null,
29002
- detail: null
29003
- };
29004
-
29005
- /**
29006
- * @param {object} dispatchConfig Configuration used to dispatch this event.
29007
- * @param {string} dispatchMarker Marker identifying the event target.
29008
- * @param {object} nativeEvent Native browser event.
29009
- * @extends {SyntheticEvent}
29010
- */
29011
- function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
29012
- return SyntheticEvent$1.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
29013
- }
29014
-
29015
- SyntheticEvent$1.augmentClass(SyntheticUIEvent, UIEventInterface);
29016
-
29017
- /**
29018
- * Translation from modifier key to the associated property in the event.
29019
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
29020
- */
29021
-
29022
- var modifierKeyToProp = {
29023
- Alt: 'altKey',
29024
- Control: 'ctrlKey',
29025
- Meta: 'metaKey',
29026
- Shift: 'shiftKey'
29027
- };
29028
-
29029
- // IE8 does not implement getModifierState so we simply map it to the only
29030
- // modifier keys exposed by the event itself, does not support Lock-keys.
29031
- // Currently, all major browsers except Chrome seems to support Lock-keys.
29032
- function modifierStateGetter(keyArg) {
29033
- var syntheticEvent = this;
29034
- var nativeEvent = syntheticEvent.nativeEvent;
29035
- if (nativeEvent.getModifierState) {
29036
- return nativeEvent.getModifierState(keyArg);
29037
- }
29038
- var keyProp = modifierKeyToProp[keyArg];
29039
- return keyProp ? !!nativeEvent[keyProp] : false;
29040
- }
29041
-
29042
- function getEventModifierState(nativeEvent) {
29043
- return modifierStateGetter;
29044
- }
29045
-
29046
- /**
29047
- * @interface MouseEvent
29048
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
29049
- */
29050
- var MouseEventInterface = {
29051
- screenX: null,
29052
- screenY: null,
29053
- clientX: null,
29054
- clientY: null,
29055
- pageX: null,
29056
- pageY: null,
29057
- ctrlKey: null,
29058
- shiftKey: null,
29059
- altKey: null,
29060
- metaKey: null,
29061
- getModifierState: getEventModifierState,
29062
- button: null,
29063
- buttons: null,
29064
- relatedTarget: function (event) {
29065
- return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
29066
- }
29067
- };
29068
-
29069
- /**
29070
- * @param {object} dispatchConfig Configuration used to dispatch this event.
29071
- * @param {string} dispatchMarker Marker identifying the event target.
29072
- * @param {object} nativeEvent Native browser event.
29073
- * @extends {SyntheticUIEvent}
29074
- */
29075
- function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
29076
- return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
29077
- }
29078
-
29079
- SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface);
29080
-
29081
- var eventTypes$2 = {
29082
- mouseEnter: {
29083
- registrationName: 'onMouseEnter',
29084
- dependencies: ['topMouseOut', 'topMouseOver']
29085
- },
29086
- mouseLeave: {
29087
- registrationName: 'onMouseLeave',
29088
- dependencies: ['topMouseOut', 'topMouseOver']
29089
- }
29090
- };
29091
-
29092
- var EnterLeaveEventPlugin = {
29093
- eventTypes: eventTypes$2,
29094
-
29095
- /**
29096
- * For almost every interaction we care about, there will be both a top-level
29097
- * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
29098
- * we do not extract duplicate events. However, moving the mouse into the
29099
- * browser from outside will not fire a `mouseout` event. In this case, we use
29100
- * the `mouseover` top-level event.
29101
- */
29102
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
29103
- if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
29104
- return null;
29105
- }
29106
- if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') {
29107
- // Must not be a mouse in or mouse out - ignoring.
29108
- return null;
29109
- }
29110
-
29111
- var win;
29112
- if (nativeEventTarget.window === nativeEventTarget) {
29113
- // `nativeEventTarget` is probably a window object.
29114
- win = nativeEventTarget;
29115
- } else {
29116
- // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
29117
- var doc = nativeEventTarget.ownerDocument;
29118
- if (doc) {
29119
- win = doc.defaultView || doc.parentWindow;
29120
- } else {
29121
- win = window;
29122
- }
29123
- }
29124
-
29125
- var from;
29126
- var to;
29127
- if (topLevelType === 'topMouseOut') {
29128
- from = targetInst;
29129
- var related = nativeEvent.relatedTarget || nativeEvent.toElement;
29130
- to = related ? getClosestInstanceFromNode(related) : null;
29131
- } else {
29132
- // Moving to a node from outside the window.
29133
- from = null;
29134
- to = targetInst;
29135
- }
29136
-
29137
- if (from === to) {
29138
- // Nothing pertains to our managed components.
29139
- return null;
29140
- }
29141
-
29142
- var fromNode = from == null ? win : getNodeFromInstance$1(from);
29143
- var toNode = to == null ? win : getNodeFromInstance$1(to);
29144
-
29145
- var leave = SyntheticMouseEvent.getPooled(eventTypes$2.mouseLeave, from, nativeEvent, nativeEventTarget);
29146
- leave.type = 'mouseleave';
29147
- leave.target = fromNode;
29148
- leave.relatedTarget = toNode;
29149
-
29150
- var enter = SyntheticMouseEvent.getPooled(eventTypes$2.mouseEnter, to, nativeEvent, nativeEventTarget);
29151
- enter.type = 'mouseenter';
29152
- enter.target = toNode;
29153
- enter.relatedTarget = fromNode;
29154
-
29155
- accumulateEnterLeaveDispatches(leave, enter, from, to);
29156
-
29157
- return [leave, enter];
29158
- }
29159
- };
29160
-
29161
- /**
29162
- * `ReactInstanceMap` maintains a mapping from a public facing stateful
29163
- * instance (key) and the internal representation (value). This allows public
29164
- * methods to accept the user facing instance as an argument and map them back
29165
- * to internal methods.
29166
- *
29167
- * Note that this module is currently shared and assumed to be stateless.
29168
- * If this becomes an actual Map, that will break.
29169
- */
29170
-
29171
- /**
29172
- * This API should be called `delete` but we'd have to make sure to always
29173
- * transform these to strings for IE support. When this transform is fully
29174
- * supported we can rename it.
29175
- */
29176
-
29177
-
29178
- function get(key) {
29179
- return key._reactInternalFiber;
29180
- }
29181
-
29182
- function has(key) {
29183
- return key._reactInternalFiber !== undefined;
29184
- }
29185
-
29186
- function set(key, value) {
29187
- key._reactInternalFiber = value;
29188
- }
29189
-
29190
- var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
29191
-
29192
- var ReactCurrentOwner = ReactInternals.ReactCurrentOwner;
29193
- var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame;
29194
-
29195
- function getComponentName(fiber) {
29196
- var type = fiber.type;
29197
-
29198
- if (typeof type === 'string') {
29199
- return type;
29200
- }
29201
- if (typeof type === 'function') {
29202
- return type.displayName || type.name;
29203
- }
29204
- return null;
29205
- }
29206
-
29207
- // Don't change these two values:
29208
- var NoEffect = 0; // 0b00000000
29209
- var PerformedWork = 1; // 0b00000001
29210
-
29211
- // You can change the rest (and add more).
29212
- var Placement = 2; // 0b00000010
29213
- var Update = 4; // 0b00000100
29214
- var PlacementAndUpdate = 6; // 0b00000110
29215
- var Deletion = 8; // 0b00001000
29216
- var ContentReset = 16; // 0b00010000
29217
- var Callback = 32; // 0b00100000
29218
- var Err = 64; // 0b01000000
29219
- var Ref = 128; // 0b10000000
29220
-
29221
- var MOUNTING = 1;
29222
- var MOUNTED = 2;
29223
- var UNMOUNTED = 3;
29224
-
29225
- function isFiberMountedImpl(fiber) {
29226
- var node = fiber;
29227
- if (!fiber.alternate) {
29228
- // If there is no alternate, this might be a new tree that isn't inserted
29229
- // yet. If it is, then it will have a pending insertion effect on it.
29230
- if ((node.effectTag & Placement) !== NoEffect) {
29231
- return MOUNTING;
29232
- }
29233
- while (node['return']) {
29234
- node = node['return'];
29235
- if ((node.effectTag & Placement) !== NoEffect) {
29236
- return MOUNTING;
29237
- }
29238
- }
29239
- } else {
29240
- while (node['return']) {
29241
- node = node['return'];
29242
- }
29243
- }
29244
- if (node.tag === HostRoot) {
29245
- // TODO: Check if this was a nested HostRoot when used with
29246
- // renderContainerIntoSubtree.
29247
- return MOUNTED;
29248
- }
29249
- // If we didn't hit the root, that means that we're in an disconnected tree
29250
- // that has been unmounted.
29251
- return UNMOUNTED;
29252
- }
29253
-
29254
- function isFiberMounted(fiber) {
29255
- return isFiberMountedImpl(fiber) === MOUNTED;
29256
- }
29257
-
29258
- function isMounted(component) {
29259
- {
29260
- var owner = ReactCurrentOwner.current;
29261
- if (owner !== null && owner.tag === ClassComponent) {
29262
- var ownerFiber = owner;
29263
- var instance = ownerFiber.stateNode;
29264
- warning(instance._warnedAboutRefsInRender, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber) || 'A component');
29265
- instance._warnedAboutRefsInRender = true;
29266
- }
29267
- }
29268
-
29269
- var fiber = get(component);
29270
- if (!fiber) {
29271
- return false;
29272
- }
29273
- return isFiberMountedImpl(fiber) === MOUNTED;
29274
- }
29275
-
29276
- function assertIsMounted(fiber) {
29277
- !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
29278
- }
29279
-
29280
- function findCurrentFiberUsingSlowPath(fiber) {
29281
- var alternate = fiber.alternate;
29282
- if (!alternate) {
29283
- // If there is no alternate, then we only need to check if it is mounted.
29284
- var state = isFiberMountedImpl(fiber);
29285
- !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
29286
- if (state === MOUNTING) {
29287
- return null;
29288
- }
29289
- return fiber;
29290
- }
29291
- // If we have two possible branches, we'll walk backwards up to the root
29292
- // to see what path the root points to. On the way we may hit one of the
29293
- // special cases and we'll deal with them.
29294
- var a = fiber;
29295
- var b = alternate;
29296
- while (true) {
29297
- var parentA = a['return'];
29298
- var parentB = parentA ? parentA.alternate : null;
29299
- if (!parentA || !parentB) {
29300
- // We're at the root.
29301
- break;
29302
- }
29303
-
29304
- // If both copies of the parent fiber point to the same child, we can
29305
- // assume that the child is current. This happens when we bailout on low
29306
- // priority: the bailed out fiber's child reuses the current child.
29307
- if (parentA.child === parentB.child) {
29308
- var child = parentA.child;
29309
- while (child) {
29310
- if (child === a) {
29311
- // We've determined that A is the current branch.
29312
- assertIsMounted(parentA);
29313
- return fiber;
29314
- }
29315
- if (child === b) {
29316
- // We've determined that B is the current branch.
29317
- assertIsMounted(parentA);
29318
- return alternate;
29319
- }
29320
- child = child.sibling;
29321
- }
29322
- // We should never have an alternate for any mounting node. So the only
29323
- // way this could possibly happen is if this was unmounted, if at all.
29324
- invariant(false, 'Unable to find node on an unmounted component.');
29325
- }
29326
-
29327
- if (a['return'] !== b['return']) {
29328
- // The return pointer of A and the return pointer of B point to different
29329
- // fibers. We assume that return pointers never criss-cross, so A must
29330
- // belong to the child set of A.return, and B must belong to the child
29331
- // set of B.return.
29332
- a = parentA;
29333
- b = parentB;
29334
- } else {
29335
- // The return pointers point to the same fiber. We'll have to use the
29336
- // default, slow path: scan the child sets of each parent alternate to see
29337
- // which child belongs to which set.
29338
- //
29339
- // Search parent A's child set
29340
- var didFindChild = false;
29341
- var _child = parentA.child;
29342
- while (_child) {
29343
- if (_child === a) {
29344
- didFindChild = true;
29345
- a = parentA;
29346
- b = parentB;
29347
- break;
29348
- }
29349
- if (_child === b) {
29350
- didFindChild = true;
29351
- b = parentA;
29352
- a = parentB;
29353
- break;
29354
- }
29355
- _child = _child.sibling;
29356
- }
29357
- if (!didFindChild) {
29358
- // Search parent B's child set
29359
- _child = parentB.child;
29360
- while (_child) {
29361
- if (_child === a) {
29362
- didFindChild = true;
29363
- a = parentB;
29364
- b = parentA;
29365
- break;
29366
- }
29367
- if (_child === b) {
29368
- didFindChild = true;
29369
- b = parentB;
29370
- a = parentA;
29371
- break;
29372
- }
29373
- _child = _child.sibling;
29374
- }
29375
- !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0;
29376
- }
29377
- }
29378
-
29379
- !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0;
29380
- }
29381
- // If the root is not a host container, we're in a disconnected tree. I.e.
29382
- // unmounted.
29383
- !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
29384
- if (a.stateNode.current === a) {
29385
- // We've determined that A is the current branch.
29386
- return fiber;
29387
- }
29388
- // Otherwise B has to be current branch.
29389
- return alternate;
29390
- }
29391
-
29392
- function findCurrentHostFiber(parent) {
29393
- var currentParent = findCurrentFiberUsingSlowPath(parent);
29394
- if (!currentParent) {
29395
- return null;
29396
- }
29397
-
29398
- // Next we'll drill down this component to find the first HostComponent/Text.
29399
- var node = currentParent;
29400
- while (true) {
29401
- if (node.tag === HostComponent || node.tag === HostText) {
29402
- return node;
29403
- } else if (node.child) {
29404
- node.child['return'] = node;
29405
- node = node.child;
29406
- continue;
29407
- }
29408
- if (node === currentParent) {
29409
- return null;
29410
- }
29411
- while (!node.sibling) {
29412
- if (!node['return'] || node['return'] === currentParent) {
29413
- return null;
29414
- }
29415
- node = node['return'];
29416
- }
29417
- node.sibling['return'] = node['return'];
29418
- node = node.sibling;
29419
- }
29420
- // Flow needs the return null here, but ESLint complains about it.
29421
- // eslint-disable-next-line no-unreachable
29422
- return null;
29423
- }
29424
-
29425
- function findCurrentHostFiberWithNoPortals(parent) {
29426
- var currentParent = findCurrentFiberUsingSlowPath(parent);
29427
- if (!currentParent) {
29428
- return null;
29429
- }
29430
-
29431
- // Next we'll drill down this component to find the first HostComponent/Text.
29432
- var node = currentParent;
29433
- while (true) {
29434
- if (node.tag === HostComponent || node.tag === HostText) {
29435
- return node;
29436
- } else if (node.child && node.tag !== HostPortal) {
29437
- node.child['return'] = node;
29438
- node = node.child;
29439
- continue;
29440
- }
29441
- if (node === currentParent) {
29442
- return null;
29443
- }
29444
- while (!node.sibling) {
29445
- if (!node['return'] || node['return'] === currentParent) {
29446
- return null;
29447
- }
29448
- node = node['return'];
29449
- }
29450
- node.sibling['return'] = node['return'];
29451
- node = node.sibling;
29452
- }
29453
- // Flow needs the return null here, but ESLint complains about it.
29454
- // eslint-disable-next-line no-unreachable
29455
- return null;
29456
- }
29457
-
29458
- var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
29459
- var callbackBookkeepingPool = [];
29460
-
29461
- /**
29462
- * Find the deepest React component completely containing the root of the
29463
- * passed-in instance (for use when entire React trees are nested within each
29464
- * other). If React trees are not nested, returns null.
29465
- */
29466
- function findRootContainerNode(inst) {
29467
- // TODO: It may be a good idea to cache this to prevent unnecessary DOM
29468
- // traversal, but caching is difficult to do correctly without using a
29469
- // mutation observer to listen for all DOM changes.
29470
- while (inst['return']) {
29471
- inst = inst['return'];
29472
- }
29473
- if (inst.tag !== HostRoot) {
29474
- // This can happen if we're in a detached tree.
29475
- return null;
29476
- }
29477
- return inst.stateNode.containerInfo;
29478
- }
29479
-
29480
- // Used to store ancestor hierarchy in top level callback
29481
- function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
29482
- if (callbackBookkeepingPool.length) {
29483
- var instance = callbackBookkeepingPool.pop();
29484
- instance.topLevelType = topLevelType;
29485
- instance.nativeEvent = nativeEvent;
29486
- instance.targetInst = targetInst;
29487
- return instance;
29488
- }
29489
- return {
29490
- topLevelType: topLevelType,
29491
- nativeEvent: nativeEvent,
29492
- targetInst: targetInst,
29493
- ancestors: []
29494
- };
29495
- }
29496
-
29497
- function releaseTopLevelCallbackBookKeeping(instance) {
29498
- instance.topLevelType = null;
29499
- instance.nativeEvent = null;
29500
- instance.targetInst = null;
29501
- instance.ancestors.length = 0;
29502
- if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
29503
- callbackBookkeepingPool.push(instance);
29504
- }
29505
- }
29506
-
29507
- function handleTopLevelImpl(bookKeeping) {
29508
- var targetInst = bookKeeping.targetInst;
29509
-
29510
- // Loop through the hierarchy, in case there's any nested components.
29511
- // It's important that we build the array of ancestors before calling any
29512
- // event handlers, because event handlers can modify the DOM, leading to
29513
- // inconsistencies with ReactMount's node cache. See #1105.
29514
- var ancestor = targetInst;
29515
- do {
29516
- if (!ancestor) {
29517
- bookKeeping.ancestors.push(ancestor);
29518
- break;
29519
- }
29520
- var root = findRootContainerNode(ancestor);
29521
- if (!root) {
29522
- break;
29523
- }
29524
- bookKeeping.ancestors.push(ancestor);
29525
- ancestor = getClosestInstanceFromNode(root);
29526
- } while (ancestor);
29527
-
29528
- for (var i = 0; i < bookKeeping.ancestors.length; i++) {
29529
- targetInst = bookKeeping.ancestors[i];
29530
- _handleTopLevel(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
29531
- }
29532
- }
29533
-
29534
- // TODO: can we stop exporting these?
29535
- var _enabled = true;
29536
- var _handleTopLevel = void 0;
29537
-
29538
- function setHandleTopLevel(handleTopLevel) {
29539
- _handleTopLevel = handleTopLevel;
29540
- }
29541
-
29542
- function setEnabled(enabled) {
29543
- _enabled = !!enabled;
29544
- }
29545
-
29546
- function isEnabled() {
29547
- return _enabled;
29548
- }
29549
-
29550
- /**
29551
- * Traps top-level events by using event bubbling.
29552
- *
29553
- * @param {string} topLevelType Record from `BrowserEventConstants`.
29554
- * @param {string} handlerBaseName Event name (e.g. "click").
29555
- * @param {object} element Element on which to attach listener.
29556
- * @return {?object} An object with a remove function which will forcefully
29557
- * remove the listener.
29558
- * @internal
29559
- */
29560
- function trapBubbledEvent(topLevelType, handlerBaseName, element) {
29561
- if (!element) {
29562
- return null;
29563
- }
29564
- return EventListener.listen(element, handlerBaseName, dispatchEvent.bind(null, topLevelType));
29565
- }
29566
-
29567
- /**
29568
- * Traps a top-level event by using event capturing.
29569
- *
29570
- * @param {string} topLevelType Record from `BrowserEventConstants`.
29571
- * @param {string} handlerBaseName Event name (e.g. "click").
29572
- * @param {object} element Element on which to attach listener.
29573
- * @return {?object} An object with a remove function which will forcefully
29574
- * remove the listener.
29575
- * @internal
29576
- */
29577
- function trapCapturedEvent(topLevelType, handlerBaseName, element) {
29578
- if (!element) {
29579
- return null;
29580
- }
29581
- return EventListener.capture(element, handlerBaseName, dispatchEvent.bind(null, topLevelType));
29582
- }
29583
-
29584
- function dispatchEvent(topLevelType, nativeEvent) {
29585
- if (!_enabled) {
29586
- return;
29587
- }
29588
-
29589
- var nativeEventTarget = getEventTarget(nativeEvent);
29590
- var targetInst = getClosestInstanceFromNode(nativeEventTarget);
29591
- if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
29592
- // If we get an event (ex: img onload) before committing that
29593
- // component's mount, ignore it for now (that is, treat it as if it was an
29594
- // event on a non-React tree). We might also consider queueing events and
29595
- // dispatching them after the mount.
29596
- targetInst = null;
29597
- }
29598
-
29599
- var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
29600
-
29601
- try {
29602
- // Event queue being processed in the same cycle allows
29603
- // `preventDefault`.
29604
- batchedUpdates(handleTopLevelImpl, bookKeeping);
29605
- } finally {
29606
- releaseTopLevelCallbackBookKeeping(bookKeeping);
29607
- }
29608
- }
29609
-
29610
- var ReactDOMEventListener = Object.freeze({
29611
- get _enabled () { return _enabled; },
29612
- get _handleTopLevel () { return _handleTopLevel; },
29613
- setHandleTopLevel: setHandleTopLevel,
29614
- setEnabled: setEnabled,
29615
- isEnabled: isEnabled,
29616
- trapBubbledEvent: trapBubbledEvent,
29617
- trapCapturedEvent: trapCapturedEvent,
29618
- dispatchEvent: dispatchEvent
29619
- });
29620
-
29621
- /**
29622
- * Generate a mapping of standard vendor prefixes using the defined style property and event name.
29623
- *
29624
- * @param {string} styleProp
29625
- * @param {string} eventName
29626
- * @returns {object}
29627
- */
29628
- function makePrefixMap(styleProp, eventName) {
29629
- var prefixes = {};
29630
-
29631
- prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
29632
- prefixes['Webkit' + styleProp] = 'webkit' + eventName;
29633
- prefixes['Moz' + styleProp] = 'moz' + eventName;
29634
- prefixes['ms' + styleProp] = 'MS' + eventName;
29635
- prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();
29636
-
29637
- return prefixes;
29638
- }
29639
-
29640
- /**
29641
- * A list of event names to a configurable list of vendor prefixes.
29642
- */
29643
- var vendorPrefixes = {
29644
- animationend: makePrefixMap('Animation', 'AnimationEnd'),
29645
- animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
29646
- animationstart: makePrefixMap('Animation', 'AnimationStart'),
29647
- transitionend: makePrefixMap('Transition', 'TransitionEnd')
29648
- };
29649
-
29650
- /**
29651
- * Event names that have already been detected and prefixed (if applicable).
29652
- */
29653
- var prefixedEventNames = {};
29654
-
29655
- /**
29656
- * Element to check for prefixes on.
29657
- */
29658
- var style = {};
29659
-
29660
- /**
29661
- * Bootstrap if a DOM exists.
29662
- */
29663
- if (ExecutionEnvironment.canUseDOM) {
29664
- style = document.createElement('div').style;
29665
-
29666
- // On some platforms, in particular some releases of Android 4.x,
29667
- // the un-prefixed "animation" and "transition" properties are defined on the
29668
- // style object but the events that fire will still be prefixed, so we need
29669
- // to check if the un-prefixed events are usable, and if not remove them from the map.
29670
- if (!('AnimationEvent' in window)) {
29671
- delete vendorPrefixes.animationend.animation;
29672
- delete vendorPrefixes.animationiteration.animation;
29673
- delete vendorPrefixes.animationstart.animation;
29674
- }
29675
-
29676
- // Same as above
29677
- if (!('TransitionEvent' in window)) {
29678
- delete vendorPrefixes.transitionend.transition;
29679
- }
29680
- }
29681
-
29682
- /**
29683
- * Attempts to determine the correct vendor prefixed event name.
29684
- *
29685
- * @param {string} eventName
29686
- * @returns {string}
29687
- */
29688
- function getVendorPrefixedEventName(eventName) {
29689
- if (prefixedEventNames[eventName]) {
29690
- return prefixedEventNames[eventName];
29691
- } else if (!vendorPrefixes[eventName]) {
29692
- return eventName;
29693
- }
29694
-
29695
- var prefixMap = vendorPrefixes[eventName];
29696
-
29697
- for (var styleProp in prefixMap) {
29698
- if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
29699
- return prefixedEventNames[eventName] = prefixMap[styleProp];
29700
- }
29701
- }
29702
-
29703
- return '';
29704
- }
29705
-
29706
- /**
29707
- * Types of raw signals from the browser caught at the top level.
29708
- *
29709
- * For events like 'submit' which don't consistently bubble (which we
29710
- * trap at a lower node than `document`), binding at `document` would
29711
- * cause duplicate events so we don't include them here.
29712
- */
29713
- var topLevelTypes$1 = {
29714
- topAbort: 'abort',
29715
- topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend',
29716
- topAnimationIteration: getVendorPrefixedEventName('animationiteration') || 'animationiteration',
29717
- topAnimationStart: getVendorPrefixedEventName('animationstart') || 'animationstart',
29718
- topBlur: 'blur',
29719
- topCancel: 'cancel',
29720
- topCanPlay: 'canplay',
29721
- topCanPlayThrough: 'canplaythrough',
29722
- topChange: 'change',
29723
- topClick: 'click',
29724
- topClose: 'close',
29725
- topCompositionEnd: 'compositionend',
29726
- topCompositionStart: 'compositionstart',
29727
- topCompositionUpdate: 'compositionupdate',
29728
- topContextMenu: 'contextmenu',
29729
- topCopy: 'copy',
29730
- topCut: 'cut',
29731
- topDoubleClick: 'dblclick',
29732
- topDrag: 'drag',
29733
- topDragEnd: 'dragend',
29734
- topDragEnter: 'dragenter',
29735
- topDragExit: 'dragexit',
29736
- topDragLeave: 'dragleave',
29737
- topDragOver: 'dragover',
29738
- topDragStart: 'dragstart',
29739
- topDrop: 'drop',
29740
- topDurationChange: 'durationchange',
29741
- topEmptied: 'emptied',
29742
- topEncrypted: 'encrypted',
29743
- topEnded: 'ended',
29744
- topError: 'error',
29745
- topFocus: 'focus',
29746
- topInput: 'input',
29747
- topKeyDown: 'keydown',
29748
- topKeyPress: 'keypress',
29749
- topKeyUp: 'keyup',
29750
- topLoadedData: 'loadeddata',
29751
- topLoad: 'load',
29752
- topLoadedMetadata: 'loadedmetadata',
29753
- topLoadStart: 'loadstart',
29754
- topMouseDown: 'mousedown',
29755
- topMouseMove: 'mousemove',
29756
- topMouseOut: 'mouseout',
29757
- topMouseOver: 'mouseover',
29758
- topMouseUp: 'mouseup',
29759
- topPaste: 'paste',
29760
- topPause: 'pause',
29761
- topPlay: 'play',
29762
- topPlaying: 'playing',
29763
- topProgress: 'progress',
29764
- topRateChange: 'ratechange',
29765
- topScroll: 'scroll',
29766
- topSeeked: 'seeked',
29767
- topSeeking: 'seeking',
29768
- topSelectionChange: 'selectionchange',
29769
- topStalled: 'stalled',
29770
- topSuspend: 'suspend',
29771
- topTextInput: 'textInput',
29772
- topTimeUpdate: 'timeupdate',
29773
- topToggle: 'toggle',
29774
- topTouchCancel: 'touchcancel',
29775
- topTouchEnd: 'touchend',
29776
- topTouchMove: 'touchmove',
29777
- topTouchStart: 'touchstart',
29778
- topTransitionEnd: getVendorPrefixedEventName('transitionend') || 'transitionend',
29779
- topVolumeChange: 'volumechange',
29780
- topWaiting: 'waiting',
29781
- topWheel: 'wheel'
29782
- };
29783
-
29784
- var BrowserEventConstants = {
29785
- topLevelTypes: topLevelTypes$1
29786
- };
29787
-
29788
- function runEventQueueInBatch(events) {
29789
- enqueueEvents(events);
29790
- processEventQueue(false);
29791
- }
29792
-
29793
- /**
29794
- * Streams a fired top-level event to `EventPluginHub` where plugins have the
29795
- * opportunity to create `ReactEvent`s to be dispatched.
29796
- */
29797
- function handleTopLevel(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
29798
- var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
29799
- runEventQueueInBatch(events);
29800
- }
29801
-
29802
- var topLevelTypes = BrowserEventConstants.topLevelTypes;
29803
-
29804
- /**
29805
- * Summary of `ReactBrowserEventEmitter` event handling:
29806
- *
29807
- * - Top-level delegation is used to trap most native browser events. This
29808
- * may only occur in the main thread and is the responsibility of
29809
- * ReactDOMEventListener, which is injected and can therefore support
29810
- * pluggable event sources. This is the only work that occurs in the main
29811
- * thread.
29812
- *
29813
- * - We normalize and de-duplicate events to account for browser quirks. This
29814
- * may be done in the worker thread.
29815
- *
29816
- * - Forward these native events (with the associated top-level type used to
29817
- * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
29818
- * to extract any synthetic events.
29819
- *
29820
- * - The `EventPluginHub` will then process each event by annotating them with
29821
- * "dispatches", a sequence of listeners and IDs that care about that event.
29822
- *
29823
- * - The `EventPluginHub` then dispatches the events.
29824
- *
29825
- * Overview of React and the event system:
29826
- *
29827
- * +------------+ .
29828
- * | DOM | .
29829
- * +------------+ .
29830
- * | .
29831
- * v .
29832
- * +------------+ .
29833
- * | ReactEvent | .
29834
- * | Listener | .
29835
- * +------------+ . +-----------+
29836
- * | . +--------+|SimpleEvent|
29837
- * | . | |Plugin |
29838
- * +-----|------+ . v +-----------+
29839
- * | | | . +--------------+ +------------+
29840
- * | +-----------.--->|EventPluginHub| | Event |
29841
- * | | . | | +-----------+ | Propagators|
29842
- * | ReactEvent | . | | |TapEvent | |------------|
29843
- * | Emitter | . | |<---+|Plugin | |other plugin|
29844
- * | | . | | +-----------+ | utilities |
29845
- * | +-----------.--->| | +------------+
29846
- * | | | . +--------------+
29847
- * +-----|------+ . ^ +-----------+
29848
- * | . | |Enter/Leave|
29849
- * + . +-------+|Plugin |
29850
- * +-------------+ . +-----------+
29851
- * | application | .
29852
- * |-------------| .
29853
- * | | .
29854
- * | | .
29855
- * +-------------+ .
29856
- * .
29857
- * React Core . General Purpose Event Plugin System
29858
- */
29859
-
29860
- var alreadyListeningTo = {};
29861
- var reactTopListenersCounter = 0;
29862
-
29863
- /**
29864
- * To ensure no conflicts with other potential React instances on the page
29865
- */
29866
- var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);
29867
-
29868
- function getListeningForDocument(mountAt) {
29869
- // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
29870
- // directly.
29871
- if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
29872
- mountAt[topListenersIDKey] = reactTopListenersCounter++;
29873
- alreadyListeningTo[mountAt[topListenersIDKey]] = {};
29874
- }
29875
- return alreadyListeningTo[mountAt[topListenersIDKey]];
29876
- }
29877
-
29878
- /**
29879
- * We listen for bubbled touch events on the document object.
29880
- *
29881
- * Firefox v8.01 (and possibly others) exhibited strange behavior when
29882
- * mounting `onmousemove` events at some node that was not the document
29883
- * element. The symptoms were that if your mouse is not moving over something
29884
- * contained within that mount point (for example on the background) the
29885
- * top-level listeners for `onmousemove` won't be called. However, if you
29886
- * register the `mousemove` on the document object, then it will of course
29887
- * catch all `mousemove`s. This along with iOS quirks, justifies restricting
29888
- * top-level listeners to the document object only, at least for these
29889
- * movement types of events and possibly all events.
29890
- *
29891
- * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
29892
- *
29893
- * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
29894
- * they bubble to document.
29895
- *
29896
- * @param {string} registrationName Name of listener (e.g. `onClick`).
29897
- * @param {object} contentDocumentHandle Document which owns the container
29898
- */
29899
- function listenTo(registrationName, contentDocumentHandle) {
29900
- var mountAt = contentDocumentHandle;
29901
- var isListening = getListeningForDocument(mountAt);
29902
- var dependencies = registrationNameDependencies[registrationName];
29903
-
29904
- for (var i = 0; i < dependencies.length; i++) {
29905
- var dependency = dependencies[i];
29906
- if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
29907
- if (dependency === 'topScroll') {
29908
- trapCapturedEvent('topScroll', 'scroll', mountAt);
29909
- } else if (dependency === 'topFocus' || dependency === 'topBlur') {
29910
- trapCapturedEvent('topFocus', 'focus', mountAt);
29911
- trapCapturedEvent('topBlur', 'blur', mountAt);
29912
-
29913
- // to make sure blur and focus event listeners are only attached once
29914
- isListening.topBlur = true;
29915
- isListening.topFocus = true;
29916
- } else if (dependency === 'topCancel') {
29917
- if (isEventSupported('cancel', true)) {
29918
- trapCapturedEvent('topCancel', 'cancel', mountAt);
29919
- }
29920
- isListening.topCancel = true;
29921
- } else if (dependency === 'topClose') {
29922
- if (isEventSupported('close', true)) {
29923
- trapCapturedEvent('topClose', 'close', mountAt);
29924
- }
29925
- isListening.topClose = true;
29926
- } else if (topLevelTypes.hasOwnProperty(dependency)) {
29927
- trapBubbledEvent(dependency, topLevelTypes[dependency], mountAt);
29928
- }
29929
-
29930
- isListening[dependency] = true;
29931
- }
29932
- }
29933
- }
29934
-
29935
- function isListeningToAllDependencies(registrationName, mountAt) {
29936
- var isListening = getListeningForDocument(mountAt);
29937
- var dependencies = registrationNameDependencies[registrationName];
29938
- for (var i = 0; i < dependencies.length; i++) {
29939
- var dependency = dependencies[i];
29940
- if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
29941
- return false;
29942
- }
29943
- }
29944
- return true;
29945
- }
29946
-
29947
- /**
29948
- * Given any node return the first leaf node without children.
29949
- *
29950
- * @param {DOMElement|DOMTextNode} node
29951
- * @return {DOMElement|DOMTextNode}
29952
- */
29953
- function getLeafNode(node) {
29954
- while (node && node.firstChild) {
29955
- node = node.firstChild;
29956
- }
29957
- return node;
29958
- }
29959
-
29960
- /**
29961
- * Get the next sibling within a container. This will walk up the
29962
- * DOM if a node's siblings have been exhausted.
29963
- *
29964
- * @param {DOMElement|DOMTextNode} node
29965
- * @return {?DOMElement|DOMTextNode}
29966
- */
29967
- function getSiblingNode(node) {
29968
- while (node) {
29969
- if (node.nextSibling) {
29970
- return node.nextSibling;
29971
- }
29972
- node = node.parentNode;
29973
- }
29974
- }
29975
-
29976
- /**
29977
- * Get object describing the nodes which contain characters at offset.
29978
- *
29979
- * @param {DOMElement|DOMTextNode} root
29980
- * @param {number} offset
29981
- * @return {?object}
29982
- */
29983
- function getNodeForCharacterOffset(root, offset) {
29984
- var node = getLeafNode(root);
29985
- var nodeStart = 0;
29986
- var nodeEnd = 0;
29987
-
29988
- while (node) {
29989
- if (node.nodeType === TEXT_NODE) {
29990
- nodeEnd = nodeStart + node.textContent.length;
29991
-
29992
- if (nodeStart <= offset && nodeEnd >= offset) {
29993
- return {
29994
- node: node,
29995
- offset: offset - nodeStart
29996
- };
29997
- }
29998
-
29999
- nodeStart = nodeEnd;
30000
- }
30001
-
30002
- node = getLeafNode(getSiblingNode(node));
30003
- }
30004
- }
30005
-
30006
- /**
30007
- * @param {DOMElement} outerNode
30008
- * @return {?object}
30009
- */
30010
- function getOffsets(outerNode) {
30011
- var selection = window.getSelection && window.getSelection();
30012
-
30013
- if (!selection || selection.rangeCount === 0) {
30014
- return null;
30015
- }
30016
-
30017
- var anchorNode = selection.anchorNode,
30018
- anchorOffset = selection.anchorOffset,
30019
- focusNode$$1 = selection.focusNode,
30020
- focusOffset = selection.focusOffset;
30021
-
30022
- // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
30023
- // up/down buttons on an <input type="number">. Anonymous divs do not seem to
30024
- // expose properties, triggering a "Permission denied error" if any of its
30025
- // properties are accessed. The only seemingly possible way to avoid erroring
30026
- // is to access a property that typically works for non-anonymous divs and
30027
- // catch any error that may otherwise arise. See
30028
- // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
30029
-
30030
- try {
30031
- /* eslint-disable no-unused-expressions */
30032
- anchorNode.nodeType;
30033
- focusNode$$1.nodeType;
30034
- /* eslint-enable no-unused-expressions */
30035
- } catch (e) {
30036
- return null;
30037
- }
30038
-
30039
- return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode$$1, focusOffset);
30040
- }
30041
-
30042
- /**
30043
- * Returns {start, end} where `start` is the character/codepoint index of
30044
- * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
30045
- * `end` is the index of (focusNode, focusOffset).
30046
- *
30047
- * Returns null if you pass in garbage input but we should probably just crash.
30048
- *
30049
- * Exported only for testing.
30050
- */
30051
- function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode$$1, focusOffset) {
30052
- var length = 0;
30053
- var start = -1;
30054
- var end = -1;
30055
- var indexWithinAnchor = 0;
30056
- var indexWithinFocus = 0;
30057
- var node = outerNode;
30058
- var parentNode = null;
30059
-
30060
- outer: while (true) {
30061
- var next = null;
30062
-
30063
- while (true) {
30064
- if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
30065
- start = length + anchorOffset;
30066
- }
30067
- if (node === focusNode$$1 && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
30068
- end = length + focusOffset;
30069
- }
30070
-
30071
- if (node.nodeType === TEXT_NODE) {
30072
- length += node.nodeValue.length;
30073
- }
30074
-
30075
- if ((next = node.firstChild) === null) {
30076
- break;
30077
- }
30078
- // Moving from `node` to its first child `next`.
30079
- parentNode = node;
30080
- node = next;
30081
- }
30082
-
30083
- while (true) {
30084
- if (node === outerNode) {
30085
- // If `outerNode` has children, this is always the second time visiting
30086
- // it. If it has no children, this is still the first loop, and the only
30087
- // valid selection is anchorNode and focusNode both equal to this node
30088
- // and both offsets 0, in which case we will have handled above.
30089
- break outer;
30090
- }
30091
- if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
30092
- start = length;
30093
- }
30094
- if (parentNode === focusNode$$1 && ++indexWithinFocus === focusOffset) {
30095
- end = length;
30096
- }
30097
- if ((next = node.nextSibling) !== null) {
30098
- break;
30099
- }
30100
- node = parentNode;
30101
- parentNode = node.parentNode;
30102
- }
30103
-
30104
- // Moving from `node` to its next sibling `next`.
30105
- node = next;
30106
- }
30107
-
30108
- if (start === -1 || end === -1) {
30109
- // This should never happen. (Would happen if the anchor/focus nodes aren't
30110
- // actually inside the passed-in node.)
30111
- return null;
30112
- }
30113
-
30114
- return {
30115
- start: start,
30116
- end: end
30117
- };
30118
- }
30119
-
30120
- /**
30121
- * In modern non-IE browsers, we can support both forward and backward
30122
- * selections.
30123
- *
30124
- * Note: IE10+ supports the Selection object, but it does not support
30125
- * the `extend` method, which means that even in modern IE, it's not possible
30126
- * to programmatically create a backward selection. Thus, for all IE
30127
- * versions, we use the old IE API to create our selections.
30128
- *
30129
- * @param {DOMElement|DOMTextNode} node
30130
- * @param {object} offsets
30131
- */
30132
- function setOffsets(node, offsets) {
30133
- if (!window.getSelection) {
30134
- return;
30135
- }
30136
-
30137
- var selection = window.getSelection();
30138
- var length = node[getTextContentAccessor()].length;
30139
- var start = Math.min(offsets.start, length);
30140
- var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
30141
-
30142
- // IE 11 uses modern selection, but doesn't support the extend method.
30143
- // Flip backward selections, so we can set with a single range.
30144
- if (!selection.extend && start > end) {
30145
- var temp = end;
30146
- end = start;
30147
- start = temp;
30148
- }
30149
-
30150
- var startMarker = getNodeForCharacterOffset(node, start);
30151
- var endMarker = getNodeForCharacterOffset(node, end);
30152
-
30153
- if (startMarker && endMarker) {
30154
- if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
30155
- return;
30156
- }
30157
- var range = document.createRange();
30158
- range.setStart(startMarker.node, startMarker.offset);
30159
- selection.removeAllRanges();
30160
-
30161
- if (start > end) {
30162
- selection.addRange(range);
30163
- selection.extend(endMarker.node, endMarker.offset);
30164
- } else {
30165
- range.setEnd(endMarker.node, endMarker.offset);
30166
- selection.addRange(range);
30167
- }
30168
- }
30169
- }
30170
-
30171
- function isInDocument(node) {
30172
- return containsNode(document.documentElement, node);
30173
- }
30174
-
30175
- /**
30176
- * @ReactInputSelection: React input selection module. Based on Selection.js,
30177
- * but modified to be suitable for react and has a couple of bug fixes (doesn't
30178
- * assume buttons have range selections allowed).
30179
- * Input selection module for React.
30180
- */
30181
-
30182
- function hasSelectionCapabilities(elem) {
30183
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
30184
- return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true');
30185
- }
30186
-
30187
- function getSelectionInformation() {
30188
- var focusedElem = getActiveElement();
30189
- return {
30190
- focusedElem: focusedElem,
30191
- selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
30192
- };
30193
- }
30194
-
30195
- /**
30196
- * @restoreSelection: If any selection information was potentially lost,
30197
- * restore it. This is useful when performing operations that could remove dom
30198
- * nodes and place them back in, resulting in focus being lost.
30199
- */
30200
- function restoreSelection(priorSelectionInformation) {
30201
- var curFocusedElem = getActiveElement();
30202
- var priorFocusedElem = priorSelectionInformation.focusedElem;
30203
- var priorSelectionRange = priorSelectionInformation.selectionRange;
30204
- if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
30205
- if (hasSelectionCapabilities(priorFocusedElem)) {
30206
- setSelection(priorFocusedElem, priorSelectionRange);
30207
- }
30208
-
30209
- // Focusing a node can change the scroll position, which is undesirable
30210
- var ancestors = [];
30211
- var ancestor = priorFocusedElem;
30212
- while (ancestor = ancestor.parentNode) {
30213
- if (ancestor.nodeType === ELEMENT_NODE) {
30214
- ancestors.push({
30215
- element: ancestor,
30216
- left: ancestor.scrollLeft,
30217
- top: ancestor.scrollTop
30218
- });
30219
- }
30220
- }
30221
-
30222
- focusNode(priorFocusedElem);
30223
-
30224
- for (var i = 0; i < ancestors.length; i++) {
30225
- var info = ancestors[i];
30226
- info.element.scrollLeft = info.left;
30227
- info.element.scrollTop = info.top;
30228
- }
30229
- }
30230
- }
30231
-
30232
- /**
30233
- * @getSelection: Gets the selection bounds of a focused textarea, input or
30234
- * contentEditable node.
30235
- * -@input: Look up selection bounds of this input
30236
- * -@return {start: selectionStart, end: selectionEnd}
30237
- */
30238
- function getSelection$1(input) {
30239
- var selection = void 0;
30240
-
30241
- if ('selectionStart' in input) {
30242
- // Modern browser with input or textarea.
30243
- selection = {
30244
- start: input.selectionStart,
30245
- end: input.selectionEnd
30246
- };
30247
- } else {
30248
- // Content editable or old IE textarea.
30249
- selection = getOffsets(input);
30250
- }
30251
-
30252
- return selection || { start: 0, end: 0 };
30253
- }
30254
-
30255
- /**
30256
- * @setSelection: Sets the selection bounds of a textarea or input and focuses
30257
- * the input.
30258
- * -@input Set selection bounds of this input or textarea
30259
- * -@offsets Object of same form that is returned from get*
30260
- */
30261
- function setSelection(input, offsets) {
30262
- var start = offsets.start,
30263
- end = offsets.end;
30264
-
30265
- if (end === undefined) {
30266
- end = start;
30267
- }
30268
-
30269
- if ('selectionStart' in input) {
30270
- input.selectionStart = start;
30271
- input.selectionEnd = Math.min(end, input.value.length);
30272
- } else {
30273
- setOffsets(input, offsets);
30274
- }
30275
- }
30276
-
30277
- var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11;
30278
-
30279
- var eventTypes$3 = {
30280
- select: {
30281
- phasedRegistrationNames: {
30282
- bubbled: 'onSelect',
30283
- captured: 'onSelectCapture'
30284
- },
30285
- dependencies: ['topBlur', 'topContextMenu', 'topFocus', 'topKeyDown', 'topKeyUp', 'topMouseDown', 'topMouseUp', 'topSelectionChange']
30286
- }
30287
- };
30288
-
30289
- var activeElement$1 = null;
30290
- var activeElementInst$1 = null;
30291
- var lastSelection = null;
30292
- var mouseDown = false;
30293
-
30294
- /**
30295
- * Get an object which is a unique representation of the current selection.
30296
- *
30297
- * The return value will not be consistent across nodes or browsers, but
30298
- * two identical selections on the same node will return identical objects.
30299
- *
30300
- * @param {DOMElement} node
30301
- * @return {object}
30302
- */
30303
- function getSelection(node) {
30304
- if ('selectionStart' in node && hasSelectionCapabilities(node)) {
30305
- return {
30306
- start: node.selectionStart,
30307
- end: node.selectionEnd
30308
- };
30309
- } else if (window.getSelection) {
30310
- var selection = window.getSelection();
30311
- return {
30312
- anchorNode: selection.anchorNode,
30313
- anchorOffset: selection.anchorOffset,
30314
- focusNode: selection.focusNode,
30315
- focusOffset: selection.focusOffset
30316
- };
30317
- }
30318
- }
30319
-
30320
- /**
30321
- * Poll selection to see whether it's changed.
30322
- *
30323
- * @param {object} nativeEvent
30324
- * @return {?SyntheticEvent}
30325
- */
30326
- function constructSelectEvent(nativeEvent, nativeEventTarget) {
30327
- // Ensure we have the right element, and that the user is not dragging a
30328
- // selection (this matches native `select` event behavior). In HTML5, select
30329
- // fires only on input and textarea thus if there's no focused element we
30330
- // won't dispatch.
30331
- if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement()) {
30332
- return null;
30333
- }
30334
-
30335
- // Only fire when selection has actually changed.
30336
- var currentSelection = getSelection(activeElement$1);
30337
- if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
30338
- lastSelection = currentSelection;
30339
-
30340
- var syntheticEvent = SyntheticEvent$1.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
30341
-
30342
- syntheticEvent.type = 'select';
30343
- syntheticEvent.target = activeElement$1;
30344
-
30345
- accumulateTwoPhaseDispatches(syntheticEvent);
30346
-
30347
- return syntheticEvent;
30348
- }
30349
-
30350
- return null;
30351
- }
30352
-
30353
- /**
30354
- * This plugin creates an `onSelect` event that normalizes select events
30355
- * across form elements.
30356
- *
30357
- * Supported elements are:
30358
- * - input (see `isTextInputElement`)
30359
- * - textarea
30360
- * - contentEditable
30361
- *
30362
- * This differs from native browser implementations in the following ways:
30363
- * - Fires on contentEditable fields as well as inputs.
30364
- * - Fires for collapsed selection.
30365
- * - Fires after user input.
30366
- */
30367
- var SelectEventPlugin = {
30368
- eventTypes: eventTypes$3,
30369
-
30370
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
30371
- var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : nativeEventTarget.nodeType === DOCUMENT_NODE ? nativeEventTarget : nativeEventTarget.ownerDocument;
30372
- // Track whether all listeners exists for this plugin. If none exist, we do
30373
- // not extract events. See #3639.
30374
- if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
30375
- return null;
30376
- }
30377
-
30378
- var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
30379
-
30380
- switch (topLevelType) {
30381
- // Track the input node that has focus.
30382
- case 'topFocus':
30383
- if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
30384
- activeElement$1 = targetNode;
30385
- activeElementInst$1 = targetInst;
30386
- lastSelection = null;
30387
- }
30388
- break;
30389
- case 'topBlur':
30390
- activeElement$1 = null;
30391
- activeElementInst$1 = null;
30392
- lastSelection = null;
30393
- break;
30394
- // Don't fire the event while the user is dragging. This matches the
30395
- // semantics of the native select event.
30396
- case 'topMouseDown':
30397
- mouseDown = true;
30398
- break;
30399
- case 'topContextMenu':
30400
- case 'topMouseUp':
30401
- mouseDown = false;
30402
- return constructSelectEvent(nativeEvent, nativeEventTarget);
30403
- // Chrome and IE fire non-standard event when selection is changed (and
30404
- // sometimes when it hasn't). IE's event fires out of order with respect
30405
- // to key and input events on deletion, so we discard it.
30406
- //
30407
- // Firefox doesn't support selectionchange, so check selection status
30408
- // after each key entry. The selection changes after keydown and before
30409
- // keyup, but we check on keydown as well in the case of holding down a
30410
- // key, when multiple keydown events are fired but only one keyup is.
30411
- // This is also our approach for IE handling, for the reason above.
30412
- case 'topSelectionChange':
30413
- if (skipSelectionChangeEvent) {
30414
- break;
30415
- }
30416
- // falls through
30417
- case 'topKeyDown':
30418
- case 'topKeyUp':
30419
- return constructSelectEvent(nativeEvent, nativeEventTarget);
30420
- }
30421
-
30422
- return null;
30423
- }
30424
- };
30425
-
30426
- /**
30427
- * @interface Event
30428
- * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
30429
- * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
30430
- */
30431
- var AnimationEventInterface = {
30432
- animationName: null,
30433
- elapsedTime: null,
30434
- pseudoElement: null
30435
- };
30436
-
30437
- /**
30438
- * @param {object} dispatchConfig Configuration used to dispatch this event.
30439
- * @param {string} dispatchMarker Marker identifying the event target.
30440
- * @param {object} nativeEvent Native browser event.
30441
- * @extends {SyntheticEvent}
30442
- */
30443
- function SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30444
- return SyntheticEvent$1.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
30445
- }
30446
-
30447
- SyntheticEvent$1.augmentClass(SyntheticAnimationEvent, AnimationEventInterface);
30448
-
30449
- /**
30450
- * @interface Event
30451
- * @see http://www.w3.org/TR/clipboard-apis/
30452
- */
30453
- var ClipboardEventInterface = {
30454
- clipboardData: function (event) {
30455
- return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
30456
- }
30457
- };
30458
-
30459
- /**
30460
- * @param {object} dispatchConfig Configuration used to dispatch this event.
30461
- * @param {string} dispatchMarker Marker identifying the event target.
30462
- * @param {object} nativeEvent Native browser event.
30463
- * @extends {SyntheticEvent}
30464
- */
30465
- function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30466
- return SyntheticEvent$1.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
30467
- }
30468
-
30469
- SyntheticEvent$1.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);
30470
-
30471
- /**
30472
- * @interface FocusEvent
30473
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
30474
- */
30475
- var FocusEventInterface = {
30476
- relatedTarget: null
30477
- };
30478
-
30479
- /**
30480
- * @param {object} dispatchConfig Configuration used to dispatch this event.
30481
- * @param {string} dispatchMarker Marker identifying the event target.
30482
- * @param {object} nativeEvent Native browser event.
30483
- * @extends {SyntheticUIEvent}
30484
- */
30485
- function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30486
- return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
30487
- }
30488
-
30489
- SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
30490
-
30491
- /**
30492
- * `charCode` represents the actual "character code" and is safe to use with
30493
- * `String.fromCharCode`. As such, only keys that correspond to printable
30494
- * characters produce a valid `charCode`, the only exception to this is Enter.
30495
- * The Tab-key is considered non-printable and does not have a `charCode`,
30496
- * presumably because it does not produce a tab-character in browsers.
30497
- *
30498
- * @param {object} nativeEvent Native browser event.
30499
- * @return {number} Normalized `charCode` property.
30500
- */
30501
- function getEventCharCode(nativeEvent) {
30502
- var charCode;
30503
- var keyCode = nativeEvent.keyCode;
30504
-
30505
- if ('charCode' in nativeEvent) {
30506
- charCode = nativeEvent.charCode;
30507
-
30508
- // FF does not set `charCode` for the Enter-key, check against `keyCode`.
30509
- if (charCode === 0 && keyCode === 13) {
30510
- charCode = 13;
30511
- }
30512
- } else {
30513
- // IE8 does not implement `charCode`, but `keyCode` has the correct value.
30514
- charCode = keyCode;
30515
- }
30516
-
30517
- // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
30518
- // Must not discard the (non-)printable Enter-key.
30519
- if (charCode >= 32 || charCode === 13) {
30520
- return charCode;
30521
- }
30522
-
30523
- return 0;
30524
- }
30525
-
30526
- /**
30527
- * Normalization of deprecated HTML5 `key` values
30528
- * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
30529
- */
30530
- var normalizeKey = {
30531
- Esc: 'Escape',
30532
- Spacebar: ' ',
30533
- Left: 'ArrowLeft',
30534
- Up: 'ArrowUp',
30535
- Right: 'ArrowRight',
30536
- Down: 'ArrowDown',
30537
- Del: 'Delete',
30538
- Win: 'OS',
30539
- Menu: 'ContextMenu',
30540
- Apps: 'ContextMenu',
30541
- Scroll: 'ScrollLock',
30542
- MozPrintableKey: 'Unidentified'
30543
- };
30544
-
30545
- /**
30546
- * Translation from legacy `keyCode` to HTML5 `key`
30547
- * Only special keys supported, all others depend on keyboard layout or browser
30548
- * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
30549
- */
30550
- var translateToKey = {
30551
- '8': 'Backspace',
30552
- '9': 'Tab',
30553
- '12': 'Clear',
30554
- '13': 'Enter',
30555
- '16': 'Shift',
30556
- '17': 'Control',
30557
- '18': 'Alt',
30558
- '19': 'Pause',
30559
- '20': 'CapsLock',
30560
- '27': 'Escape',
30561
- '32': ' ',
30562
- '33': 'PageUp',
30563
- '34': 'PageDown',
30564
- '35': 'End',
30565
- '36': 'Home',
30566
- '37': 'ArrowLeft',
30567
- '38': 'ArrowUp',
30568
- '39': 'ArrowRight',
30569
- '40': 'ArrowDown',
30570
- '45': 'Insert',
30571
- '46': 'Delete',
30572
- '112': 'F1',
30573
- '113': 'F2',
30574
- '114': 'F3',
30575
- '115': 'F4',
30576
- '116': 'F5',
30577
- '117': 'F6',
30578
- '118': 'F7',
30579
- '119': 'F8',
30580
- '120': 'F9',
30581
- '121': 'F10',
30582
- '122': 'F11',
30583
- '123': 'F12',
30584
- '144': 'NumLock',
30585
- '145': 'ScrollLock',
30586
- '224': 'Meta'
30587
- };
30588
-
30589
- /**
30590
- * @param {object} nativeEvent Native browser event.
30591
- * @return {string} Normalized `key` property.
30592
- */
30593
- function getEventKey(nativeEvent) {
30594
- if (nativeEvent.key) {
30595
- // Normalize inconsistent values reported by browsers due to
30596
- // implementations of a working draft specification.
30597
-
30598
- // FireFox implements `key` but returns `MozPrintableKey` for all
30599
- // printable characters (normalized to `Unidentified`), ignore it.
30600
- var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
30601
- if (key !== 'Unidentified') {
30602
- return key;
30603
- }
30604
- }
30605
-
30606
- // Browser does not implement `key`, polyfill as much of it as we can.
30607
- if (nativeEvent.type === 'keypress') {
30608
- var charCode = getEventCharCode(nativeEvent);
30609
-
30610
- // The enter-key is technically both printable and non-printable and can
30611
- // thus be captured by `keypress`, no other non-printable key should.
30612
- return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
30613
- }
30614
- if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
30615
- // While user keyboard layout determines the actual meaning of each
30616
- // `keyCode` value, almost all function keys have a universal value.
30617
- return translateToKey[nativeEvent.keyCode] || 'Unidentified';
30618
- }
30619
- return '';
30620
- }
30621
-
30622
- /**
30623
- * @interface KeyboardEvent
30624
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
30625
- */
30626
- var KeyboardEventInterface = {
30627
- key: getEventKey,
30628
- location: null,
30629
- ctrlKey: null,
30630
- shiftKey: null,
30631
- altKey: null,
30632
- metaKey: null,
30633
- repeat: null,
30634
- locale: null,
30635
- getModifierState: getEventModifierState,
30636
- // Legacy Interface
30637
- charCode: function (event) {
30638
- // `charCode` is the result of a KeyPress event and represents the value of
30639
- // the actual printable character.
30640
-
30641
- // KeyPress is deprecated, but its replacement is not yet final and not
30642
- // implemented in any major browser. Only KeyPress has charCode.
30643
- if (event.type === 'keypress') {
30644
- return getEventCharCode(event);
30645
- }
30646
- return 0;
30647
- },
30648
- keyCode: function (event) {
30649
- // `keyCode` is the result of a KeyDown/Up event and represents the value of
30650
- // physical keyboard key.
30651
-
30652
- // The actual meaning of the value depends on the users' keyboard layout
30653
- // which cannot be detected. Assuming that it is a US keyboard layout
30654
- // provides a surprisingly accurate mapping for US and European users.
30655
- // Due to this, it is left to the user to implement at this time.
30656
- if (event.type === 'keydown' || event.type === 'keyup') {
30657
- return event.keyCode;
30658
- }
30659
- return 0;
30660
- },
30661
- which: function (event) {
30662
- // `which` is an alias for either `keyCode` or `charCode` depending on the
30663
- // type of the event.
30664
- if (event.type === 'keypress') {
30665
- return getEventCharCode(event);
30666
- }
30667
- if (event.type === 'keydown' || event.type === 'keyup') {
30668
- return event.keyCode;
30669
- }
30670
- return 0;
30671
- }
30672
- };
30673
-
30674
- /**
30675
- * @param {object} dispatchConfig Configuration used to dispatch this event.
30676
- * @param {string} dispatchMarker Marker identifying the event target.
30677
- * @param {object} nativeEvent Native browser event.
30678
- * @extends {SyntheticUIEvent}
30679
- */
30680
- function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30681
- return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
30682
- }
30683
-
30684
- SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);
30685
-
30686
- /**
30687
- * @interface DragEvent
30688
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
30689
- */
30690
- var DragEventInterface = {
30691
- dataTransfer: null
30692
- };
30693
-
30694
- /**
30695
- * @param {object} dispatchConfig Configuration used to dispatch this event.
30696
- * @param {string} dispatchMarker Marker identifying the event target.
30697
- * @param {object} nativeEvent Native browser event.
30698
- * @extends {SyntheticMouseEvent}
30699
- */
30700
- function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30701
- return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
30702
- }
30703
-
30704
- SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
30705
-
30706
- /**
30707
- * @interface TouchEvent
30708
- * @see http://www.w3.org/TR/touch-events/
30709
- */
30710
- var TouchEventInterface = {
30711
- touches: null,
30712
- targetTouches: null,
30713
- changedTouches: null,
30714
- altKey: null,
30715
- metaKey: null,
30716
- ctrlKey: null,
30717
- shiftKey: null,
30718
- getModifierState: getEventModifierState
30719
- };
30720
-
30721
- /**
30722
- * @param {object} dispatchConfig Configuration used to dispatch this event.
30723
- * @param {string} dispatchMarker Marker identifying the event target.
30724
- * @param {object} nativeEvent Native browser event.
30725
- * @extends {SyntheticUIEvent}
30726
- */
30727
- function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30728
- return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
30729
- }
30730
-
30731
- SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);
30732
-
30733
- /**
30734
- * @interface Event
30735
- * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
30736
- * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
30737
- */
30738
- var TransitionEventInterface = {
30739
- propertyName: null,
30740
- elapsedTime: null,
30741
- pseudoElement: null
30742
- };
30743
-
30744
- /**
30745
- * @param {object} dispatchConfig Configuration used to dispatch this event.
30746
- * @param {string} dispatchMarker Marker identifying the event target.
30747
- * @param {object} nativeEvent Native browser event.
30748
- * @extends {SyntheticEvent}
30749
- */
30750
- function SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30751
- return SyntheticEvent$1.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
30752
- }
30753
-
30754
- SyntheticEvent$1.augmentClass(SyntheticTransitionEvent, TransitionEventInterface);
30755
-
30756
- /**
30757
- * @interface WheelEvent
30758
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
30759
- */
30760
- var WheelEventInterface = {
30761
- deltaX: function (event) {
30762
- return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
30763
- 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
30764
- },
30765
- deltaY: function (event) {
30766
- return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
30767
- 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
30768
- 'wheelDelta' in event ? -event.wheelDelta : 0;
30769
- },
30770
- deltaZ: null,
30771
-
30772
- // Browsers without "deltaMode" is reporting in raw wheel delta where one
30773
- // notch on the scroll is always +/- 120, roughly equivalent to pixels.
30774
- // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
30775
- // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
30776
- deltaMode: null
30777
- };
30778
-
30779
- /**
30780
- * @param {object} dispatchConfig Configuration used to dispatch this event.
30781
- * @param {string} dispatchMarker Marker identifying the event target.
30782
- * @param {object} nativeEvent Native browser event.
30783
- * @extends {SyntheticMouseEvent}
30784
- */
30785
- function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30786
- return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
30787
- }
30788
-
30789
- SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface);
30790
-
30791
- /**
30792
- * Turns
30793
- * ['abort', ...]
30794
- * into
30795
- * eventTypes = {
30796
- * 'abort': {
30797
- * phasedRegistrationNames: {
30798
- * bubbled: 'onAbort',
30799
- * captured: 'onAbortCapture',
30800
- * },
30801
- * dependencies: ['topAbort'],
30802
- * },
30803
- * ...
30804
- * };
30805
- * topLevelEventsToDispatchConfig = {
30806
- * 'topAbort': { sameConfig }
30807
- * };
30808
- */
30809
- var eventTypes$4 = {};
30810
- var topLevelEventsToDispatchConfig = {};
30811
- ['abort', 'animationEnd', 'animationIteration', 'animationStart', 'blur', 'cancel', 'canPlay', 'canPlayThrough', 'click', 'close', 'contextMenu', 'copy', 'cut', 'doubleClick', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'focus', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'progress', 'rateChange', 'reset', 'scroll', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'toggle', 'touchCancel', 'touchEnd', 'touchMove', 'touchStart', 'transitionEnd', 'volumeChange', 'waiting', 'wheel'].forEach(function (event) {
30812
- var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
30813
- var onEvent = 'on' + capitalizedEvent;
30814
- var topEvent = 'top' + capitalizedEvent;
30815
-
30816
- var type = {
30817
- phasedRegistrationNames: {
30818
- bubbled: onEvent,
30819
- captured: onEvent + 'Capture'
30820
- },
30821
- dependencies: [topEvent]
30822
- };
30823
- eventTypes$4[event] = type;
30824
- topLevelEventsToDispatchConfig[topEvent] = type;
30825
- });
30826
-
30827
- // Only used in DEV for exhaustiveness validation.
30828
- var knownHTMLTopLevelTypes = ['topAbort', 'topCancel', 'topCanPlay', 'topCanPlayThrough', 'topClose', 'topDurationChange', 'topEmptied', 'topEncrypted', 'topEnded', 'topError', 'topInput', 'topInvalid', 'topLoad', 'topLoadedData', 'topLoadedMetadata', 'topLoadStart', 'topPause', 'topPlay', 'topPlaying', 'topProgress', 'topRateChange', 'topReset', 'topSeeked', 'topSeeking', 'topStalled', 'topSubmit', 'topSuspend', 'topTimeUpdate', 'topToggle', 'topVolumeChange', 'topWaiting'];
30829
-
30830
- var SimpleEventPlugin = {
30831
- eventTypes: eventTypes$4,
30832
-
30833
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
30834
- var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
30835
- if (!dispatchConfig) {
30836
- return null;
30837
- }
30838
- var EventConstructor;
30839
- switch (topLevelType) {
30840
- case 'topKeyPress':
30841
- // Firefox creates a keypress event for function keys too. This removes
30842
- // the unwanted keypress events. Enter is however both printable and
30843
- // non-printable. One would expect Tab to be as well (but it isn't).
30844
- if (getEventCharCode(nativeEvent) === 0) {
30845
- return null;
30846
- }
30847
- /* falls through */
30848
- case 'topKeyDown':
30849
- case 'topKeyUp':
30850
- EventConstructor = SyntheticKeyboardEvent;
30851
- break;
30852
- case 'topBlur':
30853
- case 'topFocus':
30854
- EventConstructor = SyntheticFocusEvent;
30855
- break;
30856
- case 'topClick':
30857
- // Firefox creates a click event on right mouse clicks. This removes the
30858
- // unwanted click events.
30859
- if (nativeEvent.button === 2) {
30860
- return null;
30861
- }
30862
- /* falls through */
30863
- case 'topDoubleClick':
30864
- case 'topMouseDown':
30865
- case 'topMouseMove':
30866
- case 'topMouseUp':
30867
- // TODO: Disabled elements should not respond to mouse events
30868
- /* falls through */
30869
- case 'topMouseOut':
30870
- case 'topMouseOver':
30871
- case 'topContextMenu':
30872
- EventConstructor = SyntheticMouseEvent;
30873
- break;
30874
- case 'topDrag':
30875
- case 'topDragEnd':
30876
- case 'topDragEnter':
30877
- case 'topDragExit':
30878
- case 'topDragLeave':
30879
- case 'topDragOver':
30880
- case 'topDragStart':
30881
- case 'topDrop':
30882
- EventConstructor = SyntheticDragEvent;
30883
- break;
30884
- case 'topTouchCancel':
30885
- case 'topTouchEnd':
30886
- case 'topTouchMove':
30887
- case 'topTouchStart':
30888
- EventConstructor = SyntheticTouchEvent;
30889
- break;
30890
- case 'topAnimationEnd':
30891
- case 'topAnimationIteration':
30892
- case 'topAnimationStart':
30893
- EventConstructor = SyntheticAnimationEvent;
30894
- break;
30895
- case 'topTransitionEnd':
30896
- EventConstructor = SyntheticTransitionEvent;
30897
- break;
30898
- case 'topScroll':
30899
- EventConstructor = SyntheticUIEvent;
30900
- break;
30901
- case 'topWheel':
30902
- EventConstructor = SyntheticWheelEvent;
30903
- break;
30904
- case 'topCopy':
30905
- case 'topCut':
30906
- case 'topPaste':
30907
- EventConstructor = SyntheticClipboardEvent;
30908
- break;
30909
- default:
30910
- {
30911
- if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
30912
- warning(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
30913
- }
30914
- }
30915
- // HTML Events
30916
- // @see http://www.w3.org/TR/html5/index.html#events-0
30917
- EventConstructor = SyntheticEvent$1;
30918
- break;
30919
- }
30920
- var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
30921
- accumulateTwoPhaseDispatches(event);
30922
- return event;
30923
- }
30924
- };
30925
-
30926
- setHandleTopLevel(handleTopLevel);
30927
-
30928
- /**
30929
- * Inject modules for resolving DOM hierarchy and plugin ordering.
30930
- */
30931
- injection$1.injectEventPluginOrder(DOMEventPluginOrder);
30932
- injection$2.injectComponentTree(ReactDOMComponentTree);
30933
-
30934
- /**
30935
- * Some important event plugins included by default (without having to require
30936
- * them).
30937
- */
30938
- injection$1.injectEventPluginsByName({
30939
- SimpleEventPlugin: SimpleEventPlugin,
30940
- EnterLeaveEventPlugin: EnterLeaveEventPlugin,
30941
- ChangeEventPlugin: ChangeEventPlugin,
30942
- SelectEventPlugin: SelectEventPlugin,
30943
- BeforeInputEventPlugin: BeforeInputEventPlugin
30944
- });
30945
-
30946
- var enableAsyncSubtreeAPI = true;
30947
- var enableAsyncSchedulingByDefaultInReactDOM = false;
30948
- // Exports ReactDOM.createRoot
30949
- var enableCreateRoot = false;
30950
- var enableUserTimingAPI = true;
30951
-
30952
- // Mutating mode (React DOM, React ART, React Native):
30953
- var enableMutatingReconciler = true;
30954
- // Experimental noop mode (currently unused):
30955
- var enableNoopReconciler = false;
30956
- // Experimental persistent mode (CS):
30957
- var enablePersistentReconciler = false;
30958
-
30959
- // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
30960
- var debugRenderPhaseSideEffects = false;
30961
-
30962
- // Only used in www builds.
30963
-
30964
- var valueStack = [];
30965
-
30966
- {
30967
- var fiberStack = [];
30968
- }
30969
-
30970
- var index = -1;
30971
-
30972
- function createCursor(defaultValue) {
30973
- return {
30974
- curre