20239 lines
2.5 MiB
20239 lines
2.5 MiB
/*
|
||
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
|
||
if you want to view the source visit the plugins github repository
|
||
*/
|
||
|
||
/*
|
||
License obsidian-tasks:
|
||
MIT License
|
||
|
||
Copyright (c) 2021 Martin Schenck
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
of this software and associated documentation files (the "Software"), to deal
|
||
in the Software without restriction, including without limitation the rights
|
||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
copies of the Software, and to permit persons to whom the Software is
|
||
furnished to do so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in all
|
||
copies or substantial portions of the Software.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||
SOFTWARE.
|
||
*/
|
||
|
||
/*
|
||
License rrule (included library):
|
||
rrule.js: Library for working with recurrence rules for calendar dates.
|
||
=======================================================================
|
||
|
||
Copyright 2010, Jakub Roztocil <jakub@roztocil.name> and Lars Schöning
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are met:
|
||
|
||
1. Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
2. Redistributions in binary form must reproduce the above copyright
|
||
notice, this list of conditions and the following disclaimer in the
|
||
documentation and/or other materials provided with the distribution.
|
||
|
||
3. Neither the name of The author nor the names of its contributors may
|
||
be used to endorse or promote products derived from this software
|
||
without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
|
||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR
|
||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
||
|
||
|
||
./rrule.js and ./test/tests.js is based on python-dateutil. LICENCE:
|
||
|
||
python-dateutil - Extensions to the standard Python datetime module.
|
||
====================================================================
|
||
|
||
Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
|
||
Copyright (c) 2012 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
|
||
|
||
All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are met:
|
||
|
||
* Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
* Redistributions in binary form must reproduce the above copyright notice,
|
||
this list of conditions and the following disclaimer in the documentation
|
||
and/or other materials provided with the distribution.
|
||
* Neither the name of the copyright holder nor the names of its
|
||
contributors may be used to endorse or promote products derived from
|
||
this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/
|
||
|
||
/*
|
||
License chrono-node (included library):
|
||
The MIT License
|
||
|
||
Copyright (c) 2014, Wanasit Tanakitrungruang
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
of this software and associated documentation files (the "Software"), to deal
|
||
in the Software without restriction, including without limitation the rights
|
||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
copies of the Software, and to permit persons to whom the Software is
|
||
furnished to do so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in
|
||
all copies or substantial portions of the Software.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
THE SOFTWARE.
|
||
*/
|
||
|
||
'use strict';
|
||
|
||
var obsidian = require('obsidian');
|
||
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
|
||
function __awaiter(thisArg, _arguments, P, generator) {
|
||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||
return new (P || (P = Promise))(function (resolve, reject) {
|
||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||
});
|
||
}
|
||
|
||
function __generator(thisArg, body) {
|
||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||
function verb(n) { return function (v) { return step([n, v]); }; }
|
||
function step(op) {
|
||
if (f) throw new TypeError("Generator is already executing.");
|
||
while (_) try {
|
||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||
if (y = 0, t) op = [op[0] & 2, t.value];
|
||
switch (op[0]) {
|
||
case 0: case 1: t = op; break;
|
||
case 4: _.label++; return { value: op[1], done: false };
|
||
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||
default:
|
||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||
if (t[2]) _.ops.pop();
|
||
_.trys.pop(); continue;
|
||
}
|
||
op = body.call(thisArg, _);
|
||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||
}
|
||
}
|
||
|
||
var E_CANCELED = new Error('request for lock canceled');
|
||
|
||
var Semaphore = /** @class */ (function () {
|
||
function Semaphore(_maxConcurrency, _cancelError) {
|
||
if (_cancelError === void 0) { _cancelError = E_CANCELED; }
|
||
this._maxConcurrency = _maxConcurrency;
|
||
this._cancelError = _cancelError;
|
||
this._queue = [];
|
||
this._waiters = [];
|
||
if (_maxConcurrency <= 0) {
|
||
throw new Error('semaphore must be initialized to a positive value');
|
||
}
|
||
this._value = _maxConcurrency;
|
||
}
|
||
Semaphore.prototype.acquire = function () {
|
||
var _this = this;
|
||
var locked = this.isLocked();
|
||
var ticketPromise = new Promise(function (resolve, reject) {
|
||
return _this._queue.push({ resolve: resolve, reject: reject });
|
||
});
|
||
if (!locked)
|
||
this._dispatch();
|
||
return ticketPromise;
|
||
};
|
||
Semaphore.prototype.runExclusive = function (callback) {
|
||
return __awaiter(this, void 0, void 0, function () {
|
||
var _a, value, release;
|
||
return __generator(this, function (_b) {
|
||
switch (_b.label) {
|
||
case 0: return [4 /*yield*/, this.acquire()];
|
||
case 1:
|
||
_a = _b.sent(), value = _a[0], release = _a[1];
|
||
_b.label = 2;
|
||
case 2:
|
||
_b.trys.push([2, , 4, 5]);
|
||
return [4 /*yield*/, callback(value)];
|
||
case 3: return [2 /*return*/, _b.sent()];
|
||
case 4:
|
||
release();
|
||
return [7 /*endfinally*/];
|
||
case 5: return [2 /*return*/];
|
||
}
|
||
});
|
||
});
|
||
};
|
||
Semaphore.prototype.waitForUnlock = function () {
|
||
return __awaiter(this, void 0, void 0, function () {
|
||
var waitPromise;
|
||
var _this = this;
|
||
return __generator(this, function (_a) {
|
||
if (!this.isLocked()) {
|
||
return [2 /*return*/, Promise.resolve()];
|
||
}
|
||
waitPromise = new Promise(function (resolve) { return _this._waiters.push({ resolve: resolve }); });
|
||
return [2 /*return*/, waitPromise];
|
||
});
|
||
});
|
||
};
|
||
Semaphore.prototype.isLocked = function () {
|
||
return this._value <= 0;
|
||
};
|
||
/** @deprecated Deprecated in 0.3.0, will be removed in 0.4.0. Use runExclusive instead. */
|
||
Semaphore.prototype.release = function () {
|
||
if (this._maxConcurrency > 1) {
|
||
throw new Error('this method is unavailable on semaphores with concurrency > 1; use the scoped release returned by acquire instead');
|
||
}
|
||
if (this._currentReleaser) {
|
||
var releaser = this._currentReleaser;
|
||
this._currentReleaser = undefined;
|
||
releaser();
|
||
}
|
||
};
|
||
Semaphore.prototype.cancel = function () {
|
||
var _this = this;
|
||
this._queue.forEach(function (ticket) { return ticket.reject(_this._cancelError); });
|
||
this._queue = [];
|
||
};
|
||
Semaphore.prototype._dispatch = function () {
|
||
var _this = this;
|
||
var nextTicket = this._queue.shift();
|
||
if (!nextTicket)
|
||
return;
|
||
var released = false;
|
||
this._currentReleaser = function () {
|
||
if (released)
|
||
return;
|
||
released = true;
|
||
_this._value++;
|
||
_this._resolveWaiters();
|
||
_this._dispatch();
|
||
};
|
||
nextTicket.resolve([this._value--, this._currentReleaser]);
|
||
};
|
||
Semaphore.prototype._resolveWaiters = function () {
|
||
this._waiters.forEach(function (waiter) { return waiter.resolve(); });
|
||
this._waiters = [];
|
||
};
|
||
return Semaphore;
|
||
}());
|
||
|
||
var Mutex = /** @class */ (function () {
|
||
function Mutex(cancelError) {
|
||
this._semaphore = new Semaphore(1, cancelError);
|
||
}
|
||
Mutex.prototype.acquire = function () {
|
||
return __awaiter(this, void 0, void 0, function () {
|
||
var _a, releaser;
|
||
return __generator(this, function (_b) {
|
||
switch (_b.label) {
|
||
case 0: return [4 /*yield*/, this._semaphore.acquire()];
|
||
case 1:
|
||
_a = _b.sent(), releaser = _a[1];
|
||
return [2 /*return*/, releaser];
|
||
}
|
||
});
|
||
});
|
||
};
|
||
Mutex.prototype.runExclusive = function (callback) {
|
||
return this._semaphore.runExclusive(function () { return callback(); });
|
||
};
|
||
Mutex.prototype.isLocked = function () {
|
||
return this._semaphore.isLocked();
|
||
};
|
||
Mutex.prototype.waitForUnlock = function () {
|
||
return this._semaphore.waitForUnlock();
|
||
};
|
||
/** @deprecated Deprecated in 0.3.0, will be removed in 0.4.0. Use runExclusive instead. */
|
||
Mutex.prototype.release = function () {
|
||
this._semaphore.release();
|
||
};
|
||
Mutex.prototype.cancel = function () {
|
||
return this._semaphore.cancel();
|
||
};
|
||
return Mutex;
|
||
}());
|
||
|
||
const defaultSettings = {
|
||
globalFilter: '',
|
||
removeGlobalFilter: false,
|
||
};
|
||
let settings = Object.assign({}, defaultSettings);
|
||
const getSettings = () => {
|
||
return Object.assign({}, settings);
|
||
};
|
||
const updateSettings = (newSettings) => {
|
||
settings = Object.assign(Object.assign({}, settings), newSettings);
|
||
return getSettings();
|
||
};
|
||
|
||
let metadataCache;
|
||
let vault;
|
||
const initializeFile = ({ metadataCache: newMetadataCache, vault: newVault, }) => {
|
||
metadataCache = newMetadataCache;
|
||
vault = newVault;
|
||
};
|
||
/**
|
||
* Replaces the original task with one or more new tassk.
|
||
*
|
||
* If you pass more than one replacement task, all subsequent tasks in the same
|
||
* section must be re-rendered, as their section indexes change. Assuming that
|
||
* this is done faster than user interaction in practice.
|
||
*/
|
||
const replaceTaskWithTasks = ({ originalTask, newTasks, }) => __awaiter(void 0, void 0, void 0, function* () {
|
||
if (vault === undefined || metadataCache === undefined) {
|
||
console.error('Tasks: cannot use File before initializing it.');
|
||
return;
|
||
}
|
||
if (!Array.isArray(newTasks)) {
|
||
newTasks = [newTasks];
|
||
}
|
||
tryRepetitive({
|
||
originalTask,
|
||
newTasks,
|
||
vault,
|
||
metadataCache,
|
||
previousTries: 0,
|
||
});
|
||
});
|
||
/**
|
||
* This is a workaround to re-try when the returned file cache is `undefined`.
|
||
* Retrying after a while may return a valid file cache.
|
||
* Reported in https://github.com/schemar/obsidian-tasks/issues/87
|
||
*/
|
||
const tryRepetitive = ({ originalTask, newTasks, vault, metadataCache, previousTries, }) => __awaiter(void 0, void 0, void 0, function* () {
|
||
const retry = () => {
|
||
if (previousTries > 10) {
|
||
console.error('Tasks: Too many retries. File update not possible ...');
|
||
return;
|
||
}
|
||
const timeout = Math.min(Math.pow(10, previousTries), 100); // 1, 10, 100, 100, 100, ...
|
||
setTimeout(() => {
|
||
tryRepetitive({
|
||
originalTask,
|
||
newTasks,
|
||
vault,
|
||
metadataCache,
|
||
previousTries: previousTries + 1,
|
||
});
|
||
}, timeout);
|
||
};
|
||
const file = vault.getAbstractFileByPath(originalTask.path);
|
||
if (!(file instanceof obsidian.TFile)) {
|
||
console.warn(`Tasks: No file found for task ${originalTask.description}. Retrying ...`);
|
||
return retry();
|
||
}
|
||
if (file.extension !== 'md') {
|
||
console.error('Tasks: Only supporting files with the .md file extension.');
|
||
return;
|
||
}
|
||
const fileCache = metadataCache.getFileCache(file);
|
||
if (fileCache == undefined || fileCache === null) {
|
||
console.warn(`Tasks: No file cache found for file ${file.path}. Retrying ...`);
|
||
return retry();
|
||
}
|
||
const listItemsCache = fileCache.listItems;
|
||
if (listItemsCache === undefined || listItemsCache.length === 0) {
|
||
console.warn(`Tasks: No list items found in file cache of ${file.path}. Retrying ...`);
|
||
return retry();
|
||
}
|
||
const fileContent = yield vault.read(file);
|
||
const fileLines = fileContent.split('\n');
|
||
const { globalFilter } = getSettings();
|
||
let listItem;
|
||
let sectionIndex = 0;
|
||
for (const listItemCache of listItemsCache) {
|
||
if (listItemCache.position.start.line < originalTask.sectionStart) {
|
||
continue;
|
||
}
|
||
if (listItemCache.task === undefined) {
|
||
continue;
|
||
}
|
||
const line = fileLines[listItemCache.position.start.line];
|
||
if (line.includes(globalFilter)) {
|
||
if (sectionIndex === originalTask.sectionIndex) {
|
||
listItem = listItemCache;
|
||
break;
|
||
}
|
||
sectionIndex++;
|
||
}
|
||
}
|
||
if (listItem === undefined) {
|
||
console.error('Tasks: could not find task to toggle in the file.');
|
||
return;
|
||
}
|
||
const updatedFileLines = [
|
||
...fileLines.slice(0, listItem.position.start.line),
|
||
...newTasks.map((task) => task.toFileLineString()),
|
||
...fileLines.slice(listItem.position.start.line + 1), // Only supports single-line tasks.
|
||
];
|
||
yield vault.modify(file, updatedFileLines.join('\n'));
|
||
});
|
||
|
||
class LayoutOptions {
|
||
constructor() {
|
||
this.hideTaskCount = false;
|
||
this.hideBacklinks = false;
|
||
this.hidePriority = false;
|
||
this.hideStartDate = false;
|
||
this.hideScheduledDate = false;
|
||
this.hideDoneDate = false;
|
||
this.hideDueDate = false;
|
||
this.hideRecurrenceRule = false;
|
||
this.hideEditButton = false;
|
||
this.shortMode = false;
|
||
}
|
||
}
|
||
|
||
// =============================================================================
|
||
// Weekday
|
||
// =============================================================================
|
||
var ALL_WEEKDAYS = ['MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU'];
|
||
var Weekday = /** @class */ (function () {
|
||
function Weekday(weekday, n) {
|
||
if (n === 0)
|
||
throw new Error("Can't create weekday with n == 0");
|
||
this.weekday = weekday;
|
||
this.n = n;
|
||
}
|
||
Weekday.fromStr = function (str) {
|
||
return new Weekday(ALL_WEEKDAYS.indexOf(str));
|
||
};
|
||
// __call__ - Cannot call the object directly, do it through
|
||
// e.g. RRule.TH.nth(-1) instead,
|
||
Weekday.prototype.nth = function (n) {
|
||
return this.n === n ? this : new Weekday(this.weekday, n);
|
||
};
|
||
// __eq__
|
||
Weekday.prototype.equals = function (other) {
|
||
return this.weekday === other.weekday && this.n === other.n;
|
||
};
|
||
// __repr__
|
||
Weekday.prototype.toString = function () {
|
||
var s = ALL_WEEKDAYS[this.weekday];
|
||
if (this.n)
|
||
s = (this.n > 0 ? '+' : '') + String(this.n) + s;
|
||
return s;
|
||
};
|
||
Weekday.prototype.getJsWeekday = function () {
|
||
return this.weekday === 6 ? 0 : this.weekday + 1;
|
||
};
|
||
return Weekday;
|
||
}());
|
||
|
||
// =============================================================================
|
||
var isPresent = function (value) {
|
||
return value !== null && value !== undefined;
|
||
};
|
||
var isNumber = function (value) {
|
||
return typeof value === 'number';
|
||
};
|
||
var isWeekdayStr = function (value) {
|
||
return ALL_WEEKDAYS.indexOf(value) >= 0;
|
||
};
|
||
var isArray = Array.isArray;
|
||
/**
|
||
* Simplified version of python's range()
|
||
*/
|
||
var range = function (start, end) {
|
||
if (end === void 0) { end = start; }
|
||
if (arguments.length === 1) {
|
||
end = start;
|
||
start = 0;
|
||
}
|
||
var rang = [];
|
||
for (var i = start; i < end; i++)
|
||
rang.push(i);
|
||
return rang;
|
||
};
|
||
var repeat = function (value, times) {
|
||
var i = 0;
|
||
var array = [];
|
||
if (isArray(value)) {
|
||
for (; i < times; i++)
|
||
array[i] = [].concat(value);
|
||
}
|
||
else {
|
||
for (; i < times; i++)
|
||
array[i] = value;
|
||
}
|
||
return array;
|
||
};
|
||
var toArray = function (item) {
|
||
if (isArray(item)) {
|
||
return item;
|
||
}
|
||
return [item];
|
||
};
|
||
function padStart(item, targetLength, padString) {
|
||
if (padString === void 0) { padString = ' '; }
|
||
var str = String(item);
|
||
targetLength = targetLength >> 0;
|
||
if (str.length > targetLength) {
|
||
return String(str);
|
||
}
|
||
targetLength = targetLength - str.length;
|
||
if (targetLength > padString.length) {
|
||
padString += repeat(padString, targetLength / padString.length);
|
||
}
|
||
return padString.slice(0, targetLength) + String(str);
|
||
}
|
||
/**
|
||
* Python like split
|
||
*/
|
||
var split = function (str, sep, num) {
|
||
var splits = str.split(sep);
|
||
return num
|
||
? splits.slice(0, num).concat([splits.slice(num).join(sep)])
|
||
: splits;
|
||
};
|
||
/**
|
||
* closure/goog/math/math.js:modulo
|
||
* Copyright 2006 The Closure Library Authors.
|
||
* The % operator in JavaScript returns the remainder of a / b, but differs from
|
||
* some other languages in that the result will have the same sign as the
|
||
* dividend. For example, -1 % 8 == -1, whereas in some other languages
|
||
* (such as Python) the result would be 7. This function emulates the more
|
||
* correct modulo behavior, which is useful for certain applications such as
|
||
* calculating an offset index in a circular list.
|
||
*
|
||
* @param {number} a The dividend.
|
||
* @param {number} b The divisor.
|
||
* @return {number} a % b where the result is between 0 and b (either 0 <= x < b
|
||
* or b < x <= 0, depending on the sign of b).
|
||
*/
|
||
var pymod = function (a, b) {
|
||
var r = a % b;
|
||
// If r and b differ in sign, add b to wrap the result to the correct sign.
|
||
return r * b < 0 ? r + b : r;
|
||
};
|
||
/**
|
||
* @see: <http://docs.python.org/library/functions.html#divmod>
|
||
*/
|
||
var divmod = function (a, b) {
|
||
return { div: Math.floor(a / b), mod: pymod(a, b) };
|
||
};
|
||
var empty = function (obj) {
|
||
return !isPresent(obj) || obj.length === 0;
|
||
};
|
||
/**
|
||
* Python-like boolean
|
||
* @return {Boolean} value of an object/primitive, taking into account
|
||
* the fact that in Python an empty list's/tuple's
|
||
* boolean value is False, whereas in JS it's true
|
||
*/
|
||
var notEmpty = function (obj) {
|
||
return !empty(obj);
|
||
};
|
||
/**
|
||
* Return true if a value is in an array
|
||
*/
|
||
var includes = function (arr, val) {
|
||
return notEmpty(arr) && arr.indexOf(val) !== -1;
|
||
};
|
||
|
||
/**
|
||
* General date-related utilities.
|
||
* Also handles several incompatibilities between JavaScript and Python
|
||
*
|
||
*/
|
||
var dateutil;
|
||
(function (dateutil) {
|
||
dateutil.MONTH_DAYS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
||
/**
|
||
* Number of milliseconds of one day
|
||
*/
|
||
dateutil.ONE_DAY = 1000 * 60 * 60 * 24;
|
||
/**
|
||
* @see: <http://docs.python.org/library/datetime.html#datetime.MAXYEAR>
|
||
*/
|
||
dateutil.MAXYEAR = 9999;
|
||
/**
|
||
* Python uses 1-Jan-1 as the base for calculating ordinals but we don't
|
||
* want to confuse the JS engine with milliseconds > Number.MAX_NUMBER,
|
||
* therefore we use 1-Jan-1970 instead
|
||
*/
|
||
dateutil.ORDINAL_BASE = new Date(Date.UTC(1970, 0, 1));
|
||
/**
|
||
* Python: MO-SU: 0 - 6
|
||
* JS: SU-SAT 0 - 6
|
||
*/
|
||
dateutil.PY_WEEKDAYS = [6, 0, 1, 2, 3, 4, 5];
|
||
/**
|
||
* py_date.timetuple()[7]
|
||
*/
|
||
dateutil.getYearDay = function (date) {
|
||
var dateNoTime = new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
||
return (Math.ceil((dateNoTime.valueOf() -
|
||
new Date(date.getUTCFullYear(), 0, 1).valueOf()) /
|
||
dateutil.ONE_DAY) + 1);
|
||
};
|
||
dateutil.isLeapYear = function (year) {
|
||
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
||
};
|
||
dateutil.isDate = function (value) {
|
||
return value instanceof Date;
|
||
};
|
||
dateutil.isValidDate = function (value) {
|
||
return dateutil.isDate(value) && !isNaN(value.getTime());
|
||
};
|
||
/**
|
||
* @return {Number} the date's timezone offset in ms
|
||
*/
|
||
dateutil.tzOffset = function (date) {
|
||
return date.getTimezoneOffset() * 60 * 1000;
|
||
};
|
||
/**
|
||
* @see: <http://www.mcfedries.com/JavaScript/DaysBetween.asp>
|
||
*/
|
||
dateutil.daysBetween = function (date1, date2) {
|
||
// The number of milliseconds in one day
|
||
// Convert both dates to milliseconds
|
||
var date1ms = date1.getTime() - dateutil.tzOffset(date1);
|
||
var date2ms = date2.getTime() - dateutil.tzOffset(date2);
|
||
// Calculate the difference in milliseconds
|
||
var differencems = date1ms - date2ms;
|
||
// Convert back to days and return
|
||
return Math.round(differencems / dateutil.ONE_DAY);
|
||
};
|
||
/**
|
||
* @see: <http://docs.python.org/library/datetime.html#datetime.date.toordinal>
|
||
*/
|
||
dateutil.toOrdinal = function (date) {
|
||
return dateutil.daysBetween(date, dateutil.ORDINAL_BASE);
|
||
};
|
||
/**
|
||
* @see - <http://docs.python.org/library/datetime.html#datetime.date.fromordinal>
|
||
*/
|
||
dateutil.fromOrdinal = function (ordinal) {
|
||
return new Date(dateutil.ORDINAL_BASE.getTime() + ordinal * dateutil.ONE_DAY);
|
||
};
|
||
dateutil.getMonthDays = function (date) {
|
||
var month = date.getUTCMonth();
|
||
return month === 1 && dateutil.isLeapYear(date.getUTCFullYear())
|
||
? 29
|
||
: dateutil.MONTH_DAYS[month];
|
||
};
|
||
/**
|
||
* @return {Number} python-like weekday
|
||
*/
|
||
dateutil.getWeekday = function (date) {
|
||
return dateutil.PY_WEEKDAYS[date.getUTCDay()];
|
||
};
|
||
/**
|
||
* @see: <http://docs.python.org/library/calendar.html#calendar.monthrange>
|
||
*/
|
||
dateutil.monthRange = function (year, month) {
|
||
var date = new Date(Date.UTC(year, month, 1));
|
||
return [dateutil.getWeekday(date), dateutil.getMonthDays(date)];
|
||
};
|
||
/**
|
||
* @see: <http://docs.python.org/library/datetime.html#datetime.datetime.combine>
|
||
*/
|
||
dateutil.combine = function (date, time) {
|
||
time = time || date;
|
||
return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), time.getHours(), time.getMinutes(), time.getSeconds(), time.getMilliseconds()));
|
||
};
|
||
dateutil.clone = function (date) {
|
||
var dolly = new Date(date.getTime());
|
||
return dolly;
|
||
};
|
||
dateutil.cloneDates = function (dates) {
|
||
var clones = [];
|
||
for (var i = 0; i < dates.length; i++) {
|
||
clones.push(dateutil.clone(dates[i]));
|
||
}
|
||
return clones;
|
||
};
|
||
/**
|
||
* Sorts an array of Date or dateutil.Time objects
|
||
*/
|
||
dateutil.sort = function (dates) {
|
||
dates.sort(function (a, b) {
|
||
return a.getTime() - b.getTime();
|
||
});
|
||
};
|
||
dateutil.timeToUntilString = function (time, utc) {
|
||
if (utc === void 0) { utc = true; }
|
||
var date = new Date(time);
|
||
return [
|
||
padStart(date.getUTCFullYear().toString(), 4, '0'),
|
||
padStart(date.getUTCMonth() + 1, 2, '0'),
|
||
padStart(date.getUTCDate(), 2, '0'),
|
||
'T',
|
||
padStart(date.getUTCHours(), 2, '0'),
|
||
padStart(date.getUTCMinutes(), 2, '0'),
|
||
padStart(date.getUTCSeconds(), 2, '0'),
|
||
utc ? 'Z' : ''
|
||
].join('');
|
||
};
|
||
dateutil.untilStringToDate = function (until) {
|
||
var re = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/;
|
||
var bits = re.exec(until);
|
||
if (!bits)
|
||
throw new Error("Invalid UNTIL value: " + until);
|
||
return new Date(Date.UTC(parseInt(bits[1], 10), parseInt(bits[2], 10) - 1, parseInt(bits[3], 10), parseInt(bits[5], 10) || 0, parseInt(bits[6], 10) || 0, parseInt(bits[7], 10) || 0));
|
||
};
|
||
})(dateutil || (dateutil = {}));
|
||
var dateutil$1 = dateutil;
|
||
|
||
/**
|
||
* This class helps us to emulate python's generators, sorta.
|
||
*/
|
||
var IterResult = /** @class */ (function () {
|
||
function IterResult(method, args) {
|
||
this.minDate = null;
|
||
this.maxDate = null;
|
||
this._result = [];
|
||
this.total = 0;
|
||
this.method = method;
|
||
this.args = args;
|
||
if (method === 'between') {
|
||
this.maxDate = args.inc
|
||
? args.before
|
||
: new Date(args.before.getTime() - 1);
|
||
this.minDate = args.inc ? args.after : new Date(args.after.getTime() + 1);
|
||
}
|
||
else if (method === 'before') {
|
||
this.maxDate = args.inc ? args.dt : new Date(args.dt.getTime() - 1);
|
||
}
|
||
else if (method === 'after') {
|
||
this.minDate = args.inc ? args.dt : new Date(args.dt.getTime() + 1);
|
||
}
|
||
}
|
||
/**
|
||
* Possibly adds a date into the result.
|
||
*
|
||
* @param {Date} date - the date isn't necessarly added to the result
|
||
* list (if it is too late/too early)
|
||
* @return {Boolean} true if it makes sense to continue the iteration
|
||
* false if we're done.
|
||
*/
|
||
IterResult.prototype.accept = function (date) {
|
||
++this.total;
|
||
var tooEarly = this.minDate && date < this.minDate;
|
||
var tooLate = this.maxDate && date > this.maxDate;
|
||
if (this.method === 'between') {
|
||
if (tooEarly)
|
||
return true;
|
||
if (tooLate)
|
||
return false;
|
||
}
|
||
else if (this.method === 'before') {
|
||
if (tooLate)
|
||
return false;
|
||
}
|
||
else if (this.method === 'after') {
|
||
if (tooEarly)
|
||
return true;
|
||
this.add(date);
|
||
return false;
|
||
}
|
||
return this.add(date);
|
||
};
|
||
/**
|
||
*
|
||
* @param {Date} date that is part of the result.
|
||
* @return {Boolean} whether we are interested in more values.
|
||
*/
|
||
IterResult.prototype.add = function (date) {
|
||
this._result.push(date);
|
||
return true;
|
||
};
|
||
/**
|
||
* 'before' and 'after' return only one date, whereas 'all'
|
||
* and 'between' an array.
|
||
* @return {Date,Array?}
|
||
*/
|
||
IterResult.prototype.getValue = function () {
|
||
var res = this._result;
|
||
switch (this.method) {
|
||
case 'all':
|
||
case 'between':
|
||
return res;
|
||
case 'before':
|
||
case 'after':
|
||
default:
|
||
return (res.length ? res[res.length - 1] : null);
|
||
}
|
||
};
|
||
IterResult.prototype.clone = function () {
|
||
return new IterResult(this.method, this.args);
|
||
};
|
||
return IterResult;
|
||
}());
|
||
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
/* global Reflect, Promise */
|
||
|
||
var extendStatics = function(d, b) {
|
||
extendStatics = Object.setPrototypeOf ||
|
||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||
return extendStatics(d, b);
|
||
};
|
||
|
||
function __extends(d, b) {
|
||
extendStatics(d, b);
|
||
function __() { this.constructor = d; }
|
||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||
}
|
||
|
||
var __assign = function() {
|
||
__assign = Object.assign || function __assign(t) {
|
||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||
s = arguments[i];
|
||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||
}
|
||
return t;
|
||
};
|
||
return __assign.apply(this, arguments);
|
||
};
|
||
|
||
function __spreadArrays() {
|
||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
||
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
||
r[k] = a[j];
|
||
return r;
|
||
}
|
||
|
||
/**
|
||
* IterResult subclass that calls a callback function on each add,
|
||
* and stops iterating when the callback returns false.
|
||
*/
|
||
var CallbackIterResult = /** @class */ (function (_super) {
|
||
__extends(CallbackIterResult, _super);
|
||
function CallbackIterResult(method, args, iterator) {
|
||
var _this = _super.call(this, method, args) || this;
|
||
_this.iterator = iterator;
|
||
return _this;
|
||
}
|
||
CallbackIterResult.prototype.add = function (date) {
|
||
if (this.iterator(date, this._result.length)) {
|
||
this._result.push(date);
|
||
return true;
|
||
}
|
||
return false;
|
||
};
|
||
return CallbackIterResult;
|
||
}(IterResult));
|
||
|
||
// =============================================================================
|
||
// i18n
|
||
// =============================================================================
|
||
var ENGLISH = {
|
||
dayNames: [
|
||
'Sunday', 'Monday', 'Tuesday', 'Wednesday',
|
||
'Thursday', 'Friday', 'Saturday'
|
||
],
|
||
monthNames: [
|
||
'January', 'February', 'March', 'April', 'May',
|
||
'June', 'July', 'August', 'September', 'October',
|
||
'November', 'December'
|
||
],
|
||
tokens: {
|
||
'SKIP': /^[ \r\n\t]+|^\.$/,
|
||
'number': /^[1-9][0-9]*/,
|
||
'numberAsText': /^(one|two|three)/i,
|
||
'every': /^every/i,
|
||
'day(s)': /^days?/i,
|
||
'weekday(s)': /^weekdays?/i,
|
||
'week(s)': /^weeks?/i,
|
||
'hour(s)': /^hours?/i,
|
||
'minute(s)': /^minutes?/i,
|
||
'month(s)': /^months?/i,
|
||
'year(s)': /^years?/i,
|
||
'on': /^(on|in)/i,
|
||
'at': /^(at)/i,
|
||
'the': /^the/i,
|
||
'first': /^first/i,
|
||
'second': /^second/i,
|
||
'third': /^third/i,
|
||
'nth': /^([1-9][0-9]*)(\.|th|nd|rd|st)/i,
|
||
'last': /^last/i,
|
||
'for': /^for/i,
|
||
'time(s)': /^times?/i,
|
||
'until': /^(un)?til/i,
|
||
'monday': /^mo(n(day)?)?/i,
|
||
'tuesday': /^tu(e(s(day)?)?)?/i,
|
||
'wednesday': /^we(d(n(esday)?)?)?/i,
|
||
'thursday': /^th(u(r(sday)?)?)?/i,
|
||
'friday': /^fr(i(day)?)?/i,
|
||
'saturday': /^sa(t(urday)?)?/i,
|
||
'sunday': /^su(n(day)?)?/i,
|
||
'january': /^jan(uary)?/i,
|
||
'february': /^feb(ruary)?/i,
|
||
'march': /^mar(ch)?/i,
|
||
'april': /^apr(il)?/i,
|
||
'may': /^may/i,
|
||
'june': /^june?/i,
|
||
'july': /^july?/i,
|
||
'august': /^aug(ust)?/i,
|
||
'september': /^sep(t(ember)?)?/i,
|
||
'october': /^oct(ober)?/i,
|
||
'november': /^nov(ember)?/i,
|
||
'december': /^dec(ember)?/i,
|
||
'comma': /^(,\s*|(and|or)\s*)+/i
|
||
}
|
||
};
|
||
|
||
// =============================================================================
|
||
// Helper functions
|
||
// =============================================================================
|
||
/**
|
||
* Return true if a value is in an array
|
||
*/
|
||
var contains = function (arr, val) {
|
||
return arr.indexOf(val) !== -1;
|
||
};
|
||
var defaultGetText = function (id) { return id.toString(); };
|
||
var defaultDateFormatter = function (year, month, day) { return month + " " + day + ", " + year; };
|
||
/**
|
||
*
|
||
* @param {RRule} rrule
|
||
* Optional:
|
||
* @param {Function} gettext function
|
||
* @param {Object} language definition
|
||
* @constructor
|
||
*/
|
||
var ToText = /** @class */ (function () {
|
||
function ToText(rrule, gettext, language, dateFormatter) {
|
||
if (gettext === void 0) { gettext = defaultGetText; }
|
||
if (language === void 0) { language = ENGLISH; }
|
||
if (dateFormatter === void 0) { dateFormatter = defaultDateFormatter; }
|
||
this.text = [];
|
||
this.language = language || ENGLISH;
|
||
this.gettext = gettext;
|
||
this.dateFormatter = dateFormatter;
|
||
this.rrule = rrule;
|
||
this.options = rrule.options;
|
||
this.origOptions = rrule.origOptions;
|
||
if (this.origOptions.bymonthday) {
|
||
var bymonthday = [].concat(this.options.bymonthday);
|
||
var bynmonthday = [].concat(this.options.bynmonthday);
|
||
bymonthday.sort(function (a, b) { return a - b; });
|
||
bynmonthday.sort(function (a, b) { return b - a; });
|
||
// 1, 2, 3, .., -5, -4, -3, ..
|
||
this.bymonthday = bymonthday.concat(bynmonthday);
|
||
if (!this.bymonthday.length)
|
||
this.bymonthday = null;
|
||
}
|
||
if (isPresent(this.origOptions.byweekday)) {
|
||
var byweekday = !isArray(this.origOptions.byweekday)
|
||
? [this.origOptions.byweekday]
|
||
: this.origOptions.byweekday;
|
||
var days = String(byweekday);
|
||
this.byweekday = {
|
||
allWeeks: byweekday.filter(function (weekday) {
|
||
return !weekday.n;
|
||
}),
|
||
someWeeks: byweekday.filter(function (weekday) {
|
||
return Boolean(weekday.n);
|
||
}),
|
||
isWeekdays: days.indexOf('MO') !== -1 &&
|
||
days.indexOf('TU') !== -1 &&
|
||
days.indexOf('WE') !== -1 &&
|
||
days.indexOf('TH') !== -1 &&
|
||
days.indexOf('FR') !== -1 &&
|
||
days.indexOf('SA') === -1 &&
|
||
days.indexOf('SU') === -1,
|
||
isEveryDay: days.indexOf('MO') !== -1 &&
|
||
days.indexOf('TU') !== -1 &&
|
||
days.indexOf('WE') !== -1 &&
|
||
days.indexOf('TH') !== -1 &&
|
||
days.indexOf('FR') !== -1 &&
|
||
days.indexOf('SA') !== -1 &&
|
||
days.indexOf('SU') !== -1
|
||
};
|
||
var sortWeekDays = function (a, b) {
|
||
return a.weekday - b.weekday;
|
||
};
|
||
this.byweekday.allWeeks.sort(sortWeekDays);
|
||
this.byweekday.someWeeks.sort(sortWeekDays);
|
||
if (!this.byweekday.allWeeks.length)
|
||
this.byweekday.allWeeks = null;
|
||
if (!this.byweekday.someWeeks.length)
|
||
this.byweekday.someWeeks = null;
|
||
}
|
||
else {
|
||
this.byweekday = null;
|
||
}
|
||
}
|
||
/**
|
||
* Test whether the rrule can be fully converted to text.
|
||
* @param {RRule} rrule
|
||
* @return {Boolean}
|
||
*/
|
||
ToText.isFullyConvertible = function (rrule) {
|
||
var canConvert = true;
|
||
if (!(rrule.options.freq in ToText.IMPLEMENTED))
|
||
return false;
|
||
if (rrule.origOptions.until && rrule.origOptions.count)
|
||
return false;
|
||
for (var key in rrule.origOptions) {
|
||
if (contains(['dtstart', 'wkst', 'freq'], key))
|
||
return true;
|
||
if (!contains(ToText.IMPLEMENTED[rrule.options.freq], key))
|
||
return false;
|
||
}
|
||
return canConvert;
|
||
};
|
||
ToText.prototype.isFullyConvertible = function () {
|
||
return ToText.isFullyConvertible(this.rrule);
|
||
};
|
||
/**
|
||
* Perform the conversion. Only some of the frequencies are supported.
|
||
* If some of the rrule's options aren't supported, they'll
|
||
* be omitted from the output an "(~ approximate)" will be appended.
|
||
* @return {*}
|
||
*/
|
||
ToText.prototype.toString = function () {
|
||
var gettext = this.gettext;
|
||
if (!(this.options.freq in ToText.IMPLEMENTED)) {
|
||
return gettext('RRule error: Unable to fully convert this rrule to text');
|
||
}
|
||
this.text = [gettext('every')];
|
||
// @ts-ignore
|
||
this[RRule.FREQUENCIES[this.options.freq]]();
|
||
if (this.options.until) {
|
||
this.add(gettext('until'));
|
||
var until = this.options.until;
|
||
this.add(this.dateFormatter(until.getUTCFullYear(), this.language.monthNames[until.getUTCMonth()], until.getUTCDate()));
|
||
}
|
||
else if (this.options.count) {
|
||
this.add(gettext('for'))
|
||
.add(this.options.count.toString())
|
||
.add(this.plural(this.options.count) ? gettext('times') : gettext('time'));
|
||
}
|
||
if (!this.isFullyConvertible())
|
||
this.add(gettext('(~ approximate)'));
|
||
return this.text.join('');
|
||
};
|
||
ToText.prototype.HOURLY = function () {
|
||
var gettext = this.gettext;
|
||
if (this.options.interval !== 1)
|
||
this.add(this.options.interval.toString());
|
||
this.add(this.plural(this.options.interval) ? gettext('hours') : gettext('hour'));
|
||
};
|
||
ToText.prototype.MINUTELY = function () {
|
||
var gettext = this.gettext;
|
||
if (this.options.interval !== 1)
|
||
this.add(this.options.interval.toString());
|
||
this.add(this.plural(this.options.interval)
|
||
? gettext('minutes')
|
||
: gettext('minute'));
|
||
};
|
||
ToText.prototype.DAILY = function () {
|
||
var gettext = this.gettext;
|
||
if (this.options.interval !== 1)
|
||
this.add(this.options.interval.toString());
|
||
if (this.byweekday && this.byweekday.isWeekdays) {
|
||
this.add(this.plural(this.options.interval)
|
||
? gettext('weekdays')
|
||
: gettext('weekday'));
|
||
}
|
||
else {
|
||
this.add(this.plural(this.options.interval) ? gettext('days') : gettext('day'));
|
||
}
|
||
if (this.origOptions.bymonth) {
|
||
this.add(gettext('in'));
|
||
this._bymonth();
|
||
}
|
||
if (this.bymonthday) {
|
||
this._bymonthday();
|
||
}
|
||
else if (this.byweekday) {
|
||
this._byweekday();
|
||
}
|
||
else if (this.origOptions.byhour) {
|
||
this._byhour();
|
||
}
|
||
};
|
||
ToText.prototype.WEEKLY = function () {
|
||
var gettext = this.gettext;
|
||
if (this.options.interval !== 1) {
|
||
this.add(this.options.interval.toString()).add(this.plural(this.options.interval) ? gettext('weeks') : gettext('week'));
|
||
}
|
||
if (this.byweekday && this.byweekday.isWeekdays) {
|
||
if (this.options.interval === 1) {
|
||
this.add(this.plural(this.options.interval)
|
||
? gettext('weekdays')
|
||
: gettext('weekday'));
|
||
}
|
||
else {
|
||
this.add(gettext('on')).add(gettext('weekdays'));
|
||
}
|
||
}
|
||
else if (this.byweekday && this.byweekday.isEveryDay) {
|
||
this.add(this.plural(this.options.interval) ? gettext('days') : gettext('day'));
|
||
}
|
||
else {
|
||
if (this.options.interval === 1)
|
||
this.add(gettext('week'));
|
||
if (this.origOptions.bymonth) {
|
||
this.add(gettext('in'));
|
||
this._bymonth();
|
||
}
|
||
if (this.bymonthday) {
|
||
this._bymonthday();
|
||
}
|
||
else if (this.byweekday) {
|
||
this._byweekday();
|
||
}
|
||
}
|
||
};
|
||
ToText.prototype.MONTHLY = function () {
|
||
var gettext = this.gettext;
|
||
if (this.origOptions.bymonth) {
|
||
if (this.options.interval !== 1) {
|
||
this.add(this.options.interval.toString()).add(gettext('months'));
|
||
if (this.plural(this.options.interval))
|
||
this.add(gettext('in'));
|
||
}
|
||
this._bymonth();
|
||
}
|
||
else {
|
||
if (this.options.interval !== 1)
|
||
this.add(this.options.interval.toString());
|
||
this.add(this.plural(this.options.interval)
|
||
? gettext('months')
|
||
: gettext('month'));
|
||
}
|
||
if (this.bymonthday) {
|
||
this._bymonthday();
|
||
}
|
||
else if (this.byweekday && this.byweekday.isWeekdays) {
|
||
this.add(gettext('on')).add(gettext('weekdays'));
|
||
}
|
||
else if (this.byweekday) {
|
||
this._byweekday();
|
||
}
|
||
};
|
||
ToText.prototype.YEARLY = function () {
|
||
var gettext = this.gettext;
|
||
if (this.origOptions.bymonth) {
|
||
if (this.options.interval !== 1) {
|
||
this.add(this.options.interval.toString());
|
||
this.add(gettext('years'));
|
||
}
|
||
this._bymonth();
|
||
}
|
||
else {
|
||
if (this.options.interval !== 1)
|
||
this.add(this.options.interval.toString());
|
||
this.add(this.plural(this.options.interval) ? gettext('years') : gettext('year'));
|
||
}
|
||
if (this.bymonthday) {
|
||
this._bymonthday();
|
||
}
|
||
else if (this.byweekday) {
|
||
this._byweekday();
|
||
}
|
||
if (this.options.byyearday) {
|
||
this.add(gettext('on the'))
|
||
.add(this.list(this.options.byyearday, this.nth, gettext('and')))
|
||
.add(gettext('day'));
|
||
}
|
||
if (this.options.byweekno) {
|
||
this.add(gettext('in'))
|
||
.add(this.plural(this.options.byweekno.length)
|
||
? gettext('weeks')
|
||
: gettext('week'))
|
||
.add(this.list(this.options.byweekno, undefined, gettext('and')));
|
||
}
|
||
};
|
||
ToText.prototype._bymonthday = function () {
|
||
var gettext = this.gettext;
|
||
if (this.byweekday && this.byweekday.allWeeks) {
|
||
this.add(gettext('on'))
|
||
.add(this.list(this.byweekday.allWeeks, this.weekdaytext, gettext('or')))
|
||
.add(gettext('the'))
|
||
.add(this.list(this.bymonthday, this.nth, gettext('or')));
|
||
}
|
||
else {
|
||
this.add(gettext('on the')).add(this.list(this.bymonthday, this.nth, gettext('and')));
|
||
}
|
||
// this.add(gettext('DAY'))
|
||
};
|
||
ToText.prototype._byweekday = function () {
|
||
var gettext = this.gettext;
|
||
if (this.byweekday.allWeeks && !this.byweekday.isWeekdays) {
|
||
this.add(gettext('on')).add(this.list(this.byweekday.allWeeks, this.weekdaytext));
|
||
}
|
||
if (this.byweekday.someWeeks) {
|
||
if (this.byweekday.allWeeks)
|
||
this.add(gettext('and'));
|
||
this.add(gettext('on the')).add(this.list(this.byweekday.someWeeks, this.weekdaytext, gettext('and')));
|
||
}
|
||
};
|
||
ToText.prototype._byhour = function () {
|
||
var gettext = this.gettext;
|
||
this.add(gettext('at')).add(this.list(this.origOptions.byhour, undefined, gettext('and')));
|
||
};
|
||
ToText.prototype._bymonth = function () {
|
||
this.add(this.list(this.options.bymonth, this.monthtext, this.gettext('and')));
|
||
};
|
||
ToText.prototype.nth = function (n) {
|
||
n = parseInt(n.toString(), 10);
|
||
var nth;
|
||
var npos;
|
||
var gettext = this.gettext;
|
||
if (n === -1)
|
||
return gettext('last');
|
||
npos = Math.abs(n);
|
||
switch (npos) {
|
||
case 1:
|
||
case 21:
|
||
case 31:
|
||
nth = npos + gettext('st');
|
||
break;
|
||
case 2:
|
||
case 22:
|
||
nth = npos + gettext('nd');
|
||
break;
|
||
case 3:
|
||
case 23:
|
||
nth = npos + gettext('rd');
|
||
break;
|
||
default:
|
||
nth = npos + gettext('th');
|
||
}
|
||
return n < 0 ? nth + ' ' + gettext('last') : nth;
|
||
};
|
||
ToText.prototype.monthtext = function (m) {
|
||
return this.language.monthNames[m - 1];
|
||
};
|
||
ToText.prototype.weekdaytext = function (wday) {
|
||
var weekday = isNumber(wday) ? (wday + 1) % 7 : wday.getJsWeekday();
|
||
return ((wday.n ? this.nth(wday.n) + ' ' : '') + this.language.dayNames[weekday]);
|
||
};
|
||
ToText.prototype.plural = function (n) {
|
||
return n % 100 !== 1;
|
||
};
|
||
ToText.prototype.add = function (s) {
|
||
this.text.push(' ');
|
||
this.text.push(s);
|
||
return this;
|
||
};
|
||
ToText.prototype.list = function (arr, callback, finalDelim, delim) {
|
||
if (delim === void 0) { delim = ','; }
|
||
if (!isArray(arr)) {
|
||
arr = [arr];
|
||
}
|
||
var delimJoin = function (array, delimiter, finalDelimiter) {
|
||
var list = '';
|
||
for (var i = 0; i < array.length; i++) {
|
||
if (i !== 0) {
|
||
if (i === array.length - 1) {
|
||
list += ' ' + finalDelimiter + ' ';
|
||
}
|
||
else {
|
||
list += delimiter + ' ';
|
||
}
|
||
}
|
||
list += array[i];
|
||
}
|
||
return list;
|
||
};
|
||
callback =
|
||
callback ||
|
||
function (o) {
|
||
return o.toString();
|
||
};
|
||
var self = this;
|
||
var realCallback = function (arg) {
|
||
return callback && callback.call(self, arg);
|
||
};
|
||
if (finalDelim) {
|
||
return delimJoin(arr.map(realCallback), delim, finalDelim);
|
||
}
|
||
else {
|
||
return arr.map(realCallback).join(delim + ' ');
|
||
}
|
||
};
|
||
return ToText;
|
||
}());
|
||
|
||
// =============================================================================
|
||
// Parser
|
||
// =============================================================================
|
||
var Parser = /** @class */ (function () {
|
||
function Parser(rules) {
|
||
this.done = true;
|
||
this.rules = rules;
|
||
}
|
||
Parser.prototype.start = function (text) {
|
||
this.text = text;
|
||
this.done = false;
|
||
return this.nextSymbol();
|
||
};
|
||
Parser.prototype.isDone = function () {
|
||
return this.done && this.symbol === null;
|
||
};
|
||
Parser.prototype.nextSymbol = function () {
|
||
var best;
|
||
var bestSymbol;
|
||
var p = this;
|
||
this.symbol = null;
|
||
this.value = null;
|
||
do {
|
||
if (this.done)
|
||
return false;
|
||
var rule = void 0;
|
||
best = null;
|
||
for (var name_1 in this.rules) {
|
||
rule = this.rules[name_1];
|
||
var match = rule.exec(p.text);
|
||
if (match) {
|
||
if (best === null || match[0].length > best[0].length) {
|
||
best = match;
|
||
bestSymbol = name_1;
|
||
}
|
||
}
|
||
}
|
||
if (best != null) {
|
||
this.text = this.text.substr(best[0].length);
|
||
if (this.text === '')
|
||
this.done = true;
|
||
}
|
||
if (best == null) {
|
||
this.done = true;
|
||
this.symbol = null;
|
||
this.value = null;
|
||
return;
|
||
}
|
||
// @ts-ignore
|
||
} while (bestSymbol === 'SKIP');
|
||
// @ts-ignore
|
||
this.symbol = bestSymbol;
|
||
this.value = best;
|
||
return true;
|
||
};
|
||
Parser.prototype.accept = function (name) {
|
||
if (this.symbol === name) {
|
||
if (this.value) {
|
||
var v = this.value;
|
||
this.nextSymbol();
|
||
return v;
|
||
}
|
||
this.nextSymbol();
|
||
return true;
|
||
}
|
||
return false;
|
||
};
|
||
Parser.prototype.acceptNumber = function () {
|
||
return this.accept('number');
|
||
};
|
||
Parser.prototype.expect = function (name) {
|
||
if (this.accept(name))
|
||
return true;
|
||
throw new Error('expected ' + name + ' but found ' + this.symbol);
|
||
};
|
||
return Parser;
|
||
}());
|
||
function parseText(text, language) {
|
||
if (language === void 0) { language = ENGLISH; }
|
||
var options = {};
|
||
var ttr = new Parser(language.tokens);
|
||
if (!ttr.start(text))
|
||
return null;
|
||
S();
|
||
return options;
|
||
function S() {
|
||
// every [n]
|
||
ttr.expect('every');
|
||
var n = ttr.acceptNumber();
|
||
if (n)
|
||
options.interval = parseInt(n[0], 10);
|
||
if (ttr.isDone())
|
||
throw new Error('Unexpected end');
|
||
switch (ttr.symbol) {
|
||
case 'day(s)':
|
||
options.freq = RRule.DAILY;
|
||
if (ttr.nextSymbol()) {
|
||
AT();
|
||
F();
|
||
}
|
||
break;
|
||
// FIXME Note: every 2 weekdays != every two weeks on weekdays.
|
||
// DAILY on weekdays is not a valid rule
|
||
case 'weekday(s)':
|
||
options.freq = RRule.WEEKLY;
|
||
options.byweekday = [
|
||
RRule.MO,
|
||
RRule.TU,
|
||
RRule.WE,
|
||
RRule.TH,
|
||
RRule.FR
|
||
];
|
||
ttr.nextSymbol();
|
||
F();
|
||
break;
|
||
case 'week(s)':
|
||
options.freq = RRule.WEEKLY;
|
||
if (ttr.nextSymbol()) {
|
||
ON();
|
||
F();
|
||
}
|
||
break;
|
||
case 'hour(s)':
|
||
options.freq = RRule.HOURLY;
|
||
if (ttr.nextSymbol()) {
|
||
ON();
|
||
F();
|
||
}
|
||
break;
|
||
case 'minute(s)':
|
||
options.freq = RRule.MINUTELY;
|
||
if (ttr.nextSymbol()) {
|
||
ON();
|
||
F();
|
||
}
|
||
break;
|
||
case 'month(s)':
|
||
options.freq = RRule.MONTHLY;
|
||
if (ttr.nextSymbol()) {
|
||
ON();
|
||
F();
|
||
}
|
||
break;
|
||
case 'year(s)':
|
||
options.freq = RRule.YEARLY;
|
||
if (ttr.nextSymbol()) {
|
||
ON();
|
||
F();
|
||
}
|
||
break;
|
||
case 'monday':
|
||
case 'tuesday':
|
||
case 'wednesday':
|
||
case 'thursday':
|
||
case 'friday':
|
||
case 'saturday':
|
||
case 'sunday':
|
||
options.freq = RRule.WEEKLY;
|
||
var key = ttr.symbol.substr(0, 2).toUpperCase();
|
||
options.byweekday = [RRule[key]];
|
||
if (!ttr.nextSymbol())
|
||
return;
|
||
// TODO check for duplicates
|
||
while (ttr.accept('comma')) {
|
||
if (ttr.isDone())
|
||
throw new Error('Unexpected end');
|
||
var wkd = decodeWKD();
|
||
if (!wkd) {
|
||
throw new Error('Unexpected symbol ' + ttr.symbol + ', expected weekday');
|
||
}
|
||
// @ts-ignore
|
||
options.byweekday.push(RRule[wkd]);
|
||
ttr.nextSymbol();
|
||
}
|
||
MDAYs();
|
||
F();
|
||
break;
|
||
case 'january':
|
||
case 'february':
|
||
case 'march':
|
||
case 'april':
|
||
case 'may':
|
||
case 'june':
|
||
case 'july':
|
||
case 'august':
|
||
case 'september':
|
||
case 'october':
|
||
case 'november':
|
||
case 'december':
|
||
options.freq = RRule.YEARLY;
|
||
options.bymonth = [decodeM()];
|
||
if (!ttr.nextSymbol())
|
||
return;
|
||
// TODO check for duplicates
|
||
while (ttr.accept('comma')) {
|
||
if (ttr.isDone())
|
||
throw new Error('Unexpected end');
|
||
var m = decodeM();
|
||
if (!m) {
|
||
throw new Error('Unexpected symbol ' + ttr.symbol + ', expected month');
|
||
}
|
||
options.bymonth.push(m);
|
||
ttr.nextSymbol();
|
||
}
|
||
ON();
|
||
F();
|
||
break;
|
||
default:
|
||
throw new Error('Unknown symbol');
|
||
}
|
||
}
|
||
function ON() {
|
||
var on = ttr.accept('on');
|
||
var the = ttr.accept('the');
|
||
if (!(on || the))
|
||
return;
|
||
do {
|
||
var nth = decodeNTH();
|
||
var wkd = decodeWKD();
|
||
var m = decodeM();
|
||
// nth <weekday> | <weekday>
|
||
if (nth) {
|
||
// ttr.nextSymbol()
|
||
if (wkd) {
|
||
ttr.nextSymbol();
|
||
if (!options.byweekday)
|
||
options.byweekday = [];
|
||
// @ts-ignore
|
||
options.byweekday.push(RRule[wkd].nth(nth));
|
||
}
|
||
else {
|
||
if (!options.bymonthday)
|
||
options.bymonthday = [];
|
||
// @ts-ignore
|
||
options.bymonthday.push(nth);
|
||
ttr.accept('day(s)');
|
||
}
|
||
// <weekday>
|
||
}
|
||
else if (wkd) {
|
||
ttr.nextSymbol();
|
||
if (!options.byweekday)
|
||
options.byweekday = [];
|
||
// @ts-ignore
|
||
options.byweekday.push(RRule[wkd]);
|
||
}
|
||
else if (ttr.symbol === 'weekday(s)') {
|
||
ttr.nextSymbol();
|
||
if (!options.byweekday) {
|
||
options.byweekday = [
|
||
RRule.MO,
|
||
RRule.TU,
|
||
RRule.WE,
|
||
RRule.TH,
|
||
RRule.FR
|
||
];
|
||
}
|
||
}
|
||
else if (ttr.symbol === 'week(s)') {
|
||
ttr.nextSymbol();
|
||
var n = ttr.acceptNumber();
|
||
if (!n) {
|
||
throw new Error('Unexpected symbol ' + ttr.symbol + ', expected week number');
|
||
}
|
||
options.byweekno = [parseInt(n[0], 10)];
|
||
while (ttr.accept('comma')) {
|
||
n = ttr.acceptNumber();
|
||
if (!n) {
|
||
throw new Error('Unexpected symbol ' + ttr.symbol + '; expected monthday');
|
||
}
|
||
options.byweekno.push(parseInt(n[0], 10));
|
||
}
|
||
}
|
||
else if (m) {
|
||
ttr.nextSymbol();
|
||
if (!options.bymonth)
|
||
options.bymonth = [];
|
||
// @ts-ignore
|
||
options.bymonth.push(m);
|
||
}
|
||
else {
|
||
return;
|
||
}
|
||
} while (ttr.accept('comma') || ttr.accept('the') || ttr.accept('on'));
|
||
}
|
||
function AT() {
|
||
var at = ttr.accept('at');
|
||
if (!at)
|
||
return;
|
||
do {
|
||
var n = ttr.acceptNumber();
|
||
if (!n) {
|
||
throw new Error('Unexpected symbol ' + ttr.symbol + ', expected hour');
|
||
}
|
||
options.byhour = [parseInt(n[0], 10)];
|
||
while (ttr.accept('comma')) {
|
||
n = ttr.acceptNumber();
|
||
if (!n) {
|
||
throw new Error('Unexpected symbol ' + ttr.symbol + '; expected hour');
|
||
}
|
||
options.byhour.push(parseInt(n[0], 10));
|
||
}
|
||
} while (ttr.accept('comma') || ttr.accept('at'));
|
||
}
|
||
function decodeM() {
|
||
switch (ttr.symbol) {
|
||
case 'january':
|
||
return 1;
|
||
case 'february':
|
||
return 2;
|
||
case 'march':
|
||
return 3;
|
||
case 'april':
|
||
return 4;
|
||
case 'may':
|
||
return 5;
|
||
case 'june':
|
||
return 6;
|
||
case 'july':
|
||
return 7;
|
||
case 'august':
|
||
return 8;
|
||
case 'september':
|
||
return 9;
|
||
case 'october':
|
||
return 10;
|
||
case 'november':
|
||
return 11;
|
||
case 'december':
|
||
return 12;
|
||
default:
|
||
return false;
|
||
}
|
||
}
|
||
function decodeWKD() {
|
||
switch (ttr.symbol) {
|
||
case 'monday':
|
||
case 'tuesday':
|
||
case 'wednesday':
|
||
case 'thursday':
|
||
case 'friday':
|
||
case 'saturday':
|
||
case 'sunday':
|
||
return ttr.symbol.substr(0, 2).toUpperCase();
|
||
default:
|
||
return false;
|
||
}
|
||
}
|
||
function decodeNTH() {
|
||
switch (ttr.symbol) {
|
||
case 'last':
|
||
ttr.nextSymbol();
|
||
return -1;
|
||
case 'first':
|
||
ttr.nextSymbol();
|
||
return 1;
|
||
case 'second':
|
||
ttr.nextSymbol();
|
||
return ttr.accept('last') ? -2 : 2;
|
||
case 'third':
|
||
ttr.nextSymbol();
|
||
return ttr.accept('last') ? -3 : 3;
|
||
case 'nth':
|
||
var v = parseInt(ttr.value[1], 10);
|
||
if (v < -366 || v > 366)
|
||
throw new Error('Nth out of range: ' + v);
|
||
ttr.nextSymbol();
|
||
return ttr.accept('last') ? -v : v;
|
||
default:
|
||
return false;
|
||
}
|
||
}
|
||
function MDAYs() {
|
||
ttr.accept('on');
|
||
ttr.accept('the');
|
||
var nth = decodeNTH();
|
||
if (!nth)
|
||
return;
|
||
options.bymonthday = [nth];
|
||
ttr.nextSymbol();
|
||
while (ttr.accept('comma')) {
|
||
nth = decodeNTH();
|
||
if (!nth) {
|
||
throw new Error('Unexpected symbol ' + ttr.symbol + '; expected monthday');
|
||
}
|
||
options.bymonthday.push(nth);
|
||
ttr.nextSymbol();
|
||
}
|
||
}
|
||
function F() {
|
||
if (ttr.symbol === 'until') {
|
||
var date = Date.parse(ttr.text);
|
||
if (!date)
|
||
throw new Error('Cannot parse until date:' + ttr.text);
|
||
options.until = new Date(date);
|
||
}
|
||
else if (ttr.accept('for')) {
|
||
options.count = parseInt(ttr.value[0], 10);
|
||
ttr.expect('number');
|
||
// ttr.expect('times')
|
||
}
|
||
}
|
||
}
|
||
|
||
var Frequency;
|
||
(function (Frequency) {
|
||
Frequency[Frequency["YEARLY"] = 0] = "YEARLY";
|
||
Frequency[Frequency["MONTHLY"] = 1] = "MONTHLY";
|
||
Frequency[Frequency["WEEKLY"] = 2] = "WEEKLY";
|
||
Frequency[Frequency["DAILY"] = 3] = "DAILY";
|
||
Frequency[Frequency["HOURLY"] = 4] = "HOURLY";
|
||
Frequency[Frequency["MINUTELY"] = 5] = "MINUTELY";
|
||
Frequency[Frequency["SECONDLY"] = 6] = "SECONDLY";
|
||
})(Frequency || (Frequency = {}));
|
||
function freqIsDailyOrGreater(freq) {
|
||
return freq < Frequency.HOURLY;
|
||
}
|
||
|
||
/*!
|
||
* rrule.js - Library for working with recurrence rules for calendar dates.
|
||
* https://github.com/jakubroztocil/rrule
|
||
*
|
||
* Copyright 2010, Jakub Roztocil and Lars Schoning
|
||
* Licenced under the BSD licence.
|
||
* https://github.com/jakubroztocil/rrule/blob/master/LICENCE
|
||
*
|
||
*/
|
||
/**
|
||
*
|
||
* Implementation of RRule.fromText() and RRule::toText().
|
||
*
|
||
*
|
||
* On the client side, this file needs to be included
|
||
* when those functions are used.
|
||
*
|
||
*/
|
||
// =============================================================================
|
||
// fromText
|
||
// =============================================================================
|
||
/**
|
||
* Will be able to convert some of the below described rules from
|
||
* text format to a rule object.
|
||
*
|
||
*
|
||
* RULES
|
||
*
|
||
* Every ([n])
|
||
* day(s)
|
||
* | [weekday], ..., (and) [weekday]
|
||
* | weekday(s)
|
||
* | week(s)
|
||
* | month(s)
|
||
* | [month], ..., (and) [month]
|
||
* | year(s)
|
||
*
|
||
*
|
||
* Plus 0, 1, or multiple of these:
|
||
*
|
||
* on [weekday], ..., (or) [weekday] the [monthday], [monthday], ... (or) [monthday]
|
||
*
|
||
* on [weekday], ..., (and) [weekday]
|
||
*
|
||
* on the [monthday], [monthday], ... (and) [monthday] (day of the month)
|
||
*
|
||
* on the [nth-weekday], ..., (and) [nth-weekday] (of the month/year)
|
||
*
|
||
*
|
||
* Plus 0 or 1 of these:
|
||
*
|
||
* for [n] time(s)
|
||
*
|
||
* until [date]
|
||
*
|
||
* Plus (.)
|
||
*
|
||
*
|
||
* Definitely no supported for parsing:
|
||
*
|
||
* (for year):
|
||
* in week(s) [n], ..., (and) [n]
|
||
*
|
||
* on the [yearday], ..., (and) [n] day of the year
|
||
* on day [yearday], ..., (and) [n]
|
||
*
|
||
*
|
||
* NON-TERMINALS
|
||
*
|
||
* [n]: 1, 2 ..., one, two, three ..
|
||
* [month]: January, February, March, April, May, ... December
|
||
* [weekday]: Monday, ... Sunday
|
||
* [nth-weekday]: first [weekday], 2nd [weekday], ... last [weekday], ...
|
||
* [monthday]: first, 1., 2., 1st, 2nd, second, ... 31st, last day, 2nd last day, ..
|
||
* [date]:
|
||
* [month] (0-31(,) ([year])),
|
||
* (the) 0-31.(1-12.([year])),
|
||
* (the) 0-31/(1-12/([year])),
|
||
* [weekday]
|
||
*
|
||
* [year]: 0000, 0001, ... 01, 02, ..
|
||
*
|
||
* Definitely not supported for parsing:
|
||
*
|
||
* [yearday]: first, 1., 2., 1st, 2nd, second, ... 366th, last day, 2nd last day, ..
|
||
*
|
||
* @param {String} text
|
||
* @return {Object, Boolean} the rule, or null.
|
||
*/
|
||
var fromText = function (text, language) {
|
||
if (language === void 0) { language = ENGLISH; }
|
||
return new RRule(parseText(text, language) || undefined);
|
||
};
|
||
var common = [
|
||
'count',
|
||
'until',
|
||
'interval',
|
||
'byweekday',
|
||
'bymonthday',
|
||
'bymonth'
|
||
];
|
||
ToText.IMPLEMENTED = [];
|
||
ToText.IMPLEMENTED[Frequency.HOURLY] = common;
|
||
ToText.IMPLEMENTED[Frequency.MINUTELY] = common;
|
||
ToText.IMPLEMENTED[Frequency.DAILY] = ['byhour'].concat(common);
|
||
ToText.IMPLEMENTED[Frequency.WEEKLY] = common;
|
||
ToText.IMPLEMENTED[Frequency.MONTHLY] = common;
|
||
ToText.IMPLEMENTED[Frequency.YEARLY] = ['byweekno', 'byyearday'].concat(common);
|
||
// =============================================================================
|
||
// Export
|
||
// =============================================================================
|
||
var toText = function (rrule, gettext, language, dateFormatter) {
|
||
return new ToText(rrule, gettext, language, dateFormatter).toString();
|
||
};
|
||
var isFullyConvertible = ToText.isFullyConvertible;
|
||
|
||
var Time = /** @class */ (function () {
|
||
function Time(hour, minute, second, millisecond) {
|
||
this.hour = hour;
|
||
this.minute = minute;
|
||
this.second = second;
|
||
this.millisecond = millisecond || 0;
|
||
}
|
||
Time.prototype.getHours = function () {
|
||
return this.hour;
|
||
};
|
||
Time.prototype.getMinutes = function () {
|
||
return this.minute;
|
||
};
|
||
Time.prototype.getSeconds = function () {
|
||
return this.second;
|
||
};
|
||
Time.prototype.getMilliseconds = function () {
|
||
return this.millisecond;
|
||
};
|
||
Time.prototype.getTime = function () {
|
||
return ((this.hour * 60 * 60 + this.minute * 60 + this.second) * 1000 +
|
||
this.millisecond);
|
||
};
|
||
return Time;
|
||
}());
|
||
var DateTime = /** @class */ (function (_super) {
|
||
__extends(DateTime, _super);
|
||
function DateTime(year, month, day, hour, minute, second, millisecond) {
|
||
var _this = _super.call(this, hour, minute, second, millisecond) || this;
|
||
_this.year = year;
|
||
_this.month = month;
|
||
_this.day = day;
|
||
return _this;
|
||
}
|
||
DateTime.fromDate = function (date) {
|
||
return new this(date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.valueOf() % 1000);
|
||
};
|
||
DateTime.prototype.getWeekday = function () {
|
||
return dateutil.getWeekday(new Date(this.getTime()));
|
||
};
|
||
DateTime.prototype.getTime = function () {
|
||
return new Date(Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second, this.millisecond)).getTime();
|
||
};
|
||
DateTime.prototype.getDay = function () {
|
||
return this.day;
|
||
};
|
||
DateTime.prototype.getMonth = function () {
|
||
return this.month;
|
||
};
|
||
DateTime.prototype.getYear = function () {
|
||
return this.year;
|
||
};
|
||
DateTime.prototype.addYears = function (years) {
|
||
this.year += years;
|
||
};
|
||
DateTime.prototype.addMonths = function (months) {
|
||
this.month += months;
|
||
if (this.month > 12) {
|
||
var yearDiv = Math.floor(this.month / 12);
|
||
var monthMod = pymod(this.month, 12);
|
||
this.month = monthMod;
|
||
this.year += yearDiv;
|
||
if (this.month === 0) {
|
||
this.month = 12;
|
||
--this.year;
|
||
}
|
||
}
|
||
};
|
||
DateTime.prototype.addWeekly = function (days, wkst) {
|
||
if (wkst > this.getWeekday()) {
|
||
this.day += -(this.getWeekday() + 1 + (6 - wkst)) + days * 7;
|
||
}
|
||
else {
|
||
this.day += -(this.getWeekday() - wkst) + days * 7;
|
||
}
|
||
this.fixDay();
|
||
};
|
||
DateTime.prototype.addDaily = function (days) {
|
||
this.day += days;
|
||
this.fixDay();
|
||
};
|
||
DateTime.prototype.addHours = function (hours, filtered, byhour) {
|
||
if (filtered) {
|
||
// Jump to one iteration before next day
|
||
this.hour += Math.floor((23 - this.hour) / hours) * hours;
|
||
}
|
||
while (true) {
|
||
this.hour += hours;
|
||
var _a = divmod(this.hour, 24), dayDiv = _a.div, hourMod = _a.mod;
|
||
if (dayDiv) {
|
||
this.hour = hourMod;
|
||
this.addDaily(dayDiv);
|
||
}
|
||
if (empty(byhour) || includes(byhour, this.hour))
|
||
break;
|
||
}
|
||
};
|
||
DateTime.prototype.addMinutes = function (minutes, filtered, byhour, byminute) {
|
||
if (filtered) {
|
||
// Jump to one iteration before next day
|
||
this.minute +=
|
||
Math.floor((1439 - (this.hour * 60 + this.minute)) / minutes) * minutes;
|
||
}
|
||
while (true) {
|
||
this.minute += minutes;
|
||
var _a = divmod(this.minute, 60), hourDiv = _a.div, minuteMod = _a.mod;
|
||
if (hourDiv) {
|
||
this.minute = minuteMod;
|
||
this.addHours(hourDiv, false, byhour);
|
||
}
|
||
if ((empty(byhour) || includes(byhour, this.hour)) &&
|
||
(empty(byminute) || includes(byminute, this.minute))) {
|
||
break;
|
||
}
|
||
}
|
||
};
|
||
DateTime.prototype.addSeconds = function (seconds, filtered, byhour, byminute, bysecond) {
|
||
if (filtered) {
|
||
// Jump to one iteration before next day
|
||
this.second +=
|
||
Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / seconds) * seconds;
|
||
}
|
||
while (true) {
|
||
this.second += seconds;
|
||
var _a = divmod(this.second, 60), minuteDiv = _a.div, secondMod = _a.mod;
|
||
if (minuteDiv) {
|
||
this.second = secondMod;
|
||
this.addMinutes(minuteDiv, false, byhour, byminute);
|
||
}
|
||
if ((empty(byhour) || includes(byhour, this.hour)) &&
|
||
(empty(byminute) || includes(byminute, this.minute)) &&
|
||
(empty(bysecond) || includes(bysecond, this.second))) {
|
||
break;
|
||
}
|
||
}
|
||
};
|
||
DateTime.prototype.fixDay = function () {
|
||
if (this.day <= 28) {
|
||
return;
|
||
}
|
||
var daysinmonth = dateutil.monthRange(this.year, this.month - 1)[1];
|
||
if (this.day <= daysinmonth) {
|
||
return;
|
||
}
|
||
while (this.day > daysinmonth) {
|
||
this.day -= daysinmonth;
|
||
++this.month;
|
||
if (this.month === 13) {
|
||
this.month = 1;
|
||
++this.year;
|
||
if (this.year > dateutil.MAXYEAR) {
|
||
return;
|
||
}
|
||
}
|
||
daysinmonth = dateutil.monthRange(this.year, this.month - 1)[1];
|
||
}
|
||
};
|
||
DateTime.prototype.add = function (options, filtered) {
|
||
var freq = options.freq, interval = options.interval, wkst = options.wkst, byhour = options.byhour, byminute = options.byminute, bysecond = options.bysecond;
|
||
switch (freq) {
|
||
case Frequency.YEARLY: return this.addYears(interval);
|
||
case Frequency.MONTHLY: return this.addMonths(interval);
|
||
case Frequency.WEEKLY: return this.addWeekly(interval, wkst);
|
||
case Frequency.DAILY: return this.addDaily(interval);
|
||
case Frequency.HOURLY: return this.addHours(interval, filtered, byhour);
|
||
case Frequency.MINUTELY: return this.addMinutes(interval, filtered, byhour, byminute);
|
||
case Frequency.SECONDLY: return this.addSeconds(interval, filtered, byhour, byminute, bysecond);
|
||
}
|
||
};
|
||
return DateTime;
|
||
}(Time));
|
||
|
||
function initializeOptions$1(options) {
|
||
var invalid = [];
|
||
var keys = Object.keys(options);
|
||
// Shallow copy for options and origOptions and check for invalid
|
||
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
|
||
var key = keys_1[_i];
|
||
if (!includes(defaultKeys, key))
|
||
invalid.push(key);
|
||
if (dateutil$1.isDate(options[key]) && !dateutil$1.isValidDate(options[key]))
|
||
invalid.push(key);
|
||
}
|
||
if (invalid.length) {
|
||
throw new Error('Invalid options: ' + invalid.join(', '));
|
||
}
|
||
return __assign({}, options);
|
||
}
|
||
function parseOptions(options) {
|
||
var opts = __assign(__assign({}, DEFAULT_OPTIONS$1), initializeOptions$1(options));
|
||
if (isPresent(opts.byeaster))
|
||
opts.freq = RRule.YEARLY;
|
||
if (!(isPresent(opts.freq) && RRule.FREQUENCIES[opts.freq])) {
|
||
throw new Error("Invalid frequency: " + opts.freq + " " + options.freq);
|
||
}
|
||
if (!opts.dtstart)
|
||
opts.dtstart = new Date(new Date().setMilliseconds(0));
|
||
if (!isPresent(opts.wkst)) {
|
||
opts.wkst = RRule.MO.weekday;
|
||
}
|
||
else if (isNumber(opts.wkst)) ;
|
||
else {
|
||
opts.wkst = opts.wkst.weekday;
|
||
}
|
||
if (isPresent(opts.bysetpos)) {
|
||
if (isNumber(opts.bysetpos))
|
||
opts.bysetpos = [opts.bysetpos];
|
||
for (var i = 0; i < opts.bysetpos.length; i++) {
|
||
var v = opts.bysetpos[i];
|
||
if (v === 0 || !(v >= -366 && v <= 366)) {
|
||
throw new Error('bysetpos must be between 1 and 366,' + ' or between -366 and -1');
|
||
}
|
||
}
|
||
}
|
||
if (!(Boolean(opts.byweekno) ||
|
||
notEmpty(opts.byweekno) ||
|
||
notEmpty(opts.byyearday) ||
|
||
Boolean(opts.bymonthday) ||
|
||
notEmpty(opts.bymonthday) ||
|
||
isPresent(opts.byweekday) ||
|
||
isPresent(opts.byeaster))) {
|
||
switch (opts.freq) {
|
||
case RRule.YEARLY:
|
||
if (!opts.bymonth)
|
||
opts.bymonth = opts.dtstart.getUTCMonth() + 1;
|
||
opts.bymonthday = opts.dtstart.getUTCDate();
|
||
break;
|
||
case RRule.MONTHLY:
|
||
opts.bymonthday = opts.dtstart.getUTCDate();
|
||
break;
|
||
case RRule.WEEKLY:
|
||
opts.byweekday = [dateutil$1.getWeekday(opts.dtstart)];
|
||
break;
|
||
}
|
||
}
|
||
// bymonth
|
||
if (isPresent(opts.bymonth) && !isArray(opts.bymonth)) {
|
||
opts.bymonth = [opts.bymonth];
|
||
}
|
||
// byyearday
|
||
if (isPresent(opts.byyearday) &&
|
||
!isArray(opts.byyearday) &&
|
||
isNumber(opts.byyearday)) {
|
||
opts.byyearday = [opts.byyearday];
|
||
}
|
||
// bymonthday
|
||
if (!isPresent(opts.bymonthday)) {
|
||
opts.bymonthday = [];
|
||
opts.bynmonthday = [];
|
||
}
|
||
else if (isArray(opts.bymonthday)) {
|
||
var bymonthday = [];
|
||
var bynmonthday = [];
|
||
for (var i = 0; i < opts.bymonthday.length; i++) {
|
||
var v = opts.bymonthday[i];
|
||
if (v > 0) {
|
||
bymonthday.push(v);
|
||
}
|
||
else if (v < 0) {
|
||
bynmonthday.push(v);
|
||
}
|
||
}
|
||
opts.bymonthday = bymonthday;
|
||
opts.bynmonthday = bynmonthday;
|
||
}
|
||
else if (opts.bymonthday < 0) {
|
||
opts.bynmonthday = [opts.bymonthday];
|
||
opts.bymonthday = [];
|
||
}
|
||
else {
|
||
opts.bynmonthday = [];
|
||
opts.bymonthday = [opts.bymonthday];
|
||
}
|
||
// byweekno
|
||
if (isPresent(opts.byweekno) && !isArray(opts.byweekno)) {
|
||
opts.byweekno = [opts.byweekno];
|
||
}
|
||
// byweekday / bynweekday
|
||
if (!isPresent(opts.byweekday)) {
|
||
opts.bynweekday = null;
|
||
}
|
||
else if (isNumber(opts.byweekday)) {
|
||
opts.byweekday = [opts.byweekday];
|
||
opts.bynweekday = null;
|
||
}
|
||
else if (isWeekdayStr(opts.byweekday)) {
|
||
opts.byweekday = [Weekday.fromStr(opts.byweekday).weekday];
|
||
opts.bynweekday = null;
|
||
}
|
||
else if (opts.byweekday instanceof Weekday) {
|
||
if (!opts.byweekday.n || opts.freq > RRule.MONTHLY) {
|
||
opts.byweekday = [opts.byweekday.weekday];
|
||
opts.bynweekday = null;
|
||
}
|
||
else {
|
||
opts.bynweekday = [[opts.byweekday.weekday, opts.byweekday.n]];
|
||
opts.byweekday = null;
|
||
}
|
||
}
|
||
else {
|
||
var byweekday = [];
|
||
var bynweekday = [];
|
||
for (var i = 0; i < opts.byweekday.length; i++) {
|
||
var wday = opts.byweekday[i];
|
||
if (isNumber(wday)) {
|
||
byweekday.push(wday);
|
||
continue;
|
||
}
|
||
else if (isWeekdayStr(wday)) {
|
||
byweekday.push(Weekday.fromStr(wday).weekday);
|
||
continue;
|
||
}
|
||
if (!wday.n || opts.freq > RRule.MONTHLY) {
|
||
byweekday.push(wday.weekday);
|
||
}
|
||
else {
|
||
bynweekday.push([wday.weekday, wday.n]);
|
||
}
|
||
}
|
||
opts.byweekday = notEmpty(byweekday) ? byweekday : null;
|
||
opts.bynweekday = notEmpty(bynweekday) ? bynweekday : null;
|
||
}
|
||
// byhour
|
||
if (!isPresent(opts.byhour)) {
|
||
opts.byhour =
|
||
opts.freq < RRule.HOURLY ? [opts.dtstart.getUTCHours()] : null;
|
||
}
|
||
else if (isNumber(opts.byhour)) {
|
||
opts.byhour = [opts.byhour];
|
||
}
|
||
// byminute
|
||
if (!isPresent(opts.byminute)) {
|
||
opts.byminute =
|
||
opts.freq < RRule.MINUTELY ? [opts.dtstart.getUTCMinutes()] : null;
|
||
}
|
||
else if (isNumber(opts.byminute)) {
|
||
opts.byminute = [opts.byminute];
|
||
}
|
||
// bysecond
|
||
if (!isPresent(opts.bysecond)) {
|
||
opts.bysecond =
|
||
opts.freq < RRule.SECONDLY ? [opts.dtstart.getUTCSeconds()] : null;
|
||
}
|
||
else if (isNumber(opts.bysecond)) {
|
||
opts.bysecond = [opts.bysecond];
|
||
}
|
||
return { parsedOptions: opts };
|
||
}
|
||
function buildTimeset(opts) {
|
||
var millisecondModulo = opts.dtstart.getTime() % 1000;
|
||
if (!freqIsDailyOrGreater(opts.freq)) {
|
||
return [];
|
||
}
|
||
var timeset = [];
|
||
opts.byhour.forEach(function (hour) {
|
||
opts.byminute.forEach(function (minute) {
|
||
opts.bysecond.forEach(function (second) {
|
||
timeset.push(new Time(hour, minute, second, millisecondModulo));
|
||
});
|
||
});
|
||
});
|
||
return timeset;
|
||
}
|
||
|
||
function parseString(rfcString) {
|
||
var options = rfcString.split('\n').map(parseLine).filter(function (x) { return x !== null; });
|
||
return __assign(__assign({}, options[0]), options[1]);
|
||
}
|
||
function parseDtstart(line) {
|
||
var options = {};
|
||
var dtstartWithZone = /DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(line);
|
||
if (!dtstartWithZone) {
|
||
return options;
|
||
}
|
||
dtstartWithZone[0]; var tzid = dtstartWithZone[1], dtstart = dtstartWithZone[2];
|
||
if (tzid) {
|
||
options.tzid = tzid;
|
||
}
|
||
options.dtstart = dateutil$1.untilStringToDate(dtstart);
|
||
return options;
|
||
}
|
||
function parseLine(rfcString) {
|
||
rfcString = rfcString.replace(/^\s+|\s+$/, '');
|
||
if (!rfcString.length)
|
||
return null;
|
||
var header = /^([A-Z]+?)[:;]/.exec(rfcString.toUpperCase());
|
||
if (!header) {
|
||
return parseRrule(rfcString);
|
||
}
|
||
header[0]; var key = header[1];
|
||
switch (key.toUpperCase()) {
|
||
case 'RRULE':
|
||
case 'EXRULE':
|
||
return parseRrule(rfcString);
|
||
case 'DTSTART':
|
||
return parseDtstart(rfcString);
|
||
default:
|
||
throw new Error("Unsupported RFC prop " + key + " in " + rfcString);
|
||
}
|
||
}
|
||
function parseRrule(line) {
|
||
var strippedLine = line.replace(/^RRULE:/i, '');
|
||
var options = parseDtstart(strippedLine);
|
||
var attrs = line.replace(/^(?:RRULE|EXRULE):/i, '').split(';');
|
||
attrs.forEach(function (attr) {
|
||
var _a = attr.split('='), key = _a[0], value = _a[1];
|
||
switch (key.toUpperCase()) {
|
||
case 'FREQ':
|
||
options.freq = Frequency[value.toUpperCase()];
|
||
break;
|
||
case 'WKST':
|
||
options.wkst = Days[value.toUpperCase()];
|
||
break;
|
||
case 'COUNT':
|
||
case 'INTERVAL':
|
||
case 'BYSETPOS':
|
||
case 'BYMONTH':
|
||
case 'BYMONTHDAY':
|
||
case 'BYYEARDAY':
|
||
case 'BYWEEKNO':
|
||
case 'BYHOUR':
|
||
case 'BYMINUTE':
|
||
case 'BYSECOND':
|
||
var num = parseNumber(value);
|
||
var optionKey = key.toLowerCase();
|
||
// @ts-ignore
|
||
options[optionKey] = num;
|
||
break;
|
||
case 'BYWEEKDAY':
|
||
case 'BYDAY':
|
||
options.byweekday = parseWeekday(value);
|
||
break;
|
||
case 'DTSTART':
|
||
case 'TZID':
|
||
// for backwards compatibility
|
||
var dtstart = parseDtstart(line);
|
||
options.tzid = dtstart.tzid;
|
||
options.dtstart = dtstart.dtstart;
|
||
break;
|
||
case 'UNTIL':
|
||
options.until = dateutil$1.untilStringToDate(value);
|
||
break;
|
||
case 'BYEASTER':
|
||
options.byeaster = Number(value);
|
||
break;
|
||
default:
|
||
throw new Error("Unknown RRULE property '" + key + "'");
|
||
}
|
||
});
|
||
return options;
|
||
}
|
||
function parseNumber(value) {
|
||
if (value.indexOf(',') !== -1) {
|
||
var values = value.split(',');
|
||
return values.map(parseIndividualNumber);
|
||
}
|
||
return parseIndividualNumber(value);
|
||
}
|
||
function parseIndividualNumber(value) {
|
||
if (/^[+-]?\d+$/.test(value)) {
|
||
return Number(value);
|
||
}
|
||
return value;
|
||
}
|
||
function parseWeekday(value) {
|
||
var days = value.split(',');
|
||
return days.map(function (day) {
|
||
if (day.length === 2) {
|
||
// MO, TU, ...
|
||
return Days[day]; // wday instanceof Weekday
|
||
}
|
||
// -1MO, +3FR, 1SO, 13TU ...
|
||
var parts = day.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
|
||
var n = Number(parts[1]);
|
||
var wdaypart = parts[2];
|
||
var wday = Days[wdaypart].weekday;
|
||
return new Weekday(wday, n);
|
||
});
|
||
}
|
||
|
||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
||
|
||
function getDefaultExportFromCjs (x) {
|
||
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
||
}
|
||
|
||
function createCommonjsModule(fn, basedir, module) {
|
||
return module = {
|
||
path: basedir,
|
||
exports: {},
|
||
require: function (path, base) {
|
||
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
||
}
|
||
}, fn(module, module.exports), module.exports;
|
||
}
|
||
|
||
function commonjsRequire () {
|
||
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
||
}
|
||
|
||
var luxon = createCommonjsModule(function (module, exports) {
|
||
|
||
Object.defineProperty(exports, '__esModule', { value: true });
|
||
|
||
function _defineProperties(target, props) {
|
||
for (var i = 0; i < props.length; i++) {
|
||
var descriptor = props[i];
|
||
descriptor.enumerable = descriptor.enumerable || false;
|
||
descriptor.configurable = true;
|
||
if ("value" in descriptor) descriptor.writable = true;
|
||
Object.defineProperty(target, descriptor.key, descriptor);
|
||
}
|
||
}
|
||
|
||
function _createClass(Constructor, protoProps, staticProps) {
|
||
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||
if (staticProps) _defineProperties(Constructor, staticProps);
|
||
return Constructor;
|
||
}
|
||
|
||
function _inheritsLoose(subClass, superClass) {
|
||
subClass.prototype = Object.create(superClass.prototype);
|
||
subClass.prototype.constructor = subClass;
|
||
subClass.__proto__ = superClass;
|
||
}
|
||
|
||
function _getPrototypeOf(o) {
|
||
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
||
return o.__proto__ || Object.getPrototypeOf(o);
|
||
};
|
||
return _getPrototypeOf(o);
|
||
}
|
||
|
||
function _setPrototypeOf(o, p) {
|
||
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||
o.__proto__ = p;
|
||
return o;
|
||
};
|
||
|
||
return _setPrototypeOf(o, p);
|
||
}
|
||
|
||
function _isNativeReflectConstruct() {
|
||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||
if (Reflect.construct.sham) return false;
|
||
if (typeof Proxy === "function") return true;
|
||
|
||
try {
|
||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
||
return true;
|
||
} catch (e) {
|
||
return false;
|
||
}
|
||
}
|
||
|
||
function _construct(Parent, args, Class) {
|
||
if (_isNativeReflectConstruct()) {
|
||
_construct = Reflect.construct;
|
||
} else {
|
||
_construct = function _construct(Parent, args, Class) {
|
||
var a = [null];
|
||
a.push.apply(a, args);
|
||
var Constructor = Function.bind.apply(Parent, a);
|
||
var instance = new Constructor();
|
||
if (Class) _setPrototypeOf(instance, Class.prototype);
|
||
return instance;
|
||
};
|
||
}
|
||
|
||
return _construct.apply(null, arguments);
|
||
}
|
||
|
||
function _isNativeFunction(fn) {
|
||
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
||
}
|
||
|
||
function _wrapNativeSuper(Class) {
|
||
var _cache = typeof Map === "function" ? new Map() : undefined;
|
||
|
||
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
||
if (Class === null || !_isNativeFunction(Class)) return Class;
|
||
|
||
if (typeof Class !== "function") {
|
||
throw new TypeError("Super expression must either be null or a function");
|
||
}
|
||
|
||
if (typeof _cache !== "undefined") {
|
||
if (_cache.has(Class)) return _cache.get(Class);
|
||
|
||
_cache.set(Class, Wrapper);
|
||
}
|
||
|
||
function Wrapper() {
|
||
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
||
}
|
||
|
||
Wrapper.prototype = Object.create(Class.prototype, {
|
||
constructor: {
|
||
value: Wrapper,
|
||
enumerable: false,
|
||
writable: true,
|
||
configurable: true
|
||
}
|
||
});
|
||
return _setPrototypeOf(Wrapper, Class);
|
||
};
|
||
|
||
return _wrapNativeSuper(Class);
|
||
}
|
||
|
||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||
if (source == null) return {};
|
||
var target = {};
|
||
var sourceKeys = Object.keys(source);
|
||
var key, i;
|
||
|
||
for (i = 0; i < sourceKeys.length; i++) {
|
||
key = sourceKeys[i];
|
||
if (excluded.indexOf(key) >= 0) continue;
|
||
target[key] = source[key];
|
||
}
|
||
|
||
return target;
|
||
}
|
||
|
||
function _unsupportedIterableToArray(o, minLen) {
|
||
if (!o) return;
|
||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||
if (n === "Map" || n === "Set") return Array.from(n);
|
||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||
}
|
||
|
||
function _arrayLikeToArray(arr, len) {
|
||
if (len == null || len > arr.length) len = arr.length;
|
||
|
||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||
|
||
return arr2;
|
||
}
|
||
|
||
function _createForOfIteratorHelperLoose(o) {
|
||
var i = 0;
|
||
|
||
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||
if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () {
|
||
if (i >= o.length) return {
|
||
done: true
|
||
};
|
||
return {
|
||
done: false,
|
||
value: o[i++]
|
||
};
|
||
};
|
||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||
}
|
||
|
||
i = o[Symbol.iterator]();
|
||
return i.next.bind(i);
|
||
}
|
||
|
||
// these aren't really private, but nor are they really useful to document
|
||
|
||
/**
|
||
* @private
|
||
*/
|
||
var LuxonError = /*#__PURE__*/function (_Error) {
|
||
_inheritsLoose(LuxonError, _Error);
|
||
|
||
function LuxonError() {
|
||
return _Error.apply(this, arguments) || this;
|
||
}
|
||
|
||
return LuxonError;
|
||
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
|
||
var InvalidDateTimeError = /*#__PURE__*/function (_LuxonError) {
|
||
_inheritsLoose(InvalidDateTimeError, _LuxonError);
|
||
|
||
function InvalidDateTimeError(reason) {
|
||
return _LuxonError.call(this, "Invalid DateTime: " + reason.toMessage()) || this;
|
||
}
|
||
|
||
return InvalidDateTimeError;
|
||
}(LuxonError);
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
var InvalidIntervalError = /*#__PURE__*/function (_LuxonError2) {
|
||
_inheritsLoose(InvalidIntervalError, _LuxonError2);
|
||
|
||
function InvalidIntervalError(reason) {
|
||
return _LuxonError2.call(this, "Invalid Interval: " + reason.toMessage()) || this;
|
||
}
|
||
|
||
return InvalidIntervalError;
|
||
}(LuxonError);
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
var InvalidDurationError = /*#__PURE__*/function (_LuxonError3) {
|
||
_inheritsLoose(InvalidDurationError, _LuxonError3);
|
||
|
||
function InvalidDurationError(reason) {
|
||
return _LuxonError3.call(this, "Invalid Duration: " + reason.toMessage()) || this;
|
||
}
|
||
|
||
return InvalidDurationError;
|
||
}(LuxonError);
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
var ConflictingSpecificationError = /*#__PURE__*/function (_LuxonError4) {
|
||
_inheritsLoose(ConflictingSpecificationError, _LuxonError4);
|
||
|
||
function ConflictingSpecificationError() {
|
||
return _LuxonError4.apply(this, arguments) || this;
|
||
}
|
||
|
||
return ConflictingSpecificationError;
|
||
}(LuxonError);
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
var InvalidUnitError = /*#__PURE__*/function (_LuxonError5) {
|
||
_inheritsLoose(InvalidUnitError, _LuxonError5);
|
||
|
||
function InvalidUnitError(unit) {
|
||
return _LuxonError5.call(this, "Invalid unit " + unit) || this;
|
||
}
|
||
|
||
return InvalidUnitError;
|
||
}(LuxonError);
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
var InvalidArgumentError = /*#__PURE__*/function (_LuxonError6) {
|
||
_inheritsLoose(InvalidArgumentError, _LuxonError6);
|
||
|
||
function InvalidArgumentError() {
|
||
return _LuxonError6.apply(this, arguments) || this;
|
||
}
|
||
|
||
return InvalidArgumentError;
|
||
}(LuxonError);
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
var ZoneIsAbstractError = /*#__PURE__*/function (_LuxonError7) {
|
||
_inheritsLoose(ZoneIsAbstractError, _LuxonError7);
|
||
|
||
function ZoneIsAbstractError() {
|
||
return _LuxonError7.call(this, "Zone is an abstract class") || this;
|
||
}
|
||
|
||
return ZoneIsAbstractError;
|
||
}(LuxonError);
|
||
|
||
/**
|
||
* @private
|
||
*/
|
||
var n = "numeric",
|
||
s = "short",
|
||
l = "long";
|
||
var DATE_SHORT = {
|
||
year: n,
|
||
month: n,
|
||
day: n
|
||
};
|
||
var DATE_MED = {
|
||
year: n,
|
||
month: s,
|
||
day: n
|
||
};
|
||
var DATE_MED_WITH_WEEKDAY = {
|
||
year: n,
|
||
month: s,
|
||
day: n,
|
||
weekday: s
|
||
};
|
||
var DATE_FULL = {
|
||
year: n,
|
||
month: l,
|
||
day: n
|
||
};
|
||
var DATE_HUGE = {
|
||
year: n,
|
||
month: l,
|
||
day: n,
|
||
weekday: l
|
||
};
|
||
var TIME_SIMPLE = {
|
||
hour: n,
|
||
minute: n
|
||
};
|
||
var TIME_WITH_SECONDS = {
|
||
hour: n,
|
||
minute: n,
|
||
second: n
|
||
};
|
||
var TIME_WITH_SHORT_OFFSET = {
|
||
hour: n,
|
||
minute: n,
|
||
second: n,
|
||
timeZoneName: s
|
||
};
|
||
var TIME_WITH_LONG_OFFSET = {
|
||
hour: n,
|
||
minute: n,
|
||
second: n,
|
||
timeZoneName: l
|
||
};
|
||
var TIME_24_SIMPLE = {
|
||
hour: n,
|
||
minute: n,
|
||
hour12: false
|
||
};
|
||
/**
|
||
* {@link toLocaleString}; format like '09:30:23', always 24-hour.
|
||
*/
|
||
|
||
var TIME_24_WITH_SECONDS = {
|
||
hour: n,
|
||
minute: n,
|
||
second: n,
|
||
hour12: false
|
||
};
|
||
/**
|
||
* {@link toLocaleString}; format like '09:30:23 EDT', always 24-hour.
|
||
*/
|
||
|
||
var TIME_24_WITH_SHORT_OFFSET = {
|
||
hour: n,
|
||
minute: n,
|
||
second: n,
|
||
hour12: false,
|
||
timeZoneName: s
|
||
};
|
||
/**
|
||
* {@link toLocaleString}; format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
||
*/
|
||
|
||
var TIME_24_WITH_LONG_OFFSET = {
|
||
hour: n,
|
||
minute: n,
|
||
second: n,
|
||
hour12: false,
|
||
timeZoneName: l
|
||
};
|
||
/**
|
||
* {@link toLocaleString}; format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
||
*/
|
||
|
||
var DATETIME_SHORT = {
|
||
year: n,
|
||
month: n,
|
||
day: n,
|
||
hour: n,
|
||
minute: n
|
||
};
|
||
/**
|
||
* {@link toLocaleString}; format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
||
*/
|
||
|
||
var DATETIME_SHORT_WITH_SECONDS = {
|
||
year: n,
|
||
month: n,
|
||
day: n,
|
||
hour: n,
|
||
minute: n,
|
||
second: n
|
||
};
|
||
var DATETIME_MED = {
|
||
year: n,
|
||
month: s,
|
||
day: n,
|
||
hour: n,
|
||
minute: n
|
||
};
|
||
var DATETIME_MED_WITH_SECONDS = {
|
||
year: n,
|
||
month: s,
|
||
day: n,
|
||
hour: n,
|
||
minute: n,
|
||
second: n
|
||
};
|
||
var DATETIME_MED_WITH_WEEKDAY = {
|
||
year: n,
|
||
month: s,
|
||
day: n,
|
||
weekday: s,
|
||
hour: n,
|
||
minute: n
|
||
};
|
||
var DATETIME_FULL = {
|
||
year: n,
|
||
month: l,
|
||
day: n,
|
||
hour: n,
|
||
minute: n,
|
||
timeZoneName: s
|
||
};
|
||
var DATETIME_FULL_WITH_SECONDS = {
|
||
year: n,
|
||
month: l,
|
||
day: n,
|
||
hour: n,
|
||
minute: n,
|
||
second: n,
|
||
timeZoneName: s
|
||
};
|
||
var DATETIME_HUGE = {
|
||
year: n,
|
||
month: l,
|
||
day: n,
|
||
weekday: l,
|
||
hour: n,
|
||
minute: n,
|
||
timeZoneName: l
|
||
};
|
||
var DATETIME_HUGE_WITH_SECONDS = {
|
||
year: n,
|
||
month: l,
|
||
day: n,
|
||
weekday: l,
|
||
hour: n,
|
||
minute: n,
|
||
second: n,
|
||
timeZoneName: l
|
||
};
|
||
|
||
/*
|
||
This is just a junk drawer, containing anything used across multiple classes.
|
||
Because Luxon is small(ish), this should stay small and we won't worry about splitting
|
||
it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.
|
||
*/
|
||
/**
|
||
* @private
|
||
*/
|
||
// TYPES
|
||
|
||
function isUndefined(o) {
|
||
return typeof o === "undefined";
|
||
}
|
||
function isNumber(o) {
|
||
return typeof o === "number";
|
||
}
|
||
function isInteger(o) {
|
||
return typeof o === "number" && o % 1 === 0;
|
||
}
|
||
function isString(o) {
|
||
return typeof o === "string";
|
||
}
|
||
function isDate(o) {
|
||
return Object.prototype.toString.call(o) === "[object Date]";
|
||
} // CAPABILITIES
|
||
|
||
function hasIntl() {
|
||
try {
|
||
return typeof Intl !== "undefined" && Intl.DateTimeFormat;
|
||
} catch (e) {
|
||
return false;
|
||
}
|
||
}
|
||
function hasFormatToParts() {
|
||
return !isUndefined(Intl.DateTimeFormat.prototype.formatToParts);
|
||
}
|
||
function hasRelative() {
|
||
try {
|
||
return typeof Intl !== "undefined" && !!Intl.RelativeTimeFormat;
|
||
} catch (e) {
|
||
return false;
|
||
}
|
||
} // OBJECTS AND ARRAYS
|
||
|
||
function maybeArray(thing) {
|
||
return Array.isArray(thing) ? thing : [thing];
|
||
}
|
||
function bestBy(arr, by, compare) {
|
||
if (arr.length === 0) {
|
||
return undefined;
|
||
}
|
||
|
||
return arr.reduce(function (best, next) {
|
||
var pair = [by(next), next];
|
||
|
||
if (!best) {
|
||
return pair;
|
||
} else if (compare(best[0], pair[0]) === best[0]) {
|
||
return best;
|
||
} else {
|
||
return pair;
|
||
}
|
||
}, null)[1];
|
||
}
|
||
function pick(obj, keys) {
|
||
return keys.reduce(function (a, k) {
|
||
a[k] = obj[k];
|
||
return a;
|
||
}, {});
|
||
}
|
||
function hasOwnProperty(obj, prop) {
|
||
return Object.prototype.hasOwnProperty.call(obj, prop);
|
||
} // NUMBERS AND STRINGS
|
||
|
||
function integerBetween(thing, bottom, top) {
|
||
return isInteger(thing) && thing >= bottom && thing <= top;
|
||
} // x % n but takes the sign of n instead of x
|
||
|
||
function floorMod(x, n) {
|
||
return x - n * Math.floor(x / n);
|
||
}
|
||
function padStart(input, n) {
|
||
if (n === void 0) {
|
||
n = 2;
|
||
}
|
||
|
||
var minus = input < 0 ? "-" : "";
|
||
var target = minus ? input * -1 : input;
|
||
var result;
|
||
|
||
if (target.toString().length < n) {
|
||
result = ("0".repeat(n) + target).slice(-n);
|
||
} else {
|
||
result = target.toString();
|
||
}
|
||
|
||
return "" + minus + result;
|
||
}
|
||
function parseInteger(string) {
|
||
if (isUndefined(string) || string === null || string === "") {
|
||
return undefined;
|
||
} else {
|
||
return parseInt(string, 10);
|
||
}
|
||
}
|
||
function parseMillis(fraction) {
|
||
// Return undefined (instead of 0) in these cases, where fraction is not set
|
||
if (isUndefined(fraction) || fraction === null || fraction === "") {
|
||
return undefined;
|
||
} else {
|
||
var f = parseFloat("0." + fraction) * 1000;
|
||
return Math.floor(f);
|
||
}
|
||
}
|
||
function roundTo(number, digits, towardZero) {
|
||
if (towardZero === void 0) {
|
||
towardZero = false;
|
||
}
|
||
|
||
var factor = Math.pow(10, digits),
|
||
rounder = towardZero ? Math.trunc : Math.round;
|
||
return rounder(number * factor) / factor;
|
||
} // DATE BASICS
|
||
|
||
function isLeapYear(year) {
|
||
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
||
}
|
||
function daysInYear(year) {
|
||
return isLeapYear(year) ? 366 : 365;
|
||
}
|
||
function daysInMonth(year, month) {
|
||
var modMonth = floorMod(month - 1, 12) + 1,
|
||
modYear = year + (month - modMonth) / 12;
|
||
|
||
if (modMonth === 2) {
|
||
return isLeapYear(modYear) ? 29 : 28;
|
||
} else {
|
||
return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];
|
||
}
|
||
} // covert a calendar object to a local timestamp (epoch, but with the offset baked in)
|
||
|
||
function objToLocalTS(obj) {
|
||
var d = Date.UTC(obj.year, obj.month - 1, obj.day, obj.hour, obj.minute, obj.second, obj.millisecond); // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that
|
||
|
||
if (obj.year < 100 && obj.year >= 0) {
|
||
d = new Date(d);
|
||
d.setUTCFullYear(d.getUTCFullYear() - 1900);
|
||
}
|
||
|
||
return +d;
|
||
}
|
||
function weeksInWeekYear(weekYear) {
|
||
var p1 = (weekYear + Math.floor(weekYear / 4) - Math.floor(weekYear / 100) + Math.floor(weekYear / 400)) % 7,
|
||
last = weekYear - 1,
|
||
p2 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7;
|
||
return p1 === 4 || p2 === 3 ? 53 : 52;
|
||
}
|
||
function untruncateYear(year) {
|
||
if (year > 99) {
|
||
return year;
|
||
} else return year > 60 ? 1900 + year : 2000 + year;
|
||
} // PARSING
|
||
|
||
function parseZoneInfo(ts, offsetFormat, locale, timeZone) {
|
||
if (timeZone === void 0) {
|
||
timeZone = null;
|
||
}
|
||
|
||
var date = new Date(ts),
|
||
intlOpts = {
|
||
hour12: false,
|
||
year: "numeric",
|
||
month: "2-digit",
|
||
day: "2-digit",
|
||
hour: "2-digit",
|
||
minute: "2-digit"
|
||
};
|
||
|
||
if (timeZone) {
|
||
intlOpts.timeZone = timeZone;
|
||
}
|
||
|
||
var modified = Object.assign({
|
||
timeZoneName: offsetFormat
|
||
}, intlOpts),
|
||
intl = hasIntl();
|
||
|
||
if (intl && hasFormatToParts()) {
|
||
var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function (m) {
|
||
return m.type.toLowerCase() === "timezonename";
|
||
});
|
||
return parsed ? parsed.value : null;
|
||
} else if (intl) {
|
||
// this probably doesn't work for all locales
|
||
var without = new Intl.DateTimeFormat(locale, intlOpts).format(date),
|
||
included = new Intl.DateTimeFormat(locale, modified).format(date),
|
||
diffed = included.substring(without.length),
|
||
trimmed = diffed.replace(/^[, \u200e]+/, "");
|
||
return trimmed;
|
||
} else {
|
||
return null;
|
||
}
|
||
} // signedOffset('-5', '30') -> -330
|
||
|
||
function signedOffset(offHourStr, offMinuteStr) {
|
||
var offHour = parseInt(offHourStr, 10); // don't || this because we want to preserve -0
|
||
|
||
if (Number.isNaN(offHour)) {
|
||
offHour = 0;
|
||
}
|
||
|
||
var offMin = parseInt(offMinuteStr, 10) || 0,
|
||
offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;
|
||
return offHour * 60 + offMinSigned;
|
||
} // COERCION
|
||
|
||
function asNumber(value) {
|
||
var numericValue = Number(value);
|
||
if (typeof value === "boolean" || value === "" || Number.isNaN(numericValue)) throw new InvalidArgumentError("Invalid unit value " + value);
|
||
return numericValue;
|
||
}
|
||
function normalizeObject(obj, normalizer, nonUnitKeys) {
|
||
var normalized = {};
|
||
|
||
for (var u in obj) {
|
||
if (hasOwnProperty(obj, u)) {
|
||
if (nonUnitKeys.indexOf(u) >= 0) continue;
|
||
var v = obj[u];
|
||
if (v === undefined || v === null) continue;
|
||
normalized[normalizer(u)] = asNumber(v);
|
||
}
|
||
}
|
||
|
||
return normalized;
|
||
}
|
||
function formatOffset(offset, format) {
|
||
var hours = Math.trunc(Math.abs(offset / 60)),
|
||
minutes = Math.trunc(Math.abs(offset % 60)),
|
||
sign = offset >= 0 ? "+" : "-";
|
||
|
||
switch (format) {
|
||
case "short":
|
||
return "" + sign + padStart(hours, 2) + ":" + padStart(minutes, 2);
|
||
|
||
case "narrow":
|
||
return "" + sign + hours + (minutes > 0 ? ":" + minutes : "");
|
||
|
||
case "techie":
|
||
return "" + sign + padStart(hours, 2) + padStart(minutes, 2);
|
||
|
||
default:
|
||
throw new RangeError("Value format " + format + " is out of range for property format");
|
||
}
|
||
}
|
||
function timeObject(obj) {
|
||
return pick(obj, ["hour", "minute", "second", "millisecond"]);
|
||
}
|
||
var ianaRegex = /[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;
|
||
|
||
function stringify(obj) {
|
||
return JSON.stringify(obj, Object.keys(obj).sort());
|
||
}
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
|
||
var monthsLong = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
||
var monthsShort = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
||
var monthsNarrow = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
|
||
function months(length) {
|
||
switch (length) {
|
||
case "narrow":
|
||
return [].concat(monthsNarrow);
|
||
|
||
case "short":
|
||
return [].concat(monthsShort);
|
||
|
||
case "long":
|
||
return [].concat(monthsLong);
|
||
|
||
case "numeric":
|
||
return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
||
|
||
case "2-digit":
|
||
return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"];
|
||
|
||
default:
|
||
return null;
|
||
}
|
||
}
|
||
var weekdaysLong = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
|
||
var weekdaysShort = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
||
var weekdaysNarrow = ["M", "T", "W", "T", "F", "S", "S"];
|
||
function weekdays(length) {
|
||
switch (length) {
|
||
case "narrow":
|
||
return [].concat(weekdaysNarrow);
|
||
|
||
case "short":
|
||
return [].concat(weekdaysShort);
|
||
|
||
case "long":
|
||
return [].concat(weekdaysLong);
|
||
|
||
case "numeric":
|
||
return ["1", "2", "3", "4", "5", "6", "7"];
|
||
|
||
default:
|
||
return null;
|
||
}
|
||
}
|
||
var meridiems = ["AM", "PM"];
|
||
var erasLong = ["Before Christ", "Anno Domini"];
|
||
var erasShort = ["BC", "AD"];
|
||
var erasNarrow = ["B", "A"];
|
||
function eras(length) {
|
||
switch (length) {
|
||
case "narrow":
|
||
return [].concat(erasNarrow);
|
||
|
||
case "short":
|
||
return [].concat(erasShort);
|
||
|
||
case "long":
|
||
return [].concat(erasLong);
|
||
|
||
default:
|
||
return null;
|
||
}
|
||
}
|
||
function meridiemForDateTime(dt) {
|
||
return meridiems[dt.hour < 12 ? 0 : 1];
|
||
}
|
||
function weekdayForDateTime(dt, length) {
|
||
return weekdays(length)[dt.weekday - 1];
|
||
}
|
||
function monthForDateTime(dt, length) {
|
||
return months(length)[dt.month - 1];
|
||
}
|
||
function eraForDateTime(dt, length) {
|
||
return eras(length)[dt.year < 0 ? 0 : 1];
|
||
}
|
||
function formatRelativeTime(unit, count, numeric, narrow) {
|
||
if (numeric === void 0) {
|
||
numeric = "always";
|
||
}
|
||
|
||
if (narrow === void 0) {
|
||
narrow = false;
|
||
}
|
||
|
||
var units = {
|
||
years: ["year", "yr."],
|
||
quarters: ["quarter", "qtr."],
|
||
months: ["month", "mo."],
|
||
weeks: ["week", "wk."],
|
||
days: ["day", "day", "days"],
|
||
hours: ["hour", "hr."],
|
||
minutes: ["minute", "min."],
|
||
seconds: ["second", "sec."]
|
||
};
|
||
var lastable = ["hours", "minutes", "seconds"].indexOf(unit) === -1;
|
||
|
||
if (numeric === "auto" && lastable) {
|
||
var isDay = unit === "days";
|
||
|
||
switch (count) {
|
||
case 1:
|
||
return isDay ? "tomorrow" : "next " + units[unit][0];
|
||
|
||
case -1:
|
||
return isDay ? "yesterday" : "last " + units[unit][0];
|
||
|
||
case 0:
|
||
return isDay ? "today" : "this " + units[unit][0];
|
||
|
||
}
|
||
}
|
||
|
||
var isInPast = Object.is(count, -0) || count < 0,
|
||
fmtValue = Math.abs(count),
|
||
singular = fmtValue === 1,
|
||
lilUnits = units[unit],
|
||
fmtUnit = narrow ? singular ? lilUnits[1] : lilUnits[2] || lilUnits[1] : singular ? units[unit][0] : unit;
|
||
return isInPast ? fmtValue + " " + fmtUnit + " ago" : "in " + fmtValue + " " + fmtUnit;
|
||
}
|
||
function formatString(knownFormat) {
|
||
// these all have the offsets removed because we don't have access to them
|
||
// without all the intl stuff this is backfilling
|
||
var filtered = pick(knownFormat, ["weekday", "era", "year", "month", "day", "hour", "minute", "second", "timeZoneName", "hour12"]),
|
||
key = stringify(filtered),
|
||
dateTimeHuge = "EEEE, LLLL d, yyyy, h:mm a";
|
||
|
||
switch (key) {
|
||
case stringify(DATE_SHORT):
|
||
return "M/d/yyyy";
|
||
|
||
case stringify(DATE_MED):
|
||
return "LLL d, yyyy";
|
||
|
||
case stringify(DATE_MED_WITH_WEEKDAY):
|
||
return "EEE, LLL d, yyyy";
|
||
|
||
case stringify(DATE_FULL):
|
||
return "LLLL d, yyyy";
|
||
|
||
case stringify(DATE_HUGE):
|
||
return "EEEE, LLLL d, yyyy";
|
||
|
||
case stringify(TIME_SIMPLE):
|
||
return "h:mm a";
|
||
|
||
case stringify(TIME_WITH_SECONDS):
|
||
return "h:mm:ss a";
|
||
|
||
case stringify(TIME_WITH_SHORT_OFFSET):
|
||
return "h:mm a";
|
||
|
||
case stringify(TIME_WITH_LONG_OFFSET):
|
||
return "h:mm a";
|
||
|
||
case stringify(TIME_24_SIMPLE):
|
||
return "HH:mm";
|
||
|
||
case stringify(TIME_24_WITH_SECONDS):
|
||
return "HH:mm:ss";
|
||
|
||
case stringify(TIME_24_WITH_SHORT_OFFSET):
|
||
return "HH:mm";
|
||
|
||
case stringify(TIME_24_WITH_LONG_OFFSET):
|
||
return "HH:mm";
|
||
|
||
case stringify(DATETIME_SHORT):
|
||
return "M/d/yyyy, h:mm a";
|
||
|
||
case stringify(DATETIME_MED):
|
||
return "LLL d, yyyy, h:mm a";
|
||
|
||
case stringify(DATETIME_FULL):
|
||
return "LLLL d, yyyy, h:mm a";
|
||
|
||
case stringify(DATETIME_HUGE):
|
||
return dateTimeHuge;
|
||
|
||
case stringify(DATETIME_SHORT_WITH_SECONDS):
|
||
return "M/d/yyyy, h:mm:ss a";
|
||
|
||
case stringify(DATETIME_MED_WITH_SECONDS):
|
||
return "LLL d, yyyy, h:mm:ss a";
|
||
|
||
case stringify(DATETIME_MED_WITH_WEEKDAY):
|
||
return "EEE, d LLL yyyy, h:mm a";
|
||
|
||
case stringify(DATETIME_FULL_WITH_SECONDS):
|
||
return "LLLL d, yyyy, h:mm:ss a";
|
||
|
||
case stringify(DATETIME_HUGE_WITH_SECONDS):
|
||
return "EEEE, LLLL d, yyyy, h:mm:ss a";
|
||
|
||
default:
|
||
return dateTimeHuge;
|
||
}
|
||
}
|
||
|
||
function stringifyTokens(splits, tokenToString) {
|
||
var s = "";
|
||
|
||
for (var _iterator = _createForOfIteratorHelperLoose(splits), _step; !(_step = _iterator()).done;) {
|
||
var token = _step.value;
|
||
|
||
if (token.literal) {
|
||
s += token.val;
|
||
} else {
|
||
s += tokenToString(token.val);
|
||
}
|
||
}
|
||
|
||
return s;
|
||
}
|
||
|
||
var _macroTokenToFormatOpts = {
|
||
D: DATE_SHORT,
|
||
DD: DATE_MED,
|
||
DDD: DATE_FULL,
|
||
DDDD: DATE_HUGE,
|
||
t: TIME_SIMPLE,
|
||
tt: TIME_WITH_SECONDS,
|
||
ttt: TIME_WITH_SHORT_OFFSET,
|
||
tttt: TIME_WITH_LONG_OFFSET,
|
||
T: TIME_24_SIMPLE,
|
||
TT: TIME_24_WITH_SECONDS,
|
||
TTT: TIME_24_WITH_SHORT_OFFSET,
|
||
TTTT: TIME_24_WITH_LONG_OFFSET,
|
||
f: DATETIME_SHORT,
|
||
ff: DATETIME_MED,
|
||
fff: DATETIME_FULL,
|
||
ffff: DATETIME_HUGE,
|
||
F: DATETIME_SHORT_WITH_SECONDS,
|
||
FF: DATETIME_MED_WITH_SECONDS,
|
||
FFF: DATETIME_FULL_WITH_SECONDS,
|
||
FFFF: DATETIME_HUGE_WITH_SECONDS
|
||
};
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
var Formatter = /*#__PURE__*/function () {
|
||
Formatter.create = function create(locale, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
return new Formatter(locale, opts);
|
||
};
|
||
|
||
Formatter.parseFormat = function parseFormat(fmt) {
|
||
var current = null,
|
||
currentFull = "",
|
||
bracketed = false;
|
||
var splits = [];
|
||
|
||
for (var i = 0; i < fmt.length; i++) {
|
||
var c = fmt.charAt(i);
|
||
|
||
if (c === "'") {
|
||
if (currentFull.length > 0) {
|
||
splits.push({
|
||
literal: bracketed,
|
||
val: currentFull
|
||
});
|
||
}
|
||
|
||
current = null;
|
||
currentFull = "";
|
||
bracketed = !bracketed;
|
||
} else if (bracketed) {
|
||
currentFull += c;
|
||
} else if (c === current) {
|
||
currentFull += c;
|
||
} else {
|
||
if (currentFull.length > 0) {
|
||
splits.push({
|
||
literal: false,
|
||
val: currentFull
|
||
});
|
||
}
|
||
|
||
currentFull = c;
|
||
current = c;
|
||
}
|
||
}
|
||
|
||
if (currentFull.length > 0) {
|
||
splits.push({
|
||
literal: bracketed,
|
||
val: currentFull
|
||
});
|
||
}
|
||
|
||
return splits;
|
||
};
|
||
|
||
Formatter.macroTokenToFormatOpts = function macroTokenToFormatOpts(token) {
|
||
return _macroTokenToFormatOpts[token];
|
||
};
|
||
|
||
function Formatter(locale, formatOpts) {
|
||
this.opts = formatOpts;
|
||
this.loc = locale;
|
||
this.systemLoc = null;
|
||
}
|
||
|
||
var _proto = Formatter.prototype;
|
||
|
||
_proto.formatWithSystemDefault = function formatWithSystemDefault(dt, opts) {
|
||
if (this.systemLoc === null) {
|
||
this.systemLoc = this.loc.redefaultToSystem();
|
||
}
|
||
|
||
var df = this.systemLoc.dtFormatter(dt, Object.assign({}, this.opts, opts));
|
||
return df.format();
|
||
};
|
||
|
||
_proto.formatDateTime = function formatDateTime(dt, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));
|
||
return df.format();
|
||
};
|
||
|
||
_proto.formatDateTimeParts = function formatDateTimeParts(dt, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));
|
||
return df.formatToParts();
|
||
};
|
||
|
||
_proto.resolvedOptions = function resolvedOptions(dt, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));
|
||
return df.resolvedOptions();
|
||
};
|
||
|
||
_proto.num = function num(n, p) {
|
||
if (p === void 0) {
|
||
p = 0;
|
||
}
|
||
|
||
// we get some perf out of doing this here, annoyingly
|
||
if (this.opts.forceSimple) {
|
||
return padStart(n, p);
|
||
}
|
||
|
||
var opts = Object.assign({}, this.opts);
|
||
|
||
if (p > 0) {
|
||
opts.padTo = p;
|
||
}
|
||
|
||
return this.loc.numberFormatter(opts).format(n);
|
||
};
|
||
|
||
_proto.formatDateTimeFromString = function formatDateTimeFromString(dt, fmt) {
|
||
var _this = this;
|
||
|
||
var knownEnglish = this.loc.listingMode() === "en",
|
||
useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory" && hasFormatToParts(),
|
||
string = function string(opts, extract) {
|
||
return _this.loc.extract(dt, opts, extract);
|
||
},
|
||
formatOffset = function formatOffset(opts) {
|
||
if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {
|
||
return "Z";
|
||
}
|
||
|
||
return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : "";
|
||
},
|
||
meridiem = function meridiem() {
|
||
return knownEnglish ? meridiemForDateTime(dt) : string({
|
||
hour: "numeric",
|
||
hour12: true
|
||
}, "dayperiod");
|
||
},
|
||
month = function month(length, standalone) {
|
||
return knownEnglish ? monthForDateTime(dt, length) : string(standalone ? {
|
||
month: length
|
||
} : {
|
||
month: length,
|
||
day: "numeric"
|
||
}, "month");
|
||
},
|
||
weekday = function weekday(length, standalone) {
|
||
return knownEnglish ? weekdayForDateTime(dt, length) : string(standalone ? {
|
||
weekday: length
|
||
} : {
|
||
weekday: length,
|
||
month: "long",
|
||
day: "numeric"
|
||
}, "weekday");
|
||
},
|
||
maybeMacro = function maybeMacro(token) {
|
||
var formatOpts = Formatter.macroTokenToFormatOpts(token);
|
||
|
||
if (formatOpts) {
|
||
return _this.formatWithSystemDefault(dt, formatOpts);
|
||
} else {
|
||
return token;
|
||
}
|
||
},
|
||
era = function era(length) {
|
||
return knownEnglish ? eraForDateTime(dt, length) : string({
|
||
era: length
|
||
}, "era");
|
||
},
|
||
tokenToString = function tokenToString(token) {
|
||
// Where possible: http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles
|
||
switch (token) {
|
||
// ms
|
||
case "S":
|
||
return _this.num(dt.millisecond);
|
||
|
||
case "u": // falls through
|
||
|
||
case "SSS":
|
||
return _this.num(dt.millisecond, 3);
|
||
// seconds
|
||
|
||
case "s":
|
||
return _this.num(dt.second);
|
||
|
||
case "ss":
|
||
return _this.num(dt.second, 2);
|
||
// minutes
|
||
|
||
case "m":
|
||
return _this.num(dt.minute);
|
||
|
||
case "mm":
|
||
return _this.num(dt.minute, 2);
|
||
// hours
|
||
|
||
case "h":
|
||
return _this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);
|
||
|
||
case "hh":
|
||
return _this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);
|
||
|
||
case "H":
|
||
return _this.num(dt.hour);
|
||
|
||
case "HH":
|
||
return _this.num(dt.hour, 2);
|
||
// offset
|
||
|
||
case "Z":
|
||
// like +6
|
||
return formatOffset({
|
||
format: "narrow",
|
||
allowZ: _this.opts.allowZ
|
||
});
|
||
|
||
case "ZZ":
|
||
// like +06:00
|
||
return formatOffset({
|
||
format: "short",
|
||
allowZ: _this.opts.allowZ
|
||
});
|
||
|
||
case "ZZZ":
|
||
// like +0600
|
||
return formatOffset({
|
||
format: "techie",
|
||
allowZ: _this.opts.allowZ
|
||
});
|
||
|
||
case "ZZZZ":
|
||
// like EST
|
||
return dt.zone.offsetName(dt.ts, {
|
||
format: "short",
|
||
locale: _this.loc.locale
|
||
});
|
||
|
||
case "ZZZZZ":
|
||
// like Eastern Standard Time
|
||
return dt.zone.offsetName(dt.ts, {
|
||
format: "long",
|
||
locale: _this.loc.locale
|
||
});
|
||
// zone
|
||
|
||
case "z":
|
||
// like America/New_York
|
||
return dt.zoneName;
|
||
// meridiems
|
||
|
||
case "a":
|
||
return meridiem();
|
||
// dates
|
||
|
||
case "d":
|
||
return useDateTimeFormatter ? string({
|
||
day: "numeric"
|
||
}, "day") : _this.num(dt.day);
|
||
|
||
case "dd":
|
||
return useDateTimeFormatter ? string({
|
||
day: "2-digit"
|
||
}, "day") : _this.num(dt.day, 2);
|
||
// weekdays - standalone
|
||
|
||
case "c":
|
||
// like 1
|
||
return _this.num(dt.weekday);
|
||
|
||
case "ccc":
|
||
// like 'Tues'
|
||
return weekday("short", true);
|
||
|
||
case "cccc":
|
||
// like 'Tuesday'
|
||
return weekday("long", true);
|
||
|
||
case "ccccc":
|
||
// like 'T'
|
||
return weekday("narrow", true);
|
||
// weekdays - format
|
||
|
||
case "E":
|
||
// like 1
|
||
return _this.num(dt.weekday);
|
||
|
||
case "EEE":
|
||
// like 'Tues'
|
||
return weekday("short", false);
|
||
|
||
case "EEEE":
|
||
// like 'Tuesday'
|
||
return weekday("long", false);
|
||
|
||
case "EEEEE":
|
||
// like 'T'
|
||
return weekday("narrow", false);
|
||
// months - standalone
|
||
|
||
case "L":
|
||
// like 1
|
||
return useDateTimeFormatter ? string({
|
||
month: "numeric",
|
||
day: "numeric"
|
||
}, "month") : _this.num(dt.month);
|
||
|
||
case "LL":
|
||
// like 01, doesn't seem to work
|
||
return useDateTimeFormatter ? string({
|
||
month: "2-digit",
|
||
day: "numeric"
|
||
}, "month") : _this.num(dt.month, 2);
|
||
|
||
case "LLL":
|
||
// like Jan
|
||
return month("short", true);
|
||
|
||
case "LLLL":
|
||
// like January
|
||
return month("long", true);
|
||
|
||
case "LLLLL":
|
||
// like J
|
||
return month("narrow", true);
|
||
// months - format
|
||
|
||
case "M":
|
||
// like 1
|
||
return useDateTimeFormatter ? string({
|
||
month: "numeric"
|
||
}, "month") : _this.num(dt.month);
|
||
|
||
case "MM":
|
||
// like 01
|
||
return useDateTimeFormatter ? string({
|
||
month: "2-digit"
|
||
}, "month") : _this.num(dt.month, 2);
|
||
|
||
case "MMM":
|
||
// like Jan
|
||
return month("short", false);
|
||
|
||
case "MMMM":
|
||
// like January
|
||
return month("long", false);
|
||
|
||
case "MMMMM":
|
||
// like J
|
||
return month("narrow", false);
|
||
// years
|
||
|
||
case "y":
|
||
// like 2014
|
||
return useDateTimeFormatter ? string({
|
||
year: "numeric"
|
||
}, "year") : _this.num(dt.year);
|
||
|
||
case "yy":
|
||
// like 14
|
||
return useDateTimeFormatter ? string({
|
||
year: "2-digit"
|
||
}, "year") : _this.num(dt.year.toString().slice(-2), 2);
|
||
|
||
case "yyyy":
|
||
// like 0012
|
||
return useDateTimeFormatter ? string({
|
||
year: "numeric"
|
||
}, "year") : _this.num(dt.year, 4);
|
||
|
||
case "yyyyyy":
|
||
// like 000012
|
||
return useDateTimeFormatter ? string({
|
||
year: "numeric"
|
||
}, "year") : _this.num(dt.year, 6);
|
||
// eras
|
||
|
||
case "G":
|
||
// like AD
|
||
return era("short");
|
||
|
||
case "GG":
|
||
// like Anno Domini
|
||
return era("long");
|
||
|
||
case "GGGGG":
|
||
return era("narrow");
|
||
|
||
case "kk":
|
||
return _this.num(dt.weekYear.toString().slice(-2), 2);
|
||
|
||
case "kkkk":
|
||
return _this.num(dt.weekYear, 4);
|
||
|
||
case "W":
|
||
return _this.num(dt.weekNumber);
|
||
|
||
case "WW":
|
||
return _this.num(dt.weekNumber, 2);
|
||
|
||
case "o":
|
||
return _this.num(dt.ordinal);
|
||
|
||
case "ooo":
|
||
return _this.num(dt.ordinal, 3);
|
||
|
||
case "q":
|
||
// like 1
|
||
return _this.num(dt.quarter);
|
||
|
||
case "qq":
|
||
// like 01
|
||
return _this.num(dt.quarter, 2);
|
||
|
||
case "X":
|
||
return _this.num(Math.floor(dt.ts / 1000));
|
||
|
||
case "x":
|
||
return _this.num(dt.ts);
|
||
|
||
default:
|
||
return maybeMacro(token);
|
||
}
|
||
};
|
||
|
||
return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);
|
||
};
|
||
|
||
_proto.formatDurationFromString = function formatDurationFromString(dur, fmt) {
|
||
var _this2 = this;
|
||
|
||
var tokenToField = function tokenToField(token) {
|
||
switch (token[0]) {
|
||
case "S":
|
||
return "millisecond";
|
||
|
||
case "s":
|
||
return "second";
|
||
|
||
case "m":
|
||
return "minute";
|
||
|
||
case "h":
|
||
return "hour";
|
||
|
||
case "d":
|
||
return "day";
|
||
|
||
case "M":
|
||
return "month";
|
||
|
||
case "y":
|
||
return "year";
|
||
|
||
default:
|
||
return null;
|
||
}
|
||
},
|
||
tokenToString = function tokenToString(lildur) {
|
||
return function (token) {
|
||
var mapped = tokenToField(token);
|
||
|
||
if (mapped) {
|
||
return _this2.num(lildur.get(mapped), token.length);
|
||
} else {
|
||
return token;
|
||
}
|
||
};
|
||
},
|
||
tokens = Formatter.parseFormat(fmt),
|
||
realTokens = tokens.reduce(function (found, _ref) {
|
||
var literal = _ref.literal,
|
||
val = _ref.val;
|
||
return literal ? found : found.concat(val);
|
||
}, []),
|
||
collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {
|
||
return t;
|
||
}));
|
||
|
||
return stringifyTokens(tokens, tokenToString(collapsed));
|
||
};
|
||
|
||
return Formatter;
|
||
}();
|
||
|
||
var Invalid = /*#__PURE__*/function () {
|
||
function Invalid(reason, explanation) {
|
||
this.reason = reason;
|
||
this.explanation = explanation;
|
||
}
|
||
|
||
var _proto = Invalid.prototype;
|
||
|
||
_proto.toMessage = function toMessage() {
|
||
if (this.explanation) {
|
||
return this.reason + ": " + this.explanation;
|
||
} else {
|
||
return this.reason;
|
||
}
|
||
};
|
||
|
||
return Invalid;
|
||
}();
|
||
|
||
/**
|
||
* @interface
|
||
*/
|
||
|
||
var Zone = /*#__PURE__*/function () {
|
||
function Zone() {}
|
||
|
||
var _proto = Zone.prototype;
|
||
|
||
/**
|
||
* Returns the offset's common name (such as EST) at the specified timestamp
|
||
* @abstract
|
||
* @param {number} ts - Epoch milliseconds for which to get the name
|
||
* @param {Object} opts - Options to affect the format
|
||
* @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.
|
||
* @param {string} opts.locale - What locale to return the offset name in.
|
||
* @return {string}
|
||
*/
|
||
_proto.offsetName = function offsetName(ts, opts) {
|
||
throw new ZoneIsAbstractError();
|
||
}
|
||
/**
|
||
* Returns the offset's value as a string
|
||
* @abstract
|
||
* @param {number} ts - Epoch milliseconds for which to get the offset
|
||
* @param {string} format - What style of offset to return.
|
||
* Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.formatOffset = function formatOffset(ts, format) {
|
||
throw new ZoneIsAbstractError();
|
||
}
|
||
/**
|
||
* Return the offset in minutes for this zone at the specified timestamp.
|
||
* @abstract
|
||
* @param {number} ts - Epoch milliseconds for which to compute the offset
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.offset = function offset(ts) {
|
||
throw new ZoneIsAbstractError();
|
||
}
|
||
/**
|
||
* Return whether this Zone is equal to another zone
|
||
* @abstract
|
||
* @param {Zone} otherZone - the zone to compare
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.equals = function equals(otherZone) {
|
||
throw new ZoneIsAbstractError();
|
||
}
|
||
/**
|
||
* Return whether this Zone is valid.
|
||
* @abstract
|
||
* @type {boolean}
|
||
*/
|
||
;
|
||
|
||
_createClass(Zone, [{
|
||
key: "type",
|
||
|
||
/**
|
||
* The type of zone
|
||
* @abstract
|
||
* @type {string}
|
||
*/
|
||
get: function get() {
|
||
throw new ZoneIsAbstractError();
|
||
}
|
||
/**
|
||
* The name of this zone.
|
||
* @abstract
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "name",
|
||
get: function get() {
|
||
throw new ZoneIsAbstractError();
|
||
}
|
||
/**
|
||
* Returns whether the offset is known to be fixed for the whole year.
|
||
* @abstract
|
||
* @type {boolean}
|
||
*/
|
||
|
||
}, {
|
||
key: "universal",
|
||
get: function get() {
|
||
throw new ZoneIsAbstractError();
|
||
}
|
||
}, {
|
||
key: "isValid",
|
||
get: function get() {
|
||
throw new ZoneIsAbstractError();
|
||
}
|
||
}]);
|
||
|
||
return Zone;
|
||
}();
|
||
|
||
var singleton = null;
|
||
/**
|
||
* Represents the local zone for this JavaScript environment.
|
||
* @implements {Zone}
|
||
*/
|
||
|
||
var LocalZone = /*#__PURE__*/function (_Zone) {
|
||
_inheritsLoose(LocalZone, _Zone);
|
||
|
||
function LocalZone() {
|
||
return _Zone.apply(this, arguments) || this;
|
||
}
|
||
|
||
var _proto = LocalZone.prototype;
|
||
|
||
/** @override **/
|
||
_proto.offsetName = function offsetName(ts, _ref) {
|
||
var format = _ref.format,
|
||
locale = _ref.locale;
|
||
return parseZoneInfo(ts, format, locale);
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.formatOffset = function formatOffset$1(ts, format) {
|
||
return formatOffset(this.offset(ts), format);
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.offset = function offset(ts) {
|
||
return -new Date(ts).getTimezoneOffset();
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.equals = function equals(otherZone) {
|
||
return otherZone.type === "local";
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_createClass(LocalZone, [{
|
||
key: "type",
|
||
|
||
/** @override **/
|
||
get: function get() {
|
||
return "local";
|
||
}
|
||
/** @override **/
|
||
|
||
}, {
|
||
key: "name",
|
||
get: function get() {
|
||
if (hasIntl()) {
|
||
return new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||
} else return "local";
|
||
}
|
||
/** @override **/
|
||
|
||
}, {
|
||
key: "universal",
|
||
get: function get() {
|
||
return false;
|
||
}
|
||
}, {
|
||
key: "isValid",
|
||
get: function get() {
|
||
return true;
|
||
}
|
||
}], [{
|
||
key: "instance",
|
||
|
||
/**
|
||
* Get a singleton instance of the local zone
|
||
* @return {LocalZone}
|
||
*/
|
||
get: function get() {
|
||
if (singleton === null) {
|
||
singleton = new LocalZone();
|
||
}
|
||
|
||
return singleton;
|
||
}
|
||
}]);
|
||
|
||
return LocalZone;
|
||
}(Zone);
|
||
|
||
var matchingRegex = RegExp("^" + ianaRegex.source + "$");
|
||
var dtfCache = {};
|
||
|
||
function makeDTF(zone) {
|
||
if (!dtfCache[zone]) {
|
||
dtfCache[zone] = new Intl.DateTimeFormat("en-US", {
|
||
hour12: false,
|
||
timeZone: zone,
|
||
year: "numeric",
|
||
month: "2-digit",
|
||
day: "2-digit",
|
||
hour: "2-digit",
|
||
minute: "2-digit",
|
||
second: "2-digit"
|
||
});
|
||
}
|
||
|
||
return dtfCache[zone];
|
||
}
|
||
|
||
var typeToPos = {
|
||
year: 0,
|
||
month: 1,
|
||
day: 2,
|
||
hour: 3,
|
||
minute: 4,
|
||
second: 5
|
||
};
|
||
|
||
function hackyOffset(dtf, date) {
|
||
var formatted = dtf.format(date).replace(/\u200E/g, ""),
|
||
parsed = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(formatted),
|
||
fMonth = parsed[1],
|
||
fDay = parsed[2],
|
||
fYear = parsed[3],
|
||
fHour = parsed[4],
|
||
fMinute = parsed[5],
|
||
fSecond = parsed[6];
|
||
return [fYear, fMonth, fDay, fHour, fMinute, fSecond];
|
||
}
|
||
|
||
function partsOffset(dtf, date) {
|
||
var formatted = dtf.formatToParts(date),
|
||
filled = [];
|
||
|
||
for (var i = 0; i < formatted.length; i++) {
|
||
var _formatted$i = formatted[i],
|
||
type = _formatted$i.type,
|
||
value = _formatted$i.value,
|
||
pos = typeToPos[type];
|
||
|
||
if (!isUndefined(pos)) {
|
||
filled[pos] = parseInt(value, 10);
|
||
}
|
||
}
|
||
|
||
return filled;
|
||
}
|
||
|
||
var ianaZoneCache = {};
|
||
/**
|
||
* A zone identified by an IANA identifier, like America/New_York
|
||
* @implements {Zone}
|
||
*/
|
||
|
||
var IANAZone = /*#__PURE__*/function (_Zone) {
|
||
_inheritsLoose(IANAZone, _Zone);
|
||
|
||
/**
|
||
* @param {string} name - Zone name
|
||
* @return {IANAZone}
|
||
*/
|
||
IANAZone.create = function create(name) {
|
||
if (!ianaZoneCache[name]) {
|
||
ianaZoneCache[name] = new IANAZone(name);
|
||
}
|
||
|
||
return ianaZoneCache[name];
|
||
}
|
||
/**
|
||
* Reset local caches. Should only be necessary in testing scenarios.
|
||
* @return {void}
|
||
*/
|
||
;
|
||
|
||
IANAZone.resetCache = function resetCache() {
|
||
ianaZoneCache = {};
|
||
dtfCache = {};
|
||
}
|
||
/**
|
||
* Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
|
||
* @param {string} s - The string to check validity on
|
||
* @example IANAZone.isValidSpecifier("America/New_York") //=> true
|
||
* @example IANAZone.isValidSpecifier("Fantasia/Castle") //=> true
|
||
* @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
IANAZone.isValidSpecifier = function isValidSpecifier(s) {
|
||
return !!(s && s.match(matchingRegex));
|
||
}
|
||
/**
|
||
* Returns whether the provided string identifies a real zone
|
||
* @param {string} zone - The string to check
|
||
* @example IANAZone.isValidZone("America/New_York") //=> true
|
||
* @example IANAZone.isValidZone("Fantasia/Castle") //=> false
|
||
* @example IANAZone.isValidZone("Sport~~blorp") //=> false
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
IANAZone.isValidZone = function isValidZone(zone) {
|
||
try {
|
||
new Intl.DateTimeFormat("en-US", {
|
||
timeZone: zone
|
||
}).format();
|
||
return true;
|
||
} catch (e) {
|
||
return false;
|
||
}
|
||
} // Etc/GMT+8 -> -480
|
||
|
||
/** @ignore */
|
||
;
|
||
|
||
IANAZone.parseGMTOffset = function parseGMTOffset(specifier) {
|
||
if (specifier) {
|
||
var match = specifier.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);
|
||
|
||
if (match) {
|
||
return -60 * parseInt(match[1]);
|
||
}
|
||
}
|
||
|
||
return null;
|
||
};
|
||
|
||
function IANAZone(name) {
|
||
var _this;
|
||
|
||
_this = _Zone.call(this) || this;
|
||
/** @private **/
|
||
|
||
_this.zoneName = name;
|
||
/** @private **/
|
||
|
||
_this.valid = IANAZone.isValidZone(name);
|
||
return _this;
|
||
}
|
||
/** @override **/
|
||
|
||
|
||
var _proto = IANAZone.prototype;
|
||
|
||
/** @override **/
|
||
_proto.offsetName = function offsetName(ts, _ref) {
|
||
var format = _ref.format,
|
||
locale = _ref.locale;
|
||
return parseZoneInfo(ts, format, locale, this.name);
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.formatOffset = function formatOffset$1(ts, format) {
|
||
return formatOffset(this.offset(ts), format);
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.offset = function offset(ts) {
|
||
var date = new Date(ts);
|
||
if (isNaN(date)) return NaN;
|
||
|
||
var dtf = makeDTF(this.name),
|
||
_ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),
|
||
year = _ref2[0],
|
||
month = _ref2[1],
|
||
day = _ref2[2],
|
||
hour = _ref2[3],
|
||
minute = _ref2[4],
|
||
second = _ref2[5],
|
||
adjustedHour = hour === 24 ? 0 : hour;
|
||
|
||
var asUTC = objToLocalTS({
|
||
year: year,
|
||
month: month,
|
||
day: day,
|
||
hour: adjustedHour,
|
||
minute: minute,
|
||
second: second,
|
||
millisecond: 0
|
||
});
|
||
var asTS = +date;
|
||
var over = asTS % 1000;
|
||
asTS -= over >= 0 ? over : 1000 + over;
|
||
return (asUTC - asTS) / (60 * 1000);
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.equals = function equals(otherZone) {
|
||
return otherZone.type === "iana" && otherZone.name === this.name;
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_createClass(IANAZone, [{
|
||
key: "type",
|
||
get: function get() {
|
||
return "iana";
|
||
}
|
||
/** @override **/
|
||
|
||
}, {
|
||
key: "name",
|
||
get: function get() {
|
||
return this.zoneName;
|
||
}
|
||
/** @override **/
|
||
|
||
}, {
|
||
key: "universal",
|
||
get: function get() {
|
||
return false;
|
||
}
|
||
}, {
|
||
key: "isValid",
|
||
get: function get() {
|
||
return this.valid;
|
||
}
|
||
}]);
|
||
|
||
return IANAZone;
|
||
}(Zone);
|
||
|
||
var singleton$1 = null;
|
||
/**
|
||
* A zone with a fixed offset (meaning no DST)
|
||
* @implements {Zone}
|
||
*/
|
||
|
||
var FixedOffsetZone = /*#__PURE__*/function (_Zone) {
|
||
_inheritsLoose(FixedOffsetZone, _Zone);
|
||
|
||
/**
|
||
* Get an instance with a specified offset
|
||
* @param {number} offset - The offset in minutes
|
||
* @return {FixedOffsetZone}
|
||
*/
|
||
FixedOffsetZone.instance = function instance(offset) {
|
||
return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);
|
||
}
|
||
/**
|
||
* Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
|
||
* @param {string} s - The offset string to parse
|
||
* @example FixedOffsetZone.parseSpecifier("UTC+6")
|
||
* @example FixedOffsetZone.parseSpecifier("UTC+06")
|
||
* @example FixedOffsetZone.parseSpecifier("UTC-6:00")
|
||
* @return {FixedOffsetZone}
|
||
*/
|
||
;
|
||
|
||
FixedOffsetZone.parseSpecifier = function parseSpecifier(s) {
|
||
if (s) {
|
||
var r = s.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
|
||
|
||
if (r) {
|
||
return new FixedOffsetZone(signedOffset(r[1], r[2]));
|
||
}
|
||
}
|
||
|
||
return null;
|
||
};
|
||
|
||
_createClass(FixedOffsetZone, null, [{
|
||
key: "utcInstance",
|
||
|
||
/**
|
||
* Get a singleton instance of UTC
|
||
* @return {FixedOffsetZone}
|
||
*/
|
||
get: function get() {
|
||
if (singleton$1 === null) {
|
||
singleton$1 = new FixedOffsetZone(0);
|
||
}
|
||
|
||
return singleton$1;
|
||
}
|
||
}]);
|
||
|
||
function FixedOffsetZone(offset) {
|
||
var _this;
|
||
|
||
_this = _Zone.call(this) || this;
|
||
/** @private **/
|
||
|
||
_this.fixed = offset;
|
||
return _this;
|
||
}
|
||
/** @override **/
|
||
|
||
|
||
var _proto = FixedOffsetZone.prototype;
|
||
|
||
/** @override **/
|
||
_proto.offsetName = function offsetName() {
|
||
return this.name;
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.formatOffset = function formatOffset$1(ts, format) {
|
||
return formatOffset(this.fixed, format);
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
/** @override **/
|
||
_proto.offset = function offset() {
|
||
return this.fixed;
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.equals = function equals(otherZone) {
|
||
return otherZone.type === "fixed" && otherZone.fixed === this.fixed;
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_createClass(FixedOffsetZone, [{
|
||
key: "type",
|
||
get: function get() {
|
||
return "fixed";
|
||
}
|
||
/** @override **/
|
||
|
||
}, {
|
||
key: "name",
|
||
get: function get() {
|
||
return this.fixed === 0 ? "UTC" : "UTC" + formatOffset(this.fixed, "narrow");
|
||
}
|
||
}, {
|
||
key: "universal",
|
||
get: function get() {
|
||
return true;
|
||
}
|
||
}, {
|
||
key: "isValid",
|
||
get: function get() {
|
||
return true;
|
||
}
|
||
}]);
|
||
|
||
return FixedOffsetZone;
|
||
}(Zone);
|
||
|
||
/**
|
||
* A zone that failed to parse. You should never need to instantiate this.
|
||
* @implements {Zone}
|
||
*/
|
||
|
||
var InvalidZone = /*#__PURE__*/function (_Zone) {
|
||
_inheritsLoose(InvalidZone, _Zone);
|
||
|
||
function InvalidZone(zoneName) {
|
||
var _this;
|
||
|
||
_this = _Zone.call(this) || this;
|
||
/** @private */
|
||
|
||
_this.zoneName = zoneName;
|
||
return _this;
|
||
}
|
||
/** @override **/
|
||
|
||
|
||
var _proto = InvalidZone.prototype;
|
||
|
||
/** @override **/
|
||
_proto.offsetName = function offsetName() {
|
||
return null;
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.formatOffset = function formatOffset() {
|
||
return "";
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.offset = function offset() {
|
||
return NaN;
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_proto.equals = function equals() {
|
||
return false;
|
||
}
|
||
/** @override **/
|
||
;
|
||
|
||
_createClass(InvalidZone, [{
|
||
key: "type",
|
||
get: function get() {
|
||
return "invalid";
|
||
}
|
||
/** @override **/
|
||
|
||
}, {
|
||
key: "name",
|
||
get: function get() {
|
||
return this.zoneName;
|
||
}
|
||
/** @override **/
|
||
|
||
}, {
|
||
key: "universal",
|
||
get: function get() {
|
||
return false;
|
||
}
|
||
}, {
|
||
key: "isValid",
|
||
get: function get() {
|
||
return false;
|
||
}
|
||
}]);
|
||
|
||
return InvalidZone;
|
||
}(Zone);
|
||
|
||
/**
|
||
* @private
|
||
*/
|
||
function normalizeZone(input, defaultZone) {
|
||
var offset;
|
||
|
||
if (isUndefined(input) || input === null) {
|
||
return defaultZone;
|
||
} else if (input instanceof Zone) {
|
||
return input;
|
||
} else if (isString(input)) {
|
||
var lowered = input.toLowerCase();
|
||
if (lowered === "local") return defaultZone;else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;else if ((offset = IANAZone.parseGMTOffset(input)) != null) {
|
||
// handle Etc/GMT-4, which V8 chokes on
|
||
return FixedOffsetZone.instance(offset);
|
||
} else if (IANAZone.isValidSpecifier(lowered)) return IANAZone.create(input);else return FixedOffsetZone.parseSpecifier(lowered) || new InvalidZone(input);
|
||
} else if (isNumber(input)) {
|
||
return FixedOffsetZone.instance(input);
|
||
} else if (typeof input === "object" && input.offset && typeof input.offset === "number") {
|
||
// This is dumb, but the instanceof check above doesn't seem to really work
|
||
// so we're duck checking it
|
||
return input;
|
||
} else {
|
||
return new InvalidZone(input);
|
||
}
|
||
}
|
||
|
||
var now = function now() {
|
||
return Date.now();
|
||
},
|
||
defaultZone = null,
|
||
// not setting this directly to LocalZone.instance bc loading order issues
|
||
defaultLocale = null,
|
||
defaultNumberingSystem = null,
|
||
defaultOutputCalendar = null,
|
||
throwOnInvalid = false;
|
||
/**
|
||
* Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.
|
||
*/
|
||
|
||
|
||
var Settings = /*#__PURE__*/function () {
|
||
function Settings() {}
|
||
|
||
/**
|
||
* Reset Luxon's global caches. Should only be necessary in testing scenarios.
|
||
* @return {void}
|
||
*/
|
||
Settings.resetCaches = function resetCaches() {
|
||
Locale.resetCache();
|
||
IANAZone.resetCache();
|
||
};
|
||
|
||
_createClass(Settings, null, [{
|
||
key: "now",
|
||
|
||
/**
|
||
* Get the callback for returning the current timestamp.
|
||
* @type {function}
|
||
*/
|
||
get: function get() {
|
||
return now;
|
||
}
|
||
/**
|
||
* Set the callback for returning the current timestamp.
|
||
* The function should return a number, which will be interpreted as an Epoch millisecond count
|
||
* @type {function}
|
||
* @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future
|
||
* @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time
|
||
*/
|
||
,
|
||
set: function set(n) {
|
||
now = n;
|
||
}
|
||
/**
|
||
* Get the default time zone to create DateTimes in.
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "defaultZoneName",
|
||
get: function get() {
|
||
return Settings.defaultZone.name;
|
||
}
|
||
/**
|
||
* Set the default time zone to create DateTimes in. Does not affect existing instances.
|
||
* @type {string}
|
||
*/
|
||
,
|
||
set: function set(z) {
|
||
if (!z) {
|
||
defaultZone = null;
|
||
} else {
|
||
defaultZone = normalizeZone(z);
|
||
}
|
||
}
|
||
/**
|
||
* Get the default time zone object to create DateTimes in. Does not affect existing instances.
|
||
* @type {Zone}
|
||
*/
|
||
|
||
}, {
|
||
key: "defaultZone",
|
||
get: function get() {
|
||
return defaultZone || LocalZone.instance;
|
||
}
|
||
/**
|
||
* Get the default locale to create DateTimes with. Does not affect existing instances.
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "defaultLocale",
|
||
get: function get() {
|
||
return defaultLocale;
|
||
}
|
||
/**
|
||
* Set the default locale to create DateTimes with. Does not affect existing instances.
|
||
* @type {string}
|
||
*/
|
||
,
|
||
set: function set(locale) {
|
||
defaultLocale = locale;
|
||
}
|
||
/**
|
||
* Get the default numbering system to create DateTimes with. Does not affect existing instances.
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "defaultNumberingSystem",
|
||
get: function get() {
|
||
return defaultNumberingSystem;
|
||
}
|
||
/**
|
||
* Set the default numbering system to create DateTimes with. Does not affect existing instances.
|
||
* @type {string}
|
||
*/
|
||
,
|
||
set: function set(numberingSystem) {
|
||
defaultNumberingSystem = numberingSystem;
|
||
}
|
||
/**
|
||
* Get the default output calendar to create DateTimes with. Does not affect existing instances.
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "defaultOutputCalendar",
|
||
get: function get() {
|
||
return defaultOutputCalendar;
|
||
}
|
||
/**
|
||
* Set the default output calendar to create DateTimes with. Does not affect existing instances.
|
||
* @type {string}
|
||
*/
|
||
,
|
||
set: function set(outputCalendar) {
|
||
defaultOutputCalendar = outputCalendar;
|
||
}
|
||
/**
|
||
* Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
|
||
* @type {boolean}
|
||
*/
|
||
|
||
}, {
|
||
key: "throwOnInvalid",
|
||
get: function get() {
|
||
return throwOnInvalid;
|
||
}
|
||
/**
|
||
* Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
|
||
* @type {boolean}
|
||
*/
|
||
,
|
||
set: function set(t) {
|
||
throwOnInvalid = t;
|
||
}
|
||
}]);
|
||
|
||
return Settings;
|
||
}();
|
||
|
||
var intlDTCache = {};
|
||
|
||
function getCachedDTF(locString, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var key = JSON.stringify([locString, opts]);
|
||
var dtf = intlDTCache[key];
|
||
|
||
if (!dtf) {
|
||
dtf = new Intl.DateTimeFormat(locString, opts);
|
||
intlDTCache[key] = dtf;
|
||
}
|
||
|
||
return dtf;
|
||
}
|
||
|
||
var intlNumCache = {};
|
||
|
||
function getCachedINF(locString, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var key = JSON.stringify([locString, opts]);
|
||
var inf = intlNumCache[key];
|
||
|
||
if (!inf) {
|
||
inf = new Intl.NumberFormat(locString, opts);
|
||
intlNumCache[key] = inf;
|
||
}
|
||
|
||
return inf;
|
||
}
|
||
|
||
var intlRelCache = {};
|
||
|
||
function getCachedRTF(locString, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var _opts = opts;
|
||
_opts.base;
|
||
var cacheKeyOpts = _objectWithoutPropertiesLoose(_opts, ["base"]); // exclude `base` from the options
|
||
|
||
|
||
var key = JSON.stringify([locString, cacheKeyOpts]);
|
||
var inf = intlRelCache[key];
|
||
|
||
if (!inf) {
|
||
inf = new Intl.RelativeTimeFormat(locString, opts);
|
||
intlRelCache[key] = inf;
|
||
}
|
||
|
||
return inf;
|
||
}
|
||
|
||
var sysLocaleCache = null;
|
||
|
||
function systemLocale() {
|
||
if (sysLocaleCache) {
|
||
return sysLocaleCache;
|
||
} else if (hasIntl()) {
|
||
var computedSys = new Intl.DateTimeFormat().resolvedOptions().locale; // node sometimes defaults to "und". Override that because that is dumb
|
||
|
||
sysLocaleCache = !computedSys || computedSys === "und" ? "en-US" : computedSys;
|
||
return sysLocaleCache;
|
||
} else {
|
||
sysLocaleCache = "en-US";
|
||
return sysLocaleCache;
|
||
}
|
||
}
|
||
|
||
function parseLocaleString(localeStr) {
|
||
// I really want to avoid writing a BCP 47 parser
|
||
// see, e.g. https://github.com/wooorm/bcp-47
|
||
// Instead, we'll do this:
|
||
// a) if the string has no -u extensions, just leave it alone
|
||
// b) if it does, use Intl to resolve everything
|
||
// c) if Intl fails, try again without the -u
|
||
var uIndex = localeStr.indexOf("-u-");
|
||
|
||
if (uIndex === -1) {
|
||
return [localeStr];
|
||
} else {
|
||
var options;
|
||
var smaller = localeStr.substring(0, uIndex);
|
||
|
||
try {
|
||
options = getCachedDTF(localeStr).resolvedOptions();
|
||
} catch (e) {
|
||
options = getCachedDTF(smaller).resolvedOptions();
|
||
}
|
||
|
||
var _options = options,
|
||
numberingSystem = _options.numberingSystem,
|
||
calendar = _options.calendar; // return the smaller one so that we can append the calendar and numbering overrides to it
|
||
|
||
return [smaller, numberingSystem, calendar];
|
||
}
|
||
}
|
||
|
||
function intlConfigString(localeStr, numberingSystem, outputCalendar) {
|
||
if (hasIntl()) {
|
||
if (outputCalendar || numberingSystem) {
|
||
localeStr += "-u";
|
||
|
||
if (outputCalendar) {
|
||
localeStr += "-ca-" + outputCalendar;
|
||
}
|
||
|
||
if (numberingSystem) {
|
||
localeStr += "-nu-" + numberingSystem;
|
||
}
|
||
|
||
return localeStr;
|
||
} else {
|
||
return localeStr;
|
||
}
|
||
} else {
|
||
return [];
|
||
}
|
||
}
|
||
|
||
function mapMonths(f) {
|
||
var ms = [];
|
||
|
||
for (var i = 1; i <= 12; i++) {
|
||
var dt = DateTime.utc(2016, i, 1);
|
||
ms.push(f(dt));
|
||
}
|
||
|
||
return ms;
|
||
}
|
||
|
||
function mapWeekdays(f) {
|
||
var ms = [];
|
||
|
||
for (var i = 1; i <= 7; i++) {
|
||
var dt = DateTime.utc(2016, 11, 13 + i);
|
||
ms.push(f(dt));
|
||
}
|
||
|
||
return ms;
|
||
}
|
||
|
||
function listStuff(loc, length, defaultOK, englishFn, intlFn) {
|
||
var mode = loc.listingMode(defaultOK);
|
||
|
||
if (mode === "error") {
|
||
return null;
|
||
} else if (mode === "en") {
|
||
return englishFn(length);
|
||
} else {
|
||
return intlFn(length);
|
||
}
|
||
}
|
||
|
||
function supportsFastNumbers(loc) {
|
||
if (loc.numberingSystem && loc.numberingSystem !== "latn") {
|
||
return false;
|
||
} else {
|
||
return loc.numberingSystem === "latn" || !loc.locale || loc.locale.startsWith("en") || hasIntl() && new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === "latn";
|
||
}
|
||
}
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
|
||
var PolyNumberFormatter = /*#__PURE__*/function () {
|
||
function PolyNumberFormatter(intl, forceSimple, opts) {
|
||
this.padTo = opts.padTo || 0;
|
||
this.floor = opts.floor || false;
|
||
|
||
if (!forceSimple && hasIntl()) {
|
||
var intlOpts = {
|
||
useGrouping: false
|
||
};
|
||
if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
|
||
this.inf = getCachedINF(intl, intlOpts);
|
||
}
|
||
}
|
||
|
||
var _proto = PolyNumberFormatter.prototype;
|
||
|
||
_proto.format = function format(i) {
|
||
if (this.inf) {
|
||
var fixed = this.floor ? Math.floor(i) : i;
|
||
return this.inf.format(fixed);
|
||
} else {
|
||
// to match the browser's numberformatter defaults
|
||
var _fixed = this.floor ? Math.floor(i) : roundTo(i, 3);
|
||
|
||
return padStart(_fixed, this.padTo);
|
||
}
|
||
};
|
||
|
||
return PolyNumberFormatter;
|
||
}();
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
|
||
var PolyDateFormatter = /*#__PURE__*/function () {
|
||
function PolyDateFormatter(dt, intl, opts) {
|
||
this.opts = opts;
|
||
this.hasIntl = hasIntl();
|
||
var z;
|
||
|
||
if (dt.zone.universal && this.hasIntl) {
|
||
// UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.
|
||
// That is why fixed-offset TZ is set to that unless it is:
|
||
// 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.
|
||
// 2. Unsupported by the browser:
|
||
// - some do not support Etc/
|
||
// - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata
|
||
var gmtOffset = -1 * (dt.offset / 60);
|
||
var offsetZ = gmtOffset >= 0 ? "Etc/GMT+" + gmtOffset : "Etc/GMT" + gmtOffset;
|
||
var isOffsetZoneSupported = IANAZone.isValidZone(offsetZ);
|
||
|
||
if (dt.offset !== 0 && isOffsetZoneSupported) {
|
||
z = offsetZ;
|
||
this.dt = dt;
|
||
} else {
|
||
// Not all fixed-offset zones like Etc/+4:30 are present in tzdata.
|
||
// So we have to make do. Two cases:
|
||
// 1. The format options tell us to show the zone. We can't do that, so the best
|
||
// we can do is format the date in UTC.
|
||
// 2. The format options don't tell us to show the zone. Then we can adjust them
|
||
// the time and tell the formatter to show it to us in UTC, so that the time is right
|
||
// and the bad zone doesn't show up.
|
||
z = "UTC";
|
||
|
||
if (opts.timeZoneName) {
|
||
this.dt = dt;
|
||
} else {
|
||
this.dt = dt.offset === 0 ? dt : DateTime.fromMillis(dt.ts + dt.offset * 60 * 1000);
|
||
}
|
||
}
|
||
} else if (dt.zone.type === "local") {
|
||
this.dt = dt;
|
||
} else {
|
||
this.dt = dt;
|
||
z = dt.zone.name;
|
||
}
|
||
|
||
if (this.hasIntl) {
|
||
var intlOpts = Object.assign({}, this.opts);
|
||
|
||
if (z) {
|
||
intlOpts.timeZone = z;
|
||
}
|
||
|
||
this.dtf = getCachedDTF(intl, intlOpts);
|
||
}
|
||
}
|
||
|
||
var _proto2 = PolyDateFormatter.prototype;
|
||
|
||
_proto2.format = function format() {
|
||
if (this.hasIntl) {
|
||
return this.dtf.format(this.dt.toJSDate());
|
||
} else {
|
||
var tokenFormat = formatString(this.opts),
|
||
loc = Locale.create("en-US");
|
||
return Formatter.create(loc).formatDateTimeFromString(this.dt, tokenFormat);
|
||
}
|
||
};
|
||
|
||
_proto2.formatToParts = function formatToParts() {
|
||
if (this.hasIntl && hasFormatToParts()) {
|
||
return this.dtf.formatToParts(this.dt.toJSDate());
|
||
} else {
|
||
// This is kind of a cop out. We actually could do this for English. However, we couldn't do it for intl strings
|
||
// and IMO it's too weird to have an uncanny valley like that
|
||
return [];
|
||
}
|
||
};
|
||
|
||
_proto2.resolvedOptions = function resolvedOptions() {
|
||
if (this.hasIntl) {
|
||
return this.dtf.resolvedOptions();
|
||
} else {
|
||
return {
|
||
locale: "en-US",
|
||
numberingSystem: "latn",
|
||
outputCalendar: "gregory"
|
||
};
|
||
}
|
||
};
|
||
|
||
return PolyDateFormatter;
|
||
}();
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
|
||
var PolyRelFormatter = /*#__PURE__*/function () {
|
||
function PolyRelFormatter(intl, isEnglish, opts) {
|
||
this.opts = Object.assign({
|
||
style: "long"
|
||
}, opts);
|
||
|
||
if (!isEnglish && hasRelative()) {
|
||
this.rtf = getCachedRTF(intl, opts);
|
||
}
|
||
}
|
||
|
||
var _proto3 = PolyRelFormatter.prototype;
|
||
|
||
_proto3.format = function format(count, unit) {
|
||
if (this.rtf) {
|
||
return this.rtf.format(count, unit);
|
||
} else {
|
||
return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== "long");
|
||
}
|
||
};
|
||
|
||
_proto3.formatToParts = function formatToParts(count, unit) {
|
||
if (this.rtf) {
|
||
return this.rtf.formatToParts(count, unit);
|
||
} else {
|
||
return [];
|
||
}
|
||
};
|
||
|
||
return PolyRelFormatter;
|
||
}();
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
|
||
var Locale = /*#__PURE__*/function () {
|
||
Locale.fromOpts = function fromOpts(opts) {
|
||
return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);
|
||
};
|
||
|
||
Locale.create = function create(locale, numberingSystem, outputCalendar, defaultToEN) {
|
||
if (defaultToEN === void 0) {
|
||
defaultToEN = false;
|
||
}
|
||
|
||
var specifiedLocale = locale || Settings.defaultLocale,
|
||
// the system locale is useful for human readable strings but annoying for parsing/formatting known formats
|
||
localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale()),
|
||
numberingSystemR = numberingSystem || Settings.defaultNumberingSystem,
|
||
outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;
|
||
return new Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale);
|
||
};
|
||
|
||
Locale.resetCache = function resetCache() {
|
||
sysLocaleCache = null;
|
||
intlDTCache = {};
|
||
intlNumCache = {};
|
||
intlRelCache = {};
|
||
};
|
||
|
||
Locale.fromObject = function fromObject(_temp) {
|
||
var _ref = _temp === void 0 ? {} : _temp,
|
||
locale = _ref.locale,
|
||
numberingSystem = _ref.numberingSystem,
|
||
outputCalendar = _ref.outputCalendar;
|
||
|
||
return Locale.create(locale, numberingSystem, outputCalendar);
|
||
};
|
||
|
||
function Locale(locale, numbering, outputCalendar, specifiedLocale) {
|
||
var _parseLocaleString = parseLocaleString(locale),
|
||
parsedLocale = _parseLocaleString[0],
|
||
parsedNumberingSystem = _parseLocaleString[1],
|
||
parsedOutputCalendar = _parseLocaleString[2];
|
||
|
||
this.locale = parsedLocale;
|
||
this.numberingSystem = numbering || parsedNumberingSystem || null;
|
||
this.outputCalendar = outputCalendar || parsedOutputCalendar || null;
|
||
this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);
|
||
this.weekdaysCache = {
|
||
format: {},
|
||
standalone: {}
|
||
};
|
||
this.monthsCache = {
|
||
format: {},
|
||
standalone: {}
|
||
};
|
||
this.meridiemCache = null;
|
||
this.eraCache = {};
|
||
this.specifiedLocale = specifiedLocale;
|
||
this.fastNumbersCached = null;
|
||
}
|
||
|
||
var _proto4 = Locale.prototype;
|
||
|
||
_proto4.listingMode = function listingMode(defaultOK) {
|
||
if (defaultOK === void 0) {
|
||
defaultOK = true;
|
||
}
|
||
|
||
var intl = hasIntl(),
|
||
hasFTP = intl && hasFormatToParts(),
|
||
isActuallyEn = this.isEnglish(),
|
||
hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
||
|
||
if (!hasFTP && !(isActuallyEn && hasNoWeirdness) && !defaultOK) {
|
||
return "error";
|
||
} else if (!hasFTP || isActuallyEn && hasNoWeirdness) {
|
||
return "en";
|
||
} else {
|
||
return "intl";
|
||
}
|
||
};
|
||
|
||
_proto4.clone = function clone(alts) {
|
||
if (!alts || Object.getOwnPropertyNames(alts).length === 0) {
|
||
return this;
|
||
} else {
|
||
return Locale.create(alts.locale || this.specifiedLocale, alts.numberingSystem || this.numberingSystem, alts.outputCalendar || this.outputCalendar, alts.defaultToEN || false);
|
||
}
|
||
};
|
||
|
||
_proto4.redefaultToEN = function redefaultToEN(alts) {
|
||
if (alts === void 0) {
|
||
alts = {};
|
||
}
|
||
|
||
return this.clone(Object.assign({}, alts, {
|
||
defaultToEN: true
|
||
}));
|
||
};
|
||
|
||
_proto4.redefaultToSystem = function redefaultToSystem(alts) {
|
||
if (alts === void 0) {
|
||
alts = {};
|
||
}
|
||
|
||
return this.clone(Object.assign({}, alts, {
|
||
defaultToEN: false
|
||
}));
|
||
};
|
||
|
||
_proto4.months = function months$1(length, format, defaultOK) {
|
||
var _this = this;
|
||
|
||
if (format === void 0) {
|
||
format = false;
|
||
}
|
||
|
||
if (defaultOK === void 0) {
|
||
defaultOK = true;
|
||
}
|
||
|
||
return listStuff(this, length, defaultOK, months, function () {
|
||
var intl = format ? {
|
||
month: length,
|
||
day: "numeric"
|
||
} : {
|
||
month: length
|
||
},
|
||
formatStr = format ? "format" : "standalone";
|
||
|
||
if (!_this.monthsCache[formatStr][length]) {
|
||
_this.monthsCache[formatStr][length] = mapMonths(function (dt) {
|
||
return _this.extract(dt, intl, "month");
|
||
});
|
||
}
|
||
|
||
return _this.monthsCache[formatStr][length];
|
||
});
|
||
};
|
||
|
||
_proto4.weekdays = function weekdays$1(length, format, defaultOK) {
|
||
var _this2 = this;
|
||
|
||
if (format === void 0) {
|
||
format = false;
|
||
}
|
||
|
||
if (defaultOK === void 0) {
|
||
defaultOK = true;
|
||
}
|
||
|
||
return listStuff(this, length, defaultOK, weekdays, function () {
|
||
var intl = format ? {
|
||
weekday: length,
|
||
year: "numeric",
|
||
month: "long",
|
||
day: "numeric"
|
||
} : {
|
||
weekday: length
|
||
},
|
||
formatStr = format ? "format" : "standalone";
|
||
|
||
if (!_this2.weekdaysCache[formatStr][length]) {
|
||
_this2.weekdaysCache[formatStr][length] = mapWeekdays(function (dt) {
|
||
return _this2.extract(dt, intl, "weekday");
|
||
});
|
||
}
|
||
|
||
return _this2.weekdaysCache[formatStr][length];
|
||
});
|
||
};
|
||
|
||
_proto4.meridiems = function meridiems$1(defaultOK) {
|
||
var _this3 = this;
|
||
|
||
if (defaultOK === void 0) {
|
||
defaultOK = true;
|
||
}
|
||
|
||
return listStuff(this, undefined, defaultOK, function () {
|
||
return meridiems;
|
||
}, function () {
|
||
// In theory there could be aribitrary day periods. We're gonna assume there are exactly two
|
||
// for AM and PM. This is probably wrong, but it's makes parsing way easier.
|
||
if (!_this3.meridiemCache) {
|
||
var intl = {
|
||
hour: "numeric",
|
||
hour12: true
|
||
};
|
||
_this3.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(function (dt) {
|
||
return _this3.extract(dt, intl, "dayperiod");
|
||
});
|
||
}
|
||
|
||
return _this3.meridiemCache;
|
||
});
|
||
};
|
||
|
||
_proto4.eras = function eras$1(length, defaultOK) {
|
||
var _this4 = this;
|
||
|
||
if (defaultOK === void 0) {
|
||
defaultOK = true;
|
||
}
|
||
|
||
return listStuff(this, length, defaultOK, eras, function () {
|
||
var intl = {
|
||
era: length
|
||
}; // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates
|
||
// to definitely enumerate them.
|
||
|
||
if (!_this4.eraCache[length]) {
|
||
_this4.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map(function (dt) {
|
||
return _this4.extract(dt, intl, "era");
|
||
});
|
||
}
|
||
|
||
return _this4.eraCache[length];
|
||
});
|
||
};
|
||
|
||
_proto4.extract = function extract(dt, intlOpts, field) {
|
||
var df = this.dtFormatter(dt, intlOpts),
|
||
results = df.formatToParts(),
|
||
matching = results.find(function (m) {
|
||
return m.type.toLowerCase() === field;
|
||
});
|
||
return matching ? matching.value : null;
|
||
};
|
||
|
||
_proto4.numberFormatter = function numberFormatter(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
// this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)
|
||
// (in contrast, the rest of the condition is used heavily)
|
||
return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);
|
||
};
|
||
|
||
_proto4.dtFormatter = function dtFormatter(dt, intlOpts) {
|
||
if (intlOpts === void 0) {
|
||
intlOpts = {};
|
||
}
|
||
|
||
return new PolyDateFormatter(dt, this.intl, intlOpts);
|
||
};
|
||
|
||
_proto4.relFormatter = function relFormatter(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
return new PolyRelFormatter(this.intl, this.isEnglish(), opts);
|
||
};
|
||
|
||
_proto4.isEnglish = function isEnglish() {
|
||
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || hasIntl() && new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us");
|
||
};
|
||
|
||
_proto4.equals = function equals(other) {
|
||
return this.locale === other.locale && this.numberingSystem === other.numberingSystem && this.outputCalendar === other.outputCalendar;
|
||
};
|
||
|
||
_createClass(Locale, [{
|
||
key: "fastNumbers",
|
||
get: function get() {
|
||
if (this.fastNumbersCached == null) {
|
||
this.fastNumbersCached = supportsFastNumbers(this);
|
||
}
|
||
|
||
return this.fastNumbersCached;
|
||
}
|
||
}]);
|
||
|
||
return Locale;
|
||
}();
|
||
|
||
/*
|
||
* This file handles parsing for well-specified formats. Here's how it works:
|
||
* Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.
|
||
* An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object
|
||
* parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.
|
||
* Extractors can take a "cursor" representing the offset in the match to look at. This makes it easy to combine extractors.
|
||
* combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.
|
||
* Some extractions are super dumb and simpleParse and fromStrings help DRY them.
|
||
*/
|
||
|
||
function combineRegexes() {
|
||
for (var _len = arguments.length, regexes = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
regexes[_key] = arguments[_key];
|
||
}
|
||
|
||
var full = regexes.reduce(function (f, r) {
|
||
return f + r.source;
|
||
}, "");
|
||
return RegExp("^" + full + "$");
|
||
}
|
||
|
||
function combineExtractors() {
|
||
for (var _len2 = arguments.length, extractors = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||
extractors[_key2] = arguments[_key2];
|
||
}
|
||
|
||
return function (m) {
|
||
return extractors.reduce(function (_ref, ex) {
|
||
var mergedVals = _ref[0],
|
||
mergedZone = _ref[1],
|
||
cursor = _ref[2];
|
||
|
||
var _ex = ex(m, cursor),
|
||
val = _ex[0],
|
||
zone = _ex[1],
|
||
next = _ex[2];
|
||
|
||
return [Object.assign(mergedVals, val), mergedZone || zone, next];
|
||
}, [{}, null, 1]).slice(0, 2);
|
||
};
|
||
}
|
||
|
||
function parse(s) {
|
||
if (s == null) {
|
||
return [null, null];
|
||
}
|
||
|
||
for (var _len3 = arguments.length, patterns = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
||
patterns[_key3 - 1] = arguments[_key3];
|
||
}
|
||
|
||
for (var _i = 0, _patterns = patterns; _i < _patterns.length; _i++) {
|
||
var _patterns$_i = _patterns[_i],
|
||
regex = _patterns$_i[0],
|
||
extractor = _patterns$_i[1];
|
||
var m = regex.exec(s);
|
||
|
||
if (m) {
|
||
return extractor(m);
|
||
}
|
||
}
|
||
|
||
return [null, null];
|
||
}
|
||
|
||
function simpleParse() {
|
||
for (var _len4 = arguments.length, keys = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
||
keys[_key4] = arguments[_key4];
|
||
}
|
||
|
||
return function (match, cursor) {
|
||
var ret = {};
|
||
var i;
|
||
|
||
for (i = 0; i < keys.length; i++) {
|
||
ret[keys[i]] = parseInteger(match[cursor + i]);
|
||
}
|
||
|
||
return [ret, null, cursor + i];
|
||
};
|
||
} // ISO and SQL parsing
|
||
|
||
|
||
var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,
|
||
isoTimeBaseRegex = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,
|
||
isoTimeRegex = RegExp("" + isoTimeBaseRegex.source + offsetRegex.source + "?"),
|
||
isoTimeExtensionRegex = RegExp("(?:T" + isoTimeRegex.source + ")?"),
|
||
isoYmdRegex = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,
|
||
isoWeekRegex = /(\d{4})-?W(\d\d)(?:-?(\d))?/,
|
||
isoOrdinalRegex = /(\d{4})-?(\d{3})/,
|
||
extractISOWeekData = simpleParse("weekYear", "weekNumber", "weekDay"),
|
||
extractISOOrdinalData = simpleParse("year", "ordinal"),
|
||
sqlYmdRegex = /(\d{4})-(\d\d)-(\d\d)/,
|
||
// dumbed-down version of the ISO one
|
||
sqlTimeRegex = RegExp(isoTimeBaseRegex.source + " ?(?:" + offsetRegex.source + "|(" + ianaRegex.source + "))?"),
|
||
sqlTimeExtensionRegex = RegExp("(?: " + sqlTimeRegex.source + ")?");
|
||
|
||
function int(match, pos, fallback) {
|
||
var m = match[pos];
|
||
return isUndefined(m) ? fallback : parseInteger(m);
|
||
}
|
||
|
||
function extractISOYmd(match, cursor) {
|
||
var item = {
|
||
year: int(match, cursor),
|
||
month: int(match, cursor + 1, 1),
|
||
day: int(match, cursor + 2, 1)
|
||
};
|
||
return [item, null, cursor + 3];
|
||
}
|
||
|
||
function extractISOTime(match, cursor) {
|
||
var item = {
|
||
hours: int(match, cursor, 0),
|
||
minutes: int(match, cursor + 1, 0),
|
||
seconds: int(match, cursor + 2, 0),
|
||
milliseconds: parseMillis(match[cursor + 3])
|
||
};
|
||
return [item, null, cursor + 4];
|
||
}
|
||
|
||
function extractISOOffset(match, cursor) {
|
||
var local = !match[cursor] && !match[cursor + 1],
|
||
fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),
|
||
zone = local ? null : FixedOffsetZone.instance(fullOffset);
|
||
return [{}, zone, cursor + 3];
|
||
}
|
||
|
||
function extractIANAZone(match, cursor) {
|
||
var zone = match[cursor] ? IANAZone.create(match[cursor]) : null;
|
||
return [{}, zone, cursor + 1];
|
||
} // ISO time parsing
|
||
|
||
|
||
var isoTimeOnly = RegExp("^T?" + isoTimeBaseRegex.source + "$"); // ISO duration parsing
|
||
|
||
var isoDuration = /^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
||
|
||
function extractISODuration(match) {
|
||
var s = match[0],
|
||
yearStr = match[1],
|
||
monthStr = match[2],
|
||
weekStr = match[3],
|
||
dayStr = match[4],
|
||
hourStr = match[5],
|
||
minuteStr = match[6],
|
||
secondStr = match[7],
|
||
millisecondsStr = match[8];
|
||
var hasNegativePrefix = s[0] === "-";
|
||
var negativeSeconds = secondStr && secondStr[0] === "-";
|
||
|
||
var maybeNegate = function maybeNegate(num, force) {
|
||
if (force === void 0) {
|
||
force = false;
|
||
}
|
||
|
||
return num !== undefined && (force || num && hasNegativePrefix) ? -num : num;
|
||
};
|
||
|
||
return [{
|
||
years: maybeNegate(parseInteger(yearStr)),
|
||
months: maybeNegate(parseInteger(monthStr)),
|
||
weeks: maybeNegate(parseInteger(weekStr)),
|
||
days: maybeNegate(parseInteger(dayStr)),
|
||
hours: maybeNegate(parseInteger(hourStr)),
|
||
minutes: maybeNegate(parseInteger(minuteStr)),
|
||
seconds: maybeNegate(parseInteger(secondStr), secondStr === "-0"),
|
||
milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds)
|
||
}];
|
||
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
||
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
||
// I'm just going to ignore that
|
||
|
||
|
||
var obsOffsets = {
|
||
GMT: 0,
|
||
EDT: -4 * 60,
|
||
EST: -5 * 60,
|
||
CDT: -5 * 60,
|
||
CST: -6 * 60,
|
||
MDT: -6 * 60,
|
||
MST: -7 * 60,
|
||
PDT: -7 * 60,
|
||
PST: -8 * 60
|
||
};
|
||
|
||
function fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
|
||
var result = {
|
||
year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),
|
||
month: monthsShort.indexOf(monthStr) + 1,
|
||
day: parseInteger(dayStr),
|
||
hour: parseInteger(hourStr),
|
||
minute: parseInteger(minuteStr)
|
||
};
|
||
if (secondStr) result.second = parseInteger(secondStr);
|
||
|
||
if (weekdayStr) {
|
||
result.weekday = weekdayStr.length > 3 ? weekdaysLong.indexOf(weekdayStr) + 1 : weekdaysShort.indexOf(weekdayStr) + 1;
|
||
}
|
||
|
||
return result;
|
||
} // RFC 2822/5322
|
||
|
||
|
||
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\d)(\d\d)))$/;
|
||
|
||
function extractRFC2822(match) {
|
||
var weekdayStr = match[1],
|
||
dayStr = match[2],
|
||
monthStr = match[3],
|
||
yearStr = match[4],
|
||
hourStr = match[5],
|
||
minuteStr = match[6],
|
||
secondStr = match[7],
|
||
obsOffset = match[8],
|
||
milOffset = match[9],
|
||
offHourStr = match[10],
|
||
offMinuteStr = match[11],
|
||
result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);
|
||
var offset;
|
||
|
||
if (obsOffset) {
|
||
offset = obsOffsets[obsOffset];
|
||
} else if (milOffset) {
|
||
offset = 0;
|
||
} else {
|
||
offset = signedOffset(offHourStr, offMinuteStr);
|
||
}
|
||
|
||
return [result, new FixedOffsetZone(offset)];
|
||
}
|
||
|
||
function preprocessRFC2822(s) {
|
||
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
||
return s.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
||
} // http date
|
||
|
||
|
||
var rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,
|
||
rfc850 = /^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,
|
||
ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
||
|
||
function extractRFC1123Or850(match) {
|
||
var weekdayStr = match[1],
|
||
dayStr = match[2],
|
||
monthStr = match[3],
|
||
yearStr = match[4],
|
||
hourStr = match[5],
|
||
minuteStr = match[6],
|
||
secondStr = match[7],
|
||
result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);
|
||
return [result, FixedOffsetZone.utcInstance];
|
||
}
|
||
|
||
function extractASCII(match) {
|
||
var weekdayStr = match[1],
|
||
monthStr = match[2],
|
||
dayStr = match[3],
|
||
hourStr = match[4],
|
||
minuteStr = match[5],
|
||
secondStr = match[6],
|
||
yearStr = match[7],
|
||
result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);
|
||
return [result, FixedOffsetZone.utcInstance];
|
||
}
|
||
|
||
var isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);
|
||
var isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);
|
||
var isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);
|
||
var isoTimeCombinedRegex = combineRegexes(isoTimeRegex);
|
||
var extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset);
|
||
var extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset);
|
||
var extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset);
|
||
var extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset);
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
function parseISODate(s) {
|
||
return parse(s, [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset], [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime], [isoTimeCombinedRegex, extractISOTimeAndOffset]);
|
||
}
|
||
function parseRFC2822Date(s) {
|
||
return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);
|
||
}
|
||
function parseHTTPDate(s) {
|
||
return parse(s, [rfc1123, extractRFC1123Or850], [rfc850, extractRFC1123Or850], [ascii, extractASCII]);
|
||
}
|
||
function parseISODuration(s) {
|
||
return parse(s, [isoDuration, extractISODuration]);
|
||
}
|
||
var extractISOTimeOnly = combineExtractors(extractISOTime);
|
||
function parseISOTimeOnly(s) {
|
||
return parse(s, [isoTimeOnly, extractISOTimeOnly]);
|
||
}
|
||
var sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);
|
||
var sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);
|
||
var extractISOYmdTimeOffsetAndIANAZone = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone);
|
||
var extractISOTimeOffsetAndIANAZone = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);
|
||
function parseSQL(s) {
|
||
return parse(s, [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeOffsetAndIANAZone], [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]);
|
||
}
|
||
|
||
var INVALID = "Invalid Duration"; // unit conversion constants
|
||
|
||
var lowOrderMatrix = {
|
||
weeks: {
|
||
days: 7,
|
||
hours: 7 * 24,
|
||
minutes: 7 * 24 * 60,
|
||
seconds: 7 * 24 * 60 * 60,
|
||
milliseconds: 7 * 24 * 60 * 60 * 1000
|
||
},
|
||
days: {
|
||
hours: 24,
|
||
minutes: 24 * 60,
|
||
seconds: 24 * 60 * 60,
|
||
milliseconds: 24 * 60 * 60 * 1000
|
||
},
|
||
hours: {
|
||
minutes: 60,
|
||
seconds: 60 * 60,
|
||
milliseconds: 60 * 60 * 1000
|
||
},
|
||
minutes: {
|
||
seconds: 60,
|
||
milliseconds: 60 * 1000
|
||
},
|
||
seconds: {
|
||
milliseconds: 1000
|
||
}
|
||
},
|
||
casualMatrix = Object.assign({
|
||
years: {
|
||
quarters: 4,
|
||
months: 12,
|
||
weeks: 52,
|
||
days: 365,
|
||
hours: 365 * 24,
|
||
minutes: 365 * 24 * 60,
|
||
seconds: 365 * 24 * 60 * 60,
|
||
milliseconds: 365 * 24 * 60 * 60 * 1000
|
||
},
|
||
quarters: {
|
||
months: 3,
|
||
weeks: 13,
|
||
days: 91,
|
||
hours: 91 * 24,
|
||
minutes: 91 * 24 * 60,
|
||
seconds: 91 * 24 * 60 * 60,
|
||
milliseconds: 91 * 24 * 60 * 60 * 1000
|
||
},
|
||
months: {
|
||
weeks: 4,
|
||
days: 30,
|
||
hours: 30 * 24,
|
||
minutes: 30 * 24 * 60,
|
||
seconds: 30 * 24 * 60 * 60,
|
||
milliseconds: 30 * 24 * 60 * 60 * 1000
|
||
}
|
||
}, lowOrderMatrix),
|
||
daysInYearAccurate = 146097.0 / 400,
|
||
daysInMonthAccurate = 146097.0 / 4800,
|
||
accurateMatrix = Object.assign({
|
||
years: {
|
||
quarters: 4,
|
||
months: 12,
|
||
weeks: daysInYearAccurate / 7,
|
||
days: daysInYearAccurate,
|
||
hours: daysInYearAccurate * 24,
|
||
minutes: daysInYearAccurate * 24 * 60,
|
||
seconds: daysInYearAccurate * 24 * 60 * 60,
|
||
milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000
|
||
},
|
||
quarters: {
|
||
months: 3,
|
||
weeks: daysInYearAccurate / 28,
|
||
days: daysInYearAccurate / 4,
|
||
hours: daysInYearAccurate * 24 / 4,
|
||
minutes: daysInYearAccurate * 24 * 60 / 4,
|
||
seconds: daysInYearAccurate * 24 * 60 * 60 / 4,
|
||
milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000 / 4
|
||
},
|
||
months: {
|
||
weeks: daysInMonthAccurate / 7,
|
||
days: daysInMonthAccurate,
|
||
hours: daysInMonthAccurate * 24,
|
||
minutes: daysInMonthAccurate * 24 * 60,
|
||
seconds: daysInMonthAccurate * 24 * 60 * 60,
|
||
milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000
|
||
}
|
||
}, lowOrderMatrix); // units ordered by size
|
||
|
||
var orderedUnits = ["years", "quarters", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds"];
|
||
var reverseUnits = orderedUnits.slice(0).reverse(); // clone really means "create another instance just like this one, but with these changes"
|
||
|
||
function clone(dur, alts, clear) {
|
||
if (clear === void 0) {
|
||
clear = false;
|
||
}
|
||
|
||
// deep merge for vals
|
||
var conf = {
|
||
values: clear ? alts.values : Object.assign({}, dur.values, alts.values || {}),
|
||
loc: dur.loc.clone(alts.loc),
|
||
conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy
|
||
};
|
||
return new Duration(conf);
|
||
}
|
||
|
||
function antiTrunc(n) {
|
||
return n < 0 ? Math.floor(n) : Math.ceil(n);
|
||
} // NB: mutates parameters
|
||
|
||
|
||
function convert(matrix, fromMap, fromUnit, toMap, toUnit) {
|
||
var conv = matrix[toUnit][fromUnit],
|
||
raw = fromMap[fromUnit] / conv,
|
||
sameSign = Math.sign(raw) === Math.sign(toMap[toUnit]),
|
||
// ok, so this is wild, but see the matrix in the tests
|
||
added = !sameSign && toMap[toUnit] !== 0 && Math.abs(raw) <= 1 ? antiTrunc(raw) : Math.trunc(raw);
|
||
toMap[toUnit] += added;
|
||
fromMap[fromUnit] -= added * conv;
|
||
} // NB: mutates parameters
|
||
|
||
|
||
function normalizeValues(matrix, vals) {
|
||
reverseUnits.reduce(function (previous, current) {
|
||
if (!isUndefined(vals[current])) {
|
||
if (previous) {
|
||
convert(matrix, vals, previous, vals, current);
|
||
}
|
||
|
||
return current;
|
||
} else {
|
||
return previous;
|
||
}
|
||
}, null);
|
||
}
|
||
/**
|
||
* A Duration object represents a period of time, like "2 months" or "1 day, 1 hour". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime.plus} to add a Duration object to a DateTime, producing another DateTime.
|
||
*
|
||
* Here is a brief overview of commonly used methods and getters in Duration:
|
||
*
|
||
* * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.
|
||
* * **Unit values** See the {@link Duration.years}, {@link Duration.months}, {@link Duration.weeks}, {@link Duration.days}, {@link Duration.hours}, {@link Duration.minutes}, {@link Duration.seconds}, {@link Duration.milliseconds} accessors.
|
||
* * **Configuration** See {@link Duration.locale} and {@link Duration.numberingSystem} accessors.
|
||
* * **Transformation** To create new Durations out of old ones use {@link Duration.plus}, {@link Duration.minus}, {@link Duration.normalize}, {@link Duration.set}, {@link Duration.reconfigure}, {@link Duration.shiftTo}, and {@link Duration.negate}.
|
||
* * **Output** To convert the Duration into other representations, see {@link Duration.as}, {@link Duration.toISO}, {@link Duration.toFormat}, and {@link Duration.toJSON}
|
||
*
|
||
* There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.
|
||
*/
|
||
|
||
|
||
var Duration = /*#__PURE__*/function () {
|
||
/**
|
||
* @private
|
||
*/
|
||
function Duration(config) {
|
||
var accurate = config.conversionAccuracy === "longterm" || false;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.values = config.values;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.loc = config.loc || Locale.create();
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.conversionAccuracy = accurate ? "longterm" : "casual";
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.invalid = config.invalid || null;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.matrix = accurate ? accurateMatrix : casualMatrix;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.isLuxonDuration = true;
|
||
}
|
||
/**
|
||
* Create Duration from a number of milliseconds.
|
||
* @param {number} count of milliseconds
|
||
* @param {Object} opts - options for parsing
|
||
* @param {string} [opts.locale='en-US'] - the locale to use
|
||
* @param {string} opts.numberingSystem - the numbering system to use
|
||
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
||
* @return {Duration}
|
||
*/
|
||
|
||
|
||
Duration.fromMillis = function fromMillis(count, opts) {
|
||
return Duration.fromObject(Object.assign({
|
||
milliseconds: count
|
||
}, opts));
|
||
}
|
||
/**
|
||
* Create a Duration from a JavaScript object with keys like 'years' and 'hours'.
|
||
* If this object is empty then a zero milliseconds duration is returned.
|
||
* @param {Object} obj - the object to create the DateTime from
|
||
* @param {number} obj.years
|
||
* @param {number} obj.quarters
|
||
* @param {number} obj.months
|
||
* @param {number} obj.weeks
|
||
* @param {number} obj.days
|
||
* @param {number} obj.hours
|
||
* @param {number} obj.minutes
|
||
* @param {number} obj.seconds
|
||
* @param {number} obj.milliseconds
|
||
* @param {string} [obj.locale='en-US'] - the locale to use
|
||
* @param {string} obj.numberingSystem - the numbering system to use
|
||
* @param {string} [obj.conversionAccuracy='casual'] - the conversion system to use
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
Duration.fromObject = function fromObject(obj) {
|
||
if (obj == null || typeof obj !== "object") {
|
||
throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got " + (obj === null ? "null" : typeof obj));
|
||
}
|
||
|
||
return new Duration({
|
||
values: normalizeObject(obj, Duration.normalizeUnit, ["locale", "numberingSystem", "conversionAccuracy", "zone" // a bit of debt; it's super inconvenient internally not to be able to blindly pass this
|
||
]),
|
||
loc: Locale.fromObject(obj),
|
||
conversionAccuracy: obj.conversionAccuracy
|
||
});
|
||
}
|
||
/**
|
||
* Create a Duration from an ISO 8601 duration string.
|
||
* @param {string} text - text to parse
|
||
* @param {Object} opts - options for parsing
|
||
* @param {string} [opts.locale='en-US'] - the locale to use
|
||
* @param {string} opts.numberingSystem - the numbering system to use
|
||
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
||
* @see https://en.wikipedia.org/wiki/ISO_8601#Durations
|
||
* @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }
|
||
* @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }
|
||
* @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
Duration.fromISO = function fromISO(text, opts) {
|
||
var _parseISODuration = parseISODuration(text),
|
||
parsed = _parseISODuration[0];
|
||
|
||
if (parsed) {
|
||
var obj = Object.assign(parsed, opts);
|
||
return Duration.fromObject(obj);
|
||
} else {
|
||
return Duration.invalid("unparsable", "the input \"" + text + "\" can't be parsed as ISO 8601");
|
||
}
|
||
}
|
||
/**
|
||
* Create a Duration from an ISO 8601 time string.
|
||
* @param {string} text - text to parse
|
||
* @param {Object} opts - options for parsing
|
||
* @param {string} [opts.locale='en-US'] - the locale to use
|
||
* @param {string} opts.numberingSystem - the numbering system to use
|
||
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
||
* @see https://en.wikipedia.org/wiki/ISO_8601#Times
|
||
* @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }
|
||
* @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
||
* @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
||
* @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
||
* @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
Duration.fromISOTime = function fromISOTime(text, opts) {
|
||
var _parseISOTimeOnly = parseISOTimeOnly(text),
|
||
parsed = _parseISOTimeOnly[0];
|
||
|
||
if (parsed) {
|
||
var obj = Object.assign(parsed, opts);
|
||
return Duration.fromObject(obj);
|
||
} else {
|
||
return Duration.invalid("unparsable", "the input \"" + text + "\" can't be parsed as ISO 8601");
|
||
}
|
||
}
|
||
/**
|
||
* Create an invalid Duration.
|
||
* @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent
|
||
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
Duration.invalid = function invalid(reason, explanation) {
|
||
if (explanation === void 0) {
|
||
explanation = null;
|
||
}
|
||
|
||
if (!reason) {
|
||
throw new InvalidArgumentError("need to specify a reason the Duration is invalid");
|
||
}
|
||
|
||
var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);
|
||
|
||
if (Settings.throwOnInvalid) {
|
||
throw new InvalidDurationError(invalid);
|
||
} else {
|
||
return new Duration({
|
||
invalid: invalid
|
||
});
|
||
}
|
||
}
|
||
/**
|
||
* @private
|
||
*/
|
||
;
|
||
|
||
Duration.normalizeUnit = function normalizeUnit(unit) {
|
||
var normalized = {
|
||
year: "years",
|
||
years: "years",
|
||
quarter: "quarters",
|
||
quarters: "quarters",
|
||
month: "months",
|
||
months: "months",
|
||
week: "weeks",
|
||
weeks: "weeks",
|
||
day: "days",
|
||
days: "days",
|
||
hour: "hours",
|
||
hours: "hours",
|
||
minute: "minutes",
|
||
minutes: "minutes",
|
||
second: "seconds",
|
||
seconds: "seconds",
|
||
millisecond: "milliseconds",
|
||
milliseconds: "milliseconds"
|
||
}[unit ? unit.toLowerCase() : unit];
|
||
if (!normalized) throw new InvalidUnitError(unit);
|
||
return normalized;
|
||
}
|
||
/**
|
||
* Check if an object is a Duration. Works across context boundaries
|
||
* @param {object} o
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
Duration.isDuration = function isDuration(o) {
|
||
return o && o.isLuxonDuration || false;
|
||
}
|
||
/**
|
||
* Get the locale of a Duration, such 'en-GB'
|
||
* @type {string}
|
||
*/
|
||
;
|
||
|
||
var _proto = Duration.prototype;
|
||
|
||
/**
|
||
* Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:
|
||
* * `S` for milliseconds
|
||
* * `s` for seconds
|
||
* * `m` for minutes
|
||
* * `h` for hours
|
||
* * `d` for days
|
||
* * `M` for months
|
||
* * `y` for years
|
||
* Notes:
|
||
* * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits
|
||
* * The duration will be converted to the set of units in the format string using {@link Duration.shiftTo} and the Durations's conversion accuracy setting.
|
||
* @param {string} fmt - the format string
|
||
* @param {Object} opts - options
|
||
* @param {boolean} [opts.floor=true] - floor numerical values
|
||
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("y d s") //=> "1 6 2"
|
||
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("yy dd sss") //=> "01 06 002"
|
||
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("M S") //=> "12 518402000"
|
||
* @return {string}
|
||
*/
|
||
_proto.toFormat = function toFormat(fmt, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
// reverse-compat since 1.2; we always round down now, never up, and we do it by default
|
||
var fmtOpts = Object.assign({}, opts, {
|
||
floor: opts.round !== false && opts.floor !== false
|
||
});
|
||
return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID;
|
||
}
|
||
/**
|
||
* Returns a JavaScript object with this Duration's values.
|
||
* @param opts - options for generating the object
|
||
* @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output
|
||
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }
|
||
* @return {Object}
|
||
*/
|
||
;
|
||
|
||
_proto.toObject = function toObject(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
if (!this.isValid) return {};
|
||
var base = Object.assign({}, this.values);
|
||
|
||
if (opts.includeConfig) {
|
||
base.conversionAccuracy = this.conversionAccuracy;
|
||
base.numberingSystem = this.loc.numberingSystem;
|
||
base.locale = this.loc.locale;
|
||
}
|
||
|
||
return base;
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of this Duration.
|
||
* @see https://en.wikipedia.org/wiki/ISO_8601#Durations
|
||
* @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'
|
||
* @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'
|
||
* @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'
|
||
* @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'
|
||
* @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISO = function toISO() {
|
||
// we could use the formatter, but this is an easier way to get the minimum string
|
||
if (!this.isValid) return null;
|
||
var s = "P";
|
||
if (this.years !== 0) s += this.years + "Y";
|
||
if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + "M";
|
||
if (this.weeks !== 0) s += this.weeks + "W";
|
||
if (this.days !== 0) s += this.days + "D";
|
||
if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) s += "T";
|
||
if (this.hours !== 0) s += this.hours + "H";
|
||
if (this.minutes !== 0) s += this.minutes + "M";
|
||
if (this.seconds !== 0 || this.milliseconds !== 0) // this will handle "floating point madness" by removing extra decimal places
|
||
// https://stackoverflow.com/questions/588004/is-floating-point-math-broken
|
||
s += roundTo(this.seconds + this.milliseconds / 1000, 3) + "S";
|
||
if (s === "P") s += "T0S";
|
||
return s;
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.
|
||
* Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.
|
||
* @see https://en.wikipedia.org/wiki/ISO_8601#Times
|
||
* @param {Object} opts - options
|
||
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
||
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
||
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
||
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
||
* @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'
|
||
* @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'
|
||
* @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'
|
||
* @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'
|
||
* @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISOTime = function toISOTime(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
if (!this.isValid) return null;
|
||
var millis = this.toMillis();
|
||
if (millis < 0 || millis >= 86400000) return null;
|
||
opts = Object.assign({
|
||
suppressMilliseconds: false,
|
||
suppressSeconds: false,
|
||
includePrefix: false,
|
||
format: "extended"
|
||
}, opts);
|
||
var value = this.shiftTo("hours", "minutes", "seconds", "milliseconds");
|
||
var fmt = opts.format === "basic" ? "hhmm" : "hh:mm";
|
||
|
||
if (!opts.suppressSeconds || value.seconds !== 0 || value.milliseconds !== 0) {
|
||
fmt += opts.format === "basic" ? "ss" : ":ss";
|
||
|
||
if (!opts.suppressMilliseconds || value.milliseconds !== 0) {
|
||
fmt += ".SSS";
|
||
}
|
||
}
|
||
|
||
var str = value.toFormat(fmt);
|
||
|
||
if (opts.includePrefix) {
|
||
str = "T" + str;
|
||
}
|
||
|
||
return str;
|
||
}
|
||
/**
|
||
* Returns an ISO 8601 representation of this Duration appropriate for use in JSON.
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toJSON = function toJSON() {
|
||
return this.toISO();
|
||
}
|
||
/**
|
||
* Returns an ISO 8601 representation of this Duration appropriate for use in debugging.
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toString = function toString() {
|
||
return this.toISO();
|
||
}
|
||
/**
|
||
* Returns an milliseconds value of this Duration.
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.toMillis = function toMillis() {
|
||
return this.as("milliseconds");
|
||
}
|
||
/**
|
||
* Returns an milliseconds value of this Duration. Alias of {@link toMillis}
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.valueOf = function valueOf() {
|
||
return this.toMillis();
|
||
}
|
||
/**
|
||
* Make this Duration longer by the specified amount. Return a newly-constructed Duration.
|
||
* @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.plus = function plus(duration) {
|
||
if (!this.isValid) return this;
|
||
var dur = friendlyDuration(duration),
|
||
result = {};
|
||
|
||
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits), _step; !(_step = _iterator()).done;) {
|
||
var k = _step.value;
|
||
|
||
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
||
result[k] = dur.get(k) + this.get(k);
|
||
}
|
||
}
|
||
|
||
return clone(this, {
|
||
values: result
|
||
}, true);
|
||
}
|
||
/**
|
||
* Make this Duration shorter by the specified amount. Return a newly-constructed Duration.
|
||
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.minus = function minus(duration) {
|
||
if (!this.isValid) return this;
|
||
var dur = friendlyDuration(duration);
|
||
return this.plus(dur.negate());
|
||
}
|
||
/**
|
||
* Scale this Duration by the specified amount. Return a newly-constructed Duration.
|
||
* @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.
|
||
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnit(x => x * 2) //=> { hours: 2, minutes: 60 }
|
||
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnit((x, u) => u === "hour" ? x * 2 : x) //=> { hours: 2, minutes: 30 }
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.mapUnits = function mapUnits(fn) {
|
||
if (!this.isValid) return this;
|
||
var result = {};
|
||
|
||
for (var _i = 0, _Object$keys = Object.keys(this.values); _i < _Object$keys.length; _i++) {
|
||
var k = _Object$keys[_i];
|
||
result[k] = asNumber(fn(this.values[k], k));
|
||
}
|
||
|
||
return clone(this, {
|
||
values: result
|
||
}, true);
|
||
}
|
||
/**
|
||
* Get the value of unit.
|
||
* @param {string} unit - a unit such as 'minute' or 'day'
|
||
* @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2
|
||
* @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0
|
||
* @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.get = function get(unit) {
|
||
return this[Duration.normalizeUnit(unit)];
|
||
}
|
||
/**
|
||
* "Set" the values of specified units. Return a newly-constructed Duration.
|
||
* @param {Object} values - a mapping of units to numbers
|
||
* @example dur.set({ years: 2017 })
|
||
* @example dur.set({ hours: 8, minutes: 30 })
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.set = function set(values) {
|
||
if (!this.isValid) return this;
|
||
var mixed = Object.assign(this.values, normalizeObject(values, Duration.normalizeUnit, []));
|
||
return clone(this, {
|
||
values: mixed
|
||
});
|
||
}
|
||
/**
|
||
* "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration.
|
||
* @example dur.reconfigure({ locale: 'en-GB' })
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.reconfigure = function reconfigure(_temp) {
|
||
var _ref = _temp === void 0 ? {} : _temp,
|
||
locale = _ref.locale,
|
||
numberingSystem = _ref.numberingSystem,
|
||
conversionAccuracy = _ref.conversionAccuracy;
|
||
|
||
var loc = this.loc.clone({
|
||
locale: locale,
|
||
numberingSystem: numberingSystem
|
||
}),
|
||
opts = {
|
||
loc: loc
|
||
};
|
||
|
||
if (conversionAccuracy) {
|
||
opts.conversionAccuracy = conversionAccuracy;
|
||
}
|
||
|
||
return clone(this, opts);
|
||
}
|
||
/**
|
||
* Return the length of the duration in the specified unit.
|
||
* @param {string} unit - a unit such as 'minutes' or 'days'
|
||
* @example Duration.fromObject({years: 1}).as('days') //=> 365
|
||
* @example Duration.fromObject({years: 1}).as('months') //=> 12
|
||
* @example Duration.fromObject({hours: 60}).as('days') //=> 2.5
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.as = function as(unit) {
|
||
return this.isValid ? this.shiftTo(unit).get(unit) : NaN;
|
||
}
|
||
/**
|
||
* Reduce this Duration to its canonical representation in its current units.
|
||
* @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }
|
||
* @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.normalize = function normalize() {
|
||
if (!this.isValid) return this;
|
||
var vals = this.toObject();
|
||
normalizeValues(this.matrix, vals);
|
||
return clone(this, {
|
||
values: vals
|
||
}, true);
|
||
}
|
||
/**
|
||
* Convert this Duration into its representation in a different set of units.
|
||
* @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.shiftTo = function shiftTo() {
|
||
for (var _len = arguments.length, units = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
units[_key] = arguments[_key];
|
||
}
|
||
|
||
if (!this.isValid) return this;
|
||
|
||
if (units.length === 0) {
|
||
return this;
|
||
}
|
||
|
||
units = units.map(function (u) {
|
||
return Duration.normalizeUnit(u);
|
||
});
|
||
var built = {},
|
||
accumulated = {},
|
||
vals = this.toObject();
|
||
var lastUnit;
|
||
|
||
for (var _iterator2 = _createForOfIteratorHelperLoose(orderedUnits), _step2; !(_step2 = _iterator2()).done;) {
|
||
var k = _step2.value;
|
||
|
||
if (units.indexOf(k) >= 0) {
|
||
lastUnit = k;
|
||
var own = 0; // anything we haven't boiled down yet should get boiled to this unit
|
||
|
||
for (var ak in accumulated) {
|
||
own += this.matrix[ak][k] * accumulated[ak];
|
||
accumulated[ak] = 0;
|
||
} // plus anything that's already in this unit
|
||
|
||
|
||
if (isNumber(vals[k])) {
|
||
own += vals[k];
|
||
}
|
||
|
||
var i = Math.trunc(own);
|
||
built[k] = i;
|
||
accumulated[k] = own - i; // we'd like to absorb these fractions in another unit
|
||
// plus anything further down the chain that should be rolled up in to this
|
||
|
||
for (var down in vals) {
|
||
if (orderedUnits.indexOf(down) > orderedUnits.indexOf(k)) {
|
||
convert(this.matrix, vals, down, built, k);
|
||
}
|
||
} // otherwise, keep it in the wings to boil it later
|
||
|
||
} else if (isNumber(vals[k])) {
|
||
accumulated[k] = vals[k];
|
||
}
|
||
} // anything leftover becomes the decimal for the last unit
|
||
// lastUnit must be defined since units is not empty
|
||
|
||
|
||
for (var key in accumulated) {
|
||
if (accumulated[key] !== 0) {
|
||
built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];
|
||
}
|
||
}
|
||
|
||
return clone(this, {
|
||
values: built
|
||
}, true).normalize();
|
||
}
|
||
/**
|
||
* Return the negative of this Duration.
|
||
* @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.negate = function negate() {
|
||
if (!this.isValid) return this;
|
||
var negated = {};
|
||
|
||
for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {
|
||
var k = _Object$keys2[_i2];
|
||
negated[k] = -this.values[k];
|
||
}
|
||
|
||
return clone(this, {
|
||
values: negated
|
||
}, true);
|
||
}
|
||
/**
|
||
* Get the years.
|
||
* @type {number}
|
||
*/
|
||
;
|
||
|
||
/**
|
||
* Equality check
|
||
* Two Durations are equal iff they have the same units and the same values for each unit.
|
||
* @param {Duration} other
|
||
* @return {boolean}
|
||
*/
|
||
_proto.equals = function equals(other) {
|
||
if (!this.isValid || !other.isValid) {
|
||
return false;
|
||
}
|
||
|
||
if (!this.loc.equals(other.loc)) {
|
||
return false;
|
||
}
|
||
|
||
function eq(v1, v2) {
|
||
// Consider 0 and undefined as equal
|
||
if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;
|
||
return v1 === v2;
|
||
}
|
||
|
||
for (var _iterator3 = _createForOfIteratorHelperLoose(orderedUnits), _step3; !(_step3 = _iterator3()).done;) {
|
||
var u = _step3.value;
|
||
|
||
if (!eq(this.values[u], other.values[u])) {
|
||
return false;
|
||
}
|
||
}
|
||
|
||
return true;
|
||
};
|
||
|
||
_createClass(Duration, [{
|
||
key: "locale",
|
||
get: function get() {
|
||
return this.isValid ? this.loc.locale : null;
|
||
}
|
||
/**
|
||
* Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration
|
||
*
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "numberingSystem",
|
||
get: function get() {
|
||
return this.isValid ? this.loc.numberingSystem : null;
|
||
}
|
||
}, {
|
||
key: "years",
|
||
get: function get() {
|
||
return this.isValid ? this.values.years || 0 : NaN;
|
||
}
|
||
/**
|
||
* Get the quarters.
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "quarters",
|
||
get: function get() {
|
||
return this.isValid ? this.values.quarters || 0 : NaN;
|
||
}
|
||
/**
|
||
* Get the months.
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "months",
|
||
get: function get() {
|
||
return this.isValid ? this.values.months || 0 : NaN;
|
||
}
|
||
/**
|
||
* Get the weeks
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "weeks",
|
||
get: function get() {
|
||
return this.isValid ? this.values.weeks || 0 : NaN;
|
||
}
|
||
/**
|
||
* Get the days.
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "days",
|
||
get: function get() {
|
||
return this.isValid ? this.values.days || 0 : NaN;
|
||
}
|
||
/**
|
||
* Get the hours.
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "hours",
|
||
get: function get() {
|
||
return this.isValid ? this.values.hours || 0 : NaN;
|
||
}
|
||
/**
|
||
* Get the minutes.
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "minutes",
|
||
get: function get() {
|
||
return this.isValid ? this.values.minutes || 0 : NaN;
|
||
}
|
||
/**
|
||
* Get the seconds.
|
||
* @return {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "seconds",
|
||
get: function get() {
|
||
return this.isValid ? this.values.seconds || 0 : NaN;
|
||
}
|
||
/**
|
||
* Get the milliseconds.
|
||
* @return {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "milliseconds",
|
||
get: function get() {
|
||
return this.isValid ? this.values.milliseconds || 0 : NaN;
|
||
}
|
||
/**
|
||
* Returns whether the Duration is invalid. Invalid durations are returned by diff operations
|
||
* on invalid DateTimes or Intervals.
|
||
* @return {boolean}
|
||
*/
|
||
|
||
}, {
|
||
key: "isValid",
|
||
get: function get() {
|
||
return this.invalid === null;
|
||
}
|
||
/**
|
||
* Returns an error code if this Duration became invalid, or null if the Duration is valid
|
||
* @return {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "invalidReason",
|
||
get: function get() {
|
||
return this.invalid ? this.invalid.reason : null;
|
||
}
|
||
/**
|
||
* Returns an explanation of why this Duration became invalid, or null if the Duration is valid
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "invalidExplanation",
|
||
get: function get() {
|
||
return this.invalid ? this.invalid.explanation : null;
|
||
}
|
||
}]);
|
||
|
||
return Duration;
|
||
}();
|
||
function friendlyDuration(durationish) {
|
||
if (isNumber(durationish)) {
|
||
return Duration.fromMillis(durationish);
|
||
} else if (Duration.isDuration(durationish)) {
|
||
return durationish;
|
||
} else if (typeof durationish === "object") {
|
||
return Duration.fromObject(durationish);
|
||
} else {
|
||
throw new InvalidArgumentError("Unknown duration argument " + durationish + " of type " + typeof durationish);
|
||
}
|
||
}
|
||
|
||
var INVALID$1 = "Invalid Interval"; // checks if the start is equal to or before the end
|
||
|
||
function validateStartEnd(start, end) {
|
||
if (!start || !start.isValid) {
|
||
return Interval.invalid("missing or invalid start");
|
||
} else if (!end || !end.isValid) {
|
||
return Interval.invalid("missing or invalid end");
|
||
} else if (end < start) {
|
||
return Interval.invalid("end before start", "The end of an interval must be after its start, but you had start=" + start.toISO() + " and end=" + end.toISO());
|
||
} else {
|
||
return null;
|
||
}
|
||
}
|
||
/**
|
||
* An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.
|
||
*
|
||
* Here is a brief overview of the most commonly used methods and getters in Interval:
|
||
*
|
||
* * **Creation** To create an Interval, use {@link fromDateTimes}, {@link after}, {@link before}, or {@link fromISO}.
|
||
* * **Accessors** Use {@link start} and {@link end} to get the start and end.
|
||
* * **Interrogation** To analyze the Interval, use {@link count}, {@link length}, {@link hasSame}, {@link contains}, {@link isAfter}, or {@link isBefore}.
|
||
* * **Transformation** To create other Intervals out of this one, use {@link set}, {@link splitAt}, {@link splitBy}, {@link divideEqually}, {@link merge}, {@link xor}, {@link union}, {@link intersection}, or {@link difference}.
|
||
* * **Comparison** To compare this Interval to another one, use {@link equals}, {@link overlaps}, {@link abutsStart}, {@link abutsEnd}, {@link engulfs}.
|
||
* * **Output** To convert the Interval into other representations, see {@link toString}, {@link toISO}, {@link toISODate}, {@link toISOTime}, {@link toFormat}, and {@link toDuration}.
|
||
*/
|
||
|
||
|
||
var Interval = /*#__PURE__*/function () {
|
||
/**
|
||
* @private
|
||
*/
|
||
function Interval(config) {
|
||
/**
|
||
* @access private
|
||
*/
|
||
this.s = config.start;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.e = config.end;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.invalid = config.invalid || null;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.isLuxonInterval = true;
|
||
}
|
||
/**
|
||
* Create an invalid Interval.
|
||
* @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent
|
||
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
||
* @return {Interval}
|
||
*/
|
||
|
||
|
||
Interval.invalid = function invalid(reason, explanation) {
|
||
if (explanation === void 0) {
|
||
explanation = null;
|
||
}
|
||
|
||
if (!reason) {
|
||
throw new InvalidArgumentError("need to specify a reason the Interval is invalid");
|
||
}
|
||
|
||
var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);
|
||
|
||
if (Settings.throwOnInvalid) {
|
||
throw new InvalidIntervalError(invalid);
|
||
} else {
|
||
return new Interval({
|
||
invalid: invalid
|
||
});
|
||
}
|
||
}
|
||
/**
|
||
* Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
|
||
* @param {DateTime|Date|Object} start
|
||
* @param {DateTime|Date|Object} end
|
||
* @return {Interval}
|
||
*/
|
||
;
|
||
|
||
Interval.fromDateTimes = function fromDateTimes(start, end) {
|
||
var builtStart = friendlyDateTime(start),
|
||
builtEnd = friendlyDateTime(end);
|
||
var validateError = validateStartEnd(builtStart, builtEnd);
|
||
|
||
if (validateError == null) {
|
||
return new Interval({
|
||
start: builtStart,
|
||
end: builtEnd
|
||
});
|
||
} else {
|
||
return validateError;
|
||
}
|
||
}
|
||
/**
|
||
* Create an Interval from a start DateTime and a Duration to extend to.
|
||
* @param {DateTime|Date|Object} start
|
||
* @param {Duration|Object|number} duration - the length of the Interval.
|
||
* @return {Interval}
|
||
*/
|
||
;
|
||
|
||
Interval.after = function after(start, duration) {
|
||
var dur = friendlyDuration(duration),
|
||
dt = friendlyDateTime(start);
|
||
return Interval.fromDateTimes(dt, dt.plus(dur));
|
||
}
|
||
/**
|
||
* Create an Interval from an end DateTime and a Duration to extend backwards to.
|
||
* @param {DateTime|Date|Object} end
|
||
* @param {Duration|Object|number} duration - the length of the Interval.
|
||
* @return {Interval}
|
||
*/
|
||
;
|
||
|
||
Interval.before = function before(end, duration) {
|
||
var dur = friendlyDuration(duration),
|
||
dt = friendlyDateTime(end);
|
||
return Interval.fromDateTimes(dt.minus(dur), dt);
|
||
}
|
||
/**
|
||
* Create an Interval from an ISO 8601 string.
|
||
* Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.
|
||
* @param {string} text - the ISO string to parse
|
||
* @param {Object} [opts] - options to pass {@link DateTime.fromISO} and optionally {@link Duration.fromISO}
|
||
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
||
* @return {Interval}
|
||
*/
|
||
;
|
||
|
||
Interval.fromISO = function fromISO(text, opts) {
|
||
var _split = (text || "").split("/", 2),
|
||
s = _split[0],
|
||
e = _split[1];
|
||
|
||
if (s && e) {
|
||
var start, startIsValid;
|
||
|
||
try {
|
||
start = DateTime.fromISO(s, opts);
|
||
startIsValid = start.isValid;
|
||
} catch (e) {
|
||
startIsValid = false;
|
||
}
|
||
|
||
var end, endIsValid;
|
||
|
||
try {
|
||
end = DateTime.fromISO(e, opts);
|
||
endIsValid = end.isValid;
|
||
} catch (e) {
|
||
endIsValid = false;
|
||
}
|
||
|
||
if (startIsValid && endIsValid) {
|
||
return Interval.fromDateTimes(start, end);
|
||
}
|
||
|
||
if (startIsValid) {
|
||
var dur = Duration.fromISO(e, opts);
|
||
|
||
if (dur.isValid) {
|
||
return Interval.after(start, dur);
|
||
}
|
||
} else if (endIsValid) {
|
||
var _dur = Duration.fromISO(s, opts);
|
||
|
||
if (_dur.isValid) {
|
||
return Interval.before(end, _dur);
|
||
}
|
||
}
|
||
}
|
||
|
||
return Interval.invalid("unparsable", "the input \"" + text + "\" can't be parsed as ISO 8601");
|
||
}
|
||
/**
|
||
* Check if an object is an Interval. Works across context boundaries
|
||
* @param {object} o
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
Interval.isInterval = function isInterval(o) {
|
||
return o && o.isLuxonInterval || false;
|
||
}
|
||
/**
|
||
* Returns the start of the Interval
|
||
* @type {DateTime}
|
||
*/
|
||
;
|
||
|
||
var _proto = Interval.prototype;
|
||
|
||
/**
|
||
* Returns the length of the Interval in the specified unit.
|
||
* @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.
|
||
* @return {number}
|
||
*/
|
||
_proto.length = function length(unit) {
|
||
if (unit === void 0) {
|
||
unit = "milliseconds";
|
||
}
|
||
|
||
return this.isValid ? this.toDuration.apply(this, [unit]).get(unit) : NaN;
|
||
}
|
||
/**
|
||
* Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.
|
||
* Unlike {@link length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'
|
||
* asks 'what dates are included in this interval?', not 'how many days long is this interval?'
|
||
* @param {string} [unit='milliseconds'] - the unit of time to count.
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.count = function count(unit) {
|
||
if (unit === void 0) {
|
||
unit = "milliseconds";
|
||
}
|
||
|
||
if (!this.isValid) return NaN;
|
||
var start = this.start.startOf(unit),
|
||
end = this.end.startOf(unit);
|
||
return Math.floor(end.diff(start, unit).get(unit)) + 1;
|
||
}
|
||
/**
|
||
* Returns whether this Interval's start and end are both in the same unit of time
|
||
* @param {string} unit - the unit of time to check sameness on
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.hasSame = function hasSame(unit) {
|
||
return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;
|
||
}
|
||
/**
|
||
* Return whether this Interval has the same start and end DateTimes.
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.isEmpty = function isEmpty() {
|
||
return this.s.valueOf() === this.e.valueOf();
|
||
}
|
||
/**
|
||
* Return whether this Interval's start is after the specified DateTime.
|
||
* @param {DateTime} dateTime
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.isAfter = function isAfter(dateTime) {
|
||
if (!this.isValid) return false;
|
||
return this.s > dateTime;
|
||
}
|
||
/**
|
||
* Return whether this Interval's end is before the specified DateTime.
|
||
* @param {DateTime} dateTime
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.isBefore = function isBefore(dateTime) {
|
||
if (!this.isValid) return false;
|
||
return this.e <= dateTime;
|
||
}
|
||
/**
|
||
* Return whether this Interval contains the specified DateTime.
|
||
* @param {DateTime} dateTime
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.contains = function contains(dateTime) {
|
||
if (!this.isValid) return false;
|
||
return this.s <= dateTime && this.e > dateTime;
|
||
}
|
||
/**
|
||
* "Sets" the start and/or end dates. Returns a newly-constructed Interval.
|
||
* @param {Object} values - the values to set
|
||
* @param {DateTime} values.start - the starting DateTime
|
||
* @param {DateTime} values.end - the ending DateTime
|
||
* @return {Interval}
|
||
*/
|
||
;
|
||
|
||
_proto.set = function set(_temp) {
|
||
var _ref = _temp === void 0 ? {} : _temp,
|
||
start = _ref.start,
|
||
end = _ref.end;
|
||
|
||
if (!this.isValid) return this;
|
||
return Interval.fromDateTimes(start || this.s, end || this.e);
|
||
}
|
||
/**
|
||
* Split this Interval at each of the specified DateTimes
|
||
* @param {...[DateTime]} dateTimes - the unit of time to count.
|
||
* @return {[Interval]}
|
||
*/
|
||
;
|
||
|
||
_proto.splitAt = function splitAt() {
|
||
var _this = this;
|
||
|
||
if (!this.isValid) return [];
|
||
|
||
for (var _len = arguments.length, dateTimes = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
dateTimes[_key] = arguments[_key];
|
||
}
|
||
|
||
var sorted = dateTimes.map(friendlyDateTime).filter(function (d) {
|
||
return _this.contains(d);
|
||
}).sort(),
|
||
results = [];
|
||
var s = this.s,
|
||
i = 0;
|
||
|
||
while (s < this.e) {
|
||
var added = sorted[i] || this.e,
|
||
next = +added > +this.e ? this.e : added;
|
||
results.push(Interval.fromDateTimes(s, next));
|
||
s = next;
|
||
i += 1;
|
||
}
|
||
|
||
return results;
|
||
}
|
||
/**
|
||
* Split this Interval into smaller Intervals, each of the specified length.
|
||
* Left over time is grouped into a smaller interval
|
||
* @param {Duration|Object|number} duration - The length of each resulting interval.
|
||
* @return {[Interval]}
|
||
*/
|
||
;
|
||
|
||
_proto.splitBy = function splitBy(duration) {
|
||
var dur = friendlyDuration(duration);
|
||
|
||
if (!this.isValid || !dur.isValid || dur.as("milliseconds") === 0) {
|
||
return [];
|
||
}
|
||
|
||
var s = this.s,
|
||
idx = 1,
|
||
next;
|
||
var results = [];
|
||
|
||
while (s < this.e) {
|
||
var added = this.start.plus(dur.mapUnits(function (x) {
|
||
return x * idx;
|
||
}));
|
||
next = +added > +this.e ? this.e : added;
|
||
results.push(Interval.fromDateTimes(s, next));
|
||
s = next;
|
||
idx += 1;
|
||
}
|
||
|
||
return results;
|
||
}
|
||
/**
|
||
* Split this Interval into the specified number of smaller intervals.
|
||
* @param {number} numberOfParts - The number of Intervals to divide the Interval into.
|
||
* @return {[Interval]}
|
||
*/
|
||
;
|
||
|
||
_proto.divideEqually = function divideEqually(numberOfParts) {
|
||
if (!this.isValid) return [];
|
||
return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);
|
||
}
|
||
/**
|
||
* Return whether this Interval overlaps with the specified Interval
|
||
* @param {Interval} other
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.overlaps = function overlaps(other) {
|
||
return this.e > other.s && this.s < other.e;
|
||
}
|
||
/**
|
||
* Return whether this Interval's end is adjacent to the specified Interval's start.
|
||
* @param {Interval} other
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.abutsStart = function abutsStart(other) {
|
||
if (!this.isValid) return false;
|
||
return +this.e === +other.s;
|
||
}
|
||
/**
|
||
* Return whether this Interval's start is adjacent to the specified Interval's end.
|
||
* @param {Interval} other
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.abutsEnd = function abutsEnd(other) {
|
||
if (!this.isValid) return false;
|
||
return +other.e === +this.s;
|
||
}
|
||
/**
|
||
* Return whether this Interval engulfs the start and end of the specified Interval.
|
||
* @param {Interval} other
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.engulfs = function engulfs(other) {
|
||
if (!this.isValid) return false;
|
||
return this.s <= other.s && this.e >= other.e;
|
||
}
|
||
/**
|
||
* Return whether this Interval has the same start and end as the specified Interval.
|
||
* @param {Interval} other
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.equals = function equals(other) {
|
||
if (!this.isValid || !other.isValid) {
|
||
return false;
|
||
}
|
||
|
||
return this.s.equals(other.s) && this.e.equals(other.e);
|
||
}
|
||
/**
|
||
* Return an Interval representing the intersection of this Interval and the specified Interval.
|
||
* Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.
|
||
* Returns null if the intersection is empty, meaning, the intervals don't intersect.
|
||
* @param {Interval} other
|
||
* @return {Interval}
|
||
*/
|
||
;
|
||
|
||
_proto.intersection = function intersection(other) {
|
||
if (!this.isValid) return this;
|
||
var s = this.s > other.s ? this.s : other.s,
|
||
e = this.e < other.e ? this.e : other.e;
|
||
|
||
if (s >= e) {
|
||
return null;
|
||
} else {
|
||
return Interval.fromDateTimes(s, e);
|
||
}
|
||
}
|
||
/**
|
||
* Return an Interval representing the union of this Interval and the specified Interval.
|
||
* Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.
|
||
* @param {Interval} other
|
||
* @return {Interval}
|
||
*/
|
||
;
|
||
|
||
_proto.union = function union(other) {
|
||
if (!this.isValid) return this;
|
||
var s = this.s < other.s ? this.s : other.s,
|
||
e = this.e > other.e ? this.e : other.e;
|
||
return Interval.fromDateTimes(s, e);
|
||
}
|
||
/**
|
||
* Merge an array of Intervals into a equivalent minimal set of Intervals.
|
||
* Combines overlapping and adjacent Intervals.
|
||
* @param {[Interval]} intervals
|
||
* @return {[Interval]}
|
||
*/
|
||
;
|
||
|
||
Interval.merge = function merge(intervals) {
|
||
var _intervals$sort$reduc = intervals.sort(function (a, b) {
|
||
return a.s - b.s;
|
||
}).reduce(function (_ref2, item) {
|
||
var sofar = _ref2[0],
|
||
current = _ref2[1];
|
||
|
||
if (!current) {
|
||
return [sofar, item];
|
||
} else if (current.overlaps(item) || current.abutsStart(item)) {
|
||
return [sofar, current.union(item)];
|
||
} else {
|
||
return [sofar.concat([current]), item];
|
||
}
|
||
}, [[], null]),
|
||
found = _intervals$sort$reduc[0],
|
||
final = _intervals$sort$reduc[1];
|
||
|
||
if (final) {
|
||
found.push(final);
|
||
}
|
||
|
||
return found;
|
||
}
|
||
/**
|
||
* Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.
|
||
* @param {[Interval]} intervals
|
||
* @return {[Interval]}
|
||
*/
|
||
;
|
||
|
||
Interval.xor = function xor(intervals) {
|
||
var _Array$prototype;
|
||
|
||
var start = null,
|
||
currentCount = 0;
|
||
|
||
var results = [],
|
||
ends = intervals.map(function (i) {
|
||
return [{
|
||
time: i.s,
|
||
type: "s"
|
||
}, {
|
||
time: i.e,
|
||
type: "e"
|
||
}];
|
||
}),
|
||
flattened = (_Array$prototype = Array.prototype).concat.apply(_Array$prototype, ends),
|
||
arr = flattened.sort(function (a, b) {
|
||
return a.time - b.time;
|
||
});
|
||
|
||
for (var _iterator = _createForOfIteratorHelperLoose(arr), _step; !(_step = _iterator()).done;) {
|
||
var i = _step.value;
|
||
currentCount += i.type === "s" ? 1 : -1;
|
||
|
||
if (currentCount === 1) {
|
||
start = i.time;
|
||
} else {
|
||
if (start && +start !== +i.time) {
|
||
results.push(Interval.fromDateTimes(start, i.time));
|
||
}
|
||
|
||
start = null;
|
||
}
|
||
}
|
||
|
||
return Interval.merge(results);
|
||
}
|
||
/**
|
||
* Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
|
||
* @param {...Interval} intervals
|
||
* @return {[Interval]}
|
||
*/
|
||
;
|
||
|
||
_proto.difference = function difference() {
|
||
var _this2 = this;
|
||
|
||
for (var _len2 = arguments.length, intervals = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||
intervals[_key2] = arguments[_key2];
|
||
}
|
||
|
||
return Interval.xor([this].concat(intervals)).map(function (i) {
|
||
return _this2.intersection(i);
|
||
}).filter(function (i) {
|
||
return i && !i.isEmpty();
|
||
});
|
||
}
|
||
/**
|
||
* Returns a string representation of this Interval appropriate for debugging.
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toString = function toString() {
|
||
if (!this.isValid) return INVALID$1;
|
||
return "[" + this.s.toISO() + " \u2013 " + this.e.toISO() + ")";
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of this Interval.
|
||
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
||
* @param {Object} opts - The same options as {@link DateTime.toISO}
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISO = function toISO(opts) {
|
||
if (!this.isValid) return INVALID$1;
|
||
return this.s.toISO(opts) + "/" + this.e.toISO(opts);
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of date of this Interval.
|
||
* The time components are ignored.
|
||
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISODate = function toISODate() {
|
||
if (!this.isValid) return INVALID$1;
|
||
return this.s.toISODate() + "/" + this.e.toISODate();
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of time of this Interval.
|
||
* The date components are ignored.
|
||
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
||
* @param {Object} opts - The same options as {@link DateTime.toISO}
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISOTime = function toISOTime(opts) {
|
||
if (!this.isValid) return INVALID$1;
|
||
return this.s.toISOTime(opts) + "/" + this.e.toISOTime(opts);
|
||
}
|
||
/**
|
||
* Returns a string representation of this Interval formatted according to the specified format string.
|
||
* @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime.toFormat} for details.
|
||
* @param {Object} opts - options
|
||
* @param {string} [opts.separator = ' – '] - a separator to place between the start and end representations
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toFormat = function toFormat(dateFormat, _temp2) {
|
||
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
||
_ref3$separator = _ref3.separator,
|
||
separator = _ref3$separator === void 0 ? " – " : _ref3$separator;
|
||
|
||
if (!this.isValid) return INVALID$1;
|
||
return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);
|
||
}
|
||
/**
|
||
* Return a Duration representing the time spanned by this interval.
|
||
* @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.
|
||
* @param {Object} opts - options that affect the creation of the Duration
|
||
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
||
* @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }
|
||
* @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }
|
||
* @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }
|
||
* @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }
|
||
* @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.toDuration = function toDuration(unit, opts) {
|
||
if (!this.isValid) {
|
||
return Duration.invalid(this.invalidReason);
|
||
}
|
||
|
||
return this.e.diff(this.s, unit, opts);
|
||
}
|
||
/**
|
||
* Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes
|
||
* @param {function} mapFn
|
||
* @return {Interval}
|
||
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())
|
||
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
|
||
*/
|
||
;
|
||
|
||
_proto.mapEndpoints = function mapEndpoints(mapFn) {
|
||
return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));
|
||
};
|
||
|
||
_createClass(Interval, [{
|
||
key: "start",
|
||
get: function get() {
|
||
return this.isValid ? this.s : null;
|
||
}
|
||
/**
|
||
* Returns the end of the Interval
|
||
* @type {DateTime}
|
||
*/
|
||
|
||
}, {
|
||
key: "end",
|
||
get: function get() {
|
||
return this.isValid ? this.e : null;
|
||
}
|
||
/**
|
||
* Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.
|
||
* @type {boolean}
|
||
*/
|
||
|
||
}, {
|
||
key: "isValid",
|
||
get: function get() {
|
||
return this.invalidReason === null;
|
||
}
|
||
/**
|
||
* Returns an error code if this Interval is invalid, or null if the Interval is valid
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "invalidReason",
|
||
get: function get() {
|
||
return this.invalid ? this.invalid.reason : null;
|
||
}
|
||
/**
|
||
* Returns an explanation of why this Interval became invalid, or null if the Interval is valid
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "invalidExplanation",
|
||
get: function get() {
|
||
return this.invalid ? this.invalid.explanation : null;
|
||
}
|
||
}]);
|
||
|
||
return Interval;
|
||
}();
|
||
|
||
/**
|
||
* The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.
|
||
*/
|
||
|
||
var Info = /*#__PURE__*/function () {
|
||
function Info() {}
|
||
|
||
/**
|
||
* Return whether the specified zone contains a DST.
|
||
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
||
* @return {boolean}
|
||
*/
|
||
Info.hasDST = function hasDST(zone) {
|
||
if (zone === void 0) {
|
||
zone = Settings.defaultZone;
|
||
}
|
||
|
||
var proto = DateTime.now().setZone(zone).set({
|
||
month: 12
|
||
});
|
||
return !zone.universal && proto.offset !== proto.set({
|
||
month: 6
|
||
}).offset;
|
||
}
|
||
/**
|
||
* Return whether the specified zone is a valid IANA specifier.
|
||
* @param {string} zone - Zone to check
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
Info.isValidIANAZone = function isValidIANAZone(zone) {
|
||
return IANAZone.isValidSpecifier(zone) && IANAZone.isValidZone(zone);
|
||
}
|
||
/**
|
||
* Converts the input into a {@link Zone} instance.
|
||
*
|
||
* * If `input` is already a Zone instance, it is returned unchanged.
|
||
* * If `input` is a string containing a valid time zone name, a Zone instance
|
||
* with that name is returned.
|
||
* * If `input` is a string that doesn't refer to a known time zone, a Zone
|
||
* instance with {@link Zone.isValid} == false is returned.
|
||
* * If `input is a number, a Zone instance with the specified fixed offset
|
||
* in minutes is returned.
|
||
* * If `input` is `null` or `undefined`, the default zone is returned.
|
||
* @param {string|Zone|number} [input] - the value to be converted
|
||
* @return {Zone}
|
||
*/
|
||
;
|
||
|
||
Info.normalizeZone = function normalizeZone$1(input) {
|
||
return normalizeZone(input, Settings.defaultZone);
|
||
}
|
||
/**
|
||
* Return an array of standalone month names.
|
||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
||
* @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long"
|
||
* @param {Object} opts - options
|
||
* @param {string} [opts.locale] - the locale code
|
||
* @param {string} [opts.numberingSystem=null] - the numbering system
|
||
* @param {string} [opts.locObj=null] - an existing locale object to use
|
||
* @param {string} [opts.outputCalendar='gregory'] - the calendar
|
||
* @example Info.months()[0] //=> 'January'
|
||
* @example Info.months('short')[0] //=> 'Jan'
|
||
* @example Info.months('numeric')[0] //=> '1'
|
||
* @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'
|
||
* @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'
|
||
* @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'
|
||
* @return {[string]}
|
||
*/
|
||
;
|
||
|
||
Info.months = function months(length, _temp) {
|
||
if (length === void 0) {
|
||
length = "long";
|
||
}
|
||
|
||
var _ref = _temp === void 0 ? {} : _temp,
|
||
_ref$locale = _ref.locale,
|
||
locale = _ref$locale === void 0 ? null : _ref$locale,
|
||
_ref$numberingSystem = _ref.numberingSystem,
|
||
numberingSystem = _ref$numberingSystem === void 0 ? null : _ref$numberingSystem,
|
||
_ref$locObj = _ref.locObj,
|
||
locObj = _ref$locObj === void 0 ? null : _ref$locObj,
|
||
_ref$outputCalendar = _ref.outputCalendar,
|
||
outputCalendar = _ref$outputCalendar === void 0 ? "gregory" : _ref$outputCalendar;
|
||
|
||
return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);
|
||
}
|
||
/**
|
||
* Return an array of format month names.
|
||
* Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that
|
||
* changes the string.
|
||
* See {@link months}
|
||
* @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long"
|
||
* @param {Object} opts - options
|
||
* @param {string} [opts.locale] - the locale code
|
||
* @param {string} [opts.numberingSystem=null] - the numbering system
|
||
* @param {string} [opts.locObj=null] - an existing locale object to use
|
||
* @param {string} [opts.outputCalendar='gregory'] - the calendar
|
||
* @return {[string]}
|
||
*/
|
||
;
|
||
|
||
Info.monthsFormat = function monthsFormat(length, _temp2) {
|
||
if (length === void 0) {
|
||
length = "long";
|
||
}
|
||
|
||
var _ref2 = _temp2 === void 0 ? {} : _temp2,
|
||
_ref2$locale = _ref2.locale,
|
||
locale = _ref2$locale === void 0 ? null : _ref2$locale,
|
||
_ref2$numberingSystem = _ref2.numberingSystem,
|
||
numberingSystem = _ref2$numberingSystem === void 0 ? null : _ref2$numberingSystem,
|
||
_ref2$locObj = _ref2.locObj,
|
||
locObj = _ref2$locObj === void 0 ? null : _ref2$locObj,
|
||
_ref2$outputCalendar = _ref2.outputCalendar,
|
||
outputCalendar = _ref2$outputCalendar === void 0 ? "gregory" : _ref2$outputCalendar;
|
||
|
||
return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);
|
||
}
|
||
/**
|
||
* Return an array of standalone week names.
|
||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
||
* @param {string} [length='long'] - the length of the weekday representation, such as "narrow", "short", "long".
|
||
* @param {Object} opts - options
|
||
* @param {string} [opts.locale] - the locale code
|
||
* @param {string} [opts.numberingSystem=null] - the numbering system
|
||
* @param {string} [opts.locObj=null] - an existing locale object to use
|
||
* @example Info.weekdays()[0] //=> 'Monday'
|
||
* @example Info.weekdays('short')[0] //=> 'Mon'
|
||
* @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'
|
||
* @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'
|
||
* @return {[string]}
|
||
*/
|
||
;
|
||
|
||
Info.weekdays = function weekdays(length, _temp3) {
|
||
if (length === void 0) {
|
||
length = "long";
|
||
}
|
||
|
||
var _ref3 = _temp3 === void 0 ? {} : _temp3,
|
||
_ref3$locale = _ref3.locale,
|
||
locale = _ref3$locale === void 0 ? null : _ref3$locale,
|
||
_ref3$numberingSystem = _ref3.numberingSystem,
|
||
numberingSystem = _ref3$numberingSystem === void 0 ? null : _ref3$numberingSystem,
|
||
_ref3$locObj = _ref3.locObj,
|
||
locObj = _ref3$locObj === void 0 ? null : _ref3$locObj;
|
||
|
||
return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);
|
||
}
|
||
/**
|
||
* Return an array of format week names.
|
||
* Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that
|
||
* changes the string.
|
||
* See {@link weekdays}
|
||
* @param {string} [length='long'] - the length of the weekday representation, such as "narrow", "short", "long".
|
||
* @param {Object} opts - options
|
||
* @param {string} [opts.locale=null] - the locale code
|
||
* @param {string} [opts.numberingSystem=null] - the numbering system
|
||
* @param {string} [opts.locObj=null] - an existing locale object to use
|
||
* @return {[string]}
|
||
*/
|
||
;
|
||
|
||
Info.weekdaysFormat = function weekdaysFormat(length, _temp4) {
|
||
if (length === void 0) {
|
||
length = "long";
|
||
}
|
||
|
||
var _ref4 = _temp4 === void 0 ? {} : _temp4,
|
||
_ref4$locale = _ref4.locale,
|
||
locale = _ref4$locale === void 0 ? null : _ref4$locale,
|
||
_ref4$numberingSystem = _ref4.numberingSystem,
|
||
numberingSystem = _ref4$numberingSystem === void 0 ? null : _ref4$numberingSystem,
|
||
_ref4$locObj = _ref4.locObj,
|
||
locObj = _ref4$locObj === void 0 ? null : _ref4$locObj;
|
||
|
||
return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);
|
||
}
|
||
/**
|
||
* Return an array of meridiems.
|
||
* @param {Object} opts - options
|
||
* @param {string} [opts.locale] - the locale code
|
||
* @example Info.meridiems() //=> [ 'AM', 'PM' ]
|
||
* @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]
|
||
* @return {[string]}
|
||
*/
|
||
;
|
||
|
||
Info.meridiems = function meridiems(_temp5) {
|
||
var _ref5 = _temp5 === void 0 ? {} : _temp5,
|
||
_ref5$locale = _ref5.locale,
|
||
locale = _ref5$locale === void 0 ? null : _ref5$locale;
|
||
|
||
return Locale.create(locale).meridiems();
|
||
}
|
||
/**
|
||
* Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.
|
||
* @param {string} [length='short'] - the length of the era representation, such as "short" or "long".
|
||
* @param {Object} opts - options
|
||
* @param {string} [opts.locale] - the locale code
|
||
* @example Info.eras() //=> [ 'BC', 'AD' ]
|
||
* @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]
|
||
* @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]
|
||
* @return {[string]}
|
||
*/
|
||
;
|
||
|
||
Info.eras = function eras(length, _temp6) {
|
||
if (length === void 0) {
|
||
length = "short";
|
||
}
|
||
|
||
var _ref6 = _temp6 === void 0 ? {} : _temp6,
|
||
_ref6$locale = _ref6.locale,
|
||
locale = _ref6$locale === void 0 ? null : _ref6$locale;
|
||
|
||
return Locale.create(locale, null, "gregory").eras(length);
|
||
}
|
||
/**
|
||
* Return the set of available features in this environment.
|
||
* Some features of Luxon are not available in all environments. For example, on older browsers, timezone support is not available. Use this function to figure out if that's the case.
|
||
* Keys:
|
||
* * `zones`: whether this environment supports IANA timezones
|
||
* * `intlTokens`: whether this environment supports internationalized token-based formatting/parsing
|
||
* * `intl`: whether this environment supports general internationalization
|
||
* * `relative`: whether this environment supports relative time formatting
|
||
* @example Info.features() //=> { intl: true, intlTokens: false, zones: true, relative: false }
|
||
* @return {Object}
|
||
*/
|
||
;
|
||
|
||
Info.features = function features() {
|
||
var intl = false,
|
||
intlTokens = false,
|
||
zones = false,
|
||
relative = false;
|
||
|
||
if (hasIntl()) {
|
||
intl = true;
|
||
intlTokens = hasFormatToParts();
|
||
relative = hasRelative();
|
||
|
||
try {
|
||
zones = new Intl.DateTimeFormat("en", {
|
||
timeZone: "America/New_York"
|
||
}).resolvedOptions().timeZone === "America/New_York";
|
||
} catch (e) {
|
||
zones = false;
|
||
}
|
||
}
|
||
|
||
return {
|
||
intl: intl,
|
||
intlTokens: intlTokens,
|
||
zones: zones,
|
||
relative: relative
|
||
};
|
||
};
|
||
|
||
return Info;
|
||
}();
|
||
|
||
function dayDiff(earlier, later) {
|
||
var utcDayStart = function utcDayStart(dt) {
|
||
return dt.toUTC(0, {
|
||
keepLocalTime: true
|
||
}).startOf("day").valueOf();
|
||
},
|
||
ms = utcDayStart(later) - utcDayStart(earlier);
|
||
|
||
return Math.floor(Duration.fromMillis(ms).as("days"));
|
||
}
|
||
|
||
function highOrderDiffs(cursor, later, units) {
|
||
var differs = [["years", function (a, b) {
|
||
return b.year - a.year;
|
||
}], ["quarters", function (a, b) {
|
||
return b.quarter - a.quarter;
|
||
}], ["months", function (a, b) {
|
||
return b.month - a.month + (b.year - a.year) * 12;
|
||
}], ["weeks", function (a, b) {
|
||
var days = dayDiff(a, b);
|
||
return (days - days % 7) / 7;
|
||
}], ["days", dayDiff]];
|
||
var results = {};
|
||
var lowestOrder, highWater;
|
||
|
||
for (var _i = 0, _differs = differs; _i < _differs.length; _i++) {
|
||
var _differs$_i = _differs[_i],
|
||
unit = _differs$_i[0],
|
||
differ = _differs$_i[1];
|
||
|
||
if (units.indexOf(unit) >= 0) {
|
||
var _cursor$plus;
|
||
|
||
lowestOrder = unit;
|
||
var delta = differ(cursor, later);
|
||
highWater = cursor.plus((_cursor$plus = {}, _cursor$plus[unit] = delta, _cursor$plus));
|
||
|
||
if (highWater > later) {
|
||
var _cursor$plus2;
|
||
|
||
cursor = cursor.plus((_cursor$plus2 = {}, _cursor$plus2[unit] = delta - 1, _cursor$plus2));
|
||
delta -= 1;
|
||
} else {
|
||
cursor = highWater;
|
||
}
|
||
|
||
results[unit] = delta;
|
||
}
|
||
}
|
||
|
||
return [cursor, results, highWater, lowestOrder];
|
||
}
|
||
|
||
function _diff (earlier, later, units, opts) {
|
||
var _highOrderDiffs = highOrderDiffs(earlier, later, units),
|
||
cursor = _highOrderDiffs[0],
|
||
results = _highOrderDiffs[1],
|
||
highWater = _highOrderDiffs[2],
|
||
lowestOrder = _highOrderDiffs[3];
|
||
|
||
var remainingMillis = later - cursor;
|
||
var lowerOrderUnits = units.filter(function (u) {
|
||
return ["hours", "minutes", "seconds", "milliseconds"].indexOf(u) >= 0;
|
||
});
|
||
|
||
if (lowerOrderUnits.length === 0) {
|
||
if (highWater < later) {
|
||
var _cursor$plus3;
|
||
|
||
highWater = cursor.plus((_cursor$plus3 = {}, _cursor$plus3[lowestOrder] = 1, _cursor$plus3));
|
||
}
|
||
|
||
if (highWater !== cursor) {
|
||
results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
|
||
}
|
||
}
|
||
|
||
var duration = Duration.fromObject(Object.assign(results, opts));
|
||
|
||
if (lowerOrderUnits.length > 0) {
|
||
var _Duration$fromMillis;
|
||
|
||
return (_Duration$fromMillis = Duration.fromMillis(remainingMillis, opts)).shiftTo.apply(_Duration$fromMillis, lowerOrderUnits).plus(duration);
|
||
} else {
|
||
return duration;
|
||
}
|
||
}
|
||
|
||
var numberingSystems = {
|
||
arab: "[\u0660-\u0669]",
|
||
arabext: "[\u06F0-\u06F9]",
|
||
bali: "[\u1B50-\u1B59]",
|
||
beng: "[\u09E6-\u09EF]",
|
||
deva: "[\u0966-\u096F]",
|
||
fullwide: "[\uFF10-\uFF19]",
|
||
gujr: "[\u0AE6-\u0AEF]",
|
||
hanidec: "[〇|一|二|三|四|五|六|七|八|九]",
|
||
khmr: "[\u17E0-\u17E9]",
|
||
knda: "[\u0CE6-\u0CEF]",
|
||
laoo: "[\u0ED0-\u0ED9]",
|
||
limb: "[\u1946-\u194F]",
|
||
mlym: "[\u0D66-\u0D6F]",
|
||
mong: "[\u1810-\u1819]",
|
||
mymr: "[\u1040-\u1049]",
|
||
orya: "[\u0B66-\u0B6F]",
|
||
tamldec: "[\u0BE6-\u0BEF]",
|
||
telu: "[\u0C66-\u0C6F]",
|
||
thai: "[\u0E50-\u0E59]",
|
||
tibt: "[\u0F20-\u0F29]",
|
||
latn: "\\d"
|
||
};
|
||
var numberingSystemsUTF16 = {
|
||
arab: [1632, 1641],
|
||
arabext: [1776, 1785],
|
||
bali: [6992, 7001],
|
||
beng: [2534, 2543],
|
||
deva: [2406, 2415],
|
||
fullwide: [65296, 65303],
|
||
gujr: [2790, 2799],
|
||
khmr: [6112, 6121],
|
||
knda: [3302, 3311],
|
||
laoo: [3792, 3801],
|
||
limb: [6470, 6479],
|
||
mlym: [3430, 3439],
|
||
mong: [6160, 6169],
|
||
mymr: [4160, 4169],
|
||
orya: [2918, 2927],
|
||
tamldec: [3046, 3055],
|
||
telu: [3174, 3183],
|
||
thai: [3664, 3673],
|
||
tibt: [3872, 3881]
|
||
}; // eslint-disable-next-line
|
||
|
||
var hanidecChars = numberingSystems.hanidec.replace(/[\[|\]]/g, "").split("");
|
||
function parseDigits(str) {
|
||
var value = parseInt(str, 10);
|
||
|
||
if (isNaN(value)) {
|
||
value = "";
|
||
|
||
for (var i = 0; i < str.length; i++) {
|
||
var code = str.charCodeAt(i);
|
||
|
||
if (str[i].search(numberingSystems.hanidec) !== -1) {
|
||
value += hanidecChars.indexOf(str[i]);
|
||
} else {
|
||
for (var key in numberingSystemsUTF16) {
|
||
var _numberingSystemsUTF = numberingSystemsUTF16[key],
|
||
min = _numberingSystemsUTF[0],
|
||
max = _numberingSystemsUTF[1];
|
||
|
||
if (code >= min && code <= max) {
|
||
value += code - min;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
return parseInt(value, 10);
|
||
} else {
|
||
return value;
|
||
}
|
||
}
|
||
function digitRegex(_ref, append) {
|
||
var numberingSystem = _ref.numberingSystem;
|
||
|
||
if (append === void 0) {
|
||
append = "";
|
||
}
|
||
|
||
return new RegExp("" + numberingSystems[numberingSystem || "latn"] + append);
|
||
}
|
||
|
||
var MISSING_FTP = "missing Intl.DateTimeFormat.formatToParts support";
|
||
|
||
function intUnit(regex, post) {
|
||
if (post === void 0) {
|
||
post = function post(i) {
|
||
return i;
|
||
};
|
||
}
|
||
|
||
return {
|
||
regex: regex,
|
||
deser: function deser(_ref) {
|
||
var s = _ref[0];
|
||
return post(parseDigits(s));
|
||
}
|
||
};
|
||
}
|
||
|
||
var NBSP = String.fromCharCode(160);
|
||
var spaceOrNBSP = "( |" + NBSP + ")";
|
||
var spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, "g");
|
||
|
||
function fixListRegex(s) {
|
||
// make dots optional and also make them literal
|
||
// make space and non breakable space characters interchangeable
|
||
return s.replace(/\./g, "\\.?").replace(spaceOrNBSPRegExp, spaceOrNBSP);
|
||
}
|
||
|
||
function stripInsensitivities(s) {
|
||
return s.replace(/\./g, "") // ignore dots that were made optional
|
||
.replace(spaceOrNBSPRegExp, " ") // interchange space and nbsp
|
||
.toLowerCase();
|
||
}
|
||
|
||
function oneOf(strings, startIndex) {
|
||
if (strings === null) {
|
||
return null;
|
||
} else {
|
||
return {
|
||
regex: RegExp(strings.map(fixListRegex).join("|")),
|
||
deser: function deser(_ref2) {
|
||
var s = _ref2[0];
|
||
return strings.findIndex(function (i) {
|
||
return stripInsensitivities(s) === stripInsensitivities(i);
|
||
}) + startIndex;
|
||
}
|
||
};
|
||
}
|
||
}
|
||
|
||
function offset(regex, groups) {
|
||
return {
|
||
regex: regex,
|
||
deser: function deser(_ref3) {
|
||
var h = _ref3[1],
|
||
m = _ref3[2];
|
||
return signedOffset(h, m);
|
||
},
|
||
groups: groups
|
||
};
|
||
}
|
||
|
||
function simple(regex) {
|
||
return {
|
||
regex: regex,
|
||
deser: function deser(_ref4) {
|
||
var s = _ref4[0];
|
||
return s;
|
||
}
|
||
};
|
||
}
|
||
|
||
function escapeToken(value) {
|
||
// eslint-disable-next-line no-useless-escape
|
||
return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
||
}
|
||
|
||
function unitForToken(token, loc) {
|
||
var one = digitRegex(loc),
|
||
two = digitRegex(loc, "{2}"),
|
||
three = digitRegex(loc, "{3}"),
|
||
four = digitRegex(loc, "{4}"),
|
||
six = digitRegex(loc, "{6}"),
|
||
oneOrTwo = digitRegex(loc, "{1,2}"),
|
||
oneToThree = digitRegex(loc, "{1,3}"),
|
||
oneToSix = digitRegex(loc, "{1,6}"),
|
||
oneToNine = digitRegex(loc, "{1,9}"),
|
||
twoToFour = digitRegex(loc, "{2,4}"),
|
||
fourToSix = digitRegex(loc, "{4,6}"),
|
||
literal = function literal(t) {
|
||
return {
|
||
regex: RegExp(escapeToken(t.val)),
|
||
deser: function deser(_ref5) {
|
||
var s = _ref5[0];
|
||
return s;
|
||
},
|
||
literal: true
|
||
};
|
||
},
|
||
unitate = function unitate(t) {
|
||
if (token.literal) {
|
||
return literal(t);
|
||
}
|
||
|
||
switch (t.val) {
|
||
// era
|
||
case "G":
|
||
return oneOf(loc.eras("short", false), 0);
|
||
|
||
case "GG":
|
||
return oneOf(loc.eras("long", false), 0);
|
||
// years
|
||
|
||
case "y":
|
||
return intUnit(oneToSix);
|
||
|
||
case "yy":
|
||
return intUnit(twoToFour, untruncateYear);
|
||
|
||
case "yyyy":
|
||
return intUnit(four);
|
||
|
||
case "yyyyy":
|
||
return intUnit(fourToSix);
|
||
|
||
case "yyyyyy":
|
||
return intUnit(six);
|
||
// months
|
||
|
||
case "M":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "MM":
|
||
return intUnit(two);
|
||
|
||
case "MMM":
|
||
return oneOf(loc.months("short", true, false), 1);
|
||
|
||
case "MMMM":
|
||
return oneOf(loc.months("long", true, false), 1);
|
||
|
||
case "L":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "LL":
|
||
return intUnit(two);
|
||
|
||
case "LLL":
|
||
return oneOf(loc.months("short", false, false), 1);
|
||
|
||
case "LLLL":
|
||
return oneOf(loc.months("long", false, false), 1);
|
||
// dates
|
||
|
||
case "d":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "dd":
|
||
return intUnit(two);
|
||
// ordinals
|
||
|
||
case "o":
|
||
return intUnit(oneToThree);
|
||
|
||
case "ooo":
|
||
return intUnit(three);
|
||
// time
|
||
|
||
case "HH":
|
||
return intUnit(two);
|
||
|
||
case "H":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "hh":
|
||
return intUnit(two);
|
||
|
||
case "h":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "mm":
|
||
return intUnit(two);
|
||
|
||
case "m":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "q":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "qq":
|
||
return intUnit(two);
|
||
|
||
case "s":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "ss":
|
||
return intUnit(two);
|
||
|
||
case "S":
|
||
return intUnit(oneToThree);
|
||
|
||
case "SSS":
|
||
return intUnit(three);
|
||
|
||
case "u":
|
||
return simple(oneToNine);
|
||
// meridiem
|
||
|
||
case "a":
|
||
return oneOf(loc.meridiems(), 0);
|
||
// weekYear (k)
|
||
|
||
case "kkkk":
|
||
return intUnit(four);
|
||
|
||
case "kk":
|
||
return intUnit(twoToFour, untruncateYear);
|
||
// weekNumber (W)
|
||
|
||
case "W":
|
||
return intUnit(oneOrTwo);
|
||
|
||
case "WW":
|
||
return intUnit(two);
|
||
// weekdays
|
||
|
||
case "E":
|
||
case "c":
|
||
return intUnit(one);
|
||
|
||
case "EEE":
|
||
return oneOf(loc.weekdays("short", false, false), 1);
|
||
|
||
case "EEEE":
|
||
return oneOf(loc.weekdays("long", false, false), 1);
|
||
|
||
case "ccc":
|
||
return oneOf(loc.weekdays("short", true, false), 1);
|
||
|
||
case "cccc":
|
||
return oneOf(loc.weekdays("long", true, false), 1);
|
||
// offset/zone
|
||
|
||
case "Z":
|
||
case "ZZ":
|
||
return offset(new RegExp("([+-]" + oneOrTwo.source + ")(?::(" + two.source + "))?"), 2);
|
||
|
||
case "ZZZ":
|
||
return offset(new RegExp("([+-]" + oneOrTwo.source + ")(" + two.source + ")?"), 2);
|
||
// we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing
|
||
// because we don't have any way to figure out what they are
|
||
|
||
case "z":
|
||
return simple(/[a-z_+-/]{1,256}?/i);
|
||
|
||
default:
|
||
return literal(t);
|
||
}
|
||
};
|
||
|
||
var unit = unitate(token) || {
|
||
invalidReason: MISSING_FTP
|
||
};
|
||
unit.token = token;
|
||
return unit;
|
||
}
|
||
|
||
var partTypeStyleToTokenVal = {
|
||
year: {
|
||
"2-digit": "yy",
|
||
numeric: "yyyyy"
|
||
},
|
||
month: {
|
||
numeric: "M",
|
||
"2-digit": "MM",
|
||
short: "MMM",
|
||
long: "MMMM"
|
||
},
|
||
day: {
|
||
numeric: "d",
|
||
"2-digit": "dd"
|
||
},
|
||
weekday: {
|
||
short: "EEE",
|
||
long: "EEEE"
|
||
},
|
||
dayperiod: "a",
|
||
dayPeriod: "a",
|
||
hour: {
|
||
numeric: "h",
|
||
"2-digit": "hh"
|
||
},
|
||
minute: {
|
||
numeric: "m",
|
||
"2-digit": "mm"
|
||
},
|
||
second: {
|
||
numeric: "s",
|
||
"2-digit": "ss"
|
||
}
|
||
};
|
||
|
||
function tokenForPart(part, locale, formatOpts) {
|
||
var type = part.type,
|
||
value = part.value;
|
||
|
||
if (type === "literal") {
|
||
return {
|
||
literal: true,
|
||
val: value
|
||
};
|
||
}
|
||
|
||
var style = formatOpts[type];
|
||
var val = partTypeStyleToTokenVal[type];
|
||
|
||
if (typeof val === "object") {
|
||
val = val[style];
|
||
}
|
||
|
||
if (val) {
|
||
return {
|
||
literal: false,
|
||
val: val
|
||
};
|
||
}
|
||
|
||
return undefined;
|
||
}
|
||
|
||
function buildRegex(units) {
|
||
var re = units.map(function (u) {
|
||
return u.regex;
|
||
}).reduce(function (f, r) {
|
||
return f + "(" + r.source + ")";
|
||
}, "");
|
||
return ["^" + re + "$", units];
|
||
}
|
||
|
||
function match(input, regex, handlers) {
|
||
var matches = input.match(regex);
|
||
|
||
if (matches) {
|
||
var all = {};
|
||
var matchIndex = 1;
|
||
|
||
for (var i in handlers) {
|
||
if (hasOwnProperty(handlers, i)) {
|
||
var h = handlers[i],
|
||
groups = h.groups ? h.groups + 1 : 1;
|
||
|
||
if (!h.literal && h.token) {
|
||
all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));
|
||
}
|
||
|
||
matchIndex += groups;
|
||
}
|
||
}
|
||
|
||
return [matches, all];
|
||
} else {
|
||
return [matches, {}];
|
||
}
|
||
}
|
||
|
||
function dateTimeFromMatches(matches) {
|
||
var toField = function toField(token) {
|
||
switch (token) {
|
||
case "S":
|
||
return "millisecond";
|
||
|
||
case "s":
|
||
return "second";
|
||
|
||
case "m":
|
||
return "minute";
|
||
|
||
case "h":
|
||
case "H":
|
||
return "hour";
|
||
|
||
case "d":
|
||
return "day";
|
||
|
||
case "o":
|
||
return "ordinal";
|
||
|
||
case "L":
|
||
case "M":
|
||
return "month";
|
||
|
||
case "y":
|
||
return "year";
|
||
|
||
case "E":
|
||
case "c":
|
||
return "weekday";
|
||
|
||
case "W":
|
||
return "weekNumber";
|
||
|
||
case "k":
|
||
return "weekYear";
|
||
|
||
case "q":
|
||
return "quarter";
|
||
|
||
default:
|
||
return null;
|
||
}
|
||
};
|
||
|
||
var zone;
|
||
|
||
if (!isUndefined(matches.Z)) {
|
||
zone = new FixedOffsetZone(matches.Z);
|
||
} else if (!isUndefined(matches.z)) {
|
||
zone = IANAZone.create(matches.z);
|
||
} else {
|
||
zone = null;
|
||
}
|
||
|
||
if (!isUndefined(matches.q)) {
|
||
matches.M = (matches.q - 1) * 3 + 1;
|
||
}
|
||
|
||
if (!isUndefined(matches.h)) {
|
||
if (matches.h < 12 && matches.a === 1) {
|
||
matches.h += 12;
|
||
} else if (matches.h === 12 && matches.a === 0) {
|
||
matches.h = 0;
|
||
}
|
||
}
|
||
|
||
if (matches.G === 0 && matches.y) {
|
||
matches.y = -matches.y;
|
||
}
|
||
|
||
if (!isUndefined(matches.u)) {
|
||
matches.S = parseMillis(matches.u);
|
||
}
|
||
|
||
var vals = Object.keys(matches).reduce(function (r, k) {
|
||
var f = toField(k);
|
||
|
||
if (f) {
|
||
r[f] = matches[k];
|
||
}
|
||
|
||
return r;
|
||
}, {});
|
||
return [vals, zone];
|
||
}
|
||
|
||
var dummyDateTimeCache = null;
|
||
|
||
function getDummyDateTime() {
|
||
if (!dummyDateTimeCache) {
|
||
dummyDateTimeCache = DateTime.fromMillis(1555555555555);
|
||
}
|
||
|
||
return dummyDateTimeCache;
|
||
}
|
||
|
||
function maybeExpandMacroToken(token, locale) {
|
||
if (token.literal) {
|
||
return token;
|
||
}
|
||
|
||
var formatOpts = Formatter.macroTokenToFormatOpts(token.val);
|
||
|
||
if (!formatOpts) {
|
||
return token;
|
||
}
|
||
|
||
var formatter = Formatter.create(locale, formatOpts);
|
||
var parts = formatter.formatDateTimeParts(getDummyDateTime());
|
||
var tokens = parts.map(function (p) {
|
||
return tokenForPart(p, locale, formatOpts);
|
||
});
|
||
|
||
if (tokens.includes(undefined)) {
|
||
return token;
|
||
}
|
||
|
||
return tokens;
|
||
}
|
||
|
||
function expandMacroTokens(tokens, locale) {
|
||
var _Array$prototype;
|
||
|
||
return (_Array$prototype = Array.prototype).concat.apply(_Array$prototype, tokens.map(function (t) {
|
||
return maybeExpandMacroToken(t, locale);
|
||
}));
|
||
}
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
|
||
function explainFromTokens(locale, input, format) {
|
||
var tokens = expandMacroTokens(Formatter.parseFormat(format), locale),
|
||
units = tokens.map(function (t) {
|
||
return unitForToken(t, locale);
|
||
}),
|
||
disqualifyingUnit = units.find(function (t) {
|
||
return t.invalidReason;
|
||
});
|
||
|
||
if (disqualifyingUnit) {
|
||
return {
|
||
input: input,
|
||
tokens: tokens,
|
||
invalidReason: disqualifyingUnit.invalidReason
|
||
};
|
||
} else {
|
||
var _buildRegex = buildRegex(units),
|
||
regexString = _buildRegex[0],
|
||
handlers = _buildRegex[1],
|
||
regex = RegExp(regexString, "i"),
|
||
_match = match(input, regex, handlers),
|
||
rawMatches = _match[0],
|
||
matches = _match[1],
|
||
_ref6 = matches ? dateTimeFromMatches(matches) : [null, null],
|
||
result = _ref6[0],
|
||
zone = _ref6[1];
|
||
|
||
if (hasOwnProperty(matches, "a") && hasOwnProperty(matches, "H")) {
|
||
throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");
|
||
}
|
||
|
||
return {
|
||
input: input,
|
||
tokens: tokens,
|
||
regex: regex,
|
||
rawMatches: rawMatches,
|
||
matches: matches,
|
||
result: result,
|
||
zone: zone
|
||
};
|
||
}
|
||
}
|
||
function parseFromTokens(locale, input, format) {
|
||
var _explainFromTokens = explainFromTokens(locale, input, format),
|
||
result = _explainFromTokens.result,
|
||
zone = _explainFromTokens.zone,
|
||
invalidReason = _explainFromTokens.invalidReason;
|
||
|
||
return [result, zone, invalidReason];
|
||
}
|
||
|
||
var nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],
|
||
leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
|
||
|
||
function unitOutOfRange(unit, value) {
|
||
return new Invalid("unit out of range", "you specified " + value + " (of type " + typeof value + ") as a " + unit + ", which is invalid");
|
||
}
|
||
|
||
function dayOfWeek(year, month, day) {
|
||
var js = new Date(Date.UTC(year, month - 1, day)).getUTCDay();
|
||
return js === 0 ? 7 : js;
|
||
}
|
||
|
||
function computeOrdinal(year, month, day) {
|
||
return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];
|
||
}
|
||
|
||
function uncomputeOrdinal(year, ordinal) {
|
||
var table = isLeapYear(year) ? leapLadder : nonLeapLadder,
|
||
month0 = table.findIndex(function (i) {
|
||
return i < ordinal;
|
||
}),
|
||
day = ordinal - table[month0];
|
||
return {
|
||
month: month0 + 1,
|
||
day: day
|
||
};
|
||
}
|
||
/**
|
||
* @private
|
||
*/
|
||
|
||
|
||
function gregorianToWeek(gregObj) {
|
||
var year = gregObj.year,
|
||
month = gregObj.month,
|
||
day = gregObj.day,
|
||
ordinal = computeOrdinal(year, month, day),
|
||
weekday = dayOfWeek(year, month, day);
|
||
var weekNumber = Math.floor((ordinal - weekday + 10) / 7),
|
||
weekYear;
|
||
|
||
if (weekNumber < 1) {
|
||
weekYear = year - 1;
|
||
weekNumber = weeksInWeekYear(weekYear);
|
||
} else if (weekNumber > weeksInWeekYear(year)) {
|
||
weekYear = year + 1;
|
||
weekNumber = 1;
|
||
} else {
|
||
weekYear = year;
|
||
}
|
||
|
||
return Object.assign({
|
||
weekYear: weekYear,
|
||
weekNumber: weekNumber,
|
||
weekday: weekday
|
||
}, timeObject(gregObj));
|
||
}
|
||
function weekToGregorian(weekData) {
|
||
var weekYear = weekData.weekYear,
|
||
weekNumber = weekData.weekNumber,
|
||
weekday = weekData.weekday,
|
||
weekdayOfJan4 = dayOfWeek(weekYear, 1, 4),
|
||
yearInDays = daysInYear(weekYear);
|
||
var ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 3,
|
||
year;
|
||
|
||
if (ordinal < 1) {
|
||
year = weekYear - 1;
|
||
ordinal += daysInYear(year);
|
||
} else if (ordinal > yearInDays) {
|
||
year = weekYear + 1;
|
||
ordinal -= daysInYear(weekYear);
|
||
} else {
|
||
year = weekYear;
|
||
}
|
||
|
||
var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal),
|
||
month = _uncomputeOrdinal.month,
|
||
day = _uncomputeOrdinal.day;
|
||
|
||
return Object.assign({
|
||
year: year,
|
||
month: month,
|
||
day: day
|
||
}, timeObject(weekData));
|
||
}
|
||
function gregorianToOrdinal(gregData) {
|
||
var year = gregData.year,
|
||
month = gregData.month,
|
||
day = gregData.day,
|
||
ordinal = computeOrdinal(year, month, day);
|
||
return Object.assign({
|
||
year: year,
|
||
ordinal: ordinal
|
||
}, timeObject(gregData));
|
||
}
|
||
function ordinalToGregorian(ordinalData) {
|
||
var year = ordinalData.year,
|
||
ordinal = ordinalData.ordinal,
|
||
_uncomputeOrdinal2 = uncomputeOrdinal(year, ordinal),
|
||
month = _uncomputeOrdinal2.month,
|
||
day = _uncomputeOrdinal2.day;
|
||
|
||
return Object.assign({
|
||
year: year,
|
||
month: month,
|
||
day: day
|
||
}, timeObject(ordinalData));
|
||
}
|
||
function hasInvalidWeekData(obj) {
|
||
var validYear = isInteger(obj.weekYear),
|
||
validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear)),
|
||
validWeekday = integerBetween(obj.weekday, 1, 7);
|
||
|
||
if (!validYear) {
|
||
return unitOutOfRange("weekYear", obj.weekYear);
|
||
} else if (!validWeek) {
|
||
return unitOutOfRange("week", obj.week);
|
||
} else if (!validWeekday) {
|
||
return unitOutOfRange("weekday", obj.weekday);
|
||
} else return false;
|
||
}
|
||
function hasInvalidOrdinalData(obj) {
|
||
var validYear = isInteger(obj.year),
|
||
validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));
|
||
|
||
if (!validYear) {
|
||
return unitOutOfRange("year", obj.year);
|
||
} else if (!validOrdinal) {
|
||
return unitOutOfRange("ordinal", obj.ordinal);
|
||
} else return false;
|
||
}
|
||
function hasInvalidGregorianData(obj) {
|
||
var validYear = isInteger(obj.year),
|
||
validMonth = integerBetween(obj.month, 1, 12),
|
||
validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));
|
||
|
||
if (!validYear) {
|
||
return unitOutOfRange("year", obj.year);
|
||
} else if (!validMonth) {
|
||
return unitOutOfRange("month", obj.month);
|
||
} else if (!validDay) {
|
||
return unitOutOfRange("day", obj.day);
|
||
} else return false;
|
||
}
|
||
function hasInvalidTimeData(obj) {
|
||
var hour = obj.hour,
|
||
minute = obj.minute,
|
||
second = obj.second,
|
||
millisecond = obj.millisecond;
|
||
var validHour = integerBetween(hour, 0, 23) || hour === 24 && minute === 0 && second === 0 && millisecond === 0,
|
||
validMinute = integerBetween(minute, 0, 59),
|
||
validSecond = integerBetween(second, 0, 59),
|
||
validMillisecond = integerBetween(millisecond, 0, 999);
|
||
|
||
if (!validHour) {
|
||
return unitOutOfRange("hour", hour);
|
||
} else if (!validMinute) {
|
||
return unitOutOfRange("minute", minute);
|
||
} else if (!validSecond) {
|
||
return unitOutOfRange("second", second);
|
||
} else if (!validMillisecond) {
|
||
return unitOutOfRange("millisecond", millisecond);
|
||
} else return false;
|
||
}
|
||
|
||
var INVALID$2 = "Invalid DateTime";
|
||
var MAX_DATE = 8.64e15;
|
||
|
||
function unsupportedZone(zone) {
|
||
return new Invalid("unsupported zone", "the zone \"" + zone.name + "\" is not supported");
|
||
} // we cache week data on the DT object and this intermediates the cache
|
||
|
||
|
||
function possiblyCachedWeekData(dt) {
|
||
if (dt.weekData === null) {
|
||
dt.weekData = gregorianToWeek(dt.c);
|
||
}
|
||
|
||
return dt.weekData;
|
||
} // clone really means, "make a new object with these modifications". all "setters" really use this
|
||
// to create a new object while only changing some of the properties
|
||
|
||
|
||
function clone$1(inst, alts) {
|
||
var current = {
|
||
ts: inst.ts,
|
||
zone: inst.zone,
|
||
c: inst.c,
|
||
o: inst.o,
|
||
loc: inst.loc,
|
||
invalid: inst.invalid
|
||
};
|
||
return new DateTime(Object.assign({}, current, alts, {
|
||
old: current
|
||
}));
|
||
} // find the right offset a given local time. The o input is our guess, which determines which
|
||
// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)
|
||
|
||
|
||
function fixOffset(localTS, o, tz) {
|
||
// Our UTC time is just a guess because our offset is just a guess
|
||
var utcGuess = localTS - o * 60 * 1000; // Test whether the zone matches the offset for this ts
|
||
|
||
var o2 = tz.offset(utcGuess); // If so, offset didn't change and we're done
|
||
|
||
if (o === o2) {
|
||
return [utcGuess, o];
|
||
} // If not, change the ts by the difference in the offset
|
||
|
||
|
||
utcGuess -= (o2 - o) * 60 * 1000; // If that gives us the local time we want, we're done
|
||
|
||
var o3 = tz.offset(utcGuess);
|
||
|
||
if (o2 === o3) {
|
||
return [utcGuess, o2];
|
||
} // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time
|
||
|
||
|
||
return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];
|
||
} // convert an epoch timestamp into a calendar object with the given offset
|
||
|
||
|
||
function tsToObj(ts, offset) {
|
||
ts += offset * 60 * 1000;
|
||
var d = new Date(ts);
|
||
return {
|
||
year: d.getUTCFullYear(),
|
||
month: d.getUTCMonth() + 1,
|
||
day: d.getUTCDate(),
|
||
hour: d.getUTCHours(),
|
||
minute: d.getUTCMinutes(),
|
||
second: d.getUTCSeconds(),
|
||
millisecond: d.getUTCMilliseconds()
|
||
};
|
||
} // convert a calendar object to a epoch timestamp
|
||
|
||
|
||
function objToTS(obj, offset, zone) {
|
||
return fixOffset(objToLocalTS(obj), offset, zone);
|
||
} // create a new DT instance by adding a duration, adjusting for DSTs
|
||
|
||
|
||
function adjustTime(inst, dur) {
|
||
var oPre = inst.o,
|
||
year = inst.c.year + Math.trunc(dur.years),
|
||
month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,
|
||
c = Object.assign({}, inst.c, {
|
||
year: year,
|
||
month: month,
|
||
day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
|
||
}),
|
||
millisToAdd = Duration.fromObject({
|
||
years: dur.years - Math.trunc(dur.years),
|
||
quarters: dur.quarters - Math.trunc(dur.quarters),
|
||
months: dur.months - Math.trunc(dur.months),
|
||
weeks: dur.weeks - Math.trunc(dur.weeks),
|
||
days: dur.days - Math.trunc(dur.days),
|
||
hours: dur.hours,
|
||
minutes: dur.minutes,
|
||
seconds: dur.seconds,
|
||
milliseconds: dur.milliseconds
|
||
}).as("milliseconds"),
|
||
localTS = objToLocalTS(c);
|
||
|
||
var _fixOffset = fixOffset(localTS, oPre, inst.zone),
|
||
ts = _fixOffset[0],
|
||
o = _fixOffset[1];
|
||
|
||
if (millisToAdd !== 0) {
|
||
ts += millisToAdd; // that could have changed the offset by going over a DST, but we want to keep the ts the same
|
||
|
||
o = inst.zone.offset(ts);
|
||
}
|
||
|
||
return {
|
||
ts: ts,
|
||
o: o
|
||
};
|
||
} // helper useful in turning the results of parsing into real dates
|
||
// by handling the zone options
|
||
|
||
|
||
function parseDataToDateTime(parsed, parsedZone, opts, format, text) {
|
||
var setZone = opts.setZone,
|
||
zone = opts.zone;
|
||
|
||
if (parsed && Object.keys(parsed).length !== 0) {
|
||
var interpretationZone = parsedZone || zone,
|
||
inst = DateTime.fromObject(Object.assign(parsed, opts, {
|
||
zone: interpretationZone,
|
||
// setZone is a valid option in the calling methods, but not in fromObject
|
||
setZone: undefined
|
||
}));
|
||
return setZone ? inst : inst.setZone(zone);
|
||
} else {
|
||
return DateTime.invalid(new Invalid("unparsable", "the input \"" + text + "\" can't be parsed as " + format));
|
||
}
|
||
} // if you want to output a technical format (e.g. RFC 2822), this helper
|
||
// helps handle the details
|
||
|
||
|
||
function toTechFormat(dt, format, allowZ) {
|
||
if (allowZ === void 0) {
|
||
allowZ = true;
|
||
}
|
||
|
||
return dt.isValid ? Formatter.create(Locale.create("en-US"), {
|
||
allowZ: allowZ,
|
||
forceSimple: true
|
||
}).formatDateTimeFromString(dt, format) : null;
|
||
} // technical time formats (e.g. the time part of ISO 8601), take some options
|
||
// and this commonizes their handling
|
||
|
||
|
||
function toTechTimeFormat(dt, _ref) {
|
||
var _ref$suppressSeconds = _ref.suppressSeconds,
|
||
suppressSeconds = _ref$suppressSeconds === void 0 ? false : _ref$suppressSeconds,
|
||
_ref$suppressMillisec = _ref.suppressMilliseconds,
|
||
suppressMilliseconds = _ref$suppressMillisec === void 0 ? false : _ref$suppressMillisec,
|
||
includeOffset = _ref.includeOffset,
|
||
_ref$includePrefix = _ref.includePrefix,
|
||
includePrefix = _ref$includePrefix === void 0 ? false : _ref$includePrefix,
|
||
_ref$includeZone = _ref.includeZone,
|
||
includeZone = _ref$includeZone === void 0 ? false : _ref$includeZone,
|
||
_ref$spaceZone = _ref.spaceZone,
|
||
spaceZone = _ref$spaceZone === void 0 ? false : _ref$spaceZone,
|
||
_ref$format = _ref.format,
|
||
format = _ref$format === void 0 ? "extended" : _ref$format;
|
||
var fmt = format === "basic" ? "HHmm" : "HH:mm";
|
||
|
||
if (!suppressSeconds || dt.second !== 0 || dt.millisecond !== 0) {
|
||
fmt += format === "basic" ? "ss" : ":ss";
|
||
|
||
if (!suppressMilliseconds || dt.millisecond !== 0) {
|
||
fmt += ".SSS";
|
||
}
|
||
}
|
||
|
||
if ((includeZone || includeOffset) && spaceZone) {
|
||
fmt += " ";
|
||
}
|
||
|
||
if (includeZone) {
|
||
fmt += "z";
|
||
} else if (includeOffset) {
|
||
fmt += format === "basic" ? "ZZZ" : "ZZ";
|
||
}
|
||
|
||
var str = toTechFormat(dt, fmt);
|
||
|
||
if (includePrefix) {
|
||
str = "T" + str;
|
||
}
|
||
|
||
return str;
|
||
} // defaults for unspecified units in the supported calendars
|
||
|
||
|
||
var defaultUnitValues = {
|
||
month: 1,
|
||
day: 1,
|
||
hour: 0,
|
||
minute: 0,
|
||
second: 0,
|
||
millisecond: 0
|
||
},
|
||
defaultWeekUnitValues = {
|
||
weekNumber: 1,
|
||
weekday: 1,
|
||
hour: 0,
|
||
minute: 0,
|
||
second: 0,
|
||
millisecond: 0
|
||
},
|
||
defaultOrdinalUnitValues = {
|
||
ordinal: 1,
|
||
hour: 0,
|
||
minute: 0,
|
||
second: 0,
|
||
millisecond: 0
|
||
}; // Units in the supported calendars, sorted by bigness
|
||
|
||
var orderedUnits$1 = ["year", "month", "day", "hour", "minute", "second", "millisecond"],
|
||
orderedWeekUnits = ["weekYear", "weekNumber", "weekday", "hour", "minute", "second", "millisecond"],
|
||
orderedOrdinalUnits = ["year", "ordinal", "hour", "minute", "second", "millisecond"]; // standardize case and plurality in units
|
||
|
||
function normalizeUnit(unit) {
|
||
var normalized = {
|
||
year: "year",
|
||
years: "year",
|
||
month: "month",
|
||
months: "month",
|
||
day: "day",
|
||
days: "day",
|
||
hour: "hour",
|
||
hours: "hour",
|
||
minute: "minute",
|
||
minutes: "minute",
|
||
quarter: "quarter",
|
||
quarters: "quarter",
|
||
second: "second",
|
||
seconds: "second",
|
||
millisecond: "millisecond",
|
||
milliseconds: "millisecond",
|
||
weekday: "weekday",
|
||
weekdays: "weekday",
|
||
weeknumber: "weekNumber",
|
||
weeksnumber: "weekNumber",
|
||
weeknumbers: "weekNumber",
|
||
weekyear: "weekYear",
|
||
weekyears: "weekYear",
|
||
ordinal: "ordinal"
|
||
}[unit.toLowerCase()];
|
||
if (!normalized) throw new InvalidUnitError(unit);
|
||
return normalized;
|
||
} // this is a dumbed down version of fromObject() that runs about 60% faster
|
||
// but doesn't do any validation, makes a bunch of assumptions about what units
|
||
// are present, and so on.
|
||
|
||
|
||
function quickDT(obj, zone) {
|
||
// assume we have the higher-order units
|
||
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done;) {
|
||
var u = _step.value;
|
||
|
||
if (isUndefined(obj[u])) {
|
||
obj[u] = defaultUnitValues[u];
|
||
}
|
||
}
|
||
|
||
var invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);
|
||
|
||
if (invalid) {
|
||
return DateTime.invalid(invalid);
|
||
}
|
||
|
||
var tsNow = Settings.now(),
|
||
offsetProvis = zone.offset(tsNow),
|
||
_objToTS = objToTS(obj, offsetProvis, zone),
|
||
ts = _objToTS[0],
|
||
o = _objToTS[1];
|
||
|
||
return new DateTime({
|
||
ts: ts,
|
||
zone: zone,
|
||
o: o
|
||
});
|
||
}
|
||
|
||
function diffRelative(start, end, opts) {
|
||
var round = isUndefined(opts.round) ? true : opts.round,
|
||
format = function format(c, unit) {
|
||
c = roundTo(c, round || opts.calendary ? 0 : 2, true);
|
||
var formatter = end.loc.clone(opts).relFormatter(opts);
|
||
return formatter.format(c, unit);
|
||
},
|
||
differ = function differ(unit) {
|
||
if (opts.calendary) {
|
||
if (!end.hasSame(start, unit)) {
|
||
return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);
|
||
} else return 0;
|
||
} else {
|
||
return end.diff(start, unit).get(unit);
|
||
}
|
||
};
|
||
|
||
if (opts.unit) {
|
||
return format(differ(opts.unit), opts.unit);
|
||
}
|
||
|
||
for (var _iterator2 = _createForOfIteratorHelperLoose(opts.units), _step2; !(_step2 = _iterator2()).done;) {
|
||
var unit = _step2.value;
|
||
var count = differ(unit);
|
||
|
||
if (Math.abs(count) >= 1) {
|
||
return format(count, unit);
|
||
}
|
||
}
|
||
|
||
return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);
|
||
}
|
||
/**
|
||
* A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.
|
||
*
|
||
* A DateTime comprises of:
|
||
* * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.
|
||
* * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).
|
||
* * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.
|
||
*
|
||
* Here is a brief overview of the most commonly used functionality it provides:
|
||
*
|
||
* * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link local}, {@link utc}, and (most flexibly) {@link fromObject}. To create one from a standard string format, use {@link fromISO}, {@link fromHTTP}, and {@link fromRFC2822}. To create one from a custom string format, use {@link fromFormat}. To create one from a native JS date, use {@link fromJSDate}.
|
||
* * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link toObject}), use the {@link year}, {@link month},
|
||
* {@link day}, {@link hour}, {@link minute}, {@link second}, {@link millisecond} accessors.
|
||
* * **Week calendar**: For ISO week calendar attributes, see the {@link weekYear}, {@link weekNumber}, and {@link weekday} accessors.
|
||
* * **Configuration** See the {@link locale} and {@link numberingSystem} accessors.
|
||
* * **Transformation**: To transform the DateTime into other DateTimes, use {@link set}, {@link reconfigure}, {@link setZone}, {@link setLocale}, {@link plus}, {@link minus}, {@link endOf}, {@link startOf}, {@link toUTC}, and {@link toLocal}.
|
||
* * **Output**: To convert the DateTime to other representations, use the {@link toRelative}, {@link toRelativeCalendar}, {@link toJSON}, {@link toISO}, {@link toHTTP}, {@link toObject}, {@link toRFC2822}, {@link toString}, {@link toLocaleString}, {@link toFormat}, {@link toMillis} and {@link toJSDate}.
|
||
*
|
||
* There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.
|
||
*/
|
||
|
||
|
||
var DateTime = /*#__PURE__*/function () {
|
||
/**
|
||
* @access private
|
||
*/
|
||
function DateTime(config) {
|
||
var zone = config.zone || Settings.defaultZone;
|
||
var invalid = config.invalid || (Number.isNaN(config.ts) ? new Invalid("invalid input") : null) || (!zone.isValid ? unsupportedZone(zone) : null);
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;
|
||
var c = null,
|
||
o = null;
|
||
|
||
if (!invalid) {
|
||
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
||
|
||
if (unchanged) {
|
||
var _ref2 = [config.old.c, config.old.o];
|
||
c = _ref2[0];
|
||
o = _ref2[1];
|
||
} else {
|
||
var ot = zone.offset(this.ts);
|
||
c = tsToObj(this.ts, ot);
|
||
invalid = Number.isNaN(c.year) ? new Invalid("invalid input") : null;
|
||
c = invalid ? null : c;
|
||
o = invalid ? null : ot;
|
||
}
|
||
}
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
|
||
this._zone = zone;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.loc = config.loc || Locale.create();
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.invalid = invalid;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.weekData = null;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.c = c;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.o = o;
|
||
/**
|
||
* @access private
|
||
*/
|
||
|
||
this.isLuxonDateTime = true;
|
||
} // CONSTRUCT
|
||
|
||
/**
|
||
* Create a DateTime for the current instant, in the system's time zone.
|
||
*
|
||
* Use Settings to override these default values if needed.
|
||
* @example DateTime.now().toISO() //~> now in the ISO format
|
||
* @return {DateTime}
|
||
*/
|
||
|
||
|
||
DateTime.now = function now() {
|
||
return new DateTime({});
|
||
}
|
||
/**
|
||
* Create a local DateTime
|
||
* @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used
|
||
* @param {number} [month=1] - The month, 1-indexed
|
||
* @param {number} [day=1] - The day of the month, 1-indexed
|
||
* @param {number} [hour=0] - The hour of the day, in 24-hour time
|
||
* @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
|
||
* @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
|
||
* @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
|
||
* @example DateTime.local() //~> now
|
||
* @example DateTime.local(2017) //~> 2017-01-01T00:00:00
|
||
* @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00
|
||
* @example DateTime.local(2017, 3, 12) //~> 2017-03-12T00:00:00
|
||
* @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00
|
||
* @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00
|
||
* @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10
|
||
* @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.local = function local(year, month, day, hour, minute, second, millisecond) {
|
||
if (isUndefined(year)) {
|
||
return DateTime.now();
|
||
} else {
|
||
return quickDT({
|
||
year: year,
|
||
month: month,
|
||
day: day,
|
||
hour: hour,
|
||
minute: minute,
|
||
second: second,
|
||
millisecond: millisecond
|
||
}, Settings.defaultZone);
|
||
}
|
||
}
|
||
/**
|
||
* Create a DateTime in UTC
|
||
* @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used
|
||
* @param {number} [month=1] - The month, 1-indexed
|
||
* @param {number} [day=1] - The day of the month
|
||
* @param {number} [hour=0] - The hour of the day, in 24-hour time
|
||
* @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
|
||
* @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
|
||
* @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
|
||
* @example DateTime.utc() //~> now
|
||
* @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z
|
||
* @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z
|
||
* @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z
|
||
* @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z
|
||
* @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z
|
||
* @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z
|
||
* @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765Z
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.utc = function utc(year, month, day, hour, minute, second, millisecond) {
|
||
if (isUndefined(year)) {
|
||
return new DateTime({
|
||
ts: Settings.now(),
|
||
zone: FixedOffsetZone.utcInstance
|
||
});
|
||
} else {
|
||
return quickDT({
|
||
year: year,
|
||
month: month,
|
||
day: day,
|
||
hour: hour,
|
||
minute: minute,
|
||
second: second,
|
||
millisecond: millisecond
|
||
}, FixedOffsetZone.utcInstance);
|
||
}
|
||
}
|
||
/**
|
||
* Create a DateTime from a JavaScript Date object. Uses the default zone.
|
||
* @param {Date} date - a JavaScript Date object
|
||
* @param {Object} options - configuration options for the DateTime
|
||
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromJSDate = function fromJSDate(date, options) {
|
||
if (options === void 0) {
|
||
options = {};
|
||
}
|
||
|
||
var ts = isDate(date) ? date.valueOf() : NaN;
|
||
|
||
if (Number.isNaN(ts)) {
|
||
return DateTime.invalid("invalid input");
|
||
}
|
||
|
||
var zoneToUse = normalizeZone(options.zone, Settings.defaultZone);
|
||
|
||
if (!zoneToUse.isValid) {
|
||
return DateTime.invalid(unsupportedZone(zoneToUse));
|
||
}
|
||
|
||
return new DateTime({
|
||
ts: ts,
|
||
zone: zoneToUse,
|
||
loc: Locale.fromObject(options)
|
||
});
|
||
}
|
||
/**
|
||
* Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
||
* @param {number} milliseconds - a number of milliseconds since 1970 UTC
|
||
* @param {Object} options - configuration options for the DateTime
|
||
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
||
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
||
* @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
|
||
* @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromMillis = function fromMillis(milliseconds, options) {
|
||
if (options === void 0) {
|
||
options = {};
|
||
}
|
||
|
||
if (!isNumber(milliseconds)) {
|
||
throw new InvalidArgumentError("fromMillis requires a numerical input, but received a " + typeof milliseconds + " with value " + milliseconds);
|
||
} else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {
|
||
// this isn't perfect because because we can still end up out of range because of additional shifting, but it's a start
|
||
return DateTime.invalid("Timestamp out of range");
|
||
} else {
|
||
return new DateTime({
|
||
ts: milliseconds,
|
||
zone: normalizeZone(options.zone, Settings.defaultZone),
|
||
loc: Locale.fromObject(options)
|
||
});
|
||
}
|
||
}
|
||
/**
|
||
* Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
||
* @param {number} seconds - a number of seconds since 1970 UTC
|
||
* @param {Object} options - configuration options for the DateTime
|
||
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
||
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
||
* @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
|
||
* @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromSeconds = function fromSeconds(seconds, options) {
|
||
if (options === void 0) {
|
||
options = {};
|
||
}
|
||
|
||
if (!isNumber(seconds)) {
|
||
throw new InvalidArgumentError("fromSeconds requires a numerical input");
|
||
} else {
|
||
return new DateTime({
|
||
ts: seconds * 1000,
|
||
zone: normalizeZone(options.zone, Settings.defaultZone),
|
||
loc: Locale.fromObject(options)
|
||
});
|
||
}
|
||
}
|
||
/**
|
||
* Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
|
||
* @param {Object} obj - the object to create the DateTime from
|
||
* @param {number} obj.year - a year, such as 1987
|
||
* @param {number} obj.month - a month, 1-12
|
||
* @param {number} obj.day - a day of the month, 1-31, depending on the month
|
||
* @param {number} obj.ordinal - day of the year, 1-365 or 366
|
||
* @param {number} obj.weekYear - an ISO week year
|
||
* @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year
|
||
* @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday
|
||
* @param {number} obj.hour - hour of the day, 0-23
|
||
* @param {number} obj.minute - minute of the hour, 0-59
|
||
* @param {number} obj.second - second of the minute, 0-59
|
||
* @param {number} obj.millisecond - millisecond of the second, 0-999
|
||
* @param {string|Zone} [obj.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()
|
||
* @param {string} [obj.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
||
* @param {string} obj.outputCalendar - the output calendar to set on the resulting DateTime instance
|
||
* @param {string} obj.numberingSystem - the numbering system to set on the resulting DateTime instance
|
||
* @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'
|
||
* @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'
|
||
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06
|
||
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'utc' }),
|
||
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'local' })
|
||
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'America/New_York' })
|
||
* @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromObject = function fromObject(obj) {
|
||
var zoneToUse = normalizeZone(obj.zone, Settings.defaultZone);
|
||
|
||
if (!zoneToUse.isValid) {
|
||
return DateTime.invalid(unsupportedZone(zoneToUse));
|
||
}
|
||
|
||
var tsNow = Settings.now(),
|
||
offsetProvis = zoneToUse.offset(tsNow),
|
||
normalized = normalizeObject(obj, normalizeUnit, ["zone", "locale", "outputCalendar", "numberingSystem"]),
|
||
containsOrdinal = !isUndefined(normalized.ordinal),
|
||
containsGregorYear = !isUndefined(normalized.year),
|
||
containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),
|
||
containsGregor = containsGregorYear || containsGregorMD,
|
||
definiteWeekDef = normalized.weekYear || normalized.weekNumber,
|
||
loc = Locale.fromObject(obj); // cases:
|
||
// just a weekday -> this week's instance of that weekday, no worries
|
||
// (gregorian data or ordinal) + (weekYear or weekNumber) -> error
|
||
// (gregorian month or day) + ordinal -> error
|
||
// otherwise just use weeks or ordinals or gregorian, depending on what's specified
|
||
|
||
if ((containsGregor || containsOrdinal) && definiteWeekDef) {
|
||
throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
|
||
}
|
||
|
||
if (containsGregorMD && containsOrdinal) {
|
||
throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");
|
||
}
|
||
|
||
var useWeekData = definiteWeekDef || normalized.weekday && !containsGregor; // configure ourselves to deal with gregorian dates or week stuff
|
||
|
||
var units,
|
||
defaultValues,
|
||
objNow = tsToObj(tsNow, offsetProvis);
|
||
|
||
if (useWeekData) {
|
||
units = orderedWeekUnits;
|
||
defaultValues = defaultWeekUnitValues;
|
||
objNow = gregorianToWeek(objNow);
|
||
} else if (containsOrdinal) {
|
||
units = orderedOrdinalUnits;
|
||
defaultValues = defaultOrdinalUnitValues;
|
||
objNow = gregorianToOrdinal(objNow);
|
||
} else {
|
||
units = orderedUnits$1;
|
||
defaultValues = defaultUnitValues;
|
||
} // set default values for missing stuff
|
||
|
||
|
||
var foundFirst = false;
|
||
|
||
for (var _iterator3 = _createForOfIteratorHelperLoose(units), _step3; !(_step3 = _iterator3()).done;) {
|
||
var u = _step3.value;
|
||
var v = normalized[u];
|
||
|
||
if (!isUndefined(v)) {
|
||
foundFirst = true;
|
||
} else if (foundFirst) {
|
||
normalized[u] = defaultValues[u];
|
||
} else {
|
||
normalized[u] = objNow[u];
|
||
}
|
||
} // make sure the values we have are in range
|
||
|
||
|
||
var higherOrderInvalid = useWeekData ? hasInvalidWeekData(normalized) : containsOrdinal ? hasInvalidOrdinalData(normalized) : hasInvalidGregorianData(normalized),
|
||
invalid = higherOrderInvalid || hasInvalidTimeData(normalized);
|
||
|
||
if (invalid) {
|
||
return DateTime.invalid(invalid);
|
||
} // compute the actual time
|
||
|
||
|
||
var gregorian = useWeekData ? weekToGregorian(normalized) : containsOrdinal ? ordinalToGregorian(normalized) : normalized,
|
||
_objToTS2 = objToTS(gregorian, offsetProvis, zoneToUse),
|
||
tsFinal = _objToTS2[0],
|
||
offsetFinal = _objToTS2[1],
|
||
inst = new DateTime({
|
||
ts: tsFinal,
|
||
zone: zoneToUse,
|
||
o: offsetFinal,
|
||
loc: loc
|
||
}); // gregorian data + weekday serves only to validate
|
||
|
||
|
||
if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {
|
||
return DateTime.invalid("mismatched weekday", "you can't specify both a weekday of " + normalized.weekday + " and a date of " + inst.toISO());
|
||
}
|
||
|
||
return inst;
|
||
}
|
||
/**
|
||
* Create a DateTime from an ISO 8601 string
|
||
* @param {string} text - the ISO string
|
||
* @param {Object} opts - options to affect the creation
|
||
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone
|
||
* @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
|
||
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
||
* @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
||
* @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
||
* @example DateTime.fromISO('2016-05-25T09:08:34.123')
|
||
* @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')
|
||
* @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})
|
||
* @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})
|
||
* @example DateTime.fromISO('2016-W05-4')
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromISO = function fromISO(text, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var _parseISODate = parseISODate(text),
|
||
vals = _parseISODate[0],
|
||
parsedZone = _parseISODate[1];
|
||
|
||
return parseDataToDateTime(vals, parsedZone, opts, "ISO 8601", text);
|
||
}
|
||
/**
|
||
* Create a DateTime from an RFC 2822 string
|
||
* @param {string} text - the RFC 2822 string
|
||
* @param {Object} opts - options to affect the creation
|
||
* @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
|
||
* @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
|
||
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
||
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
||
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
||
* @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')
|
||
* @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')
|
||
* @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromRFC2822 = function fromRFC2822(text, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var _parseRFC2822Date = parseRFC2822Date(text),
|
||
vals = _parseRFC2822Date[0],
|
||
parsedZone = _parseRFC2822Date[1];
|
||
|
||
return parseDataToDateTime(vals, parsedZone, opts, "RFC 2822", text);
|
||
}
|
||
/**
|
||
* Create a DateTime from an HTTP header date
|
||
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
|
||
* @param {string} text - the HTTP header date
|
||
* @param {Object} opts - options to affect the creation
|
||
* @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
|
||
* @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.
|
||
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
||
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
||
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
||
* @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')
|
||
* @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')
|
||
* @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromHTTP = function fromHTTP(text, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var _parseHTTPDate = parseHTTPDate(text),
|
||
vals = _parseHTTPDate[0],
|
||
parsedZone = _parseHTTPDate[1];
|
||
|
||
return parseDataToDateTime(vals, parsedZone, opts, "HTTP", opts);
|
||
}
|
||
/**
|
||
* Create a DateTime from an input string and format string.
|
||
* Defaults to en-US if no locale has been specified, regardless of the system's locale.
|
||
* @see https://moment.github.io/luxon/docs/manual/parsing.html#table-of-tokens
|
||
* @param {string} text - the string to parse
|
||
* @param {string} fmt - the format the string is expected to be in (see the link below for the formats)
|
||
* @param {Object} opts - options to affect the creation
|
||
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
|
||
* @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
|
||
* @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
|
||
* @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
|
||
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromFormat = function fromFormat(text, fmt, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
if (isUndefined(text) || isUndefined(fmt)) {
|
||
throw new InvalidArgumentError("fromFormat requires an input string and a format");
|
||
}
|
||
|
||
var _opts = opts,
|
||
_opts$locale = _opts.locale,
|
||
locale = _opts$locale === void 0 ? null : _opts$locale,
|
||
_opts$numberingSystem = _opts.numberingSystem,
|
||
numberingSystem = _opts$numberingSystem === void 0 ? null : _opts$numberingSystem,
|
||
localeToUse = Locale.fromOpts({
|
||
locale: locale,
|
||
numberingSystem: numberingSystem,
|
||
defaultToEN: true
|
||
}),
|
||
_parseFromTokens = parseFromTokens(localeToUse, text, fmt),
|
||
vals = _parseFromTokens[0],
|
||
parsedZone = _parseFromTokens[1],
|
||
invalid = _parseFromTokens[2];
|
||
|
||
if (invalid) {
|
||
return DateTime.invalid(invalid);
|
||
} else {
|
||
return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text);
|
||
}
|
||
}
|
||
/**
|
||
* @deprecated use fromFormat instead
|
||
*/
|
||
;
|
||
|
||
DateTime.fromString = function fromString(text, fmt, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
return DateTime.fromFormat(text, fmt, opts);
|
||
}
|
||
/**
|
||
* Create a DateTime from a SQL date, time, or datetime
|
||
* Defaults to en-US if no locale has been specified, regardless of the system's locale
|
||
* @param {string} text - the string to parse
|
||
* @param {Object} opts - options to affect the creation
|
||
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
|
||
* @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
|
||
* @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
|
||
* @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
|
||
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
||
* @example DateTime.fromSQL('2017-05-15')
|
||
* @example DateTime.fromSQL('2017-05-15 09:12:34')
|
||
* @example DateTime.fromSQL('2017-05-15 09:12:34.342')
|
||
* @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')
|
||
* @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')
|
||
* @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })
|
||
* @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })
|
||
* @example DateTime.fromSQL('09:12:34.342')
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromSQL = function fromSQL(text, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var _parseSQL = parseSQL(text),
|
||
vals = _parseSQL[0],
|
||
parsedZone = _parseSQL[1];
|
||
|
||
return parseDataToDateTime(vals, parsedZone, opts, "SQL", text);
|
||
}
|
||
/**
|
||
* Create an invalid DateTime.
|
||
* @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent
|
||
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
DateTime.invalid = function invalid(reason, explanation) {
|
||
if (explanation === void 0) {
|
||
explanation = null;
|
||
}
|
||
|
||
if (!reason) {
|
||
throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");
|
||
}
|
||
|
||
var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);
|
||
|
||
if (Settings.throwOnInvalid) {
|
||
throw new InvalidDateTimeError(invalid);
|
||
} else {
|
||
return new DateTime({
|
||
invalid: invalid
|
||
});
|
||
}
|
||
}
|
||
/**
|
||
* Check if an object is a DateTime. Works across context boundaries
|
||
* @param {object} o
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
DateTime.isDateTime = function isDateTime(o) {
|
||
return o && o.isLuxonDateTime || false;
|
||
} // INFO
|
||
|
||
/**
|
||
* Get the value of unit.
|
||
* @param {string} unit - a unit such as 'minute' or 'day'
|
||
* @example DateTime.local(2017, 7, 4).get('month'); //=> 7
|
||
* @example DateTime.local(2017, 7, 4).get('day'); //=> 4
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
var _proto = DateTime.prototype;
|
||
|
||
_proto.get = function get(unit) {
|
||
return this[unit];
|
||
}
|
||
/**
|
||
* Returns whether the DateTime is valid. Invalid DateTimes occur when:
|
||
* * The DateTime was created from invalid calendar information, such as the 13th month or February 30
|
||
* * The DateTime was created by an operation on another invalid date
|
||
* @type {boolean}
|
||
*/
|
||
;
|
||
|
||
/**
|
||
* Returns the resolved Intl options for this DateTime.
|
||
* This is useful in understanding the behavior of formatting methods
|
||
* @param {Object} opts - the same options as toLocaleString
|
||
* @return {Object}
|
||
*/
|
||
_proto.resolvedLocaleOpts = function resolvedLocaleOpts(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
var _Formatter$create$res = Formatter.create(this.loc.clone(opts), opts).resolvedOptions(this),
|
||
locale = _Formatter$create$res.locale,
|
||
numberingSystem = _Formatter$create$res.numberingSystem,
|
||
calendar = _Formatter$create$res.calendar;
|
||
|
||
return {
|
||
locale: locale,
|
||
numberingSystem: numberingSystem,
|
||
outputCalendar: calendar
|
||
};
|
||
} // TRANSFORM
|
||
|
||
/**
|
||
* "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime.
|
||
*
|
||
* Equivalent to {@link setZone}('utc')
|
||
* @param {number} [offset=0] - optionally, an offset from UTC in minutes
|
||
* @param {Object} [opts={}] - options to pass to `setZone()`
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.toUTC = function toUTC(offset, opts) {
|
||
if (offset === void 0) {
|
||
offset = 0;
|
||
}
|
||
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
return this.setZone(FixedOffsetZone.instance(offset), opts);
|
||
}
|
||
/**
|
||
* "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
|
||
*
|
||
* Equivalent to `setZone('local')`
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.toLocal = function toLocal() {
|
||
return this.setZone(Settings.defaultZone);
|
||
}
|
||
/**
|
||
* "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
|
||
*
|
||
* By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link plus}. You may wish to use {@link toLocal} and {@link toUTC} which provide simple convenience wrappers for commonly used zones.
|
||
* @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link Zone} class.
|
||
* @param {Object} opts - options
|
||
* @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.setZone = function setZone(zone, _temp) {
|
||
var _ref3 = _temp === void 0 ? {} : _temp,
|
||
_ref3$keepLocalTime = _ref3.keepLocalTime,
|
||
keepLocalTime = _ref3$keepLocalTime === void 0 ? false : _ref3$keepLocalTime,
|
||
_ref3$keepCalendarTim = _ref3.keepCalendarTime,
|
||
keepCalendarTime = _ref3$keepCalendarTim === void 0 ? false : _ref3$keepCalendarTim;
|
||
|
||
zone = normalizeZone(zone, Settings.defaultZone);
|
||
|
||
if (zone.equals(this.zone)) {
|
||
return this;
|
||
} else if (!zone.isValid) {
|
||
return DateTime.invalid(unsupportedZone(zone));
|
||
} else {
|
||
var newTS = this.ts;
|
||
|
||
if (keepLocalTime || keepCalendarTime) {
|
||
var offsetGuess = zone.offset(this.ts);
|
||
var asObj = this.toObject();
|
||
|
||
var _objToTS3 = objToTS(asObj, offsetGuess, zone);
|
||
|
||
newTS = _objToTS3[0];
|
||
}
|
||
|
||
return clone$1(this, {
|
||
ts: newTS,
|
||
zone: zone
|
||
});
|
||
}
|
||
}
|
||
/**
|
||
* "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
|
||
* @param {Object} properties - the properties to set
|
||
* @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.reconfigure = function reconfigure(_temp2) {
|
||
var _ref4 = _temp2 === void 0 ? {} : _temp2,
|
||
locale = _ref4.locale,
|
||
numberingSystem = _ref4.numberingSystem,
|
||
outputCalendar = _ref4.outputCalendar;
|
||
|
||
var loc = this.loc.clone({
|
||
locale: locale,
|
||
numberingSystem: numberingSystem,
|
||
outputCalendar: outputCalendar
|
||
});
|
||
return clone$1(this, {
|
||
loc: loc
|
||
});
|
||
}
|
||
/**
|
||
* "Set" the locale. Returns a newly-constructed DateTime.
|
||
* Just a convenient alias for reconfigure({ locale })
|
||
* @example DateTime.local(2017, 5, 25).setLocale('en-GB')
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.setLocale = function setLocale(locale) {
|
||
return this.reconfigure({
|
||
locale: locale
|
||
});
|
||
}
|
||
/**
|
||
* "Set" the values of specified units. Returns a newly-constructed DateTime.
|
||
* You can only set units with this method; for "setting" metadata, see {@link reconfigure} and {@link setZone}.
|
||
* @param {Object} values - a mapping of units to numbers
|
||
* @example dt.set({ year: 2017 })
|
||
* @example dt.set({ hour: 8, minute: 30 })
|
||
* @example dt.set({ weekday: 5 })
|
||
* @example dt.set({ year: 2005, ordinal: 234 })
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.set = function set(values) {
|
||
if (!this.isValid) return this;
|
||
var normalized = normalizeObject(values, normalizeUnit, []),
|
||
settingWeekStuff = !isUndefined(normalized.weekYear) || !isUndefined(normalized.weekNumber) || !isUndefined(normalized.weekday),
|
||
containsOrdinal = !isUndefined(normalized.ordinal),
|
||
containsGregorYear = !isUndefined(normalized.year),
|
||
containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),
|
||
containsGregor = containsGregorYear || containsGregorMD,
|
||
definiteWeekDef = normalized.weekYear || normalized.weekNumber;
|
||
|
||
if ((containsGregor || containsOrdinal) && definiteWeekDef) {
|
||
throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
|
||
}
|
||
|
||
if (containsGregorMD && containsOrdinal) {
|
||
throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");
|
||
}
|
||
|
||
var mixed;
|
||
|
||
if (settingWeekStuff) {
|
||
mixed = weekToGregorian(Object.assign(gregorianToWeek(this.c), normalized));
|
||
} else if (!isUndefined(normalized.ordinal)) {
|
||
mixed = ordinalToGregorian(Object.assign(gregorianToOrdinal(this.c), normalized));
|
||
} else {
|
||
mixed = Object.assign(this.toObject(), normalized); // if we didn't set the day but we ended up on an overflow date,
|
||
// use the last day of the right month
|
||
|
||
if (isUndefined(normalized.day)) {
|
||
mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);
|
||
}
|
||
}
|
||
|
||
var _objToTS4 = objToTS(mixed, this.o, this.zone),
|
||
ts = _objToTS4[0],
|
||
o = _objToTS4[1];
|
||
|
||
return clone$1(this, {
|
||
ts: ts,
|
||
o: o
|
||
});
|
||
}
|
||
/**
|
||
* Add a period of time to this DateTime and return the resulting DateTime
|
||
*
|
||
* Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.
|
||
* @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
||
* @example DateTime.now().plus(123) //~> in 123 milliseconds
|
||
* @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes
|
||
* @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow
|
||
* @example DateTime.now().plus({ days: -1 }) //~> this time yesterday
|
||
* @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min
|
||
* @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.plus = function plus(duration) {
|
||
if (!this.isValid) return this;
|
||
var dur = friendlyDuration(duration);
|
||
return clone$1(this, adjustTime(this, dur));
|
||
}
|
||
/**
|
||
* Subtract a period of time to this DateTime and return the resulting DateTime
|
||
* See {@link plus}
|
||
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
||
@return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.minus = function minus(duration) {
|
||
if (!this.isValid) return this;
|
||
var dur = friendlyDuration(duration).negate();
|
||
return clone$1(this, adjustTime(this, dur));
|
||
}
|
||
/**
|
||
* "Set" this DateTime to the beginning of a unit of time.
|
||
* @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
|
||
* @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'
|
||
* @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'
|
||
* @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays
|
||
* @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'
|
||
* @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.startOf = function startOf(unit) {
|
||
if (!this.isValid) return this;
|
||
var o = {},
|
||
normalizedUnit = Duration.normalizeUnit(unit);
|
||
|
||
switch (normalizedUnit) {
|
||
case "years":
|
||
o.month = 1;
|
||
// falls through
|
||
|
||
case "quarters":
|
||
case "months":
|
||
o.day = 1;
|
||
// falls through
|
||
|
||
case "weeks":
|
||
case "days":
|
||
o.hour = 0;
|
||
// falls through
|
||
|
||
case "hours":
|
||
o.minute = 0;
|
||
// falls through
|
||
|
||
case "minutes":
|
||
o.second = 0;
|
||
// falls through
|
||
|
||
case "seconds":
|
||
o.millisecond = 0;
|
||
break;
|
||
// no default, invalid units throw in normalizeUnit()
|
||
}
|
||
|
||
if (normalizedUnit === "weeks") {
|
||
o.weekday = 1;
|
||
}
|
||
|
||
if (normalizedUnit === "quarters") {
|
||
var q = Math.ceil(this.month / 3);
|
||
o.month = (q - 1) * 3 + 1;
|
||
}
|
||
|
||
return this.set(o);
|
||
}
|
||
/**
|
||
* "Set" this DateTime to the end (meaning the last millisecond) of a unit of time
|
||
* @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
|
||
* @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'
|
||
* @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'
|
||
* @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays
|
||
* @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'
|
||
* @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'
|
||
* @return {DateTime}
|
||
*/
|
||
;
|
||
|
||
_proto.endOf = function endOf(unit) {
|
||
var _this$plus;
|
||
|
||
return this.isValid ? this.plus((_this$plus = {}, _this$plus[unit] = 1, _this$plus)).startOf(unit).minus(1) : this;
|
||
} // OUTPUT
|
||
|
||
/**
|
||
* Returns a string representation of this DateTime formatted according to the specified format string.
|
||
* **You may not want this.** See {@link toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens).
|
||
* Defaults to en-US if no locale has been specified, regardless of the system's locale.
|
||
* @see https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens
|
||
* @param {string} fmt - the format string
|
||
* @param {Object} opts - opts to override the configuration options
|
||
* @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'
|
||
* @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'
|
||
* @example DateTime.now().toFormat('yyyy LLL dd', { locale: "fr" }) //=> '2017 avr. 22'
|
||
* @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toFormat = function toFormat(fmt, opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
return this.isValid ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt) : INVALID$2;
|
||
}
|
||
/**
|
||
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
||
* The exact behavior of this method is browser-specific, but in general it will return an appropriate representation
|
||
* of the DateTime in the assigned locale.
|
||
* Defaults to the system's locale if no locale has been specified
|
||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
||
* @param opts {Object} - Intl.DateTimeFormat constructor options and configuration options
|
||
* @example DateTime.now().toLocaleString(); //=> 4/20/2017
|
||
* @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'
|
||
* @example DateTime.now().toLocaleString({ locale: 'en-gb' }); //=> '20/04/2017'
|
||
* @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'
|
||
* @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'
|
||
* @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'
|
||
* @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'
|
||
* @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'
|
||
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hour12: false }); //=> '11:32'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toLocaleString = function toLocaleString(opts) {
|
||
if (opts === void 0) {
|
||
opts = DATE_SHORT;
|
||
}
|
||
|
||
return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTime(this) : INVALID$2;
|
||
}
|
||
/**
|
||
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
||
* Defaults to the system's locale if no locale has been specified
|
||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts
|
||
* @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.
|
||
* @example DateTime.now().toLocaleParts(); //=> [
|
||
* //=> { type: 'day', value: '25' },
|
||
* //=> { type: 'literal', value: '/' },
|
||
* //=> { type: 'month', value: '05' },
|
||
* //=> { type: 'literal', value: '/' },
|
||
* //=> { type: 'year', value: '1982' }
|
||
* //=> ]
|
||
*/
|
||
;
|
||
|
||
_proto.toLocaleParts = function toLocaleParts(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this) : [];
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of this DateTime
|
||
* @param {Object} opts - options
|
||
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
||
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
||
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
||
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
||
* @example DateTime.utc(1982, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
|
||
* @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
|
||
* @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
|
||
* @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISO = function toISO(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
if (!this.isValid) {
|
||
return null;
|
||
}
|
||
|
||
return this.toISODate(opts) + "T" + this.toISOTime(opts);
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
||
* @param {Object} opts - options
|
||
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
||
* @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'
|
||
* @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISODate = function toISODate(_temp3) {
|
||
var _ref5 = _temp3 === void 0 ? {} : _temp3,
|
||
_ref5$format = _ref5.format,
|
||
format = _ref5$format === void 0 ? "extended" : _ref5$format;
|
||
|
||
var fmt = format === "basic" ? "yyyyMMdd" : "yyyy-MM-dd";
|
||
|
||
if (this.year > 9999) {
|
||
fmt = "+" + fmt;
|
||
}
|
||
|
||
return toTechFormat(this, fmt);
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
||
* @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISOWeekDate = function toISOWeekDate() {
|
||
return toTechFormat(this, "kkkk-'W'WW-c");
|
||
}
|
||
/**
|
||
* Returns an ISO 8601-compliant string representation of this DateTime's time component
|
||
* @param {Object} opts - options
|
||
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
||
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
||
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
||
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
||
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
||
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'
|
||
* @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'
|
||
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'
|
||
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toISOTime = function toISOTime(_temp4) {
|
||
var _ref6 = _temp4 === void 0 ? {} : _temp4,
|
||
_ref6$suppressMillise = _ref6.suppressMilliseconds,
|
||
suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise,
|
||
_ref6$suppressSeconds = _ref6.suppressSeconds,
|
||
suppressSeconds = _ref6$suppressSeconds === void 0 ? false : _ref6$suppressSeconds,
|
||
_ref6$includeOffset = _ref6.includeOffset,
|
||
includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset,
|
||
_ref6$includePrefix = _ref6.includePrefix,
|
||
includePrefix = _ref6$includePrefix === void 0 ? false : _ref6$includePrefix,
|
||
_ref6$format = _ref6.format,
|
||
format = _ref6$format === void 0 ? "extended" : _ref6$format;
|
||
|
||
return toTechTimeFormat(this, {
|
||
suppressSeconds: suppressSeconds,
|
||
suppressMilliseconds: suppressMilliseconds,
|
||
includeOffset: includeOffset,
|
||
includePrefix: includePrefix,
|
||
format: format
|
||
});
|
||
}
|
||
/**
|
||
* Returns an RFC 2822-compatible string representation of this DateTime, always in UTC
|
||
* @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'
|
||
* @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toRFC2822 = function toRFC2822() {
|
||
return toTechFormat(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false);
|
||
}
|
||
/**
|
||
* Returns a string representation of this DateTime appropriate for use in HTTP headers.
|
||
* Specifically, the string conforms to RFC 1123.
|
||
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
|
||
* @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'
|
||
* @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toHTTP = function toHTTP() {
|
||
return toTechFormat(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'");
|
||
}
|
||
/**
|
||
* Returns a string representation of this DateTime appropriate for use in SQL Date
|
||
* @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toSQLDate = function toSQLDate() {
|
||
return toTechFormat(this, "yyyy-MM-dd");
|
||
}
|
||
/**
|
||
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
||
* @param {Object} opts - options
|
||
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
||
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
||
* @example DateTime.utc().toSQL() //=> '05:15:16.345'
|
||
* @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
|
||
* @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
|
||
* @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toSQLTime = function toSQLTime(_temp5) {
|
||
var _ref7 = _temp5 === void 0 ? {} : _temp5,
|
||
_ref7$includeOffset = _ref7.includeOffset,
|
||
includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,
|
||
_ref7$includeZone = _ref7.includeZone,
|
||
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone;
|
||
|
||
return toTechTimeFormat(this, {
|
||
includeOffset: includeOffset,
|
||
includeZone: includeZone,
|
||
spaceZone: true
|
||
});
|
||
}
|
||
/**
|
||
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
||
* @param {Object} opts - options
|
||
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
||
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
||
* @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
|
||
* @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
|
||
* @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
|
||
* @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toSQL = function toSQL(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
if (!this.isValid) {
|
||
return null;
|
||
}
|
||
|
||
return this.toSQLDate() + " " + this.toSQLTime(opts);
|
||
}
|
||
/**
|
||
* Returns a string representation of this DateTime appropriate for debugging
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toString = function toString() {
|
||
return this.isValid ? this.toISO() : INVALID$2;
|
||
}
|
||
/**
|
||
* Returns the epoch milliseconds of this DateTime. Alias of {@link toMillis}
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.valueOf = function valueOf() {
|
||
return this.toMillis();
|
||
}
|
||
/**
|
||
* Returns the epoch milliseconds of this DateTime.
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.toMillis = function toMillis() {
|
||
return this.isValid ? this.ts : NaN;
|
||
}
|
||
/**
|
||
* Returns the epoch seconds of this DateTime.
|
||
* @return {number}
|
||
*/
|
||
;
|
||
|
||
_proto.toSeconds = function toSeconds() {
|
||
return this.isValid ? this.ts / 1000 : NaN;
|
||
}
|
||
/**
|
||
* Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
|
||
* @return {string}
|
||
*/
|
||
;
|
||
|
||
_proto.toJSON = function toJSON() {
|
||
return this.toISO();
|
||
}
|
||
/**
|
||
* Returns a BSON serializable equivalent to this DateTime.
|
||
* @return {Date}
|
||
*/
|
||
;
|
||
|
||
_proto.toBSON = function toBSON() {
|
||
return this.toJSDate();
|
||
}
|
||
/**
|
||
* Returns a JavaScript object with this DateTime's year, month, day, and so on.
|
||
* @param opts - options for generating the object
|
||
* @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output
|
||
* @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }
|
||
* @return {Object}
|
||
*/
|
||
;
|
||
|
||
_proto.toObject = function toObject(opts) {
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
if (!this.isValid) return {};
|
||
var base = Object.assign({}, this.c);
|
||
|
||
if (opts.includeConfig) {
|
||
base.outputCalendar = this.outputCalendar;
|
||
base.numberingSystem = this.loc.numberingSystem;
|
||
base.locale = this.loc.locale;
|
||
}
|
||
|
||
return base;
|
||
}
|
||
/**
|
||
* Returns a JavaScript Date equivalent to this DateTime.
|
||
* @return {Date}
|
||
*/
|
||
;
|
||
|
||
_proto.toJSDate = function toJSDate() {
|
||
return new Date(this.isValid ? this.ts : NaN);
|
||
} // COMPARE
|
||
|
||
/**
|
||
* Return the difference between two DateTimes as a Duration.
|
||
* @param {DateTime} otherDateTime - the DateTime to compare this one to
|
||
* @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.
|
||
* @param {Object} opts - options that affect the creation of the Duration
|
||
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
||
* @example
|
||
* var i1 = DateTime.fromISO('1982-05-25T09:45'),
|
||
* i2 = DateTime.fromISO('1983-10-14T10:30');
|
||
* i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }
|
||
* i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }
|
||
* i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }
|
||
* i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.diff = function diff(otherDateTime, unit, opts) {
|
||
if (unit === void 0) {
|
||
unit = "milliseconds";
|
||
}
|
||
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
if (!this.isValid || !otherDateTime.isValid) {
|
||
return Duration.invalid(this.invalid || otherDateTime.invalid, "created by diffing an invalid DateTime");
|
||
}
|
||
|
||
var durOpts = Object.assign({
|
||
locale: this.locale,
|
||
numberingSystem: this.numberingSystem
|
||
}, opts);
|
||
|
||
var units = maybeArray(unit).map(Duration.normalizeUnit),
|
||
otherIsLater = otherDateTime.valueOf() > this.valueOf(),
|
||
earlier = otherIsLater ? this : otherDateTime,
|
||
later = otherIsLater ? otherDateTime : this,
|
||
diffed = _diff(earlier, later, units, durOpts);
|
||
|
||
return otherIsLater ? diffed.negate() : diffed;
|
||
}
|
||
/**
|
||
* Return the difference between this DateTime and right now.
|
||
* See {@link diff}
|
||
* @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration
|
||
* @param {Object} opts - options that affect the creation of the Duration
|
||
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
||
* @return {Duration}
|
||
*/
|
||
;
|
||
|
||
_proto.diffNow = function diffNow(unit, opts) {
|
||
if (unit === void 0) {
|
||
unit = "milliseconds";
|
||
}
|
||
|
||
if (opts === void 0) {
|
||
opts = {};
|
||
}
|
||
|
||
return this.diff(DateTime.now(), unit, opts);
|
||
}
|
||
/**
|
||
* Return an Interval spanning between this DateTime and another DateTime
|
||
* @param {DateTime} otherDateTime - the other end point of the Interval
|
||
* @return {Interval}
|
||
*/
|
||
;
|
||
|
||
_proto.until = function until(otherDateTime) {
|
||
return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;
|
||
}
|
||
/**
|
||
* Return whether this DateTime is in the same unit of time as another DateTime.
|
||
* Higher-order units must also be identical for this function to return `true`.
|
||
* Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link setZone} to convert one of the dates if needed.
|
||
* @param {DateTime} otherDateTime - the other DateTime
|
||
* @param {string} unit - the unit of time to check sameness on
|
||
* @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.hasSame = function hasSame(otherDateTime, unit) {
|
||
if (!this.isValid) return false;
|
||
var inputMs = otherDateTime.valueOf();
|
||
var otherZoneDateTime = this.setZone(otherDateTime.zone, {
|
||
keepLocalTime: true
|
||
});
|
||
return otherZoneDateTime.startOf(unit) <= inputMs && inputMs <= otherZoneDateTime.endOf(unit);
|
||
}
|
||
/**
|
||
* Equality check
|
||
* Two DateTimes are equal iff they represent the same millisecond, have the same zone and location, and are both valid.
|
||
* To compare just the millisecond values, use `+dt1 === +dt2`.
|
||
* @param {DateTime} other - the other DateTime
|
||
* @return {boolean}
|
||
*/
|
||
;
|
||
|
||
_proto.equals = function equals(other) {
|
||
return this.isValid && other.isValid && this.valueOf() === other.valueOf() && this.zone.equals(other.zone) && this.loc.equals(other.loc);
|
||
}
|
||
/**
|
||
* Returns a string representation of a this time relative to now, such as "in two days". Can only internationalize if your
|
||
* platform supports Intl.RelativeTimeFormat. Rounds down by default.
|
||
* @param {Object} options - options that affect the output
|
||
* @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
|
||
* @param {string} [options.style="long"] - the style of units, must be "long", "short", or "narrow"
|
||
* @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of "years", "quarters", "months", "weeks", "days", "hours", "minutes", or "seconds"
|
||
* @param {boolean} [options.round=true] - whether to round the numbers in the output.
|
||
* @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.
|
||
* @param {string} options.locale - override the locale of this DateTime
|
||
* @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
|
||
* @example DateTime.now().plus({ days: 1 }).toRelative() //=> "in 1 day"
|
||
* @example DateTime.now().setLocale("es").toRelative({ days: 1 }) //=> "dentro de 1 día"
|
||
* @example DateTime.now().plus({ days: 1 }).toRelative({ locale: "fr" }) //=> "dans 23 heures"
|
||
* @example DateTime.now().minus({ days: 2 }).toRelative() //=> "2 days ago"
|
||
* @example DateTime.now().minus({ days: 2 }).toRelative({ unit: "hours" }) //=> "48 hours ago"
|
||
* @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago"
|
||
*/
|
||
;
|
||
|
||
_proto.toRelative = function toRelative(options) {
|
||
if (options === void 0) {
|
||
options = {};
|
||
}
|
||
|
||
if (!this.isValid) return null;
|
||
var base = options.base || DateTime.fromObject({
|
||
zone: this.zone
|
||
}),
|
||
padding = options.padding ? this < base ? -options.padding : options.padding : 0;
|
||
var units = ["years", "months", "days", "hours", "minutes", "seconds"];
|
||
var unit = options.unit;
|
||
|
||
if (Array.isArray(options.unit)) {
|
||
units = options.unit;
|
||
unit = undefined;
|
||
}
|
||
|
||
return diffRelative(base, this.plus(padding), Object.assign(options, {
|
||
numeric: "always",
|
||
units: units,
|
||
unit: unit
|
||
}));
|
||
}
|
||
/**
|
||
* Returns a string representation of this date relative to today, such as "yesterday" or "next month".
|
||
* Only internationalizes on platforms that supports Intl.RelativeTimeFormat.
|
||
* @param {Object} options - options that affect the output
|
||
* @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
|
||
* @param {string} options.locale - override the locale of this DateTime
|
||
* @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days"
|
||
* @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
|
||
* @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow"
|
||
* @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana"
|
||
* @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain"
|
||
* @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
|
||
*/
|
||
;
|
||
|
||
_proto.toRelativeCalendar = function toRelativeCalendar(options) {
|
||
if (options === void 0) {
|
||
options = {};
|
||
}
|
||
|
||
if (!this.isValid) return null;
|
||
return diffRelative(options.base || DateTime.fromObject({
|
||
zone: this.zone
|
||
}), this, Object.assign(options, {
|
||
numeric: "auto",
|
||
units: ["years", "months", "days"],
|
||
calendary: true
|
||
}));
|
||
}
|
||
/**
|
||
* Return the min of several date times
|
||
* @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum
|
||
* @return {DateTime} the min DateTime, or undefined if called with no argument
|
||
*/
|
||
;
|
||
|
||
DateTime.min = function min() {
|
||
for (var _len = arguments.length, dateTimes = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
dateTimes[_key] = arguments[_key];
|
||
}
|
||
|
||
if (!dateTimes.every(DateTime.isDateTime)) {
|
||
throw new InvalidArgumentError("min requires all arguments be DateTimes");
|
||
}
|
||
|
||
return bestBy(dateTimes, function (i) {
|
||
return i.valueOf();
|
||
}, Math.min);
|
||
}
|
||
/**
|
||
* Return the max of several date times
|
||
* @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum
|
||
* @return {DateTime} the max DateTime, or undefined if called with no argument
|
||
*/
|
||
;
|
||
|
||
DateTime.max = function max() {
|
||
for (var _len2 = arguments.length, dateTimes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||
dateTimes[_key2] = arguments[_key2];
|
||
}
|
||
|
||
if (!dateTimes.every(DateTime.isDateTime)) {
|
||
throw new InvalidArgumentError("max requires all arguments be DateTimes");
|
||
}
|
||
|
||
return bestBy(dateTimes, function (i) {
|
||
return i.valueOf();
|
||
}, Math.max);
|
||
} // MISC
|
||
|
||
/**
|
||
* Explain how a string would be parsed by fromFormat()
|
||
* @param {string} text - the string to parse
|
||
* @param {string} fmt - the format the string is expected to be in (see description)
|
||
* @param {Object} options - options taken by fromFormat()
|
||
* @return {Object}
|
||
*/
|
||
;
|
||
|
||
DateTime.fromFormatExplain = function fromFormatExplain(text, fmt, options) {
|
||
if (options === void 0) {
|
||
options = {};
|
||
}
|
||
|
||
var _options = options,
|
||
_options$locale = _options.locale,
|
||
locale = _options$locale === void 0 ? null : _options$locale,
|
||
_options$numberingSys = _options.numberingSystem,
|
||
numberingSystem = _options$numberingSys === void 0 ? null : _options$numberingSys,
|
||
localeToUse = Locale.fromOpts({
|
||
locale: locale,
|
||
numberingSystem: numberingSystem,
|
||
defaultToEN: true
|
||
});
|
||
return explainFromTokens(localeToUse, text, fmt);
|
||
}
|
||
/**
|
||
* @deprecated use fromFormatExplain instead
|
||
*/
|
||
;
|
||
|
||
DateTime.fromStringExplain = function fromStringExplain(text, fmt, options) {
|
||
if (options === void 0) {
|
||
options = {};
|
||
}
|
||
|
||
return DateTime.fromFormatExplain(text, fmt, options);
|
||
} // FORMAT PRESETS
|
||
|
||
/**
|
||
* {@link toLocaleString} format like 10/14/1983
|
||
* @type {Object}
|
||
*/
|
||
;
|
||
|
||
_createClass(DateTime, [{
|
||
key: "isValid",
|
||
get: function get() {
|
||
return this.invalid === null;
|
||
}
|
||
/**
|
||
* Returns an error code if this DateTime is invalid, or null if the DateTime is valid
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "invalidReason",
|
||
get: function get() {
|
||
return this.invalid ? this.invalid.reason : null;
|
||
}
|
||
/**
|
||
* Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "invalidExplanation",
|
||
get: function get() {
|
||
return this.invalid ? this.invalid.explanation : null;
|
||
}
|
||
/**
|
||
* Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime
|
||
*
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "locale",
|
||
get: function get() {
|
||
return this.isValid ? this.loc.locale : null;
|
||
}
|
||
/**
|
||
* Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime
|
||
*
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "numberingSystem",
|
||
get: function get() {
|
||
return this.isValid ? this.loc.numberingSystem : null;
|
||
}
|
||
/**
|
||
* Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime
|
||
*
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "outputCalendar",
|
||
get: function get() {
|
||
return this.isValid ? this.loc.outputCalendar : null;
|
||
}
|
||
/**
|
||
* Get the time zone associated with this DateTime.
|
||
* @type {Zone}
|
||
*/
|
||
|
||
}, {
|
||
key: "zone",
|
||
get: function get() {
|
||
return this._zone;
|
||
}
|
||
/**
|
||
* Get the name of the time zone.
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "zoneName",
|
||
get: function get() {
|
||
return this.isValid ? this.zone.name : null;
|
||
}
|
||
/**
|
||
* Get the year
|
||
* @example DateTime.local(2017, 5, 25).year //=> 2017
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "year",
|
||
get: function get() {
|
||
return this.isValid ? this.c.year : NaN;
|
||
}
|
||
/**
|
||
* Get the quarter
|
||
* @example DateTime.local(2017, 5, 25).quarter //=> 2
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "quarter",
|
||
get: function get() {
|
||
return this.isValid ? Math.ceil(this.c.month / 3) : NaN;
|
||
}
|
||
/**
|
||
* Get the month (1-12).
|
||
* @example DateTime.local(2017, 5, 25).month //=> 5
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "month",
|
||
get: function get() {
|
||
return this.isValid ? this.c.month : NaN;
|
||
}
|
||
/**
|
||
* Get the day of the month (1-30ish).
|
||
* @example DateTime.local(2017, 5, 25).day //=> 25
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "day",
|
||
get: function get() {
|
||
return this.isValid ? this.c.day : NaN;
|
||
}
|
||
/**
|
||
* Get the hour of the day (0-23).
|
||
* @example DateTime.local(2017, 5, 25, 9).hour //=> 9
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "hour",
|
||
get: function get() {
|
||
return this.isValid ? this.c.hour : NaN;
|
||
}
|
||
/**
|
||
* Get the minute of the hour (0-59).
|
||
* @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "minute",
|
||
get: function get() {
|
||
return this.isValid ? this.c.minute : NaN;
|
||
}
|
||
/**
|
||
* Get the second of the minute (0-59).
|
||
* @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "second",
|
||
get: function get() {
|
||
return this.isValid ? this.c.second : NaN;
|
||
}
|
||
/**
|
||
* Get the millisecond of the second (0-999).
|
||
* @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "millisecond",
|
||
get: function get() {
|
||
return this.isValid ? this.c.millisecond : NaN;
|
||
}
|
||
/**
|
||
* Get the week year
|
||
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
||
* @example DateTime.local(2014, 12, 31).weekYear //=> 2015
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "weekYear",
|
||
get: function get() {
|
||
return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;
|
||
}
|
||
/**
|
||
* Get the week number of the week year (1-52ish).
|
||
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
||
* @example DateTime.local(2017, 5, 25).weekNumber //=> 21
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "weekNumber",
|
||
get: function get() {
|
||
return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;
|
||
}
|
||
/**
|
||
* Get the day of the week.
|
||
* 1 is Monday and 7 is Sunday
|
||
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
||
* @example DateTime.local(2014, 11, 31).weekday //=> 4
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "weekday",
|
||
get: function get() {
|
||
return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;
|
||
}
|
||
/**
|
||
* Get the ordinal (meaning the day of the year)
|
||
* @example DateTime.local(2017, 5, 25).ordinal //=> 145
|
||
* @type {number|DateTime}
|
||
*/
|
||
|
||
}, {
|
||
key: "ordinal",
|
||
get: function get() {
|
||
return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;
|
||
}
|
||
/**
|
||
* Get the human readable short month name, such as 'Oct'.
|
||
* Defaults to the system's locale if no locale has been specified
|
||
* @example DateTime.local(2017, 10, 30).monthShort //=> Oct
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "monthShort",
|
||
get: function get() {
|
||
return this.isValid ? Info.months("short", {
|
||
locObj: this.loc
|
||
})[this.month - 1] : null;
|
||
}
|
||
/**
|
||
* Get the human readable long month name, such as 'October'.
|
||
* Defaults to the system's locale if no locale has been specified
|
||
* @example DateTime.local(2017, 10, 30).monthLong //=> October
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "monthLong",
|
||
get: function get() {
|
||
return this.isValid ? Info.months("long", {
|
||
locObj: this.loc
|
||
})[this.month - 1] : null;
|
||
}
|
||
/**
|
||
* Get the human readable short weekday, such as 'Mon'.
|
||
* Defaults to the system's locale if no locale has been specified
|
||
* @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "weekdayShort",
|
||
get: function get() {
|
||
return this.isValid ? Info.weekdays("short", {
|
||
locObj: this.loc
|
||
})[this.weekday - 1] : null;
|
||
}
|
||
/**
|
||
* Get the human readable long weekday, such as 'Monday'.
|
||
* Defaults to the system's locale if no locale has been specified
|
||
* @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "weekdayLong",
|
||
get: function get() {
|
||
return this.isValid ? Info.weekdays("long", {
|
||
locObj: this.loc
|
||
})[this.weekday - 1] : null;
|
||
}
|
||
/**
|
||
* Get the UTC offset of this DateTime in minutes
|
||
* @example DateTime.now().offset //=> -240
|
||
* @example DateTime.utc().offset //=> 0
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "offset",
|
||
get: function get() {
|
||
return this.isValid ? +this.o : NaN;
|
||
}
|
||
/**
|
||
* Get the short human name for the zone's current offset, for example "EST" or "EDT".
|
||
* Defaults to the system's locale if no locale has been specified
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "offsetNameShort",
|
||
get: function get() {
|
||
if (this.isValid) {
|
||
return this.zone.offsetName(this.ts, {
|
||
format: "short",
|
||
locale: this.locale
|
||
});
|
||
} else {
|
||
return null;
|
||
}
|
||
}
|
||
/**
|
||
* Get the long human name for the zone's current offset, for example "Eastern Standard Time" or "Eastern Daylight Time".
|
||
* Defaults to the system's locale if no locale has been specified
|
||
* @type {string}
|
||
*/
|
||
|
||
}, {
|
||
key: "offsetNameLong",
|
||
get: function get() {
|
||
if (this.isValid) {
|
||
return this.zone.offsetName(this.ts, {
|
||
format: "long",
|
||
locale: this.locale
|
||
});
|
||
} else {
|
||
return null;
|
||
}
|
||
}
|
||
/**
|
||
* Get whether this zone's offset ever changes, as in a DST.
|
||
* @type {boolean}
|
||
*/
|
||
|
||
}, {
|
||
key: "isOffsetFixed",
|
||
get: function get() {
|
||
return this.isValid ? this.zone.universal : null;
|
||
}
|
||
/**
|
||
* Get whether the DateTime is in a DST.
|
||
* @type {boolean}
|
||
*/
|
||
|
||
}, {
|
||
key: "isInDST",
|
||
get: function get() {
|
||
if (this.isOffsetFixed) {
|
||
return false;
|
||
} else {
|
||
return this.offset > this.set({
|
||
month: 1
|
||
}).offset || this.offset > this.set({
|
||
month: 5
|
||
}).offset;
|
||
}
|
||
}
|
||
/**
|
||
* Returns true if this DateTime is in a leap year, false otherwise
|
||
* @example DateTime.local(2016).isInLeapYear //=> true
|
||
* @example DateTime.local(2013).isInLeapYear //=> false
|
||
* @type {boolean}
|
||
*/
|
||
|
||
}, {
|
||
key: "isInLeapYear",
|
||
get: function get() {
|
||
return isLeapYear(this.year);
|
||
}
|
||
/**
|
||
* Returns the number of days in this DateTime's month
|
||
* @example DateTime.local(2016, 2).daysInMonth //=> 29
|
||
* @example DateTime.local(2016, 3).daysInMonth //=> 31
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "daysInMonth",
|
||
get: function get() {
|
||
return daysInMonth(this.year, this.month);
|
||
}
|
||
/**
|
||
* Returns the number of days in this DateTime's year
|
||
* @example DateTime.local(2016).daysInYear //=> 366
|
||
* @example DateTime.local(2013).daysInYear //=> 365
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "daysInYear",
|
||
get: function get() {
|
||
return this.isValid ? daysInYear(this.year) : NaN;
|
||
}
|
||
/**
|
||
* Returns the number of weeks in this DateTime's year
|
||
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
||
* @example DateTime.local(2004).weeksInWeekYear //=> 53
|
||
* @example DateTime.local(2013).weeksInWeekYear //=> 52
|
||
* @type {number}
|
||
*/
|
||
|
||
}, {
|
||
key: "weeksInWeekYear",
|
||
get: function get() {
|
||
return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;
|
||
}
|
||
}], [{
|
||
key: "DATE_SHORT",
|
||
get: function get() {
|
||
return DATE_SHORT;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'Oct 14, 1983'
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATE_MED",
|
||
get: function get() {
|
||
return DATE_MED;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'Fri, Oct 14, 1983'
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATE_MED_WITH_WEEKDAY",
|
||
get: function get() {
|
||
return DATE_MED_WITH_WEEKDAY;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'October 14, 1983'
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATE_FULL",
|
||
get: function get() {
|
||
return DATE_FULL;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'Tuesday, October 14, 1983'
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATE_HUGE",
|
||
get: function get() {
|
||
return DATE_HUGE;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "TIME_SIMPLE",
|
||
get: function get() {
|
||
return TIME_SIMPLE;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "TIME_WITH_SECONDS",
|
||
get: function get() {
|
||
return TIME_WITH_SECONDS;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "TIME_WITH_SHORT_OFFSET",
|
||
get: function get() {
|
||
return TIME_WITH_SHORT_OFFSET;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "TIME_WITH_LONG_OFFSET",
|
||
get: function get() {
|
||
return TIME_WITH_LONG_OFFSET;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '09:30', always 24-hour.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "TIME_24_SIMPLE",
|
||
get: function get() {
|
||
return TIME_24_SIMPLE;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '09:30:23', always 24-hour.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "TIME_24_WITH_SECONDS",
|
||
get: function get() {
|
||
return TIME_24_WITH_SECONDS;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "TIME_24_WITH_SHORT_OFFSET",
|
||
get: function get() {
|
||
return TIME_24_WITH_SHORT_OFFSET;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "TIME_24_WITH_LONG_OFFSET",
|
||
get: function get() {
|
||
return TIME_24_WITH_LONG_OFFSET;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_SHORT",
|
||
get: function get() {
|
||
return DATETIME_SHORT;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_SHORT_WITH_SECONDS",
|
||
get: function get() {
|
||
return DATETIME_SHORT_WITH_SECONDS;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_MED",
|
||
get: function get() {
|
||
return DATETIME_MED;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_MED_WITH_SECONDS",
|
||
get: function get() {
|
||
return DATETIME_MED_WITH_SECONDS;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_MED_WITH_WEEKDAY",
|
||
get: function get() {
|
||
return DATETIME_MED_WITH_WEEKDAY;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_FULL",
|
||
get: function get() {
|
||
return DATETIME_FULL;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_FULL_WITH_SECONDS",
|
||
get: function get() {
|
||
return DATETIME_FULL_WITH_SECONDS;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_HUGE",
|
||
get: function get() {
|
||
return DATETIME_HUGE;
|
||
}
|
||
/**
|
||
* {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
||
* @type {Object}
|
||
*/
|
||
|
||
}, {
|
||
key: "DATETIME_HUGE_WITH_SECONDS",
|
||
get: function get() {
|
||
return DATETIME_HUGE_WITH_SECONDS;
|
||
}
|
||
}]);
|
||
|
||
return DateTime;
|
||
}();
|
||
function friendlyDateTime(dateTimeish) {
|
||
if (DateTime.isDateTime(dateTimeish)) {
|
||
return dateTimeish;
|
||
} else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {
|
||
return DateTime.fromJSDate(dateTimeish);
|
||
} else if (dateTimeish && typeof dateTimeish === "object") {
|
||
return DateTime.fromObject(dateTimeish);
|
||
} else {
|
||
throw new InvalidArgumentError("Unknown datetime argument: " + dateTimeish + ", of type " + typeof dateTimeish);
|
||
}
|
||
}
|
||
|
||
var VERSION = "1.28.0";
|
||
|
||
exports.DateTime = DateTime;
|
||
exports.Duration = Duration;
|
||
exports.FixedOffsetZone = FixedOffsetZone;
|
||
exports.IANAZone = IANAZone;
|
||
exports.Info = Info;
|
||
exports.Interval = Interval;
|
||
exports.InvalidZone = InvalidZone;
|
||
exports.LocalZone = LocalZone;
|
||
exports.Settings = Settings;
|
||
exports.VERSION = VERSION;
|
||
exports.Zone = Zone;
|
||
//# sourceMappingURL=luxon.js.map
|
||
});
|
||
|
||
var DateWithZone = /** @class */ (function () {
|
||
function DateWithZone(date, tzid) {
|
||
this.date = date;
|
||
this.tzid = tzid;
|
||
}
|
||
Object.defineProperty(DateWithZone.prototype, "isUTC", {
|
||
get: function () {
|
||
return !this.tzid || this.tzid.toUpperCase() === 'UTC';
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
DateWithZone.prototype.toString = function () {
|
||
var datestr = dateutil$1.timeToUntilString(this.date.getTime(), this.isUTC);
|
||
if (!this.isUTC) {
|
||
return ";TZID=" + this.tzid + ":" + datestr;
|
||
}
|
||
return ":" + datestr;
|
||
};
|
||
DateWithZone.prototype.getTime = function () {
|
||
return this.date.getTime();
|
||
};
|
||
DateWithZone.prototype.rezonedDate = function () {
|
||
if (this.isUTC) {
|
||
return this.date;
|
||
}
|
||
try {
|
||
var datetime = luxon.DateTime
|
||
.fromJSDate(this.date);
|
||
var rezoned = datetime.setZone(this.tzid, { keepLocalTime: true });
|
||
return rezoned.toJSDate();
|
||
}
|
||
catch (e) {
|
||
if (e instanceof TypeError) {
|
||
console.error('Using TZID without Luxon available is unsupported. Returned times are in UTC, not the requested time zone');
|
||
}
|
||
return this.date;
|
||
}
|
||
};
|
||
return DateWithZone;
|
||
}());
|
||
|
||
function optionsToString(options) {
|
||
var rrule = [];
|
||
var dtstart = '';
|
||
var keys = Object.keys(options);
|
||
var defaultKeys = Object.keys(DEFAULT_OPTIONS$1);
|
||
for (var i = 0; i < keys.length; i++) {
|
||
if (keys[i] === 'tzid')
|
||
continue;
|
||
if (!includes(defaultKeys, keys[i]))
|
||
continue;
|
||
var key = keys[i].toUpperCase();
|
||
var value = options[keys[i]];
|
||
var outValue = '';
|
||
if (!isPresent(value) || (isArray(value) && !value.length))
|
||
continue;
|
||
switch (key) {
|
||
case 'FREQ':
|
||
outValue = RRule.FREQUENCIES[options.freq];
|
||
break;
|
||
case 'WKST':
|
||
if (isNumber(value)) {
|
||
outValue = new Weekday(value).toString();
|
||
}
|
||
else {
|
||
outValue = value.toString();
|
||
}
|
||
break;
|
||
case 'BYWEEKDAY':
|
||
/*
|
||
NOTE: BYWEEKDAY is a special case.
|
||
RRule() deconstructs the rule.options.byweekday array
|
||
into an array of Weekday arguments.
|
||
On the other hand, rule.origOptions is an array of Weekdays.
|
||
We need to handle both cases here.
|
||
It might be worth change RRule to keep the Weekdays.
|
||
|
||
Also, BYWEEKDAY (used by RRule) vs. BYDAY (RFC)
|
||
|
||
*/
|
||
key = 'BYDAY';
|
||
outValue = toArray(value).map(function (wday) {
|
||
if (wday instanceof Weekday) {
|
||
return wday;
|
||
}
|
||
if (isArray(wday)) {
|
||
return new Weekday(wday[0], wday[1]);
|
||
}
|
||
return new Weekday(wday);
|
||
}).toString();
|
||
break;
|
||
case 'DTSTART':
|
||
dtstart = buildDtstart(value, options.tzid);
|
||
break;
|
||
case 'UNTIL':
|
||
outValue = dateutil$1.timeToUntilString(value, !options.tzid);
|
||
break;
|
||
default:
|
||
if (isArray(value)) {
|
||
var strValues = [];
|
||
for (var j = 0; j < value.length; j++) {
|
||
strValues[j] = String(value[j]);
|
||
}
|
||
outValue = strValues.toString();
|
||
}
|
||
else {
|
||
outValue = String(value);
|
||
}
|
||
}
|
||
if (outValue) {
|
||
rrule.push([key, outValue]);
|
||
}
|
||
}
|
||
var rules = rrule.map(function (_a) {
|
||
var key = _a[0], value = _a[1];
|
||
return key + "=" + value.toString();
|
||
}).join(';');
|
||
var ruleString = '';
|
||
if (rules !== '') {
|
||
ruleString = "RRULE:" + rules;
|
||
}
|
||
return [dtstart, ruleString].filter(function (x) { return !!x; }).join('\n');
|
||
}
|
||
function buildDtstart(dtstart, tzid) {
|
||
if (!dtstart) {
|
||
return '';
|
||
}
|
||
return 'DTSTART' + new DateWithZone(new Date(dtstart), tzid).toString();
|
||
}
|
||
|
||
var Cache$1 = /** @class */ (function () {
|
||
function Cache() {
|
||
this.all = false;
|
||
this.before = [];
|
||
this.after = [];
|
||
this.between = [];
|
||
}
|
||
/**
|
||
* @param {String} what - all/before/after/between
|
||
* @param {Array,Date} value - an array of dates, one date, or null
|
||
* @param {Object?} args - _iter arguments
|
||
*/
|
||
Cache.prototype._cacheAdd = function (what, value, args) {
|
||
if (value) {
|
||
value =
|
||
value instanceof Date
|
||
? dateutil$1.clone(value)
|
||
: dateutil$1.cloneDates(value);
|
||
}
|
||
if (what === 'all') {
|
||
this.all = value;
|
||
}
|
||
else {
|
||
args._value = value;
|
||
this[what].push(args);
|
||
}
|
||
};
|
||
/**
|
||
* @return false - not in the cache
|
||
* null - cached, but zero occurrences (before/after)
|
||
* Date - cached (before/after)
|
||
* [] - cached, but zero occurrences (all/between)
|
||
* [Date1, DateN] - cached (all/between)
|
||
*/
|
||
Cache.prototype._cacheGet = function (what, args) {
|
||
var cached = false;
|
||
var argsKeys = args ? Object.keys(args) : [];
|
||
var findCacheDiff = function (item) {
|
||
for (var i = 0; i < argsKeys.length; i++) {
|
||
var key = argsKeys[i];
|
||
if (String(args[key]) !== String(item[key])) {
|
||
return true;
|
||
}
|
||
}
|
||
return false;
|
||
};
|
||
var cachedObject = this[what];
|
||
if (what === 'all') {
|
||
cached = this.all;
|
||
}
|
||
else if (isArray(cachedObject)) {
|
||
// Let's see whether we've already called the
|
||
// 'what' method with the same 'args'
|
||
for (var i = 0; i < cachedObject.length; i++) {
|
||
var item = cachedObject[i];
|
||
if (argsKeys.length && findCacheDiff(item))
|
||
continue;
|
||
cached = item._value;
|
||
break;
|
||
}
|
||
}
|
||
if (!cached && this.all) {
|
||
// Not in the cache, but we already know all the occurrences,
|
||
// so we can find the correct dates from the cached ones.
|
||
var iterResult = new IterResult(what, args);
|
||
for (var i = 0; i < this.all.length; i++) {
|
||
if (!iterResult.accept(this.all[i]))
|
||
break;
|
||
}
|
||
cached = iterResult.getValue();
|
||
this._cacheAdd(what, cached, args);
|
||
}
|
||
return isArray(cached)
|
||
? dateutil$1.cloneDates(cached)
|
||
: cached instanceof Date
|
||
? dateutil$1.clone(cached)
|
||
: cached;
|
||
};
|
||
return Cache;
|
||
}());
|
||
|
||
// =============================================================================
|
||
// Date masks
|
||
// =============================================================================
|
||
// Every mask is 7 days longer to handle cross-year weekly periods.
|
||
var M365MASK = __spreadArrays(repeat(1, 31), repeat(2, 28), repeat(3, 31), repeat(4, 30), repeat(5, 31), repeat(6, 30), repeat(7, 31), repeat(8, 31), repeat(9, 30), repeat(10, 31), repeat(11, 30), repeat(12, 31), repeat(1, 7));
|
||
var M366MASK = __spreadArrays(repeat(1, 31), repeat(2, 29), repeat(3, 31), repeat(4, 30), repeat(5, 31), repeat(6, 30), repeat(7, 31), repeat(8, 31), repeat(9, 30), repeat(10, 31), repeat(11, 30), repeat(12, 31), repeat(1, 7));
|
||
var M28 = range(1, 29);
|
||
var M29 = range(1, 30);
|
||
var M30 = range(1, 31);
|
||
var M31 = range(1, 32);
|
||
var MDAY366MASK = __spreadArrays(M31, M29, M31, M30, M31, M30, M31, M31, M30, M31, M30, M31, M31.slice(0, 7));
|
||
var MDAY365MASK = __spreadArrays(M31, M28, M31, M30, M31, M30, M31, M31, M30, M31, M30, M31, M31.slice(0, 7));
|
||
var NM28 = range(-28, 0);
|
||
var NM29 = range(-29, 0);
|
||
var NM30 = range(-30, 0);
|
||
var NM31 = range(-31, 0);
|
||
var NMDAY366MASK = __spreadArrays(NM31, NM29, NM31, NM30, NM31, NM30, NM31, NM31, NM30, NM31, NM30, NM31, NM31.slice(0, 7));
|
||
var NMDAY365MASK = __spreadArrays(NM31, NM28, NM31, NM30, NM31, NM30, NM31, NM31, NM30, NM31, NM30, NM31, NM31.slice(0, 7));
|
||
var M366RANGE = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
|
||
var M365RANGE = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
|
||
var WDAYMASK = (function () {
|
||
var wdaymask = [];
|
||
for (var i = 0; i < 55; i++)
|
||
wdaymask = wdaymask.concat(range(7));
|
||
return wdaymask;
|
||
})();
|
||
|
||
function rebuildYear(year, options) {
|
||
var firstyday = new Date(Date.UTC(year, 0, 1));
|
||
var yearlen = dateutil$1.isLeapYear(year) ? 366 : 365;
|
||
var nextyearlen = dateutil$1.isLeapYear(year + 1) ? 366 : 365;
|
||
var yearordinal = dateutil$1.toOrdinal(firstyday);
|
||
var yearweekday = dateutil$1.getWeekday(firstyday);
|
||
var result = __assign(__assign({ yearlen: yearlen,
|
||
nextyearlen: nextyearlen,
|
||
yearordinal: yearordinal,
|
||
yearweekday: yearweekday }, baseYearMasks(year)), { wnomask: null });
|
||
if (empty(options.byweekno)) {
|
||
return result;
|
||
}
|
||
result.wnomask = repeat(0, yearlen + 7);
|
||
var firstwkst;
|
||
var wyearlen;
|
||
var no1wkst = firstwkst = pymod(7 - yearweekday + options.wkst, 7);
|
||
if (no1wkst >= 4) {
|
||
no1wkst = 0;
|
||
// Number of days in the year, plus the days we got
|
||
// from last year.
|
||
wyearlen =
|
||
result.yearlen + pymod(yearweekday - options.wkst, 7);
|
||
}
|
||
else {
|
||
// Number of days in the year, minus the days we
|
||
// left in last year.
|
||
wyearlen = yearlen - no1wkst;
|
||
}
|
||
var div = Math.floor(wyearlen / 7);
|
||
var mod = pymod(wyearlen, 7);
|
||
var numweeks = Math.floor(div + mod / 4);
|
||
for (var j = 0; j < options.byweekno.length; j++) {
|
||
var n = options.byweekno[j];
|
||
if (n < 0) {
|
||
n += numweeks + 1;
|
||
}
|
||
if (!(n > 0 && n <= numweeks)) {
|
||
continue;
|
||
}
|
||
var i = void 0;
|
||
if (n > 1) {
|
||
i = no1wkst + (n - 1) * 7;
|
||
if (no1wkst !== firstwkst) {
|
||
i -= 7 - firstwkst;
|
||
}
|
||
}
|
||
else {
|
||
i = no1wkst;
|
||
}
|
||
for (var k = 0; k < 7; k++) {
|
||
result.wnomask[i] = 1;
|
||
i++;
|
||
if (result.wdaymask[i] === options.wkst)
|
||
break;
|
||
}
|
||
}
|
||
if (includes(options.byweekno, 1)) {
|
||
// Check week number 1 of next year as well
|
||
// orig-TODO : Check -numweeks for next year.
|
||
var i = no1wkst + numweeks * 7;
|
||
if (no1wkst !== firstwkst)
|
||
i -= 7 - firstwkst;
|
||
if (i < yearlen) {
|
||
// If week starts in next year, we
|
||
// don't care about it.
|
||
for (var j = 0; j < 7; j++) {
|
||
result.wnomask[i] = 1;
|
||
i += 1;
|
||
if (result.wdaymask[i] === options.wkst)
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
if (no1wkst) {
|
||
// Check last week number of last year as
|
||
// well. If no1wkst is 0, either the year
|
||
// started on week start, or week number 1
|
||
// got days from last year, so there are no
|
||
// days from last year's last week number in
|
||
// this year.
|
||
var lnumweeks = void 0;
|
||
if (!includes(options.byweekno, -1)) {
|
||
var lyearweekday = dateutil$1.getWeekday(new Date(Date.UTC(year - 1, 0, 1)));
|
||
var lno1wkst = pymod(7 - lyearweekday.valueOf() + options.wkst, 7);
|
||
var lyearlen = dateutil$1.isLeapYear(year - 1) ? 366 : 365;
|
||
var weekst = void 0;
|
||
if (lno1wkst >= 4) {
|
||
lno1wkst = 0;
|
||
weekst = lyearlen + pymod(lyearweekday - options.wkst, 7);
|
||
}
|
||
else {
|
||
weekst = yearlen - no1wkst;
|
||
}
|
||
lnumweeks = Math.floor(52 + pymod(weekst, 7) / 4);
|
||
}
|
||
else {
|
||
lnumweeks = -1;
|
||
}
|
||
if (includes(options.byweekno, lnumweeks)) {
|
||
for (var i = 0; i < no1wkst; i++)
|
||
result.wnomask[i] = 1;
|
||
}
|
||
}
|
||
return result;
|
||
}
|
||
function baseYearMasks(year) {
|
||
var yearlen = dateutil$1.isLeapYear(year) ? 366 : 365;
|
||
var firstyday = new Date(Date.UTC(year, 0, 1));
|
||
var wday = dateutil$1.getWeekday(firstyday);
|
||
if (yearlen === 365) {
|
||
return {
|
||
mmask: M365MASK,
|
||
mdaymask: MDAY365MASK,
|
||
nmdaymask: NMDAY365MASK,
|
||
wdaymask: WDAYMASK.slice(wday),
|
||
mrange: M365RANGE
|
||
};
|
||
}
|
||
return {
|
||
mmask: M366MASK,
|
||
mdaymask: MDAY366MASK,
|
||
nmdaymask: NMDAY366MASK,
|
||
wdaymask: WDAYMASK.slice(wday),
|
||
mrange: M366RANGE
|
||
};
|
||
}
|
||
|
||
function rebuildMonth(year, month, yearlen, mrange, wdaymask, options) {
|
||
var result = {
|
||
lastyear: year,
|
||
lastmonth: month,
|
||
nwdaymask: []
|
||
};
|
||
var ranges = [];
|
||
if (options.freq === RRule.YEARLY) {
|
||
if (empty(options.bymonth)) {
|
||
ranges = [[0, yearlen]];
|
||
}
|
||
else {
|
||
for (var j = 0; j < options.bymonth.length; j++) {
|
||
month = options.bymonth[j];
|
||
ranges.push(mrange.slice(month - 1, month + 1));
|
||
}
|
||
}
|
||
}
|
||
else if (options.freq === RRule.MONTHLY) {
|
||
ranges = [mrange.slice(month - 1, month + 1)];
|
||
}
|
||
if (empty(ranges)) {
|
||
return result;
|
||
}
|
||
// Weekly frequency won't get here, so we may not
|
||
// care about cross-year weekly periods.
|
||
result.nwdaymask = repeat(0, yearlen);
|
||
for (var j = 0; j < ranges.length; j++) {
|
||
var rang = ranges[j];
|
||
var first = rang[0];
|
||
var last = rang[1] - 1;
|
||
for (var k = 0; k < options.bynweekday.length; k++) {
|
||
var i = void 0;
|
||
var _a = options.bynweekday[k], wday = _a[0], n = _a[1];
|
||
if (n < 0) {
|
||
i = last + (n + 1) * 7;
|
||
i -= pymod(wdaymask[i] - wday, 7);
|
||
}
|
||
else {
|
||
i = first + (n - 1) * 7;
|
||
i += pymod(7 - wdaymask[i] + wday, 7);
|
||
}
|
||
if (first <= i && i <= last)
|
||
result.nwdaymask[i] = 1;
|
||
}
|
||
}
|
||
return result;
|
||
}
|
||
|
||
function easter(y, offset) {
|
||
if (offset === void 0) { offset = 0; }
|
||
var a = y % 19;
|
||
var b = Math.floor(y / 100);
|
||
var c = y % 100;
|
||
var d = Math.floor(b / 4);
|
||
var e = b % 4;
|
||
var f = Math.floor((b + 8) / 25);
|
||
var g = Math.floor((b - f + 1) / 3);
|
||
var h = Math.floor(19 * a + b - d - g + 15) % 30;
|
||
var i = Math.floor(c / 4);
|
||
var k = c % 4;
|
||
var l = Math.floor(32 + 2 * e + 2 * i - h - k) % 7;
|
||
var m = Math.floor((a + 11 * h + 22 * l) / 451);
|
||
var month = Math.floor((h + l - 7 * m + 114) / 31);
|
||
var day = ((h + l - 7 * m + 114) % 31) + 1;
|
||
var date = Date.UTC(y, month - 1, day + offset);
|
||
var yearStart = Date.UTC(y, 0, 1);
|
||
return [Math.ceil((date - yearStart) / (1000 * 60 * 60 * 24))];
|
||
}
|
||
|
||
// =============================================================================
|
||
// Iterinfo
|
||
// =============================================================================
|
||
var Iterinfo = /** @class */ (function () {
|
||
function Iterinfo(options) {
|
||
this.options = options;
|
||
}
|
||
Iterinfo.prototype.rebuild = function (year, month) {
|
||
var options = this.options;
|
||
if (year !== this.lastyear) {
|
||
this.yearinfo = rebuildYear(year, options);
|
||
}
|
||
if (notEmpty(options.bynweekday) &&
|
||
(month !== this.lastmonth || year !== this.lastyear)) {
|
||
var _a = this.yearinfo, yearlen = _a.yearlen, mrange = _a.mrange, wdaymask = _a.wdaymask;
|
||
this.monthinfo = rebuildMonth(year, month, yearlen, mrange, wdaymask, options);
|
||
}
|
||
if (isPresent(options.byeaster)) {
|
||
this.eastermask = easter(year, options.byeaster);
|
||
}
|
||
};
|
||
Object.defineProperty(Iterinfo.prototype, "lastyear", {
|
||
get: function () {
|
||
return this.monthinfo ? this.monthinfo.lastyear : null;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "lastmonth", {
|
||
get: function () {
|
||
return this.monthinfo ? this.monthinfo.lastmonth : null;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "yearlen", {
|
||
get: function () {
|
||
return this.yearinfo.yearlen;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "yearordinal", {
|
||
get: function () {
|
||
return this.yearinfo.yearordinal;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "mrange", {
|
||
get: function () {
|
||
return this.yearinfo.mrange;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "wdaymask", {
|
||
get: function () {
|
||
return this.yearinfo.wdaymask;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "mmask", {
|
||
get: function () {
|
||
return this.yearinfo.mmask;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "wnomask", {
|
||
get: function () {
|
||
return this.yearinfo.wnomask;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "nwdaymask", {
|
||
get: function () {
|
||
return this.monthinfo ? this.monthinfo.nwdaymask : [];
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "nextyearlen", {
|
||
get: function () {
|
||
return this.yearinfo.nextyearlen;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "mdaymask", {
|
||
get: function () {
|
||
return this.yearinfo.mdaymask;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(Iterinfo.prototype, "nmdaymask", {
|
||
get: function () {
|
||
return this.yearinfo.nmdaymask;
|
||
},
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
Iterinfo.prototype.ydayset = function () {
|
||
return [range(this.yearlen), 0, this.yearlen];
|
||
};
|
||
Iterinfo.prototype.mdayset = function (_, month, __) {
|
||
var start = this.mrange[month - 1];
|
||
var end = this.mrange[month];
|
||
var set = repeat(null, this.yearlen);
|
||
for (var i = start; i < end; i++)
|
||
set[i] = i;
|
||
return [set, start, end];
|
||
};
|
||
Iterinfo.prototype.wdayset = function (year, month, day) {
|
||
// We need to handle cross-year weeks here.
|
||
var set = repeat(null, this.yearlen + 7);
|
||
var i = dateutil$1.toOrdinal(new Date(Date.UTC(year, month - 1, day))) -
|
||
this.yearordinal;
|
||
var start = i;
|
||
for (var j = 0; j < 7; j++) {
|
||
set[i] = i;
|
||
++i;
|
||
if (this.wdaymask[i] === this.options.wkst)
|
||
break;
|
||
}
|
||
return [set, start, i];
|
||
};
|
||
Iterinfo.prototype.ddayset = function (year, month, day) {
|
||
var set = repeat(null, this.yearlen);
|
||
var i = dateutil$1.toOrdinal(new Date(Date.UTC(year, month - 1, day))) -
|
||
this.yearordinal;
|
||
set[i] = i;
|
||
return [set, i, i + 1];
|
||
};
|
||
Iterinfo.prototype.htimeset = function (hour, _, second, millisecond) {
|
||
var _this = this;
|
||
var set = [];
|
||
this.options.byminute.forEach(function (minute) {
|
||
set = set.concat(_this.mtimeset(hour, minute, second, millisecond));
|
||
});
|
||
dateutil$1.sort(set);
|
||
return set;
|
||
};
|
||
Iterinfo.prototype.mtimeset = function (hour, minute, _, millisecond) {
|
||
var set = this.options.bysecond.map(function (second) {
|
||
return new Time(hour, minute, second, millisecond);
|
||
});
|
||
dateutil$1.sort(set);
|
||
return set;
|
||
};
|
||
Iterinfo.prototype.stimeset = function (hour, minute, second, millisecond) {
|
||
return [new Time(hour, minute, second, millisecond)];
|
||
};
|
||
Iterinfo.prototype.getdayset = function (freq) {
|
||
switch (freq) {
|
||
case Frequency.YEARLY: return this.ydayset.bind(this);
|
||
case Frequency.MONTHLY: return this.mdayset.bind(this);
|
||
case Frequency.WEEKLY: return this.wdayset.bind(this);
|
||
case Frequency.DAILY: return this.ddayset.bind(this);
|
||
default: return this.ddayset.bind(this);
|
||
}
|
||
};
|
||
Iterinfo.prototype.gettimeset = function (freq) {
|
||
switch (freq) {
|
||
case Frequency.HOURLY: return this.htimeset.bind(this);
|
||
case Frequency.MINUTELY: return this.mtimeset.bind(this);
|
||
case Frequency.SECONDLY: return this.stimeset.bind(this);
|
||
}
|
||
};
|
||
return Iterinfo;
|
||
}());
|
||
|
||
function buildPoslist(bysetpos, timeset, start, end, ii, dayset) {
|
||
var poslist = [];
|
||
for (var j = 0; j < bysetpos.length; j++) {
|
||
var daypos = void 0;
|
||
var timepos = void 0;
|
||
var pos = bysetpos[j];
|
||
if (pos < 0) {
|
||
daypos = Math.floor(pos / timeset.length);
|
||
timepos = pymod(pos, timeset.length);
|
||
}
|
||
else {
|
||
daypos = Math.floor((pos - 1) / timeset.length);
|
||
timepos = pymod(pos - 1, timeset.length);
|
||
}
|
||
var tmp = [];
|
||
for (var k = start; k < end; k++) {
|
||
var val = dayset[k];
|
||
if (!isPresent(val))
|
||
continue;
|
||
tmp.push(val);
|
||
}
|
||
var i = void 0;
|
||
if (daypos < 0) {
|
||
i = tmp.slice(daypos)[0];
|
||
}
|
||
else {
|
||
i = tmp[daypos];
|
||
}
|
||
var time = timeset[timepos];
|
||
var date = dateutil$1.fromOrdinal(ii.yearordinal + i);
|
||
var res = dateutil$1.combine(date, time);
|
||
// XXX: can this ever be in the array?
|
||
// - compare the actual date instead?
|
||
if (!includes(poslist, res))
|
||
poslist.push(res);
|
||
}
|
||
dateutil$1.sort(poslist);
|
||
return poslist;
|
||
}
|
||
|
||
function iter(iterResult, options) {
|
||
var dtstart = options.dtstart, freq = options.freq, interval = options.interval, until = options.until, bysetpos = options.bysetpos;
|
||
var count = options.count;
|
||
if (count === 0 || interval === 0) {
|
||
return emitResult(iterResult);
|
||
}
|
||
var counterDate = DateTime.fromDate(dtstart);
|
||
var ii = new Iterinfo(options);
|
||
ii.rebuild(counterDate.year, counterDate.month);
|
||
var timeset = makeTimeset(ii, counterDate, options);
|
||
while (true) {
|
||
var _a = ii.getdayset(freq)(counterDate.year, counterDate.month, counterDate.day), dayset = _a[0], start = _a[1], end = _a[2];
|
||
var filtered = removeFilteredDays(dayset, start, end, ii, options);
|
||
if (notEmpty(bysetpos)) {
|
||
var poslist = buildPoslist(bysetpos, timeset, start, end, ii, dayset);
|
||
for (var j = 0; j < poslist.length; j++) {
|
||
var res = poslist[j];
|
||
if (until && res > until) {
|
||
return emitResult(iterResult);
|
||
}
|
||
if (res >= dtstart) {
|
||
var rezonedDate = rezoneIfNeeded(res, options);
|
||
if (!iterResult.accept(rezonedDate)) {
|
||
return emitResult(iterResult);
|
||
}
|
||
if (count) {
|
||
--count;
|
||
if (!count) {
|
||
return emitResult(iterResult);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
else {
|
||
for (var j = start; j < end; j++) {
|
||
var currentDay = dayset[j];
|
||
if (!isPresent(currentDay)) {
|
||
continue;
|
||
}
|
||
var date = dateutil$1.fromOrdinal(ii.yearordinal + currentDay);
|
||
for (var k = 0; k < timeset.length; k++) {
|
||
var time = timeset[k];
|
||
var res = dateutil$1.combine(date, time);
|
||
if (until && res > until) {
|
||
return emitResult(iterResult);
|
||
}
|
||
if (res >= dtstart) {
|
||
var rezonedDate = rezoneIfNeeded(res, options);
|
||
if (!iterResult.accept(rezonedDate)) {
|
||
return emitResult(iterResult);
|
||
}
|
||
if (count) {
|
||
--count;
|
||
if (!count) {
|
||
return emitResult(iterResult);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if (options.interval === 0) {
|
||
return emitResult(iterResult);
|
||
}
|
||
// Handle frequency and interval
|
||
counterDate.add(options, filtered);
|
||
if (counterDate.year > dateutil$1.MAXYEAR) {
|
||
return emitResult(iterResult);
|
||
}
|
||
if (!freqIsDailyOrGreater(freq)) {
|
||
timeset = ii.gettimeset(freq)(counterDate.hour, counterDate.minute, counterDate.second, 0);
|
||
}
|
||
ii.rebuild(counterDate.year, counterDate.month);
|
||
}
|
||
}
|
||
function isFiltered(ii, currentDay, options) {
|
||
var bymonth = options.bymonth, byweekno = options.byweekno, byweekday = options.byweekday, byeaster = options.byeaster, bymonthday = options.bymonthday, bynmonthday = options.bynmonthday, byyearday = options.byyearday;
|
||
return ((notEmpty(bymonth) && !includes(bymonth, ii.mmask[currentDay])) ||
|
||
(notEmpty(byweekno) && !ii.wnomask[currentDay]) ||
|
||
(notEmpty(byweekday) && !includes(byweekday, ii.wdaymask[currentDay])) ||
|
||
(notEmpty(ii.nwdaymask) && !ii.nwdaymask[currentDay]) ||
|
||
(byeaster !== null && !includes(ii.eastermask, currentDay)) ||
|
||
((notEmpty(bymonthday) || notEmpty(bynmonthday)) &&
|
||
!includes(bymonthday, ii.mdaymask[currentDay]) &&
|
||
!includes(bynmonthday, ii.nmdaymask[currentDay])) ||
|
||
(notEmpty(byyearday) &&
|
||
((currentDay < ii.yearlen &&
|
||
!includes(byyearday, currentDay + 1) &&
|
||
!includes(byyearday, -ii.yearlen + currentDay)) ||
|
||
(currentDay >= ii.yearlen &&
|
||
!includes(byyearday, currentDay + 1 - ii.yearlen) &&
|
||
!includes(byyearday, -ii.nextyearlen + currentDay - ii.yearlen)))));
|
||
}
|
||
function rezoneIfNeeded(date, options) {
|
||
return new DateWithZone(date, options.tzid).rezonedDate();
|
||
}
|
||
function emitResult(iterResult) {
|
||
return iterResult.getValue();
|
||
}
|
||
function removeFilteredDays(dayset, start, end, ii, options) {
|
||
var filtered = false;
|
||
for (var dayCounter = start; dayCounter < end; dayCounter++) {
|
||
var currentDay = dayset[dayCounter];
|
||
filtered = isFiltered(ii, currentDay, options);
|
||
if (filtered)
|
||
dayset[currentDay] = null;
|
||
}
|
||
return filtered;
|
||
}
|
||
function makeTimeset(ii, counterDate, options) {
|
||
var freq = options.freq, byhour = options.byhour, byminute = options.byminute, bysecond = options.bysecond;
|
||
if (freqIsDailyOrGreater(freq)) {
|
||
return buildTimeset(options);
|
||
}
|
||
if ((freq >= RRule.HOURLY &&
|
||
notEmpty(byhour) &&
|
||
!includes(byhour, counterDate.hour)) ||
|
||
(freq >= RRule.MINUTELY &&
|
||
notEmpty(byminute) &&
|
||
!includes(byminute, counterDate.minute)) ||
|
||
(freq >= RRule.SECONDLY &&
|
||
notEmpty(bysecond) &&
|
||
!includes(bysecond, counterDate.second))) {
|
||
return [];
|
||
}
|
||
return ii.gettimeset(freq)(counterDate.hour, counterDate.minute, counterDate.second, counterDate.millisecond);
|
||
}
|
||
|
||
// =============================================================================
|
||
// RRule
|
||
// =============================================================================
|
||
var Days = {
|
||
MO: new Weekday(0),
|
||
TU: new Weekday(1),
|
||
WE: new Weekday(2),
|
||
TH: new Weekday(3),
|
||
FR: new Weekday(4),
|
||
SA: new Weekday(5),
|
||
SU: new Weekday(6)
|
||
};
|
||
var DEFAULT_OPTIONS$1 = {
|
||
freq: Frequency.YEARLY,
|
||
dtstart: null,
|
||
interval: 1,
|
||
wkst: Days.MO,
|
||
count: null,
|
||
until: null,
|
||
tzid: null,
|
||
bysetpos: null,
|
||
bymonth: null,
|
||
bymonthday: null,
|
||
bynmonthday: null,
|
||
byyearday: null,
|
||
byweekno: null,
|
||
byweekday: null,
|
||
bynweekday: null,
|
||
byhour: null,
|
||
byminute: null,
|
||
bysecond: null,
|
||
byeaster: null
|
||
};
|
||
var defaultKeys = Object.keys(DEFAULT_OPTIONS$1);
|
||
/**
|
||
*
|
||
* @param {Options?} options - see <http://labix.org/python-dateutil/#head-cf004ee9a75592797e076752b2a889c10f445418>
|
||
* The only required option is `freq`, one of RRule.YEARLY, RRule.MONTHLY, ...
|
||
* @constructor
|
||
*/
|
||
var RRule = /** @class */ (function () {
|
||
function RRule(options, noCache) {
|
||
if (options === void 0) { options = {}; }
|
||
if (noCache === void 0) { noCache = false; }
|
||
// RFC string
|
||
this._cache = noCache ? null : new Cache$1();
|
||
// used by toString()
|
||
this.origOptions = initializeOptions$1(options);
|
||
var parsedOptions = parseOptions(options).parsedOptions;
|
||
this.options = parsedOptions;
|
||
}
|
||
RRule.parseText = function (text, language) {
|
||
return parseText(text, language);
|
||
};
|
||
RRule.fromText = function (text, language) {
|
||
return fromText(text, language);
|
||
};
|
||
RRule.fromString = function (str) {
|
||
return new RRule(RRule.parseString(str) || undefined);
|
||
};
|
||
RRule.prototype._iter = function (iterResult) {
|
||
return iter(iterResult, this.options);
|
||
};
|
||
RRule.prototype._cacheGet = function (what, args) {
|
||
if (!this._cache)
|
||
return false;
|
||
return this._cache._cacheGet(what, args);
|
||
};
|
||
RRule.prototype._cacheAdd = function (what, value, args) {
|
||
if (!this._cache)
|
||
return;
|
||
return this._cache._cacheAdd(what, value, args);
|
||
};
|
||
/**
|
||
* @param {Function} iterator - optional function that will be called
|
||
* on each date that is added. It can return false
|
||
* to stop the iteration.
|
||
* @return Array containing all recurrences.
|
||
*/
|
||
RRule.prototype.all = function (iterator) {
|
||
if (iterator) {
|
||
return this._iter(new CallbackIterResult('all', {}, iterator));
|
||
}
|
||
var result = this._cacheGet('all');
|
||
if (result === false) {
|
||
result = this._iter(new IterResult('all', {}));
|
||
this._cacheAdd('all', result);
|
||
}
|
||
return result;
|
||
};
|
||
/**
|
||
* Returns all the occurrences of the rrule between after and before.
|
||
* The inc keyword defines what happens if after and/or before are
|
||
* themselves occurrences. With inc == True, they will be included in the
|
||
* list, if they are found in the recurrence set.
|
||
* @return Array
|
||
*/
|
||
RRule.prototype.between = function (after, before, inc, iterator) {
|
||
if (inc === void 0) { inc = false; }
|
||
if (!dateutil$1.isValidDate(after) || !dateutil$1.isValidDate(before))
|
||
throw new Error('Invalid date passed in to RRule.between');
|
||
var args = {
|
||
before: before,
|
||
after: after,
|
||
inc: inc
|
||
};
|
||
if (iterator) {
|
||
return this._iter(new CallbackIterResult('between', args, iterator));
|
||
}
|
||
var result = this._cacheGet('between', args);
|
||
if (result === false) {
|
||
result = this._iter(new IterResult('between', args));
|
||
this._cacheAdd('between', result, args);
|
||
}
|
||
return result;
|
||
};
|
||
/**
|
||
* Returns the last recurrence before the given datetime instance.
|
||
* The inc keyword defines what happens if dt is an occurrence.
|
||
* With inc == True, if dt itself is an occurrence, it will be returned.
|
||
* @return Date or null
|
||
*/
|
||
RRule.prototype.before = function (dt, inc) {
|
||
if (inc === void 0) { inc = false; }
|
||
if (!dateutil$1.isValidDate(dt))
|
||
throw new Error('Invalid date passed in to RRule.before');
|
||
var args = { dt: dt, inc: inc };
|
||
var result = this._cacheGet('before', args);
|
||
if (result === false) {
|
||
result = this._iter(new IterResult('before', args));
|
||
this._cacheAdd('before', result, args);
|
||
}
|
||
return result;
|
||
};
|
||
/**
|
||
* Returns the first recurrence after the given datetime instance.
|
||
* The inc keyword defines what happens if dt is an occurrence.
|
||
* With inc == True, if dt itself is an occurrence, it will be returned.
|
||
* @return Date or null
|
||
*/
|
||
RRule.prototype.after = function (dt, inc) {
|
||
if (inc === void 0) { inc = false; }
|
||
if (!dateutil$1.isValidDate(dt))
|
||
throw new Error('Invalid date passed in to RRule.after');
|
||
var args = { dt: dt, inc: inc };
|
||
var result = this._cacheGet('after', args);
|
||
if (result === false) {
|
||
result = this._iter(new IterResult('after', args));
|
||
this._cacheAdd('after', result, args);
|
||
}
|
||
return result;
|
||
};
|
||
/**
|
||
* Returns the number of recurrences in this set. It will have go trough
|
||
* the whole recurrence, if this hasn't been done before.
|
||
*/
|
||
RRule.prototype.count = function () {
|
||
return this.all().length;
|
||
};
|
||
/**
|
||
* Converts the rrule into its string representation
|
||
* @see <http://www.ietf.org/rfc/rfc2445.txt>
|
||
* @return String
|
||
*/
|
||
RRule.prototype.toString = function () {
|
||
return optionsToString(this.origOptions);
|
||
};
|
||
/**
|
||
* Will convert all rules described in nlp:ToText
|
||
* to text.
|
||
*/
|
||
RRule.prototype.toText = function (gettext, language, dateFormatter) {
|
||
return toText(this, gettext, language, dateFormatter);
|
||
};
|
||
RRule.prototype.isFullyConvertibleToText = function () {
|
||
return isFullyConvertible(this);
|
||
};
|
||
/**
|
||
* @return a RRule instance with the same freq and options
|
||
* as this one (cache is not cloned)
|
||
*/
|
||
RRule.prototype.clone = function () {
|
||
return new RRule(this.origOptions);
|
||
};
|
||
// RRule class 'constants'
|
||
RRule.FREQUENCIES = [
|
||
'YEARLY',
|
||
'MONTHLY',
|
||
'WEEKLY',
|
||
'DAILY',
|
||
'HOURLY',
|
||
'MINUTELY',
|
||
'SECONDLY'
|
||
];
|
||
RRule.YEARLY = Frequency.YEARLY;
|
||
RRule.MONTHLY = Frequency.MONTHLY;
|
||
RRule.WEEKLY = Frequency.WEEKLY;
|
||
RRule.DAILY = Frequency.DAILY;
|
||
RRule.HOURLY = Frequency.HOURLY;
|
||
RRule.MINUTELY = Frequency.MINUTELY;
|
||
RRule.SECONDLY = Frequency.SECONDLY;
|
||
RRule.MO = Days.MO;
|
||
RRule.TU = Days.TU;
|
||
RRule.WE = Days.WE;
|
||
RRule.TH = Days.TH;
|
||
RRule.FR = Days.FR;
|
||
RRule.SA = Days.SA;
|
||
RRule.SU = Days.SU;
|
||
RRule.parseString = parseString;
|
||
RRule.optionsToString = optionsToString;
|
||
return RRule;
|
||
}());
|
||
|
||
function iterSet(iterResult, _rrule, _exrule, _rdate, _exdate, tzid) {
|
||
var _exdateHash = {};
|
||
var _accept = iterResult.accept;
|
||
function evalExdate(after, before) {
|
||
_exrule.forEach(function (rrule) {
|
||
rrule.between(after, before, true).forEach(function (date) {
|
||
_exdateHash[Number(date)] = true;
|
||
});
|
||
});
|
||
}
|
||
_exdate.forEach(function (date) {
|
||
var zonedDate = new DateWithZone(date, tzid).rezonedDate();
|
||
_exdateHash[Number(zonedDate)] = true;
|
||
});
|
||
iterResult.accept = function (date) {
|
||
var dt = Number(date);
|
||
if (isNaN(dt))
|
||
return _accept.call(this, date);
|
||
if (!_exdateHash[dt]) {
|
||
evalExdate(new Date(dt - 1), new Date(dt + 1));
|
||
if (!_exdateHash[dt]) {
|
||
_exdateHash[dt] = true;
|
||
return _accept.call(this, date);
|
||
}
|
||
}
|
||
return true;
|
||
};
|
||
if (iterResult.method === 'between') {
|
||
evalExdate(iterResult.args.after, iterResult.args.before);
|
||
iterResult.accept = function (date) {
|
||
var dt = Number(date);
|
||
if (!_exdateHash[dt]) {
|
||
_exdateHash[dt] = true;
|
||
return _accept.call(this, date);
|
||
}
|
||
return true;
|
||
};
|
||
}
|
||
for (var i = 0; i < _rdate.length; i++) {
|
||
var zonedDate = new DateWithZone(_rdate[i], tzid).rezonedDate();
|
||
if (!iterResult.accept(new Date(zonedDate.getTime())))
|
||
break;
|
||
}
|
||
_rrule.forEach(function (rrule) {
|
||
iter(iterResult, rrule.options);
|
||
});
|
||
var res = iterResult._result;
|
||
dateutil$1.sort(res);
|
||
switch (iterResult.method) {
|
||
case 'all':
|
||
case 'between':
|
||
return res;
|
||
case 'before':
|
||
return ((res.length && res[res.length - 1]) || null);
|
||
case 'after':
|
||
default:
|
||
return ((res.length && res[0]) || null);
|
||
}
|
||
}
|
||
|
||
/**
|
||
* RRuleStr
|
||
* To parse a set of rrule strings
|
||
*/
|
||
var DEFAULT_OPTIONS = {
|
||
dtstart: null,
|
||
cache: false,
|
||
unfold: false,
|
||
forceset: false,
|
||
compatible: false,
|
||
tzid: null
|
||
};
|
||
function parseInput(s, options) {
|
||
var rrulevals = [];
|
||
var rdatevals = [];
|
||
var exrulevals = [];
|
||
var exdatevals = [];
|
||
var _a = parseDtstart(s), dtstart = _a.dtstart, tzid = _a.tzid;
|
||
var lines = splitIntoLines(s, options.unfold);
|
||
lines.forEach(function (line) {
|
||
if (!line)
|
||
return;
|
||
var _a = breakDownLine(line), name = _a.name, parms = _a.parms, value = _a.value;
|
||
switch (name.toUpperCase()) {
|
||
case 'RRULE':
|
||
if (parms.length) {
|
||
throw new Error("unsupported RRULE parm: " + parms.join(','));
|
||
}
|
||
rrulevals.push(parseString(line));
|
||
break;
|
||
case 'RDATE':
|
||
var _b = /RDATE(?:;TZID=([^:=]+))?/i.exec(line); _b[0]; var rdateTzid = _b[1];
|
||
if (rdateTzid && !tzid) {
|
||
tzid = rdateTzid;
|
||
}
|
||
rdatevals = rdatevals.concat(parseRDate(value, parms));
|
||
break;
|
||
case 'EXRULE':
|
||
if (parms.length) {
|
||
throw new Error("unsupported EXRULE parm: " + parms.join(','));
|
||
}
|
||
exrulevals.push(parseString(value));
|
||
break;
|
||
case 'EXDATE':
|
||
exdatevals = exdatevals.concat(parseRDate(value, parms));
|
||
break;
|
||
case 'DTSTART':
|
||
break;
|
||
default:
|
||
throw new Error('unsupported property: ' + name);
|
||
}
|
||
});
|
||
return {
|
||
dtstart: dtstart,
|
||
tzid: tzid,
|
||
rrulevals: rrulevals,
|
||
rdatevals: rdatevals,
|
||
exrulevals: exrulevals,
|
||
exdatevals: exdatevals
|
||
};
|
||
}
|
||
function buildRule(s, options) {
|
||
var _a = parseInput(s, options), rrulevals = _a.rrulevals, rdatevals = _a.rdatevals, exrulevals = _a.exrulevals, exdatevals = _a.exdatevals, dtstart = _a.dtstart, tzid = _a.tzid;
|
||
var noCache = options.cache === false;
|
||
if (options.compatible) {
|
||
options.forceset = true;
|
||
options.unfold = true;
|
||
}
|
||
if (options.forceset ||
|
||
rrulevals.length > 1 ||
|
||
rdatevals.length ||
|
||
exrulevals.length ||
|
||
exdatevals.length) {
|
||
var rset_1 = new RRuleSet(noCache);
|
||
rset_1.dtstart(dtstart);
|
||
rset_1.tzid(tzid || undefined);
|
||
rrulevals.forEach(function (val) {
|
||
rset_1.rrule(new RRule(groomRruleOptions(val, dtstart, tzid), noCache));
|
||
});
|
||
rdatevals.forEach(function (date) {
|
||
rset_1.rdate(date);
|
||
});
|
||
exrulevals.forEach(function (val) {
|
||
rset_1.exrule(new RRule(groomRruleOptions(val, dtstart, tzid), noCache));
|
||
});
|
||
exdatevals.forEach(function (date) {
|
||
rset_1.exdate(date);
|
||
});
|
||
if (options.compatible && options.dtstart)
|
||
rset_1.rdate(dtstart);
|
||
return rset_1;
|
||
}
|
||
var val = rrulevals[0] || {};
|
||
return new RRule(groomRruleOptions(val, val.dtstart || options.dtstart || dtstart, val.tzid || options.tzid || tzid), noCache);
|
||
}
|
||
function rrulestr(s, options) {
|
||
if (options === void 0) { options = {}; }
|
||
return buildRule(s, initializeOptions(options));
|
||
}
|
||
function groomRruleOptions(val, dtstart, tzid) {
|
||
return __assign(__assign({}, val), { dtstart: dtstart,
|
||
tzid: tzid });
|
||
}
|
||
function initializeOptions(options) {
|
||
var invalid = [];
|
||
var keys = Object.keys(options);
|
||
var defaultKeys = Object.keys(DEFAULT_OPTIONS);
|
||
keys.forEach(function (key) {
|
||
if (!includes(defaultKeys, key))
|
||
invalid.push(key);
|
||
});
|
||
if (invalid.length) {
|
||
throw new Error('Invalid options: ' + invalid.join(', '));
|
||
}
|
||
return __assign(__assign({}, DEFAULT_OPTIONS), options);
|
||
}
|
||
function extractName(line) {
|
||
if (line.indexOf(':') === -1) {
|
||
return {
|
||
name: 'RRULE',
|
||
value: line
|
||
};
|
||
}
|
||
var _a = split(line, ':', 1), name = _a[0], value = _a[1];
|
||
return {
|
||
name: name,
|
||
value: value
|
||
};
|
||
}
|
||
function breakDownLine(line) {
|
||
var _a = extractName(line), name = _a.name, value = _a.value;
|
||
var parms = name.split(';');
|
||
if (!parms)
|
||
throw new Error('empty property name');
|
||
return {
|
||
name: parms[0].toUpperCase(),
|
||
parms: parms.slice(1),
|
||
value: value
|
||
};
|
||
}
|
||
function splitIntoLines(s, unfold) {
|
||
if (unfold === void 0) { unfold = false; }
|
||
s = s && s.trim();
|
||
if (!s)
|
||
throw new Error('Invalid empty string');
|
||
// More info about 'unfold' option
|
||
// Go head to http://www.ietf.org/rfc/rfc2445.txt
|
||
if (!unfold) {
|
||
return s.split(/\s/);
|
||
}
|
||
var lines = s.split('\n');
|
||
var i = 0;
|
||
while (i < lines.length) {
|
||
// TODO
|
||
var line = (lines[i] = lines[i].replace(/\s+$/g, ''));
|
||
if (!line) {
|
||
lines.splice(i, 1);
|
||
}
|
||
else if (i > 0 && line[0] === ' ') {
|
||
lines[i - 1] += line.slice(1);
|
||
lines.splice(i, 1);
|
||
}
|
||
else {
|
||
i += 1;
|
||
}
|
||
}
|
||
return lines;
|
||
}
|
||
function validateDateParm(parms) {
|
||
parms.forEach(function (parm) {
|
||
if (!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(parm)) {
|
||
throw new Error('unsupported RDATE/EXDATE parm: ' + parm);
|
||
}
|
||
});
|
||
}
|
||
function parseRDate(rdateval, parms) {
|
||
validateDateParm(parms);
|
||
return rdateval
|
||
.split(',')
|
||
.map(function (datestr) { return dateutil$1.untilStringToDate(datestr); });
|
||
}
|
||
|
||
function createGetterSetter(fieldName) {
|
||
var _this = this;
|
||
return function (field) {
|
||
if (field !== undefined) {
|
||
_this["_" + fieldName] = field;
|
||
}
|
||
if (_this["_" + fieldName] !== undefined) {
|
||
return _this["_" + fieldName];
|
||
}
|
||
for (var i = 0; i < _this._rrule.length; i++) {
|
||
var field_1 = _this._rrule[i].origOptions[fieldName];
|
||
if (field_1) {
|
||
return field_1;
|
||
}
|
||
}
|
||
};
|
||
}
|
||
var RRuleSet = /** @class */ (function (_super) {
|
||
__extends(RRuleSet, _super);
|
||
/**
|
||
*
|
||
* @param {Boolean?} noCache
|
||
* The same stratagy as RRule on cache, default to false
|
||
* @constructor
|
||
*/
|
||
function RRuleSet(noCache) {
|
||
if (noCache === void 0) { noCache = false; }
|
||
var _this = _super.call(this, {}, noCache) || this;
|
||
_this.dtstart = createGetterSetter.apply(_this, ['dtstart']);
|
||
_this.tzid = createGetterSetter.apply(_this, ['tzid']);
|
||
_this._rrule = [];
|
||
_this._rdate = [];
|
||
_this._exrule = [];
|
||
_this._exdate = [];
|
||
return _this;
|
||
}
|
||
RRuleSet.prototype._iter = function (iterResult) {
|
||
return iterSet(iterResult, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
|
||
};
|
||
/**
|
||
* Adds an RRule to the set
|
||
*
|
||
* @param {RRule}
|
||
*/
|
||
RRuleSet.prototype.rrule = function (rrule) {
|
||
_addRule(rrule, this._rrule);
|
||
};
|
||
/**
|
||
* Adds an EXRULE to the set
|
||
*
|
||
* @param {RRule}
|
||
*/
|
||
RRuleSet.prototype.exrule = function (rrule) {
|
||
_addRule(rrule, this._exrule);
|
||
};
|
||
/**
|
||
* Adds an RDate to the set
|
||
*
|
||
* @param {Date}
|
||
*/
|
||
RRuleSet.prototype.rdate = function (date) {
|
||
_addDate(date, this._rdate);
|
||
};
|
||
/**
|
||
* Adds an EXDATE to the set
|
||
*
|
||
* @param {Date}
|
||
*/
|
||
RRuleSet.prototype.exdate = function (date) {
|
||
_addDate(date, this._exdate);
|
||
};
|
||
/**
|
||
* Get list of included rrules in this recurrence set.
|
||
*
|
||
* @return List of rrules
|
||
*/
|
||
RRuleSet.prototype.rrules = function () {
|
||
return this._rrule.map(function (e) { return rrulestr(e.toString()); });
|
||
};
|
||
/**
|
||
* Get list of excluded rrules in this recurrence set.
|
||
*
|
||
* @return List of exrules
|
||
*/
|
||
RRuleSet.prototype.exrules = function () {
|
||
return this._exrule.map(function (e) { return rrulestr(e.toString()); });
|
||
};
|
||
/**
|
||
* Get list of included datetimes in this recurrence set.
|
||
*
|
||
* @return List of rdates
|
||
*/
|
||
RRuleSet.prototype.rdates = function () {
|
||
return this._rdate.map(function (e) { return new Date(e.getTime()); });
|
||
};
|
||
/**
|
||
* Get list of included datetimes in this recurrence set.
|
||
*
|
||
* @return List of exdates
|
||
*/
|
||
RRuleSet.prototype.exdates = function () {
|
||
return this._exdate.map(function (e) { return new Date(e.getTime()); });
|
||
};
|
||
RRuleSet.prototype.valueOf = function () {
|
||
var result = [];
|
||
if (!this._rrule.length && this._dtstart) {
|
||
result = result.concat(optionsToString({ dtstart: this._dtstart }));
|
||
}
|
||
this._rrule.forEach(function (rrule) {
|
||
result = result.concat(rrule.toString().split('\n'));
|
||
});
|
||
this._exrule.forEach(function (exrule) {
|
||
result = result.concat(exrule.toString().split('\n')
|
||
.map(function (line) { return line.replace(/^RRULE:/, 'EXRULE:'); })
|
||
.filter(function (line) { return !/^DTSTART/.test(line); }));
|
||
});
|
||
if (this._rdate.length) {
|
||
result.push(rdatesToString('RDATE', this._rdate, this.tzid()));
|
||
}
|
||
if (this._exdate.length) {
|
||
result.push(rdatesToString('EXDATE', this._exdate, this.tzid()));
|
||
}
|
||
return result;
|
||
};
|
||
/**
|
||
* to generate recurrence field such as:
|
||
* DTSTART:19970902T010000Z
|
||
* RRULE:FREQ=YEARLY;COUNT=2;BYDAY=TU
|
||
* RRULE:FREQ=YEARLY;COUNT=1;BYDAY=TH
|
||
*/
|
||
RRuleSet.prototype.toString = function () {
|
||
return this.valueOf().join('\n');
|
||
};
|
||
/**
|
||
* Create a new RRuleSet Object completely base on current instance
|
||
*/
|
||
RRuleSet.prototype.clone = function () {
|
||
var rrs = new RRuleSet(!!this._cache);
|
||
this._rrule.forEach(function (rule) { return rrs.rrule(rule.clone()); });
|
||
this._exrule.forEach(function (rule) { return rrs.exrule(rule.clone()); });
|
||
this._rdate.forEach(function (date) { return rrs.rdate(new Date(date.getTime())); });
|
||
this._exdate.forEach(function (date) { return rrs.exdate(new Date(date.getTime())); });
|
||
return rrs;
|
||
};
|
||
return RRuleSet;
|
||
}(RRule));
|
||
function _addRule(rrule, collection) {
|
||
if (!(rrule instanceof RRule)) {
|
||
throw new TypeError(String(rrule) + ' is not RRule instance');
|
||
}
|
||
if (!includes(collection.map(String), String(rrule))) {
|
||
collection.push(rrule);
|
||
}
|
||
}
|
||
function _addDate(date, collection) {
|
||
if (!(date instanceof Date)) {
|
||
throw new TypeError(String(date) + ' is not Date instance');
|
||
}
|
||
if (!includes(collection.map(Number), Number(date))) {
|
||
collection.push(date);
|
||
dateutil$1.sort(collection);
|
||
}
|
||
}
|
||
function rdatesToString(param, rdates, tzid) {
|
||
var isUTC = !tzid || tzid.toUpperCase() === 'UTC';
|
||
var header = isUTC ? param + ":" : param + ";TZID=" + tzid + ":";
|
||
var dateString = rdates
|
||
.map(function (rdate) { return dateutil$1.timeToUntilString(rdate.valueOf(), isUTC); })
|
||
.join(',');
|
||
return "" + header + dateString;
|
||
}
|
||
|
||
class Recurrence {
|
||
constructor({ rrule, referenceDate, startDate, scheduledDate, dueDate, }) {
|
||
this.rrule = rrule;
|
||
this.referenceDate = referenceDate;
|
||
this.startDate = startDate;
|
||
this.scheduledDate = scheduledDate;
|
||
this.dueDate = dueDate;
|
||
}
|
||
static fromText({ recurrenceRuleText, startDate, scheduledDate, dueDate, }) {
|
||
try {
|
||
const options = RRule.parseText(recurrenceRuleText);
|
||
if (options !== null) {
|
||
// Pick the reference date for recurrence based on importance.
|
||
// Assuming due date has the highest priority.
|
||
let referenceDate = null;
|
||
// Clone the moment objects.
|
||
if (dueDate) {
|
||
referenceDate = window.moment(dueDate);
|
||
}
|
||
else if (scheduledDate) {
|
||
referenceDate = window.moment(scheduledDate);
|
||
}
|
||
else if (startDate) {
|
||
referenceDate = window.moment(startDate);
|
||
}
|
||
if (referenceDate !== null) {
|
||
options.dtstart = window
|
||
.moment(referenceDate)
|
||
.startOf('day')
|
||
.utc(true)
|
||
.toDate();
|
||
}
|
||
const rrule = new RRule(options);
|
||
return new Recurrence({
|
||
rrule,
|
||
referenceDate,
|
||
startDate,
|
||
scheduledDate,
|
||
dueDate,
|
||
});
|
||
}
|
||
}
|
||
catch (error) {
|
||
// Could not read recurrence rule. User possibly not done typing.
|
||
}
|
||
return null;
|
||
}
|
||
toText() {
|
||
return this.rrule.toText();
|
||
}
|
||
/**
|
||
* Returns the dates of the next occurrence or null if there is no next occurrence.
|
||
*/
|
||
next() {
|
||
// The next occurrence should happen based on the original reference
|
||
// date if possible. Otherwise, base it on today.
|
||
let after;
|
||
if (this.referenceDate !== null) {
|
||
// Clone to not alter the original reference date.
|
||
after = window.moment(this.referenceDate);
|
||
}
|
||
else {
|
||
after = window.moment();
|
||
}
|
||
after.endOf('day');
|
||
after.utc(true);
|
||
const next = this.rrule.after(after.toDate());
|
||
if (next !== null) {
|
||
// Re-add the timezone that RRule disregarded:
|
||
const localTimeZone = window.moment.utc(next).local(true);
|
||
const nextOccurrence = localTimeZone.startOf('day');
|
||
// Keep the relative difference between the reference date and
|
||
// start/scheduled/due.
|
||
let startDate = null;
|
||
let scheduledDate = null;
|
||
let dueDate = null;
|
||
// Only if a reference date is given. A reference date will exist if at
|
||
// least one of the other dates is set.
|
||
if (this.referenceDate) {
|
||
if (this.startDate) {
|
||
const originalDifference = window.moment.duration(this.startDate.diff(this.referenceDate));
|
||
// Cloning so that original won't be manipulated:
|
||
startDate = window.moment(nextOccurrence);
|
||
// Rounding days to handle cross daylight-savings-time recurrences.
|
||
startDate.add(Math.round(originalDifference.asDays()), 'days');
|
||
}
|
||
if (this.scheduledDate) {
|
||
const originalDifference = window.moment.duration(this.scheduledDate.diff(this.referenceDate));
|
||
// Cloning so that original won't be manipulated:
|
||
scheduledDate = window.moment(nextOccurrence);
|
||
// Rounding days to handle cross daylight-savings-time recurrences.
|
||
scheduledDate.add(Math.round(originalDifference.asDays()), 'days');
|
||
}
|
||
if (this.dueDate) {
|
||
const originalDifference = window.moment.duration(this.dueDate.diff(this.referenceDate));
|
||
// Cloning so that original won't be manipulated:
|
||
dueDate = window.moment(nextOccurrence);
|
||
// Rounding days to handle cross daylight-savings-time recurrences.
|
||
dueDate.add(Math.round(originalDifference.asDays()), 'days');
|
||
}
|
||
}
|
||
return {
|
||
startDate,
|
||
scheduledDate,
|
||
dueDate,
|
||
};
|
||
}
|
||
return null;
|
||
}
|
||
}
|
||
|
||
class Urgency {
|
||
static calculate(task) {
|
||
let urgency = 0.0;
|
||
if (task.dueDate !== null) {
|
||
// Map a range of 21 days to the value 0.2 - 1.0
|
||
const daysOverdue = window.moment().diff(task.dueDate) / Urgency.milliSecondsPerDay;
|
||
let dueMultiplier;
|
||
if (daysOverdue >= 7.0) {
|
||
dueMultiplier = 1.0; // < 1 wk ago
|
||
}
|
||
else if (daysOverdue >= -14.0) {
|
||
// Due between 7 days (+7) ago and in 14 days (-14)
|
||
dueMultiplier = ((daysOverdue + 14.0) * 0.8) / 21.0 + 0.2;
|
||
}
|
||
else {
|
||
dueMultiplier = 0.2; // > 2 wks
|
||
}
|
||
urgency += dueMultiplier * Urgency.dueCoefficient;
|
||
}
|
||
if (task.scheduledDate !== null) {
|
||
if (window.moment().isSameOrAfter(task.scheduledDate)) {
|
||
urgency += 1 * Urgency.scheduledCoefficient;
|
||
}
|
||
}
|
||
if (task.startDate !== null) {
|
||
if (window.moment().isBefore(task.startDate)) {
|
||
urgency += 1 * Urgency.startedCoefficient;
|
||
}
|
||
}
|
||
switch (task.priority) {
|
||
// High
|
||
case '1':
|
||
urgency += 1.0 * Urgency.priorityCoefficient;
|
||
break;
|
||
// Medium
|
||
case '2':
|
||
urgency += 0.65 * Urgency.priorityCoefficient;
|
||
break;
|
||
// None
|
||
case '3':
|
||
urgency += 0.325 * Urgency.priorityCoefficient;
|
||
break;
|
||
}
|
||
return urgency;
|
||
}
|
||
}
|
||
Urgency.dueCoefficient = 12.0;
|
||
Urgency.scheduledCoefficient = 5.0;
|
||
Urgency.startedCoefficient = -3.0;
|
||
Urgency.priorityCoefficient = 6.0;
|
||
Urgency.milliSecondsPerDay = 1000 * 60 * 60 * 24;
|
||
|
||
var Status;
|
||
(function (Status) {
|
||
Status["Todo"] = "Todo";
|
||
Status["Done"] = "Done";
|
||
})(Status || (Status = {}));
|
||
// Sort low below none.
|
||
var Priority;
|
||
(function (Priority) {
|
||
Priority["High"] = "1";
|
||
Priority["Medium"] = "2";
|
||
Priority["None"] = "3";
|
||
Priority["Low"] = "4";
|
||
})(Priority || (Priority = {}));
|
||
class Task {
|
||
constructor({ status, description, path, indentation, sectionStart, sectionIndex, originalStatusCharacter, precedingHeader, priority, startDate, scheduledDate, dueDate, doneDate, recurrence, blockLink, }) {
|
||
this._urgency = null;
|
||
this.status = status;
|
||
this.description = description;
|
||
this.path = path;
|
||
this.indentation = indentation;
|
||
this.sectionStart = sectionStart;
|
||
this.sectionIndex = sectionIndex;
|
||
this.originalStatusCharacter = originalStatusCharacter;
|
||
this.precedingHeader = precedingHeader;
|
||
this.priority = priority;
|
||
this.startDate = startDate;
|
||
this.scheduledDate = scheduledDate;
|
||
this.dueDate = dueDate;
|
||
this.doneDate = doneDate;
|
||
this.recurrence = recurrence;
|
||
this.blockLink = blockLink;
|
||
}
|
||
static fromLine({ line, path, sectionStart, sectionIndex, precedingHeader, }) {
|
||
const regexMatch = line.match(Task.taskRegex);
|
||
if (regexMatch === null) {
|
||
return null;
|
||
}
|
||
const indentation = regexMatch[1];
|
||
const statusString = regexMatch[2].toLowerCase();
|
||
let status;
|
||
switch (statusString) {
|
||
case ' ':
|
||
status = Status.Todo;
|
||
break;
|
||
default:
|
||
status = Status.Done;
|
||
}
|
||
// match[3] includes the whole body of the task after the brackets.
|
||
const body = regexMatch[3].trim();
|
||
const { globalFilter } = getSettings();
|
||
if (!body.includes(globalFilter)) {
|
||
return null;
|
||
}
|
||
let description = body;
|
||
const blockLinkMatch = description.match(this.blockLinkRegex);
|
||
const blockLink = blockLinkMatch !== null ? blockLinkMatch[0] : '';
|
||
if (blockLink !== '') {
|
||
description = description.replace(this.blockLinkRegex, '').trim();
|
||
}
|
||
// Keep matching and removing special strings from the end of the
|
||
// description in any order. The loop should only run once if the
|
||
// strings are in the expected order after the description.
|
||
let matched;
|
||
let priority = Priority.None;
|
||
let startDate = null;
|
||
let scheduledDate = null;
|
||
let dueDate = null;
|
||
let doneDate = null;
|
||
let recurrence = null;
|
||
// Add a "max runs" failsafe to never end in an endless loop:
|
||
const maxRuns = 7;
|
||
let runs = 0;
|
||
do {
|
||
matched = false;
|
||
const priorityMatch = description.match(Task.priorityRegex);
|
||
if (priorityMatch !== null) {
|
||
switch (priorityMatch[1]) {
|
||
case '🔽':
|
||
priority = Priority.Low;
|
||
break;
|
||
case '🔼':
|
||
priority = Priority.Medium;
|
||
break;
|
||
case '⏫':
|
||
priority = Priority.High;
|
||
break;
|
||
}
|
||
description = description
|
||
.replace(Task.priorityRegex, '')
|
||
.trim();
|
||
matched = true;
|
||
}
|
||
const doneDateMatch = description.match(Task.doneDateRegex);
|
||
if (doneDateMatch !== null) {
|
||
doneDate = window.moment(doneDateMatch[1], Task.dateFormat);
|
||
description = description
|
||
.replace(Task.doneDateRegex, '')
|
||
.trim();
|
||
matched = true;
|
||
}
|
||
const dueDateMatch = description.match(Task.dueDateRegex);
|
||
if (dueDateMatch !== null) {
|
||
dueDate = window.moment(dueDateMatch[1], Task.dateFormat);
|
||
description = description.replace(Task.dueDateRegex, '').trim();
|
||
matched = true;
|
||
}
|
||
const scheduledDateMatch = description.match(Task.scheduledDateRegex);
|
||
if (scheduledDateMatch !== null) {
|
||
scheduledDate = window.moment(scheduledDateMatch[1], Task.dateFormat);
|
||
description = description
|
||
.replace(Task.scheduledDateRegex, '')
|
||
.trim();
|
||
matched = true;
|
||
}
|
||
const startDateMatch = description.match(Task.startDateRegex);
|
||
if (startDateMatch !== null) {
|
||
startDate = window.moment(startDateMatch[1], Task.dateFormat);
|
||
description = description
|
||
.replace(Task.startDateRegex, '')
|
||
.trim();
|
||
matched = true;
|
||
}
|
||
const recurrenceMatch = description.match(Task.recurrenceRegex);
|
||
if (recurrenceMatch !== null) {
|
||
recurrence = Recurrence.fromText({
|
||
recurrenceRuleText: recurrenceMatch[1].trim(),
|
||
startDate,
|
||
scheduledDate,
|
||
dueDate,
|
||
});
|
||
description = description
|
||
.replace(Task.recurrenceRegex, '')
|
||
.trim();
|
||
matched = true;
|
||
}
|
||
runs++;
|
||
} while (matched && runs <= maxRuns);
|
||
const task = new Task({
|
||
status,
|
||
description,
|
||
path,
|
||
indentation,
|
||
sectionStart,
|
||
sectionIndex,
|
||
originalStatusCharacter: statusString,
|
||
precedingHeader,
|
||
priority,
|
||
startDate,
|
||
scheduledDate,
|
||
dueDate,
|
||
doneDate,
|
||
recurrence,
|
||
blockLink,
|
||
});
|
||
return task;
|
||
}
|
||
toLi({ parentUlElement, listIndex, layoutOptions, }) {
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
const li = parentUlElement.createEl('li');
|
||
li.addClasses(['task-list-item', 'plugin-tasks-list-item']);
|
||
let taskAsString = this.toString(layoutOptions);
|
||
const { globalFilter, removeGlobalFilter } = getSettings();
|
||
if (removeGlobalFilter) {
|
||
taskAsString = taskAsString.replace(globalFilter, '').trim();
|
||
}
|
||
const textSpan = li.createSpan();
|
||
textSpan.addClass('tasks-list-text');
|
||
yield obsidian.MarkdownRenderer.renderMarkdown(taskAsString, textSpan, this.path, null);
|
||
// Unwrap the p-tag that was created by the MarkdownRenderer:
|
||
const pElement = textSpan.querySelector('p');
|
||
if (pElement !== null) {
|
||
while (pElement.firstChild) {
|
||
textSpan.insertBefore(pElement.firstChild, pElement);
|
||
}
|
||
pElement.remove();
|
||
}
|
||
// Remove an empty trailing p-tag that the MarkdownRenderer appends when there is a block link:
|
||
textSpan.findAll('p').forEach((pElement) => {
|
||
if (!pElement.hasChildNodes()) {
|
||
pElement.remove();
|
||
}
|
||
});
|
||
// Remove the footnote that the MarkdownRenderer appends when there is a footnote in the task:
|
||
textSpan.findAll('.footnotes').forEach((footnoteElement) => {
|
||
footnoteElement.remove();
|
||
});
|
||
const checkbox = li.createEl('input');
|
||
checkbox.addClass('task-list-item-checkbox');
|
||
checkbox.type = 'checkbox';
|
||
if (this.status !== Status.Todo) {
|
||
checkbox.checked = true;
|
||
li.addClass('is-checked');
|
||
}
|
||
checkbox.onClickEvent((event) => {
|
||
event.preventDefault();
|
||
// It is required to stop propagation so that obsidian won't write the file with the
|
||
// checkbox (un)checked. Obsidian would write after us and overwrite our change.
|
||
event.stopPropagation();
|
||
// Should be re-rendered as enabled after update in file.
|
||
checkbox.disabled = true;
|
||
const toggledTasks = this.toggle();
|
||
replaceTaskWithTasks({
|
||
originalTask: this,
|
||
newTasks: toggledTasks,
|
||
});
|
||
});
|
||
li.prepend(checkbox);
|
||
// Set these to be compatible with stock obsidian lists:
|
||
li.setAttr('data-task', this.originalStatusCharacter.trim()); // Trim to ensure empty attribute for space. Same way as obsidian.
|
||
li.setAttr('data-line', listIndex);
|
||
checkbox.setAttr('data-line', listIndex);
|
||
if (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.shortMode) {
|
||
this.addTooltip({ element: textSpan });
|
||
}
|
||
return li;
|
||
});
|
||
}
|
||
toString(layoutOptions) {
|
||
var _a;
|
||
layoutOptions = layoutOptions !== null && layoutOptions !== void 0 ? layoutOptions : new LayoutOptions();
|
||
let taskString = this.description;
|
||
if (!layoutOptions.hidePriority) {
|
||
let priority = '';
|
||
if (this.priority === Priority.High) {
|
||
priority = ' ⏫';
|
||
}
|
||
else if (this.priority === Priority.Medium) {
|
||
priority = ' 🔼';
|
||
}
|
||
else if (this.priority === Priority.Low) {
|
||
priority = ' 🔽';
|
||
}
|
||
taskString += priority;
|
||
}
|
||
if (!layoutOptions.hideRecurrenceRule && this.recurrence) {
|
||
const recurrenceRule = layoutOptions.shortMode
|
||
? ' 🔁'
|
||
: ` 🔁 ${this.recurrence.toText()}`;
|
||
taskString += recurrenceRule;
|
||
}
|
||
if (!layoutOptions.hideStartDate && this.startDate) {
|
||
const startDate = layoutOptions.shortMode
|
||
? ' 🛫'
|
||
: ` 🛫 ${this.startDate.format(Task.dateFormat)}`;
|
||
taskString += startDate;
|
||
}
|
||
if (!layoutOptions.hideScheduledDate && this.scheduledDate) {
|
||
const scheduledDate = layoutOptions.shortMode
|
||
? ' ⏳'
|
||
: ` ⏳ ${this.scheduledDate.format(Task.dateFormat)}`;
|
||
taskString += scheduledDate;
|
||
}
|
||
if (!layoutOptions.hideDueDate && this.dueDate) {
|
||
const dueDate = layoutOptions.shortMode
|
||
? ' 📅'
|
||
: ` 📅 ${this.dueDate.format(Task.dateFormat)}`;
|
||
taskString += dueDate;
|
||
}
|
||
if (!layoutOptions.hideDoneDate && this.doneDate) {
|
||
const doneDate = layoutOptions.shortMode
|
||
? ' ✅'
|
||
: ` ✅ ${this.doneDate.format(Task.dateFormat)}`;
|
||
taskString += doneDate;
|
||
}
|
||
const blockLink = (_a = this.blockLink) !== null && _a !== void 0 ? _a : '';
|
||
taskString += blockLink;
|
||
return taskString;
|
||
}
|
||
toFileLineString() {
|
||
return `${this.indentation}- [${this.originalStatusCharacter}] ${this.toString()}`;
|
||
}
|
||
/**
|
||
* Toggles this task and returns the resulting tasks.
|
||
*
|
||
* Toggling can result in more than one returned task in the case of
|
||
* recurrence. If it is a recurring task, the toggled task will be returned
|
||
* together with the next occurrence in the order `[next, toggled]`. If the
|
||
* task is not recurring, it will return `[toggled]`.
|
||
*/
|
||
toggle() {
|
||
const newStatus = this.status === Status.Todo ? Status.Done : Status.Todo;
|
||
let newDoneDate = null;
|
||
let nextOccurrence = null;
|
||
if (newStatus !== Status.Todo) {
|
||
newDoneDate = window.moment();
|
||
// If this task is no longer todo, we need to check if it is recurring:
|
||
if (this.recurrence !== null) {
|
||
nextOccurrence = this.recurrence.next();
|
||
}
|
||
}
|
||
const toggledTask = new Task(Object.assign(Object.assign({}, this), { status: newStatus, doneDate: newDoneDate, originalStatusCharacter: newStatus === Status.Done ? 'x' : ' ' }));
|
||
const newTasks = [];
|
||
if (nextOccurrence !== null) {
|
||
const nextTask = new Task(Object.assign(Object.assign(Object.assign({}, this), nextOccurrence), {
|
||
// New occurrences cannot have the same block link.
|
||
// And random block links don't help.
|
||
blockLink: '' }));
|
||
newTasks.push(nextTask);
|
||
}
|
||
// Write next occurrence before previous occurrence.
|
||
newTasks.push(toggledTask);
|
||
return newTasks;
|
||
}
|
||
get urgency() {
|
||
if (this._urgency === null) {
|
||
this._urgency = Urgency.calculate(this);
|
||
}
|
||
return this._urgency;
|
||
}
|
||
addTooltip({ element }) {
|
||
if (this.recurrence ||
|
||
this.startDate ||
|
||
this.scheduledDate ||
|
||
this.dueDate ||
|
||
this.doneDate) {
|
||
element.addEventListener('mouseenter', () => {
|
||
const tooltip = element.createDiv();
|
||
tooltip.addClasses(['tooltip', 'mod-right']);
|
||
if (this.recurrence) {
|
||
const recurrenceDiv = tooltip.createDiv();
|
||
recurrenceDiv.setText(`🔁 ${this.recurrence.toText()}`);
|
||
}
|
||
if (this.startDate) {
|
||
const startDateDiv = tooltip.createDiv();
|
||
startDateDiv.setText(Task.toTooltipDate({
|
||
signifier: '🛫',
|
||
date: this.startDate,
|
||
}));
|
||
}
|
||
if (this.scheduledDate) {
|
||
const scheduledDateDiv = tooltip.createDiv();
|
||
scheduledDateDiv.setText(Task.toTooltipDate({
|
||
signifier: '⏳',
|
||
date: this.scheduledDate,
|
||
}));
|
||
}
|
||
if (this.dueDate) {
|
||
const dueDateDiv = tooltip.createDiv();
|
||
dueDateDiv.setText(Task.toTooltipDate({
|
||
signifier: '📅',
|
||
date: this.dueDate,
|
||
}));
|
||
}
|
||
if (this.doneDate) {
|
||
const doneDateDiv = tooltip.createDiv();
|
||
doneDateDiv.setText(Task.toTooltipDate({
|
||
signifier: '✅',
|
||
date: this.doneDate,
|
||
}));
|
||
}
|
||
element.addEventListener('mouseleave', () => {
|
||
tooltip.remove();
|
||
});
|
||
});
|
||
}
|
||
}
|
||
static toTooltipDate({ signifier, date, }) {
|
||
return `${signifier} ${date.format(Task.dateFormat)} (${date.from(window.moment().startOf('day'))})`;
|
||
}
|
||
}
|
||
Task.dateFormat = 'YYYY-MM-DD';
|
||
Task.taskRegex = /^([\s\t]*)[-*] +\[(.)\] *(.*)/u;
|
||
// The following regexes end with `$` because they will be matched and
|
||
// removed from the end until none are left.
|
||
Task.priorityRegex = /([⏫🔼🔽])$/u;
|
||
Task.startDateRegex = /🛫 ?(\d{4}-\d{2}-\d{2})$/u;
|
||
Task.scheduledDateRegex = /[⏳⌛] ?(\d{4}-\d{2}-\d{2})$/u;
|
||
Task.dueDateRegex = /[📅📆🗓] ?(\d{4}-\d{2}-\d{2})$/u;
|
||
Task.doneDateRegex = /✅ ?(\d{4}-\d{2}-\d{2})$/u;
|
||
Task.recurrenceRegex = /🔁([a-zA-Z0-9, !]+)$/u;
|
||
Task.blockLinkRegex = / \^[a-zA-Z0-9-]+$/u;
|
||
|
||
var State;
|
||
(function (State) {
|
||
State["Cold"] = "Cold";
|
||
State["Initializing"] = "Initializing";
|
||
State["Warm"] = "Warm";
|
||
})(State || (State = {}));
|
||
class Cache {
|
||
constructor({ metadataCache, vault, events, }) {
|
||
this.metadataCache = metadataCache;
|
||
this.metadataCacheEventReferences = [];
|
||
this.vault = vault;
|
||
this.vaultEventReferences = [];
|
||
this.events = events;
|
||
this.eventsEventReferences = [];
|
||
this.tasksMutex = new Mutex();
|
||
this.state = State.Cold;
|
||
this.tasks = [];
|
||
this.loadedAfterFirstResolve = false;
|
||
this.subscribeToCache();
|
||
this.subscribeToVault();
|
||
this.subscribeToEvents();
|
||
this.loadVault();
|
||
}
|
||
unload() {
|
||
for (const eventReference of this.metadataCacheEventReferences) {
|
||
this.metadataCache.offref(eventReference);
|
||
}
|
||
for (const eventReference of this.vaultEventReferences) {
|
||
this.vault.offref(eventReference);
|
||
}
|
||
for (const eventReference of this.eventsEventReferences) {
|
||
this.events.off(eventReference);
|
||
}
|
||
}
|
||
getTasks() {
|
||
return this.tasks;
|
||
}
|
||
getState() {
|
||
return this.state;
|
||
}
|
||
notifySubscribers() {
|
||
this.events.triggerCacheUpdate({
|
||
tasks: this.tasks,
|
||
state: this.state,
|
||
});
|
||
}
|
||
subscribeToCache() {
|
||
const resolvedEventeReference = this.metadataCache.on('resolved', () => __awaiter(this, void 0, void 0, function* () {
|
||
// Resolved fires on every change.
|
||
// We only want to initialize if we haven't already.
|
||
if (!this.loadedAfterFirstResolve) {
|
||
this.loadedAfterFirstResolve = true;
|
||
this.loadVault();
|
||
}
|
||
}));
|
||
this.metadataCacheEventReferences.push(resolvedEventeReference);
|
||
// Does not fire when starting up obsidian and only works for changes.
|
||
const changedEventReference = this.metadataCache.on('changed', (file) => {
|
||
this.tasksMutex.runExclusive(() => {
|
||
this.indexFile(file);
|
||
});
|
||
});
|
||
this.metadataCacheEventReferences.push(changedEventReference);
|
||
}
|
||
subscribeToVault() {
|
||
const createdEventReference = this.vault.on('create', (file) => {
|
||
if (!(file instanceof obsidian.TFile)) {
|
||
return;
|
||
}
|
||
this.tasksMutex.runExclusive(() => {
|
||
this.indexFile(file);
|
||
});
|
||
});
|
||
this.vaultEventReferences.push(createdEventReference);
|
||
const deletedEventReference = this.vault.on('delete', (file) => {
|
||
if (!(file instanceof obsidian.TFile)) {
|
||
return;
|
||
}
|
||
this.tasksMutex.runExclusive(() => {
|
||
this.tasks = this.tasks.filter((task) => {
|
||
return task.path !== file.path;
|
||
});
|
||
this.notifySubscribers();
|
||
});
|
||
});
|
||
this.vaultEventReferences.push(deletedEventReference);
|
||
const renamedEventReference = this.vault.on('rename', (file, oldPath) => {
|
||
if (!(file instanceof obsidian.TFile)) {
|
||
return;
|
||
}
|
||
this.tasksMutex.runExclusive(() => {
|
||
this.tasks = this.tasks.map((task) => {
|
||
if (task.path === oldPath) {
|
||
return new Task(Object.assign(Object.assign({}, task), { path: file.path }));
|
||
}
|
||
else {
|
||
return task;
|
||
}
|
||
});
|
||
this.notifySubscribers();
|
||
});
|
||
});
|
||
this.vaultEventReferences.push(renamedEventReference);
|
||
}
|
||
subscribeToEvents() {
|
||
const requestReference = this.events.onRequestCacheUpdate((handler) => {
|
||
handler({ tasks: this.tasks, state: this.state });
|
||
});
|
||
this.eventsEventReferences.push(requestReference);
|
||
}
|
||
loadVault() {
|
||
return this.tasksMutex.runExclusive(() => __awaiter(this, void 0, void 0, function* () {
|
||
this.state = State.Initializing;
|
||
yield Promise.all(this.vault.getMarkdownFiles().map((file) => {
|
||
return this.indexFile(file);
|
||
}));
|
||
this.state = State.Warm;
|
||
// Notify that the cache is now warm:
|
||
this.notifySubscribers();
|
||
}));
|
||
}
|
||
indexFile(file) {
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
const fileCache = this.metadataCache.getFileCache(file);
|
||
if (fileCache === null || fileCache === undefined) {
|
||
return;
|
||
}
|
||
let listItems = fileCache.listItems;
|
||
if (listItems === undefined) {
|
||
// When there is no list items cache, there are no tasks.
|
||
// Still continue to notify watchers of removal.
|
||
listItems = [];
|
||
}
|
||
const fileContent = yield this.vault.cachedRead(file);
|
||
const fileLines = fileContent.split('\n');
|
||
// Remove all tasks from this file from the cache before
|
||
// adding the ones that are currently in the file.
|
||
this.tasks = this.tasks.filter((task) => {
|
||
return task.path !== file.path;
|
||
});
|
||
// We want to store section information with every task so
|
||
// that we can use that when we post process the markdown
|
||
// rendered lists.
|
||
let currentSection = null;
|
||
let sectionIndex = 0;
|
||
for (const listItem of listItems) {
|
||
if (listItem.task !== undefined) {
|
||
if (currentSection === null ||
|
||
currentSection.position.end.line <
|
||
listItem.position.start.line) {
|
||
// We went past the current section (or this is the first task).
|
||
// Find the section that is relevant for this task and the following of the same section.
|
||
currentSection = this.getSection({
|
||
lineNumberTask: listItem.position.start.line,
|
||
sections: fileCache.sections,
|
||
});
|
||
sectionIndex = 0;
|
||
}
|
||
if (currentSection === null) {
|
||
// Cannot process a task without a section.
|
||
continue;
|
||
}
|
||
const line = fileLines[listItem.position.start.line];
|
||
const task = Task.fromLine({
|
||
line,
|
||
path: file.path,
|
||
sectionStart: currentSection.position.start.line,
|
||
sectionIndex,
|
||
precedingHeader: this.getPrecedingHeader({
|
||
lineNumberTask: listItem.position.start.line,
|
||
sections: fileCache.sections,
|
||
fileLines,
|
||
}),
|
||
});
|
||
if (task !== null) {
|
||
sectionIndex++;
|
||
this.tasks.push(task);
|
||
}
|
||
}
|
||
}
|
||
// All updated, inform our subscribers.
|
||
this.notifySubscribers();
|
||
});
|
||
}
|
||
getSection({ lineNumberTask, sections, }) {
|
||
if (sections === undefined) {
|
||
return null;
|
||
}
|
||
for (const section of sections) {
|
||
if (section.type === 'list' &&
|
||
section.position.start.line <= lineNumberTask &&
|
||
section.position.end.line >= lineNumberTask) {
|
||
return section;
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
getPrecedingHeader({ lineNumberTask, sections, fileLines, }) {
|
||
if (sections === undefined) {
|
||
return null;
|
||
}
|
||
let precedingHeaderSection;
|
||
for (const section of sections) {
|
||
if (section.type === 'heading') {
|
||
if (section.position.start.line > lineNumberTask) {
|
||
// Break out of the loop as the last header was the preceding one.
|
||
break;
|
||
}
|
||
precedingHeaderSection = section;
|
||
}
|
||
}
|
||
if (precedingHeaderSection === undefined) {
|
||
return null;
|
||
}
|
||
const lineNumberPrecedingHeader = precedingHeaderSection.position.start.line;
|
||
const linePrecedingHeader = fileLines[lineNumberPrecedingHeader];
|
||
const headerRegex = /^#+ +(.*)/u;
|
||
const headerMatch = linePrecedingHeader.match(headerRegex);
|
||
if (headerMatch === null) {
|
||
return null;
|
||
}
|
||
else {
|
||
return headerMatch[1];
|
||
}
|
||
}
|
||
}
|
||
|
||
function noop() { }
|
||
function run(fn) {
|
||
return fn();
|
||
}
|
||
function blank_object() {
|
||
return Object.create(null);
|
||
}
|
||
function run_all(fns) {
|
||
fns.forEach(run);
|
||
}
|
||
function is_function(thing) {
|
||
return typeof thing === 'function';
|
||
}
|
||
function safe_not_equal(a, b) {
|
||
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
||
}
|
||
function is_empty(obj) {
|
||
return Object.keys(obj).length === 0;
|
||
}
|
||
function append(target, node) {
|
||
target.appendChild(node);
|
||
}
|
||
function insert(target, node, anchor) {
|
||
target.insertBefore(node, anchor || null);
|
||
}
|
||
function detach(node) {
|
||
node.parentNode.removeChild(node);
|
||
}
|
||
function element(name) {
|
||
return document.createElement(name);
|
||
}
|
||
function text(data) {
|
||
return document.createTextNode(data);
|
||
}
|
||
function space() {
|
||
return text(' ');
|
||
}
|
||
function listen(node, event, handler, options) {
|
||
node.addEventListener(event, handler, options);
|
||
return () => node.removeEventListener(event, handler, options);
|
||
}
|
||
function prevent_default(fn) {
|
||
return function (event) {
|
||
event.preventDefault();
|
||
// @ts-ignore
|
||
return fn.call(this, event);
|
||
};
|
||
}
|
||
function attr(node, attribute, value) {
|
||
if (value == null)
|
||
node.removeAttribute(attribute);
|
||
else if (node.getAttribute(attribute) !== value)
|
||
node.setAttribute(attribute, value);
|
||
}
|
||
function children(element) {
|
||
return Array.from(element.childNodes);
|
||
}
|
||
function set_data(text, data) {
|
||
data = '' + data;
|
||
if (text.wholeText !== data)
|
||
text.data = data;
|
||
}
|
||
function set_input_value(input, value) {
|
||
input.value = value == null ? '' : value;
|
||
}
|
||
function select_option(select, value) {
|
||
for (let i = 0; i < select.options.length; i += 1) {
|
||
const option = select.options[i];
|
||
if (option.__value === value) {
|
||
option.selected = true;
|
||
return;
|
||
}
|
||
}
|
||
select.selectedIndex = -1; // no option should be selected
|
||
}
|
||
function select_value(select) {
|
||
const selected_option = select.querySelector(':checked') || select.options[0];
|
||
return selected_option && selected_option.__value;
|
||
}
|
||
class HtmlTag {
|
||
constructor() {
|
||
this.e = this.n = null;
|
||
}
|
||
c(html) {
|
||
this.h(html);
|
||
}
|
||
m(html, target, anchor = null) {
|
||
if (!this.e) {
|
||
this.e = element(target.nodeName);
|
||
this.t = target;
|
||
this.c(html);
|
||
}
|
||
this.i(anchor);
|
||
}
|
||
h(html) {
|
||
this.e.innerHTML = html;
|
||
this.n = Array.from(this.e.childNodes);
|
||
}
|
||
i(anchor) {
|
||
for (let i = 0; i < this.n.length; i += 1) {
|
||
insert(this.t, this.n[i], anchor);
|
||
}
|
||
}
|
||
p(html) {
|
||
this.d();
|
||
this.h(html);
|
||
this.i(this.a);
|
||
}
|
||
d() {
|
||
this.n.forEach(detach);
|
||
}
|
||
}
|
||
|
||
let current_component;
|
||
function set_current_component(component) {
|
||
current_component = component;
|
||
}
|
||
function get_current_component() {
|
||
if (!current_component)
|
||
throw new Error('Function called outside component initialization');
|
||
return current_component;
|
||
}
|
||
function onMount(fn) {
|
||
get_current_component().$$.on_mount.push(fn);
|
||
}
|
||
|
||
const dirty_components = [];
|
||
const binding_callbacks = [];
|
||
const render_callbacks = [];
|
||
const flush_callbacks = [];
|
||
const resolved_promise = Promise.resolve();
|
||
let update_scheduled = false;
|
||
function schedule_update() {
|
||
if (!update_scheduled) {
|
||
update_scheduled = true;
|
||
resolved_promise.then(flush);
|
||
}
|
||
}
|
||
function add_render_callback(fn) {
|
||
render_callbacks.push(fn);
|
||
}
|
||
let flushing = false;
|
||
const seen_callbacks = new Set();
|
||
function flush() {
|
||
if (flushing)
|
||
return;
|
||
flushing = true;
|
||
do {
|
||
// first, call beforeUpdate functions
|
||
// and update components
|
||
for (let i = 0; i < dirty_components.length; i += 1) {
|
||
const component = dirty_components[i];
|
||
set_current_component(component);
|
||
update(component.$$);
|
||
}
|
||
set_current_component(null);
|
||
dirty_components.length = 0;
|
||
while (binding_callbacks.length)
|
||
binding_callbacks.pop()();
|
||
// then, once components are updated, call
|
||
// afterUpdate functions. This may cause
|
||
// subsequent updates...
|
||
for (let i = 0; i < render_callbacks.length; i += 1) {
|
||
const callback = render_callbacks[i];
|
||
if (!seen_callbacks.has(callback)) {
|
||
// ...so guard against infinite loops
|
||
seen_callbacks.add(callback);
|
||
callback();
|
||
}
|
||
}
|
||
render_callbacks.length = 0;
|
||
} while (dirty_components.length);
|
||
while (flush_callbacks.length) {
|
||
flush_callbacks.pop()();
|
||
}
|
||
update_scheduled = false;
|
||
flushing = false;
|
||
seen_callbacks.clear();
|
||
}
|
||
function update($$) {
|
||
if ($$.fragment !== null) {
|
||
$$.update();
|
||
run_all($$.before_update);
|
||
const dirty = $$.dirty;
|
||
$$.dirty = [-1];
|
||
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
||
$$.after_update.forEach(add_render_callback);
|
||
}
|
||
}
|
||
const outroing = new Set();
|
||
function transition_in(block, local) {
|
||
if (block && block.i) {
|
||
outroing.delete(block);
|
||
block.i(local);
|
||
}
|
||
}
|
||
function mount_component(component, target, anchor, customElement) {
|
||
const { fragment, on_mount, on_destroy, after_update } = component.$$;
|
||
fragment && fragment.m(target, anchor);
|
||
if (!customElement) {
|
||
// onMount happens before the initial afterUpdate
|
||
add_render_callback(() => {
|
||
const new_on_destroy = on_mount.map(run).filter(is_function);
|
||
if (on_destroy) {
|
||
on_destroy.push(...new_on_destroy);
|
||
}
|
||
else {
|
||
// Edge case - component was destroyed immediately,
|
||
// most likely as a result of a binding initialising
|
||
run_all(new_on_destroy);
|
||
}
|
||
component.$$.on_mount = [];
|
||
});
|
||
}
|
||
after_update.forEach(add_render_callback);
|
||
}
|
||
function destroy_component(component, detaching) {
|
||
const $$ = component.$$;
|
||
if ($$.fragment !== null) {
|
||
run_all($$.on_destroy);
|
||
$$.fragment && $$.fragment.d(detaching);
|
||
// TODO null out other refs, including component.$$ (but need to
|
||
// preserve final state?)
|
||
$$.on_destroy = $$.fragment = null;
|
||
$$.ctx = [];
|
||
}
|
||
}
|
||
function make_dirty(component, i) {
|
||
if (component.$$.dirty[0] === -1) {
|
||
dirty_components.push(component);
|
||
schedule_update();
|
||
component.$$.dirty.fill(0);
|
||
}
|
||
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
||
}
|
||
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
||
const parent_component = current_component;
|
||
set_current_component(component);
|
||
const $$ = component.$$ = {
|
||
fragment: null,
|
||
ctx: null,
|
||
// state
|
||
props,
|
||
update: noop,
|
||
not_equal,
|
||
bound: blank_object(),
|
||
// lifecycle
|
||
on_mount: [],
|
||
on_destroy: [],
|
||
on_disconnect: [],
|
||
before_update: [],
|
||
after_update: [],
|
||
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
||
// everything else
|
||
callbacks: blank_object(),
|
||
dirty,
|
||
skip_bound: false,
|
||
root: options.target || parent_component.$$.root
|
||
};
|
||
append_styles && append_styles($$.root);
|
||
let ready = false;
|
||
$$.ctx = instance
|
||
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
||
const value = rest.length ? rest[0] : ret;
|
||
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
||
if (!$$.skip_bound && $$.bound[i])
|
||
$$.bound[i](value);
|
||
if (ready)
|
||
make_dirty(component, i);
|
||
}
|
||
return ret;
|
||
})
|
||
: [];
|
||
$$.update();
|
||
ready = true;
|
||
run_all($$.before_update);
|
||
// `false` as a special case of no DOM component
|
||
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
||
if (options.target) {
|
||
if (options.hydrate) {
|
||
const nodes = children(options.target);
|
||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||
$$.fragment && $$.fragment.l(nodes);
|
||
nodes.forEach(detach);
|
||
}
|
||
else {
|
||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||
$$.fragment && $$.fragment.c();
|
||
}
|
||
if (options.intro)
|
||
transition_in(component.$$.fragment);
|
||
mount_component(component, options.target, options.anchor, options.customElement);
|
||
flush();
|
||
}
|
||
set_current_component(parent_component);
|
||
}
|
||
/**
|
||
* Base class for Svelte components. Used when dev=false.
|
||
*/
|
||
class SvelteComponent {
|
||
$destroy() {
|
||
destroy_component(this, 1);
|
||
this.$destroy = noop;
|
||
}
|
||
$on(type, callback) {
|
||
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
||
callbacks.push(callback);
|
||
return () => {
|
||
const index = callbacks.indexOf(callback);
|
||
if (index !== -1)
|
||
callbacks.splice(index, 1);
|
||
};
|
||
}
|
||
$set($$props) {
|
||
if (this.$$set && !is_empty($$props)) {
|
||
this.$$.skip_bound = true;
|
||
this.$$set($$props);
|
||
this.$$.skip_bound = false;
|
||
}
|
||
}
|
||
}
|
||
|
||
var pattern = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.matchAnyPattern = exports.extractTerms = exports.repeatedTimeunitPattern = void 0;
|
||
function repeatedTimeunitPattern(prefix, singleTimeunitPattern) {
|
||
const singleTimeunitPatternNoCapture = singleTimeunitPattern.replace(/\((?!\?)/g, "(?:");
|
||
return `${prefix}${singleTimeunitPatternNoCapture}\\s*(?:,?\\s{0,5}${singleTimeunitPatternNoCapture}){0,10}`;
|
||
}
|
||
exports.repeatedTimeunitPattern = repeatedTimeunitPattern;
|
||
function extractTerms(dictionary) {
|
||
let keys;
|
||
if (dictionary instanceof Array) {
|
||
keys = [...dictionary];
|
||
}
|
||
else if (dictionary instanceof Map) {
|
||
keys = Array.from(dictionary.keys());
|
||
}
|
||
else {
|
||
keys = Object.keys(dictionary);
|
||
}
|
||
return keys;
|
||
}
|
||
exports.extractTerms = extractTerms;
|
||
function matchAnyPattern(dictionary) {
|
||
const joinedTerms = extractTerms(dictionary)
|
||
.sort((a, b) => b.length - a.length)
|
||
.join("|")
|
||
.replace(/\./g, "\\.");
|
||
return `(?:${joinedTerms})`;
|
||
}
|
||
exports.matchAnyPattern = matchAnyPattern;
|
||
});
|
||
|
||
var dayjs_min = createCommonjsModule(function (module, exports) {
|
||
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
||
});
|
||
|
||
var years = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.findYearClosestToRef = exports.findMostLikelyADYear = void 0;
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
function findMostLikelyADYear(yearNumber) {
|
||
if (yearNumber < 100) {
|
||
if (yearNumber > 50) {
|
||
yearNumber = yearNumber + 1900;
|
||
}
|
||
else {
|
||
yearNumber = yearNumber + 2000;
|
||
}
|
||
}
|
||
return yearNumber;
|
||
}
|
||
exports.findMostLikelyADYear = findMostLikelyADYear;
|
||
function findYearClosestToRef(refDate, day, month) {
|
||
const refMoment = dayjs_1.default(refDate);
|
||
let dateMoment = refMoment;
|
||
dateMoment = dateMoment.month(month - 1);
|
||
dateMoment = dateMoment.date(day);
|
||
dateMoment = dateMoment.year(refMoment.year());
|
||
const nextYear = dateMoment.add(1, "y");
|
||
const lastYear = dateMoment.add(-1, "y");
|
||
if (Math.abs(nextYear.diff(refMoment)) < Math.abs(dateMoment.diff(refMoment))) {
|
||
dateMoment = nextYear;
|
||
}
|
||
else if (Math.abs(lastYear.diff(refMoment)) < Math.abs(dateMoment.diff(refMoment))) {
|
||
dateMoment = lastYear;
|
||
}
|
||
return dateMoment.year();
|
||
}
|
||
exports.findYearClosestToRef = findYearClosestToRef;
|
||
});
|
||
|
||
var constants$5 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.ORDINAL_WORD_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.FULL_MONTH_NAME_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0;
|
||
|
||
|
||
exports.WEEKDAY_DICTIONARY = {
|
||
sunday: 0,
|
||
sun: 0,
|
||
"sun.": 0,
|
||
monday: 1,
|
||
mon: 1,
|
||
"mon.": 1,
|
||
tuesday: 2,
|
||
tue: 2,
|
||
"tue.": 2,
|
||
wednesday: 3,
|
||
wed: 3,
|
||
"wed.": 3,
|
||
thursday: 4,
|
||
thurs: 4,
|
||
"thurs.": 4,
|
||
thur: 4,
|
||
"thur.": 4,
|
||
thu: 4,
|
||
"thu.": 4,
|
||
friday: 5,
|
||
fri: 5,
|
||
"fri.": 5,
|
||
saturday: 6,
|
||
sat: 6,
|
||
"sat.": 6,
|
||
};
|
||
exports.FULL_MONTH_NAME_DICTIONARY = {
|
||
january: 1,
|
||
february: 2,
|
||
march: 3,
|
||
april: 4,
|
||
may: 5,
|
||
june: 6,
|
||
july: 7,
|
||
august: 8,
|
||
september: 9,
|
||
october: 10,
|
||
november: 11,
|
||
december: 12,
|
||
};
|
||
exports.MONTH_DICTIONARY = Object.assign(Object.assign({}, exports.FULL_MONTH_NAME_DICTIONARY), { jan: 1, "jan.": 1, feb: 2, "feb.": 2, mar: 3, "mar.": 3, apr: 4, "apr.": 4, jun: 6, "jun.": 6, jul: 7, "jul.": 7, aug: 8, "aug.": 8, sep: 9, "sep.": 9, sept: 9, "sept.": 9, oct: 10, "oct.": 10, nov: 11, "nov.": 11, dec: 12, "dec.": 12 });
|
||
exports.INTEGER_WORD_DICTIONARY = {
|
||
one: 1,
|
||
two: 2,
|
||
three: 3,
|
||
four: 4,
|
||
five: 5,
|
||
six: 6,
|
||
seven: 7,
|
||
eight: 8,
|
||
nine: 9,
|
||
ten: 10,
|
||
eleven: 11,
|
||
twelve: 12,
|
||
};
|
||
exports.ORDINAL_WORD_DICTIONARY = {
|
||
first: 1,
|
||
second: 2,
|
||
third: 3,
|
||
fourth: 4,
|
||
fifth: 5,
|
||
sixth: 6,
|
||
seventh: 7,
|
||
eighth: 8,
|
||
ninth: 9,
|
||
tenth: 10,
|
||
eleventh: 11,
|
||
twelfth: 12,
|
||
thirteenth: 13,
|
||
fourteenth: 14,
|
||
fifteenth: 15,
|
||
sixteenth: 16,
|
||
seventeenth: 17,
|
||
eighteenth: 18,
|
||
nineteenth: 19,
|
||
twentieth: 20,
|
||
"twenty first": 21,
|
||
"twenty-first": 21,
|
||
"twenty second": 22,
|
||
"twenty-second": 22,
|
||
"twenty third": 23,
|
||
"twenty-third": 23,
|
||
"twenty fourth": 24,
|
||
"twenty-fourth": 24,
|
||
"twenty fifth": 25,
|
||
"twenty-fifth": 25,
|
||
"twenty sixth": 26,
|
||
"twenty-sixth": 26,
|
||
"twenty seventh": 27,
|
||
"twenty-seventh": 27,
|
||
"twenty eighth": 28,
|
||
"twenty-eighth": 28,
|
||
"twenty ninth": 29,
|
||
"twenty-ninth": 29,
|
||
"thirtieth": 30,
|
||
"thirty first": 31,
|
||
"thirty-first": 31,
|
||
};
|
||
exports.TIME_UNIT_DICTIONARY = {
|
||
sec: "second",
|
||
second: "second",
|
||
seconds: "second",
|
||
min: "minute",
|
||
mins: "minute",
|
||
minute: "minute",
|
||
minutes: "minute",
|
||
h: "hour",
|
||
hr: "hour",
|
||
hrs: "hour",
|
||
hour: "hour",
|
||
hours: "hour",
|
||
day: "d",
|
||
days: "d",
|
||
week: "week",
|
||
weeks: "week",
|
||
month: "month",
|
||
months: "month",
|
||
y: "year",
|
||
yr: "year",
|
||
year: "year",
|
||
years: "year",
|
||
};
|
||
exports.NUMBER_PATTERN = `(?:${pattern.matchAnyPattern(exports.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s*an?)?|an?(?:\\s*few)?|few|several|a?\\s*couple\\s*(?:of)?)`;
|
||
function parseNumberPattern(match) {
|
||
const num = match.toLowerCase();
|
||
if (exports.INTEGER_WORD_DICTIONARY[num] !== undefined) {
|
||
return exports.INTEGER_WORD_DICTIONARY[num];
|
||
}
|
||
else if (num === "a" || num === "an") {
|
||
return 1;
|
||
}
|
||
else if (num.match(/few/)) {
|
||
return 3;
|
||
}
|
||
else if (num.match(/half/)) {
|
||
return 0.5;
|
||
}
|
||
else if (num.match(/couple/)) {
|
||
return 2;
|
||
}
|
||
else if (num.match(/several/)) {
|
||
return 7;
|
||
}
|
||
return parseFloat(num);
|
||
}
|
||
exports.parseNumberPattern = parseNumberPattern;
|
||
exports.ORDINAL_NUMBER_PATTERN = `(?:${pattern.matchAnyPattern(exports.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;
|
||
function parseOrdinalNumberPattern(match) {
|
||
let num = match.toLowerCase();
|
||
if (exports.ORDINAL_WORD_DICTIONARY[num] !== undefined) {
|
||
return exports.ORDINAL_WORD_DICTIONARY[num];
|
||
}
|
||
num = num.replace(/(?:st|nd|rd|th)$/i, "");
|
||
return parseInt(num);
|
||
}
|
||
exports.parseOrdinalNumberPattern = parseOrdinalNumberPattern;
|
||
exports.YEAR_PATTERN = `(?:[1-9][0-9]{0,3}\\s*(?:BE|AD|BC)|[1-2][0-9]{3}|[5-9][0-9])`;
|
||
function parseYear(match) {
|
||
if (/BE/i.test(match)) {
|
||
match = match.replace(/BE/i, "");
|
||
return parseInt(match) - 543;
|
||
}
|
||
if (/BC/i.test(match)) {
|
||
match = match.replace(/BC/i, "");
|
||
return -parseInt(match);
|
||
}
|
||
if (/AD/i.test(match)) {
|
||
match = match.replace(/AD/i, "");
|
||
return parseInt(match);
|
||
}
|
||
const rawYearNumber = parseInt(match);
|
||
return years.findMostLikelyADYear(rawYearNumber);
|
||
}
|
||
exports.parseYear = parseYear;
|
||
const SINGLE_TIME_UNIT_PATTERN = `(${exports.NUMBER_PATTERN})\\s{0,5}(${pattern.matchAnyPattern(exports.TIME_UNIT_DICTIONARY)})\\s{0,5}`;
|
||
const SINGLE_TIME_UNIT_REGEX = new RegExp(SINGLE_TIME_UNIT_PATTERN, "i");
|
||
exports.TIME_UNITS_PATTERN = pattern.repeatedTimeunitPattern(`(?:(?:about|around)\\s*)?`, SINGLE_TIME_UNIT_PATTERN);
|
||
function parseTimeUnits(timeunitText) {
|
||
const fragments = {};
|
||
let remainingText = timeunitText;
|
||
let match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
||
while (match) {
|
||
collectDateTimeFragment(fragments, match);
|
||
remainingText = remainingText.substring(match[0].length);
|
||
match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
||
}
|
||
return fragments;
|
||
}
|
||
exports.parseTimeUnits = parseTimeUnits;
|
||
function collectDateTimeFragment(fragments, match) {
|
||
const num = parseNumberPattern(match[1]);
|
||
const unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()];
|
||
fragments[unit] = num;
|
||
}
|
||
});
|
||
|
||
var quarterOfYear = createCommonjsModule(function (module, exports) {
|
||
!function(t,n){module.exports=n();}(commonjsGlobal,(function(){var t="month",n="quarter";return function(e,i){var r=i.prototype;r.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var s=r.add;r.add=function(e,i){return e=Number(e),this.$utils().p(i)===n?this.add(3*e,t):s.bind(this)(e,i)};var u=r.startOf;r.startOf=function(e,i){var r=this.$utils(),s=!!r.u(i)||i;if(r.p(e)===n){var o=this.quarter()-1;return s?this.month(3*o).startOf(t).startOf("day"):this.month(3*o+2).endOf(t).endOf("day")}return u.bind(this)(e,i)};}}));
|
||
});
|
||
|
||
var dayjs = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.implySimilarTime = exports.assignSimilarTime = exports.assignSimilarDate = exports.assignTheNextDay = void 0;
|
||
function assignTheNextDay(component, targetDayJs) {
|
||
targetDayJs = targetDayJs.add(1, "day");
|
||
assignSimilarDate(component, targetDayJs);
|
||
implySimilarTime(component, targetDayJs);
|
||
}
|
||
exports.assignTheNextDay = assignTheNextDay;
|
||
function assignSimilarDate(component, targetDayJs) {
|
||
component.assign("day", targetDayJs.date());
|
||
component.assign("month", targetDayJs.month() + 1);
|
||
component.assign("year", targetDayJs.year());
|
||
}
|
||
exports.assignSimilarDate = assignSimilarDate;
|
||
function assignSimilarTime(component, targetDayJs) {
|
||
component.assign("hour", targetDayJs.hour());
|
||
component.assign("minute", targetDayJs.minute());
|
||
component.assign("second", targetDayJs.second());
|
||
component.assign("millisecond", targetDayJs.millisecond());
|
||
component.assign("timezoneOffset", targetDayJs.utcOffset());
|
||
}
|
||
exports.assignSimilarTime = assignSimilarTime;
|
||
function implySimilarTime(component, targetDayJs) {
|
||
component.imply("hour", targetDayJs.hour());
|
||
component.imply("minute", targetDayJs.minute());
|
||
component.imply("second", targetDayJs.second());
|
||
component.imply("millisecond", targetDayJs.millisecond());
|
||
component.imply("timezoneOffset", targetDayJs.utcOffset());
|
||
}
|
||
exports.implySimilarTime = implySimilarTime;
|
||
});
|
||
|
||
var results = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.ParsingResult = exports.ParsingComponents = void 0;
|
||
const quarterOfYear_1 = __importDefault(quarterOfYear);
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
dayjs_1.default.extend(quarterOfYear_1.default);
|
||
class ParsingComponents {
|
||
constructor(refDate, knownComponents) {
|
||
this.knownValues = {};
|
||
this.impliedValues = {};
|
||
if (knownComponents) {
|
||
for (const key in knownComponents) {
|
||
this.knownValues[key] = knownComponents[key];
|
||
}
|
||
}
|
||
const refDayJs = dayjs_1.default(refDate);
|
||
this.imply("day", refDayJs.date());
|
||
this.imply("month", refDayJs.month() + 1);
|
||
this.imply("year", refDayJs.year());
|
||
this.imply("hour", 12);
|
||
this.imply("minute", 0);
|
||
this.imply("second", 0);
|
||
this.imply("millisecond", 0);
|
||
}
|
||
get(component) {
|
||
if (component in this.knownValues) {
|
||
return this.knownValues[component];
|
||
}
|
||
if (component in this.impliedValues) {
|
||
return this.impliedValues[component];
|
||
}
|
||
return null;
|
||
}
|
||
isCertain(component) {
|
||
return component in this.knownValues;
|
||
}
|
||
getCertainComponents() {
|
||
return Object.keys(this.knownValues);
|
||
}
|
||
imply(component, value) {
|
||
if (component in this.knownValues) {
|
||
return this;
|
||
}
|
||
this.impliedValues[component] = value;
|
||
return this;
|
||
}
|
||
assign(component, value) {
|
||
this.knownValues[component] = value;
|
||
delete this.impliedValues[component];
|
||
return this;
|
||
}
|
||
delete(component) {
|
||
delete this.knownValues[component];
|
||
delete this.impliedValues[component];
|
||
}
|
||
clone() {
|
||
const component = new ParsingComponents(new Date());
|
||
component.knownValues = {};
|
||
component.impliedValues = {};
|
||
for (const key in this.knownValues) {
|
||
component.knownValues[key] = this.knownValues[key];
|
||
}
|
||
for (const key in this.impliedValues) {
|
||
component.impliedValues[key] = this.impliedValues[key];
|
||
}
|
||
return component;
|
||
}
|
||
isOnlyDate() {
|
||
return !this.isCertain("hour") && !this.isCertain("minute") && !this.isCertain("second");
|
||
}
|
||
isOnlyTime() {
|
||
return !this.isCertain("weekday") && !this.isCertain("day") && !this.isCertain("month");
|
||
}
|
||
isOnlyWeekdayComponent() {
|
||
return this.isCertain("weekday") && !this.isCertain("day") && !this.isCertain("month");
|
||
}
|
||
isOnlyDayMonthComponent() {
|
||
return this.isCertain("day") && this.isCertain("month") && !this.isCertain("year");
|
||
}
|
||
isValidDate() {
|
||
const date = this.isCertain("timezoneOffset") ? this.dateWithoutTimezoneAdjustment() : this.date();
|
||
if (date.getFullYear() !== this.get("year"))
|
||
return false;
|
||
if (date.getMonth() !== this.get("month") - 1)
|
||
return false;
|
||
if (date.getDate() !== this.get("day"))
|
||
return false;
|
||
if (this.get("hour") != null && date.getHours() != this.get("hour"))
|
||
return false;
|
||
if (this.get("minute") != null && date.getMinutes() != this.get("minute"))
|
||
return false;
|
||
return true;
|
||
}
|
||
toString() {
|
||
return `[ParsingComponents {knownValues: ${JSON.stringify(this.knownValues)}, impliedValues: ${JSON.stringify(this.impliedValues)}}]`;
|
||
}
|
||
dayjs() {
|
||
return dayjs_1.default(this.date());
|
||
}
|
||
date() {
|
||
const date = this.dateWithoutTimezoneAdjustment();
|
||
return new Date(date.getTime() + this.getTimezoneAdjustmentMinute(date) * 60000);
|
||
}
|
||
dateWithoutTimezoneAdjustment() {
|
||
const date = new Date(this.get("year"), this.get("month") - 1, this.get("day"), this.get("hour"), this.get("minute"), this.get("second"), this.get("millisecond"));
|
||
date.setFullYear(this.get("year"));
|
||
return date;
|
||
}
|
||
getTimezoneAdjustmentMinute(date) {
|
||
var _a;
|
||
date = date !== null && date !== void 0 ? date : new Date();
|
||
const currentTimezoneOffset = -date.getTimezoneOffset();
|
||
const targetTimezoneOffset = (_a = this.get("timezoneOffset")) !== null && _a !== void 0 ? _a : currentTimezoneOffset;
|
||
return currentTimezoneOffset - targetTimezoneOffset;
|
||
}
|
||
static createRelativeFromRefDate(refDate, fragments) {
|
||
let date = dayjs_1.default(refDate);
|
||
for (const key in fragments) {
|
||
date = date.add(fragments[key], key);
|
||
}
|
||
const components = new ParsingComponents(refDate);
|
||
if (fragments["hour"] || fragments["minute"] || fragments["second"]) {
|
||
dayjs.assignSimilarTime(components, date);
|
||
dayjs.assignSimilarDate(components, date);
|
||
}
|
||
else {
|
||
dayjs.implySimilarTime(components, date);
|
||
if (fragments["d"]) {
|
||
components.assign("day", date.date());
|
||
components.assign("month", date.month() + 1);
|
||
components.assign("year", date.year());
|
||
}
|
||
else {
|
||
if (fragments["week"]) {
|
||
components.imply("weekday", date.day());
|
||
}
|
||
components.imply("day", date.date());
|
||
if (fragments["month"]) {
|
||
components.assign("month", date.month() + 1);
|
||
components.assign("year", date.year());
|
||
}
|
||
else {
|
||
components.imply("month", date.month() + 1);
|
||
if (fragments["year"]) {
|
||
components.assign("year", date.year());
|
||
}
|
||
else {
|
||
components.imply("year", date.year());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
return components;
|
||
}
|
||
}
|
||
exports.ParsingComponents = ParsingComponents;
|
||
class ParsingResult {
|
||
constructor(refDate, index, text, start, end) {
|
||
this.refDate = refDate;
|
||
this.index = index;
|
||
this.text = text;
|
||
this.start = start || new ParsingComponents(this.refDate);
|
||
this.end = end;
|
||
}
|
||
clone() {
|
||
const result = new ParsingResult(this.refDate, this.index, this.text);
|
||
result.start = this.start ? this.start.clone() : null;
|
||
result.end = this.end ? this.end.clone() : null;
|
||
return result;
|
||
}
|
||
date() {
|
||
return this.start.date();
|
||
}
|
||
toString() {
|
||
return `[ParsingResult {index: ${this.index}, text: '${this.text}', ...}]`;
|
||
}
|
||
}
|
||
exports.ParsingResult = ParsingResult;
|
||
});
|
||
|
||
var AbstractParserWithWordBoundary = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.AbstractParserWithWordBoundaryChecking = void 0;
|
||
class AbstractParserWithWordBoundaryChecking {
|
||
constructor() {
|
||
this.cachedInnerPattern = null;
|
||
this.cachedPattern = null;
|
||
}
|
||
pattern(context) {
|
||
const innerPattern = this.innerPattern(context);
|
||
if (innerPattern == this.cachedInnerPattern) {
|
||
return this.cachedPattern;
|
||
}
|
||
this.cachedPattern = new RegExp(`(\\W|^)${innerPattern.source}`, innerPattern.flags);
|
||
this.cachedInnerPattern = innerPattern;
|
||
return this.cachedPattern;
|
||
}
|
||
extract(context, match) {
|
||
const header = match[1];
|
||
match.index = match.index + header.length;
|
||
match[0] = match[0].substring(header.length);
|
||
for (let i = 2; i < match.length; i++) {
|
||
match[i - 1] = match[i];
|
||
}
|
||
return this.innerExtract(context, match);
|
||
}
|
||
}
|
||
exports.AbstractParserWithWordBoundaryChecking = AbstractParserWithWordBoundaryChecking;
|
||
});
|
||
|
||
var ENTimeUnitWithinFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
const PATTERN_WITH_PREFIX = new RegExp(`(?:within|in|for)\\s*` +
|
||
`(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${constants$5.TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
||
const PATTERN_WITHOUT_PREFIX = new RegExp(`(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${constants$5.TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
||
class ENTimeUnitWithinFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return context.option.forwardDate ? PATTERN_WITHOUT_PREFIX : PATTERN_WITH_PREFIX;
|
||
}
|
||
innerExtract(context, match) {
|
||
const timeUnits = constants$5.parseTimeUnits(match[1]);
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, timeUnits);
|
||
}
|
||
}
|
||
exports.default = ENTimeUnitWithinFormatParser;
|
||
});
|
||
|
||
var ENMonthNameLittleEndianParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const constants_2 = constants$5;
|
||
const constants_3 = constants$5;
|
||
|
||
|
||
const PATTERN = new RegExp("(?:on\\s*?)?" +
|
||
`(${constants_3.ORDINAL_NUMBER_PATTERN})` +
|
||
"(?:\\s*" +
|
||
"(?:to|\\-|\\–|until|through|till|\\s)\\s*" +
|
||
`(${constants_3.ORDINAL_NUMBER_PATTERN})` +
|
||
")?" +
|
||
"(?:-|/|\\s*(?:of)?\\s*)" +
|
||
"(" +
|
||
pattern.matchAnyPattern(constants$5.MONTH_DICTIONARY) +
|
||
")" +
|
||
"(?:" +
|
||
"(?:-|/|,?\\s*)" +
|
||
`(${constants_2.YEAR_PATTERN}(?![^\\s]\\d))` +
|
||
")?" +
|
||
"(?=\\W|$)", "i");
|
||
const DATE_GROUP = 1;
|
||
const DATE_TO_GROUP = 2;
|
||
const MONTH_NAME_GROUP = 3;
|
||
const YEAR_GROUP = 4;
|
||
class ENMonthNameLittleEndianParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const result = context.createParsingResult(match.index, match[0]);
|
||
const month = constants$5.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
||
const day = constants_3.parseOrdinalNumberPattern(match[DATE_GROUP]);
|
||
if (day > 31) {
|
||
match.index = match.index + match[DATE_GROUP].length;
|
||
return null;
|
||
}
|
||
result.start.assign("month", month);
|
||
result.start.assign("day", day);
|
||
if (match[YEAR_GROUP]) {
|
||
const yearNumber = constants_2.parseYear(match[YEAR_GROUP]);
|
||
result.start.assign("year", yearNumber);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, day, month);
|
||
result.start.imply("year", year);
|
||
}
|
||
if (match[DATE_TO_GROUP]) {
|
||
const endDate = constants_3.parseOrdinalNumberPattern(match[DATE_TO_GROUP]);
|
||
result.end = result.start.clone();
|
||
result.end.assign("day", endDate);
|
||
}
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = ENMonthNameLittleEndianParser;
|
||
});
|
||
|
||
var ENMonthNameMiddleEndianParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const constants_2 = constants$5;
|
||
const constants_3 = constants$5;
|
||
|
||
|
||
const PATTERN = new RegExp(`(${pattern.matchAnyPattern(constants$5.MONTH_DICTIONARY)})` +
|
||
"(?:-|/|\\s*,?\\s*)" +
|
||
`(${constants_2.ORDINAL_NUMBER_PATTERN})(?!\\s*(?:am|pm))\\s*` +
|
||
"(?:" +
|
||
"(?:to|\\-)\\s*" +
|
||
`(${constants_2.ORDINAL_NUMBER_PATTERN})\\s*` +
|
||
")?" +
|
||
"(?:" +
|
||
"(?:-|/|\\s*,?\\s*)" +
|
||
`(${constants_3.YEAR_PATTERN})` +
|
||
")?" +
|
||
"(?=\\W|$)(?!\\:\\d)", "i");
|
||
const MONTH_NAME_GROUP = 1;
|
||
const DATE_GROUP = 2;
|
||
const DATE_TO_GROUP = 3;
|
||
const YEAR_GROUP = 4;
|
||
class ENMonthNameMiddleEndianParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const month = constants$5.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
||
const day = constants_2.parseOrdinalNumberPattern(match[DATE_GROUP]);
|
||
if (day > 31) {
|
||
return null;
|
||
}
|
||
const components = context.createParsingComponents({
|
||
day: day,
|
||
month: month,
|
||
});
|
||
if (match[YEAR_GROUP]) {
|
||
const year = constants_3.parseYear(match[YEAR_GROUP]);
|
||
components.assign("year", year);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, day, month);
|
||
components.imply("year", year);
|
||
}
|
||
if (!match[DATE_TO_GROUP]) {
|
||
return components;
|
||
}
|
||
const endDate = constants_2.parseOrdinalNumberPattern(match[DATE_TO_GROUP]);
|
||
const result = context.createParsingResult(match.index, match[0]);
|
||
result.start = components;
|
||
result.end = components.clone();
|
||
result.end.assign("day", endDate);
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = ENMonthNameMiddleEndianParser;
|
||
});
|
||
|
||
var ENMonthNameParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
const constants_2 = constants$5;
|
||
|
||
const PATTERN = new RegExp(`((?:in)\\s*)?` +
|
||
`(${pattern.matchAnyPattern(constants$5.MONTH_DICTIONARY)})` +
|
||
`\\s*` +
|
||
`(?:` +
|
||
`[,-]?\\s*(${constants_2.YEAR_PATTERN})?` +
|
||
")?" +
|
||
"(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)", "i");
|
||
const PREFIX_GROUP = 1;
|
||
const MONTH_NAME_GROUP = 2;
|
||
const YEAR_GROUP = 3;
|
||
class ENMonthNameParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const monthName = match[MONTH_NAME_GROUP].toLowerCase();
|
||
if (match[0].length <= 3 && !constants$5.FULL_MONTH_NAME_DICTIONARY[monthName]) {
|
||
return null;
|
||
}
|
||
const result = context.createParsingResult(match.index + (match[PREFIX_GROUP] || "").length, match.index + match[0].length);
|
||
result.start.imply("day", 1);
|
||
const month = constants$5.MONTH_DICTIONARY[monthName];
|
||
result.start.assign("month", month);
|
||
if (match[YEAR_GROUP]) {
|
||
const year = constants_2.parseYear(match[YEAR_GROUP]);
|
||
result.start.assign("year", year);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, 1, month);
|
||
result.start.imply("year", year);
|
||
}
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = ENMonthNameParser;
|
||
});
|
||
|
||
var ENCasualYearMonthDayParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
const PATTERN = new RegExp(`([0-9]{4})[\\.\\/\\s]` +
|
||
`(?:(${pattern.matchAnyPattern(constants$5.MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]` +
|
||
`([0-9]{1,2})` +
|
||
"(?=\\W|$)", "i");
|
||
const YEAR_NUMBER_GROUP = 1;
|
||
const MONTH_NAME_GROUP = 2;
|
||
const MONTH_NUMBER_GROUP = 3;
|
||
const DATE_NUMBER_GROUP = 4;
|
||
class ENCasualYearMonthDayParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const month = match[MONTH_NUMBER_GROUP]
|
||
? parseInt(match[MONTH_NUMBER_GROUP])
|
||
: constants$5.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
||
if (month < 1 || month > 12) {
|
||
return null;
|
||
}
|
||
const year = parseInt(match[YEAR_NUMBER_GROUP]);
|
||
const day = parseInt(match[DATE_NUMBER_GROUP]);
|
||
return {
|
||
day: day,
|
||
month: month,
|
||
year: year,
|
||
};
|
||
}
|
||
}
|
||
exports.default = ENCasualYearMonthDayParser;
|
||
});
|
||
|
||
var ENSlashMonthFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
const PATTERN = new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})" + "", "i");
|
||
const MONTH_GROUP = 1;
|
||
const YEAR_GROUP = 2;
|
||
class ENSlashMonthFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const year = parseInt(match[YEAR_GROUP]);
|
||
const month = parseInt(match[MONTH_GROUP]);
|
||
return context.createParsingComponents().imply("day", 1).assign("month", month).assign("year", year);
|
||
}
|
||
}
|
||
exports.default = ENSlashMonthFormatParser;
|
||
});
|
||
|
||
var AbstractTimeExpressionParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.AbstractTimeExpressionParser = void 0;
|
||
|
||
function primaryTimePattern(primaryPrefix, primarySuffix) {
|
||
return new RegExp("(^|\\s|T|\\b)" +
|
||
`${primaryPrefix}` +
|
||
"(\\d{1,4})" +
|
||
"(?:" +
|
||
"(?:\\.|\\:|\\:)" +
|
||
"(\\d{1,2})" +
|
||
"(?:" +
|
||
"(?:\\:|\\:)" +
|
||
"(\\d{2})" +
|
||
"(?:\\.(\\d{1,6}))?" +
|
||
")?" +
|
||
")?" +
|
||
"(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?" +
|
||
`${primarySuffix}`, "i");
|
||
}
|
||
function followingTimePatten(followingPhase, followingSuffix) {
|
||
return new RegExp(`^(${followingPhase})` +
|
||
"(\\d{1,4})" +
|
||
"(?:" +
|
||
"(?:\\.|\\:|\\:)" +
|
||
"(\\d{1,2})" +
|
||
"(?:" +
|
||
"(?:\\.|\\:|\\:)" +
|
||
"(\\d{1,2})(?:\\.(\\d{1,6}))?" +
|
||
")?" +
|
||
")?" +
|
||
"(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?" +
|
||
`${followingSuffix}`, "i");
|
||
}
|
||
const HOUR_GROUP = 2;
|
||
const MINUTE_GROUP = 3;
|
||
const SECOND_GROUP = 4;
|
||
const MILLI_SECOND_GROUP = 5;
|
||
const AM_PM_HOUR_GROUP = 6;
|
||
class AbstractTimeExpressionParser {
|
||
constructor(strictMode = false) {
|
||
this.cachedPrimaryPrefix = null;
|
||
this.cachedPrimarySuffix = null;
|
||
this.cachedPrimaryTimePattern = null;
|
||
this.cachedFollowingPhase = null;
|
||
this.cachedFollowingSuffix = null;
|
||
this.cachedFollowingTimePatten = null;
|
||
this.strictMode = strictMode;
|
||
}
|
||
primarySuffix() {
|
||
return "(?=\\W|$)";
|
||
}
|
||
followingSuffix() {
|
||
return "(?=\\W|$)";
|
||
}
|
||
pattern(context) {
|
||
return this.getPrimaryTimePatternThroughCache();
|
||
}
|
||
extract(context, match) {
|
||
const startComponents = this.extractPrimaryTimeComponents(context, match);
|
||
if (!startComponents) {
|
||
match.index += match[0].length;
|
||
return null;
|
||
}
|
||
const index = match.index + match[1].length;
|
||
const text = match[0].substring(match[1].length);
|
||
const result = context.createParsingResult(index, text, startComponents);
|
||
match.index += match[0].length;
|
||
const remainingText = context.text.substring(match.index);
|
||
const followingPattern = this.getFollowingTimePatternThroughCache();
|
||
const followingMatch = followingPattern.exec(remainingText);
|
||
if (!followingMatch ||
|
||
followingMatch[0].match(/^\s*([+-])\s*\d{3,4}$/)) {
|
||
return this.checkAndReturnWithoutFollowingPattern(result);
|
||
}
|
||
result.end = this.extractFollowingTimeComponents(context, followingMatch, result);
|
||
if (result.end) {
|
||
result.text += followingMatch[0];
|
||
}
|
||
return this.checkAndReturnWithFollowingPattern(result);
|
||
}
|
||
extractPrimaryTimeComponents(context, match, strict = false) {
|
||
const components = context.createParsingComponents();
|
||
let minute = 0;
|
||
let meridiem = null;
|
||
let hour = parseInt(match[HOUR_GROUP]);
|
||
if (hour > 100) {
|
||
if (this.strictMode || match[MINUTE_GROUP] != null) {
|
||
return null;
|
||
}
|
||
minute = hour % 100;
|
||
hour = Math.floor(hour / 100);
|
||
}
|
||
if (hour > 24) {
|
||
return null;
|
||
}
|
||
if (match[MINUTE_GROUP] != null) {
|
||
if (match[MINUTE_GROUP].length == 1 && !match[AM_PM_HOUR_GROUP]) {
|
||
return null;
|
||
}
|
||
minute = parseInt(match[MINUTE_GROUP]);
|
||
}
|
||
if (minute >= 60) {
|
||
return null;
|
||
}
|
||
if (hour > 12) {
|
||
meridiem = dist.Meridiem.PM;
|
||
}
|
||
if (match[AM_PM_HOUR_GROUP] != null) {
|
||
if (hour > 12)
|
||
return null;
|
||
const ampm = match[AM_PM_HOUR_GROUP][0].toLowerCase();
|
||
if (ampm == "a") {
|
||
meridiem = dist.Meridiem.AM;
|
||
if (hour == 12) {
|
||
hour = 0;
|
||
}
|
||
}
|
||
if (ampm == "p") {
|
||
meridiem = dist.Meridiem.PM;
|
||
if (hour != 12) {
|
||
hour += 12;
|
||
}
|
||
}
|
||
}
|
||
components.assign("hour", hour);
|
||
components.assign("minute", minute);
|
||
if (meridiem !== null) {
|
||
components.assign("meridiem", meridiem);
|
||
}
|
||
else {
|
||
if (hour < 12) {
|
||
components.imply("meridiem", dist.Meridiem.AM);
|
||
}
|
||
else {
|
||
components.imply("meridiem", dist.Meridiem.PM);
|
||
}
|
||
}
|
||
if (match[MILLI_SECOND_GROUP] != null) {
|
||
const millisecond = parseInt(match[MILLI_SECOND_GROUP].substring(0, 3));
|
||
if (millisecond >= 1000)
|
||
return null;
|
||
components.assign("millisecond", millisecond);
|
||
}
|
||
if (match[SECOND_GROUP] != null) {
|
||
const second = parseInt(match[SECOND_GROUP]);
|
||
if (second >= 60)
|
||
return null;
|
||
components.assign("second", second);
|
||
}
|
||
return components;
|
||
}
|
||
extractFollowingTimeComponents(context, match, result) {
|
||
const components = context.createParsingComponents();
|
||
if (match[MILLI_SECOND_GROUP] != null) {
|
||
const millisecond = parseInt(match[MILLI_SECOND_GROUP].substring(0, 3));
|
||
if (millisecond >= 1000)
|
||
return null;
|
||
components.assign("millisecond", millisecond);
|
||
}
|
||
if (match[SECOND_GROUP] != null) {
|
||
const second = parseInt(match[SECOND_GROUP]);
|
||
if (second >= 60)
|
||
return null;
|
||
components.assign("second", second);
|
||
}
|
||
let hour = parseInt(match[HOUR_GROUP]);
|
||
let minute = 0;
|
||
let meridiem = -1;
|
||
if (match[MINUTE_GROUP] != null) {
|
||
minute = parseInt(match[MINUTE_GROUP]);
|
||
}
|
||
else if (hour > 100) {
|
||
minute = hour % 100;
|
||
hour = Math.floor(hour / 100);
|
||
}
|
||
if (minute >= 60 || hour > 24) {
|
||
return null;
|
||
}
|
||
if (hour >= 12) {
|
||
meridiem = dist.Meridiem.PM;
|
||
}
|
||
if (match[AM_PM_HOUR_GROUP] != null) {
|
||
if (hour > 12) {
|
||
return null;
|
||
}
|
||
const ampm = match[AM_PM_HOUR_GROUP][0].toLowerCase();
|
||
if (ampm == "a") {
|
||
meridiem = dist.Meridiem.AM;
|
||
if (hour == 12) {
|
||
hour = 0;
|
||
if (!components.isCertain("day")) {
|
||
components.imply("day", components.get("day") + 1);
|
||
}
|
||
}
|
||
}
|
||
if (ampm == "p") {
|
||
meridiem = dist.Meridiem.PM;
|
||
if (hour != 12)
|
||
hour += 12;
|
||
}
|
||
if (!result.start.isCertain("meridiem")) {
|
||
if (meridiem == dist.Meridiem.AM) {
|
||
result.start.imply("meridiem", dist.Meridiem.AM);
|
||
if (result.start.get("hour") == 12) {
|
||
result.start.assign("hour", 0);
|
||
}
|
||
}
|
||
else {
|
||
result.start.imply("meridiem", dist.Meridiem.PM);
|
||
if (result.start.get("hour") != 12) {
|
||
result.start.assign("hour", result.start.get("hour") + 12);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
components.assign("hour", hour);
|
||
components.assign("minute", minute);
|
||
if (meridiem >= 0) {
|
||
components.assign("meridiem", meridiem);
|
||
}
|
||
else {
|
||
const startAtPM = result.start.isCertain("meridiem") && result.start.get("hour") > 12;
|
||
if (startAtPM) {
|
||
if (result.start.get("hour") - 12 > hour) {
|
||
components.imply("meridiem", dist.Meridiem.AM);
|
||
}
|
||
else if (hour <= 12) {
|
||
components.assign("hour", hour + 12);
|
||
components.assign("meridiem", dist.Meridiem.PM);
|
||
}
|
||
}
|
||
else if (hour > 12) {
|
||
components.imply("meridiem", dist.Meridiem.PM);
|
||
}
|
||
else if (hour <= 12) {
|
||
components.imply("meridiem", dist.Meridiem.AM);
|
||
}
|
||
}
|
||
if (components.date().getTime() < result.start.date().getTime()) {
|
||
components.imply("day", components.get("day") + 1);
|
||
}
|
||
return components;
|
||
}
|
||
checkAndReturnWithoutFollowingPattern(result) {
|
||
if (result.text.match(/^\d$/)) {
|
||
return null;
|
||
}
|
||
const endingWithNumbers = result.text.match(/[^\d:.](\d[\d.]+)$/);
|
||
if (endingWithNumbers) {
|
||
const endingNumbers = endingWithNumbers[1];
|
||
if (this.strictMode) {
|
||
return null;
|
||
}
|
||
if (endingNumbers.includes(".") && !endingNumbers.match(/\d(\.\d{2})+$/)) {
|
||
return null;
|
||
}
|
||
const endingNumberVal = parseInt(endingNumbers);
|
||
if (endingNumberVal > 24) {
|
||
return null;
|
||
}
|
||
}
|
||
return result;
|
||
}
|
||
checkAndReturnWithFollowingPattern(result) {
|
||
if (result.text.match(/^\d+-\d+$/)) {
|
||
return null;
|
||
}
|
||
const endingWithNumbers = result.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);
|
||
if (endingWithNumbers) {
|
||
if (this.strictMode) {
|
||
return null;
|
||
}
|
||
const startingNumbers = endingWithNumbers[1];
|
||
const endingNumbers = endingWithNumbers[2];
|
||
if (endingNumbers.includes(".") && !endingNumbers.match(/\d(\.\d{2})+$/)) {
|
||
return null;
|
||
}
|
||
const endingNumberVal = parseInt(endingNumbers);
|
||
const startingNumberVal = parseInt(startingNumbers);
|
||
if (endingNumberVal > 24 || startingNumberVal > 24) {
|
||
return null;
|
||
}
|
||
}
|
||
return result;
|
||
}
|
||
getPrimaryTimePatternThroughCache() {
|
||
const primaryPrefix = this.primaryPrefix();
|
||
const primarySuffix = this.primarySuffix();
|
||
if (this.cachedPrimaryPrefix === primaryPrefix && this.cachedPrimarySuffix === primarySuffix) {
|
||
return this.cachedPrimaryTimePattern;
|
||
}
|
||
this.cachedPrimaryTimePattern = primaryTimePattern(primaryPrefix, primarySuffix);
|
||
this.cachedPrimaryPrefix = primaryPrefix;
|
||
this.cachedPrimarySuffix = primarySuffix;
|
||
return this.cachedPrimaryTimePattern;
|
||
}
|
||
getFollowingTimePatternThroughCache() {
|
||
const followingPhase = this.followingPhase();
|
||
const followingSuffix = this.followingSuffix();
|
||
if (this.cachedFollowingPhase === followingPhase && this.cachedFollowingSuffix === followingSuffix) {
|
||
return this.cachedFollowingTimePatten;
|
||
}
|
||
this.cachedFollowingTimePatten = followingTimePatten(followingPhase, followingSuffix);
|
||
this.cachedFollowingPhase = followingPhase;
|
||
this.cachedFollowingSuffix = followingSuffix;
|
||
return this.cachedFollowingTimePatten;
|
||
}
|
||
}
|
||
exports.AbstractTimeExpressionParser = AbstractTimeExpressionParser;
|
||
});
|
||
|
||
var ENTimeExpressionParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
class ENTimeExpressionParser extends AbstractTimeExpressionParser_1.AbstractTimeExpressionParser {
|
||
constructor(strictMode) {
|
||
super(strictMode);
|
||
}
|
||
followingPhase() {
|
||
return "\\s*(?:\\-|\\–|\\~|\\〜|to|\\?)\\s*";
|
||
}
|
||
primaryPrefix() {
|
||
return "(?:(?:at|from)\\s*)??";
|
||
}
|
||
primarySuffix() {
|
||
return "(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)";
|
||
}
|
||
extractPrimaryTimeComponents(context, match) {
|
||
const components = super.extractPrimaryTimeComponents(context, match);
|
||
if (components) {
|
||
if (match[0].endsWith("night")) {
|
||
const hour = components.get("hour");
|
||
if (hour >= 6 && hour < 12) {
|
||
components.assign("hour", components.get("hour") + 12);
|
||
components.assign("meridiem", dist.Meridiem.PM);
|
||
}
|
||
else if (hour < 6) {
|
||
components.assign("meridiem", dist.Meridiem.AM);
|
||
}
|
||
}
|
||
if (match[0].endsWith("afternoon")) {
|
||
components.assign("meridiem", dist.Meridiem.PM);
|
||
const hour = components.get("hour");
|
||
if (hour >= 0 && hour <= 6) {
|
||
components.assign("hour", components.get("hour") + 12);
|
||
}
|
||
}
|
||
if (match[0].endsWith("morning")) {
|
||
components.assign("meridiem", dist.Meridiem.AM);
|
||
const hour = components.get("hour");
|
||
if (hour < 12) {
|
||
components.assign("hour", components.get("hour"));
|
||
}
|
||
}
|
||
}
|
||
return components;
|
||
}
|
||
}
|
||
exports.default = ENTimeExpressionParser;
|
||
});
|
||
|
||
var timeunits = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.addImpliedTimeUnits = exports.reverseTimeUnits = void 0;
|
||
function reverseTimeUnits(timeUnits) {
|
||
const reversed = {};
|
||
for (const key in timeUnits) {
|
||
reversed[key] = -timeUnits[key];
|
||
}
|
||
return reversed;
|
||
}
|
||
exports.reverseTimeUnits = reverseTimeUnits;
|
||
function addImpliedTimeUnits(components, timeUnits) {
|
||
const output = components.clone();
|
||
let date = components.dayjs();
|
||
for (const key in timeUnits) {
|
||
date = date.add(timeUnits[key], key);
|
||
}
|
||
if ("day" in timeUnits || "d" in timeUnits || "week" in timeUnits || "month" in timeUnits || "year" in timeUnits) {
|
||
output.imply("day", date.date());
|
||
output.imply("month", date.month() + 1);
|
||
output.imply("year", date.year());
|
||
}
|
||
if ("second" in timeUnits || "minute" in timeUnits || "hour" in timeUnits) {
|
||
output.imply("second", date.second());
|
||
output.imply("minute", date.minute());
|
||
output.imply("hour", date.hour());
|
||
}
|
||
return output;
|
||
}
|
||
exports.addImpliedTimeUnits = addImpliedTimeUnits;
|
||
});
|
||
|
||
var ENTimeUnitAgoFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
const PATTERN = new RegExp("" + "(" + constants$5.TIME_UNITS_PATTERN + ")" + "(?:ago|before|earlier)(?=(?:\\W|$))", "i");
|
||
const STRICT_PATTERN = new RegExp("" + "(" + constants$5.TIME_UNITS_PATTERN + ")" + "ago(?=(?:\\W|$))", "i");
|
||
class ENTimeUnitAgoFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
constructor(strictMode) {
|
||
super();
|
||
this.strictMode = strictMode;
|
||
}
|
||
innerPattern() {
|
||
return this.strictMode ? STRICT_PATTERN : PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const timeUnits = constants$5.parseTimeUnits(match[1]);
|
||
const outputTimeUnits = timeunits.reverseTimeUnits(timeUnits);
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, outputTimeUnits);
|
||
}
|
||
}
|
||
exports.default = ENTimeUnitAgoFormatParser;
|
||
});
|
||
|
||
var ENTimeUnitLaterFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
const PATTERN = new RegExp("" + "(" + constants$5.TIME_UNITS_PATTERN + ")" + "(later|after|from now|henceforth|forward|out)" + "(?=(?:\\W|$))", "i");
|
||
const STRICT_PATTERN = new RegExp("" + "(" + constants$5.TIME_UNITS_PATTERN + ")" + "(later|from now)" + "(?=(?:\\W|$))", "i");
|
||
const GROUP_NUM_TIMEUNITS = 1;
|
||
class ENTimeUnitLaterFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
constructor(strictMode) {
|
||
super();
|
||
this.strictMode = strictMode;
|
||
}
|
||
innerPattern() {
|
||
return this.strictMode ? STRICT_PATTERN : PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const fragments = constants$5.parseTimeUnits(match[GROUP_NUM_TIMEUNITS]);
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, fragments);
|
||
}
|
||
}
|
||
exports.default = ENTimeUnitLaterFormatParser;
|
||
});
|
||
|
||
var abstractRefiners = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.MergingRefiner = exports.Filter = void 0;
|
||
class Filter {
|
||
refine(context, results) {
|
||
return results.filter((r) => this.isValid(context, r));
|
||
}
|
||
}
|
||
exports.Filter = Filter;
|
||
class MergingRefiner {
|
||
refine(context, results) {
|
||
if (results.length < 2) {
|
||
return results;
|
||
}
|
||
const mergedResults = [];
|
||
let curResult = results[0];
|
||
let nextResult = null;
|
||
for (let i = 1; i < results.length; i++) {
|
||
nextResult = results[i];
|
||
const textBetween = context.text.substring(curResult.index + curResult.text.length, nextResult.index);
|
||
if (!this.shouldMergeResults(textBetween, curResult, nextResult, context)) {
|
||
mergedResults.push(curResult);
|
||
curResult = nextResult;
|
||
}
|
||
else {
|
||
const left = curResult;
|
||
const right = nextResult;
|
||
const mergedResult = this.mergeResults(textBetween, left, right, context);
|
||
context.debug(() => {
|
||
console.log(`${this.constructor.name} merged ${left} and ${right} into ${mergedResult}`);
|
||
});
|
||
curResult = mergedResult;
|
||
}
|
||
}
|
||
if (curResult != null) {
|
||
mergedResults.push(curResult);
|
||
}
|
||
return mergedResults;
|
||
}
|
||
}
|
||
exports.MergingRefiner = MergingRefiner;
|
||
});
|
||
|
||
var AbstractMergeDateRangeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
class AbstractMergeDateRangeRefiner extends abstractRefiners.MergingRefiner {
|
||
shouldMergeResults(textBetween, currentResult, nextResult) {
|
||
return !currentResult.end && !nextResult.end && textBetween.match(this.patternBetween()) != null;
|
||
}
|
||
mergeResults(textBetween, fromResult, toResult) {
|
||
if (!fromResult.start.isOnlyWeekdayComponent() && !toResult.start.isOnlyWeekdayComponent()) {
|
||
toResult.start.getCertainComponents().forEach((key) => {
|
||
if (!fromResult.start.isCertain(key)) {
|
||
fromResult.start.assign(key, toResult.start.get(key));
|
||
}
|
||
});
|
||
fromResult.start.getCertainComponents().forEach((key) => {
|
||
if (!toResult.start.isCertain(key)) {
|
||
toResult.start.assign(key, fromResult.start.get(key));
|
||
}
|
||
});
|
||
}
|
||
if (fromResult.start.date().getTime() > toResult.start.date().getTime()) {
|
||
let fromMoment = fromResult.start.dayjs();
|
||
let toMoment = toResult.start.dayjs();
|
||
if (fromResult.start.isOnlyWeekdayComponent() && fromMoment.add(-7, "days").isBefore(toMoment)) {
|
||
fromMoment = fromMoment.add(-7, "days");
|
||
fromResult.start.imply("day", fromMoment.date());
|
||
fromResult.start.imply("month", fromMoment.month() + 1);
|
||
fromResult.start.imply("year", fromMoment.year());
|
||
}
|
||
else if (toResult.start.isOnlyWeekdayComponent() && toMoment.add(7, "days").isAfter(fromMoment)) {
|
||
toMoment = toMoment.add(7, "days");
|
||
toResult.start.imply("day", toMoment.date());
|
||
toResult.start.imply("month", toMoment.month() + 1);
|
||
toResult.start.imply("year", toMoment.year());
|
||
}
|
||
else {
|
||
[toResult, fromResult] = [fromResult, toResult];
|
||
}
|
||
}
|
||
const result = fromResult.clone();
|
||
result.start = fromResult.start;
|
||
result.end = toResult.start;
|
||
result.index = Math.min(fromResult.index, toResult.index);
|
||
if (fromResult.index < toResult.index) {
|
||
result.text = fromResult.text + textBetween + toResult.text;
|
||
}
|
||
else {
|
||
result.text = toResult.text + textBetween + fromResult.text;
|
||
}
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = AbstractMergeDateRangeRefiner;
|
||
});
|
||
|
||
var ENMergeDateRangeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateRangeRefiner_1$1 = __importDefault(AbstractMergeDateRangeRefiner_1);
|
||
class ENMergeDateRangeRefiner extends AbstractMergeDateRangeRefiner_1$1.default {
|
||
patternBetween() {
|
||
return /^\s*(to|-)\s*$/i;
|
||
}
|
||
}
|
||
exports.default = ENMergeDateRangeRefiner;
|
||
});
|
||
|
||
var mergingCalculation = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.mergeDateTimeComponent = exports.mergeDateTimeResult = void 0;
|
||
|
||
function mergeDateTimeResult(dateResult, timeResult) {
|
||
const result = dateResult.clone();
|
||
const beginDate = dateResult.start;
|
||
const beginTime = timeResult.start;
|
||
result.start = mergeDateTimeComponent(beginDate, beginTime);
|
||
if (dateResult.end != null || timeResult.end != null) {
|
||
const endDate = dateResult.end == null ? dateResult.start : dateResult.end;
|
||
const endTime = timeResult.end == null ? timeResult.start : timeResult.end;
|
||
const endDateTime = mergeDateTimeComponent(endDate, endTime);
|
||
if (dateResult.end == null && endDateTime.date().getTime() < result.start.date().getTime()) {
|
||
if (endDateTime.isCertain("day")) {
|
||
endDateTime.assign("day", endDateTime.get("day") + 1);
|
||
}
|
||
else {
|
||
endDateTime.imply("day", endDateTime.get("day") + 1);
|
||
}
|
||
}
|
||
result.end = endDateTime;
|
||
}
|
||
return result;
|
||
}
|
||
exports.mergeDateTimeResult = mergeDateTimeResult;
|
||
function mergeDateTimeComponent(dateComponent, timeComponent) {
|
||
const dateTimeComponent = dateComponent.clone();
|
||
if (timeComponent.isCertain("hour")) {
|
||
dateTimeComponent.assign("hour", timeComponent.get("hour"));
|
||
dateTimeComponent.assign("minute", timeComponent.get("minute"));
|
||
if (timeComponent.isCertain("second")) {
|
||
dateTimeComponent.assign("second", timeComponent.get("second"));
|
||
if (timeComponent.isCertain("millisecond")) {
|
||
dateTimeComponent.assign("millisecond", timeComponent.get("millisecond"));
|
||
}
|
||
else {
|
||
dateTimeComponent.imply("millisecond", timeComponent.get("millisecond"));
|
||
}
|
||
}
|
||
else {
|
||
dateTimeComponent.imply("second", timeComponent.get("second"));
|
||
dateTimeComponent.imply("millisecond", timeComponent.get("millisecond"));
|
||
}
|
||
}
|
||
else {
|
||
dateTimeComponent.imply("hour", timeComponent.get("hour"));
|
||
dateTimeComponent.imply("minute", timeComponent.get("minute"));
|
||
dateTimeComponent.imply("second", timeComponent.get("second"));
|
||
dateTimeComponent.imply("millisecond", timeComponent.get("millisecond"));
|
||
}
|
||
if (timeComponent.isCertain("timezoneOffset")) {
|
||
dateTimeComponent.assign("timezoneOffset", timeComponent.get("timezoneOffset"));
|
||
}
|
||
if (timeComponent.isCertain("meridiem")) {
|
||
dateTimeComponent.assign("meridiem", timeComponent.get("meridiem"));
|
||
}
|
||
else if (timeComponent.get("meridiem") != null && dateTimeComponent.get("meridiem") == null) {
|
||
dateTimeComponent.imply("meridiem", timeComponent.get("meridiem"));
|
||
}
|
||
if (dateTimeComponent.get("meridiem") == dist.Meridiem.PM && dateTimeComponent.get("hour") < 12) {
|
||
if (timeComponent.isCertain("hour")) {
|
||
dateTimeComponent.assign("hour", dateTimeComponent.get("hour") + 12);
|
||
}
|
||
else {
|
||
dateTimeComponent.imply("hour", dateTimeComponent.get("hour") + 12);
|
||
}
|
||
}
|
||
return dateTimeComponent;
|
||
}
|
||
exports.mergeDateTimeComponent = mergeDateTimeComponent;
|
||
});
|
||
|
||
var AbstractMergeDateTimeRefiner = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
class ENMergeDateTimeRefiner extends abstractRefiners.MergingRefiner {
|
||
shouldMergeResults(textBetween, currentResult, nextResult) {
|
||
return (((currentResult.start.isOnlyDate() && nextResult.start.isOnlyTime()) ||
|
||
(nextResult.start.isOnlyDate() && currentResult.start.isOnlyTime())) &&
|
||
textBetween.match(this.patternBetween()) != null);
|
||
}
|
||
mergeResults(textBetween, currentResult, nextResult) {
|
||
const result = currentResult.start.isOnlyDate()
|
||
? mergingCalculation.mergeDateTimeResult(currentResult, nextResult)
|
||
: mergingCalculation.mergeDateTimeResult(nextResult, currentResult);
|
||
result.index = currentResult.index;
|
||
result.text = currentResult.text + textBetween + nextResult.text;
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = ENMergeDateTimeRefiner;
|
||
});
|
||
|
||
var ENMergeDateTimeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateTimeRefiner_1 = __importDefault(AbstractMergeDateTimeRefiner);
|
||
class ENMergeDateTimeRefiner extends AbstractMergeDateTimeRefiner_1.default {
|
||
patternBetween() {
|
||
return new RegExp("^\\s*(T|at|after|before|on|of|,|-)?\\s*$");
|
||
}
|
||
}
|
||
exports.default = ENMergeDateTimeRefiner;
|
||
});
|
||
|
||
var ExtractTimezoneAbbrRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const TIMEZONE_NAME_PATTERN = new RegExp("^\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)", "i");
|
||
const DEFAULT_TIMEZONE_ABBR_MAP = {
|
||
ACDT: 630,
|
||
ACST: 570,
|
||
ADT: -180,
|
||
AEDT: 660,
|
||
AEST: 600,
|
||
AFT: 270,
|
||
AKDT: -480,
|
||
AKST: -540,
|
||
ALMT: 360,
|
||
AMST: -180,
|
||
AMT: -240,
|
||
ANAST: 720,
|
||
ANAT: 720,
|
||
AQTT: 300,
|
||
ART: -180,
|
||
AST: -240,
|
||
AWDT: 540,
|
||
AWST: 480,
|
||
AZOST: 0,
|
||
AZOT: -60,
|
||
AZST: 300,
|
||
AZT: 240,
|
||
BNT: 480,
|
||
BOT: -240,
|
||
BRST: -120,
|
||
BRT: -180,
|
||
BST: 60,
|
||
BTT: 360,
|
||
CAST: 480,
|
||
CAT: 120,
|
||
CCT: 390,
|
||
CDT: -300,
|
||
CEST: 120,
|
||
CET: 60,
|
||
CHADT: 825,
|
||
CHAST: 765,
|
||
CKT: -600,
|
||
CLST: -180,
|
||
CLT: -240,
|
||
COT: -300,
|
||
CST: -360,
|
||
CVT: -60,
|
||
CXT: 420,
|
||
ChST: 600,
|
||
DAVT: 420,
|
||
EASST: -300,
|
||
EAST: -360,
|
||
EAT: 180,
|
||
ECT: -300,
|
||
EDT: -240,
|
||
EEST: 180,
|
||
EET: 120,
|
||
EGST: 0,
|
||
EGT: -60,
|
||
EST: -300,
|
||
ET: -300,
|
||
FJST: 780,
|
||
FJT: 720,
|
||
FKST: -180,
|
||
FKT: -240,
|
||
FNT: -120,
|
||
GALT: -360,
|
||
GAMT: -540,
|
||
GET: 240,
|
||
GFT: -180,
|
||
GILT: 720,
|
||
GMT: 0,
|
||
GST: 240,
|
||
GYT: -240,
|
||
HAA: -180,
|
||
HAC: -300,
|
||
HADT: -540,
|
||
HAE: -240,
|
||
HAP: -420,
|
||
HAR: -360,
|
||
HAST: -600,
|
||
HAT: -90,
|
||
HAY: -480,
|
||
HKT: 480,
|
||
HLV: -210,
|
||
HNA: -240,
|
||
HNC: -360,
|
||
HNE: -300,
|
||
HNP: -480,
|
||
HNR: -420,
|
||
HNT: -150,
|
||
HNY: -540,
|
||
HOVT: 420,
|
||
ICT: 420,
|
||
IDT: 180,
|
||
IOT: 360,
|
||
IRDT: 270,
|
||
IRKST: 540,
|
||
IRKT: 540,
|
||
IRST: 210,
|
||
IST: 330,
|
||
JST: 540,
|
||
KGT: 360,
|
||
KRAST: 480,
|
||
KRAT: 480,
|
||
KST: 540,
|
||
KUYT: 240,
|
||
LHDT: 660,
|
||
LHST: 630,
|
||
LINT: 840,
|
||
MAGST: 720,
|
||
MAGT: 720,
|
||
MART: -510,
|
||
MAWT: 300,
|
||
MDT: -360,
|
||
MESZ: 120,
|
||
MEZ: 60,
|
||
MHT: 720,
|
||
MMT: 390,
|
||
MSD: 240,
|
||
MSK: 240,
|
||
MST: -420,
|
||
MUT: 240,
|
||
MVT: 300,
|
||
MYT: 480,
|
||
NCT: 660,
|
||
NDT: -90,
|
||
NFT: 690,
|
||
NOVST: 420,
|
||
NOVT: 360,
|
||
NPT: 345,
|
||
NST: -150,
|
||
NUT: -660,
|
||
NZDT: 780,
|
||
NZST: 720,
|
||
OMSST: 420,
|
||
OMST: 420,
|
||
PDT: -420,
|
||
PET: -300,
|
||
PETST: 720,
|
||
PETT: 720,
|
||
PGT: 600,
|
||
PHOT: 780,
|
||
PHT: 480,
|
||
PKT: 300,
|
||
PMDT: -120,
|
||
PMST: -180,
|
||
PONT: 660,
|
||
PST: -480,
|
||
PT: -480,
|
||
PWT: 540,
|
||
PYST: -180,
|
||
PYT: -240,
|
||
RET: 240,
|
||
SAMT: 240,
|
||
SAST: 120,
|
||
SBT: 660,
|
||
SCT: 240,
|
||
SGT: 480,
|
||
SRT: -180,
|
||
SST: -660,
|
||
TAHT: -600,
|
||
TFT: 300,
|
||
TJT: 300,
|
||
TKT: 780,
|
||
TLT: 540,
|
||
TMT: 300,
|
||
TVT: 720,
|
||
ULAT: 480,
|
||
UTC: 0,
|
||
UYST: -120,
|
||
UYT: -180,
|
||
UZT: 300,
|
||
VET: -210,
|
||
VLAST: 660,
|
||
VLAT: 660,
|
||
VUT: 660,
|
||
WAST: 120,
|
||
WAT: 60,
|
||
WEST: 60,
|
||
WESZ: 60,
|
||
WET: 0,
|
||
WEZ: 0,
|
||
WFT: 720,
|
||
WGST: -120,
|
||
WGT: -180,
|
||
WIB: 420,
|
||
WIT: 540,
|
||
WITA: 480,
|
||
WST: 780,
|
||
WT: 0,
|
||
YAKST: 600,
|
||
YAKT: 600,
|
||
YAPT: 600,
|
||
YEKST: 360,
|
||
YEKT: 360,
|
||
};
|
||
class ExtractTimezoneAbbrRefiner {
|
||
constructor(timezoneOverrides) {
|
||
this.timezone = Object.assign(Object.assign({}, DEFAULT_TIMEZONE_ABBR_MAP), timezoneOverrides);
|
||
}
|
||
refine(context, results) {
|
||
var _a;
|
||
const timezoneOverrides = (_a = context.option.timezones) !== null && _a !== void 0 ? _a : {};
|
||
results.forEach((result) => {
|
||
var _a, _b;
|
||
const suffix = context.text.substring(result.index + result.text.length);
|
||
const match = TIMEZONE_NAME_PATTERN.exec(suffix);
|
||
if (!match) {
|
||
return;
|
||
}
|
||
const timezoneAbbr = match[1].toUpperCase();
|
||
const extractedTimezoneOffset = (_b = (_a = timezoneOverrides[timezoneAbbr]) !== null && _a !== void 0 ? _a : this.timezone[timezoneAbbr]) !== null && _b !== void 0 ? _b : null;
|
||
if (extractedTimezoneOffset === null) {
|
||
return;
|
||
}
|
||
context.debug(() => {
|
||
console.log(`Extracting timezone: '${timezoneAbbr}' into : ${extractedTimezoneOffset}`);
|
||
});
|
||
const currentTimezoneOffset = result.start.get("timezoneOffset");
|
||
if (currentTimezoneOffset !== null && extractedTimezoneOffset != currentTimezoneOffset) {
|
||
return;
|
||
}
|
||
result.text += match[0];
|
||
if (!result.start.isCertain("timezoneOffset")) {
|
||
result.start.assign("timezoneOffset", extractedTimezoneOffset);
|
||
}
|
||
if (result.end != null && !result.end.isCertain("timezoneOffset")) {
|
||
result.end.assign("timezoneOffset", extractedTimezoneOffset);
|
||
}
|
||
});
|
||
return results;
|
||
}
|
||
}
|
||
exports.default = ExtractTimezoneAbbrRefiner;
|
||
});
|
||
|
||
var ExtractTimezoneOffsetRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const TIMEZONE_OFFSET_PATTERN = new RegExp("^\\s*(?:(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?", "i");
|
||
const TIMEZONE_OFFSET_SIGN_GROUP = 1;
|
||
const TIMEZONE_OFFSET_HOUR_OFFSET_GROUP = 2;
|
||
const TIMEZONE_OFFSET_MINUTE_OFFSET_GROUP = 3;
|
||
class ExtractTimezoneOffsetRefiner {
|
||
refine(context, results) {
|
||
results.forEach(function (result) {
|
||
if (result.start.isCertain("timezoneOffset")) {
|
||
return;
|
||
}
|
||
const suffix = context.text.substring(result.index + result.text.length);
|
||
const match = TIMEZONE_OFFSET_PATTERN.exec(suffix);
|
||
if (!match) {
|
||
return;
|
||
}
|
||
context.debug(() => {
|
||
console.log(`Extracting timezone: '${match[0]}' into : ${result}`);
|
||
});
|
||
const hourOffset = parseInt(match[TIMEZONE_OFFSET_HOUR_OFFSET_GROUP]);
|
||
const minuteOffset = parseInt(match[TIMEZONE_OFFSET_MINUTE_OFFSET_GROUP] || "0");
|
||
let timezoneOffset = hourOffset * 60 + minuteOffset;
|
||
if (match[TIMEZONE_OFFSET_SIGN_GROUP] === "-") {
|
||
timezoneOffset = -timezoneOffset;
|
||
}
|
||
if (result.end != null) {
|
||
result.end.assign("timezoneOffset", timezoneOffset);
|
||
}
|
||
result.start.assign("timezoneOffset", timezoneOffset);
|
||
result.text += match[0];
|
||
});
|
||
return results;
|
||
}
|
||
}
|
||
exports.default = ExtractTimezoneOffsetRefiner;
|
||
});
|
||
|
||
var OverlapRemovalRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
class OverlapRemovalRefiner {
|
||
refine(context, results) {
|
||
if (results.length < 2) {
|
||
return results;
|
||
}
|
||
const filteredResults = [];
|
||
let prevResult = results[0];
|
||
for (let i = 1; i < results.length; i++) {
|
||
const result = results[i];
|
||
if (result.index < prevResult.index + prevResult.text.length) {
|
||
if (result.text.length > prevResult.text.length) {
|
||
prevResult = result;
|
||
}
|
||
}
|
||
else {
|
||
filteredResults.push(prevResult);
|
||
prevResult = result;
|
||
}
|
||
}
|
||
if (prevResult != null) {
|
||
filteredResults.push(prevResult);
|
||
}
|
||
return filteredResults;
|
||
}
|
||
}
|
||
exports.default = OverlapRemovalRefiner;
|
||
});
|
||
|
||
var ForwardDateRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
class ForwardDateRefiner {
|
||
refine(context, results) {
|
||
if (!context.option.forwardDate) {
|
||
return results;
|
||
}
|
||
results.forEach(function (result) {
|
||
let refMoment = dayjs_1.default(context.refDate);
|
||
if (result.start.isOnlyDayMonthComponent() && refMoment.isAfter(result.start.dayjs())) {
|
||
for (let i = 0; i < 3 && refMoment.isAfter(result.start.dayjs()); i++) {
|
||
result.start.imply("year", result.start.get("year") + 1);
|
||
context.debug(() => {
|
||
console.log(`Forward yearly adjusted for ${result} (${result.start})`);
|
||
});
|
||
if (result.end && !result.end.isCertain("year")) {
|
||
result.end.imply("year", result.end.get("year") + 1);
|
||
context.debug(() => {
|
||
console.log(`Forward yearly adjusted for ${result} (${result.end})`);
|
||
});
|
||
}
|
||
}
|
||
}
|
||
if (result.start.isOnlyWeekdayComponent() && refMoment.isAfter(result.start.dayjs())) {
|
||
if (refMoment.day() > result.start.get("weekday")) {
|
||
refMoment = refMoment.day(result.start.get("weekday") + 7);
|
||
}
|
||
else {
|
||
refMoment = refMoment.day(result.start.get("weekday"));
|
||
}
|
||
result.start.imply("day", refMoment.date());
|
||
result.start.imply("month", refMoment.month() + 1);
|
||
result.start.imply("year", refMoment.year());
|
||
context.debug(() => {
|
||
console.log(`Forward weekly adjusted for ${result} (${result.start})`);
|
||
});
|
||
if (result.end && result.end.isOnlyWeekdayComponent()) {
|
||
if (refMoment.day() > result.end.get("weekday")) {
|
||
refMoment = refMoment.day(result.end.get("weekday") + 7);
|
||
}
|
||
else {
|
||
refMoment = refMoment.day(result.end.get("weekday"));
|
||
}
|
||
result.end.imply("day", refMoment.date());
|
||
result.end.imply("month", refMoment.month() + 1);
|
||
result.end.imply("year", refMoment.year());
|
||
context.debug(() => {
|
||
console.log(`Forward weekly adjusted for ${result} (${result.end})`);
|
||
});
|
||
}
|
||
}
|
||
});
|
||
return results;
|
||
}
|
||
}
|
||
exports.default = ForwardDateRefiner;
|
||
});
|
||
|
||
var UnlikelyFormatFilter_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
class UnlikelyFormatFilter extends abstractRefiners.Filter {
|
||
constructor(strictMode) {
|
||
super();
|
||
this.strictMode = strictMode;
|
||
}
|
||
isValid(context, result) {
|
||
if (result.text.replace(" ", "").match(/^\d*(\.\d*)?$/)) {
|
||
context.debug(() => {
|
||
console.log(`Removing unlikely result '${result.text}'`);
|
||
});
|
||
return false;
|
||
}
|
||
if (!result.start.isValidDate()) {
|
||
context.debug(() => {
|
||
console.log(`Removing invalid result: ${result} (${result.start})`);
|
||
});
|
||
return false;
|
||
}
|
||
if (result.end && !result.end.isValidDate()) {
|
||
context.debug(() => {
|
||
console.log(`Removing invalid result: ${result} (${result.end})`);
|
||
});
|
||
return false;
|
||
}
|
||
if (this.strictMode) {
|
||
return this.isStrictModeValid(context, result);
|
||
}
|
||
return true;
|
||
}
|
||
isStrictModeValid(context, result) {
|
||
if (result.start.isOnlyWeekdayComponent()) {
|
||
context.debug(() => {
|
||
console.log(`(Strict) Removing weekday only component: ${result} (${result.end})`);
|
||
});
|
||
return false;
|
||
}
|
||
if (result.start.isOnlyTime() && (!result.start.isCertain("hour") || !result.start.isCertain("minute"))) {
|
||
context.debug(() => {
|
||
console.log(`(Strict) Removing uncertain time component: ${result} (${result.end})`);
|
||
});
|
||
return false;
|
||
}
|
||
return true;
|
||
}
|
||
}
|
||
exports.default = UnlikelyFormatFilter;
|
||
});
|
||
|
||
var ISOFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
const PATTERN = new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})" +
|
||
"(?:T" +
|
||
"([0-9]{1,2}):([0-9]{1,2})" +
|
||
"(?:" +
|
||
":([0-9]{1,2})(?:\\.(\\d{1,4}))?" +
|
||
")?" +
|
||
"(?:" +
|
||
"Z|([+-]\\d{2}):?(\\d{2})?" +
|
||
")?" +
|
||
")?" +
|
||
"(?=\\W|$)", "i");
|
||
const YEAR_NUMBER_GROUP = 1;
|
||
const MONTH_NUMBER_GROUP = 2;
|
||
const DATE_NUMBER_GROUP = 3;
|
||
const HOUR_NUMBER_GROUP = 4;
|
||
const MINUTE_NUMBER_GROUP = 5;
|
||
const SECOND_NUMBER_GROUP = 6;
|
||
const MILLISECOND_NUMBER_GROUP = 7;
|
||
const TZD_HOUR_OFFSET_GROUP = 8;
|
||
const TZD_MINUTE_OFFSET_GROUP = 9;
|
||
class ISOFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const components = {};
|
||
components["year"] = parseInt(match[YEAR_NUMBER_GROUP]);
|
||
components["month"] = parseInt(match[MONTH_NUMBER_GROUP]);
|
||
components["day"] = parseInt(match[DATE_NUMBER_GROUP]);
|
||
if (match[HOUR_NUMBER_GROUP] != null) {
|
||
components["hour"] = parseInt(match[HOUR_NUMBER_GROUP]);
|
||
components["minute"] = parseInt(match[MINUTE_NUMBER_GROUP]);
|
||
if (match[SECOND_NUMBER_GROUP] != null) {
|
||
components["second"] = parseInt(match[SECOND_NUMBER_GROUP]);
|
||
}
|
||
if (match[MILLISECOND_NUMBER_GROUP] != null) {
|
||
components["millisecond"] = parseInt(match[MILLISECOND_NUMBER_GROUP]);
|
||
}
|
||
if (match[TZD_HOUR_OFFSET_GROUP] == null) {
|
||
components["timezoneOffset"] = 0;
|
||
}
|
||
else {
|
||
const hourOffset = parseInt(match[TZD_HOUR_OFFSET_GROUP]);
|
||
let minuteOffset = 0;
|
||
if (match[TZD_MINUTE_OFFSET_GROUP] != null) {
|
||
minuteOffset = parseInt(match[TZD_MINUTE_OFFSET_GROUP]);
|
||
}
|
||
let offset = hourOffset * 60;
|
||
if (offset < 0) {
|
||
offset -= minuteOffset;
|
||
}
|
||
else {
|
||
offset += minuteOffset;
|
||
}
|
||
components["timezoneOffset"] = offset;
|
||
}
|
||
}
|
||
return components;
|
||
}
|
||
}
|
||
exports.default = ISOFormatParser;
|
||
});
|
||
|
||
var MergeWeekdayComponentRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
class MergeWeekdayComponentRefiner extends abstractRefiners.MergingRefiner {
|
||
mergeResults(textBetween, currentResult, nextResult) {
|
||
const newResult = nextResult.clone();
|
||
newResult.index = currentResult.index;
|
||
newResult.text = currentResult.text + textBetween + newResult.text;
|
||
newResult.start.assign("weekday", currentResult.start.get("weekday"));
|
||
if (newResult.end) {
|
||
newResult.end.assign("weekday", currentResult.start.get("weekday"));
|
||
}
|
||
return newResult;
|
||
}
|
||
shouldMergeResults(textBetween, currentResult, nextResult) {
|
||
const weekdayThenNormalDate = currentResult.start.isOnlyWeekdayComponent() &&
|
||
!currentResult.start.isCertain("hour") &&
|
||
nextResult.start.isCertain("day");
|
||
return weekdayThenNormalDate && textBetween.match(/^,?\s*$/) != null;
|
||
}
|
||
}
|
||
exports.default = MergeWeekdayComponentRefiner;
|
||
});
|
||
|
||
var configurations = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.includeCommonConfiguration = void 0;
|
||
const ExtractTimezoneAbbrRefiner_1$1 = __importDefault(ExtractTimezoneAbbrRefiner_1);
|
||
const ExtractTimezoneOffsetRefiner_1$1 = __importDefault(ExtractTimezoneOffsetRefiner_1);
|
||
const OverlapRemovalRefiner_1$1 = __importDefault(OverlapRemovalRefiner_1);
|
||
const ForwardDateRefiner_1$1 = __importDefault(ForwardDateRefiner_1);
|
||
const UnlikelyFormatFilter_1$1 = __importDefault(UnlikelyFormatFilter_1);
|
||
const ISOFormatParser_1$1 = __importDefault(ISOFormatParser_1);
|
||
const MergeWeekdayComponentRefiner_1$1 = __importDefault(MergeWeekdayComponentRefiner_1);
|
||
function includeCommonConfiguration(configuration, strictMode = false) {
|
||
configuration.parsers.unshift(new ISOFormatParser_1$1.default());
|
||
configuration.refiners.unshift(new MergeWeekdayComponentRefiner_1$1.default());
|
||
configuration.refiners.unshift(new ExtractTimezoneAbbrRefiner_1$1.default());
|
||
configuration.refiners.unshift(new ExtractTimezoneOffsetRefiner_1$1.default());
|
||
configuration.refiners.unshift(new OverlapRemovalRefiner_1$1.default());
|
||
configuration.refiners.push(new OverlapRemovalRefiner_1$1.default());
|
||
configuration.refiners.push(new ForwardDateRefiner_1$1.default());
|
||
configuration.refiners.push(new UnlikelyFormatFilter_1$1.default(strictMode));
|
||
return configuration;
|
||
}
|
||
exports.includeCommonConfiguration = includeCommonConfiguration;
|
||
});
|
||
|
||
var casualReferences = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.tonight = exports.tomorrow = exports.yesterday = exports.today = exports.now = void 0;
|
||
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
|
||
function now(refDate) {
|
||
const targetDate = dayjs_1.default(refDate);
|
||
const component = new results.ParsingComponents(refDate, {});
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
dayjs.assignSimilarTime(component, targetDate);
|
||
return component;
|
||
}
|
||
exports.now = now;
|
||
function today(refDate) {
|
||
const targetDate = dayjs_1.default(refDate);
|
||
const component = new results.ParsingComponents(refDate, {});
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
dayjs.implySimilarTime(component, targetDate);
|
||
return component;
|
||
}
|
||
exports.today = today;
|
||
function yesterday(refDate) {
|
||
let targetDate = dayjs_1.default(refDate);
|
||
const component = new results.ParsingComponents(refDate, {});
|
||
targetDate = targetDate.add(-1, "day");
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
dayjs.implySimilarTime(component, targetDate);
|
||
return component;
|
||
}
|
||
exports.yesterday = yesterday;
|
||
function tomorrow(refDate) {
|
||
const targetDate = dayjs_1.default(refDate);
|
||
const component = new results.ParsingComponents(refDate, {});
|
||
dayjs.assignTheNextDay(component, targetDate);
|
||
return component;
|
||
}
|
||
exports.tomorrow = tomorrow;
|
||
function tonight(refDate, implyHour = 22) {
|
||
const targetDate = dayjs_1.default(refDate);
|
||
const component = new results.ParsingComponents(refDate, {});
|
||
component.imply("hour", implyHour);
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
return component;
|
||
}
|
||
exports.tonight = tonight;
|
||
});
|
||
|
||
var ENCasualDateParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||
}) : (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
o[k2] = m[k];
|
||
}));
|
||
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||
}) : function(o, v) {
|
||
o["default"] = v;
|
||
});
|
||
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
||
if (mod && mod.__esModule) return mod;
|
||
var result = {};
|
||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||
__setModuleDefault(result, mod);
|
||
return result;
|
||
};
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
|
||
const references = __importStar(casualReferences);
|
||
const PATTERN = /(now|today|tonight|tomorrow|tmr|yesterday|last\s*night)(?=\W|$)/i;
|
||
class ENCasualDateParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
let targetDate = dayjs_1.default(context.refDate);
|
||
const lowerText = match[0].toLowerCase();
|
||
const component = context.createParsingComponents();
|
||
switch (lowerText) {
|
||
case "now":
|
||
return references.now(context.refDate);
|
||
case "today":
|
||
return references.today(context.refDate);
|
||
case "yesterday":
|
||
return references.yesterday(context.refDate);
|
||
case "tomorrow":
|
||
case "tmr":
|
||
return references.tomorrow(context.refDate);
|
||
case "tonight":
|
||
return references.tonight(context.refDate);
|
||
default:
|
||
if (lowerText.match(/last\s*night/)) {
|
||
if (targetDate.hour() > 6) {
|
||
targetDate = targetDate.add(-1, "day");
|
||
}
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
component.imply("hour", 0);
|
||
}
|
||
break;
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = ENCasualDateParser;
|
||
});
|
||
|
||
var ENCasualTimeParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
const PATTERN = /(?:this)?\s*(morning|afternoon|evening|night|midnight|noon)(?=\W|$)/i;
|
||
class ENCasualTimeParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const targetDate = dayjs_1.default(context.refDate);
|
||
const component = context.createParsingComponents();
|
||
switch (match[1].toLowerCase()) {
|
||
case "afternoon":
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
component.imply("hour", 15);
|
||
break;
|
||
case "evening":
|
||
case "night":
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
component.imply("hour", 20);
|
||
break;
|
||
case "midnight":
|
||
dayjs.assignTheNextDay(component, targetDate);
|
||
component.imply("hour", 0);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
break;
|
||
case "morning":
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
component.imply("hour", 6);
|
||
break;
|
||
case "noon":
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
component.imply("hour", 12);
|
||
break;
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = ENCasualTimeParser;
|
||
});
|
||
|
||
var weeks = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.toDayJSClosestWeekday = exports.toDayJSWeekday = void 0;
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
function toDayJSWeekday(refDate, offset, modifier) {
|
||
if (!modifier) {
|
||
return toDayJSClosestWeekday(refDate, offset);
|
||
}
|
||
let date = dayjs_1.default(refDate);
|
||
switch (modifier) {
|
||
case "this":
|
||
date = date.day(offset);
|
||
break;
|
||
case "next":
|
||
date = date.day(offset + 7);
|
||
break;
|
||
case "last":
|
||
date = date.day(offset - 7);
|
||
break;
|
||
}
|
||
return date;
|
||
}
|
||
exports.toDayJSWeekday = toDayJSWeekday;
|
||
function toDayJSClosestWeekday(refDate, offset) {
|
||
let date = dayjs_1.default(refDate);
|
||
const refOffset = date.day();
|
||
if (Math.abs(offset - 7 - refOffset) < Math.abs(offset - refOffset)) {
|
||
date = date.day(offset - 7);
|
||
}
|
||
else if (Math.abs(offset + 7 - refOffset) < Math.abs(offset - refOffset)) {
|
||
date = date.day(offset + 7);
|
||
}
|
||
else {
|
||
date = date.day(offset);
|
||
}
|
||
return date;
|
||
}
|
||
exports.toDayJSClosestWeekday = toDayJSClosestWeekday;
|
||
});
|
||
|
||
var ENWeekdayParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
const PATTERN = new RegExp("(?:(?:\\,|\\(|\\()\\s*)?" +
|
||
"(?:on\\s*?)?" +
|
||
"(?:(this|last|past|next)\\s*)?" +
|
||
`(${pattern.matchAnyPattern(constants$5.WEEKDAY_DICTIONARY)})` +
|
||
"(?:\\s*(?:\\,|\\)|\\)))?" +
|
||
"(?:\\s*(this|last|past|next)\\s*week)?" +
|
||
"(?=\\W|$)", "i");
|
||
const PREFIX_GROUP = 1;
|
||
const WEEKDAY_GROUP = 2;
|
||
const POSTFIX_GROUP = 3;
|
||
class ENWeekdayParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const dayOfWeek = match[WEEKDAY_GROUP].toLowerCase();
|
||
const offset = constants$5.WEEKDAY_DICTIONARY[dayOfWeek];
|
||
const prefix = match[PREFIX_GROUP];
|
||
const postfix = match[POSTFIX_GROUP];
|
||
let modifierWord = prefix || postfix;
|
||
modifierWord = modifierWord || "";
|
||
modifierWord = modifierWord.toLowerCase();
|
||
let modifier = null;
|
||
if (modifierWord == "last" || modifierWord == "past") {
|
||
modifier = "last";
|
||
}
|
||
else if (modifierWord == "next") {
|
||
modifier = "next";
|
||
}
|
||
else if (modifierWord == "this") {
|
||
modifier = "this";
|
||
}
|
||
const date = weeks.toDayJSWeekday(context.refDate, offset, modifier);
|
||
return context
|
||
.createParsingComponents()
|
||
.assign("weekday", offset)
|
||
.imply("day", date.date())
|
||
.imply("month", date.month() + 1)
|
||
.imply("year", date.year());
|
||
}
|
||
}
|
||
exports.default = ENWeekdayParser;
|
||
});
|
||
|
||
var ENRelativeDateFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
|
||
const PATTERN = new RegExp(`(this|next|last|past)\\s*(${pattern.matchAnyPattern(constants$5.TIME_UNIT_DICTIONARY)})(?=\\s*)` + "(?=\\W|$)", "i");
|
||
const MODIFIER_WORD_GROUP = 1;
|
||
const RELATIVE_WORD_GROUP = 2;
|
||
class ENRelativeDateFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const modifier = match[MODIFIER_WORD_GROUP].toLowerCase();
|
||
const unitWord = match[RELATIVE_WORD_GROUP].toLowerCase();
|
||
const timeunit = constants$5.TIME_UNIT_DICTIONARY[unitWord];
|
||
if (modifier == "next") {
|
||
const timeUnits = {};
|
||
timeUnits[timeunit] = 1;
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, timeUnits);
|
||
}
|
||
if (modifier == "last" || modifier == "past") {
|
||
const timeUnits = {};
|
||
timeUnits[timeunit] = -1;
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, timeUnits);
|
||
}
|
||
const components = context.createParsingComponents();
|
||
let date = dayjs_1.default(context.refDate);
|
||
if (unitWord.match(/week/i)) {
|
||
date = date.add(-date.get("d"), "d");
|
||
components.imply("day", date.date());
|
||
components.imply("month", date.month() + 1);
|
||
components.imply("year", date.year());
|
||
}
|
||
else if (unitWord.match(/month/i)) {
|
||
date = date.add(-date.date() + 1, "d");
|
||
components.imply("day", date.date());
|
||
components.assign("year", date.year());
|
||
components.assign("month", date.month() + 1);
|
||
}
|
||
else if (unitWord.match(/year/i)) {
|
||
date = date.add(-date.date() + 1, "d");
|
||
date = date.add(-date.month(), "month");
|
||
components.imply("day", date.date());
|
||
components.imply("month", date.month() + 1);
|
||
components.assign("year", date.year());
|
||
}
|
||
return components;
|
||
}
|
||
}
|
||
exports.default = ENRelativeDateFormatParser;
|
||
});
|
||
|
||
var chrono$1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.ParsingContext = exports.Chrono = void 0;
|
||
|
||
|
||
class Chrono {
|
||
constructor(configuration) {
|
||
configuration = configuration || en.createCasualConfiguration();
|
||
this.parsers = [...configuration.parsers];
|
||
this.refiners = [...configuration.refiners];
|
||
}
|
||
clone() {
|
||
return new Chrono({
|
||
parsers: [...this.parsers],
|
||
refiners: [...this.refiners],
|
||
});
|
||
}
|
||
parseDate(text, referenceDate, option) {
|
||
const results = this.parse(text, referenceDate, option);
|
||
return results.length > 0 ? results[0].start.date() : null;
|
||
}
|
||
parse(text, referenceDate, option) {
|
||
const context = new ParsingContext(text, referenceDate || new Date(), option || {});
|
||
let results = [];
|
||
this.parsers.forEach((parser) => {
|
||
const parsedResults = Chrono.executeParser(context, parser);
|
||
results = results.concat(parsedResults);
|
||
});
|
||
results.sort((a, b) => {
|
||
return a.index - b.index;
|
||
});
|
||
this.refiners.forEach(function (refiner) {
|
||
results = refiner.refine(context, results);
|
||
});
|
||
return results;
|
||
}
|
||
static executeParser(context, parser) {
|
||
const results$1 = [];
|
||
const pattern = parser.pattern(context);
|
||
const originalText = context.text;
|
||
let remainingText = context.text;
|
||
let match = pattern.exec(remainingText);
|
||
while (match) {
|
||
const index = match.index + originalText.length - remainingText.length;
|
||
match.index = index;
|
||
const result = parser.extract(context, match);
|
||
if (!result) {
|
||
remainingText = originalText.substring(match.index + 1);
|
||
match = pattern.exec(remainingText);
|
||
continue;
|
||
}
|
||
let parsedResult = null;
|
||
if (result instanceof results.ParsingResult) {
|
||
parsedResult = result;
|
||
}
|
||
else if (result instanceof results.ParsingComponents) {
|
||
parsedResult = context.createParsingResult(match.index, match[0]);
|
||
parsedResult.start = result;
|
||
}
|
||
else {
|
||
parsedResult = context.createParsingResult(match.index, match[0], result);
|
||
}
|
||
context.debug(() => console.log(`${parser.constructor.name} extracted result ${parsedResult}`));
|
||
results$1.push(parsedResult);
|
||
remainingText = originalText.substring(index + parsedResult.text.length);
|
||
match = pattern.exec(remainingText);
|
||
}
|
||
return results$1;
|
||
}
|
||
}
|
||
exports.Chrono = Chrono;
|
||
class ParsingContext {
|
||
constructor(text, refDate, option) {
|
||
this.text = text;
|
||
this.refDate = refDate;
|
||
this.option = option;
|
||
}
|
||
createParsingComponents(components) {
|
||
if (components instanceof results.ParsingComponents) {
|
||
return components;
|
||
}
|
||
return new results.ParsingComponents(this.refDate, components);
|
||
}
|
||
createParsingResult(index, textOrEndIndex, startComponents, endComponents) {
|
||
const text = typeof textOrEndIndex === "string" ? textOrEndIndex : this.text.substring(index, textOrEndIndex);
|
||
const start = startComponents ? this.createParsingComponents(startComponents) : null;
|
||
const end = endComponents ? this.createParsingComponents(endComponents) : null;
|
||
return new results.ParsingResult(this.refDate, index, text, start, end);
|
||
}
|
||
debug(block) {
|
||
if (this.option.debug) {
|
||
if (this.option.debug instanceof Function) {
|
||
this.option.debug(block);
|
||
}
|
||
else {
|
||
const handler = this.option.debug;
|
||
handler.debug(block);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
exports.ParsingContext = ParsingContext;
|
||
});
|
||
|
||
var SlashDateFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
const PATTERN = new RegExp("([^\\d]|^)" +
|
||
"([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})" +
|
||
"(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?" +
|
||
"(\\W|$)", "i");
|
||
const OPENING_GROUP = 1;
|
||
const ENDING_GROUP = 5;
|
||
const FIRST_NUMBERS_GROUP = 2;
|
||
const SECOND_NUMBERS_GROUP = 3;
|
||
const YEAR_GROUP = 4;
|
||
class SlashDateFormatParser {
|
||
constructor(littleEndian) {
|
||
this.groupNumberMonth = littleEndian ? SECOND_NUMBERS_GROUP : FIRST_NUMBERS_GROUP;
|
||
this.groupNumberDay = littleEndian ? FIRST_NUMBERS_GROUP : SECOND_NUMBERS_GROUP;
|
||
}
|
||
pattern() {
|
||
return PATTERN;
|
||
}
|
||
extract(context, match) {
|
||
if (match[OPENING_GROUP] == "/" || match[ENDING_GROUP] == "/") {
|
||
match.index += match[0].length;
|
||
return;
|
||
}
|
||
const index = match.index + match[OPENING_GROUP].length;
|
||
const text = match[0].substr(match[OPENING_GROUP].length, match[0].length - match[OPENING_GROUP].length - match[ENDING_GROUP].length);
|
||
if (text.match(/^\d\.\d$/) || text.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)) {
|
||
return;
|
||
}
|
||
if (!match[YEAR_GROUP] && match[0].indexOf("/") < 0) {
|
||
return;
|
||
}
|
||
const result = context.createParsingResult(index, text);
|
||
let month = parseInt(match[this.groupNumberMonth]);
|
||
let day = parseInt(match[this.groupNumberDay]);
|
||
if (month < 1 || month > 12) {
|
||
if (month > 12) {
|
||
if (day >= 1 && day <= 12 && month <= 31) {
|
||
[day, month] = [month, day];
|
||
}
|
||
else {
|
||
return null;
|
||
}
|
||
}
|
||
}
|
||
if (day < 1 || day > 31) {
|
||
return null;
|
||
}
|
||
result.start.assign("day", day);
|
||
result.start.assign("month", month);
|
||
if (match[YEAR_GROUP]) {
|
||
const rawYearNumber = parseInt(match[YEAR_GROUP]);
|
||
const year = years.findMostLikelyADYear(rawYearNumber);
|
||
result.start.assign("year", year);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, day, month);
|
||
result.start.imply("year", year);
|
||
}
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = SlashDateFormatParser;
|
||
});
|
||
|
||
var ENTimeUnitCasualRelativeFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
const PATTERN = new RegExp(`(this|last|past|next|\\+|-)\\s*(${constants$5.TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
||
class ENTimeUnitCasualRelativeFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const prefix = match[1].toLowerCase();
|
||
let timeUnits = constants$5.parseTimeUnits(match[2]);
|
||
switch (prefix) {
|
||
case "last":
|
||
case "past":
|
||
case "-":
|
||
timeUnits = timeunits.reverseTimeUnits(timeUnits);
|
||
break;
|
||
}
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, timeUnits);
|
||
}
|
||
}
|
||
exports.default = ENTimeUnitCasualRelativeFormatParser;
|
||
});
|
||
|
||
var en = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.createConfiguration = exports.createCasualConfiguration = exports.parseDate = exports.parse = exports.GB = exports.strict = exports.casual = void 0;
|
||
const ENTimeUnitWithinFormatParser_1$1 = __importDefault(ENTimeUnitWithinFormatParser_1);
|
||
const ENMonthNameLittleEndianParser_1$1 = __importDefault(ENMonthNameLittleEndianParser_1);
|
||
const ENMonthNameMiddleEndianParser_1$1 = __importDefault(ENMonthNameMiddleEndianParser_1);
|
||
const ENMonthNameParser_1$1 = __importDefault(ENMonthNameParser_1);
|
||
const ENCasualYearMonthDayParser_1$1 = __importDefault(ENCasualYearMonthDayParser_1);
|
||
const ENSlashMonthFormatParser_1$1 = __importDefault(ENSlashMonthFormatParser_1);
|
||
const ENTimeExpressionParser_1$1 = __importDefault(ENTimeExpressionParser_1);
|
||
const ENTimeUnitAgoFormatParser_1$1 = __importDefault(ENTimeUnitAgoFormatParser_1);
|
||
const ENTimeUnitLaterFormatParser_1$1 = __importDefault(ENTimeUnitLaterFormatParser_1);
|
||
const ENMergeDateRangeRefiner_1$1 = __importDefault(ENMergeDateRangeRefiner_1);
|
||
const ENMergeDateTimeRefiner_1$1 = __importDefault(ENMergeDateTimeRefiner_1);
|
||
|
||
const ENCasualDateParser_1$1 = __importDefault(ENCasualDateParser_1);
|
||
const ENCasualTimeParser_1$1 = __importDefault(ENCasualTimeParser_1);
|
||
const ENWeekdayParser_1$1 = __importDefault(ENWeekdayParser_1);
|
||
const ENRelativeDateFormatParser_1$1 = __importDefault(ENRelativeDateFormatParser_1);
|
||
|
||
const SlashDateFormatParser_1$1 = __importDefault(SlashDateFormatParser_1);
|
||
const ENTimeUnitCasualRelativeFormatParser_1$1 = __importDefault(ENTimeUnitCasualRelativeFormatParser_1);
|
||
exports.casual = new chrono$1.Chrono(createCasualConfiguration(false));
|
||
exports.strict = new chrono$1.Chrono(createConfiguration(true, false));
|
||
exports.GB = new chrono$1.Chrono(createConfiguration(false, true));
|
||
function parse(text, ref, option) {
|
||
return exports.casual.parse(text, ref, option);
|
||
}
|
||
exports.parse = parse;
|
||
function parseDate(text, ref, option) {
|
||
return exports.casual.parseDate(text, ref, option);
|
||
}
|
||
exports.parseDate = parseDate;
|
||
function createCasualConfiguration(littleEndian = false) {
|
||
const option = createConfiguration(false, littleEndian);
|
||
option.parsers.unshift(new ENCasualDateParser_1$1.default());
|
||
option.parsers.unshift(new ENCasualTimeParser_1$1.default());
|
||
option.parsers.unshift(new ENMonthNameParser_1$1.default());
|
||
option.parsers.unshift(new ENRelativeDateFormatParser_1$1.default());
|
||
option.parsers.unshift(new ENTimeUnitCasualRelativeFormatParser_1$1.default());
|
||
return option;
|
||
}
|
||
exports.createCasualConfiguration = createCasualConfiguration;
|
||
function createConfiguration(strictMode = true, littleEndian = false) {
|
||
return configurations.includeCommonConfiguration({
|
||
parsers: [
|
||
new SlashDateFormatParser_1$1.default(littleEndian),
|
||
new ENTimeUnitWithinFormatParser_1$1.default(),
|
||
new ENMonthNameLittleEndianParser_1$1.default(),
|
||
new ENMonthNameMiddleEndianParser_1$1.default(),
|
||
new ENWeekdayParser_1$1.default(),
|
||
new ENCasualYearMonthDayParser_1$1.default(),
|
||
new ENSlashMonthFormatParser_1$1.default(),
|
||
new ENTimeExpressionParser_1$1.default(strictMode),
|
||
new ENTimeUnitAgoFormatParser_1$1.default(strictMode),
|
||
new ENTimeUnitLaterFormatParser_1$1.default(strictMode),
|
||
],
|
||
refiners: [new ENMergeDateTimeRefiner_1$1.default(), new ENMergeDateRangeRefiner_1$1.default()],
|
||
}, strictMode);
|
||
}
|
||
exports.createConfiguration = createConfiguration;
|
||
});
|
||
|
||
var DETimeExpressionParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
class DETimeExpressionParser extends AbstractTimeExpressionParser_1.AbstractTimeExpressionParser {
|
||
primaryPrefix() {
|
||
return "(?:(?:um|von)\\s*)?";
|
||
}
|
||
followingPhase() {
|
||
return "\\s*(?:\\-|\\–|\\~|\\〜|bis)\\s*";
|
||
}
|
||
primarySuffix() {
|
||
return "(?:\\s*uhr)?(?:\\s*(?:morgens|vormittags|nachmittags|abends|nachts))?(?=\\W|$)";
|
||
}
|
||
extractPrimaryTimeComponents(context, match) {
|
||
const components = super.extractPrimaryTimeComponents(context, match);
|
||
if (components) {
|
||
if (match[0].endsWith("morgens") || match[0].endsWith("vormittags")) {
|
||
components.assign("meridiem", dist.Meridiem.AM);
|
||
const hour = components.get("hour");
|
||
if (hour < 12) {
|
||
components.assign("hour", components.get("hour"));
|
||
}
|
||
}
|
||
if (match[0].endsWith("nachmittags") || match[0].endsWith("abends") || match[0].endsWith("nachts")) {
|
||
components.assign("meridiem", dist.Meridiem.PM);
|
||
const hour = components.get("hour");
|
||
if (hour < 12) {
|
||
components.assign("hour", components.get("hour") + 12);
|
||
}
|
||
}
|
||
}
|
||
return components;
|
||
}
|
||
}
|
||
exports.default = DETimeExpressionParser;
|
||
});
|
||
|
||
var constants$4 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0;
|
||
|
||
|
||
exports.WEEKDAY_DICTIONARY = {
|
||
"sonntag": 0,
|
||
"so": 0,
|
||
"montag": 1,
|
||
"mo": 1,
|
||
"dienstag": 2,
|
||
"di": 2,
|
||
"mittwoch": 3,
|
||
"mi": 3,
|
||
"donnerstag": 4,
|
||
"do": 4,
|
||
"freitag": 5,
|
||
"fr": 5,
|
||
"samstag": 6,
|
||
"sa": 6,
|
||
};
|
||
exports.MONTH_DICTIONARY = {
|
||
"januar": 1,
|
||
"jan": 1,
|
||
"jan.": 1,
|
||
"februar": 2,
|
||
"feb": 2,
|
||
"feb.": 2,
|
||
"märz": 3,
|
||
"maerz": 3,
|
||
"mär": 3,
|
||
"mär.": 3,
|
||
"mrz": 3,
|
||
"mrz.": 3,
|
||
"april": 4,
|
||
"apr": 4,
|
||
"apr.": 4,
|
||
"mai": 5,
|
||
"juni": 6,
|
||
"jun": 6,
|
||
"jun.": 6,
|
||
"juli": 7,
|
||
"jul": 7,
|
||
"jul.": 7,
|
||
"august": 8,
|
||
"aug": 8,
|
||
"aug.": 8,
|
||
"september": 9,
|
||
"sep": 9,
|
||
"sep.": 9,
|
||
"sept": 9,
|
||
"sept.": 9,
|
||
"oktober": 10,
|
||
"okt": 10,
|
||
"okt.": 10,
|
||
"november": 11,
|
||
"nov": 11,
|
||
"nov.": 11,
|
||
"dezember": 12,
|
||
"dez": 12,
|
||
"dez.": 12,
|
||
};
|
||
exports.INTEGER_WORD_DICTIONARY = {
|
||
"eins": 1,
|
||
"zwei": 2,
|
||
"drei": 3,
|
||
"vier": 4,
|
||
"fünf": 5,
|
||
"fuenf": 5,
|
||
"sechs": 6,
|
||
"sieben": 7,
|
||
"acht": 8,
|
||
"neun": 9,
|
||
"zehn": 10,
|
||
"elf": 11,
|
||
"zwölf": 12,
|
||
"zwoelf": 12,
|
||
};
|
||
exports.TIME_UNIT_DICTIONARY = {
|
||
sec: "second",
|
||
second: "second",
|
||
seconds: "second",
|
||
min: "minute",
|
||
mins: "minute",
|
||
minute: "minute",
|
||
minutes: "minute",
|
||
h: "hour",
|
||
hr: "hour",
|
||
hrs: "hour",
|
||
hour: "hour",
|
||
hours: "hour",
|
||
day: "d",
|
||
days: "d",
|
||
week: "week",
|
||
weeks: "week",
|
||
month: "month",
|
||
months: "month",
|
||
y: "year",
|
||
yr: "year",
|
||
year: "year",
|
||
years: "year",
|
||
};
|
||
exports.NUMBER_PATTERN = `(?:${pattern.matchAnyPattern(exports.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s*an?)?|an?(?:\\s*few)?|few|several|a?\\s*couple\\s*(?:of)?)`;
|
||
function parseNumberPattern(match) {
|
||
const num = match.toLowerCase();
|
||
if (exports.INTEGER_WORD_DICTIONARY[num] !== undefined) {
|
||
return exports.INTEGER_WORD_DICTIONARY[num];
|
||
}
|
||
else if (num === "a" || num === "an") {
|
||
return 1;
|
||
}
|
||
else if (num.match(/few/)) {
|
||
return 3;
|
||
}
|
||
else if (num.match(/half/)) {
|
||
return 0.5;
|
||
}
|
||
else if (num.match(/couple/)) {
|
||
return 2;
|
||
}
|
||
else if (num.match(/several/)) {
|
||
return 7;
|
||
}
|
||
return parseFloat(num);
|
||
}
|
||
exports.parseNumberPattern = parseNumberPattern;
|
||
exports.YEAR_PATTERN = `(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*C(?:hr)?\\.?)?)`;
|
||
function parseYear(match) {
|
||
if (/v/i.test(match)) {
|
||
return -parseInt(match.replace(/[^0-9]+/gi, ""));
|
||
}
|
||
if (/n/i.test(match)) {
|
||
return parseInt(match.replace(/[^0-9]+/gi, ""));
|
||
}
|
||
const rawYearNumber = parseInt(match);
|
||
return years.findMostLikelyADYear(rawYearNumber);
|
||
}
|
||
exports.parseYear = parseYear;
|
||
const SINGLE_TIME_UNIT_PATTERN = `(${exports.NUMBER_PATTERN})\\s{0,5}(${pattern.matchAnyPattern(exports.TIME_UNIT_DICTIONARY)})\\s{0,5}`;
|
||
const SINGLE_TIME_UNIT_REGEX = new RegExp(SINGLE_TIME_UNIT_PATTERN, "i");
|
||
exports.TIME_UNITS_PATTERN = pattern.repeatedTimeunitPattern("", SINGLE_TIME_UNIT_PATTERN);
|
||
function parseTimeUnits(timeunitText) {
|
||
const fragments = {};
|
||
let remainingText = timeunitText;
|
||
let match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
||
while (match) {
|
||
collectDateTimeFragment(fragments, match);
|
||
remainingText = remainingText.substring(match[0].length);
|
||
match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
||
}
|
||
return fragments;
|
||
}
|
||
exports.parseTimeUnits = parseTimeUnits;
|
||
function collectDateTimeFragment(fragments, match) {
|
||
const num = parseNumberPattern(match[1]);
|
||
const unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()];
|
||
fragments[unit] = num;
|
||
}
|
||
});
|
||
|
||
var DEWeekdayParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
const PATTERN = new RegExp("(?:(?:\\,|\\(|\\()\\s*)?" +
|
||
"(?:a[mn]\\s*?)?" +
|
||
"(?:(diese[mn]|letzte[mn]|n(?:ä|ae)chste[mn])\\s*)?" +
|
||
`(${pattern.matchAnyPattern(constants$4.WEEKDAY_DICTIONARY)})` +
|
||
"(?:\\s*(?:\\,|\\)|\\)))?" +
|
||
"(?:\\s*(diese|letzte|n(?:ä|ae)chste)\\s*woche)?" +
|
||
"(?=\\W|$)", "i");
|
||
const PREFIX_GROUP = 1;
|
||
const SUFFIX_GROUP = 3;
|
||
const WEEKDAY_GROUP = 2;
|
||
class DEWeekdayParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const dayOfWeek = match[WEEKDAY_GROUP].toLowerCase();
|
||
const offset = constants$4.WEEKDAY_DICTIONARY[dayOfWeek];
|
||
const prefix = match[PREFIX_GROUP];
|
||
const postfix = match[SUFFIX_GROUP];
|
||
let modifierWord = prefix || postfix;
|
||
modifierWord = modifierWord || "";
|
||
modifierWord = modifierWord.toLowerCase();
|
||
let modifier = null;
|
||
if (modifierWord.match(/letzte/)) {
|
||
modifier = "last";
|
||
}
|
||
else if (modifierWord.match(/chste/)) {
|
||
modifier = "next";
|
||
}
|
||
else if (modifierWord.match(/diese/)) {
|
||
modifier = "this";
|
||
}
|
||
const date = weeks.toDayJSWeekday(context.refDate, offset, modifier);
|
||
return context
|
||
.createParsingComponents()
|
||
.assign("weekday", offset)
|
||
.imply("day", date.date())
|
||
.imply("month", date.month() + 1)
|
||
.imply("year", date.year());
|
||
}
|
||
}
|
||
exports.default = DEWeekdayParser;
|
||
});
|
||
|
||
var DEMergeDateRangeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateRangeRefiner_1$1 = __importDefault(AbstractMergeDateRangeRefiner_1);
|
||
class DEMergeDateRangeRefiner extends AbstractMergeDateRangeRefiner_1$1.default {
|
||
patternBetween() {
|
||
return /^\s*(bis(?:\s*(?:am|zum))?|-)\s*$/i;
|
||
}
|
||
}
|
||
exports.default = DEMergeDateRangeRefiner;
|
||
});
|
||
|
||
var DEMergeDateTimeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateTimeRefiner_1 = __importDefault(AbstractMergeDateTimeRefiner);
|
||
class DEMergeDateTimeRefiner extends AbstractMergeDateTimeRefiner_1.default {
|
||
patternBetween() {
|
||
return new RegExp("^\\s*(T|um|am|,|-)?\\s*$");
|
||
}
|
||
}
|
||
exports.default = DEMergeDateTimeRefiner;
|
||
});
|
||
|
||
var DECasualTimeParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
|
||
|
||
|
||
class DECasualTimeParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return /(diesen)?\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht)(?=\W|$)/i;
|
||
}
|
||
innerExtract(context, match) {
|
||
const targetDate = dayjs_1.default(context.refDate);
|
||
const timeKeywordPattern = match[2].toLowerCase();
|
||
const component = context.createParsingComponents();
|
||
dayjs.implySimilarTime(component, targetDate);
|
||
return DECasualTimeParser.extractTimeComponents(component, timeKeywordPattern);
|
||
}
|
||
static extractTimeComponents(component, timeKeywordPattern) {
|
||
switch (timeKeywordPattern) {
|
||
case "morgen":
|
||
component.imply("hour", 6);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
break;
|
||
case "vormittag":
|
||
component.imply("hour", 9);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
break;
|
||
case "mittag":
|
||
case "mittags":
|
||
component.imply("hour", 12);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
break;
|
||
case "nachmittag":
|
||
component.imply("hour", 15);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
break;
|
||
case "abend":
|
||
component.imply("hour", 18);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
break;
|
||
case "nacht":
|
||
component.imply("hour", 22);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
break;
|
||
case "mitternacht":
|
||
if (component.get("hour") > 1) {
|
||
component = timeunits.addImpliedTimeUnits(component, { "day": 1 });
|
||
}
|
||
component.imply("hour", 0);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
break;
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = DECasualTimeParser;
|
||
});
|
||
|
||
var DECasualDateParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||
}) : (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
o[k2] = m[k];
|
||
}));
|
||
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||
}) : function(o, v) {
|
||
o["default"] = v;
|
||
});
|
||
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
||
if (mod && mod.__esModule) return mod;
|
||
var result = {};
|
||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||
__setModuleDefault(result, mod);
|
||
return result;
|
||
};
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
|
||
const DECasualTimeParser_1$1 = __importDefault(DECasualTimeParser_1);
|
||
const references = __importStar(casualReferences);
|
||
const PATTERN = new RegExp(`(jetzt|heute|morgen|übermorgen|uebermorgen|gestern|vorgestern|letzte\\s*nacht)` +
|
||
`(?:\\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht))?` +
|
||
`(?=\\W|$)`, "i");
|
||
const DATE_GROUP = 1;
|
||
const TIME_GROUP = 2;
|
||
class DECasualDateParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
let targetDate = dayjs_1.default(context.refDate);
|
||
const dateKeyword = (match[DATE_GROUP] || "").toLowerCase();
|
||
const timeKeyword = (match[TIME_GROUP] || "").toLowerCase();
|
||
let component = context.createParsingComponents();
|
||
switch (dateKeyword) {
|
||
case "jetzt":
|
||
component = references.now(context.refDate);
|
||
break;
|
||
case "heute":
|
||
component = references.today(context.refDate);
|
||
break;
|
||
case "morgen":
|
||
dayjs.assignTheNextDay(component, targetDate);
|
||
break;
|
||
case "übermorgen":
|
||
case "uebermorgen":
|
||
targetDate = targetDate.add(1, "day");
|
||
dayjs.assignTheNextDay(component, targetDate);
|
||
break;
|
||
case "gestern":
|
||
targetDate = targetDate.add(-1, "day");
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
dayjs.implySimilarTime(component, targetDate);
|
||
break;
|
||
case "vorgestern":
|
||
targetDate = targetDate.add(-2, "day");
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
dayjs.implySimilarTime(component, targetDate);
|
||
break;
|
||
default:
|
||
if (dateKeyword.match(/letzte\s*nacht/)) {
|
||
if (targetDate.hour() > 6) {
|
||
targetDate = targetDate.add(-1, "day");
|
||
}
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
component.imply("hour", 0);
|
||
}
|
||
break;
|
||
}
|
||
if (timeKeyword) {
|
||
component = DECasualTimeParser_1$1.default.extractTimeComponents(component, timeKeyword);
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = DECasualDateParser;
|
||
});
|
||
|
||
var DEMonthNameLittleEndianParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const constants_2 = constants$4;
|
||
|
||
|
||
const PATTERN = new RegExp("(?:am\\s*?)?" +
|
||
"(?:den\\s*?)?" +
|
||
`([0-9]{1,2})\\.` +
|
||
`(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*` +
|
||
`(${pattern.matchAnyPattern(constants$4.MONTH_DICTIONARY)})` +
|
||
`(?:(?:-|/|,?\\s*)(${constants_2.YEAR_PATTERN}(?![^\\s]\\d)))?` +
|
||
`(?=\\W|$)`, "i");
|
||
const DATE_GROUP = 1;
|
||
const DATE_TO_GROUP = 2;
|
||
const MONTH_NAME_GROUP = 3;
|
||
const YEAR_GROUP = 4;
|
||
class DEMonthNameLittleEndianParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const result = context.createParsingResult(match.index, match[0]);
|
||
const month = constants$4.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
||
const day = parseInt(match[DATE_GROUP]);
|
||
if (day > 31) {
|
||
match.index = match.index + match[DATE_GROUP].length;
|
||
return null;
|
||
}
|
||
result.start.assign("month", month);
|
||
result.start.assign("day", day);
|
||
if (match[YEAR_GROUP]) {
|
||
const yearNumber = constants_2.parseYear(match[YEAR_GROUP]);
|
||
result.start.assign("year", yearNumber);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, day, month);
|
||
result.start.imply("year", year);
|
||
}
|
||
if (match[DATE_TO_GROUP]) {
|
||
const endDate = parseInt(match[DATE_TO_GROUP]);
|
||
result.end = result.start.clone();
|
||
result.end.assign("day", endDate);
|
||
}
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = DEMonthNameLittleEndianParser;
|
||
});
|
||
|
||
var de = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.createConfiguration = exports.createCasualConfiguration = exports.parseDate = exports.parse = exports.strict = exports.casual = void 0;
|
||
|
||
|
||
const SlashDateFormatParser_1$1 = __importDefault(SlashDateFormatParser_1);
|
||
const ISOFormatParser_1$1 = __importDefault(ISOFormatParser_1);
|
||
const DETimeExpressionParser_1$1 = __importDefault(DETimeExpressionParser_1);
|
||
const DEWeekdayParser_1$1 = __importDefault(DEWeekdayParser_1);
|
||
const DEMergeDateRangeRefiner_1$1 = __importDefault(DEMergeDateRangeRefiner_1);
|
||
const DEMergeDateTimeRefiner_1$1 = __importDefault(DEMergeDateTimeRefiner_1);
|
||
const DECasualDateParser_1$1 = __importDefault(DECasualDateParser_1);
|
||
const DECasualTimeParser_1$1 = __importDefault(DECasualTimeParser_1);
|
||
const DEMonthNameLittleEndianParser_1$1 = __importDefault(DEMonthNameLittleEndianParser_1);
|
||
exports.casual = new chrono$1.Chrono(createCasualConfiguration());
|
||
exports.strict = new chrono$1.Chrono(createConfiguration(true));
|
||
function parse(text, ref, option) {
|
||
return exports.casual.parse(text, ref, option);
|
||
}
|
||
exports.parse = parse;
|
||
function parseDate(text, ref, option) {
|
||
return exports.casual.parseDate(text, ref, option);
|
||
}
|
||
exports.parseDate = parseDate;
|
||
function createCasualConfiguration(littleEndian = true) {
|
||
const option = createConfiguration(false, littleEndian);
|
||
option.parsers.unshift(new DECasualTimeParser_1$1.default());
|
||
option.parsers.unshift(new DECasualDateParser_1$1.default());
|
||
return option;
|
||
}
|
||
exports.createCasualConfiguration = createCasualConfiguration;
|
||
function createConfiguration(strictMode = true, littleEndian = true) {
|
||
return configurations.includeCommonConfiguration({
|
||
parsers: [
|
||
new ISOFormatParser_1$1.default(),
|
||
new SlashDateFormatParser_1$1.default(littleEndian),
|
||
new DETimeExpressionParser_1$1.default(),
|
||
new DEMonthNameLittleEndianParser_1$1.default(),
|
||
new DEWeekdayParser_1$1.default(),
|
||
],
|
||
refiners: [new DEMergeDateRangeRefiner_1$1.default(), new DEMergeDateTimeRefiner_1$1.default()],
|
||
}, strictMode);
|
||
}
|
||
exports.createConfiguration = createConfiguration;
|
||
});
|
||
|
||
var FRCasualDateParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||
}) : (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
o[k2] = m[k];
|
||
}));
|
||
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||
}) : function(o, v) {
|
||
o["default"] = v;
|
||
});
|
||
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
||
if (mod && mod.__esModule) return mod;
|
||
var result = {};
|
||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||
__setModuleDefault(result, mod);
|
||
return result;
|
||
};
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
|
||
|
||
const references = __importStar(casualReferences);
|
||
class FRCasualDateParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return /(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i;
|
||
}
|
||
innerExtract(context, match) {
|
||
let targetDate = dayjs_1.default(context.refDate);
|
||
const lowerText = match[0].toLowerCase();
|
||
const component = context.createParsingComponents();
|
||
switch (lowerText) {
|
||
case "maintenant":
|
||
return references.now(context.refDate);
|
||
case "aujourd'hui":
|
||
return references.today(context.refDate);
|
||
case "hier":
|
||
return references.yesterday(context.refDate);
|
||
case "demain":
|
||
return references.tomorrow(context.refDate);
|
||
default:
|
||
if (lowerText.match(/cette\s*nuit/)) {
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
component.imply("hour", 22);
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
}
|
||
else if (lowerText.match(/la\s*veille/)) {
|
||
targetDate = targetDate.add(-1, "day");
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
component.imply("hour", 0);
|
||
}
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = FRCasualDateParser;
|
||
});
|
||
|
||
var FRCasualTimeParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
class FRCasualTimeParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return /(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i;
|
||
}
|
||
innerExtract(context, match) {
|
||
const suffixLower = match[2].toLowerCase();
|
||
const component = context.createParsingComponents();
|
||
switch (suffixLower) {
|
||
case "après-midi":
|
||
case "aprem":
|
||
component.imply("hour", 14);
|
||
component.imply("minute", 0);
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
break;
|
||
case "soir":
|
||
component.imply("hour", 18);
|
||
component.imply("minute", 0);
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
break;
|
||
case "matin":
|
||
component.imply("hour", 8);
|
||
component.imply("minute", 0);
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
break;
|
||
case "a midi":
|
||
component.imply("hour", 12);
|
||
component.imply("minute", 0);
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
break;
|
||
case "à minuit":
|
||
component.imply("hour", 0);
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
break;
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = FRCasualTimeParser;
|
||
});
|
||
|
||
var FRTimeExpressionParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
class FRTimeExpressionParser extends AbstractTimeExpressionParser_1.AbstractTimeExpressionParser {
|
||
primaryPrefix() {
|
||
return "(?:(?:[àa])\\s*)?";
|
||
}
|
||
followingPhase() {
|
||
return "\\s*(?:\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*";
|
||
}
|
||
extractPrimaryTimeComponents(context, match) {
|
||
if (match[0].match(/^\s*\d{4}\s*$/)) {
|
||
return null;
|
||
}
|
||
return super.extractPrimaryTimeComponents(context, match);
|
||
}
|
||
}
|
||
exports.default = FRTimeExpressionParser;
|
||
});
|
||
|
||
var FRMergeDateTimeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateTimeRefiner_1 = __importDefault(AbstractMergeDateTimeRefiner);
|
||
class FRMergeDateTimeRefiner extends AbstractMergeDateTimeRefiner_1.default {
|
||
patternBetween() {
|
||
return new RegExp("^\\s*(T|à|a|vers|de|,|-)?\\s*$");
|
||
}
|
||
}
|
||
exports.default = FRMergeDateTimeRefiner;
|
||
});
|
||
|
||
var FRMergeDateRangeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateRangeRefiner_1$1 = __importDefault(AbstractMergeDateRangeRefiner_1);
|
||
class FRMergeDateRangeRefiner extends AbstractMergeDateRangeRefiner_1$1.default {
|
||
patternBetween() {
|
||
return /^\s*(à|a|-)\s*$/i;
|
||
}
|
||
}
|
||
exports.default = FRMergeDateRangeRefiner;
|
||
});
|
||
|
||
var constants$3 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0;
|
||
|
||
exports.WEEKDAY_DICTIONARY = {
|
||
"dimanche": 0,
|
||
"dim": 0,
|
||
"lundi": 1,
|
||
"lun": 1,
|
||
"mardi": 2,
|
||
"mar": 2,
|
||
"mercredi": 3,
|
||
"mer": 3,
|
||
"jeudi": 4,
|
||
"jeu": 4,
|
||
"vendredi": 5,
|
||
"ven": 5,
|
||
"samedi": 6,
|
||
"sam": 6,
|
||
};
|
||
exports.MONTH_DICTIONARY = {
|
||
"janvier": 1,
|
||
"jan": 1,
|
||
"jan.": 1,
|
||
"février": 2,
|
||
"fév": 2,
|
||
"fév.": 2,
|
||
"fevrier": 2,
|
||
"fev": 2,
|
||
"fev.": 2,
|
||
"mars": 3,
|
||
"mar": 3,
|
||
"mar.": 3,
|
||
"avril": 4,
|
||
"avr": 4,
|
||
"avr.": 4,
|
||
"mai": 5,
|
||
"juin": 6,
|
||
"jun": 6,
|
||
"juillet": 7,
|
||
"juil": 7,
|
||
"jul": 7,
|
||
"jul.": 7,
|
||
"août": 8,
|
||
"aout": 8,
|
||
"septembre": 9,
|
||
"sep": 9,
|
||
"sep.": 9,
|
||
"sept": 9,
|
||
"sept.": 9,
|
||
"octobre": 10,
|
||
"oct": 10,
|
||
"oct.": 10,
|
||
"novembre": 11,
|
||
"nov": 11,
|
||
"nov.": 11,
|
||
"décembre": 12,
|
||
"decembre": 12,
|
||
"dec": 12,
|
||
"dec.": 12,
|
||
};
|
||
exports.INTEGER_WORD_DICTIONARY = {
|
||
"un": 1,
|
||
"deux": 2,
|
||
"trois": 3,
|
||
"quatre": 4,
|
||
"cinq": 5,
|
||
"six": 6,
|
||
"sept": 7,
|
||
"huit": 8,
|
||
"neuf": 9,
|
||
"dix": 10,
|
||
"onze": 11,
|
||
"douze": 12,
|
||
"treize": 13,
|
||
};
|
||
exports.TIME_UNIT_DICTIONARY = {
|
||
"sec": "second",
|
||
"seconde": "second",
|
||
"secondes": "second",
|
||
"min": "minute",
|
||
"mins": "minute",
|
||
"minute": "minute",
|
||
"minutes": "minute",
|
||
"h": "hour",
|
||
"hr": "hour",
|
||
"hrs": "hour",
|
||
"heure": "hour",
|
||
"heures": "hour",
|
||
"jour": "d",
|
||
"jours": "d",
|
||
"semaine": "week",
|
||
"semaines": "week",
|
||
"mois": "month",
|
||
"trimestre": "quarter",
|
||
"trimestres": "quarter",
|
||
"ans": "year",
|
||
"année": "year",
|
||
"années": "year",
|
||
};
|
||
exports.NUMBER_PATTERN = `(?:${pattern.matchAnyPattern(exports.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|une?|quelques?|demi-?)`;
|
||
function parseNumberPattern(match) {
|
||
const num = match.toLowerCase();
|
||
if (exports.INTEGER_WORD_DICTIONARY[num] !== undefined) {
|
||
return exports.INTEGER_WORD_DICTIONARY[num];
|
||
}
|
||
else if (num === "une" || num === "un") {
|
||
return 1;
|
||
}
|
||
else if (num.match(/quelques?/)) {
|
||
return 3;
|
||
}
|
||
else if (num.match(/demi-?/)) {
|
||
return 0.5;
|
||
}
|
||
return parseFloat(num);
|
||
}
|
||
exports.parseNumberPattern = parseNumberPattern;
|
||
exports.ORDINAL_NUMBER_PATTERN = `(?:[0-9]{1,2}(?:er)?)`;
|
||
function parseOrdinalNumberPattern(match) {
|
||
let num = match.toLowerCase();
|
||
num = num.replace(/(?:er)$/i, "");
|
||
return parseInt(num);
|
||
}
|
||
exports.parseOrdinalNumberPattern = parseOrdinalNumberPattern;
|
||
exports.YEAR_PATTERN = `(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])`;
|
||
function parseYear(match) {
|
||
if (/AC/i.test(match)) {
|
||
match = match.replace(/BC/i, "");
|
||
return -parseInt(match);
|
||
}
|
||
if (/AD/i.test(match) || /C/i.test(match)) {
|
||
match = match.replace(/[^\d]+/i, "");
|
||
return parseInt(match);
|
||
}
|
||
let yearNumber = parseInt(match);
|
||
if (yearNumber < 100) {
|
||
if (yearNumber > 50) {
|
||
yearNumber = yearNumber + 1900;
|
||
}
|
||
else {
|
||
yearNumber = yearNumber + 2000;
|
||
}
|
||
}
|
||
return yearNumber;
|
||
}
|
||
exports.parseYear = parseYear;
|
||
const SINGLE_TIME_UNIT_PATTERN = `(${exports.NUMBER_PATTERN})\\s{0,5}(${pattern.matchAnyPattern(exports.TIME_UNIT_DICTIONARY)})\\s{0,5}`;
|
||
const SINGLE_TIME_UNIT_REGEX = new RegExp(SINGLE_TIME_UNIT_PATTERN, "i");
|
||
exports.TIME_UNITS_PATTERN = pattern.repeatedTimeunitPattern("", SINGLE_TIME_UNIT_PATTERN);
|
||
function parseTimeUnits(timeunitText) {
|
||
const fragments = {};
|
||
let remainingText = timeunitText;
|
||
let match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
||
while (match) {
|
||
collectDateTimeFragment(fragments, match);
|
||
remainingText = remainingText.substring(match[0].length);
|
||
match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
||
}
|
||
return fragments;
|
||
}
|
||
exports.parseTimeUnits = parseTimeUnits;
|
||
function collectDateTimeFragment(fragments, match) {
|
||
const num = parseNumberPattern(match[1]);
|
||
const unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()];
|
||
fragments[unit] = num;
|
||
}
|
||
});
|
||
|
||
var FRWeekdayParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
const PATTERN = new RegExp("(?:(?:\\,|\\(|\\()\\s*)?" +
|
||
"(?:(?:ce)\\s*)?" +
|
||
`(${pattern.matchAnyPattern(constants$3.WEEKDAY_DICTIONARY)})` +
|
||
"(?:\\s*(?:\\,|\\)|\\)))?" +
|
||
"(?:\\s*(dernier|prochain)\\s*)?" +
|
||
"(?=\\W|\\d|$)", "i");
|
||
const WEEKDAY_GROUP = 1;
|
||
const POSTFIX_GROUP = 2;
|
||
class FRWeekdayParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const dayOfWeek = match[WEEKDAY_GROUP].toLowerCase();
|
||
const offset = constants$3.WEEKDAY_DICTIONARY[dayOfWeek];
|
||
if (offset === undefined) {
|
||
return null;
|
||
}
|
||
let suffix = match[POSTFIX_GROUP];
|
||
suffix = suffix || "";
|
||
suffix = suffix.toLowerCase();
|
||
let modifier = null;
|
||
if (suffix == "dernier") {
|
||
modifier = "last";
|
||
}
|
||
else if (suffix == "prochain") {
|
||
modifier = "next";
|
||
}
|
||
const date = weeks.toDayJSWeekday(context.refDate, offset, modifier);
|
||
return context
|
||
.createParsingComponents()
|
||
.assign("weekday", offset)
|
||
.imply("day", date.date())
|
||
.imply("month", date.month() + 1)
|
||
.imply("year", date.year());
|
||
}
|
||
}
|
||
exports.default = FRWeekdayParser;
|
||
});
|
||
|
||
var FRSpecificTimeExpressionParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
const FIRST_REG_PATTERN = new RegExp("(^|\\s|T)" +
|
||
"(?:(?:[àa])\\s*)?" +
|
||
"(\\d{1,2})(?:h|:)?" +
|
||
"(?:(\\d{1,2})(?:m|:)?)?" +
|
||
"(?:(\\d{1,2})(?:s|:)?)?" +
|
||
"(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?" +
|
||
"(?=\\W|$)", "i");
|
||
const SECOND_REG_PATTERN = new RegExp("^\\s*(\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*" +
|
||
"(\\d{1,2})(?:h|:)?" +
|
||
"(?:(\\d{1,2})(?:m|:)?)?" +
|
||
"(?:(\\d{1,2})(?:s|:)?)?" +
|
||
"(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?" +
|
||
"(?=\\W|$)", "i");
|
||
const HOUR_GROUP = 2;
|
||
const MINUTE_GROUP = 3;
|
||
const SECOND_GROUP = 4;
|
||
const AM_PM_HOUR_GROUP = 5;
|
||
class FRSpecificTimeExpressionParser {
|
||
pattern(context) {
|
||
return FIRST_REG_PATTERN;
|
||
}
|
||
extract(context, match) {
|
||
const result = context.createParsingResult(match.index + match[1].length, match[0].substring(match[1].length));
|
||
if (result.text.match(/^\d{4}$/)) {
|
||
match.index += match[0].length;
|
||
return null;
|
||
}
|
||
result.start = FRSpecificTimeExpressionParser.extractTimeComponent(result.start.clone(), match);
|
||
if (!result.start) {
|
||
match.index += match[0].length;
|
||
return null;
|
||
}
|
||
const remainingText = context.text.substring(match.index + match[0].length);
|
||
const secondMatch = SECOND_REG_PATTERN.exec(remainingText);
|
||
if (secondMatch) {
|
||
result.end = FRSpecificTimeExpressionParser.extractTimeComponent(result.start.clone(), secondMatch);
|
||
if (result.end) {
|
||
result.text += secondMatch[0];
|
||
}
|
||
}
|
||
return result;
|
||
}
|
||
static extractTimeComponent(extractingComponents, match) {
|
||
let hour = 0;
|
||
let minute = 0;
|
||
let meridiem = null;
|
||
hour = parseInt(match[HOUR_GROUP]);
|
||
if (match[MINUTE_GROUP] != null) {
|
||
minute = parseInt(match[MINUTE_GROUP]);
|
||
}
|
||
if (minute >= 60 || hour > 24) {
|
||
return null;
|
||
}
|
||
if (hour >= 12) {
|
||
meridiem = dist.Meridiem.PM;
|
||
}
|
||
if (match[AM_PM_HOUR_GROUP] != null) {
|
||
if (hour > 12)
|
||
return null;
|
||
const ampm = match[AM_PM_HOUR_GROUP][0].toLowerCase();
|
||
if (ampm == "a") {
|
||
meridiem = dist.Meridiem.AM;
|
||
if (hour == 12) {
|
||
hour = 0;
|
||
}
|
||
}
|
||
if (ampm == "p") {
|
||
meridiem = dist.Meridiem.PM;
|
||
if (hour != 12) {
|
||
hour += 12;
|
||
}
|
||
}
|
||
}
|
||
extractingComponents.assign("hour", hour);
|
||
extractingComponents.assign("minute", minute);
|
||
if (meridiem !== null) {
|
||
extractingComponents.assign("meridiem", meridiem);
|
||
}
|
||
else {
|
||
if (hour < 12) {
|
||
extractingComponents.imply("meridiem", dist.Meridiem.AM);
|
||
}
|
||
else {
|
||
extractingComponents.imply("meridiem", dist.Meridiem.PM);
|
||
}
|
||
}
|
||
if (match[SECOND_GROUP] != null) {
|
||
const second = parseInt(match[SECOND_GROUP]);
|
||
if (second >= 60)
|
||
return null;
|
||
extractingComponents.assign("second", second);
|
||
}
|
||
return extractingComponents;
|
||
}
|
||
}
|
||
exports.default = FRSpecificTimeExpressionParser;
|
||
});
|
||
|
||
var FRMonthNameLittleEndianParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const constants_2 = constants$3;
|
||
const constants_3 = constants$3;
|
||
|
||
|
||
const PATTERN = new RegExp("(?:on\\s*?)?" +
|
||
`(${constants_3.ORDINAL_NUMBER_PATTERN})` +
|
||
`(?:\\s*(?:au|\\-|\\–|jusqu'au?|\\s)\\s*(${constants_3.ORDINAL_NUMBER_PATTERN}))?` +
|
||
`(?:-|/|\\s*(?:de)?\\s*)` +
|
||
`(${pattern.matchAnyPattern(constants$3.MONTH_DICTIONARY)})` +
|
||
`(?:(?:-|/|,?\\s*)(${constants_2.YEAR_PATTERN}(?![^\\s]\\d)))?` +
|
||
`(?=\\W|$)`, "i");
|
||
const DATE_GROUP = 1;
|
||
const DATE_TO_GROUP = 2;
|
||
const MONTH_NAME_GROUP = 3;
|
||
const YEAR_GROUP = 4;
|
||
class FRMonthNameLittleEndianParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const result = context.createParsingResult(match.index, match[0]);
|
||
const month = constants$3.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
||
const day = constants_3.parseOrdinalNumberPattern(match[DATE_GROUP]);
|
||
if (day > 31) {
|
||
match.index = match.index + match[DATE_GROUP].length;
|
||
return null;
|
||
}
|
||
result.start.assign("month", month);
|
||
result.start.assign("day", day);
|
||
if (match[YEAR_GROUP]) {
|
||
const yearNumber = constants_2.parseYear(match[YEAR_GROUP]);
|
||
result.start.assign("year", yearNumber);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, day, month);
|
||
result.start.imply("year", year);
|
||
}
|
||
if (match[DATE_TO_GROUP]) {
|
||
const endDate = constants_3.parseOrdinalNumberPattern(match[DATE_TO_GROUP]);
|
||
result.end = result.start.clone();
|
||
result.end.assign("day", endDate);
|
||
}
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = FRMonthNameLittleEndianParser;
|
||
});
|
||
|
||
var FRTimeUnitAgoFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
class FRTimeUnitAgoFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
constructor() {
|
||
super();
|
||
}
|
||
innerPattern() {
|
||
return new RegExp(`il y a\\s*(${constants$3.TIME_UNITS_PATTERN})(?=(?:\\W|$))`, "i");
|
||
}
|
||
innerExtract(context, match) {
|
||
const timeUnits = constants$3.parseTimeUnits(match[1]);
|
||
const outputTimeUnits = timeunits.reverseTimeUnits(timeUnits);
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, outputTimeUnits);
|
||
}
|
||
}
|
||
exports.default = FRTimeUnitAgoFormatParser;
|
||
});
|
||
|
||
var FRTimeUnitWithinFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
class FRTimeUnitWithinFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return new RegExp(`(?:dans|en|pour|pendant)\\s*(${constants$3.TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
||
}
|
||
innerExtract(context, match) {
|
||
const timeUnits = constants$3.parseTimeUnits(match[1]);
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, timeUnits);
|
||
}
|
||
}
|
||
exports.default = FRTimeUnitWithinFormatParser;
|
||
});
|
||
|
||
var FRTimeUnitRelativeFormatParser = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
|
||
class FRTimeUnitAgoFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
constructor() {
|
||
super();
|
||
}
|
||
innerPattern() {
|
||
return new RegExp(`(?:les?|la|l'|du|des?)\\s*` +
|
||
`(${constants$3.NUMBER_PATTERN})?` +
|
||
`(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?` +
|
||
`\\s*(${pattern.matchAnyPattern(constants$3.TIME_UNIT_DICTIONARY)})` +
|
||
`(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?`, "i");
|
||
}
|
||
innerExtract(context, match) {
|
||
const num = match[1] ? constants$3.parseNumberPattern(match[1]) : 1;
|
||
const unit = constants$3.TIME_UNIT_DICTIONARY[match[3].toLowerCase()];
|
||
let timeUnits = {};
|
||
timeUnits[unit] = num;
|
||
let modifier = match[2] || match[4] || "";
|
||
modifier = modifier.toLowerCase();
|
||
if (!modifier) {
|
||
return;
|
||
}
|
||
if (/derni[eè]re?s?/.test(modifier) || /pass[ée]e?s?/.test(modifier) || /pr[ée]c[ée]dents?/.test(modifier)) {
|
||
timeUnits = timeunits.reverseTimeUnits(timeUnits);
|
||
}
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, timeUnits);
|
||
}
|
||
}
|
||
exports.default = FRTimeUnitAgoFormatParser;
|
||
});
|
||
|
||
var fr = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.createConfiguration = exports.createCasualConfiguration = exports.parseDate = exports.parse = exports.strict = exports.casual = void 0;
|
||
|
||
|
||
const FRCasualDateParser_1$1 = __importDefault(FRCasualDateParser_1);
|
||
const FRCasualTimeParser_1$1 = __importDefault(FRCasualTimeParser_1);
|
||
const SlashDateFormatParser_1$1 = __importDefault(SlashDateFormatParser_1);
|
||
const FRTimeExpressionParser_1$1 = __importDefault(FRTimeExpressionParser_1);
|
||
const FRMergeDateTimeRefiner_1$1 = __importDefault(FRMergeDateTimeRefiner_1);
|
||
const FRMergeDateRangeRefiner_1$1 = __importDefault(FRMergeDateRangeRefiner_1);
|
||
const FRWeekdayParser_1$1 = __importDefault(FRWeekdayParser_1);
|
||
const FRSpecificTimeExpressionParser_1$1 = __importDefault(FRSpecificTimeExpressionParser_1);
|
||
const FRMonthNameLittleEndianParser_1$1 = __importDefault(FRMonthNameLittleEndianParser_1);
|
||
const FRTimeUnitAgoFormatParser_1$1 = __importDefault(FRTimeUnitAgoFormatParser_1);
|
||
const FRTimeUnitWithinFormatParser_1$1 = __importDefault(FRTimeUnitWithinFormatParser_1);
|
||
const FRTimeUnitRelativeFormatParser_1 = __importDefault(FRTimeUnitRelativeFormatParser);
|
||
exports.casual = new chrono$1.Chrono(createCasualConfiguration());
|
||
exports.strict = new chrono$1.Chrono(createConfiguration(true));
|
||
function parse(text, ref, option) {
|
||
return exports.casual.parse(text, ref, option);
|
||
}
|
||
exports.parse = parse;
|
||
function parseDate(text, ref, option) {
|
||
return exports.casual.parseDate(text, ref, option);
|
||
}
|
||
exports.parseDate = parseDate;
|
||
function createCasualConfiguration(littleEndian = true) {
|
||
const option = createConfiguration(false, littleEndian);
|
||
option.parsers.unshift(new FRCasualDateParser_1$1.default());
|
||
option.parsers.unshift(new FRCasualTimeParser_1$1.default());
|
||
option.parsers.unshift(new FRTimeUnitRelativeFormatParser_1.default());
|
||
return option;
|
||
}
|
||
exports.createCasualConfiguration = createCasualConfiguration;
|
||
function createConfiguration(strictMode = true, littleEndian = true) {
|
||
return configurations.includeCommonConfiguration({
|
||
parsers: [
|
||
new SlashDateFormatParser_1$1.default(littleEndian),
|
||
new FRMonthNameLittleEndianParser_1$1.default(),
|
||
new FRTimeExpressionParser_1$1.default(),
|
||
new FRSpecificTimeExpressionParser_1$1.default(),
|
||
new FRTimeUnitAgoFormatParser_1$1.default(),
|
||
new FRTimeUnitWithinFormatParser_1$1.default(),
|
||
new FRWeekdayParser_1$1.default(),
|
||
],
|
||
refiners: [new FRMergeDateTimeRefiner_1$1.default(), new FRMergeDateRangeRefiner_1$1.default()],
|
||
}, strictMode);
|
||
}
|
||
exports.createConfiguration = createConfiguration;
|
||
});
|
||
|
||
var constants$2 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.toHankaku = void 0;
|
||
function toHankaku(text) {
|
||
return String(text)
|
||
.replace(/\u2019/g, "\u0027")
|
||
.replace(/\u201D/g, "\u0022")
|
||
.replace(/\u3000/g, "\u0020")
|
||
.replace(/\uFFE5/g, "\u00A5")
|
||
.replace(/[\uFF01\uFF03-\uFF06\uFF08\uFF09\uFF0C-\uFF19\uFF1C-\uFF1F\uFF21-\uFF3B\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5E]/g, alphaNum);
|
||
}
|
||
exports.toHankaku = toHankaku;
|
||
function alphaNum(token) {
|
||
return String.fromCharCode(token.charCodeAt(0) - 65248);
|
||
}
|
||
});
|
||
|
||
var JPStandardParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
const PATTERN = /(?:(?:([同今本])|((昭和|平成|令和)?([0-90-9]{1,4}|元)))年\s*)?([0-90-9]{1,2})月\s*([0-90-9]{1,2})日/i;
|
||
const SPECIAL_YEAR_GROUP = 1;
|
||
const TYPICAL_YEAR_GROUP = 2;
|
||
const ERA_GROUP = 3;
|
||
const YEAR_NUMBER_GROUP = 4;
|
||
const MONTH_GROUP = 5;
|
||
const DAY_GROUP = 6;
|
||
class JPStandardParser {
|
||
pattern() {
|
||
return PATTERN;
|
||
}
|
||
extract(context, match) {
|
||
const month = parseInt(constants$2.toHankaku(match[MONTH_GROUP]));
|
||
const day = parseInt(constants$2.toHankaku(match[DAY_GROUP]));
|
||
const components = context.createParsingComponents({
|
||
day: day,
|
||
month: month,
|
||
});
|
||
if (match[SPECIAL_YEAR_GROUP] && match[SPECIAL_YEAR_GROUP].match("同|今|本")) {
|
||
const moment = dayjs_1.default(context.refDate);
|
||
components.assign("year", moment.year());
|
||
}
|
||
if (match[TYPICAL_YEAR_GROUP]) {
|
||
const yearNumText = match[YEAR_NUMBER_GROUP];
|
||
let year = yearNumText == "元" ? 1 : parseInt(constants$2.toHankaku(yearNumText));
|
||
if (match[ERA_GROUP] == "令和") {
|
||
year += 2018;
|
||
}
|
||
else if (match[ERA_GROUP] == "平成") {
|
||
year += 1988;
|
||
}
|
||
else if (match[ERA_GROUP] == "昭和") {
|
||
year += 1925;
|
||
}
|
||
components.assign("year", year);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, day, month);
|
||
components.imply("year", year);
|
||
}
|
||
return components;
|
||
}
|
||
}
|
||
exports.default = JPStandardParser;
|
||
});
|
||
|
||
var JPMergeDateRangeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateRangeRefiner_1$1 = __importDefault(AbstractMergeDateRangeRefiner_1);
|
||
class JPMergeDateRangeRefiner extends AbstractMergeDateRangeRefiner_1$1.default {
|
||
patternBetween() {
|
||
return /^\s*(から|ー|-)\s*$/i;
|
||
}
|
||
}
|
||
exports.default = JPMergeDateRangeRefiner;
|
||
});
|
||
|
||
var JPCasualDateParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||
}) : (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
o[k2] = m[k];
|
||
}));
|
||
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||
}) : function(o, v) {
|
||
o["default"] = v;
|
||
});
|
||
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
||
if (mod && mod.__esModule) return mod;
|
||
var result = {};
|
||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||
__setModuleDefault(result, mod);
|
||
return result;
|
||
};
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
const references = __importStar(casualReferences);
|
||
const PATTERN = /今日|当日|昨日|明日|今夜|今夕|今晩|今朝/i;
|
||
class JPCasualDateParser {
|
||
pattern() {
|
||
return PATTERN;
|
||
}
|
||
extract(context, match) {
|
||
const text = match[0];
|
||
const date = dayjs_1.default(context.refDate);
|
||
const components = context.createParsingComponents();
|
||
switch (text) {
|
||
case "昨日":
|
||
return references.yesterday(context.refDate);
|
||
case "明日":
|
||
return references.tomorrow(context.refDate);
|
||
case "今日":
|
||
case "当日":
|
||
return references.today(context.refDate);
|
||
}
|
||
if (text == "今夜" || text == "今夕" || text == "今晩") {
|
||
components.imply("hour", 22);
|
||
components.assign("meridiem", dist.Meridiem.PM);
|
||
}
|
||
else if (text.match("今朝")) {
|
||
components.imply("hour", 6);
|
||
components.assign("meridiem", dist.Meridiem.AM);
|
||
}
|
||
components.assign("day", date.date());
|
||
components.assign("month", date.month() + 1);
|
||
components.assign("year", date.year());
|
||
return components;
|
||
}
|
||
}
|
||
exports.default = JPCasualDateParser;
|
||
});
|
||
|
||
var ja = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.createConfiguration = exports.createCasualConfiguration = exports.parseDate = exports.parse = exports.strict = exports.casual = void 0;
|
||
const JPStandardParser_1$1 = __importDefault(JPStandardParser_1);
|
||
const JPMergeDateRangeRefiner_1$1 = __importDefault(JPMergeDateRangeRefiner_1);
|
||
const JPCasualDateParser_1$1 = __importDefault(JPCasualDateParser_1);
|
||
|
||
exports.casual = new chrono$1.Chrono(createCasualConfiguration());
|
||
exports.strict = new chrono$1.Chrono(createConfiguration());
|
||
function parse(text, ref, option) {
|
||
return exports.casual.parse(text, ref, option);
|
||
}
|
||
exports.parse = parse;
|
||
function parseDate(text, ref, option) {
|
||
return exports.casual.parseDate(text, ref, option);
|
||
}
|
||
exports.parseDate = parseDate;
|
||
function createCasualConfiguration() {
|
||
const option = createConfiguration();
|
||
option.parsers.unshift(new JPCasualDateParser_1$1.default());
|
||
return option;
|
||
}
|
||
exports.createCasualConfiguration = createCasualConfiguration;
|
||
function createConfiguration() {
|
||
return {
|
||
parsers: [new JPStandardParser_1$1.default()],
|
||
refiners: [new JPMergeDateRangeRefiner_1$1.default()],
|
||
};
|
||
}
|
||
exports.createConfiguration = createConfiguration;
|
||
});
|
||
|
||
var constants$1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.parseYear = exports.YEAR_PATTERN = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0;
|
||
exports.WEEKDAY_DICTIONARY = {
|
||
"domingo": 0,
|
||
"dom": 0,
|
||
"segunda": 1,
|
||
"segunda-feira": 1,
|
||
"seg": 1,
|
||
"terça": 2,
|
||
"terça-feira": 2,
|
||
"ter": 2,
|
||
"quarta": 3,
|
||
"quarta-feira": 3,
|
||
"qua": 3,
|
||
"quinta": 4,
|
||
"quinta-feira": 4,
|
||
"qui": 4,
|
||
"sexta": 5,
|
||
"sexta-feira": 5,
|
||
"sex": 5,
|
||
"sábado": 6,
|
||
"sabado": 6,
|
||
"sab": 6,
|
||
};
|
||
exports.MONTH_DICTIONARY = {
|
||
"janeiro": 1,
|
||
"jan": 1,
|
||
"jan.": 1,
|
||
"fevereiro": 2,
|
||
"fev": 2,
|
||
"fev.": 2,
|
||
"março": 3,
|
||
"mar": 3,
|
||
"mar.": 3,
|
||
"abril": 4,
|
||
"abr": 4,
|
||
"abr.": 4,
|
||
"maio": 5,
|
||
"mai": 5,
|
||
"mai.": 5,
|
||
"junho": 6,
|
||
"jun": 6,
|
||
"jun.": 6,
|
||
"julho": 7,
|
||
"jul": 7,
|
||
"jul.": 7,
|
||
"agosto": 8,
|
||
"ago": 8,
|
||
"ago.": 8,
|
||
"setembro": 9,
|
||
"set": 9,
|
||
"set.": 9,
|
||
"outubro": 10,
|
||
"out": 10,
|
||
"out.": 10,
|
||
"novembro": 11,
|
||
"nov": 11,
|
||
"nov.": 11,
|
||
"dezembro": 12,
|
||
"dez": 12,
|
||
"dez.": 12,
|
||
};
|
||
exports.YEAR_PATTERN = "[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?";
|
||
function parseYear(match) {
|
||
if (match.match(/^[0-9]{1,4}$/)) {
|
||
let yearNumber = parseInt(match);
|
||
if (yearNumber < 100) {
|
||
if (yearNumber > 50) {
|
||
yearNumber = yearNumber + 1900;
|
||
}
|
||
else {
|
||
yearNumber = yearNumber + 2000;
|
||
}
|
||
}
|
||
return yearNumber;
|
||
}
|
||
if (match.match(/a\.?\s*c\.?/i)) {
|
||
match = match.replace(/a\.?\s*c\.?/i, "");
|
||
return -parseInt(match);
|
||
}
|
||
return parseInt(match);
|
||
}
|
||
exports.parseYear = parseYear;
|
||
});
|
||
|
||
var PTWeekdayParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
const PATTERN = new RegExp("(?:(?:\\,|\\(|\\()\\s*)?" +
|
||
"(?:(este|esta|passado|pr[oó]ximo)\\s*)?" +
|
||
`(${pattern.matchAnyPattern(constants$1.WEEKDAY_DICTIONARY)})` +
|
||
"(?:\\s*(?:\\,|\\)|\\)))?" +
|
||
"(?:\\s*(este|esta|passado|pr[óo]ximo)\\s*semana)?" +
|
||
"(?=\\W|\\d|$)", "i");
|
||
const PREFIX_GROUP = 1;
|
||
const WEEKDAY_GROUP = 2;
|
||
const POSTFIX_GROUP = 3;
|
||
class PTWeekdayParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const dayOfWeek = match[WEEKDAY_GROUP].toLowerCase();
|
||
const offset = constants$1.WEEKDAY_DICTIONARY[dayOfWeek];
|
||
if (offset === undefined) {
|
||
return null;
|
||
}
|
||
const prefix = match[PREFIX_GROUP];
|
||
const postfix = match[POSTFIX_GROUP];
|
||
let norm = prefix || postfix || "";
|
||
norm = norm.toLowerCase();
|
||
let modifier = null;
|
||
if (norm == "passado") {
|
||
modifier = "this";
|
||
}
|
||
else if (norm == "próximo" || norm == "proximo") {
|
||
modifier = "next";
|
||
}
|
||
else if (norm == "este") {
|
||
modifier = "this";
|
||
}
|
||
const date = weeks.toDayJSWeekday(context.refDate, offset, modifier);
|
||
return context
|
||
.createParsingComponents()
|
||
.assign("weekday", offset)
|
||
.imply("day", date.date())
|
||
.imply("month", date.month() + 1)
|
||
.imply("year", date.year());
|
||
}
|
||
}
|
||
exports.default = PTWeekdayParser;
|
||
});
|
||
|
||
var PTTimeExpressionParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
class PTTimeExpressionParser extends AbstractTimeExpressionParser_1.AbstractTimeExpressionParser {
|
||
primaryPrefix() {
|
||
return "(?:(?:ao?|às?|das|da|de|do)\\s*)?";
|
||
}
|
||
followingPhase() {
|
||
return "\\s*(?:\\-|\\–|\\~|\\〜|a(?:o)?|\\?)\\s*";
|
||
}
|
||
}
|
||
exports.default = PTTimeExpressionParser;
|
||
});
|
||
|
||
var PTMergeDateTimeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateTimeRefiner_1 = __importDefault(AbstractMergeDateTimeRefiner);
|
||
class PTMergeDateTimeRefiner extends AbstractMergeDateTimeRefiner_1.default {
|
||
patternBetween() {
|
||
return new RegExp("^\\s*(?:,|à)?\\s*$");
|
||
}
|
||
}
|
||
exports.default = PTMergeDateTimeRefiner;
|
||
});
|
||
|
||
var PTMergeDateRangeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateRangeRefiner_1$1 = __importDefault(AbstractMergeDateRangeRefiner_1);
|
||
class PTMergeDateRangeRefiner extends AbstractMergeDateRangeRefiner_1$1.default {
|
||
patternBetween() {
|
||
return /^\s*(?:-)\s*$/i;
|
||
}
|
||
}
|
||
exports.default = PTMergeDateRangeRefiner;
|
||
});
|
||
|
||
var PTMonthNameLittleEndianParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const constants_2 = constants$1;
|
||
|
||
|
||
const PATTERN = new RegExp(`([0-9]{1,2})(?:º|ª|°)?` +
|
||
"(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*([0-9]{1,2})(?:º|ª|°)?)?\\s*(?:de)?\\s*" +
|
||
`(?:-|/|\\s*(?:de|,)?\\s*)` +
|
||
`(${pattern.matchAnyPattern(constants$1.MONTH_DICTIONARY)})` +
|
||
`(?:\\s*(?:de|,)?\\s*(${constants_2.YEAR_PATTERN}))?` +
|
||
`(?=\\W|$)`, "i");
|
||
const DATE_GROUP = 1;
|
||
const DATE_TO_GROUP = 2;
|
||
const MONTH_NAME_GROUP = 3;
|
||
const YEAR_GROUP = 4;
|
||
class PTMonthNameLittleEndianParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const result = context.createParsingResult(match.index, match[0]);
|
||
const month = constants$1.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
||
const day = parseInt(match[DATE_GROUP]);
|
||
if (day > 31) {
|
||
match.index = match.index + match[DATE_GROUP].length;
|
||
return null;
|
||
}
|
||
result.start.assign("month", month);
|
||
result.start.assign("day", day);
|
||
if (match[YEAR_GROUP]) {
|
||
const yearNumber = constants_2.parseYear(match[YEAR_GROUP]);
|
||
result.start.assign("year", yearNumber);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, day, month);
|
||
result.start.imply("year", year);
|
||
}
|
||
if (match[DATE_TO_GROUP]) {
|
||
const endDate = parseInt(match[DATE_TO_GROUP]);
|
||
result.end = result.start.clone();
|
||
result.end.assign("day", endDate);
|
||
}
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = PTMonthNameLittleEndianParser;
|
||
});
|
||
|
||
var PTCasualDateParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||
}) : (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
o[k2] = m[k];
|
||
}));
|
||
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||
}) : function(o, v) {
|
||
o["default"] = v;
|
||
});
|
||
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
||
if (mod && mod.__esModule) return mod;
|
||
var result = {};
|
||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||
__setModuleDefault(result, mod);
|
||
return result;
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
const references = __importStar(casualReferences);
|
||
class PTCasualDateParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return /(agora|hoje|amanha|amanhã|ontem)(?=\W|$)/i;
|
||
}
|
||
innerExtract(context, match) {
|
||
const lowerText = match[0].toLowerCase();
|
||
const component = context.createParsingComponents();
|
||
switch (lowerText) {
|
||
case "agora":
|
||
return references.now(context.refDate);
|
||
case "hoje":
|
||
return references.today(context.refDate);
|
||
case "amanha":
|
||
case "amanhã":
|
||
return references.tomorrow(context.refDate);
|
||
case "ontem":
|
||
return references.yesterday(context.refDate);
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = PTCasualDateParser;
|
||
});
|
||
|
||
var PTCasualTimeParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
const dayjs_2 = __importDefault(dayjs_min);
|
||
class PTCasualTimeParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return /(?:esta\s*)?(manha|manhã|tarde|meia-noite|meio-dia|noite)(?=\W|$)/i;
|
||
}
|
||
innerExtract(context, match) {
|
||
const targetDate = dayjs_2.default(context.refDate);
|
||
const component = context.createParsingComponents();
|
||
switch (match[1].toLowerCase()) {
|
||
case "tarde":
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
component.imply("hour", 15);
|
||
break;
|
||
case "noite":
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
component.imply("hour", 22);
|
||
break;
|
||
case "manha":
|
||
case "manhã":
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
component.imply("hour", 6);
|
||
break;
|
||
case "meia-noite":
|
||
dayjs.assignTheNextDay(component, targetDate);
|
||
component.imply("hour", 0);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
break;
|
||
case "meio-dia":
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
component.imply("hour", 12);
|
||
break;
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = PTCasualTimeParser;
|
||
});
|
||
|
||
var pt = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.createConfiguration = exports.createCasualConfiguration = exports.parseDate = exports.parse = exports.strict = exports.casual = void 0;
|
||
|
||
|
||
const SlashDateFormatParser_1$1 = __importDefault(SlashDateFormatParser_1);
|
||
const PTWeekdayParser_1$1 = __importDefault(PTWeekdayParser_1);
|
||
const PTTimeExpressionParser_1$1 = __importDefault(PTTimeExpressionParser_1);
|
||
const PTMergeDateTimeRefiner_1$1 = __importDefault(PTMergeDateTimeRefiner_1);
|
||
const PTMergeDateRangeRefiner_1$1 = __importDefault(PTMergeDateRangeRefiner_1);
|
||
const PTMonthNameLittleEndianParser_1$1 = __importDefault(PTMonthNameLittleEndianParser_1);
|
||
const PTCasualDateParser_1$1 = __importDefault(PTCasualDateParser_1);
|
||
const PTCasualTimeParser_1$1 = __importDefault(PTCasualTimeParser_1);
|
||
exports.casual = new chrono$1.Chrono(createCasualConfiguration());
|
||
exports.strict = new chrono$1.Chrono(createConfiguration(true));
|
||
function parse(text, ref, option) {
|
||
return exports.casual.parse(text, ref, option);
|
||
}
|
||
exports.parse = parse;
|
||
function parseDate(text, ref, option) {
|
||
return exports.casual.parseDate(text, ref, option);
|
||
}
|
||
exports.parseDate = parseDate;
|
||
function createCasualConfiguration(littleEndian = true) {
|
||
const option = createConfiguration(false, littleEndian);
|
||
option.parsers.push(new PTCasualDateParser_1$1.default());
|
||
option.parsers.push(new PTCasualTimeParser_1$1.default());
|
||
return option;
|
||
}
|
||
exports.createCasualConfiguration = createCasualConfiguration;
|
||
function createConfiguration(strictMode = true, littleEndian = true) {
|
||
return configurations.includeCommonConfiguration({
|
||
parsers: [
|
||
new SlashDateFormatParser_1$1.default(littleEndian),
|
||
new PTWeekdayParser_1$1.default(),
|
||
new PTTimeExpressionParser_1$1.default(),
|
||
new PTMonthNameLittleEndianParser_1$1.default(),
|
||
],
|
||
refiners: [new PTMergeDateTimeRefiner_1$1.default(), new PTMergeDateRangeRefiner_1$1.default()],
|
||
}, strictMode);
|
||
}
|
||
exports.createConfiguration = createConfiguration;
|
||
});
|
||
|
||
var NLMergeDateRangeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateRangeRefiner_1$1 = __importDefault(AbstractMergeDateRangeRefiner_1);
|
||
class NLMergeDateRangeRefiner extends AbstractMergeDateRangeRefiner_1$1.default {
|
||
patternBetween() {
|
||
return /^\s*(tot|-)\s*$/i;
|
||
}
|
||
}
|
||
exports.default = NLMergeDateRangeRefiner;
|
||
});
|
||
|
||
var NLMergeDateTimeRefiner_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
const AbstractMergeDateTimeRefiner_1 = __importDefault(AbstractMergeDateTimeRefiner);
|
||
class NLMergeDateTimeRefiner extends AbstractMergeDateTimeRefiner_1.default {
|
||
patternBetween() {
|
||
return new RegExp("^\\s*(om|na|voor|in de|,|-)?\\s*$");
|
||
}
|
||
}
|
||
exports.default = NLMergeDateTimeRefiner;
|
||
});
|
||
|
||
var NLCasualDateParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||
}) : (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
o[k2] = m[k];
|
||
}));
|
||
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||
}) : function(o, v) {
|
||
o["default"] = v;
|
||
});
|
||
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
||
if (mod && mod.__esModule) return mod;
|
||
var result = {};
|
||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||
__setModuleDefault(result, mod);
|
||
return result;
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
const references = __importStar(casualReferences);
|
||
class NLCasualDateParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return /(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i;
|
||
}
|
||
innerExtract(context, match) {
|
||
const lowerText = match[0].toLowerCase();
|
||
const component = context.createParsingComponents();
|
||
switch (lowerText) {
|
||
case "nu":
|
||
return references.now(context.refDate);
|
||
case "vandaag":
|
||
return references.today(context.refDate);
|
||
case "morgen":
|
||
case "morgend":
|
||
return references.tomorrow(context.refDate);
|
||
case "gisteren":
|
||
return references.yesterday(context.refDate);
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = NLCasualDateParser;
|
||
});
|
||
|
||
var NLCasualTimeParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const dayjs_1 = __importDefault(dayjs_min);
|
||
|
||
const DAY_GROUP = 1;
|
||
const MOMENT_GROUP = 2;
|
||
class NLCasualTimeParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return /(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i;
|
||
}
|
||
innerExtract(context, match) {
|
||
const targetDate = dayjs_1.default(context.refDate);
|
||
const component = context.createParsingComponents();
|
||
if (match[DAY_GROUP] === "deze") {
|
||
component.assign("day", context.refDate.getDate());
|
||
component.assign("month", context.refDate.getMonth() + 1);
|
||
component.assign("year", context.refDate.getFullYear());
|
||
}
|
||
switch (match[MOMENT_GROUP].toLowerCase()) {
|
||
case "namiddag":
|
||
case "'s namiddags":
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
component.imply("hour", 15);
|
||
break;
|
||
case "avond":
|
||
case "'s avonds'":
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
component.imply("hour", 20);
|
||
break;
|
||
case "middernacht":
|
||
dayjs.assignTheNextDay(component, targetDate);
|
||
component.imply("hour", 0);
|
||
component.imply("minute", 0);
|
||
component.imply("second", 0);
|
||
break;
|
||
case "ochtend":
|
||
case "'s ochtends":
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
component.imply("hour", 6);
|
||
break;
|
||
case "middag":
|
||
case "'s middags":
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
component.imply("hour", 12);
|
||
break;
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = NLCasualTimeParser;
|
||
});
|
||
|
||
var constants = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.ORDINAL_WORD_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0;
|
||
|
||
|
||
exports.WEEKDAY_DICTIONARY = {
|
||
zondag: 0,
|
||
zon: 0,
|
||
"zon.": 0,
|
||
zo: 0,
|
||
"zo.": 0,
|
||
maandag: 1,
|
||
ma: 1,
|
||
"ma.": 1,
|
||
dinsdag: 2,
|
||
din: 2,
|
||
"din.": 2,
|
||
di: 2,
|
||
"di.": 2,
|
||
woensdag: 3,
|
||
woe: 3,
|
||
"woe.": 3,
|
||
wo: 3,
|
||
"wo.": 3,
|
||
donderdag: 4,
|
||
dond: 4,
|
||
"dond.": 4,
|
||
do: 4,
|
||
"do.": 4,
|
||
vrijdag: 5,
|
||
vrij: 5,
|
||
"vrij.": 5,
|
||
vr: 5,
|
||
"vr.": 5,
|
||
zaterdag: 6,
|
||
zat: 6,
|
||
"zat.": 6,
|
||
"za": 6,
|
||
"za.": 6,
|
||
};
|
||
exports.MONTH_DICTIONARY = {
|
||
januari: 1,
|
||
jan: 1,
|
||
"jan.": 1,
|
||
februari: 2,
|
||
feb: 2,
|
||
"feb.": 2,
|
||
maart: 3,
|
||
mar: 3,
|
||
"mar.": 3,
|
||
april: 4,
|
||
apr: 4,
|
||
"apr.": 4,
|
||
mei: 5,
|
||
juni: 6,
|
||
jun: 6,
|
||
"jun.": 6,
|
||
juli: 7,
|
||
jul: 7,
|
||
"jul.": 7,
|
||
augustus: 8,
|
||
aug: 8,
|
||
"aug.": 8,
|
||
september: 9,
|
||
sep: 9,
|
||
"sep.": 9,
|
||
sept: 9,
|
||
"sept.": 9,
|
||
oktober: 10,
|
||
okt: 10,
|
||
"okt.": 10,
|
||
november: 11,
|
||
nov: 11,
|
||
"nov.": 11,
|
||
december: 12,
|
||
dec: 12,
|
||
"dec.": 12,
|
||
};
|
||
exports.INTEGER_WORD_DICTIONARY = {
|
||
een: 1,
|
||
twee: 2,
|
||
drie: 3,
|
||
vier: 4,
|
||
vijf: 5,
|
||
zes: 6,
|
||
zeven: 7,
|
||
acht: 8,
|
||
negen: 9,
|
||
tien: 10,
|
||
elf: 11,
|
||
twaalf: 12,
|
||
};
|
||
exports.ORDINAL_WORD_DICTIONARY = {
|
||
eerste: 1,
|
||
tweede: 2,
|
||
derde: 3,
|
||
vierde: 4,
|
||
vijfde: 5,
|
||
zesde: 6,
|
||
zevende: 7,
|
||
achtste: 8,
|
||
negende: 9,
|
||
tiende: 10,
|
||
elfde: 11,
|
||
twaalfde: 12,
|
||
dertiende: 13,
|
||
veertiende: 14,
|
||
vijftiende: 15,
|
||
zestiende: 16,
|
||
zeventiende: 17,
|
||
achttiende: 18,
|
||
negentiende: 19,
|
||
twintigste: 20,
|
||
"eenentwintigste": 21,
|
||
"tweeëntwintigste": 22,
|
||
"drieentwintigste": 23,
|
||
"vierentwintigste": 24,
|
||
"vijfentwintigste": 25,
|
||
"zesentwintigste": 26,
|
||
"zevenentwintigste": 27,
|
||
"achtentwintig": 28,
|
||
"negenentwintig": 29,
|
||
"dertigste": 30,
|
||
"eenendertigste": 31,
|
||
};
|
||
exports.TIME_UNIT_DICTIONARY = {
|
||
sec: "second",
|
||
second: "second",
|
||
seconden: "second",
|
||
min: "minute",
|
||
mins: "minute",
|
||
minute: "minute",
|
||
minuten: "minute",
|
||
h: "hour",
|
||
hr: "hour",
|
||
hrs: "hour",
|
||
uur: "hour",
|
||
uren: "hour",
|
||
dag: "d",
|
||
dagen: "d",
|
||
week: "week",
|
||
weken: "week",
|
||
maand: "month",
|
||
maanden: "month",
|
||
jaar: "year",
|
||
jr: "year",
|
||
jaren: "year",
|
||
};
|
||
exports.NUMBER_PATTERN = `(?:${pattern.matchAnyPattern(exports.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|een?|halve?)`;
|
||
function parseNumberPattern(match) {
|
||
const num = match.toLowerCase();
|
||
if (exports.INTEGER_WORD_DICTIONARY[num] !== undefined) {
|
||
return exports.INTEGER_WORD_DICTIONARY[num];
|
||
}
|
||
else if (num === "een") {
|
||
return 1;
|
||
}
|
||
else if (num.match(/halve?/)) {
|
||
return 0.5;
|
||
}
|
||
return parseFloat(num);
|
||
}
|
||
exports.parseNumberPattern = parseNumberPattern;
|
||
exports.ORDINAL_NUMBER_PATTERN = `(?:${pattern.matchAnyPattern(exports.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:ste|de)?)`;
|
||
function parseOrdinalNumberPattern(match) {
|
||
let num = match.toLowerCase();
|
||
if (exports.ORDINAL_WORD_DICTIONARY[num] !== undefined) {
|
||
return exports.ORDINAL_WORD_DICTIONARY[num];
|
||
}
|
||
num = num.replace(/(?:ste|de)$/i, "");
|
||
return parseInt(num);
|
||
}
|
||
exports.parseOrdinalNumberPattern = parseOrdinalNumberPattern;
|
||
exports.YEAR_PATTERN = `(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])`;
|
||
function parseYear(match) {
|
||
if (/voor Christus/i.test(match)) {
|
||
match = match.replace(/voor Christus/i, "");
|
||
return -parseInt(match);
|
||
}
|
||
if (/na Christus/i.test(match)) {
|
||
match = match.replace(/na Christus/i, "");
|
||
return parseInt(match);
|
||
}
|
||
const rawYearNumber = parseInt(match);
|
||
return years.findMostLikelyADYear(rawYearNumber);
|
||
}
|
||
exports.parseYear = parseYear;
|
||
const SINGLE_TIME_UNIT_PATTERN = `(${exports.NUMBER_PATTERN})\\s{0,5}(${pattern.matchAnyPattern(exports.TIME_UNIT_DICTIONARY)})\\s{0,5}`;
|
||
const SINGLE_TIME_UNIT_REGEX = new RegExp(SINGLE_TIME_UNIT_PATTERN, "i");
|
||
exports.TIME_UNITS_PATTERN = pattern.repeatedTimeunitPattern(`(?:(?:binnen|in)\\s*)?`, SINGLE_TIME_UNIT_PATTERN);
|
||
function parseTimeUnits(timeunitText) {
|
||
const fragments = {};
|
||
let remainingText = timeunitText;
|
||
let match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
||
while (match) {
|
||
collectDateTimeFragment(fragments, match);
|
||
remainingText = remainingText.substring(match[0].length);
|
||
match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
||
}
|
||
return fragments;
|
||
}
|
||
exports.parseTimeUnits = parseTimeUnits;
|
||
function collectDateTimeFragment(fragments, match) {
|
||
const num = parseNumberPattern(match[1]);
|
||
const unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()];
|
||
fragments[unit] = num;
|
||
}
|
||
});
|
||
|
||
var NLTimeUnitWithinFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
class NLTimeUnitWithinFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return new RegExp(`(?:binnen|in|binnen de|voor)\\s*` + "(" + constants.TIME_UNITS_PATTERN + ")" + `(?=\\W|$)`, "i");
|
||
}
|
||
innerExtract(context, match) {
|
||
const timeUnits = constants.parseTimeUnits(match[1]);
|
||
return results.ParsingComponents.createRelativeFromRefDate(context.refDate, timeUnits);
|
||
}
|
||
}
|
||
exports.default = NLTimeUnitWithinFormatParser;
|
||
});
|
||
|
||
var NLWeekdayParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
|
||
const PATTERN = new RegExp("(?:(?:\\,|\\(|\\()\\s*)?" +
|
||
"(?:op\\s*?)?" +
|
||
"(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?" +
|
||
`(${pattern.matchAnyPattern(constants.WEEKDAY_DICTIONARY)})` +
|
||
"(?=\\W|$)", "i");
|
||
const PREFIX_GROUP = 1;
|
||
const WEEKDAY_GROUP = 2;
|
||
const POSTFIX_GROUP = 3;
|
||
class NLWeekdayParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const dayOfWeek = match[WEEKDAY_GROUP].toLowerCase();
|
||
const offset = constants.WEEKDAY_DICTIONARY[dayOfWeek];
|
||
const prefix = match[PREFIX_GROUP];
|
||
const postfix = match[POSTFIX_GROUP];
|
||
let modifierWord = prefix || postfix;
|
||
modifierWord = modifierWord || "";
|
||
modifierWord = modifierWord.toLowerCase();
|
||
let modifier = null;
|
||
if (modifierWord == "vorige") {
|
||
modifier = "last";
|
||
}
|
||
else if (modifierWord == "volgende") {
|
||
modifier = "next";
|
||
}
|
||
else if (modifierWord == "deze") {
|
||
modifier = "this";
|
||
}
|
||
const date = weeks.toDayJSWeekday(context.refDate, offset, modifier);
|
||
return context
|
||
.createParsingComponents()
|
||
.assign("weekday", offset)
|
||
.imply("day", date.date())
|
||
.imply("month", date.month() + 1)
|
||
.imply("year", date.year());
|
||
}
|
||
}
|
||
exports.default = NLWeekdayParser;
|
||
});
|
||
|
||
var NLMonthNameMiddleEndianParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
const constants_2 = constants;
|
||
const constants_3 = constants;
|
||
|
||
|
||
const PATTERN = new RegExp("(?:on\\s*?)?" +
|
||
`(${constants_2.ORDINAL_NUMBER_PATTERN})` +
|
||
"(?:\\s*" +
|
||
"(?:tot|\\-|\\–|until|through|till|\\s)\\s*" +
|
||
`(${constants_2.ORDINAL_NUMBER_PATTERN})` +
|
||
")?" +
|
||
"(?:-|/|\\s*(?:of)?\\s*)" +
|
||
"(" +
|
||
pattern.matchAnyPattern(constants.MONTH_DICTIONARY) +
|
||
")" +
|
||
"(?:" +
|
||
"(?:-|/|,?\\s*)" +
|
||
`(${constants_3.YEAR_PATTERN}(?![^\\s]\\d))` +
|
||
")?" +
|
||
"(?=\\W|$)", "i");
|
||
const MONTH_NAME_GROUP = 3;
|
||
const DATE_GROUP = 1;
|
||
const DATE_TO_GROUP = 2;
|
||
const YEAR_GROUP = 4;
|
||
class NLMonthNameMiddleEndianParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const month = constants.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
||
const day = constants_2.parseOrdinalNumberPattern(match[DATE_GROUP]);
|
||
if (day > 31) {
|
||
match.index = match.index + match[DATE_GROUP].length;
|
||
return null;
|
||
}
|
||
const components = context.createParsingComponents({
|
||
day: day,
|
||
month: month,
|
||
});
|
||
if (match[YEAR_GROUP]) {
|
||
const year = constants_3.parseYear(match[YEAR_GROUP]);
|
||
components.assign("year", year);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, day, month);
|
||
components.imply("year", year);
|
||
}
|
||
if (!match[DATE_TO_GROUP]) {
|
||
return components;
|
||
}
|
||
const endDate = constants_2.parseOrdinalNumberPattern(match[DATE_TO_GROUP]);
|
||
const result = context.createParsingResult(match.index, match[0]);
|
||
result.start = components;
|
||
result.end = components.clone();
|
||
result.end.assign("day", endDate);
|
||
return result;
|
||
}
|
||
}
|
||
exports.default = NLMonthNameMiddleEndianParser;
|
||
});
|
||
|
||
var NLMonthNameParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
const constants_2 = constants;
|
||
|
||
const PATTERN = new RegExp(`(${pattern.matchAnyPattern(constants.MONTH_DICTIONARY)})` +
|
||
`\\s*` +
|
||
`(?:` +
|
||
`[,-]?\\s*(${constants_2.YEAR_PATTERN})?` +
|
||
")?" +
|
||
"(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)", "i");
|
||
const MONTH_NAME_GROUP = 1;
|
||
const YEAR_GROUP = 2;
|
||
class NLMonthNameParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const components = context.createParsingComponents();
|
||
components.imply("day", 1);
|
||
const monthName = match[MONTH_NAME_GROUP];
|
||
const month = constants.MONTH_DICTIONARY[monthName.toLowerCase()];
|
||
components.assign("month", month);
|
||
if (match[YEAR_GROUP]) {
|
||
const year = constants_2.parseYear(match[YEAR_GROUP]);
|
||
components.assign("year", year);
|
||
}
|
||
else {
|
||
const year = years.findYearClosestToRef(context.refDate, 1, month);
|
||
components.imply("year", year);
|
||
}
|
||
return components;
|
||
}
|
||
}
|
||
exports.default = NLMonthNameParser;
|
||
});
|
||
|
||
var NLSlashMonthFormatParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
const PATTERN = new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})" + "", "i");
|
||
const MONTH_GROUP = 1;
|
||
const YEAR_GROUP = 2;
|
||
class NLSlashMonthFormatParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const year = parseInt(match[YEAR_GROUP]);
|
||
const month = parseInt(match[MONTH_GROUP]);
|
||
return context.createParsingComponents().imply("day", 1).assign("month", month).assign("year", year);
|
||
}
|
||
}
|
||
exports.default = NLSlashMonthFormatParser;
|
||
});
|
||
|
||
var NLTimeExpressionParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
class NLTimeExpressionParser extends AbstractTimeExpressionParser_1.AbstractTimeExpressionParser {
|
||
primaryPrefix() {
|
||
return "(?:(?:om)\\s*)?";
|
||
}
|
||
followingPhase() {
|
||
return "\\s*(?:\\-|\\–|\\~|\\〜|om|\\?)\\s*";
|
||
}
|
||
extractPrimaryTimeComponents(context, match) {
|
||
if (match[0].match(/^\s*\d{4}\s*$/)) {
|
||
return null;
|
||
}
|
||
return super.extractPrimaryTimeComponents(context, match);
|
||
}
|
||
}
|
||
exports.default = NLTimeExpressionParser;
|
||
});
|
||
|
||
var NLCasualYearMonthDayParser_1 = createCommonjsModule(function (module, exports) {
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
const PATTERN = new RegExp(`([0-9]{4})[\\.\\/\\s]` +
|
||
`(?:(${pattern.matchAnyPattern(constants.MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]` +
|
||
`([0-9]{1,2})` +
|
||
"(?=\\W|$)", "i");
|
||
const YEAR_NUMBER_GROUP = 1;
|
||
const MONTH_NAME_GROUP = 2;
|
||
const MONTH_NUMBER_GROUP = 3;
|
||
const DATE_NUMBER_GROUP = 4;
|
||
class NLCasualYearMonthDayParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern() {
|
||
return PATTERN;
|
||
}
|
||
innerExtract(context, match) {
|
||
const month = match[MONTH_NUMBER_GROUP]
|
||
? parseInt(match[MONTH_NUMBER_GROUP])
|
||
: constants.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
||
if (month < 1 || month > 12) {
|
||
return null;
|
||
}
|
||
const year = parseInt(match[YEAR_NUMBER_GROUP]);
|
||
const day = parseInt(match[DATE_NUMBER_GROUP]);
|
||
return {
|
||
day: day,
|
||
month: month,
|
||
year: year,
|
||
};
|
||
}
|
||
}
|
||
exports.default = NLCasualYearMonthDayParser;
|
||
});
|
||
|
||
var NLCasualDateTimeParser_1 = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
||
|
||
|
||
const dayjs_2 = __importDefault(dayjs_min);
|
||
const DATE_GROUP = 1;
|
||
const TIME_OF_DAY_GROUP = 2;
|
||
class NLCasualDateTimeParser extends AbstractParserWithWordBoundary.AbstractParserWithWordBoundaryChecking {
|
||
innerPattern(context) {
|
||
return /(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i;
|
||
}
|
||
innerExtract(context, match) {
|
||
const dateText = match[DATE_GROUP].toLowerCase();
|
||
const timeText = match[TIME_OF_DAY_GROUP].toLowerCase();
|
||
const component = context.createParsingComponents();
|
||
const targetDate = dayjs_2.default(context.refDate);
|
||
switch (dateText) {
|
||
case "gisteren":
|
||
dayjs.assignSimilarDate(component, targetDate.add(-1, "day"));
|
||
break;
|
||
case "van":
|
||
dayjs.assignSimilarDate(component, targetDate);
|
||
break;
|
||
case "morgen":
|
||
dayjs.assignTheNextDay(component, targetDate);
|
||
break;
|
||
}
|
||
switch (timeText) {
|
||
case "ochtend":
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
component.imply("hour", 6);
|
||
break;
|
||
case "middag":
|
||
component.imply("meridiem", dist.Meridiem.AM);
|
||
component.imply("hour", 12);
|
||
break;
|
||
case "namiddag":
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
component.imply("hour", 15);
|
||
break;
|
||
case "avond":
|
||
component.imply("meridiem", dist.Meridiem.PM);
|
||
component.imply("hour", 20);
|
||
break;
|
||
}
|
||
return component;
|
||
}
|
||
}
|
||
exports.default = NLCasualDateTimeParser;
|
||
});
|
||
|
||
var nl = createCommonjsModule(function (module, exports) {
|
||
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.createConfiguration = exports.createCasualConfiguration = exports.parseDate = exports.parse = exports.strict = exports.casual = void 0;
|
||
|
||
|
||
const NLMergeDateRangeRefiner_1$1 = __importDefault(NLMergeDateRangeRefiner_1);
|
||
const NLMergeDateTimeRefiner_1$1 = __importDefault(NLMergeDateTimeRefiner_1);
|
||
const NLCasualDateParser_1$1 = __importDefault(NLCasualDateParser_1);
|
||
const NLCasualTimeParser_1$1 = __importDefault(NLCasualTimeParser_1);
|
||
const SlashDateFormatParser_1$1 = __importDefault(SlashDateFormatParser_1);
|
||
const NLTimeUnitWithinFormatParser_1$1 = __importDefault(NLTimeUnitWithinFormatParser_1);
|
||
const NLWeekdayParser_1$1 = __importDefault(NLWeekdayParser_1);
|
||
const NLMonthNameMiddleEndianParser_1$1 = __importDefault(NLMonthNameMiddleEndianParser_1);
|
||
const NLMonthNameParser_1$1 = __importDefault(NLMonthNameParser_1);
|
||
const NLSlashMonthFormatParser_1$1 = __importDefault(NLSlashMonthFormatParser_1);
|
||
const NLTimeExpressionParser_1$1 = __importDefault(NLTimeExpressionParser_1);
|
||
const NLCasualYearMonthDayParser_1$1 = __importDefault(NLCasualYearMonthDayParser_1);
|
||
const NLCasualDateTimeParser_1$1 = __importDefault(NLCasualDateTimeParser_1);
|
||
exports.casual = new chrono$1.Chrono(createCasualConfiguration());
|
||
exports.strict = new chrono$1.Chrono(createConfiguration(true));
|
||
function parse(text, ref, option) {
|
||
return exports.casual.parse(text, ref, option);
|
||
}
|
||
exports.parse = parse;
|
||
function parseDate(text, ref, option) {
|
||
return exports.casual.parseDate(text, ref, option);
|
||
}
|
||
exports.parseDate = parseDate;
|
||
function createCasualConfiguration(littleEndian = true) {
|
||
const option = createConfiguration(false, littleEndian);
|
||
option.parsers.unshift(new NLCasualDateParser_1$1.default());
|
||
option.parsers.unshift(new NLCasualTimeParser_1$1.default());
|
||
option.parsers.unshift(new NLCasualDateTimeParser_1$1.default());
|
||
return option;
|
||
}
|
||
exports.createCasualConfiguration = createCasualConfiguration;
|
||
function createConfiguration(strictMode = true, littleEndian = true) {
|
||
return configurations.includeCommonConfiguration({
|
||
parsers: [
|
||
new SlashDateFormatParser_1$1.default(littleEndian),
|
||
new NLMonthNameMiddleEndianParser_1$1.default(),
|
||
new NLMonthNameParser_1$1.default(),
|
||
new NLTimeExpressionParser_1$1.default(),
|
||
new NLTimeUnitWithinFormatParser_1$1.default(),
|
||
new NLSlashMonthFormatParser_1$1.default(),
|
||
new NLWeekdayParser_1$1.default(),
|
||
new NLCasualYearMonthDayParser_1$1.default(),
|
||
],
|
||
refiners: [new NLMergeDateTimeRefiner_1$1.default(), new NLMergeDateRangeRefiner_1$1.default()],
|
||
}, strictMode);
|
||
}
|
||
exports.createConfiguration = createConfiguration;
|
||
});
|
||
|
||
var dist = createCommonjsModule(function (module, exports) {
|
||
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||
}) : (function(o, m, k, k2) {
|
||
if (k2 === undefined) k2 = k;
|
||
o[k2] = m[k];
|
||
}));
|
||
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||
}) : function(o, v) {
|
||
o["default"] = v;
|
||
});
|
||
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
||
if (mod && mod.__esModule) return mod;
|
||
var result = {};
|
||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||
__setModuleDefault(result, mod);
|
||
return result;
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.parseDate = exports.parse = exports.casual = exports.strict = exports.nl = exports.pt = exports.ja = exports.fr = exports.de = exports.Meridiem = exports.Chrono = exports.en = void 0;
|
||
const en$1 = __importStar(en);
|
||
exports.en = en$1;
|
||
|
||
Object.defineProperty(exports, "Chrono", { enumerable: true, get: function () { return chrono$1.Chrono; } });
|
||
(function (Meridiem) {
|
||
Meridiem[Meridiem["AM"] = 0] = "AM";
|
||
Meridiem[Meridiem["PM"] = 1] = "PM";
|
||
})(exports.Meridiem || (exports.Meridiem = {}));
|
||
const de$1 = __importStar(de);
|
||
exports.de = de$1;
|
||
const fr$1 = __importStar(fr);
|
||
exports.fr = fr$1;
|
||
const ja$1 = __importStar(ja);
|
||
exports.ja = ja$1;
|
||
const pt$1 = __importStar(pt);
|
||
exports.pt = pt$1;
|
||
const nl$1 = __importStar(nl);
|
||
exports.nl = nl$1;
|
||
exports.strict = en$1.strict;
|
||
exports.casual = en$1.casual;
|
||
function parse(text, ref, option) {
|
||
return exports.casual.parse(text, ref, option);
|
||
}
|
||
exports.parse = parse;
|
||
function parseDate(text, ref, option) {
|
||
return exports.casual.parseDate(text, ref, option);
|
||
}
|
||
exports.parseDate = parseDate;
|
||
});
|
||
|
||
var chrono = /*@__PURE__*/getDefaultExportFromCjs(dist);
|
||
|
||
/* src/ui/EditTask.svelte generated by Svelte v3.44.0 */
|
||
|
||
function create_fragment(ctx) {
|
||
let div12;
|
||
let form;
|
||
let div0;
|
||
let label0;
|
||
let t1;
|
||
let input0;
|
||
let t2;
|
||
let hr0;
|
||
let t3;
|
||
let div1;
|
||
let label1;
|
||
let t5;
|
||
let select;
|
||
let option0;
|
||
let option1;
|
||
let option2;
|
||
let option3;
|
||
let t10;
|
||
let hr1;
|
||
let t11;
|
||
let div2;
|
||
let label2;
|
||
let t13;
|
||
let input1;
|
||
let t14;
|
||
let code0;
|
||
let t15;
|
||
let html_tag;
|
||
let t16;
|
||
let hr2;
|
||
let t17;
|
||
let div6;
|
||
let div3;
|
||
let label3;
|
||
let t19;
|
||
let input2;
|
||
let t20;
|
||
let code1;
|
||
let t21;
|
||
let html_tag_1;
|
||
let t22;
|
||
let div4;
|
||
let label4;
|
||
let t24;
|
||
let input3;
|
||
let t25;
|
||
let code2;
|
||
let t26;
|
||
let html_tag_2;
|
||
let t27;
|
||
let div5;
|
||
let label5;
|
||
let t29;
|
||
let input4;
|
||
let t30;
|
||
let code3;
|
||
let t31;
|
||
let html_tag_3;
|
||
let t32;
|
||
let hr3;
|
||
let t33;
|
||
let div9;
|
||
let div7;
|
||
let t34;
|
||
let input5;
|
||
let input5_checked_value;
|
||
let t35;
|
||
let code4;
|
||
let t36_value = /*editableTask*/ ctx[0].status + "";
|
||
let t36;
|
||
let t37;
|
||
let div8;
|
||
let t38;
|
||
let code5;
|
||
let t39;
|
||
let hr4;
|
||
let t40;
|
||
let div10;
|
||
let t41;
|
||
let div11;
|
||
let mounted;
|
||
let dispose;
|
||
|
||
return {
|
||
c() {
|
||
div12 = element("div");
|
||
form = element("form");
|
||
div0 = element("div");
|
||
label0 = element("label");
|
||
label0.textContent = "Description";
|
||
t1 = space();
|
||
input0 = element("input");
|
||
t2 = space();
|
||
hr0 = element("hr");
|
||
t3 = space();
|
||
div1 = element("div");
|
||
label1 = element("label");
|
||
label1.textContent = "Priority";
|
||
t5 = space();
|
||
select = element("select");
|
||
option0 = element("option");
|
||
option0.textContent = "None";
|
||
option1 = element("option");
|
||
option1.textContent = "⏫ High";
|
||
option2 = element("option");
|
||
option2.textContent = "🔼 Medium";
|
||
option3 = element("option");
|
||
option3.textContent = "🔽 Low";
|
||
t10 = space();
|
||
hr1 = element("hr");
|
||
t11 = space();
|
||
div2 = element("div");
|
||
label2 = element("label");
|
||
label2.textContent = "Recurrence";
|
||
t13 = space();
|
||
input1 = element("input");
|
||
t14 = space();
|
||
code0 = element("code");
|
||
t15 = text("🔁 ");
|
||
html_tag = new HtmlTag();
|
||
t16 = space();
|
||
hr2 = element("hr");
|
||
t17 = space();
|
||
div6 = element("div");
|
||
div3 = element("div");
|
||
label3 = element("label");
|
||
label3.textContent = "Due";
|
||
t19 = space();
|
||
input2 = element("input");
|
||
t20 = space();
|
||
code1 = element("code");
|
||
t21 = text("📅 ");
|
||
html_tag_1 = new HtmlTag();
|
||
t22 = space();
|
||
div4 = element("div");
|
||
label4 = element("label");
|
||
label4.textContent = "Scheduled";
|
||
t24 = space();
|
||
input3 = element("input");
|
||
t25 = space();
|
||
code2 = element("code");
|
||
t26 = text("⏳ ");
|
||
html_tag_2 = new HtmlTag();
|
||
t27 = space();
|
||
div5 = element("div");
|
||
label5 = element("label");
|
||
label5.textContent = "Start";
|
||
t29 = space();
|
||
input4 = element("input");
|
||
t30 = space();
|
||
code3 = element("code");
|
||
t31 = text("🛫 ");
|
||
html_tag_3 = new HtmlTag();
|
||
t32 = space();
|
||
hr3 = element("hr");
|
||
t33 = space();
|
||
div9 = element("div");
|
||
div7 = element("div");
|
||
t34 = text("Status:\n ");
|
||
input5 = element("input");
|
||
t35 = space();
|
||
code4 = element("code");
|
||
t36 = text(t36_value);
|
||
t37 = space();
|
||
div8 = element("div");
|
||
t38 = text("Done on:\n ");
|
||
code5 = element("code");
|
||
t39 = space();
|
||
hr4 = element("hr");
|
||
t40 = space();
|
||
div10 = element("div");
|
||
t41 = space();
|
||
div11 = element("div");
|
||
div11.innerHTML = `<button type="submit" class="mod-cta">Apply</button>`;
|
||
attr(label0, "for", "description");
|
||
attr(input0, "id", "description");
|
||
attr(input0, "type", "text");
|
||
attr(input0, "class", "tasks-modal-description");
|
||
attr(input0, "placeholder", "Take out the trash");
|
||
attr(div0, "class", "tasks-modal-section");
|
||
attr(label1, "for", "priority");
|
||
option0.__value = "none";
|
||
option0.value = option0.__value;
|
||
option1.__value = "high";
|
||
option1.value = option1.__value;
|
||
option2.__value = "medium";
|
||
option2.value = option2.__value;
|
||
option3.__value = "low";
|
||
option3.value = option3.__value;
|
||
attr(select, "id", "priority");
|
||
attr(select, "class", "dropdown");
|
||
if (/*editableTask*/ ctx[0].priority === void 0) add_render_callback(() => /*select_change_handler*/ ctx[14].call(select));
|
||
attr(div1, "class", "tasks-modal-section");
|
||
attr(label2, "for", "recurrence");
|
||
attr(input1, "id", "description");
|
||
attr(input1, "type", "text");
|
||
attr(input1, "placeholder", "Try 'every 2 weeks on Thursday'.");
|
||
html_tag.a = null;
|
||
attr(div2, "class", "tasks-modal-section");
|
||
attr(label3, "for", "due");
|
||
attr(input2, "id", "due");
|
||
attr(input2, "type", "text");
|
||
attr(input2, "placeholder", "Try 'Monday' or 'tomorrow'.");
|
||
html_tag_1.a = null;
|
||
attr(div3, "class", "tasks-modal-date");
|
||
attr(label4, "for", "scheduled");
|
||
attr(input3, "id", "scheduled");
|
||
attr(input3, "type", "text");
|
||
attr(input3, "placeholder", "Try 'Monday' or 'tomorrow'.");
|
||
html_tag_2.a = null;
|
||
attr(div4, "class", "tasks-modal-date");
|
||
attr(label5, "for", "start");
|
||
attr(input4, "id", "start");
|
||
attr(input4, "type", "text");
|
||
attr(input4, "placeholder", "Try 'Monday' or 'tomorrow'.");
|
||
html_tag_3.a = null;
|
||
attr(div5, "class", "tasks-modal-date");
|
||
attr(div6, "class", "tasks-modal-section");
|
||
attr(input5, "type", "checkbox");
|
||
attr(input5, "class", "task-list-item-checkbox tasks-modal-checkbox");
|
||
input5.checked = input5_checked_value = /*editableTask*/ ctx[0].status === Status.Done;
|
||
input5.disabled = true;
|
||
attr(div9, "class", "tasks-modal-section");
|
||
attr(div10, "class", "tasks-modal-section");
|
||
attr(div11, "class", "tasks-modal-section");
|
||
attr(div12, "class", "tasks-modal");
|
||
},
|
||
m(target, anchor) {
|
||
insert(target, div12, anchor);
|
||
append(div12, form);
|
||
append(form, div0);
|
||
append(div0, label0);
|
||
append(div0, t1);
|
||
append(div0, input0);
|
||
set_input_value(input0, /*editableTask*/ ctx[0].description);
|
||
/*input0_binding*/ ctx[13](input0);
|
||
append(form, t2);
|
||
append(form, hr0);
|
||
append(form, t3);
|
||
append(form, div1);
|
||
append(div1, label1);
|
||
append(div1, t5);
|
||
append(div1, select);
|
||
append(select, option0);
|
||
append(select, option1);
|
||
append(select, option2);
|
||
append(select, option3);
|
||
select_option(select, /*editableTask*/ ctx[0].priority);
|
||
append(form, t10);
|
||
append(form, hr1);
|
||
append(form, t11);
|
||
append(form, div2);
|
||
append(div2, label2);
|
||
append(div2, t13);
|
||
append(div2, input1);
|
||
set_input_value(input1, /*editableTask*/ ctx[0].recurrenceRule);
|
||
append(div2, t14);
|
||
append(div2, code0);
|
||
append(code0, t15);
|
||
html_tag.m(/*parsedRecurrence*/ ctx[5], code0);
|
||
append(form, t16);
|
||
append(form, hr2);
|
||
append(form, t17);
|
||
append(form, div6);
|
||
append(div6, div3);
|
||
append(div3, label3);
|
||
append(div3, t19);
|
||
append(div3, input2);
|
||
set_input_value(input2, /*editableTask*/ ctx[0].dueDate);
|
||
append(div3, t20);
|
||
append(div3, code1);
|
||
append(code1, t21);
|
||
html_tag_1.m(/*parsedDueDate*/ ctx[4], code1);
|
||
append(div6, t22);
|
||
append(div6, div4);
|
||
append(div4, label4);
|
||
append(div4, t24);
|
||
append(div4, input3);
|
||
set_input_value(input3, /*editableTask*/ ctx[0].scheduledDate);
|
||
append(div4, t25);
|
||
append(div4, code2);
|
||
append(code2, t26);
|
||
html_tag_2.m(/*parsedScheduledDate*/ ctx[3], code2);
|
||
append(div6, t27);
|
||
append(div6, div5);
|
||
append(div5, label5);
|
||
append(div5, t29);
|
||
append(div5, input4);
|
||
set_input_value(input4, /*editableTask*/ ctx[0].startDate);
|
||
append(div5, t30);
|
||
append(div5, code3);
|
||
append(code3, t31);
|
||
html_tag_3.m(/*parsedStartDate*/ ctx[2], code3);
|
||
append(form, t32);
|
||
append(form, hr3);
|
||
append(form, t33);
|
||
append(form, div9);
|
||
append(div9, div7);
|
||
append(div7, t34);
|
||
append(div7, input5);
|
||
append(div7, t35);
|
||
append(div7, code4);
|
||
append(code4, t36);
|
||
append(div9, t37);
|
||
append(div9, div8);
|
||
append(div8, t38);
|
||
append(div8, code5);
|
||
code5.innerHTML = /*parsedDone*/ ctx[6];
|
||
append(form, t39);
|
||
append(form, hr4);
|
||
append(form, t40);
|
||
append(form, div10);
|
||
append(form, t41);
|
||
append(form, div11);
|
||
|
||
if (!mounted) {
|
||
dispose = [
|
||
listen(input0, "input", /*input0_input_handler*/ ctx[12]),
|
||
listen(select, "change", /*select_change_handler*/ ctx[14]),
|
||
listen(input1, "input", /*input1_input_handler*/ ctx[15]),
|
||
listen(input2, "input", /*input2_input_handler*/ ctx[16]),
|
||
listen(input3, "input", /*input3_input_handler*/ ctx[17]),
|
||
listen(input4, "input", /*input4_input_handler*/ ctx[18]),
|
||
listen(form, "submit", prevent_default(/*_onSubmit*/ ctx[7]))
|
||
];
|
||
|
||
mounted = true;
|
||
}
|
||
},
|
||
p(ctx, [dirty]) {
|
||
if (dirty & /*editableTask*/ 1 && input0.value !== /*editableTask*/ ctx[0].description) {
|
||
set_input_value(input0, /*editableTask*/ ctx[0].description);
|
||
}
|
||
|
||
if (dirty & /*editableTask*/ 1) {
|
||
select_option(select, /*editableTask*/ ctx[0].priority);
|
||
}
|
||
|
||
if (dirty & /*editableTask*/ 1 && input1.value !== /*editableTask*/ ctx[0].recurrenceRule) {
|
||
set_input_value(input1, /*editableTask*/ ctx[0].recurrenceRule);
|
||
}
|
||
|
||
if (dirty & /*parsedRecurrence*/ 32) html_tag.p(/*parsedRecurrence*/ ctx[5]);
|
||
|
||
if (dirty & /*editableTask*/ 1 && input2.value !== /*editableTask*/ ctx[0].dueDate) {
|
||
set_input_value(input2, /*editableTask*/ ctx[0].dueDate);
|
||
}
|
||
|
||
if (dirty & /*parsedDueDate*/ 16) html_tag_1.p(/*parsedDueDate*/ ctx[4]);
|
||
|
||
if (dirty & /*editableTask*/ 1 && input3.value !== /*editableTask*/ ctx[0].scheduledDate) {
|
||
set_input_value(input3, /*editableTask*/ ctx[0].scheduledDate);
|
||
}
|
||
|
||
if (dirty & /*parsedScheduledDate*/ 8) html_tag_2.p(/*parsedScheduledDate*/ ctx[3]);
|
||
|
||
if (dirty & /*editableTask*/ 1 && input4.value !== /*editableTask*/ ctx[0].startDate) {
|
||
set_input_value(input4, /*editableTask*/ ctx[0].startDate);
|
||
}
|
||
|
||
if (dirty & /*parsedStartDate*/ 4) html_tag_3.p(/*parsedStartDate*/ ctx[2]);
|
||
|
||
if (dirty & /*editableTask*/ 1 && input5_checked_value !== (input5_checked_value = /*editableTask*/ ctx[0].status === Status.Done)) {
|
||
input5.checked = input5_checked_value;
|
||
}
|
||
|
||
if (dirty & /*editableTask*/ 1 && t36_value !== (t36_value = /*editableTask*/ ctx[0].status + "")) set_data(t36, t36_value);
|
||
if (dirty & /*parsedDone*/ 64) code5.innerHTML = /*parsedDone*/ ctx[6]; },
|
||
i: noop,
|
||
o: noop,
|
||
d(detaching) {
|
||
if (detaching) detach(div12);
|
||
/*input0_binding*/ ctx[13](null);
|
||
mounted = false;
|
||
run_all(dispose);
|
||
}
|
||
};
|
||
}
|
||
|
||
function instance($$self, $$props, $$invalidate) {
|
||
var _a, _b;
|
||
let { task } = $$props;
|
||
let { onSubmit } = $$props;
|
||
let descriptionInput;
|
||
|
||
let editableTask = {
|
||
description: '',
|
||
status: Status.Todo,
|
||
priority: 'none',
|
||
recurrenceRule: '',
|
||
startDate: '',
|
||
scheduledDate: '',
|
||
dueDate: '',
|
||
doneDate: ''
|
||
};
|
||
|
||
let parsedStartDate = '';
|
||
let parsedScheduledDate = '';
|
||
let parsedDueDate = '';
|
||
let parsedRecurrence = '';
|
||
let parsedDone = '';
|
||
|
||
onMount(() => {
|
||
const { globalFilter } = getSettings();
|
||
const description = task.description.replace(globalFilter, '').replace(' ', ' ').trim();
|
||
let priority = 'none';
|
||
|
||
if (task.priority === Priority.Low) {
|
||
priority = 'low';
|
||
} else if (task.priority === Priority.Medium) {
|
||
priority = 'medium';
|
||
} else if (task.priority === Priority.High) {
|
||
priority = 'high';
|
||
}
|
||
|
||
$$invalidate(0, editableTask = {
|
||
description,
|
||
status: task.status,
|
||
priority,
|
||
recurrenceRule: task.recurrence ? task.recurrence.toText() : '',
|
||
startDate: task.startDate
|
||
? task.startDate.format('YYYY-MM-DD')
|
||
: '',
|
||
scheduledDate: task.scheduledDate
|
||
? task.scheduledDate.format('YYYY-MM-DD')
|
||
: '',
|
||
dueDate: task.dueDate ? task.dueDate.format('YYYY-MM-DD') : '',
|
||
doneDate: task.doneDate ? task.doneDate.format('YYYY-MM-DD') : ''
|
||
});
|
||
|
||
setTimeout(
|
||
() => {
|
||
descriptionInput.focus();
|
||
},
|
||
10
|
||
);
|
||
});
|
||
|
||
const _onSubmit = () => {
|
||
const { globalFilter } = getSettings();
|
||
let description = editableTask.description.trim();
|
||
|
||
if (!description.includes(globalFilter)) {
|
||
description = globalFilter + ' ' + description;
|
||
}
|
||
|
||
let startDate = null;
|
||
const parsedStartDate = chrono.parseDate(editableTask.startDate, new Date(), { forwardDate: true });
|
||
|
||
if (parsedStartDate !== null) {
|
||
startDate = window.moment(parsedStartDate);
|
||
}
|
||
|
||
let scheduledDate = null;
|
||
const parsedScheduledDate = chrono.parseDate(editableTask.scheduledDate, new Date(), { forwardDate: true });
|
||
|
||
if (parsedScheduledDate !== null) {
|
||
scheduledDate = window.moment(parsedScheduledDate);
|
||
}
|
||
|
||
let dueDate = null;
|
||
const parsedDueDate = chrono.parseDate(editableTask.dueDate, new Date(), { forwardDate: true });
|
||
|
||
if (parsedDueDate !== null) {
|
||
dueDate = window.moment(parsedDueDate);
|
||
}
|
||
|
||
let recurrence = null;
|
||
|
||
if (editableTask.recurrenceRule) {
|
||
recurrence = Recurrence.fromText({
|
||
recurrenceRuleText: editableTask.recurrenceRule,
|
||
startDate,
|
||
scheduledDate,
|
||
dueDate
|
||
});
|
||
}
|
||
|
||
let parsedPriority;
|
||
|
||
switch (editableTask.priority) {
|
||
case 'low':
|
||
parsedPriority = Priority.Low;
|
||
break;
|
||
case 'medium':
|
||
parsedPriority = Priority.Medium;
|
||
break;
|
||
case 'high':
|
||
parsedPriority = Priority.High;
|
||
break;
|
||
default:
|
||
parsedPriority = Priority.None;
|
||
}
|
||
|
||
const updatedTask = new Task(Object.assign(Object.assign({}, task), {
|
||
description,
|
||
status: editableTask.status,
|
||
priority: parsedPriority,
|
||
recurrence,
|
||
startDate,
|
||
scheduledDate,
|
||
dueDate,
|
||
doneDate: window.moment(editableTask.doneDate, 'YYYY-MM-DD').isValid()
|
||
? window.moment(editableTask.doneDate, 'YYYY-MM-DD')
|
||
: null
|
||
}));
|
||
|
||
onSubmit([updatedTask]);
|
||
};
|
||
|
||
function input0_input_handler() {
|
||
editableTask.description = this.value;
|
||
$$invalidate(0, editableTask);
|
||
}
|
||
|
||
function input0_binding($$value) {
|
||
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
||
descriptionInput = $$value;
|
||
$$invalidate(1, descriptionInput);
|
||
});
|
||
}
|
||
|
||
function select_change_handler() {
|
||
editableTask.priority = select_value(this);
|
||
$$invalidate(0, editableTask);
|
||
}
|
||
|
||
function input1_input_handler() {
|
||
editableTask.recurrenceRule = this.value;
|
||
$$invalidate(0, editableTask);
|
||
}
|
||
|
||
function input2_input_handler() {
|
||
editableTask.dueDate = this.value;
|
||
$$invalidate(0, editableTask);
|
||
}
|
||
|
||
function input3_input_handler() {
|
||
editableTask.scheduledDate = this.value;
|
||
$$invalidate(0, editableTask);
|
||
}
|
||
|
||
function input4_input_handler() {
|
||
editableTask.startDate = this.value;
|
||
$$invalidate(0, editableTask);
|
||
}
|
||
|
||
$$self.$$set = $$props => {
|
||
if ('task' in $$props) $$invalidate(8, task = $$props.task);
|
||
if ('onSubmit' in $$props) $$invalidate(9, onSubmit = $$props.onSubmit);
|
||
};
|
||
|
||
$$self.$$.update = () => {
|
||
if ($$self.$$.dirty & /*editableTask*/ 1) {
|
||
{
|
||
if (!editableTask.startDate) {
|
||
$$invalidate(2, parsedStartDate = '<i>no start date</>');
|
||
} else {
|
||
const parsed = chrono.parseDate(editableTask.startDate, new Date(), { forwardDate: true });
|
||
|
||
if (parsed !== null) {
|
||
$$invalidate(2, parsedStartDate = window.moment(parsed).format('YYYY-MM-DD'));
|
||
} else {
|
||
$$invalidate(2, parsedStartDate = '<i>invalid start date</i>');
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
if ($$self.$$.dirty & /*editableTask*/ 1) {
|
||
{
|
||
if (!editableTask.scheduledDate) {
|
||
$$invalidate(3, parsedScheduledDate = '<i>no scheduled date</>');
|
||
} else {
|
||
const parsed = chrono.parseDate(editableTask.scheduledDate, new Date(), { forwardDate: true });
|
||
|
||
if (parsed !== null) {
|
||
$$invalidate(3, parsedScheduledDate = window.moment(parsed).format('YYYY-MM-DD'));
|
||
} else {
|
||
$$invalidate(3, parsedScheduledDate = '<i>invalid scheduled date</i>');
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
if ($$self.$$.dirty & /*editableTask*/ 1) {
|
||
{
|
||
if (!editableTask.dueDate) {
|
||
$$invalidate(4, parsedDueDate = '<i>no due date</>');
|
||
} else {
|
||
const parsed = chrono.parseDate(editableTask.dueDate, new Date(), { forwardDate: true });
|
||
|
||
if (parsed !== null) {
|
||
$$invalidate(4, parsedDueDate = window.moment(parsed).format('YYYY-MM-DD'));
|
||
} else {
|
||
$$invalidate(4, parsedDueDate = '<i>invalid due date</i>');
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
if ($$self.$$.dirty & /*editableTask, _a, _b*/ 3073) {
|
||
{
|
||
if (!editableTask.recurrenceRule) {
|
||
$$invalidate(5, parsedRecurrence = '<i>not recurring</>');
|
||
} else {
|
||
$$invalidate(5, parsedRecurrence = $$invalidate(11, _b = $$invalidate(10, _a = Recurrence.fromText({
|
||
recurrenceRuleText: editableTask.recurrenceRule,
|
||
// Only for representation in the modal, no dates required.
|
||
startDate: null,
|
||
scheduledDate: null,
|
||
dueDate: null
|
||
})) === null || _a === void 0
|
||
? void 0
|
||
: _a.toText()) !== null && _b !== void 0
|
||
? _b
|
||
: '<i>invalid recurrence rule</i>');
|
||
}
|
||
}
|
||
}
|
||
|
||
if ($$self.$$.dirty & /*editableTask*/ 1) {
|
||
{
|
||
if (!editableTask.doneDate) {
|
||
$$invalidate(6, parsedDone = '<i>no done date</i>');
|
||
} else {
|
||
const parsed = chrono.parseDate(editableTask.doneDate);
|
||
|
||
if (parsed !== null) {
|
||
$$invalidate(6, parsedDone = window.moment(parsed).format('YYYY-MM-DD'));
|
||
} else {
|
||
$$invalidate(6, parsedDone = '<i>invalid done date</i>');
|
||
}
|
||
}
|
||
}
|
||
}
|
||
};
|
||
|
||
return [
|
||
editableTask,
|
||
descriptionInput,
|
||
parsedStartDate,
|
||
parsedScheduledDate,
|
||
parsedDueDate,
|
||
parsedRecurrence,
|
||
parsedDone,
|
||
_onSubmit,
|
||
task,
|
||
onSubmit,
|
||
_a,
|
||
_b,
|
||
input0_input_handler,
|
||
input0_binding,
|
||
select_change_handler,
|
||
input1_input_handler,
|
||
input2_input_handler,
|
||
input3_input_handler,
|
||
input4_input_handler
|
||
];
|
||
}
|
||
|
||
class EditTask extends SvelteComponent {
|
||
constructor(options) {
|
||
super();
|
||
init(this, options, instance, create_fragment, safe_not_equal, { task: 8, onSubmit: 9 });
|
||
}
|
||
}
|
||
|
||
class TaskModal extends obsidian.Modal {
|
||
constructor({ app, task, onSubmit, }) {
|
||
super(app);
|
||
this.task = task;
|
||
this.onSubmit = (updatedTasks) => {
|
||
onSubmit(updatedTasks);
|
||
this.close();
|
||
};
|
||
}
|
||
onOpen() {
|
||
this.titleEl.setText('Create or edit Task');
|
||
const { contentEl } = this;
|
||
new EditTask({
|
||
target: contentEl,
|
||
props: { task: this.task, onSubmit: this.onSubmit },
|
||
});
|
||
}
|
||
onClose() {
|
||
const { contentEl } = this;
|
||
contentEl.empty();
|
||
}
|
||
}
|
||
|
||
const createOrEdit = (checking, editor, view, app) => {
|
||
var _a;
|
||
if (checking) {
|
||
return view instanceof obsidian.MarkdownView;
|
||
}
|
||
if (!(view instanceof obsidian.MarkdownView)) {
|
||
// Should never happen due to check above.
|
||
return;
|
||
}
|
||
const path = (_a = view.file) === null || _a === void 0 ? void 0 : _a.path;
|
||
if (path === undefined) {
|
||
return;
|
||
}
|
||
const cursorPosition = editor.getCursor();
|
||
const lineNumber = cursorPosition.line;
|
||
const line = editor.getLine(lineNumber);
|
||
const task = taskFromLine({ line, path });
|
||
const onSubmit = (updatedTasks) => {
|
||
const serialized = updatedTasks
|
||
.map((task) => task.toFileLineString())
|
||
.join('\n');
|
||
editor.setLine(lineNumber, serialized);
|
||
};
|
||
// Need to create a new instance every time, as cursor/task can change.
|
||
const taskModal = new TaskModal({
|
||
app,
|
||
task,
|
||
onSubmit,
|
||
});
|
||
taskModal.open();
|
||
};
|
||
const taskFromLine = ({ line, path }) => {
|
||
var _a;
|
||
const task = Task.fromLine({
|
||
line,
|
||
path,
|
||
sectionStart: 0,
|
||
sectionIndex: 0,
|
||
precedingHeader: null, // We don't need this to toggle it here in the editor.
|
||
});
|
||
if (task !== null) {
|
||
return task;
|
||
}
|
||
// If we are not on a line of a task, we take what we have.
|
||
// The non-task line can still be a checklist, for example if it is lacking the global filter.
|
||
const nonTaskRegex = /^([\s\t]*)[-*]? *(\[(.)\])? *(.*)/u;
|
||
const nonTaskMatch = line.match(nonTaskRegex);
|
||
if (nonTaskMatch === null) {
|
||
// Should never happen; everything in the regex is optional.
|
||
console.error('Tasks: Cannot create task on line:', line);
|
||
return new Task({
|
||
status: Status.Todo,
|
||
description: '',
|
||
path,
|
||
indentation: '',
|
||
originalStatusCharacter: ' ',
|
||
priority: Priority.None,
|
||
startDate: null,
|
||
scheduledDate: null,
|
||
dueDate: null,
|
||
doneDate: null,
|
||
recurrence: null,
|
||
// We don't need the following fields to edit here in the editor.
|
||
sectionStart: 0,
|
||
sectionIndex: 0,
|
||
precedingHeader: null,
|
||
blockLink: '',
|
||
});
|
||
}
|
||
const indentation = nonTaskMatch[1];
|
||
const statusString = (_a = nonTaskMatch[3]) !== null && _a !== void 0 ? _a : ' ';
|
||
const status = statusString === ' ' ? Status.Todo : Status.Done;
|
||
let description = nonTaskMatch[4];
|
||
const blockLinkMatch = line.match(Task.blockLinkRegex);
|
||
const blockLink = blockLinkMatch !== null ? blockLinkMatch[0] : '';
|
||
if (blockLink !== '') {
|
||
description = description.replace(Task.blockLinkRegex, '');
|
||
}
|
||
return new Task({
|
||
status,
|
||
description,
|
||
path,
|
||
indentation,
|
||
originalStatusCharacter: statusString,
|
||
blockLink,
|
||
priority: Priority.None,
|
||
startDate: null,
|
||
scheduledDate: null,
|
||
dueDate: null,
|
||
doneDate: null,
|
||
recurrence: null,
|
||
// We don't need the following fields to edit here in the editor.
|
||
sectionStart: 0,
|
||
sectionIndex: 0,
|
||
precedingHeader: null,
|
||
});
|
||
};
|
||
|
||
const toggleDone = (checking, editor, view) => {
|
||
var _a;
|
||
if (checking) {
|
||
if (!(view instanceof obsidian.MarkdownView)) {
|
||
// If we are not in a markdown view, the command shouldn't be shown.
|
||
return false;
|
||
}
|
||
// The command should always trigger in a markdown view:
|
||
// - Convert lines to list items.
|
||
// - Convert list items to tasks.
|
||
// - Toggle tasks' status.
|
||
return true;
|
||
}
|
||
if (!(view instanceof obsidian.MarkdownView)) {
|
||
// Should never happen due to check above.
|
||
return;
|
||
}
|
||
// We are certain we are in the editor due to the check above.
|
||
const path = (_a = view.file) === null || _a === void 0 ? void 0 : _a.path;
|
||
if (path === undefined) {
|
||
return;
|
||
}
|
||
const cursorPosition = editor.getCursor();
|
||
const lineNumber = cursorPosition.line;
|
||
const line = editor.getLine(lineNumber);
|
||
const toggledLine = toggleLine({ line, path });
|
||
editor.setLine(lineNumber, toggledLine);
|
||
// The cursor is moved to the end of the line by default.
|
||
// If there is text on the line, put the cursor back where it was on the line.
|
||
if (/[^ [\]*-]/.test(toggledLine)) {
|
||
editor.setCursor({
|
||
line: cursorPosition.line,
|
||
// Need to move the cursor by the distance we added to the beginning.
|
||
ch: cursorPosition.ch + toggledLine.length - line.length,
|
||
});
|
||
}
|
||
};
|
||
const toggleLine = ({ line, path }) => {
|
||
let toggledLine = line;
|
||
const task = Task.fromLine({
|
||
line,
|
||
path,
|
||
sectionStart: 0,
|
||
sectionIndex: 0,
|
||
precedingHeader: null, // We don't need this to toggle it here in the editor.
|
||
});
|
||
if (task !== null) {
|
||
toggledLine = toggleTask({ task });
|
||
}
|
||
else {
|
||
// If the task is null this means that we have one of:
|
||
// 1. a regular checklist item
|
||
// 2. a list item
|
||
// 3. a simple text line
|
||
// The task regex will match checklist items.
|
||
const regexMatch = line.match(Task.taskRegex);
|
||
if (regexMatch !== null) {
|
||
toggledLine = toggleChecklistItem({ regexMatch });
|
||
}
|
||
else {
|
||
// This is not a checklist item. It is one of:
|
||
// 1. a list item
|
||
// 2. a simple text line
|
||
const listItemRegex = /^([\s\t]*)([-*])/;
|
||
if (listItemRegex.test(line)) {
|
||
// Let's convert the list item to a checklist item.
|
||
toggledLine = line.replace(listItemRegex, '$1$2 [ ]');
|
||
}
|
||
else {
|
||
// Let's convert the line to a list item.
|
||
toggledLine = line.replace(/^([\s\t]*)/, '$1- ');
|
||
}
|
||
}
|
||
}
|
||
return toggledLine;
|
||
};
|
||
const toggleTask = ({ task }) => {
|
||
// Toggle a regular task.
|
||
const toggledTasks = task.toggle();
|
||
const serialized = toggledTasks
|
||
.map((task) => task.toFileLineString())
|
||
.join('\n');
|
||
return serialized;
|
||
};
|
||
const toggleChecklistItem = ({ regexMatch, }) => {
|
||
// It's a checklist item, let's toggle it.
|
||
const indentation = regexMatch[1];
|
||
const statusString = regexMatch[2].toLowerCase();
|
||
const body = regexMatch[3];
|
||
const toggledStatusString = statusString === ' ' ? 'x' : ' ';
|
||
const toggledLine = `${indentation}- [${toggledStatusString}] ${body}`;
|
||
return toggledLine;
|
||
};
|
||
|
||
class Commands {
|
||
constructor({ plugin }) {
|
||
this.plugin = plugin;
|
||
plugin.addCommand({
|
||
id: 'edit-task',
|
||
name: 'Create or edit task',
|
||
icon: 'pencil',
|
||
editorCheckCallback: (checking, editor, view) => {
|
||
return createOrEdit(checking, editor, view, this.app);
|
||
},
|
||
});
|
||
plugin.addCommand({
|
||
id: 'toggle-done',
|
||
name: 'Toggle task done',
|
||
icon: 'check-in-circle',
|
||
editorCheckCallback: toggleDone,
|
||
});
|
||
}
|
||
get app() {
|
||
return this.plugin.app;
|
||
}
|
||
}
|
||
|
||
var Event;
|
||
(function (Event) {
|
||
Event["CacheUpdate"] = "obsidian-tasks-plugin:cache-update";
|
||
Event["RequestCacheUpdate"] = "obsidian-tasks-plugin:request-cache-update";
|
||
})(Event || (Event = {}));
|
||
class Events {
|
||
constructor({ obsidianEents }) {
|
||
this.obsidianEvents = obsidianEents;
|
||
}
|
||
onCacheUpdate(handler) {
|
||
return this.obsidianEvents.on(Event.CacheUpdate, handler);
|
||
}
|
||
triggerCacheUpdate(cacheData) {
|
||
this.obsidianEvents.trigger(Event.CacheUpdate, cacheData);
|
||
}
|
||
onRequestCacheUpdate(handler) {
|
||
return this.obsidianEvents.on(Event.RequestCacheUpdate, handler);
|
||
}
|
||
triggerRequestCacheUpdate(fn) {
|
||
this.obsidianEvents.trigger(Event.RequestCacheUpdate, fn);
|
||
}
|
||
off(eventRef) {
|
||
this.obsidianEvents.offref(eventRef);
|
||
}
|
||
}
|
||
|
||
class InlineRenderer {
|
||
constructor({ plugin }) {
|
||
this.markdownPostProcessor = this._markdownPostProcessor.bind(this);
|
||
plugin.registerMarkdownPostProcessor(this._markdownPostProcessor.bind(this));
|
||
}
|
||
_markdownPostProcessor(element, context) {
|
||
var _a;
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
const { globalFilter } = getSettings();
|
||
const renderedElements = element
|
||
.findAll('.task-list-item')
|
||
.filter((taskItem) => {
|
||
var _a;
|
||
const linesText = (_a = taskItem.textContent) === null || _a === void 0 ? void 0 : _a.split('\n');
|
||
if (linesText === undefined) {
|
||
return false;
|
||
}
|
||
// Only the first line. Can be multiple lines if an LI element contains an UL.
|
||
// Want to match the top level LI independently from its children.
|
||
// There was a false positive, when the LI wasn't a task itself, but contained the
|
||
// global filter in child LIs.
|
||
let firstLineText = null;
|
||
// The first line is the first line that is not empty. Empty lines can exist when
|
||
// the checklist in markdown includes blank lines (see #313).
|
||
for (let i = 0; i < linesText.length; i = i + 1) {
|
||
if (linesText[i] !== '') {
|
||
firstLineText = linesText[i];
|
||
break;
|
||
}
|
||
}
|
||
if (firstLineText === null) {
|
||
return false;
|
||
}
|
||
return firstLineText.includes(globalFilter);
|
||
});
|
||
if (renderedElements.length === 0) {
|
||
// No tasks means nothing to do.
|
||
return;
|
||
}
|
||
const path = context.sourcePath;
|
||
const section = context.getSectionInfo(element);
|
||
if (section === null) {
|
||
// We cannot process the render without the section info.
|
||
return;
|
||
}
|
||
const fileLines = section.text.split('\n');
|
||
let sectionIndex = 0;
|
||
const fileTasks = [];
|
||
for (let lineNumber = section.lineStart; lineNumber <= section.lineEnd; lineNumber++) {
|
||
const line = fileLines[lineNumber];
|
||
if (line === undefined) {
|
||
// If we end up outside the range of the file,
|
||
// we cannot process this task.
|
||
continue;
|
||
}
|
||
const task = Task.fromLine({
|
||
line,
|
||
path,
|
||
sectionStart: section.lineStart,
|
||
sectionIndex,
|
||
precedingHeader: null, // We don't need the preceding header for in-line rendering.
|
||
});
|
||
if (task !== null) {
|
||
fileTasks.push(task);
|
||
sectionIndex++;
|
||
}
|
||
}
|
||
// The section index is the nth task within this section.
|
||
for (let sectionIndex = 0; sectionIndex < renderedElements.length; sectionIndex++) {
|
||
const task = fileTasks[sectionIndex];
|
||
const renderedElement = renderedElements[sectionIndex];
|
||
if (task === undefined || renderedElement === undefined) {
|
||
// Assuming match of tasks in file and render preview.
|
||
// If there is a mis-match in the numbers, we still process
|
||
// what we can.
|
||
continue;
|
||
}
|
||
const dataLine = (_a = renderedElement.getAttr('data-line')) !== null && _a !== void 0 ? _a : '0';
|
||
const listIndex = Number.parseInt(dataLine, 10);
|
||
const taskElement = yield task.toLi({
|
||
parentUlElement: element,
|
||
listIndex,
|
||
});
|
||
// If the rendered element contains a sub-list or sub-div (e.g. the
|
||
// folding arrow), we need to keep it.
|
||
const renderedChildren = renderedElement.childNodes;
|
||
for (let i = 0; i < renderedChildren.length; i = i + 1) {
|
||
const renderedChild = renderedChildren[i];
|
||
if (renderedChild.nodeName.toLowerCase() === 'div') {
|
||
taskElement.prepend(renderedChild);
|
||
}
|
||
else if (renderedChild.nodeName.toLowerCase() === 'ul') {
|
||
taskElement.append(renderedChild);
|
||
}
|
||
}
|
||
// Re-set the original footnotes.
|
||
// The newly rendered HTML won't have the correct indexes and links
|
||
// from the original document.
|
||
const originalFootnotes = renderedElement.querySelectorAll('[data-footnote-id]');
|
||
const newFootnotes = taskElement.querySelectorAll('[data-footnote-id]');
|
||
if (originalFootnotes.length === newFootnotes.length) {
|
||
for (let i = 0; i < originalFootnotes.length; i++) {
|
||
newFootnotes[i].replaceWith(originalFootnotes[i]);
|
||
}
|
||
}
|
||
renderedElement.replaceWith(taskElement);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
class Query {
|
||
constructor({ source }) {
|
||
this._limit = undefined;
|
||
this._layoutOptions = new LayoutOptions();
|
||
this._filters = [];
|
||
this._error = undefined;
|
||
this._sorting = [];
|
||
this.priorityRegexp = /^priority (is )?(above|below)? ?(low|none|medium|high)/;
|
||
this.noStartString = 'no start date';
|
||
this.startRegexp = /^starts (before|after|on)? ?(.*)/;
|
||
this.noScheduledString = 'no scheduled date';
|
||
this.scheduledRegexp = /^scheduled (before|after|on)? ?(.*)/;
|
||
this.noDueString = 'no due date';
|
||
this.dueRegexp = /^due (before|after|on)? ?(.*)/;
|
||
this.doneString = 'done';
|
||
this.notDoneString = 'not done';
|
||
this.doneRegexp = /^done (before|after|on)? ?(.*)/;
|
||
this.pathRegexp = /^path (includes|does not include) (.*)/;
|
||
this.descriptionRegexp = /^description (includes|does not include) (.*)/;
|
||
this.sortByRegexp = /^sort by (urgency|status|priority|start|scheduled|due|done|path|description)( reverse)?/;
|
||
this.headingRegexp = /^heading (includes|does not include) (.*)/;
|
||
this.hideOptionsRegexp = /^hide (task count|backlink|priority|start date|scheduled date|done date|due date|recurrence rule|edit button)/;
|
||
this.shortModeRegexp = /^short/;
|
||
this.recurringString = 'is recurring';
|
||
this.notRecurringString = 'is not recurring';
|
||
this.limitRegexp = /^limit (to )?(\d+)( tasks?)?/;
|
||
this.excludeSubItemsString = 'exclude sub-items';
|
||
source
|
||
.split('\n')
|
||
.map((line) => line.trim())
|
||
.forEach((line) => {
|
||
switch (true) {
|
||
case line === '':
|
||
break;
|
||
case line === this.doneString:
|
||
this._filters.push((task) => task.status === Status.Done);
|
||
break;
|
||
case line === this.notDoneString:
|
||
this._filters.push((task) => task.status !== Status.Done);
|
||
break;
|
||
case line === this.recurringString:
|
||
this._filters.push((task) => task.recurrence !== null);
|
||
break;
|
||
case line === this.notRecurringString:
|
||
this._filters.push((task) => task.recurrence === null);
|
||
break;
|
||
case line === this.excludeSubItemsString:
|
||
this._filters.push((task) => task.indentation === '');
|
||
break;
|
||
case line === this.noStartString:
|
||
this._filters.push((task) => task.startDate === null);
|
||
break;
|
||
case line === this.noScheduledString:
|
||
this._filters.push((task) => task.scheduledDate === null);
|
||
break;
|
||
case line === this.noDueString:
|
||
this._filters.push((task) => task.dueDate === null);
|
||
break;
|
||
case this.shortModeRegexp.test(line):
|
||
this._layoutOptions.shortMode = true;
|
||
break;
|
||
case this.priorityRegexp.test(line):
|
||
this.parsePriorityFilter({ line });
|
||
break;
|
||
case this.startRegexp.test(line):
|
||
this.parseStartFilter({ line });
|
||
break;
|
||
case this.scheduledRegexp.test(line):
|
||
this.parseScheduledFilter({ line });
|
||
break;
|
||
case this.dueRegexp.test(line):
|
||
this.parseDueFilter({ line });
|
||
break;
|
||
case this.doneRegexp.test(line):
|
||
this.parseDoneFilter({ line });
|
||
break;
|
||
case this.pathRegexp.test(line):
|
||
this.parsePathFilter({ line });
|
||
break;
|
||
case this.descriptionRegexp.test(line):
|
||
this.parseDescriptionFilter({ line });
|
||
break;
|
||
case this.headingRegexp.test(line):
|
||
this.parseHeadingFilter({ line });
|
||
break;
|
||
case this.limitRegexp.test(line):
|
||
this.parseLimit({ line });
|
||
break;
|
||
case this.sortByRegexp.test(line):
|
||
this.parseSortBy({ line });
|
||
break;
|
||
case this.hideOptionsRegexp.test(line):
|
||
this.parseHideOptions({ line });
|
||
break;
|
||
default:
|
||
this._error = 'do not understand query';
|
||
}
|
||
});
|
||
}
|
||
get limit() {
|
||
return this._limit;
|
||
}
|
||
get layoutOptions() {
|
||
return this._layoutOptions;
|
||
}
|
||
get filters() {
|
||
return this._filters;
|
||
}
|
||
get sorting() {
|
||
return this._sorting;
|
||
}
|
||
get error() {
|
||
return this._error;
|
||
}
|
||
parseHideOptions({ line }) {
|
||
const hideOptionsMatch = line.match(this.hideOptionsRegexp);
|
||
if (hideOptionsMatch !== null) {
|
||
const option = hideOptionsMatch[1].trim().toLowerCase();
|
||
switch (option) {
|
||
case 'task count':
|
||
this._layoutOptions.hideTaskCount = true;
|
||
break;
|
||
case 'backlink':
|
||
this._layoutOptions.hideBacklinks = true;
|
||
break;
|
||
case 'priority':
|
||
this._layoutOptions.hidePriority = true;
|
||
break;
|
||
case 'start date':
|
||
this._layoutOptions.hideStartDate = true;
|
||
break;
|
||
case 'scheduled date':
|
||
this._layoutOptions.hideScheduledDate = true;
|
||
break;
|
||
case 'due date':
|
||
this._layoutOptions.hideDueDate = true;
|
||
break;
|
||
case 'done date':
|
||
this._layoutOptions.hideDoneDate = true;
|
||
break;
|
||
case 'recurrence rule':
|
||
this._layoutOptions.hideRecurrenceRule = true;
|
||
break;
|
||
case 'edit button':
|
||
this._layoutOptions.hideEditButton = true;
|
||
break;
|
||
default:
|
||
this._error = 'do not understand hide option';
|
||
}
|
||
}
|
||
}
|
||
parsePriorityFilter({ line }) {
|
||
const priorityMatch = line.match(this.priorityRegexp);
|
||
if (priorityMatch !== null) {
|
||
const filterPriorityString = priorityMatch[3];
|
||
let filterPriority = null;
|
||
switch (filterPriorityString) {
|
||
case 'low':
|
||
filterPriority = Priority.Low;
|
||
break;
|
||
case 'none':
|
||
filterPriority = Priority.None;
|
||
break;
|
||
case 'medium':
|
||
filterPriority = Priority.Medium;
|
||
break;
|
||
case 'high':
|
||
filterPriority = Priority.High;
|
||
break;
|
||
}
|
||
if (filterPriority === null) {
|
||
this._error = 'do not understand priority';
|
||
return;
|
||
}
|
||
let filter;
|
||
if (priorityMatch[2] === 'above') {
|
||
filter = (task) => task.priority
|
||
? task.priority.localeCompare(filterPriority) < 0
|
||
: false;
|
||
}
|
||
else if (priorityMatch[2] === 'below') {
|
||
filter = (task) => task.priority
|
||
? task.priority.localeCompare(filterPriority) > 0
|
||
: false;
|
||
}
|
||
else {
|
||
filter = (task) => task.priority ? task.priority === filterPriority : false;
|
||
}
|
||
this._filters.push(filter);
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (priority date)';
|
||
}
|
||
}
|
||
parseStartFilter({ line }) {
|
||
const startMatch = line.match(this.startRegexp);
|
||
if (startMatch !== null) {
|
||
const filterDate = this.parseDate(startMatch[2]);
|
||
if (!filterDate.isValid()) {
|
||
this._error = 'do not understand start date';
|
||
return;
|
||
}
|
||
let filter;
|
||
if (startMatch[1] === 'before') {
|
||
filter = (task) => task.startDate ? task.startDate.isBefore(filterDate) : true;
|
||
}
|
||
else if (startMatch[1] === 'after') {
|
||
filter = (task) => task.startDate ? task.startDate.isAfter(filterDate) : true;
|
||
}
|
||
else {
|
||
filter = (task) => task.startDate ? task.startDate.isSame(filterDate) : true;
|
||
}
|
||
this._filters.push(filter);
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (start date)';
|
||
}
|
||
}
|
||
parseScheduledFilter({ line }) {
|
||
const scheduledMatch = line.match(this.scheduledRegexp);
|
||
if (scheduledMatch !== null) {
|
||
const filterDate = this.parseDate(scheduledMatch[2]);
|
||
if (!filterDate.isValid()) {
|
||
this._error = 'do not understand scheduled date';
|
||
}
|
||
let filter;
|
||
if (scheduledMatch[1] === 'before') {
|
||
filter = (task) => task.scheduledDate
|
||
? task.scheduledDate.isBefore(filterDate)
|
||
: false;
|
||
}
|
||
else if (scheduledMatch[1] === 'after') {
|
||
filter = (task) => task.scheduledDate
|
||
? task.scheduledDate.isAfter(filterDate)
|
||
: false;
|
||
}
|
||
else {
|
||
filter = (task) => task.scheduledDate
|
||
? task.scheduledDate.isSame(filterDate)
|
||
: false;
|
||
}
|
||
this._filters.push(filter);
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (scheduled date)';
|
||
}
|
||
}
|
||
parseDueFilter({ line }) {
|
||
const dueMatch = line.match(this.dueRegexp);
|
||
if (dueMatch !== null) {
|
||
const filterDate = this.parseDate(dueMatch[2]);
|
||
if (!filterDate.isValid()) {
|
||
this._error = 'do not understand due date';
|
||
return;
|
||
}
|
||
let filter;
|
||
if (dueMatch[1] === 'before') {
|
||
filter = (task) => task.dueDate ? task.dueDate.isBefore(filterDate) : false;
|
||
}
|
||
else if (dueMatch[1] === 'after') {
|
||
filter = (task) => task.dueDate ? task.dueDate.isAfter(filterDate) : false;
|
||
}
|
||
else {
|
||
filter = (task) => task.dueDate ? task.dueDate.isSame(filterDate) : false;
|
||
}
|
||
this._filters.push(filter);
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (due date)';
|
||
}
|
||
}
|
||
parseDoneFilter({ line }) {
|
||
const doneMatch = line.match(this.doneRegexp);
|
||
if (doneMatch !== null) {
|
||
const filterDate = this.parseDate(doneMatch[2]);
|
||
if (!filterDate.isValid()) {
|
||
this._error = 'do not understand done date';
|
||
return;
|
||
}
|
||
let filter;
|
||
if (doneMatch[1] === 'before') {
|
||
filter = (task) => task.doneDate ? task.doneDate.isBefore(filterDate) : false;
|
||
}
|
||
else if (doneMatch[1] === 'after') {
|
||
filter = (task) => task.doneDate ? task.doneDate.isAfter(filterDate) : false;
|
||
}
|
||
else {
|
||
filter = (task) => task.doneDate ? task.doneDate.isSame(filterDate) : false;
|
||
}
|
||
this._filters.push(filter);
|
||
}
|
||
}
|
||
parsePathFilter({ line }) {
|
||
const pathMatch = line.match(this.pathRegexp);
|
||
if (pathMatch !== null) {
|
||
const filterMethod = pathMatch[1];
|
||
if (filterMethod === 'includes') {
|
||
this._filters.push((task) => this.stringIncludesCaseInsensitive(task.path, pathMatch[2]));
|
||
}
|
||
else if (pathMatch[1] === 'does not include') {
|
||
this._filters.push((task) => !this.stringIncludesCaseInsensitive(task.path, pathMatch[2]));
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (path)';
|
||
}
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (path)';
|
||
}
|
||
}
|
||
parseDescriptionFilter({ line }) {
|
||
const descriptionMatch = line.match(this.descriptionRegexp);
|
||
if (descriptionMatch !== null) {
|
||
const filterMethod = descriptionMatch[1];
|
||
const globalFilter = getSettings().globalFilter;
|
||
if (filterMethod === 'includes') {
|
||
this._filters.push((task) => this.stringIncludesCaseInsensitive(
|
||
// Remove global filter from description match if present.
|
||
// This is necessary to match only on the content of the task, not
|
||
// the global filter.
|
||
task.description.replace(globalFilter, '').trim(), descriptionMatch[2]));
|
||
}
|
||
else if (descriptionMatch[1] === 'does not include') {
|
||
this._filters.push((task) => !this.stringIncludesCaseInsensitive(
|
||
// Remove global filter from description match if present.
|
||
// This is necessary to match only on the content of the task, not
|
||
// the global filter.
|
||
task.description.replace(globalFilter, '').trim(), descriptionMatch[2]));
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (description)';
|
||
}
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (description)';
|
||
}
|
||
}
|
||
parseHeadingFilter({ line }) {
|
||
const headingMatch = line.match(this.headingRegexp);
|
||
if (headingMatch !== null) {
|
||
const filterMethod = headingMatch[1].toLowerCase();
|
||
if (filterMethod === 'includes') {
|
||
this._filters.push((task) => task.precedingHeader !== null &&
|
||
this.stringIncludesCaseInsensitive(task.precedingHeader, headingMatch[2]));
|
||
}
|
||
else if (headingMatch[1] === 'does not include') {
|
||
this._filters.push((task) => task.precedingHeader === null ||
|
||
!this.stringIncludesCaseInsensitive(task.precedingHeader, headingMatch[2]));
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (heading)';
|
||
}
|
||
}
|
||
else {
|
||
this._error = 'do not understand query filter (heading)';
|
||
}
|
||
}
|
||
parseLimit({ line }) {
|
||
const limitMatch = line.match(this.limitRegexp);
|
||
if (limitMatch !== null) {
|
||
// limitMatch[2] is per regex always digits and therefore parsable.
|
||
const limit = Number.parseInt(limitMatch[2], 10);
|
||
this._limit = limit;
|
||
}
|
||
else {
|
||
this._error = 'do not understand query limit';
|
||
}
|
||
}
|
||
parseSortBy({ line }) {
|
||
const fieldMatch = line.match(this.sortByRegexp);
|
||
if (fieldMatch !== null) {
|
||
this._sorting.push({
|
||
property: fieldMatch[1],
|
||
reverse: !!fieldMatch[2],
|
||
});
|
||
}
|
||
else {
|
||
this._error = 'do not understand query sorting';
|
||
}
|
||
}
|
||
parseDate(input) {
|
||
// Using start of day to correctly match on comparison with other dates (like equality).
|
||
return window.moment(chrono.parseDate(input)).startOf('day');
|
||
}
|
||
stringIncludesCaseInsensitive(haystack, needle) {
|
||
return haystack
|
||
.toLocaleLowerCase()
|
||
.includes(needle.toLocaleLowerCase());
|
||
}
|
||
}
|
||
|
||
class Sort {
|
||
static by(query, tasks) {
|
||
const defaultComparators = [
|
||
Sort.compareByUrgency,
|
||
Sort.compareByStatus,
|
||
Sort.compareByDueDate,
|
||
Sort.compareByPriority,
|
||
Sort.compareByPath,
|
||
];
|
||
const userComparators = [];
|
||
for (const { property, reverse } of query.sorting) {
|
||
const comparator = Sort.comparators[property];
|
||
userComparators.push(reverse ? Sort.makeReversedComparator(comparator) : comparator);
|
||
}
|
||
return tasks.sort(Sort.makeCompositeComparator([
|
||
...userComparators,
|
||
...defaultComparators,
|
||
]));
|
||
}
|
||
static makeReversedComparator(comparator) {
|
||
return (a, b) => (comparator(a, b) * -1);
|
||
}
|
||
static makeCompositeComparator(comparators) {
|
||
return (a, b) => {
|
||
for (const comparator of comparators) {
|
||
const result = comparator(a, b);
|
||
if (result !== 0) {
|
||
return result;
|
||
}
|
||
}
|
||
return 0;
|
||
};
|
||
}
|
||
static compareByUrgency(a, b) {
|
||
// Higher urgency should be sorted earlier.
|
||
return b.urgency - a.urgency;
|
||
}
|
||
static compareByStatus(a, b) {
|
||
if (a.status < b.status) {
|
||
return 1;
|
||
}
|
||
else if (a.status > b.status) {
|
||
return -1;
|
||
}
|
||
else {
|
||
return 0;
|
||
}
|
||
}
|
||
static compareByPriority(a, b) {
|
||
return a.priority.localeCompare(b.priority);
|
||
}
|
||
static compareByStartDate(a, b) {
|
||
return Sort.compareByDate(a.startDate, b.startDate);
|
||
}
|
||
static compareByScheduledDate(a, b) {
|
||
return Sort.compareByDate(a.scheduledDate, b.scheduledDate);
|
||
}
|
||
static compareByDueDate(a, b) {
|
||
return Sort.compareByDate(a.dueDate, b.dueDate);
|
||
}
|
||
static compareByDoneDate(a, b) {
|
||
return Sort.compareByDate(a.doneDate, b.doneDate);
|
||
}
|
||
static compareByDate(a, b) {
|
||
if (a !== null && b === null) {
|
||
return -1;
|
||
}
|
||
else if (a === null && b !== null) {
|
||
return 1;
|
||
}
|
||
else if (a !== null && b !== null) {
|
||
if (a.isAfter(b)) {
|
||
return 1;
|
||
}
|
||
else if (a.isBefore(b)) {
|
||
return -1;
|
||
}
|
||
else {
|
||
return 0;
|
||
}
|
||
}
|
||
else {
|
||
return 0;
|
||
}
|
||
}
|
||
static compareByPath(a, b) {
|
||
if (a.path < b.path) {
|
||
return -1;
|
||
}
|
||
else if (a.path > b.path) {
|
||
return 1;
|
||
}
|
||
else {
|
||
return 0;
|
||
}
|
||
}
|
||
/**
|
||
* Compare the description by how it is rendered in markdown.
|
||
*
|
||
* Does not use the MarkdownRenderer, but tries to match regexes instead
|
||
* in order to be simpler, faster, and not async.
|
||
*/
|
||
static compareByDescription(a, b) {
|
||
return Sort.cleanDescription(a.description).localeCompare(Sort.cleanDescription(b.description));
|
||
}
|
||
/**
|
||
* Removes `*`, `=`, and `[` from the beginning of the description.
|
||
*
|
||
* Will remove them only if they are closing.
|
||
* Properly reads links [[like this|one]] (note pipe).
|
||
*/
|
||
static cleanDescription(description) {
|
||
const globalFilter = getSettings().globalFilter;
|
||
description = description.replace(globalFilter, '').trim();
|
||
const startsWithLinkRegex = /^\[\[?([^\]]*)\]/;
|
||
const linkRegexMatch = description.match(startsWithLinkRegex);
|
||
if (linkRegexMatch !== null) {
|
||
const innerLinkText = linkRegexMatch[1];
|
||
// For a link, we have to check whether it has another visible name set.
|
||
// For example `[[this is the link|but this is actually shown]]`.
|
||
description =
|
||
innerLinkText.substring(innerLinkText.indexOf('|') + 1) +
|
||
description.replace(startsWithLinkRegex, '');
|
||
}
|
||
const startsWithItalicOrBoldRegex = /^\*\*?([^*]*)\*/;
|
||
const italicBoldRegexMatch = description.match(startsWithItalicOrBoldRegex);
|
||
if (italicBoldRegexMatch !== null) {
|
||
const innerItalicBoldText = italicBoldRegexMatch[1];
|
||
description =
|
||
innerItalicBoldText +
|
||
description.replace(startsWithLinkRegex, '');
|
||
}
|
||
const startsWithHighlightRegex = /^==?([^=]*)==/;
|
||
const highlightRegexMatch = description.match(startsWithHighlightRegex);
|
||
if (highlightRegexMatch !== null) {
|
||
const innerHighlightsText = highlightRegexMatch[1];
|
||
description =
|
||
innerHighlightsText +
|
||
description.replace(startsWithHighlightRegex, '');
|
||
}
|
||
return description;
|
||
}
|
||
}
|
||
Sort.comparators = {
|
||
urgency: Sort.compareByUrgency,
|
||
description: Sort.compareByDescription,
|
||
priority: Sort.compareByPriority,
|
||
start: Sort.compareByStartDate,
|
||
scheduled: Sort.compareByScheduledDate,
|
||
due: Sort.compareByDueDate,
|
||
done: Sort.compareByDoneDate,
|
||
path: Sort.compareByPath,
|
||
status: Sort.compareByStatus,
|
||
};
|
||
|
||
class QueryRenderer {
|
||
constructor({ plugin, events }) {
|
||
this.addQueryRenderChild = this._addQueryRenderChild.bind(this);
|
||
this.app = plugin.app;
|
||
this.events = events;
|
||
plugin.registerMarkdownCodeBlockProcessor('tasks', this._addQueryRenderChild.bind(this));
|
||
}
|
||
_addQueryRenderChild(source, element, context) {
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
context.addChild(new QueryRenderChild({
|
||
app: this.app,
|
||
events: this.events,
|
||
container: element,
|
||
source,
|
||
}));
|
||
});
|
||
}
|
||
}
|
||
class QueryRenderChild extends obsidian.MarkdownRenderChild {
|
||
constructor({ app, events, container, source, }) {
|
||
super(container);
|
||
this.app = app;
|
||
this.events = events;
|
||
this.source = source;
|
||
this.query = new Query({ source });
|
||
}
|
||
onload() {
|
||
// Process the current cache state:
|
||
this.events.triggerRequestCacheUpdate(this.render.bind(this));
|
||
// Listen to future cache changes:
|
||
this.renderEventRef = this.events.onCacheUpdate(this.render.bind(this));
|
||
this.reloadQueryAtMidnight();
|
||
}
|
||
onunload() {
|
||
if (this.renderEventRef !== undefined) {
|
||
this.events.off(this.renderEventRef);
|
||
}
|
||
if (this.queryReloadTimeout !== undefined) {
|
||
clearTimeout(this.queryReloadTimeout);
|
||
}
|
||
}
|
||
/**
|
||
* Reloads the query after midnight to update results from relative date queries.
|
||
*
|
||
* For example, the query `due today` changes every day. This makes sure that all query results
|
||
* are re-rendered after midnight every day to ensure up-to-date results without having to
|
||
* reload obsidian. Creating a new query object from the source re-applies the relative dates
|
||
* to "now".
|
||
*/
|
||
reloadQueryAtMidnight() {
|
||
const midnight = new Date();
|
||
midnight.setHours(24, 0, 0, 0);
|
||
const now = new Date();
|
||
const millisecondsToMidnight = midnight.getTime() - now.getTime();
|
||
this.queryReloadTimeout = setTimeout(() => {
|
||
this.query = new Query({ source: this.source });
|
||
// Process the current cache state:
|
||
this.events.triggerRequestCacheUpdate(this.render.bind(this));
|
||
this.reloadQueryAtMidnight();
|
||
}, millisecondsToMidnight + 1000); // Add buffer to be sure to run after midnight.
|
||
}
|
||
render({ tasks, state }) {
|
||
var _a;
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
const content = this.containerEl.createEl('div');
|
||
if (state === State.Warm && this.query.error === undefined) {
|
||
const { taskList, tasksCount } = yield this.createTasksList({
|
||
tasks,
|
||
content,
|
||
});
|
||
content.appendChild(taskList);
|
||
if (!this.query.layoutOptions.hideTaskCount) {
|
||
content.createDiv({
|
||
text: `${tasksCount} task${tasksCount !== 1 ? 's' : ''}`,
|
||
cls: 'tasks-count',
|
||
});
|
||
}
|
||
}
|
||
else if (this.query.error !== undefined) {
|
||
content.setText(`Tasks query: ${this.query.error}`);
|
||
}
|
||
else {
|
||
content.setText('Loading Tasks ...');
|
||
}
|
||
(_a = this.containerEl.firstChild) === null || _a === void 0 ? void 0 : _a.replaceWith(content);
|
||
});
|
||
}
|
||
createTasksList({ tasks, content, }) {
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
this.query.filters.forEach((filter) => {
|
||
tasks = tasks.filter(filter);
|
||
});
|
||
const tasksSortedLimited = Sort.by(this.query, tasks).slice(0, this.query.limit);
|
||
const tasksCount = tasksSortedLimited.length;
|
||
const taskList = content.createEl('ul');
|
||
taskList.addClasses([
|
||
'contains-task-list',
|
||
'plugin-tasks-query-result',
|
||
]);
|
||
for (let i = 0; i < tasksCount; i++) {
|
||
const task = tasksSortedLimited[i];
|
||
let fileName;
|
||
const fileNameMatch = task.path.match(/([^/]+)\.md$/);
|
||
if (fileNameMatch !== null) {
|
||
fileName = fileNameMatch[1];
|
||
}
|
||
const listItem = yield task.toLi({
|
||
parentUlElement: taskList,
|
||
listIndex: i,
|
||
layoutOptions: this.query.layoutOptions,
|
||
});
|
||
// Remove all footnotes. They don't re-appear in another document.
|
||
const footnotes = listItem.querySelectorAll('[data-footnote-id]');
|
||
footnotes.forEach((footnote) => footnote.remove());
|
||
const postInfo = listItem.createSpan();
|
||
if (!this.query.layoutOptions.hideBacklinks &&
|
||
fileName !== undefined) {
|
||
this.addBacklinks(postInfo, fileName, task);
|
||
}
|
||
if (!this.query.layoutOptions.hideEditButton) {
|
||
this.addEditButton(postInfo, task);
|
||
}
|
||
taskList.appendChild(listItem);
|
||
}
|
||
return { taskList, tasksCount };
|
||
});
|
||
}
|
||
addEditButton(postInfo, task) {
|
||
const editTaskPencil = postInfo.createEl('a', {
|
||
cls: 'tasks-edit',
|
||
});
|
||
editTaskPencil.onClickEvent((event) => {
|
||
event.preventDefault();
|
||
const onSubmit = (updatedTasks) => {
|
||
replaceTaskWithTasks({
|
||
originalTask: task,
|
||
newTasks: updatedTasks,
|
||
});
|
||
};
|
||
// Need to create a new instance every time, as cursor/task can change.
|
||
const taskModal = new TaskModal({
|
||
app: this.app,
|
||
task,
|
||
onSubmit,
|
||
});
|
||
taskModal.open();
|
||
});
|
||
}
|
||
addBacklinks(postInfo, fileName, task) {
|
||
postInfo.addClass('tasks-backlink');
|
||
postInfo.append(' (');
|
||
const link = postInfo.createEl('a');
|
||
link.href = fileName;
|
||
link.setAttribute('data-href', fileName);
|
||
link.rel = 'noopener';
|
||
link.target = '_blank';
|
||
link.addClass('internal-link');
|
||
let linkText = fileName;
|
||
if (task.precedingHeader !== null) {
|
||
link.href = link.href + '#' + task.precedingHeader;
|
||
link.setAttribute('data-href', link.getAttribute('data-href') + '#' + task.precedingHeader);
|
||
// Otherwise, this wouldn't provide additinoal information and only take up space.
|
||
if (task.precedingHeader !== fileName) {
|
||
linkText = linkText + ' > ' + task.precedingHeader;
|
||
}
|
||
}
|
||
link.setText(linkText);
|
||
postInfo.append(')');
|
||
}
|
||
}
|
||
|
||
class SettingsTab extends obsidian.PluginSettingTab {
|
||
constructor({ plugin }) {
|
||
super(plugin.app, plugin);
|
||
this.plugin = plugin;
|
||
}
|
||
display() {
|
||
const { containerEl } = this;
|
||
containerEl.empty();
|
||
containerEl.createEl('h2', { text: 'Tasks Settings' });
|
||
containerEl.createEl('p', {
|
||
cls: 'tasks-setting-important',
|
||
text: 'Changing any settings requires a restart of obsidian.',
|
||
});
|
||
new obsidian.Setting(containerEl)
|
||
.setName('Global task filter')
|
||
.setDesc('The global filter will be applied to all checklist items.')
|
||
.addText((text) => {
|
||
const settings = getSettings();
|
||
text.setPlaceholder('#task')
|
||
.setValue(settings.globalFilter)
|
||
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
||
updateSettings({ globalFilter: value });
|
||
yield this.plugin.saveSettings();
|
||
}));
|
||
});
|
||
containerEl.createEl('div', {
|
||
cls: 'setting-item-description',
|
||
text: 'The global filter will be applied to all checklist items to filter out "non-task" checklist items.\n' +
|
||
'A checklist item must include the specified string in its description in order to be considered a task.\n' +
|
||
'For example, if you set the global filter to `#task`, the Tasks plugin will only handle checklist items tagged with `#task`.\n' +
|
||
'Other checklist items will remain normal checklist items and not appear in queries or get a done date set.\n' +
|
||
'Leave empty if you want all checklist items from your vault to be tasks managed by this plugin.',
|
||
});
|
||
new obsidian.Setting(containerEl)
|
||
.setName('Remove global filter from description')
|
||
.setDesc('Enabling this removes the string that you set as global filter from the task description when displaying a task.')
|
||
.addToggle((toggle) => {
|
||
const settings = getSettings();
|
||
toggle
|
||
.setValue(settings.removeGlobalFilter)
|
||
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
||
updateSettings({ removeGlobalFilter: value });
|
||
yield this.plugin.saveSettings();
|
||
}));
|
||
});
|
||
}
|
||
}
|
||
|
||
class TasksPlugin extends obsidian.Plugin {
|
||
onload() {
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
console.log('loading plugin "tasks"');
|
||
yield this.loadSettings();
|
||
this.addSettingTab(new SettingsTab({ plugin: this }));
|
||
initializeFile({
|
||
metadataCache: this.app.metadataCache,
|
||
vault: this.app.vault,
|
||
});
|
||
const events = new Events({ obsidianEents: this.app.workspace });
|
||
this.cache = new Cache({
|
||
metadataCache: this.app.metadataCache,
|
||
vault: this.app.vault,
|
||
events,
|
||
});
|
||
this.inlineRenderer = new InlineRenderer({ plugin: this });
|
||
this.queryRenderer = new QueryRenderer({ plugin: this, events });
|
||
new Commands({ plugin: this });
|
||
});
|
||
}
|
||
onunload() {
|
||
var _a;
|
||
console.log('unloading plugin "tasks"');
|
||
(_a = this.cache) === null || _a === void 0 ? void 0 : _a.unload();
|
||
}
|
||
loadSettings() {
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
const newSettings = yield this.loadData();
|
||
updateSettings(newSettings);
|
||
});
|
||
}
|
||
saveSettings() {
|
||
return __awaiter(this, void 0, void 0, function* () {
|
||
yield this.saveData(getSettings());
|
||
});
|
||
}
|
||
}
|
||
|
||
module.exports = TasksPlugin;
|
||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsIm5vZGVfbW9kdWxlcy9hc3luYy1tdXRleC9lczYvZXJyb3JzLmpzIiwibm9kZV9tb2R1bGVzL2FzeW5jLW11dGV4L2VzNi9TZW1hcGhvcmUuanMiLCJub2RlX21vZHVsZXMvYXN5b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lcmF0b3JdID0gZnVuY3Rpb24oKSB7IHJldHVybiB0aGlzOyB9KSwgZztcclxuICAgIGZ1bmN0aW9uIHZlcmIobikgeyByZXR1cm4gZnVuY3Rpb24gKHYpIHsgcmV0dXJuIHN0ZXAoW24sIHZdKTsgfTsgfVxyXG4gICAgZnVuY3Rpb24gc3RlcChvcCkge1xyXG4gICAgICAgIGlmIChmKSB0aHJvdyBuZXcgVHlwZUVycm9yKFwiR2VuZXJhdG9yIGlzIGFscmVhZHkgZXhlY3V0aW5nLlwiKTtcclxuICAgICAgICB3aGlsZSAoXykgdHJ5IHtcclxuICAgICAgICAgICAgaWYgKGYgPSAxLCB5ICYmICh0ID0gb3BbMF0gJiAyID8geVtcInJldHVyblwiXSA6IG9wWzBdID8geVtcInRocm93XCJdIHx8ICgodCA9IHlbXCJyZXR1cm5cIl0pICYmIHQuY2FsbCh5KSwgMCkgOiB5Lm5leHQpICYmICEodCA9IHQuY2FsbCh5LCBvcFsxXSkpLmRvbmUpIHJldHVybiB0O1xyXG4gICAgICAgICAgICBpZiAoeSA9IDAsIHQpIG9wID0gW29wWzBdICYgMiwgdC52YWx1ZV07XHJcbiAgICAgICAgICAgIHN3aXRjaCAob3BbMF0pIHtcclxuICAgICAgICAgICAgICAgIGNhc2UgMDogY2FzZSAxOiB0ID0gb3A7IGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgY2FzZSA0OiBfLmxhYmVsKys7IHJldHVybiB7IHZhbHVlOiBvcFsxXSwgZG9uZTogZmFsc2UgfTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNTogXy5sYWJlbCsrOyB5ID0gb3BbMV07IG9wID0gWzBdOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNzogb3AgPSBfLm9wcy5wb3AoKTsgXy50cnlzLnBvcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKCEodCA9IF8udHJ5cywg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WN0KSB7XG4gICAgICAgICAgICByZXR1cm4gX3RoaXMuX3F1ZXVlLnB1c2goeyByZXNvbHZlOiByZXNvbHZlLCByZWplY3Q6IHJlamVjdCB9KTtcbiAgICAgICAgfSk7XG4gICAgICAgIGlmICghbG9ja2VkKVxuICAgICAgICAgICAgdGhpcy5fZGlzcGF0Y2goKTtcbiAgICAgICAgcmV0dXJuIHRpY2tldFByb21pc2U7XG4gICAgfTtcbiAgICBTZW1hcGhvcmUucHJvdG90eXBlLnJ1bkV4Y2x1c2l2ZSA9IGZ1bmN0aW9uIChjYWxsYmFjaykge1xuICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICB2YXIgX2EsIHZhbHVlLCByZWxlYXNlO1xuICAgICAgICAgICAgcmV0dXJuIF9fZ2VuZXJhdG9yKHRoaXMsIGZ1bmN0aW9uIChfYikge1xuICAgICAgICAgICAgICAgIHN3aXRjaCAoX2IubGFiZWwpIHtcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAwOiByZXR1cm4gWzQgLyp5aWVsZCovLCB0aGlzLmFjcXVpcmUoKV07XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgMTpcbiAgICAgICAgICAgICAgICAgICAgICAgIF9hID0gX2Iuc2VudCgpLCB2YWx1ZSA9IF9hWzBdLCByZWxlYXNlID0gX2FbMV07XG4gICAgICAgICAgICAgICAgICAgICAgICBfYi5sYWJlbCA9IDI7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgMjpcbiAgICAgICAgICAgICAgICAgICAgICAgIF9iLnRyeXMucHVzaChbMiwgLCA0LCA1XSk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzQgLyp5aWVsZCovLCBjYWxsYmFjayh2YWx1ZSldO1xuICAgICAgICAgICAgICAgICAgICBjYXNlIDM6IHJldHVybiBbMiAvKnJldHVybiovLCBfYi5zZW50KCldO1xuICAgICAgICAgICAgICAgICAgICBjYXNlIDQ6XG4gICAgICAgICAgICAgICAgICAgICAgICByZWxlYXNlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzcgLyplbmRmaW5hbGx5Ki9dO1xuICAgICAgICAgICAgICAgICAgICBjYXNlIDU6IHJldHVybiBbMiAvKnJldHVybiovXTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgfTtcbiAgICBTZW1hcGhvcmUucHJvdG90eXBlLndhaXRGb3JVbmxvY2sgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHJldHVybiBfX2F3YWl0ZXIodGhpcywgdm9pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHZhciB3YWl0UHJvbWlzZTtcbiAgICAgICAgICAgIHZhciBfdGhpcyA9IHRoaXM7XG4gICAgICAgICAgICByZXR1cm4gX19nZW5lcmF0b3IodGhpcywgZnVuY3Rpb24gKF9hKSB7XG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLmlzTG9ja2VkKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFsyIC8qcmV0dXJuKi8sIFByb21pc2UucmVzb2x2ZSgpXTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgd2FpdFByb21pc2UgPSBuZXcgUHJvbWlzZShmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXR1cm4gX3RoaXMuX3dhaXRlcnMucHVzaCh7IHJlc29sdmU6IHJlc29sdmUgfSk7IH0pO1xuICAgICAgICAgICAgICAgIHJldHVybiBbMiAvKnJldHVybiovLCB3YWl0UHJvbWlzZV07XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgfTtcbiAgICBTZW1hcGhvcmUucHJvdG90eXBlLmlzTG9ja2VkID0gZnVuY3Rpb24gKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fdmFsdWUg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ZmFsc2U7XG4gICAgaGlkZURvbmVEYXRlOiBib29sZWFuID0gZmFsc2U7XG4gICAgaGlkZUR1ZURhdGU6IGJvb2xlYW4gPSBmYWxzZTtcbiAgICBoaWRlUmVjdXJyZW5jZVJ1bGU6IGJvb2xlYW4gPSBmYWxzZTtcbiAgICBoaWRlRWRpdEJ1dHRvbjogYm9vbGVhbiA9IGZhbHNlO1xuICAgIHNob3J0TW9kZTogYm9vbGVhbiA9IGZhbHNlO1xufVxuIiwiLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIFdlZWtkYXlcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5leHBvcnQgdmFyIEFMTF9XRUVLREFZUyA9IFsnTU8nLCAnVFUnLCAnV0UnLCAnVEgnLCAnRlInLCAnU0EnLCAnU1UnXTtcbnZhciBXZWVrZGF5ID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIFdlZWtkYXkod2Vla2RheSwgbikge1xuICAgICAgICBpZiAobiA9PT0gMClcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIkNhbid0IGNyZWF0ZSB3ZWVrZGF5IHdpdGggbiA9PSAwXCIpO1xuICAgICAgICB0aGlzLndlZWtkYXkgPSB3ZWVrZGF5O1xuICAgICAgICB0aGlzLm4gPSBuO1xuICAgIH1cbiAgICBXZWVrZGF5LmZyb21TdHIgPSBmdW5jdGlvbiAoc3RyKSB7XG4gICAgICAgIHJldHVybiBuZXcgV2Vla2RheShBTExfV0VFS0RBWVMuaW5kZXhPZihzdHIpKTtcbiAgICB9O1xuICAgIC8vIF9fY2FsbF9fIC0gQ2Fubm90IGNhbGwgdGhlIG9iamVjdCBkaXJlY3RseSwgZG8gaXQgdGhyb3VnaFxuICAgIC8vIGUuZy4gUlJ1bGUuVEgubnRoKC0xKSBpbnN0ZWFkLFxuICAgIFdlZWtkYXkucHJvdG90eXBlLm50aCA9IGZ1bmN0aW9uIChuKSB7XG4gICAgICAgIHJldHVybiB0aGlzLm4gPT09IG4gPyB0aGlzIDogbmV3IFdlZWtkYXkodGhpcy53ZWVrZGF5LCBuKTtcbiAgICB9O1xuICAgIC8vIF9fZXFfX1xuICAgIFdlZWtkYXkucHJvdG90eXBlLmVxdWFscyA9IGZ1bmN0aW9uIChvdGhlcikge1xuICAgICAgICByZXR1cm4gdGhpcy53ZWVrZGF5ID09PSBvdGhlci53ZWVrZGF5ICYmIHRoaXMubiA9PT0gb3RoZXIubjtcbiAgICB9O1xuICAgIC8vIF9fcmVwcl9fXG4gICAgV2Vla2RheS5wcm90b3R5cGUudG9TdHJpbmcgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHZhciBzID0gQUxMX1dFRUtEQVlTW3RoaXMud2Vla2RheV07XG4gICAgICAgIGlmICh0aGlzLm4pXG4gICAgICAgICAgICBzID0gKHRoaXMubiA+IDAgPyAnKycgOiAnJykgKyBTdHJpbmcodGhpcy5uKSArIHM7XG4gICAgICAgIHJldHVybiBzO1xuICAgIH07XG4gICAgV2Vla2RheS5wcm90b3R5cGUuZ2V0SnNXZWVrZGF5ID0gZnVuY3Rpb24gKCkge1xuICAgICAgICByZXR1cm4gdGhpcy53ZWVrZGF5ID09PSA2ID8gMCA6IHRoaXMud2Vla2RheSArIDE7XG4gICAgfTtcbiAgICByZXR1cm4gV2Vla2RheTtcbn0oKSk7XG5leHBvcnQgeyBXZWVrZGF5IH07XG4vLyMgc291cmNlTWFwcGluZ1VSTD13ZWVrZGF5LmpzLm1hcCIsIi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBIZWxwZXIgZnVuY3Rpb25zXG4vLyA9PT09PT09PT09PT09P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B2YXIgZGF0ZSA9IG5ldyBEYXRlKHRpbWUpO1xuICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgcGFkU3RhcnQoZGF0ZS5nZXRVVENGdWxsWWVhcigpLnRvU3RyaW5nKCksIDQsICcwJyksXG4gICAgICAgICAgICBwYWRTdGFydChkYXRlLmdldFVUQ01vbnRoKCkgKyAxLCAyLCAnMCcpLFxuICAgICAgICAgICAgcGFkU3RhcnQoZGF0ZS5nZXRVVENEYXRlKCksIDIsICcwJyksXG4gICAgICAgICAgICAnVCcsXG4gICAgICAgICAgICBwYWRTdGFydChkYXRlLmdldFVUQ0hvdXJzKCksIDIsICcwJyksXG4gICAgICAgICAgICBwYWRTdGFydChkYXRlLmdldFVUQ01pbnV0ZXMoKSwgMiwgJzAnKSxcbiAgICAgICAgICAgIHBhZFN0YXJ0KGRhdGUuZ2V0VVRDU2Vjb25kcygpLCAyLCAnMCcpLFxuICAgICAgICAgICAgdXRjID8gJ1onIDogJydcbiAgICAgICAgXS5qb2luKCcnKTtcbiAgICB9O1xuICAgIGRhdGV1dGlsLnVudGlsU3RyaW5nVG9EYXRlID0gZnVuY3Rpb24gKHVudGlsKSB7XG4gICAgICAgIHZhciByZSA9IC9eKFxcZHs0fSkoXFxkezJ9KShcXGR7Mn0pKFQoXFxkezJ9KShcXGR7Mn0pKFxcZHsyfSlaPyk/JC87XG4gICAgICAgIHZhciBiaXRzID0gcmUuZXhlYyh1bnRpbCk7XG4gICAgICAgIGlmICghYml0cylcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIkludmFsaWQgVU5USUwgdmFsdWU6IFwiICsgdW50aWwpO1xuICAgICAgICByZXR1cm4gbmV3IERhdGUoRGF0ZS5VVEMocGFyc2VJbnQoYml0c1sxXSwgMTApLCBwYXJzZUludChiaXRzWzJdLCAxMCkgLSAxLCBwYXJzZUludChiaXRzWzNdLCAxMCksIHBhcnNlSW50KGJpdHNbNV0sIDEwKSB8fCAwLCBwYXJzZUludChiaXR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T09PT09PT09PT09PT09PT09PT09PT1cbnZhciBFTkdMSVNIID0ge1xuICAgIGRheU5hbWVzOiBbXG4gICAgICAgICdTdW5kYXknLCAnTW9uZGF5JywgJ1R1ZXNkYXknLCAnV2VkbmVzZGF5JyxcbiAgICAgICAgJ1RodXJzZGF5JywgJ0ZyaWRheScsICdTYXR1cmRheSdcbiAgICBdLFxuICAgIG1vbnRoTmFtZXM6IFtcbiAgICAgICAgJ0phbnVhcnknLCAnRmVicnVhcnknLCAnTWFyY2gnLCAnQXByaWwnLCAnTWF5JyxcbiAgICAgICAgJ0p1bmUnLCAnSnVseScsICdBdWd1c3QnLCAnU2VwdGVtYmVyJywgJ09jdG9iZXInLFxuICAgICAgICAnTm92ZW1iZXInLCAnRGVjZW1iZXInXG4gICAgXSxcbiAgICB0b2tlbnM6IHtcbiAgICAgICAgJ1NLSVAnOiAvXlsgXFxyXFxuXFx0XSt8XlxcLiQvLFxuICAgICAgICAnbnVtYmVyJzogL15bMS05XVswLTldKi8sXG4gICAgICAgICdudW1iZXJBc1RleHQnOiAvXihvbmV8dHdvfHRocmVlKS9pLFxuICAgICAgICAnZXZlcnknOiAvXmV2ZXJ5L2ksXG4gICAgICAgICdkYXkocyknOiAvXmRheXM/L2ksXG4gICAgICAgICd3ZWVrZGF5KHMpJzogL153ZWVrZGF5cz8vaSxcbiAgICAgICAgJ3dlZWsocyknOiAvXndlZWtzPy9pLFxuICAgICAgICAnaG91cihzKSc6IC9eaG91cnM/L2ksXG4gICAgICAgICdtaW51dGUocyknOiAvXm1pbnV0ZXM/L2ksXG4gICAgICAgICdtb250aChzKSc6IC9ebW9udGhzPy9pLFxuICAgICAgICAneWVhcihzKSc6IC9eeWVhcnM/L2ksXG4gICAgICAgICdvbic6IC9eKG9ufGluKS9pLFxuICAgICAgICAnYXQnOiAvXihhdCkvaSxcbiAgICAgICAgJ3RoZSc6IC9edGhlL2ksXG4gICAgICAgICdmaXJzdCc6IC9eZmlyc3QvaSxcbiAgICAgICAgJ3NlY29uZCc6IC9ec2Vjb25kL2ksXG4gICAgICAgICd0aGlyZCc6IC9edGhpcmQvaSxcbiAgICAgICAgJ250aCc6IC9eKFsxLTldWzAtOV0qKShcXC58dGh8bmR8cmR8c3QpL2ksXG4gICAgICAgICdsYXN0JzogL15sYXN0L2ksXG4gICAgICAgICdmb3InOiAvXmZvci9pLFxuICAgICAgICAndGltZShzKSc6IC9edGltZXM/L2ksXG4gICAgICAgICd1bnRpbCc6IC9eKHVuKT90aWwvaSxcbiAgICAgICAgJ21vbmRheSc6IC9ebW8obihkYXkpPyk/L2ksXG4gICAgICAgICd0dWVzZGF5JzogL150dShlKHMoZGF5KT8pPyk/L2ksXG4gICAgICAgICd3ZWRuZXNkYXknOiAvXndlKGQobihlc2RheSk/KT8pPy9pLFxuICAgICAgICAndGh1cnNkYXknOiAvXnRoKHUocihzZGF5KT8pPyk/L2ksXG4gICAgICAgICdmcmlkYXknOiAvXmZyKGkoZGF5KT8pPy9pLFxuICAgICAgICAnc2F0dXJkYXknOiAvXnNhKHQodXJkYXkpPyk/L2ksXG4gICAgICAgICdzdW5kYXknOiAvXnN1KG4oZGF5KT8pPy9pLFxuICAgICAgICAnamFudWFyeSc6IC9eamFuKHVhcnkpPy9pLFxuICAgICAgICAnZmVicnVhcnknOiAvXmZlYihydWFyeSk/L2ksXG4gICAgICAgICdtYXJjaCc6IC9ebWFyKGNoKT8vaSxcbiAgICAgICAgJ2FwcmlsJzogL15hcHIoaWwpPy9pLFxuICAgICAgICAnbWF5JzogL15tYXkvaSxcbiAgICAgICAgJ2p1bmUnOiAvXmp1bmU/L2ksXG4gICAgICAgICdqdWx5JzogL15qdWx5Py9pLFxuICAgICAgICAnYXVndXN0JzogL15hdWcodXN0KT8vaSxcbiAgICAgICAgJ3NlcHRlbWJlcic6IC9ec2VwKHQoZW1iZXIpPyk/L2ksXG4gICAgICAgICdvY3RvYmVyJzogL15vY3Qob2Jlcik/L2ksXG4gICAgICAgICdub3ZlbWJlcic6IC9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J5bm1vbnRoZGF5KTtcbiAgICAgICAgICAgIGJ5bW9udGhkYXkuc29ydChmdW5jdGlvbiAoYSwgYikgeyByZXR1cm4gYSAtIGI7IH0pO1xuICAgICAgICAgICAgYnlubW9udGhkYXkuc29ydChmdW5jdGlvbiAoYSwgYikgeyByZXR1cm4gYiAtIGE7IH0pO1xuICAgICAgICAgICAgLy8gMSwgMiwgMywgLi4sIC01LCAtNCwgLTMsIC4uXG4gICAgICAgICAgICB0aGlzLmJ5bW9udGhkYXkgPSBieW1vbnRoZGF5LmNvbmNhdChieW5tb250aGRheSk7XG4gICAgICAgICAgICBpZiAoIXRoaXMuYnltb250aGRheS5sZW5ndGgpXG4gICAgICAgICAgICAgICAgdGhpcy5ieW1vbnRoZGF5ID0gbnVsbDtcbiAgICAgICAgfVxuICAgICAgICBpZiAoaXNQcmVzZW50KHRoaXMub3JpZ09wdGlvbnMuYnl3ZWVrZGF5KSkge1xuICAgICAgICAgICAgdmFyIGJ5d2Vla2RheSA9ICFpc0FycmF5KHRoaXMub3JpZ09wdGlvbnMuYnl3ZWVrZGF5KVxuICAgICAgICAgICAgICAgID8gW3RoaXMub3JpZ09wdGlvbnMuYnl3ZWVrZGF5XVxuICAgICAgICAgICAgICAgIDogdGhpcy5vcmlnT3B0aW9ucy5ieXdlZWtkYXk7XG4gICAgICAgICAgICB2YXIgZGF5cyA9IFN0cmluZyhieXdlZWtkYXkpO1xuICAgICAgICAgICAgdGhpcy5ieXdlZWtkYXkgPSB7XG4gICAgICAgICAgICAgICAgYWxsV2Vla3M6IGJ5d2Vla2RheS5maWx0ZXIoZnVuY3Rpb24gKHdlZWtkYXkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICF3ZWVrZGF5Lm47XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgc29tZVdlZWtzOiBieXdlZWtkYXkuZmlsdGVyKGZ1bmN0aW9uICh3ZWVrZGF5KSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBCb29sZWFuKHdlZWtkYXkubik7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgaXNXZWVrZGF5czogZGF5cy5pbmRleE9mKCdNTycpICE9PSAtMSAmJlxuICAgICAgICAgICAgICAgICAgICBkYXlzLmluZGV4T2YoJ1RVJykgIT09IC0xICYmXG4gICAgICAgICAgICAgICAgICAgIGRheXMuaW5kZXhPZignV0UnKSAhPT0gLTEgJiZcbiAgICAgICAgICAgICAgICAgICAgZGF5cy5pbmRleE9mKCdUSCcpICE9PSAtMSAmJlxuICAgICAgICAgICAgICAgICAgICBkYXlzLmluZGV4T2YoJ0ZSJykgIT09IC0xICYmXG4gICAgICAgICAgICAgICAgICAgIGRheXMuaW5kZXhPZignU0EnKSA9PT0gLTEgJiZcbiAgICAgICAgICAgICAgICAgICAgZGF5cy5pbmRleE9mKCdTVScpID09PSAtMSxcbiAgICAgICAgICAgICAgICBpc0V2ZXJ5RGF5OiBkYXlzLmluZGV4T2YoJ01PJykgIT09IC0xICYmXG4gICAgICAgICAgICAgICAgICAgIGRheXMuaW5kZXhPZignVFUnKSAhPT0gLTEgJiZcbiAgICAgICAgICAgICAgICAgICAgZGF5cy5pbmRleE9mKCdXRScpICE9PSAtMSAmJlxuICAgICAgICAgICAgICAgICAgICBkYXlzLmluZGV4T2YoJ1RIJykgIT09IC0xICYmXG4gICAgICAgICAgICAgICAgICAgIGRheXMuaW5kZXhPZignRlInKSAhPT0gLTEgJiZcbiAgICAgICAgICAgICAgICAgICAgZGF5cy5pbmRleE9mKCdTQScpICE9PSAtMSAmJlxuICAgICAgICAgICAgICAgICAgICBkYXlzLmluZGV4T2YoJ1NVJykgIT09IC0xXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgdmFyIHNvcnRXZWVrRGF5cyA9IGZ1bmN0aW9uIChhLCBiKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGEud2Vla2RheSAtIGIud2Vla2RheTtcbiAgICAgICAgICAgIH07XG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GV4dCgnd2VlaycpKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5ieXdlZWtkYXkgJiYgdGhpcy5ieXdlZWtkYXkuaXNXZWVrZGF5cykge1xuICAgICAgICAgICAgaWYgKHRoaXMub3B0aW9ucy5pbnRlcnZhbCA9PT0gMSkge1xuICAgICAgICAgICAgICAgIHRoaXMuYWRkKHRoaXMucGx1cmFsKHRoaXMub3B0aW9ucy5pbnRlcnZhbClcbiAgICAgICAgICAgICAgICAgICAgPyBnZXR0ZXh0KCd3ZWVrZGF5cycpXG4gICAgICAgICAgICAgICAgICAgIDogZ2V0dGV4dCgnd2Vla2RheScpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMuYWRkKGdldHRleHQoJ29uJykpLmFkZChnZXR0ZXh0KCd3ZWVrZGF5cycpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmICh0aGlzLmJ5d2Vla2RheSAmJiB0aGlzLmJ5d2Vla2RheS5pc0V2ZXJ5RGF5KSB7XG4gICAgICAgICAgICB0aGlzLmFkZCh0aGlzLnBsdXJhbCh0aGlzLm9wdGlvbnMuaW50ZXJ2YWwpID8gZ2V0dGV4dCgnZGF5cycpIDogZ2V0dGV4dCgnZGF5JykpO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgaWYgKHRoaXMub3B0aW9ucy5pbnRlcnZhbCA9PT0gMSlcbiAgICAgICAgICAgICAgICB0aGlzLmFkZChnZXR0ZXh0KCd3ZWVrJykpO1xuICAgICAgICAgICAgaWYgKHRoaXMub3JpZ09wdGlvbnMuYnltb250aCkge1xuICAgICAgICAgICAgICAgIHRoaXMuYWRkKGdldHRleHQoJ2luJykpO1xuICAgICAgICAgICAgICAgIHRoaXMuX2J5bW9udGgoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh0aGlzLmJ5bW9udGhkYXkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9ieW1vbnRoZGF5KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmICh0aGlzLmJ5d2Vla2RheSkge1xuICAgICAgICAgICAgICAgIHRoaXMuX2J5d2Vla2RheSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfTtcbiAgICBUb1RleHQucHJvdG90eXBlLk1PTlRITFkgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHZhciBnZXR0ZXh0ID0gdGhpcy5nZXR0ZXh0O1xuICAgICAgICBpZiAodGhpcy5vcmlnT3B0aW9ucy5ieW1vbnRoKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5vcHRpb25zLmludGVydmFsICE9PSAxKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5hZGQodGhpcy5vcHRpb25zLmludGVydmFsLnRvU3RyaW5nKCkpLmFkZChnZXR0ZXh0KCdtb250aHMnKSk7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMucGx1cmFsKHRoaXMub3B0aW9ucy5pbnRlcnZhbCkpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYWRkKGdldHRleHQoJ2luJykpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgLy8gdGhpcy5hZGQoZ2V0dGV4dCgnTU9OVEgnKSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuX2J5bW9udGgoKTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIGlmICh0aGlzLm9wdGlvbnMuaW50ZXJ2YWwgIT09IDEpXG4gICAgICAgICAgICAgICAgdGhpcy5hZGQodGhpcy5vcHRpb25zLmludGVydmFsLnRvU3RyaW5nKCkpO1xuICAgICAgICAgICAgdGhpcy5hZGQodGhpcy5wbHVyYWwodGhpcy5vcHRpb25zLmludGVydmFsKVxuICAgICAgICAgICAgICAgID8gZ2V0dGV4dCgnbW9udGhzJylcbiAgICAgICAgICAgICAgICA6IGdldHRleHQoJ21vbnRoJykpO1xuICAgICAgICB9XG4gICAgICAgIGlmICh0aGlzLmJ5bW9udGhkYXkpIHtcbiAgICAgICAgICAgIHRoaXMuX2J5bW9udGhkYXkoKTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmICh0aGlzLmJ5d2Vla2RheSAmJiB0aGlzLmJ5d2Vla2RheS5pc1dlZWtkYXlzKSB7XG4gICAgICAgICAgICB0aGlzLmFkZChnZXR0ZXh0KCdvbicpKS5hZGQoZ2V0dGV4dCgnd2Vla2RheXMnKSk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSBpZiAodGhpcy5ieXdlZWtkYXkpIHtcbiAgICAgICAgICAgIHRoaXMuX2J5d2Vla2RheSgpO1xuICAgICAgICB9XG4gICAgfTtcbiAgICBUb1RleHQucHJvdG90eXBlLllFQVJMWSA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgdmFyIGdldHRleHQgPSB0aGlzLmdldHRleHQ7XG4gICAgICAgIGlmICh0aGlzLm9yaWdPcHRpb25zLmJ5bW9udGgpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLm9wdGlvbnMuaW50ZXJ2YWwgIT09IDEpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmFkZCh0aGlzLm9wdGlvbnMuaW50ZXJ2YWwudG9TdHJpbmcoKSk7XG4gICAgICAgICAgICAgICAgdGhpcy5hZGQoZ2V0dGV4dCgneWVhcnMnKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAvLyB0aGlzLmFkZChnZXR0ZXh0KCdZRUFSJykpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLl9ieW1vbnRoKCk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBpZiAodGhpcy5vcHRpb25zLmludGVydmFsICE9PSAxKVxuICA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uICAgICAgICBucG9zID0gTWF0aC5hYnMobik7XG4gICAgICAgIHN3aXRjaCAobnBvcykge1xuICAgICAgICAgICAgY2FzZSAxOlxuICAgICAgICAgICAgY2FzZSAyMTpcbiAgICAgICAgICAgIGNhc2UgMzE6XG4gICAgICAgICAgICAgICAgbnRoID0gbnBvcyArIGdldHRleHQoJ3N0Jyk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIDI6XG4gICAgICAgICAgICBjYXNlIDIyOlxuICAgICAgICAgICAgICAgIG50aCA9IG5wb3MgKyBnZXR0ZXh0KCduZCcpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAzOlxuICAgICAgICAgICAgY2FzZSAyMzpcbiAgICAgICAgICAgICAgICBudGggPSBucG9zICsgZ2V0dGV4dCgncmQnKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgbnRoID0gbnBvcyArIGdldHRleHQoJ3RoJyk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG4gPCAwID8gbnRoICsgJyAnICsgZ2V0dGV4dCgnbGFzdCcpIDogbnRoO1xuICAgIH07XG4gICAgVG9UZXh0LnByb3RvdHlwZS5tb250aHRleHQgPSBmdW5jdGlvbiAobSkge1xuICAgICAgICByZXR1cm4gdGhpcy5sYW5ndWFnZS5tb250aE5hbWVzW20gLSAxXTtcbiAgICB9O1xuICAgIFRvVGV4dC5wcm90b3R5cGUud2Vla2RheXRleHQgPSBmdW5jdGlvbiAod2RheSkge1xuICAgICAgICB2YXIgd2Vla2RheSA9IGlzTnVtYmVyKHdkYXkpID8gKHdkYXkgKyAxKSAlIDcgOiB3ZGF5LmdldEpzV2Vla2RheSgpO1xuICAgICAgICByZXR1cm4gKCh3ZGF5Lm4gPyB0aGlzLm50aCh3ZGF5Lm4pICsgJyAnIDogJycpICsgdGhpcy5sYW5ndWFnZS5kYXlOYW1lc1t3ZWVrZGF5XSk7XG4gICAgfTtcbiAgICBUb1RleHQucHJvdG90eXBlLnBsdXJhbCA9IGZ1bmN0aW9uIChuKSB7XG4gICAgICAgIHJldHVybiBuICUgMTAwICE9PSAxO1xuICAgIH07XG4gICAgVG9UZXh0LnByb3RvdHlwZS5hZGQgPSBmdW5jdGlvbiAocykge1xuICAgICAgICB0aGlzLnRleHQucHVzaCgnICcpO1xuICAgICAgICB0aGlzLnRleHQucHVzaChzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfTtcbiAgICBUb1RleHQucHJvdG90eXBlLmxpc3QgPSBmdW5jdGlvbiAoYXJyLCBjYWxsYmFjaywgZmluYWxEZWxpbSwgZGVsaW0pIHtcbiAgICAgICAgaWYgKGRlbGltID09PSB2b2lkIDApIHsgZGVsaW0gPSAnLCc7IH1cbiAgICAgICAgaWYgKCFpc0FycmF5KGFycikpIHtcbiAgICAgICAgICAgIGFyciA9IFthcnJdO1xuICAgICAgICB9XG4gICAgICAgIHZhciBkZWxpbUpvaW4gPSBmdW5jdGlvbiAoYXJyYXksIGRlbGltaXRlciwgZmluYWxEZWxpbWl0ZXIpIHtcbiAgICAgICAgICAgIHZhciBsaXN0ID0gJyc7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGFycmF5Lmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgaWYgKGkgIT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGkgPT09IGFycmF5Lmxlbmd0aCAtIDEpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxpc3QgKz0gJyAnICsgZmluYWxEZWxpbWl0ZXIgKyAnICc7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsaXN0ICs9IGRlbGltaXRlciArICcgJztcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBsaXN0ICs9IGFycmF5W2ldO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGxpc3Q7XG4gICAgICAgIH07XG4gICAgICAgIGNhbGxiYWNrID1cbiAgICAgICAgICAgIGNhbGxiYWNrIHx8XG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gKG8pIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG8udG9TdHJpbmcoKTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICB2YXIgc2VsZiA9IHRoaXM7XG4gICAgICAgIHZhciByZWFsQ2FsbGJhY2sgPSBmdW5jdGlvbiAoYXJnKSB7XG4gICAgICAgICAgICByZXR1cm4gY2FsbGJhY2sgJiYgY2FsbGJhY2suY2FsbChzZWxmLCBhcmcpO1xuICAgICAgICB9O1xuICAgICAgICBpZiAoZmluYWxEZWxpbSkge1xuICAgICAgICAgICAgcmV0dXJuIGRlbGltSm9pbihhcnIubWFwKHJlYWxDYWxsYmFjayksIGRlbGltLCBmaW5hbERlbGltKTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiBhcnIubWFwKHJlYWxDYWxsYmFjaykuam9pbihkZWxpbSArICcgJyk7XG4gICAgICAgIH1cbiAgICB9O1xuICAgIHJldHVybiBUb1RleHQ7XG59KCkpO1xuZXhwb3J0IGRlZmF1bHQgVG9UZXh0O1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9dG90ZXh0LmpzLm1hcCIsImltcG9ydCBFTkdMSVNIIGZyb20gJy4vaTE4bic7XG5pbXBvcnQgUlJ1bGUgZnJvbSAnLi4vaW5kZXgnO1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIFBhcnNlclxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09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WF0Y2ggPSBydWxlLmV4ZWMocC50ZXh0KTtcbiAgICAgICAgICAgICAgICBpZiAobWF0Y2gpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGJlc3QgPT09IG51bGwgfHwgbWF0Y2hbMF0ubGVuZ3RoID4gYmVzdFswXS5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJlc3QgPSBtYXRjaDtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJlc3RTeW1ib2wgPSBuYW1lXzE7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoYmVzdCAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgdGhpcy50ZXh0ID0gdGhpcy50ZXh0LnN1YnN0cihiZXN0WzBdLmxlbmd0aCk7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMudGV4dCA9PT0gJycpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZG9uZSA9IHRydWU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoYmVzdCA9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5kb25lID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICB0aGlzLnN5bWJvbCA9IG51bGw7XG4gICAgICAgICAgICAgICAgdGhpcy52YWx1ZSA9IG51bGw7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gQHRzLWlnbm9yZVxuICAgICAgICB9IHdoaWxlIChiZXN0U3ltYm9sID09PSAnU0tJUCcpO1xuICAgICAgICAvLyBAdHMtaWdub3JlXG4gICAgICAgIHRoaXMuc3ltYm9sID0gYmVzdFN5bWJvbDtcbiAgICAgICAgdGhpcy52YWx1ZSA9IGJlc3Q7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH07XG4gICAgUGFyc2VyLnByb3RvdHlwZS5hY2NlcHQgPSBmd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xsO1xuICAgIFMoKTtcbiAgICByZXR1cm4gb3B0aW9ucztcbiAgICBmdW5jdGlvbiBTKCkge1xuICAgICAgICAvLyBldmVyeSBbbl1cbiAgICAgICAgdHRyLmV4cGVjdCgnZXZlcnknKTtcbiAgICAgICAgdmFyIG4gPSB0dHIuYWNjZXB0TnVtYmVyKCk7XG4gICAgICAgIGlmIChuKVxuICAgICAgICAgICAgb3B0aW9ucy5pbnRlcnZhbCA9IHBhcnNlSW50KG5bMF0sIDEwKTtcbiAgICAgICAgaWYgKHR0ci5pc0RvbmUoKSlcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignVW5leHBlY3RlZCBlbmQnKTtcbiAgICAgICAgc3dpdGNoICh0dHIuc3ltYm9sKSB7XG4gICAgICAgICAgICBjYXNlICdkYXkocyknOlxuICAgICAgICAgICAgICAgIG9wdGlvbnMuZnJlcSA9IFJSdWxlLkRBSUxZO1xuICAgICAgICAgICAgICAgIGlmICh0dHIubmV4dFN5bWJvbCgpKSB7XG4gICAgICAgICAgICAgICAgICAgIEFUKCk7XG4gICAgICAgICAgICAgICAgICAgIEYoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAvLyBGSVhNRSBOb3RlOiBldmVyeSAyIHdlZWtkYXlzICE9IGV2ZXJ5IHR3byB3ZWVrcyBvbiB3ZWVrZGF5cy5cbiAgICAgICAgICAgIC8vIERBSUxZIG9uIHdlZWtkYXlzIGlzIG5vdCBhIHZhbGlkIHJ1bGVcbiAgICAgICAgICAgIGNhc2UgJ3dlZWtkYXkocyknOlxuICAgICAgICAgICAgICAgIG9wdGlvbnMuZnJlcSA9IFJSdWxlLldFRUtMWTtcbiAgICAgICAgICAgICAgICBvcHRpb25zLmJ5d2Vla2RheSA9IFtcbiAgICAgICAgICAgICAgICAgICAgUlJ1bGUuTU8sXG4gICAgICAgICAgICAgICAgICAgIFJSdWxlLlRVLFxuICAgICAgICAgICAgICAgICAgICBSUnVsZS5XRSxcbiAgICAgICAgICAgICAgICAgICAgUlJ1bGUuVEgsXG4gICAgICAgICAgICAgICAgICAgIFJSdWxlLkZSXG4gICAgICAgICAgICAgICAgXTtcbiAgICAgICAgICAgICAgICB0dHIubmV4dFN5bWJvbCgpO1xuICAgICAgICAgICAgICAgIEYoKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ3dlZWsocyknOlxuICAgICAgICAgICAgICAgIG9wdGlvbnMuZnJlcSA9IFJSdWxlLldFRUtMWTtcbiAgICAgICAgICAgICAgICBpZiAodHRyLm5leHRTeW1ib2woKSkge1xuICAgICAgICAgICAgICAgICAgICBPTigpO1xuICAgICAgICAgICAgICAgICAgICBGKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnaG91cihzKSc6XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5mcmVxID0gUlJ1bGUuSE9VUkxZO1xuICAgICAgICAgICAgICAgIGlmICh0dHIubmV4dFN5bWJvbCgpKSB7XG4gICAgICAgICAgICAgICAgICAgIE9OKCk7XG4gICAgICAgICAgICAgICAgICAgIEYoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdtaW51dGUocyknOlxuICAgICAgICAgICAgICAgIG9wdGlvbnMuZnJlcSA9IFJSdWxlLk1JTlVURUxZO1xuICAgICAgICAgICAgICAgIGlmICh0dHIubmV4dFN5bWJvbCgpKSB7XG4gICAgICAgICAgICAgICAgICAgIE9OKCk7XG4gICAgICAgICAgICAgICAgICAgIEYoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdtb250aChzKSc6XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5mcmVxID0gUlJ1bGUuTU9OVEhMWTtcbiAgICAgICAgICAgICAgICBpZiAodHRyLm5leHRTeW1ib2woKSkge1xuICAgICAgICAgICAgICAgICAgICBPTigpO1xuICAgICAgICAgICAgICAgICAgICBGKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAneWVhcihzKSc6XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5mcmVxID0gUlJ1bGUuWUVBUkxZO1xuICAgICAgICAgICAgICAgIGlmICh0dHIubmV4dFN5bWJvbCgpKSB7XG4gICAgICAgICAgICAgICAgICAgIE9OKCk7XG4gICAgICAgICAgICAgICAgICAgIEYoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdtb25kYXknOlxuICAgICAgICAgICAgY2FzZSAndHVlc2RheSc6XG4gICAgICAgICAgICBjYXNlICd3ZWRuZXNkYXknOlxuICAgICAgICAgICAgY2FzZSAndGh1cnNkYXknOlxuICAgICAgICAgICAgY2FzZSAnZnJpZGF5JzpcbiAgICAgICAgICAgIGNhc2UgJ3NhdHVyZGF5JzpcbiAgICAgICAgICAgIGNhc2UgJ3N1bmRheSc6XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5mcmVxID0gUlJ1bGUuV0VFS0xZO1xuICAgICAgICAgICAgICAgIHZhciBrZXkgPSB0dHIuc3ltYm9sLnN1YnN0cigwLCAyKS50b1VwcGVyQ2FzZSgpO1xuICAgICAgICAgICAgICAgIG9wdGlvbnMuYnl3ZWVrZGF5ID0gW1JSdWxlW2tleV1dO1xuICAgICAgICAgICAgICAgIGlmICghdHRyLm5leHRTeW1ib2woKSlcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIC8vIFRPRE8gY2hlY2sgZm9yIGR1cGxpY2F0ZXNcbiAgICAgICAgICAgICAgICB3aGlsZSAodHRyLmFjY2VwdCgnY29tbWEnKSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAodHRyLmlzRG9uZSgpKVxuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdVbmV4cGVjdGVkIGVuZCcpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgd2tkID0gZGVjb2RlV0tEKCk7XG4gICAgICAgICAgICAgICAgICAgIGlmICghd2tkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VuZXhwZWN0ZWQgc3ltYm9sICcgKyB0dHIuc3ltYm9sICsgJywgZXhwZWN0ZWQgd2Vla2RheScpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8vIEB0cy1pZ25vcmVcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5ieXdlZWtkYXkucHVzaChSUnVsZVt3a2RdKTtcbiAgICAgICAgICAgICAgICAgICAgdHRyLm5leHRTeW1ib2woKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgTURBWXMoKTtcbiAgICAgICAgICAgICAgICBGKCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdqYW51YXJ5JzpcbiAgICAgICAgICAgIGNhc2UgJ2ZlYnJ1YXJ5JzpcbiAgICAgICAgICAgIGNhc2UgJ21hcmNoJzpcbiAgICAgICAgICAgIGNhc2UgJ2FwcmlsJzpcbiAgICAgICAgICAgIGNhc2UgJ21heSc6XG4gICAgICAgICAgICBjYXNlICdqdW5lJzpcbiAgICAgICAgICAgIGNhc2UgJ2p1bHknOlxuICAgICAgICAgICAgY2FzZSAnYXVndXN0JzpcbiAgICAgICAgICAgIGNhc2UgJ3NlcHRlbWJlcic6XG4gICAgICAgICAgICBjYXNlICdvY3RvYmVyJzpcbiAgICAgICAgICAgIGNhc2UgJ25vdmVtYmVyJzpcbiAgICAgICAgICAgIGNhc2UgJ2RlY2VtYmVyJzpcbiAgICAgICAgICAgICAgICBvcHRpb25zLmZyZXEgPSBSUnVsZS5ZRUFSTFk7XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5ieW1vbnRoID0gW2RlY29kZU0oKV07XG4gICAgICAgICAgICAgICAgaWYgKCF0dHIubmV4dFN5bWJvbCgpKVxuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgLy8gVE9ETyBjaGVjayBmb3IgZHVwbGljYXRlc1xuICAgICAgICAgICAgICAgIHdoaWxlICh0dHIuYWNjZXB0KCdjb21tYScpKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0dHIuaXNEb25lKCkpXG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VuZXhwZWN0ZWQgZW5kJyk7XG4gICAgICAgICAgICAgICAgICAgIHZhciBtID0gZGVjb2RlTSgpO1xuICAgICAgICAgICAgICAgICAgICBpZiAoIW0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignVW5leHBlY3RlZCBzeW1ib2wgJyArIHR0ci5zeW1ib2wgKyAnLCBleHBlY3RlZCBtb250aCcpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuYnltb250aC5wdXNoKG0pO1xuICAgICAgICAgICAgICAgICAgICB0dHIubmV4dFN5bWJvbCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBPTigpO1xuICAgICAgICAgICAgICAgIEYoKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdVbmtub3duIHN5bWJvbCcpO1xuICAgICAgICB9XG4gICAgfVxuICAgIGZ1bmN0aW9uIE9OKCkge1xuICAgICAgICB2YXIgb24gPSB0dHIuYWNjZXB0KCdvbicpO1xuICAgICAgICB2YXIgdGhlID0gdHRyLmFjY2VwdCgndGhlJyk7XG4gICAgICAgIGlmICghKG9uIHx8IHRoZSkpXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIGRvIHtcbiAgICAgICAgICAgIHZhciBudGggPSBkZWNvZGVOVEgoKTtcbiAgICAgICAgICAgIHZhciB3a2QgPSBkZWNvZGVXS0QoKTtcbiAgICAgICAgICAgIHZhciBtID0gZGVjb2RlTSgpO1xuICAgICAgICAgICAgLy8gbnRoIDx3ZWVrZGF5PiB8IDx3ZWVrZGF5PlxuICAgICAgICAgICAgaWYgKG50aCkge1xuICAgICAgICAgICAgICAgIC8vIHR0ci5uZXh0U3ltYm9sKClcbiAgICAgICAgICAgICAgICBpZiAod2tkKSB7XG4gICAgICAgICAgICAgICAgICAgIHR0ci5uZXh0U3ltYm9sKCk7XG4gICAgICAgICAgICAgICAgICAgIGlmICghb3B0aW9ucy5ieXdlZWtkYXkpXG4gICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zLmJ5d2Vla2RheSA9IFtdO1xuICAgICAgICAgICAgICAgICAgICAvLyBAdHMtaWdub3JlXG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuYnl3ZWVrZGF5LnB1c2goUlJ1bGVbd2tkXS5udGgobnRoKSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIW9wdGlvbnMuYnltb250aGRheSlcbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuYnltb250aGRheSA9IFtdO1xuICAgICAgICAgICAgICAgICAgICAvLyBAdHMtaWdub3JlXG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuYnltb250aGRheS5wdXNoKG50aCk7XG4gICAgICAgICAgICAgICAgICAgIHR0ci5hY2NlcHQoJ2RheShzKScpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyA8d2Vla2RheT5cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKHdrZCkge1xuICAgICAgICAgICAgICAgIHR0ci5uZXh0U3ltYm9sKCk7XG4gICAgICAgICAgICAgICAgaWYgKCFvcHRpb25zLmJ5d2Vla2RheSlcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5ieXdlZWtkYXkgPSBbXTtcbiAgICAgICAgICAgICAgICAvLyBAdHMtaWdub3JlXG4gICAgICAgICAgICAgICAgb3B0aW9ucy5ieXdlZWtkYXkucHVzaChSUnVsZVt3a2RdKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKHR0ci5zeW1ib2wgPT09ICd3ZWVrZGF5KHMpJykge1xuICAgICAgICAgICAgICAgIHR0ci5uZXh0U3ltYm9sKCk7XG4gICAgICAgICAgICAgICAgaWYgKCFvcHRpb25zLmJ5d2Vla2RheSkge1xuICAgICAgICAgICAgICAgICAgICBvcHRpb25zLmJ5d2Vla2RheSA9IFtcbiAgICAgICAgICAgICAgICAgICAgICAgIFJSdWxlLk1PLFxuICAgICAgICAgICAgICAgICAgICAgICAgUlJ1bGUuVFUsXG4gICAgICAgICAgICAgICAgICAgICAgICBSUnVsZS5XRSxcbiAgICAgICAgICAgICAgICAgICAgICAgIFJSdWxlLlRILFxuICAgICAgICAgICAgICAgICAgICAgICAgUlJ1bGUuRlJcbiAgICAgICAgICAgICAgICAgICAgXTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmICh0dHIuc3ltYm9sID09PSAnd2VlayhzKScpIHtcbiAgICAgICAgICAgICAgICB0dHIubmV4dFN5bWJvbCgpO1xuICAgICAgICAgICAgICAgIHZhciBuID0gdHRyLmFjY2VwdE51bWJlcigpO1xuICAgICAgICAgICAgICAgIGlmICghbikge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VuZXhwZWN0ZWQgc3ltYm9sICcgKyB0dHIuc3ltYm9sICsgJywgZXhwZWN0ZWQgd2VlayBudW1iZXInKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5ieXdlZWtubyA9IFtwYXJzZUludChuWzBdLCAxMCldO1xuICAgICAgICAgICAgICAgIHdoaWxlICh0dHIuYWNjZXB0KCdjb21tYScpKSB7XG4gICAgICAgICAgICAgICAgICAgIG4gPSB0dHIuYWNjZXB0TnVtYmVyKCk7XG4gICAgICAgICAgICAgICAgICAgIGlmICghbikge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdVbmV4cGVjdGVkIHN5bWJvbCAnICsgdHRyLnN5bWJvbCArICc7IGV4cGVjdGVkIG1vbnRoZGF5Jyk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5ieXdlZWtuby5wdXNoKHBhcnNlSW50KG5bMF0sIDEwKSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAobSkge1xuICAgICAgICAgICAgICAgIHR0ci5uZXh0U3ltYm9sKCk7XG4gICAgICAgICAgICAgICAgaWYgKCFvcHRpb25zLmJ5bW9udGgpXG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuYnltb250aCA9IFtdO1xuICAgICAgICAgICAgICAgIC8vIEB0cy1pZ25vcmVcbiAgICAgICAgICAgICAgICBvcHRpb25zLmJ5bW9udGgucHVzaChtKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSB3aGlsZSAodHRyLmFjY2VwdCgnY29tbWEnKSB8fCB0dHIuYWNjZXB0KCd0aGUnKSB8fCB0dHIuYWNjZXB0KCdvbicpKTtcbiAgICB9XG4gICAgZnVuY3Rpb24gQVQoKSB7XG4gICAgICAgIHZhciBhdCA9IHR0ci5hY2NlcHQoJ2F0Jyk7XG4gICAgICAgIGlmICghYXQpXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIGRvIHtcbiAgICAgICAgICAgIHZhciBuID0gdHRyLmFjY2VwdE51bWJlcigpO1xuICAgICAgICAgICAgaWYgKCFuKSB7XG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdVbmV4cGVjdGVkIHN5bWJvbCAnICsgdHRyLnN5bWJvbCArICcsIGV4cGVjdGVkIGhvdXInKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIG9wdGlvbnMuYnlob3VyID0gW3BhcnNlSW50KG5bMF0sIDEwKV07XG4gICAgICAgICAgICB3aGlsZSAodHRyLmFjY2VwdCgnY29tbWEnKSkge1xuICAgICAgICAgICAgICAgIG4gPSB0dHIuYWNjZXB0TnVtYmVyKCk7XG4gICAgICAgICAgICAgICAgaWYgKCFuKSB7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignVW5leHBlY3RlZCBzeW1ib2wgJyArIHR0ci5zeW1ib2wgKyAnOyBleHBlY3RlZCBob3VyJyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIG9wdGlvbnMuYnlob3VyLnB1c2gocGFyc2VJbnQoblswXSwgMTApKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSB3aGlsZSAodHRyLmFjY2VwdCgnY29tbWEnKSB8fCB0dHIuYWNjZXB0KCdhdCcpKTtcbiAgICB9XG4gICAgZnVuY3Rpb24gZGVjb2RlTSgpIHtcbiAgICAgICAgc3dpdGNoICh0dHIuc3ltYm9sKSB7XG4gICAgICAgICAgICBjYXNlICdqYW51YXJ5JzpcbiAgICAgICAgICAgICAgICByZXR1cm4gMTtcbiAgICAgICAgICAgIGNhc2UgJ2ZlYnJ1YXJ5JzpcbiAgICAgICAgICAgICAgICByZXR1cm4gMjtcbiAgICAgICAgICAgIGNhc2UgJ21hcmNoJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gMztcbiAgICAgICAgICAgIGNhc2UgJ2FwcmlsJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gNDtcbiAgICAgICAgICAgIGNhc2UgJ21heSc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIDU7XG4gICAgICAgICAgICBjYXNlICdqdW5lJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gNjtcbiAgICAgICAgICAgIGNhc2UgJ2p1bHknOlxuICAgICAgICAgICAgICAgIHJldHVybiA3O1xuICAgICAgICAgICAgY2FzZSAnYXVndXN0JzpcbiAgICAgICAgICAgICAgICByZXR1cm4gODtcbiAgICAgICAgICAgIGNhc2UgJ3NlcHRlbWJlcic6XG4gICAgICAgICAgICAgICAgcmV0dXJuIDk7XG4gICAgICAgICAgICBjYXNlICdvY3RvYmVyJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gMTA7XG4gICAgICAgICAgICBjYXNlICdub3ZlbWJlcic6XG4gICAgICAgICAgICAgICAgcmV0dXJuIDExO1xuICAgICAgICAgICAgY2FzZSAnZGVjZW1iZXInOlxuICAgICAgICAgICAgICAgIHJldHVybiAxMjtcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG4gICAgfVxuICAgIGZ1bmN0aW9uIGRlY29kZVdLRCgpIHtcbiAgICAgICAgc3dpdGNoICh0dHIuc3ltYm9sKSB7XG4gICAgICAgICAgICBjYXNlICdtb25kYXknOlxuICAgICAgICAgICAgY2FzZSAndHVlc2RheSc6XG4gICAgICAgICAgICBjYXNlICd3ZWRuZXNkYXknOlxuICAgICAgICAgICAgY2FzZSAndGh1cnNkYXknOlxuICAgICAgICAgICAgY2FzZSAnZnJpZGF5JzpcbiAgICAgICAgICAgIGNhc2UgJ3NhdHVyZGF5JzpcbiAgICAgICAgICAgIGNhc2UgJ3N1bmRheSc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIHR0ci5zeW1ib2wuc3Vic3RyKDAsIDIpLnRvVXBwZXJDYXNlKCk7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuICAgIH1cbiAgICBmdW5jdGlvbiBkZWNvZGVOVEgoKSB7XG4gICAgICAgIHN3aXRjaCAodHRyLnN5bWJvbCkge1xuICAgICAgICAgICAgY2FzZSAnbGFzdCc6XG4gICAgICAgICAgICAgICAgdHRyLm5leHRTeW1ib2woKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gLTE7XG4gICAgICAgICAgICBjYXNlICdmaXJzdCc6XG4gICAgICAgICAgICAgICAgdHRyLm5leHRTeW1ib2woKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gMTtcbiAgICAgICAgICAgIGNhc2UgJ3NlY29uZCc6XG4gICAgICAgICAgICAgICAgdHRyLm5leHRTeW1ib2woKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHRyLmFjY2VwdCgnbGFzdCcpID8gLTIgOiAyO1xuICAgICAgICAgICAgY2FzZSAndGhpcmQnOlxuICAgICAgICAgICAgICAgIHR0ci5uZXh0U3ltYm9sKCk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHR0ci5hY2NlcHQoJ2xhc3QnKSA/IC0zIDogMztcbiAgICAgICAgICAgIGNhc2UgJ250aCc6XG4gICAgICAgICAgICAgICAgdmFyIHYgPSBwYXJzZUludCh0dHIudmFsdWVbMV0sIDEwKTtcbiAgICAgICAgICAgICAgICBpZiAodiA8IC0zNjYgfHwgdiA+IDM2NilcbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdOdGggb3V0IG9mIHJhbmdlOiAnICsgdik7XG4gICAgICAgICAgICAgICAgdHRyLm5leHRTeW1ib2woKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHRyLmFjY2VwdCgnbGFzdCcpID8gLXYgOiB2O1xuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICB9XG4gICAgZnVuY3Rpb24gTURBWXMoKSB7XG4gICAgICAgIHR0ci5hY2NlcHQoJ29uJyk7XG4gICAgICAgIHR0ci5hY2NlcHQoJ3RoZScpO1xuICAgICAgICB2YXIgbnRoID0gZGVjb2RlTlRIKCk7XG4gICAgICAgIGlmICghbnRoKVxuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICBvcHRpb25zLmJ5bW9udGhkYXkgPSBbbnRoXTtcbiAgICAgICAgdHRyLm5leHRTeW1ib2woKTtcbiAgICAgICAgd2hpbGUgKHR0ci5hY2NlcHQoJ2NvbW1hJykpIHtcbiAgICAgICAgICAgIG50aCA9IGRlY29kZU5USCgpO1xuICAgICAgICAgICAgaWYgKCFudGgpIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VuZXhwZWN0ZWQgc3ltYm9sICcgKyB0dHIuc3ltYm9sICsgJzsgZXhwZWN0ZWQgbW9udGhkYXknKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIG9wdGlvbnMuYnltb250aGRheS5wdXNoKG50aCk7XG4gICAgICAgICAgICB0dHIubmV4dFN5bWJvbCgpO1xuICAgICAgICB9XG4gICAgfVxuICAgIGZ1bmN0aW9uIEYoKSB7XG4gICAgICAgIGlmICh0dHIuc3ltYm9sID09PSAndW50aWwnKSB7XG4gICAgICAgICAgICB2YXIgZGF0ZSA9IERhdGUucGFyc2UodHRyLnRleHQpO1xuICAgICAgICAgICAgaWYgKCFkYXRlKVxuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignQ2Fubm90IHBhcnNlIHVudGlsIGRhdGU6JyArIHR0ci50ZXh0KTtcbiAgICAgICAgICAgIG9wdGlvbnMudW50aWwgPSBuZXcgRGF0ZShkYXRlKTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmICh0dHIuYWNjZXB0KCdmb3InKSkge1xuICAgICAgICAgICAgb3B0aW9ucy5jb3VudCA9IHB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ZXh0LCBsYW5ndWFnZSkge1xuICAgIGlmIChsYW5ndWFnZSA9PT0gdm9pZCAwKSB7IGxhbmd1YWdlID0gRU5HTElTSDsgfVxuICAgIHJldHVybiBuZXcgUlJ1bGUocGFyc2VUZXh0KHRleHQsIGxhbmd1YWdlKSB8fCB1bmRlZmluZWQpO1xufTtcbnZhciBjb21tb24gPSBbXG4gICAgJ2NvdW50JyxcbiAgICAndW50aWwnLFxuICAgICdpbnRlcnZhbCcsXG4gICAgJ2J5d2Vla2RheScsXG4gICAgJ2J5bW9udGhkYXknLFxuICAgICdieW1vbnRoJ1xuXTtcblRvVGV4dC5JTVBMRU1FTlRFRCA9IFtdO1xuVG9UZXh0LklNUExFTUVOVEVEW0ZyZXF1ZW5jeS5IT1VSTFldID0gY29tbW9uO1xuVG9UZXh0LklNUExFTUVOVEVEW0ZyZXF1ZW5jeS5NSU5VVEVMWV0gPSBjb21tb247XG5Ub1RleHQuSU1QTEVNRU5URURbRnJlcXVlbmN5LkRBSUxZXSA9IFsnYnlob3VyJ10uY29uY2F0KGNvbW1vbik7XG5Ub1RleHQuSU1QTEVNRU5URURbRnJlcXVlbmN5LldFRUtMWV0gPSBjb21tb247XG5Ub1RleHQuSU1QTEVNRU5URURbRnJlcXVlbmN5Lk1PTlRITFldID0gY29tbW9uO1xuVG9UZXh0LklNUExFTUVOVEVEW0ZyZXF1ZW5jeS5ZRUFSTFldID0gWydieXdlZWtubycsICdieXllYXJkYXknXS5jb25jYXQoY29tbW9uKTtcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBFeHBvcnRcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG52YXIgdG9UZXh0ID0gZnVuY3Rpb24gKHJydWxlLCBnZXR0ZXh0LCBsYW5ndWFnZSwgZGF0ZU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1lLnByb3RvdHlwZS5hZGRNb250aHMgPSBmdW5jdGlvbiAobW9udGhzKSB7XG4gICAgICAgIHRoaXMubW9udGggKz0gbW9udGhzO1xuICAgICAgICBpZiAodGhpcy5tb250aCA+IDEyKSB7XG4gICAgICAgICAgICB2YXIgeWVhckRpdiA9IE1hdGguZmxvb3IodGhpcy5tb250aCAvIDEyKTtcbiAgICAgICAgICAgIHZhciBtb250aE1vZCA9IHB5bW9kKHRoaXMubW9udGgsIDEyKTtcbiAgICAgICAgICAgIHRoaXMubW9udGggPSBtb250aE1vZDtcbiAgICAgICAgICAgIHRoaXMueWVhciArPSB5ZWFyRGl2O1xuICAgICAgICAgICAgaWYgKHRoaXMubW9udGggPT09IDApIHtcbiAgICAgICAgICAgICAgICB0aGlzLm1vbnRoID0gMTI7XG4gICAgICAgICAgICAgICAgLS10aGlzLnllYXI7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xuICAgIERhdGVUaW1lLnByb3RvdHlwZS5hZGRXZWVrbHkgPSBmdW5jdGlvbiAoZGF5cywgd2tzdCkge1xuICAgICAgICBpZiAod2tzdCA+IHRoaXMuZ2V0V2Vla2RheSgpKSB7XG4gICAgICAgICAgICB0aGlzLmRheSArPSAtKHRoaXMuZ2V0V2Vla2RheSgpICsgMSArICg2IC0gd2tzdCkpICsgZGF5cyAqIDc7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICB0aGlzLmRheSArPSAtKHRoaXMuZ2V0V2Vla2RheSgpIC0gd2tzdCkgKyBkYXlzICogNztcbiAgICAgICAgfVxuICAgICAgICB0aGlzLmZpeERheSgpO1xuICAgIH07XG4gICAgRGF0ZVRpbWUucHJvdG90eXBlLmFkZERhaWx5ID0gZnVuY3Rpb24gKGRheXMpIHtcbiAgICAgICAgdGhpcy5kYXkgKz0gZGF5cztcbiAgICAgICAgdGhpcy5maXhEYXkoKTtcbiAgICB9O1xuICAgIERhdGVUaW1lLnByb3RvdHlwZS5hZGRIb3VycyA9IGZ1bmN0aW9uIChob3VycywgZmlsdGVyZWQsIGJ5aG91cikge1xuICAgICAgICBpZiAoZmlsdGVyZWQpIHtcbiAgICAgICAgICAgIC8vIEp1bXAgdG8gb25lIGl0ZXJhdGlvbiBiZWZvcmUgbmV4dCBkYXlcbiAgICAgICAgICAgIHRoaXMuaG91ciArPSBNYXRoLmZsb29yKCgyMyAtIHRoaXMuaG91cikgLyBob3VycykgKiBob3VycztcbiAgICAgICAgfVxuICAgICAgICB3aGlsZSAodHJ1ZSkge1xuICAgICAgICAgICAgdGhpcy5ob3VyICs9IGhvdXJzO1xuICAgICAgICAgICAgdmFyIF9hID0gZGl2bW9kKHRoaXMuaG91ciwgMjQpLCBkYXlEaXYgPSBfYS5kaXYsIGhvdXJNb2QgPSBfYS5tb2Q7XG4gICAgICAgICAgICBpZiAoZGF5RGl2KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5ob3VyID0gaG91ck1vZDtcbiAgICAgICAgICAgICAgICB0aGlzLmFkZERhaWx5KGRheURpdik7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoZW1wdHkoYnlob3VyKSB8fCBpbmNsdWRlcyhieWhvdXIsIHRoaXMuaG91cikpXG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICB9O1xuICAgIERhdGVUaW1lLnByb3RvdHlwZS5hZGRNaW51dGVzID0gZnVuY3Rpb24gKG1pbnV0ZXMsIGZpbHRlcmVkLCBieWhvdXIsIGJ5bWludXRlKSB7XG4gICAgICAgIGlmIChmaWx0ZXJlZCkge1xuICAgICAgICAgICAgLy8gSnVtcCB0byBvbmUgaXRlcmF0aW9uIGJlZm9yZSBuZXh0IGRheVxuICAgICAgICAgICAgdGhpcy5taW51dGUgKz1cbiAgICAgICAgICAgICAgICBNYXRoLmZsb29yKCgxNDM5IC0gKHRoaXMuaG91ciAqIDYwICsgdGhpcy5taW51dGUpKSAvIG1pbnV0ZXMpICogbWludXRlcztcbiAgICAgICAgfVxuICAgICAgICB3aGlsZSAodHJ1ZSkge1xuICAgICAgICAgICAgdGhpcy5taW51dGUgKz0gbWludXRlcztcbiAgICAgICAgICAgIHZhciBfYSA9IGRpdm1vZCh0aGlzLm1pbnV0ZSwgNjApLCBob3VyRGl2ID0gX2EuZGl2LCBtaW51dGVNb2QgPSBfYS5tb2Q7XG4gICAgICAgICAgICBpZiAoaG91ckRpdikge1xuICAgICAgICAgICAgICAgIHRoaXMubWludXRlID0gbWludXRlTW9kO1xuICAgICAgICAgICAgICAgIHRoaXMuYWRkSG91cnMoaG91ckRpdiwgZmFsc2UsIGJ5aG91cik7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoKGVtcHR5KGJ5aG91cikgfHwgaW5jbHVkZXMoYnlob3VyLCB0aGlzLmhvdXIpKSAmJlxuICAgICAgICAgICAgICAgIChlbXB0eShieW1pbnV0ZSkgfHwgaW5jbHVkZXMoYnltaW51dGUsIHRoaXMubWludXRlKSkpIHtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH07XG4gICAgRGF0ZVRpbWUucHJvdG90eXBlLmFkZFNlY29uZHMgPSBmdW5jdGlvbiAoc2Vjb25kcywgZmlsdGVyZWQsIGJ5aG91ciwgYnltaW51dGUsIGJ5c2Vjb25kKSB7XG4gICAgICAgIGlmIChmaWx0ZXJlZCkge1xuICAgICAgICAgICAgLy8gSnVtcCB0byBvbmUgaXRlcmF0aW9uIGJlZm9yZSBuZXh0IGRheVxuICAgICAgICAgICAgdGhpcy5zZWNvbmQgKz1cbiAgICAgICAgICAgICAgICBNYXRoLmZsb29yKCg4NjM5OSAtICh0aGlzLmhvdXIgKiAzNjAwICsgdGhpcy5taW51dGUgKiA2MCArIHRoaXMuc2Vjb25kKSkgLyBzZWNvbmRzKSAqIHNlY29uZHM7XG4gICAgICAgIH1cbiAgICAgICAgd2hpbGUgKHRydWUpIHtcbiAgICAgICAgICAgIHRoaXMuc2Vjb25kICs9IHNlY29uZHM7XG4gICAgICAgICAgICB2YXIgX2EgPSBkaXZtb2QodGhpcy5zZWNvbmQsIDYwKSwgbWludXRlRGl2ID0gX2EuZGl2LCBzZWNvbmRNb2QgPSBfYS5tb2Q7XG4gICAgICAgICAgICBpZiAobWludXRlRGl2KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5zZWNvbmQgPSBzZWNvbmRNb2Q7XG4gICAgICAgICAgICAgICAgdGhpcy5hZGRNaW51dGVzKG1pbnV0ZURpdiwgZmFsc2UsIGJ5aG91ciwgYnltaW51dGUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKChlbXB0eShieWhvdXIpIHx8IGluY2x1ZGVzKGJ5aG91ciwgdGhpcy5ob3VyKSkgJiZcbiAgICAgICAgICAgICAgICAoZW1wdHkoYnltaW51dGUpIHx8IGluY2x1ZGVzKGJ5bWludXRlLCB0aGlzLm1pbnV0ZSkpICYmXG4gICAgICAgICAgICAgICAgKGVtcHR5KGJ5c2Vjb25kKSB8fCBpbmNsdWRlcyhieXNlY29uZCwgdGhpcy5zZWNvbmQpKSkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfTtcbiAgICBEYXRlVGltZS5wcm90b3R5cGUuZml4RGF5ID0gZnVuY3Rpb24gKCkge1xuICAgICAgICBpZiAodGhpcy5kYXkgPD0gMjgpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICB2YXIgZGF5c2lubW9udGggPSBkYXRldXRpbC5tb250aFJhbmdlKHRoaXMueWVhciwgdGhpcy5tb250aCAtIDEpWzFdO1xuICAgICAgICBpZiAodGhpcy5kYXkgPD0gZGF5c2lubW9udGgpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICB3aGlsZSAodGhpcy5kYXkgPiBkYXlzaW5tb250aCkge1xuICAgICAgICAgICAgdGhpcy5kYXkgLT0gZGF5c2lubW9udGg7XG4gICAgICAgICAgICArK3RoaXMubW9udGg7XG4gICAgICAgICAgICBpZiAodGhpcy5tb250aCA9PT0gMTMpIHtcbiAgICAgICAgICAgICAgICB0aGlzLm1vbnRoID0gMTtcbiAgICAgICAgICAgICAgICArK3RoaXMueWVhcjtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy55ZWFyID4gZGF0ZXV0aWwuTUFYWUVBUikge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGF5c2lubW9udGggPSBkYXRldXRpbC5tb250aFJhbmdlKHRoaXMueWVhciwgdGhpcy5tb250aCAtIDEpWzFdO1xuICAgICAgICB9XG4gICAgfTtcbiAgICBEYXRlVGltZS5wcm90b3R5cGUuYWRkID0gZnVuY3Rpb24gKG9wdGlvbnMsIGZpbHRlcmVkKSB7XG4gICAgICAgIHZhciBmcmVxID0gb3B0aW9ucy5mcmVxLCBpbnRlcnZhbCA9IG9wdGlvbnMuaW50ZXJ2YWwsIHdrc3QgPSBvcHRpb25zLndrc3QsIGJ5aG91ciA9IG9wdGlvbnMuYnlob3VyLCBieW1pbnV0ZSA9IG9wdGlvbnMuYnltaW51dGUsIGJ5c2Vjb25kID0gb3B0aW9ucy5ieXNlY29uZDtcbiAgICAgICAgc3dpdGNoIChmcmVxKSB7XG4gICAgICAgICAgICBjYXNlIEZyZXF1ZW5jeS5ZRUFSTFk6IHJldHVybiB0aGlzLmFkZFllYXJzKGludGVydmFsKTtcbiAgICAgICAgICAgIGNhc2UgRnJlcXVlbmN5Lk1PTlRITFk6IHJldHVybiB0aGlzLmFkZE1vbnRocyhpbnRlcnZhbCk7XG4gICAgICAgICAgICBjYXNlIEZyZXF1ZW5jeS5XRUVLTFk6IHJldHVybiB0aGlzLmFkZFdlZWtseShpbnRlcnZhbCwgd2tzdCk7XG4gICAgICAgICAgICBjYXNlIEZyZ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G4gICAgICAgIH1cbiAgICB9XG4gICAgaWYgKCEoQm9vbGVhbihvcHRzLmJ5d2Vla25vKSB8fFxuICAgICAgICBub3RFbXB0eShvcHRzLmJ5d2Vla25vKSB8fFxuICAgICAgICBub3RFbXB0eShvcHRzLmJ5eWVhcmRheSkgfHxcbiAgICAgICAgQm9vbGVhbihvcHRzLmJ5bW9udGhkYXkpIHx8XG4gICAgICAgIG5vdEVtcHR5KG9wdHMuYnltb250aGRheSkgfHxcbiAgICAgICAgaXNQcmVzZW50KG9wdHMuYnl3ZWVrZGF5KSB8fFxuICAgICAgICBpc1ByZXNlbnQob3B0cy5ieWVhc3RlcikpKSB7XG4gICAgICAgIHN3aXRjaCAob3B0cy5mcmVxKSB7XG4gICAgICAgICAgICBjYXNlIFJSdWxlLllFQVJMWTpcbiAgICAgICAgICAgICAgICBpZiAoIW9wdHMuYnltb250aClcbiAgICAgICAgICAgICAgICAgICAgb3B0cy5ieW1vbnRoID0gb3B0cy5kdHN0YXJ0LmdldFVUQ01vbnRoKCkgKyAxO1xuICAgICAgICAgICAgICAgIG9wdHMuYnltb250aGRheSA9IG9wdHMuZHRzdGFydC5nZXRVVENEYXRlKCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIFJSdWxlLk1PTlRITFk6XG4gICAgICAgICAgICAgICAgb3B0cy5ieW1vbnRoZGF5ID0gb3B0cy5kdHN0YXJ0LmdldFVUQ0RhdGUoKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgUlJ1bGUuV0VFS0xZOlxuICAgICAgICAgICAgICAgIG9wdHMuYnl3ZWVrZGF5ID0gW2RhdGV1dGlsLmdldFdlZWtkYXkob3B0cy5kdHN0YXJ0KV07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICB9XG4gICAgLy8gYnltb250aFxuICAgIGlmIChpc1ByZXNlbnQob3B0cy5ieW1vbnRoKSAmJiAhaXNBcnJheShvcHRzLmJ5bW9udGgpKSB7XG4gICAgICAgIG9wdHMuYnltb250aCA9IFtvcHRzLmJ5bW9udGhdO1xuICAgIH1cbiAgICAvLyBieXllYXJkYXlcbiAgICBpZiAoaXNQcmVzZW50KG9wdHMuYnl5ZWFyZGF5KSAmJlxuICAgICAgICAhaXNBcnJheShvcHRzLmJ5eWVhcmRheSkgJiZcbiAgICAgICAgaXNOdW1iZXIob3B0cy5ieXllYXJkYXkpKSB7XG4gICAgICAgIG9wdHMuYnl5ZWFyZGF5ID0gW29wdHMuYnl5ZWFyZGF5XTtcbiAgICB9XG4gICAgLy8gYnltb250aGRheVxuICAgIGlmICghaXNQcmVzZW50KG9wdHMuYnltb250aGRheSkpIHtcbiAgICAgICAgb3B0cy5ieW1vbnRoZGF5ID0gW107XG4gICAgICAgIG9wdHMuYnlubW9udGhkYXkgPSBbXTtcbiAgICB9XG4gICAgZWxzZSBpZiAoaXNBcnJheShvcHRzLmJ5bW9udGhkYXkpKSB7XG4gICAgICAgIHZhciBieW1vbnRoZGF5ID0gW107XG4gICAgICAgIHZhciBieW5tb250aGRheSA9IFtdO1xuICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IG9wdHMuYnltb250aGRheS5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgdmFyIHYgPSBvcHRzLmJ5bW9udGhkYXlbaV07XG4gICAgICAgICAgICBpZiAodiA+IDApIHtcbiAgICAgICAgICAgICAgICBieW1vbnRoZGF5LnB1c2godik7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmICh2IDwgMCkge1xuICAgICAgICAgICAgICAgIGJ5bm1vbnRoZGF5LnB1c2godik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgb3B0cy5ieW1vbnRoZGF5ID0gYnltb250aGRheTtcbiAgICAgICAgb3B0cy5ieW5tb250aGRheSA9IGJ5bm1vbnRoZGF5O1xuICAgIH1cbiAgICBlbHNlIGlmIChvcHRzLmJ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hMWSkge1xuICAgICAgICAgICAgb3B0cy5ieXdlZWtkYXkgPSBbb3B0cy5ieXdlZWtkYXkud2Vla2RheV07XG4gICAgICAgICAgICBvcHRzLmJ5bndlZWtkYXkgPSBudWxsO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgb3B0cy5ieW53ZWVrZGF5ID0gW1tvcHRzLmJ5d2Vla2RheS53ZWVrZGF5LCBvcHRzLmJ5d2Vla2RheS5uXV07XG4gICAgICAgICAgICBvcHRzLmJ5d2Vla2RheSA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9XG4gICAgZWxzZSB7XG4gICAgICAgIHZhciBieXdlZWtkYXkgPSBbXTtcbiAgICAgICAgdmFyIGJ5bndlZWtkYXkgPSBbXTtcbiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBvcHRzLmJ5d2Vla2RheS5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgdmFyIHdkYXkgPSBvcHRzLmJ5d2Vla2RheVtpXTtcbiAgICAgICAgICAgIGlmIChpc051bWJlcih3ZGF5KSkge1xuICAgICAgICAgICAgICAgIGJ5d2Vla2RheS5wdXNoKHdkYXkpO1xuICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAoaXNXZWVrZGF5U3RyKHdkYXkpKSB7XG4gICAgICAgICAgICAgICAgYnl3ZWVrZGF5LnB1c2goV2Vla2RheS5mcm9tU3RyKHdkYXkpLndlZWtkYXkpO1xuICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKCF3ZGF5Lm4gfHwgb3B0cy5mcmVxID4gUlJ1bGUuTU9OVEhMWSkge1xuICAgICAgICAgICAgICAgIGJ5d2Vla2RheS5wdXNoKHdkYXkud2Vla2RheSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAg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XG4gICAgICAgIHN3aXRjaCAoa2V5LnRvVXBwZXJDYXNlKCkpIHtcbiAgICAgICAgICAgIGNhc2UgJ0ZSRVEnOlxuICAgICAgICAgICAgICAgIG9wdGlvbnMuZnJlcSA9IEZyZXF1ZW5jeVt2YWx1ZS50b1VwcGVyQ2FzZSgpXTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ1dLU1QnOlxuICAgICAgICAgICAgICAgIG9wdGlvbnMud2tzdCA9IERheXNbdmFsdWUudG9VcHBlckNhc2UoKV07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdDT1VOVCc6XG4gICAgICAgICAgICBjYXNlICdJTlRFUlZBTCc6XG4gICAgICAgICAgICBjYXNlICdCWVNFVFBPUyc6XG4gICAgICAgICAgICBjYXNlICdCWU1PTlRIJzpcbiAgICAgICAgICAgIGNhc2UgJ0JZTU9OVEhEQVknOlxuICAgICAgICAgICAgY2FzZSAnQllZRUFSREFZJzpcbiAgICAgICAgICAgIGNhc2UgJ0JZV0VFS05PJzpcbiAgICAgICAgICAgIGNhc2UgJ0JZSE9VUic6XG4gICAgICAgICAgICBjYXNlICdCWU1JTlVURSc6XG4gICAgICAgICAgICBjYXNlICdCWVNFQ09ORCc6XG4gICAgICAgICAgICAgICAgdmFyIG51bSA9IHBhcnNlTnVtYmVyKHZhbHVlKTtcbiAgICAgICAgICAgICAgICB2YXIgb3B0aW9uS2V5ID0ga2V5LnRvTG93ZXJDYXNlKCk7XG4gICAgICAgICAgICAgICAgLy8gQHRzLWlnbm9yZVxuICAgICAgICAgICAgICAgIG9wdGlvbnNbb3B0aW9uS2V5XSA9IG51bTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ0JZV0VFS0RBWSc6XG4gICAgICAgICAgICBjYXNlICdCWURBWSc6XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5ieXdlZWtkYXkgPSBwYXJzZVdlZWtkYXkodmFsdWUpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnRFRTVEFSVCc6XG4gICAgICAgICAgICBjYXNlICdUWklEJzpcbiAgICAgICAgICAgICAgICAvLyBmb3IgYmFja3dhcmRzIGNvbXBhdGliaWxpdHlcbiAgICAgICAgICAgICAgICB2YXIgZHRzdGFydCA9IHBhcnNlRHRzdGFydChsaW5lKTtcbiAgICAgICAgICAgICAgICBvcHRpb25zLnR6aWQgPSBkdHN0YXJ0LnR6aWQ7XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5kdHN0YXJ0ID0gZHRzdGFydC5kdHN0YXJ0O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnVU5USUwnOlxuICAgICAgICAgICAgICAgIG9wdGlvbnMudW50aWwgPSBkYXRldXRpbC51bnRpbFN0cmluZ1RvRGF0ZSh2YWx1ZSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdCWUVBU1RFUic6XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5ieWVhc3RlciA9IE51bWJlcih2YWx1ZSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIlVua25vd24gUlJVTEUgcHJvcGVydHkgJ1wiICsga2V5ICsgXCInXCIpO1xuICAgICAgICB9XG4gICAgfSk7XG4gICAgcmV0dXJuIG9wdGlvbnM7XG59XG5mdW5jdGlvbiBwYXJzZU51bWJlcih2YWx1ZSkge1xuICAgIGlmICh2YWx1ZS5pbmRleE9mKCcsJykgIT09IC0xKSB7XG4gICAgICAgIHZhciB2YWx1ZXMgPSB2YWx1ZS5zcGxpdCgnLCcpO1xuICAgICAgICByZXR1cm4gdmFsdWVzLm1hcChwYXJzZUluZGl2aWR1YWxOdW1iZXIpO1xuICAgIH1cbiAgICByZX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AgICAgICAgY3VycmVudEZ1bGwgPSBcIlwiLFxuICAgICAgICBicmFja2V0ZWQgPSBmYWxzZTtcbiAgICB2YXIgc3BsaXRzID0gW107XG5cbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGZtdC5sZW5ndGg7IGkrKykge1xuICAgICAgdmFyIGMgPSBmbXQuY2hhckF0KGkpO1xuXG4gICAgICBpZiAoYyA9PT0gXCInXCIpIHtcbiAgICAgICAgaWYgKGN1cnJlbnRGdWxsLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICBzcGxpdHMucHVzaCh7XG4gICAgICAgICAgICBsaXRlcmFsOiBicmFja2V0ZWQsXG4gICAgICAgICAgICB2YWw6IGN1cnJlbnRGdWxsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBjdXJyZW50ID0gbnVsbDtcbiAgICAgICAgY3VycmVudEZ1bGwgPSBcIlwiO1xuICAgICAgICBicmFja2V0ZWQgPSAhYnJhY2tldGVkO1xuICAgICAgfSBlbHNlIGlmIChicmFja2V0ZWQpIHtcbiAgICAgICAgY3VycmVudEZ1bGwgKz0gYztcbiAgICAgIH0gZWxzZSBpZiAoYyA9PT0gY3VycmVudCkge1xuICAgICAgICBjdXJyZW50RnVsbCArPSBjO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgaWYgKGN1cnJlbnRGdWxsLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICBzcGxpdHMucHVzaCh7XG4gICAgICAgICAgICBsaXRlcmFsOiBmYWxzZSxcbiAgICAgICAgICAgIHZhbDogY3VycmVudEZ1bGxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGN1cnJlbnRGdWxsID0gYztcbiAgICAgICAgY3VycmVudCA9IGM7XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKGN1cnJlbnRGdWxsLmxlbmd0aCA+IDApIHtcbiAgICAgIHNwbGl0cy5wdXNoKHtcbiAgICAgICAgbGl0ZXJhbDogYn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lc1xuXG4gICAgICAgIGNhc2UgXCJtXCI6XG4gICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5taW51dGUpO1xuXG4gICAgICAgIGNhc2UgXCJtbVwiOlxuICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQubWludXRlLCAyKTtcbiAgICAgICAgLy8gaG91cnNcblxuICAgICAgICBjYXNlIFwiaFwiOlxuICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQuaG91ciAlIDEyID09PSAwID8gMTIgOiBkdC5ob3VyICUgMTIpO1xuXG4gICAgICAgIGNhc2UgXCJoaFwiOlxuICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQuaG91ciAlIDEyID09PSAwID8gMTIgOiBkdC5ob3VyICUgMTIsIDIpO1xuXG4gICAgICAgIGNhc2UgXCJIXCI6XG4gICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5ob3VyKTtcblxuICAgICAgICBjYXNlIFwiSEhcIjpcbiAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LmhvdXIsIDIpO1xuICAgICAgICAvLyBvZmZzZXRcblxuICAgICAgICBjYXNlIFwiWlwiOlxuICAgICAgICAgIC8vIGxpa2UgKzZcbiAgICAgICAgICByZXR1cm4gZm9ybWF0T2Zmc2V0KHtcbiAgICAgICAgICAgIGZvcm1hdDogXCJuYXJyb3dcIixcbiAgICAgICAgICAgIGFsbG93WjogX3RoaXMub3B0cy5hbGxvd1pcbiAgICAgICAgICB9KTtcblxuICAgICAgICBjYXNlIFwiWlpcIjpcbiAgICAgICAgICAvLyBsaWtlICswNjowMFxuICAgICAgICAgIHJldHVybiBmb3JtYXRPZmZzZXQoe1xuICAgICAgICAgICAgZm9ybWF0OiBcInNob3J0XCIsXG4gICAgICAgICAgICBhbGxvd1o6IF90aGlzLm9wdHMuYWxsb3daXG4gICAgICAgICAgfSk7XG5cbiAgICAgICAgY2FzZSBcIlpaWlwiOlxuICAgICAgICAgIC8vIGxpa2UgKzA2MDBcbiAgICAgICAgICByZXR1cm4gZm9ybWF0T2Zmc2V0KHtcbiAgICAgICAgICAgIGZvcm1hdDogXCJ0ZWNoaWVcIixcbiAgICAgICAgICAgIGFsbG93WjogX3RoaXMub3B0cy5hbGxvd1pcbiAgICAgICAgICB9KTtcblxuICAgICAgICBjYXNlIFwiWlpaWlwiOlxuICAgICAgICAgIC8vIGxpa2UgRVNUXG4gICAgICAgICAgcmV0dXJuIGR0LnpvbmUub2Zmc2V0TmFtZShkdC50cywge1xuICAgICAgICAgICAgZm9ybWF0OiBcInNob3J0XCIsXG4gICAgICAgICAgICBsb2NhbGU6IF90aGlzLmxvYy5sb2NhbGVcbiAgICAgICAgICB9KTtcblxuICAgICAgICBjYXNlIFwiWlpaWlpcIjpcbiAgICAgICAgICAvLyBsaWtlIEVhc3Rlcm4gU3RhbmRhcmQgVGltZVxuICAgICAgICAgIHJldHVybiBkdC56b25lLm9mZnNldE5hbWUoZHQudHMsIHtcbiAgICAgICAgICAgIGZvcm1hdDogXCJsb25nXCIsXG4gICAgICAgICAgICBsb2NhbGU6IF90aGlzLmxvYy5sb2NhbGVcbiAgICAgICAgICB9KTtcbiAgICAgICAgLy8gem9uZVxuXG4gICAgICAgIGNhc2UgXCJ6XCI6XG4gICAgICAgICAgLy8gbGlrZSBBbWVyaWNhL05ld19Zb3JrXG4gICAgICAgICAgcmV0dXJuIGR0LnpvbmVOYW1lO1xuICAgICAgICAvLyBtZXJpZGllbXNcblxuICAgICAgICBjYXNlIFwiYVwiOlxuICAgICAgICAgIHJldHVybiBtZXJpZGllbSgpO1xuICAgICAgICAvLyBkYXRlc1xuXG4gICAgICAgIGNhc2UgXCJkXCI6XG4gICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHtcbiAgICAgICAgICAgIGRheTogXCJudW1lcmljXCJcbiAgICAgICAgICB9LCBcImRheVwiKSA6IF90aGlzLm51bShkdC5kYXkpO1xuXG4gICAgICAgIGNhc2UgXCJkZFwiOlxuICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7XG4gICAgICAgICAgICBkYXk6IFwiMi1kaWdpdFwiXG4gICAgICAgICAgfSwgXCJkYXlcIikgOiBfdGhpcy5udW0oZHQuZGF5LCAyKTtcbiAgICAgICAgLy8gd2Vla2RheXMgLSBzdGFuZGFsb25lXG5cbiAgICAgICAgY2FzZSBcImNcIjpcbiAgICAgICAgICAvLyBsaWtlIDFcbiAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LndlZWtkYXkpO1xuXG4gICAgICAgIGNhc2UgXCJjY2NcIjpcbiAgICAgICAgICAvLyBsaWtlICdUdWVzJ1xuICAgICAgICAgIHJldHVybiB3ZWVrZGF5KFwic2hvcnRcIiwgdHJ1ZSk7XG5cbiAgICAgICAgY2FzZSBcImNjY2NcIjpcbiAgICAgICAgICAvLyBsaWtlICdUdWVzZGF5J1xuICAgICAgICAgIHJldHVybiB3ZWVrZGF5KFwibG9uZ1wiLCB0cnVlKTtcblxuICAgICAgICBjYXNlIFwiY2NjY2NcIjpcbiAgICAgICAgICAvLyBsaWtlICdUJ1xuICAgICAgICAgIHJldHVybiB3ZWVrZGF5KFwibmFycm93XCIsIHRydWUpO1xuICAgICAgICAvLyB3ZWVrZGF5cyAtIGZvcm1hdFxuXG4gICAgICAgIGNhc2UgXCJFXCI6XG4gICAgICAgICAgLy8gbGlrZSAxXG4gICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC53ZWVrZGF5KTtcblxuICAgICAgICBjYXNlIFwiRUVFXCI6XG4gICAgICAgICAgLy8gbGlrZSAnVHVlcydcbiAgICAgICAgICByZXR1cm4gd2Vla2RheShcInNob3J0XCIsIGZhbHNlKTtcblxuICAgICAgICBjYXNlIFwiRUVFRVwiOlxuICAgICAgICAgIC8vIGxpa2UgJ1R1ZXNkYXknXG4gICAgICAgICAgcmV0dXJuIHdlZWtkYXkoXCJsb25nXCIsIGZhbHNlKTtcblxuICAgICAgICBjYXNlIFwiRUVFRUVcIjpcbiAgICAgICAgICAvLyBsaWtlICdUJ1xuICAgICAgICAgIHJldHVybiB3ZWVrZGF5KFwibmFycm93XCIsIGZhbHNlKTtcbiAgICAgICAgLy8gbW9udGhzIC0gc3RhbmRhbG9uZVxuXG4gICAgICAgIGNhc2UgXCJMXCI6XG4gICAgICAgICAgLy8gbGlrZSAxXG4gICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHtcbiAgICAgICAgICAgIG1vbnRoOiBcIm51bWVyaWNcIixcbiAgICAgICAgICAgIGRheTogXCJudW1lcmljXCJcbiAgICAgICAgICB9LCBcIm1vbnRoXCIpIDogX3RoaXMubnVtKGR0Lm1vbnRoKTtcblxuICAgICAgICBjYXNlIFwiTExcIjpcbiAgICAgICAgICAvLyBsaWtlIDAxLCBkb2Vzbid0IHNlZW0gdG8gd29ya1xuICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7XG4gICAgICAgICAgICBtb250aDogXCIyLWRpZ2l0XCIsXG4gICAgICAgICAgICBkYXk6IFwibnVtZXJpY1wiXG4gICAgICAgICAgfSwgXCJtb250aFwiKSA6IF90aGlzLm51bShkdC5tb250aCwgMik7XG5cbiAgICAgICAgY2FzZSBcIkxMTFwiOlxuICAgICAgICAgIC8vIGxpa2UgSmFuXG4gICAgICAgICAgcmV0dXJuIG1vbnRoKFwic2hvcnRcIiwgdHJ1ZSk7XG5cbiAgICAgICAgY2FzZSBcIkxMTExcIjpcbiAgICAgICAgICAvLyBsaWtlIEphbnVhcnlcbiAgICAgICAgICByZXR1cm4gbW9udGgoXCJsb25nXCIsIHRydWUpO1xuXG4gICAgICAgIGNhc2UgXCJMTExMTFwiOlxuICAgICAgICAgIC8vIGxpa2UgSlxuICAgICAgICAgIHJldHVybiBtb250aChcIm5hcnJvd1wiLCB0cnVlKTtcbiAgICAgICAgLy8gbW9udGhzIC0gZm9ybWF0XG5cbiAgICAgICAgY2FzZSBcIk1cIjpcbiAgICAgICAgICAvLyBsaWtlIDFcbiAgICAgICAgICByZXR1cm4gdXNlRGF0ZVRpbWVGb3JtYXR0ZXIgPyBzdHJpbmcoe1xuICAgICAgICAgICAgbW9udGg6IFwibnVtZXJpY1wiXG4gICAgICAgICAgfSwgXCJtb250aFwiKSA6IF90aGlzLm51bShkdC5tb250aCk7XG5cbiAgICAgICAgY2FzZSBcIk1NXCI6XG4gICAgICAgICAgLy8gbGlrZSAwMVxuICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7XG4gICAgICAgICAgICBtb250aDogXCIyLWRpZ2l0XCJcbiAgICAgICAgICB9LCBcIm1vbnRoXCIpIDogX3RoaXMubnVtKGR0Lm1vbnRoLCAyKTtcblxuICAgICAgICBjYXNlIFwiTU1NXCI6XG4gICAgICAgICAgLy8gbGlrZSBKYW5cbiAgICAgICAgICByZXR1cm4gbW9udGgoXCJzaG9ydFwiLCBmYWxzZSk7XG5cbiAgICAgICAgY2FzZSBcIk1NTU1cIjpcbiAgICAgICAgICAvLyBsaWtlIEphbnVhcnlcbiAgICAgICAgICByZXR1cm4gbW9udGgoXCJsb25nXCIsIGZhbHNlKTtcblxuICAgICAgICBjYXNlIFwiTU1NTU1cIjpcbiAgICAgICAgICAvLyBsaWtlIEpcbiAgICAgICAgICByZXR1cm4gbW9udGgoXCJuYXJyb3dcIiwgZmFsc2UpO1xuICAgICAgICAvLyB5ZWFyc1xuXG4gICAgICAgIGNhc2UgXCJ5XCI6XG4gICAgICAgICAgLy8gbGlrZSAyMDE0XG4gICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHtcbiAgICAgICAgICAgIHllYXI6IFwibnVtZXJpY1wiXG4gICAgICAgICAgfSwgXCJ5ZWFyXCIpIDogX3RoaXMubnVtKGR0LnllYXIpO1xuXG4gICAgICAgIGNhc2UgXCJ5eVwiOlxuICAgICAgICAgIC8vIGxpa2UgMTRcbiAgICAgICAgICByZXR1cm4gdXNlRGF0ZVRpbWVGb3JtYXR0ZXIgPyBzdHJpbmcoe1xuICAgICAgICAgICAgeWVhcjogXCIyLWRpZ2l0XCJcbiAgICAgICAgICB9LCBcInllYXJcIikgOiBfdGhpcy5udW0oZHQueWVhci50b1N0cmluZygpLnNsaWNlKC0yKSwgMik7XG5cbiAgICAgICAgY2FzZSBcInl5eXlcIjpcbiAgICAgICAgICAvLyBsaWtlIDAwMTJcbiAgICAgICAgICByZXR1cm4gdXNlRGF0ZVRpbWVGb3JtYXR0ZXIgPyBzdHJpbmcoe1xuICAgICAgICAgICAgeWVhcjogXCJudW1lcmljXCJcbiAgICAgICAgICB9LCBcInllYXJcIikgOiBfdGhpcy5udW0oZHQueWVhciwgNCk7XG5cbiAgICAgICAgY2FzZSBcInl5eXl5eVwiOlxuICAgICAgICAgIC8vIGxpa2UgMDAwMDEyXG4gICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHtcbiAgICAgICAgICAgIHllYXI6IFwibnVtZXJpY1wiXG4gICAgICAgICAgfSwgXCJ5ZWFyXCIpIDogX3RoaXMubnVtKGR0LnllYXIsIDYpO1xuICAgICAgICAvLyBlcmFzXG5cbiAgICAgICAgY2FzZSBcIkdcIjpcbiAgICAgICAgICAvLyBsaWtlIEFEXG4gICAgICAgICAgcmV0dXJuIGVyYShcInNob3J0XCIpO1xuXG4gICAgICAgIGNhc2UgXCJHR1wiOlxuICAgICAgICAgIC8vIGxpa2UgQW5ubyBEb21pbmlcbiAgICAgICAgICByZXR1cm4gZXJhKFwibG9uZ1wiKTtcblxuICAgICAgICBjYXNlIFwiR0dHR0dcIjpcbiAgICAgICAgICByZXR1cm4gZXJhKFwibmFycm93XCIpO1xuXG4gICAgICAgIGNhc2UgXCJra1wiOlxuICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQud2Vla1llYXIudG9TdHJpbmcoKS5zbGljZSgtMiksIDIpO1xuXG4gICAgICAgIGNhc2UgXCJra2trXCI6XG4gICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC53ZWVrWWVhciwgNCk7XG5cbiAgICAgICAgY2FzZSBcIldcIjpcbiAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LndlZWtOdW1iZXIpO1xuXG4gICAgICAgIGNhc2UgXCJXV1wiOlxuICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQud2Vla051bWJlciwgMik7XG5cbiAgICAgICAgY2FzZSBcIm9cIjpcbiAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0Lm9yZGluYWwpO1xuXG4gICAgICAgIGNhc2UgXCJvb29cIjpcbiAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0Lm9yZGluYWwsIDMpO1xuXG4gICAgICAgIGNhc2UgXCJxXCI6XG4gICAgICAgICAgLy8gbGlrZSAxXG4gICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5xdWFydGVyKTtcblxuICAgICAgICBjYXNlIFwicXFcIjpcbiAgICAgICAgICAvLyBsaWtlIDAxXG4gICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5xdWFydGVyLCAyKTtcblxuICAgICAgICBjYXNlIFwiWFwiOlxuICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oTWF0aC5mbG9vcihkdC50cyAvIDEwMDApKTtcblxuICAgICAgICBjYXNlIFwieFwiOlxuICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQudHMpO1xuXG4gICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgcmV0dXJuIG1heWJlTWFjcm8odG9rZW4pO1xuICAgICAgfVxuICAgIH07XG5cbiAgICByZXR1cm4gc3RyaW5naWZ5VG9rZW5zKEZvcm1hdHRlci5wYXJzZUZvcm1hdChmbXQpLCB0b2tlblRvU3RyaW5nKTtcbiAgfTtcblxuICBfcHJvdG8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JlYXNvbiBpbnN0YW5jZW9mIEludmFsaWQgPyByZWFzb24gOiBuZXcgSW52YWxpZChyZWFzb24sIGV4cGxhbmF0aW9uKTtcblxuICAgIGlmIChTZXR0aW5ncy50aHJvd09uSW52YWxpZCkge1xuICAgICAgdGhyb3cgbmV3IEludmFsaWREdXJhdGlvbkVycm9yKGludmFsaWQpO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gbmV3IER1cmF0aW9uKHtcbiAgICAgICAgaW52YWxpZDogaW52YWxpZFxuICAgICAgfSk7XG4gICAgfVxuICB9XG4gIC8qKlxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgO1xuXG4gIER1cmF0aW9uLm5vcm1hbGl6ZVVuaXQgPSBmdW5jdGlvbiBub3JtYWxpemVVbml0KHVuaXQpIHtcbiAgICB2YXIgbm9ybWFsaXplZCA9IHtcbiAgICAgIHllYXI6IFwieWVhcnNcIixcbiAgICAgIHllYXJzOiBcInllYXJzXCIsXG4gICAgICBxdWFydGVyOiBcInF1YXJ0ZXJzXCIsXG4gICAgICBxdWFydGVyczogXCJxdWFydGVyc1wiLFxuICAgICAgbW9udGg6IFwibW9udGhzXCIsXG4gICAgICBtb250aHM6IFwibW9udGhzXCIsXG4gICAgICB3ZWVrOiBcIndlZWtzXCIsXG4gICAgICB3ZWVrczogXCJ3ZWVrc1wiLFxuICAgICAgZGF5OiBcImRheXNcIixcbiAgICAgIGRheXM6IFwiZGF5c1wiLFxuICAgICAgaG91cjogXCJob3Vyc1wiLFxuICAgICAgaG91cnM6IFwiaG91cnNcIixcbiAgICAgIG1pbnV0ZTogXCJtaW51dGVzXCIsXG4gICAgICBtaW51dGVzOiBcIm1pbnV0ZXNcIixcbiAgICAgIHNlY29uZDogXCJzZWNvbmRzXCIsXG4gICAgICBzZWNvbmRzOiBcInNlY29uZHNcIixcbiAgICAgIG1pbGxpc2Vjb25kOiBcIm1pbGxpc2Vjb25kc1wiLFxuICAgICAgbWlsbGlzZWNvbmRzOi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yT2ZJdGVyYXRvckhlbHBlckxvb3NlKG9yZGVyZWRVbml0cyksIF9zdGVwMjsgIShfc3RlcDIgPSBfaXRlcmF0b3IyKCkpLmRvbmU7KSB7XG4gICAgICB2YXIgayA9IF9zdGVwMi52YWx1ZTtcblxuICAgICAgaWYgKHVuaXRzLmluZGV4T2YoaykgPj0gMCkge1xuICAgICAgICBsYXN0VW5pdCA9IGs7XG4gICAgICAgIHZhciBvd24gPSAwOyAvLyBhbnl0aGluZyB3ZSBoYXZlbid0IGJvaWxlZCBkb3duIHlldCBzaG91bGQgZ2V0IGJvaWxlZCB0byB0aGlzIHVuaXRcblxuICAgICAgICBmb3IgKHZhciBhayBpbiBhY2N1bXVsYXRlZCkge1xuICAgICAgICAgIG93biArPSB0aGlzLm1hdHJpeFtha11ba10gKiBhY2N1bXVsYXRlZFtha107XG4gICAgICAgICAgYWNjdW11bGF0ZWRbYWtdID0gMDtcbiAgICAgICAgfSAvLyBwbHVzIGFueXRoaW5nIHRoYXQncyBhbHJlYWR5IGluIHRoaXMgdW5pdFxuXG5cbiAgICAgICAgaWYgKGlzTnVtYmVyKHZhbHNba10pKSB7XG4gICAgICAgICAgb3duICs9IHZhbHNba107XG4gICAgICAgIH1cblxuICAgICAgICB2YXIgaSA9IE1hdGgudHJ1bmMob3duKTtcbiAgICAgICAgYnVpbHRba10gPSBpO1xuICAgICAgICBhY2N1bXVsYXRlZFtrXSA9IG93biAtIGk7IC8vIHdlJ2QgbGlrZSB0byBhYnNvcmIgdGhlc2UgZnJhY3Rpb25zIGluIGFub3RoZXIgdW5pdFxuICAgICAgICAvLyBwbHVzIGFueXRoaW5nIGZ1cnRoZXIgZG93biB0aGUgY2hhaW4gdGhhdCBzaG91bGQgYmUgcm9sbGVkIHVwIGluIHRvIHRoaXNcblxuICAgICAgICBmb3IgKHZhciBkb3duIGluIHZhbHMpIHtcbiAgICAgICAgICBpZiAob3JkZXJlZFVuaXRzLmluZGV4T2YoZG93bikgPiBvcmRlcmVkVW5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5eVwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdCh0d29Ub0ZvdXIsIHVudHJ1bmNhdGVZZWFyKTtcblxuICAgICAgY2FzZSBcInl5eXlcIjpcbiAgICAgICAgcmV0dXJuIGludFVuaXQoZm91cik7XG5cbiAgICAgIGNhc2UgXCJ5eXl5eVwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdChmb3VyVG9TaXgpO1xuXG4gICAgICBjYXNlIFwieXl5eXl5XCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KHNpeCk7XG4gICAgICAvLyBtb250aHNcblxuICAgICAgY2FzZSBcIk1cIjpcbiAgICAgICAgcmV0dXJuIGludFVuaXQob25lT3JUd28pO1xuXG4gICAgICBjYXNlIFwiTU1cIjpcbiAgICAgICAgcmV0dXJuIGludFVuaXQodHdvKTtcblxuICAgICAgY2FzZSBcIk1NTVwiOlxuICAgICAgICByZXR1cm4gb25lT2YobG9jLm1vbnRocyhcInNob3J0XCIsIHRydWUsIGZhbHNlKSwgMSk7XG5cbiAgICAgIGNhc2UgXCJNTU1NXCI6XG4gICAgICAgIHJldHVybiBvbmVPZihsb2MubW9udGhzKFwibG9uZ1wiLCB0cnVlLCBmYWxzZSksIDEpO1xuXG4gICAgICBjYXNlIFwiTFwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7XG5cbiAgICAgIGNhc2UgXCJMTFwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pO1xuXG4gICAgICBjYXNlIFwiTExMXCI6XG4gICAgICAgIHJldHVybiBvbmVPZihsb2MubW9udGhzKFwic2hvcnRcIiwgZmFsc2UsIGZhbHNlKSwgMSk7XG5cbiAgICAgIGNhc2UgXCJMTExMXCI6XG4gICAgICAgIHJldHVybiBvbmVPZihsb2MubW9udGhzKFwibG9uZ1wiLCBmYWxzZSwgZmFsc2UpLCAxKTtcbiAgICAgIC8vIGRhdGVzXG5cbiAgICAgIGNhc2UgXCJkXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTtcblxuICAgICAgY2FzZSBcImRkXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7XG4gICAgICAvLyBvcmRpbmFsc1xuXG4gICAgICBjYXNlIFwib1wiOlxuICAgICAgICByZXR1cm4gaW50VW5pdChvbmVUb1RocmVlKTtcblxuICAgICAgY2FzZSBcIm9vb1wiOlxuICAgICAgICByZXR1cm4gaW50VW5pdCh0aHJlZSk7XG4gICAgICAvLyB0aW1lXG5cbiAgICAgIGNhc2UgXCJISFwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pO1xuXG4gICAgICBjYXNlIFwiSFwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7XG5cbiAgICAgIGNhc2UgXCJoaFwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pO1xuXG4gICAgICBjYXNlIFwiaFwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7XG5cbiAgICAgIGNhc2UgXCJtbVwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pO1xuXG4gICAgICBjYXNlIFwibVwiOlxuICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7XG5cbiAgICAgIGNhc2UgXCJxXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTtcblxuICAgICAgY2FzZSBcInFxXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7XG5cbiAgICAgIGNhc2UgXCJzXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTtcblxuICAgICAgY2FzZSBcInNzXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7XG5cbiAgICAgIGNhc2UgXCJTXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KG9uZVRvVGhyZWUpO1xuXG4gICAgICBjYXNlIFwiU1NTXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KHRocmVlKTtcblxuICAgICAgY2FzZSBcInVcIjpcbiAgICAgICAgcmV0dXJuIHNpbXBsZShvbmVUb05pbmUpO1xuICAgICAgLy8gbWVyaWRpZW1cblxuICAgICAgY2FzZSBcImFcIjpcbiAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy5tZXJpZGllbXMoKSwgMCk7XG4gICAgICAvLyB3ZWVrWWVhciAoaylcblxuICAgICAgY2FzZSBcImtra2tcIjpcbiAgICAgICAgcmV0dXJuIGludFVuaXQoZm91cik7XG5cbiAgICAgIGNhc2UgXCJra1wiOlxuICAgICAgICByZXR1cm4gaW50VW5pdCh0d29Ub0ZvdXIsIHVudHJ1bmNhdGVZZWFyKTtcbiAgICAgIC8vIHdlZWtOdW1iZXIgKFcpXG5cbiAgICAgIGNhc2UgXCJXXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTtcblxuICAgICAgY2FzZSBcIldXXCI6XG4gICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7XG4gICAgICAvLyB3ZWVrZGF5c1xuXG4gICAgICBjYXNlIFwiRVwiOlxuICAgICAgY2FzZSBcImNcIjpcbiAgICAgICAgcmV0dXJuIGludFVuaXQob25lKTtcblxuICAgICAgY2FzZSBcIkVFRVwiOlxuICAgICAgICByZXR1cm4gb25lT2YobG9jLndlZWtkYXlzKFwic2hvcnRcIiwgZmFsc2UsIGZhbHNlKSwgMSk7XG5cbiAgICAgIGNhc2UgXCJFRUVFXCI6XG4gICAgICAgIHJldHVybiBvbmVPZihsb2Mud2Vla2RheXMoXCJsb25nXCIsIGZhbHNlLCBmYWxzZSksIDEpO1xuXG4gICAgICBjYXNlIFwiY2NjXCI6XG4gICAgICAgIHJldHVybiBvbmVPZihsb2Mud2Vla2RheXMoXCJzaG9ydFwiLCB0cnVlLCBmYWxzZSksIDEpO1xuXG4gICAgICBjYXNlIFwiY2NjY1wiOlxuICAgICAgICByZXR1cm4gb25lT2YobG9jLndlZWtkYXlzKFwib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pbnZhbGlkKSB7XG4gICAgICB2YXIgdW5jaGFuZ2VkID0gY29uZmlnLm9sZCAmJiBjb25maWcub2xkLnRzID09PSB0aGlzLnRzICYmIGNvbmZpZy5vbGQuem9uZS5lcXVhbHMoem9uZSk7XG5cbiAgICAgIGlmICh1bmNoYW5nZWQpIHtcbiAgICAgICAgdmFyIF9yZWYyID0gW2NvbmZpZy5vbGQuYywgY29uZmlnLm9sZC5vXTtcbiAgICAgICAgYyA9IF9yZWYyWzBdO1xuICAgICAgICBvID0gX3JlZjJbMV07XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB2YXIgb3QgPSB6b25lLm9mZnNldCh0aGlzLnRzKTtcbiAgICAgICAgYyA9IHRzVG9PYmoodGhpcy50cywgb3QpO1xuICAgICAgICBpbnZhbGlkID0gTnVtYmVyLmlzTmFOKGMueWVhcikgPyBuZXcgSW52YWxpZChcImludmFsaWQgaW5wdXRcIikgOiBudWxsO1xuICAgICAgICBjID0gaW52YWxpZCA/IG51bGwgOiBjO1xuICAgICAgICBvID0gaW52YWxpZCA/IG51bGwgOiBvdDtcbiAgICAgIH1cbiAgICB9XG4gICAgLyoqXG4gICAgICogQGFjY2VzcyBwcml2YXRlXG4gICAgICovXG5cblxuICAgIHRoaXMuX3pvbmUgPSB6b25lO1xuICAgIC8qKlxuICAgICAqIEBhY2Nlc3MgcHJpdmF0ZVxuICAgICAqL1xuXG4gICAgdGhpcy5sb2MgPSBjb25maWcubG9jIHx8IExvY2FsZS5jcmVhdGUoKTtcbiAgICAvKipcbiAgICAgKiBAYWNjZXNzIHByaXZhdGVcbiAgICAgKi9cblxuICAgIHRoaXMuaW52YWxpZCA9IGludmFsaWQ7XG4gICAgLyoqXG4gICAgICogQGFjY2VzcyBwcml2YXRlXG4gICAgICovXG5cbiAgICB0aGlzLndlZWtEYXRhID0gbnVsbDtcbiAgICAvKipcbiAgICAgKiBAYWNjZXNzIHByaXZhdGVcbiAgICAgKi9cblxuICAgIHRoaXMuYyA9IGM7X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S5GUkVRVUVOQ0lFU1tvcHRpb25zLmZyZXFdO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnV0tTVCc6XG4gICAgICAgICAgICAgICAgaWYgKGlzTnVtYmVyKHZhbHVlKSkge1xuICAgICAgICAgICAgICAgICAgICBvdXRWYWx1ZSA9IG5ldyBXZWVrZGF5KHZhbHVlKS50b1N0cmluZygpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgb3V0VmFsdWUgPSB2YWx1ZS50b1N0cmluZygpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ0JZV0VFS0RBWSc6XG4gICAgICAgICAgICAgICAgLypcbiAgICAgICAgICAgICAgICBOT1RFOiBCWVdFRUtEQVkgaXMgYSBzcGVjaWFsIGNhc2UuXG4gICAgICAgICAgICAgICAgUlJ1bGUoKSBkZWNvbnN0cnVjdHMgdGhlIHJ1bGUub3B0aW9ucy5ieXdlZWtkYXkgYXJyYXlcbiAgICAgICAgICAgICAgICBpbnRvIGFuIGFycmF5IG9mIFdlZWtkYXkgYXJndW1lbnRzLlxuICAgICAgICAgICAgICAgIE9uIHRoZSBvdGhlciBoYW5kLCBydWxlLm9yaWdPcHRpb25zIGlzIGFuIGFycmF5IG9mIFdlZWtkYXlzLlxuICAgICAgICAgICAgICAgIFdlIG5lZWQgdG8gaGFuZGxlIGJvdGggY2FzZXMgaGVyZS5cbiAgICAgICAgICAgICAgICBJdCBtaWdodCBiZSB3b3J0aCBjaGFuZ2UgUlJ1bGUgdG8ga2VlcCB0aGUgV2Vla2RheXMuXG4gICAgICBcbiAgICAgICAgICAgICAgICBBbHNvLCBCWVdFRUtEQVkgKHVzZWQgYnkgUlJ1bGUpIHZzLiBCWURBWSAoUkZDKVxuICAgICAgXG4gICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICBrZXkgPSAnQllEQVknO1xuICAgICAgICAgICAgICAgIG91dFZhbHVlID0gdG9BcnJheSh2YWx1ZSkubWFwKGZ1bmN0aW9uICh3ZGF5KSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh3ZGF5IGluc3RhbmNlb2YgV2Vla2RheSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdkYXk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgaWYgKGlzQXJyYXkod2RheSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgV2Vla2RheSh3ZGF5WzBdLCB3ZGF5WzFdKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFdlZWtkYXkod2RheSk7XG4gICAgICAgICAgICAgICAgfSkudG9TdHJpbmcoKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ0RUU1RBUlQnOlxuICAgICAgICAgICAgICAgIGR0c3RhcnQgPSBidWlsZER0c3RhcnQodmFsdWUsIG9wdGlvbnMudHppZCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdVTlRJTCc6XG4gICAgICAgICAgICAgICAgb3V0VmFsdWUgPSBkYXRldXRpbC50aW1lVG9VbnRpbFN0cmluZyh2YWx1ZSwgIW9wdGlvbnMudHppZCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIGlmIChpc0FycmF5KHZhbHVlKSkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgc3RyVmFsdWVzID0gW107XG4gICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgdmFsdWUubGVuZ3RoOyBqKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0clZhbHVlc1tqXSA9IFN0cmluZyh2YWx1ZVtqXSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgb3V0VmFsdWUgPSBzdHJWYWx1ZXMudG9TdHJpbmcoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIG91dFZhbHVlID0gU3RyaW5nKHZhbHVlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG91dFZhbHVlKSB7XG4gICAgICAgICAgICBycnVsZS5wdXNoKFtrZXksIG91dFZhbHVlXSk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgdmFyIHJ1bGVzID0gcnJ1bGUubWFwKGZ1bmN0aW9uIChfYSkge1xuICAgICAgICB2YXIga2V5ID0gX2FbMF0sIHZhbHVlID0gX2FbMV07XG4gICAgICAgIHJldHVybiBrZXkgKyBcIj1cIiArIHZhbHVlLnRvU3RyaW5nKCk7XG4gICAgfSkuam9pbignOycpO1xuICAgIHZhciBydWxlU3RyaW5nID0gJyc7XG4gICAgaWYgKHJ1bGVzICE9PSAnJykge1xuICAgICAgICBydWxlU3RyaW5nID0gXCJSUlVMRTpcIiArIHJ1bGVzO1xuICAgIH1cbiAgICByZXR1cm4gW2R0c3RhcnQsIHJ1bGVTdHJpbmddLmZpbHRlcihmdW5jdGlvbiAoeCkgeyByZXR1cm4gISF4OyB9KS5qb2luKCdcXG4nKTtcbn1cbmZ1bmN0aW9uIGJ1aWxkRHRzdGFydChkdHN0YXJ0LCB0emlkKSB7XG4gICAgaWYgKCFkdHN0YXJ0KSB7XG4gICAgICAgIHJldHVybiAnJztcbiAgICB9XG4gICAgcmV0dXJuICdEVFNUQVJUJyArIG5ldyBEYXRlV2l0aFpvbmUobmV3IERhdGUoZHRzdGFydCksIHR6aWQpLnRvU3RyaW5nKCk7XG59XG4vLyMgc291cmNlTWFwcGluZ1VSTD1vcHRpb25zdG9zdHJpbmcuanMubWFwI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AgICAgICAgIGFyZ3MuX3ZhbHVlID0gdmFsdWU7XG4gICAgICAgICAgICB0aGlzW3doYXRdLnB1c2goYXJncyk7XG4gICAgICAgIH1cbiAgICB9O1xuICAgIC8qKlxuICAgICAqIEByZXR1cm4gZmFsc2UgLSBub3QgaW4gdGhlIGNhY2hlXG4gICAgICogICAgICAgICBudWxsICAtIGNhY2hlZCwgYnV0IHplcm8gb2NjdXJyZW5jZXMgKGJlZm9yZS9hZnRlcilcbiAgICAgKiAgICAgICAgIERhdGUgIC0gY2FjaGVkIChiZWZvcmUvYWZ0ZXIpXG4gICAgICogICAgICAgICBbXSAgICAtIGNhY2hlZCwgYnV0IHplcm8gb2NjdXJyZW5jZXMgKGFsbC9iZXR3ZWVuKVxuICAgICAqICAgICAgICAgW0RhdGUxLCBEYXRlTl0gLSBjYWNoZWQgKGFsbC9iZXR3ZWVuKVxuICAgICAqL1xuICAgIENhY2hlLnByb3RvdHlwZS5fY2FjaGVHZXQgPSBmdW5jdGlvbiAod2hhdCwgYXJncykge1xuICAgICAgICB2YXIgY2FjaGVkID0gZmFsc2U7XG4gICAgICAgIHZhciBhcmdzS2V5cyA9IGFyZ3MgPyBPYmplY3Qua2V5cyhhcmdzKSA6IFtdO1xuICAgICAgICB2YXIgZmluZENhY2hlRGlmZiA9IGZ1bmN0aW9uIChpdGVtKSB7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGFyZ3NLZXlzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgdmFyIGtleSA9IGFyZ3NLZXlzW2ldO1xuICAgICAgICAgICAgICAgIGlmIChTdHJpbmcoYXJnc1trZXldKSAhPT0gU3RyaW5nKGl0ZW1ba2V5XSkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9O1xuICAgICAgICB2YX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7XG4gICAgICAgICAgICAgICAgaWYgKCFpdGVyUmVzdWx0LmFjY2VwdCh0aGlzLmFsbFtpXSkpXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgY2FjaGVkID0gaXRlclJlc3VsdC5nZXRWYWx1ZSgpO1xuICAgICAgICAgICAgdGhpcy5fY2FjaGVBZGQod2hhdCwgY2FjaGVkLCBhcmdzKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gaXNBcnJheShjYWNoZWQpXG4gICAgICAgICAgICA/IGRhdGV1dGlsLmNsb25lRGF0ZXMoY2FjaGVkKVxuICAgICAgICAgICAgOiBjYWNoZWQgaW5zdGFuY2VvZiBEYXRlXG4gICAgICAgICAgICAgICAgPyBkYXRldXRpbC5jbG9uZShjYWNoZWQpXG4gICAgICAgICAgICAgICAgOiBjYWNoZWQ7XG4gICAgfTtcbiAgICByZXR1cm4gQ2FjaGU7XG59KCkpO1xuZXhwb3J0IHsgQ2FjaGUgfTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWNhY2hlLmpzLm1hcCIsImltcG9ydCB7IF9fc3ByZWFkQXJyYXlzIH0gZnJvbSBcInRzbGliXCI7XG5pbXBvcnQgeyByYW5nZSwgcmVwZWF0IH0gZnJvbSAnLi9oZWxwZXJzJztcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEYXRlIG1hc2tzXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRXZlcnkgbWFzayBpcyA3IGRheXMgbG9uZ2VyIHRvIGhhbmRsZSBjcm9zcy15ZWFyIHdlZWtseSBwZXJpb2RzLlxudmFyIE0zNjVNQVNLID0gX19zcHJlYWRBcnJheXMocmVwZWF0KDEsIDMxKSwgcm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ICAgICAgICAgICBuICs9IG51bXdlZWtzICsgMTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIShuID4gMCAmJiBuIDw9IG51bXdlZWtzKSkge1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cbiAgICAgICAgdmFyIGkgPSB2b2lkIDA7XG4gICAgICAgIGlmIChuID4gMSkge1xuICAgICAgICAgICAgaSA9IG5vMXdrc3QgKyAobiAtIDEpICogNztcbiAgICAgICAgICAgIGlmIChubzF3a3N0ICE9PSBmaXJzdHdrc3QpIHtcbiAgICAgICAgICAgICAgICBpIC09IDcgLSBmaXJzdHdrc3Q7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBpID0gbm8xd2tzdDtcbiAgICAgICAgfVxuICAgICAgICBmb3IgKHZhciBrID0gMDsgayA8IDc7IGsrKykge1xuICAgICAgICAgICAgcmVzdWx0Lndub21hc2tbaV0gPSAxO1xuICAgICAgICAgICAgaSsrO1xuICAgICAgICAgICAgaWYgKHJlc3VsdC53ZGF5bWFza1tpXSA9PT0gb3B0aW9ucy53a3N0KVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuICAgIGlmIChpbmNsdWRlcyhvcHRpb25zLmJ5d2Vla25vLCAxKSkge1xuICAgICAgICAvLyBDaGVjayB3ZWVrIG51bWJlciAxIG9mIG5leHQgeWVhciBhcyB3ZWxsXG4gICAgICAgIC8vIG9yaWctVE9ETyA6IENoZWNrIC1udW13ZWVrcyBmb3IgbmV4dCB5ZWFyLlxuICAgICAgICB2YXIgaSA9IG5vMXdrc3QgKyBudW13ZWVrcyAqIDc7XG4gICAgICAgIGlmIChubzF3a3N0ICE9PSBmaXJzdHdrc3QpXG4gICAgICAgICAgICBpIC09IDcgLSBmaXJzdHdrc3Q7XG4gICAgICAgIGlmIChpIDwgeWVhcmxlbikge1xuICAgICAgICAgICAgLy8gSWYgd2VlayBzdGFydHMg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AgICAgIHJhbmdlcyA9IFtbMCwgeWVhcmxlbl1dO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgZm9yICh2YXIgaiA9IDA7IGogPCBvcHRpb25zLmJ5bW9udGgubGVuZ3RoOyBqKyspIHtcbiAgICAgICAgICAgICAgICBtb250aCA9IG9wdGlvbnMuYnltb250aFtqXTtcbiAgICAgICAgICAgICAgICByYW5nZXMucHVzaChtcmFuZ2Uuc2xpY2UobW9udGggLSAxLCBtb250aCArIDEpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICBlbHNlIGlmIChvcHRpb25zLmZyZXEgPT09IFJSdWxlLk1PTlRITFkpIHtcbiAgICAgICAgcmFuZ2VzID0gW21yYW5nZS5zbGljZShtb250aCAtIDEsIG1vbnRoICsgMSldO1xuICAgIH1cbiAgICBpZiAoZW1wdHkocmFuZ2VzKSkge1xuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cbiAgICAvLyBXZWVrbHkgZnJlcXVlbmN5IHdvbid0IGdldCBoZXJlLCBzbyB3ZSBtYXkgbm90XG4gICAgLy8gY2FyZSBhYm91dCBjcm9zcy15ZWFyIHdlZWtseSBwZXJpb2RzLlxuICAgIHJlc3VsdC5ud2RheW1hc2sgPSByZXBlYXQoMCwgeWVhcmxlbik7XG4gICAgZm9yICh2YXIgaiA9IDA7IGogPCByYW5nZXMubGVuZ3RoOyBqKyspIHtcbiAgICAgICAgdmFyIHJhbmcgPSByYW5nZXNbal07XG4gICAgICAgIHZhciBmaXJzdCA9IHJhbmdbMF07XG4gICAgICAgIHZhciBsYXN0ID0gcmFuZ1sxXSAtIDE7XG4gICAgICAgIGZvciAodmFyIGsgPSAwOyBrIDwgb3B0aW9ucy5ieW53ZWVrZGF5Lmxlbmd0aDsgaysrKSB7XG4gICAgICAgICAgICB2YXIgaSA9IHZvaWQgMDtcbiAgICAgICAgICAgIHZhciBfYSA9IG9wdGlvbnMuYnlud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xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbnZhciBJdGVyaW5mbyA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBJdGVyaW5mbyhvcHRpb25zKSB7XG4gICAgICAgIHRoaXMub3B0aW9ucyA9IG9wdGlvbnM7XG4gICAgfVxuICAgIEl0ZXJpbmZvLnByb3RvdHlwZS5yZWJ1aWxkID0gZnVuY3Rpb24gKHllYXIsIG1vbnRoKSB7XG4gICAgICAgIHZhciBvcHRpb25zID0gdGhpcy5vcHRpb25zO1xuICAgICAgICBpZiAoeWVhciAhPT0gdGhpcy5sYXN0eWVhcikge1xuICAgICAgICAgICAgdGhpcy55ZWFyaW5mbyA9IHJlYnVpbGRZZWFyKHllYXIsIG9wdGlvbnMpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChub3RFbXB0eShvcHRpb25zLmJ5bndlZWtkYXkpICYmXG4gICAgICAgICAgICAobW9udGggIT09IHRoaXMubGFzdG1vbnRoIHx8IHllYXIgIT09IHRoaXMubGFzdHllYXIpKSB7XG4gICAgICAgICAgICB2YXIgX2EgPSB0aGlzLnllYXJpbmZvLCB5ZWFybGVuID0gX2EueWVhcmxlbiwgbXJhbmdlID0gX2EubXJhbmdlLCB3ZGF5bWFzayA9IF9hLndkYXltYXNrO1xuICAgICAgICAgICAgdGhpcy5tb250aGluZm8gPSByZWJ1aWxkTW9udGgoeWVhciwgbW9udGgsIHllYXJsZW4sIG1yYW5nZSwgd2RheW1hc2ssIG9wdGlvbnMpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChpc1ByZXNlbnQob3B0aW9ucy5ieWVhc3RlcikpIHtcbiAgICAgICAgICAgIHRoaXMuZWFzdGVybWFzayA9IGVhc3Rlcih5ZWFyLCBvcHRpb25zLmJ5ZWFzdGVyKTtcbiAgICAgICAgfVxuICAgIH07XG4gICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEl0ZXJpbmZvLnByb3RvdHlwZSwgXCJsYXN0eWVhclwiLCB7XG4gICAgICAgIGdldDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMubW9udGhpbmZvID8gdGhpcy5tb250aGluZm8ubGFzdHllYXIgOiBudWxsO1xuICAgICAgICB9LFxuICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLFxuICAgICAgICBjb25maWd1cmFibGU6IHRydWVcbiAgICB9KTtcbiAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoSXRlcmluZm8ucHJvdG90eXBlLCBcImxhc3Rtb250aFwiLCB7XG4gICAgICAgIGdldDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMubW9udGhpbmZvID8gdGhpcy5tb250aGluZm8ubGFzdG1vbnRoIDogbnVsbDtcbiAgICAgICAgfSxcbiAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSxcbiAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlXG4gICAgfSk7XG4gICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEl0ZXJpbmZvLnByb3RvdHlwZSwgXCJ5ZWFybGVuXCIsIHtcbiAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy55ZWFyaW5mby55ZWFybGVuO1xuICAgICAgICB9LFxuICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLFxuICAgICAgICBjb25maWd1cmFibGU6IHRydWVcbiAgICB9KTtcbiAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoSXRlcmluZm8ucHJvdG90eXBlLCBcInllYXJvcmRpbmFsXCIsIHtcbiAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy55ZWFyaW5mby55ZWFyb3JkaW5hbDtcbiAgICAgICAgfSxcbiAgICAgICAgZW51bWVy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G4gICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZVxuICAgIH0pO1xuICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShJdGVyaW5mby5wcm90b3R5cGUsIFwibndkYXltYXNrXCIsIHtcbiAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5tb250aGluZm8gPyB0aGlzLm1vbnRoaW5mby5ud2RheW1hc2sgOiBbXTtcbiAgICAgICAgfSxcbiAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSxcbiAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlXG4gICAgfSk7XG4gICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEl0ZXJpbmZvLnByb3RvdHlwZSwgXCJuZXh0eWVhcmxlblwiLCB7XG4gICAgICAgIGdldDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMueWVhcmluZm8ubmV4dHllYXJsZW47XG4gICAgICAgIH0sXG4gICAgICAgIGVudW1lcmFibGU6IHRydWUsXG4gICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZVxuICAgIH0pO1xuICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShJdGVyaW5mby5wcm90b3R5cGUsIFwibWRheW1hc2tcIiwge1xuICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnllYXJpbmZvLm1kYXltYXNrO1xuICAgICAgICB9LFxuICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLFxuICAgICAgICBjb25maWd1cmFibGU6IHRydWVcbiAgICB9KTtcbiAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoSXRlcmluZm8ucHJvdG90eXBlLCBcIm5tZGF5bWFza1wiLCB7XG4gICAgICAgIGdldDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMueWVhcmluZm8ubm1kYXltYXNrO1xuICAgICAgICB9LFxuICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLFxuICAgICAgICBjb25maWd1cmFibGU6IHRydWVcbiAgICB9KTtcbiAgICBJdGVyaW5mby5wcm90b3R5cGUueWRheXNldCA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgcmV0dXJuIFtyYW5nZSh0aGlzLnllYXJsZW4pLCAwLCB0aGlzLnllYXJsZW5dO1xuICAgIH07XG4gICAgSXRlcmluZm8ucHJvdG90eXBlLm1kYXlzZXQgPSBmdW5jdGlvbiAoXywgbW9udGgsIF9fKSB7XG4gICAgICAgIHZhciBzdGFydCA9IHRoaXMubXJhbmdlW21vbnRoIC0gMV07XG4gICAgICAgIHZhciBlbmQgPSB0aGlzLm1yYW5nZVttb250aF07XG4gICAgICAgIHZhciBzZXQgPSByZXBlYXQobnVsbCwgdGhpcy55ZWFybGVuKTtcbiAgICAgICAgZm9yICh2YXIgaSA9IHN0YXJ0OyBpIDwgZW5kOyBpKyspXG4gICAgICAgICAgICBzZXRbaV0gPSBpO1xuICAgICAgICByZXR1cm4gW3NldCwgc3RhcnQsIGVuZF07XG4gICAgfTtcbiAgICBJdGVyaW5mby5wcm90b3R5cGUud2RheXNldCA9IGZ1bmN0aW9uICh5ZWFyLCBtb250aCwgZGF5KSB7XG4gICAgICAgIC8vIFdlIG5lZWQgdG8gaGFuZGxlIGNyb3NzLXllYXIgd2Vla3MgaGVyZS5cbiAgICAgICAgdmFyIHNldCA9IHJlcGVhdChudWxsLCB0aGlzLnllYXJsZW4gKyA3KTtcbiAgICAgICAgdmFyIGkgPSBkYXRldXRpbC50b09yZGluYWwobmV3IERhdGUoRGF0ZS5VVEMoeWVhciwgbW9udGggLSAxLCBkYXkpKSkgLVxuICAgICAgICAgICAgdGhpcy55ZWFyb3JkaW5hbDtcbiAgICAgICAgdmFyIHN0YXJ0ID0gaTtcbiAgICAgICAgZm9yICh2YXIgaiA9IDA7IGogPCA3OyBqKyspIHtcbiAgICAgICAgICAgIHNldFtpXSA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G4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBkYXlwb3MgPSBNYXRoLmZsb29yKChwb3MgLSAxKSAvIHRpbWVzZXQubGVuZ3RoKTtcbiAgICAgICAgICAgIHRpbWVwb3MgPSBweW1vZChwb3MgLSAxLCB0aW1lc2V0Lmxlbmd0aCk7XG4gICAgICAgIH1cbiAgICAgICAgdmFyIHRtcCA9IFtdO1xuICAgICAgICBmb3IgKHZhciBrID0gc3RhcnQ7IGsgPCBlbmQ7IGsrKykge1xuICAgICAgICAgICAgdmFyIHZhbCA9IGRheXNldFtrXTtcbiAgICAgICAgICAgIGlmICghaXNQcmVzZW50KHZhbCkpXG4gICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB0bXAucHVzaCh2YWwpO1xuICAgICAgICB9XG4gICAgICAgIHZhciBpID0gdm9pZCAwO1xuICAgICAgICBpZiAoZGF5cG9zIDwgMCkge1xuICAgICAgICAgICAgaSA9IHRtcC5zbGljZShkYXlwb3MpWzBdO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgaSA9IHRtcFtkYXlwb3NdO1xuICAgICAgICB9XG4gICAgICAgIHZhciB0aW1lID0gdGltZXNldFt0aW1lcG9zXTtcbiAgICAgICAgdmFyIGRhdGUgPSBkYXRldXRpbC5mcm9tT3JkaW5hbChpaS55ZWFyb3JkaW5hbCArIGkpO1xuICAgICAgICB2YXIgcmVzID0gZGF0ZXV0aWwuY29tYmluZShkYXRlLCB0aW1lKTtcbiAgICAgICAgLy8gWFhYOiBjYW4gdGhpcyBldmVyIGJlIGluIHRoZSBhcnJheT9cbiAgICAgICAgLy8gLSBjb21wYXJlIHRoZSBhY3R1YWwgZGF0ZSBpbnN0ZWFkP1xuICAgICAgICBpZiAoIWluY2x1ZGVzKHBvc2xpc3QsIHJlcykpXG4gICAgICAgICAgICBwb3NsaXN0LnB1c2gocmVzKTtcbiAgICB9XG4gICAgZGF0ZXV0aWwu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b25lSWZOZWVkZWQocmVzLCBvcHRpb25zKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFpdGVyUmVzdWx0LmFjY2VwdChyZXpvbmVkRGF0ZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBlbWl0UmVzdWx0KGl0ZXJSZXN1bHQpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGlmIChjb3VudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLS1jb3VudDtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghY291bnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZW1pdFJlc3VsdChpdGVyUmVzdWx0KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIGZvciAodmFyIGogPSBzdGFydDsgaiA8IGVuZDsgaisrKSB7XG4gICAgICAgICAgICAgICAgdmFyIGN1cnJlbnREYXkgPSBkYXlzZXRbal07XG4gICAgICAgICAgICAgICAgaWYgKCFpc1ByZXNlbnQoY3VycmVudERheSkpIHtcbiAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHZhciBkYXRlID0gZGF0ZXV0aWwuZnJvbU9yZGluYWwoaWkueWVhcm9yZGluYWwgKyBjdXJyZW50RGF5KTtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBrID0gMDsgayA8IHRpbWVzZXQubGVuZ3RoOyBrKyspIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHRpbWUgPSB0aW1lc2V0W2tdO1xuICAgICAgICAgICAgICAgICAgICB2YXIgcmVzID0gZGF0ZXV0aWwuY29tYmluZShkYXRlLCB0aW1lKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHVudGlsICYmIHJlcyA+IHVudGlsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZW1pdFJlc3VsdChpdGVyUmVzdWx0KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBpZiAocmVzID49IGR0c3RhcnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciByZXpvbmVkRGF0ZSA9IHJlem9uZUlmTmVlZGVkKHJlcywgb3B0aW9ucyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWl0ZXJSZXN1bHQuYWNjZXB0KHJlem9uZWREYXRlKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBlbWl0UmVzdWx0KGl0ZXJSZXN1bHQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNvdW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLS1jb3VudDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWNvdW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBlbWl0UmVzdWx0KGl0ZXJSZXN1bHQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAob3B0aW9ucy5pbnRlcnZhbCA9PT0gMCkge1xuICAgICAgICAgICAgcmV0dXJuIGVtaXRSZXN1bHQoaXRlclJlc3VsdCk7XG4gICAgICAgIH1cbiAgICAgICAgLy8gSGFuZGxlIGZyZXF1ZW5jeSBhbmQgaW50ZXJ2YWxcbiAgICAgICAgY291bnRlckRhdGUuYWRkKG9wdGlvbnMsIGZpbHRlcmVkKTtcbiAgICAgICAgaWYgKGNvdW50Z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YWNoZSB9IGZyb20gJy4vY2FjaGUnO1xuaW1wb3J0IHsgV2Vla2RheSB9IGZyb20gJy4vd2Vla2RheSc7XG5pbXBvcnQgeyBpdGVyIH0gZnJvbSAnLi9pdGVyL2luZGV4Jztcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBSUnVsZVxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbmV4cG9ydCB2YXIgRGF5cyA9IHtcbiAgICBNTzogbmV3IFdlZWtkYXkoMCksXG4gICAgVFU6IG5ldyBXZWVrZGF5KDEpLFxuICAgIFdFOiBuZXcgV2Vla2RheSgyKSxcbiAgICBUSDogbmV3IFdlZWtkYXkoMyksXG4gICAgRlI6IG5ldyBXZWVrZGF5KDQpLFxuICAgIFNBOiBuZXcgV2Vla2RheSg1KSxcbiAgICBTVTogbmV3IFdlZWtkYXkoNilcbn07XG5leHBvcnQgdmFyIERFRkFVTFRfT1BUSU9OUyA9IHtcbiAgICBmcmVxOiBGcmVxdWVuY3kuWUVBUkxZLFxuICAgIGR0c3RhcnQ6IG51bGwsXG4gICAgaW50ZXJ2YWw6IDEsXG4gICAgd2tzdDogRGF5cy5NTyxcbiAgICBjb3VudDogbnVsbCxcbiAgICB1bnRpbDogbnVsbCxcbiAgICB0emlkOiBudWxsLFxuICAgIGJ5c2V0cG9zOiBudWxsLFxuICAgIGJ5bW9udGg6IG51bGwsXG4gICAgYnltb250aGRheTogbnVsbCxcbiAgICBieW5tb250aGRheTogbnVsbCxcbiAgICBieXllYXJkYXk6IG51bGwsXG4gICAgYnl3ZWVrbm86IG51bGwsXG4gICAgYnl3ZWVrZGF5OiBudWxsLFxuICAgIGJ5bndlZWtkYXk6IG51bGwsXG4gICAgYnlob3VyOiBudWxsLFxuICAgIGJ5bWludXRlOiBud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zpcbiAgICAgICAgICAgICAgICBpZiAocGFybXMubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcInVuc3VwcG9ydGVkIFJSVUxFIHBhcm06IFwiICsgcGFybXMuam9pbignLCcpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcnJ1bGV2YWxzLnB1c2gocGFyc2VTdHJpbmcobGluZSkpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnUkRBVEUnOlxuICAgICAgICAgICAgICAgIHZhciBfYiA9IC9SREFURSg/OjtUWklEPShbXjo9XSspKT8vaS5leGVjKGxpbmUpLCBfID0gX2JbMF0sIHJkYXRlVHppZCA9IF9iWzFdO1xuICAgICAgICAgICAgICAgIGlmIChyZGF0ZVR6aWQgJiYgIXR6aWQpIHtcbiAgICAgICAgICAgICAgICAgICAgdHppZCA9IHJkYXRlVHppZDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmRhdGV2YWxzID0gcmRhdGV2YWxzLmNvbmNhdChwYXJzZVJEYXRlKHZhbHVlLCBwYXJtcykpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnRVhSVUxFJzpcbiAgICAgICAgICAgICAgICBpZiAocGFybXMubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcInVuc3VwcG9ydGVkIEVYUlVMRSBwYXJtOiBcIiArIHBhcm1zLmpvaW4oJywnKSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGV4cnVsZXZhbHMucHVzaChwYXJzZVN0cmluZyh2YWx1ZSkpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnRVhEQVRFJzpcbiAgICAgICAgICAgICAgICBleGRhdGV2YWxzID0gZXhkYXRldmFscy5jb25jYXQocGFyc2VSRGF0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gICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjb25zdCBvcHRpb25zID0gUlJ1bGUucGFyc2VUZXh0KHJlY3VycmVuY2VSdWxlVGV4dCk7XG4gICAgICAgICAgICBpZiAob3B0aW9ucyAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIC8vIFBpY2sgdGhlIHJlZmVyZW5jZSBkYXRlIGZvciByZWN1cnJlbmNlIGJhc2VkIG9uIGltcG9ydGFuY2UuXG4gICAgICAgICAgICAgICAgLy8gQXNzdW1pbmcgZHVlIGRhdGUgaGFzIHRoZSBoaWdoZXN0IHByaW9yaXR5LlxuICAgICAgICAgICAgICAgIGxldCByZWZlcmVuY2VEYXRlOiBNb21lbnQgfCBudWxsID0gbnVsbDtcbiAgICAgICAgICAgICAgICAvLyBDbG9uZSB0aGUgbW9tZW50IG9iamVjdHMuXG4gICAgICAgICAgICAgICAgaWYgKGR1ZURhdGUpIHtcbiAgICAgICAgICAgICAgICAgICAgcmVmZXJlbmNlRGF0ZSA9IHdpbmRvdy5tb21lbnQoZHVlRGF0ZSk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChzY2hlZHVsZWREYXRlKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlZmVyZW5jZURhdGUgPSB3aW5kb3cubW9tZW50KHNjaGVkdWxlZERhdGUpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoc3RhcnREYXRlKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlZmVyZW5jZURhdGUgPSB3aW5kb3cubW9tZW50KHN0YXJ0RGF0ZSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKHJlZmVyZW5jZURhdGUgIT09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5kdHN0YXJ0ID0gd2luZG93XG4gICAgICAgICAgICAgICAgICAgICAgICAubW9tZW50KHJlZmVyZW5jZURhdGUpXG4gICAgICAgICAgICAgICAgICAgICAgICAuc3RhcnRPZignZGF5JylcbiAgICAgICAgICAgICAgICAgICAgICAgIC51dGModHJ1ZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIC50b0RhdGUoKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBjb25zdCBycnVsZSA9IG5ldyBSUnVsZShvcHRpb25zKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFJlY3VycmVuY2Uoe1xuICAgICAgICAgICAgICAgICAgICBycnVsZSxcbiAgICAgICAgICAgICAgICAgICAgcmVmZXJlbmNlRGF0ZSxcbiAgICAgICAgICAgICAgICAgICAgc3RhcnREYXRlLFxuICAgICAgICAgICAgICAgICAgICBzY2hlZHVsZWREYXRlLFxuICAgICAgICAgICAgICAgICAgICBkdWVEYXRlLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgICAgICAgLy8gQ291bGQgbm90IHJlYWQgcmVjdXJyZW5jZSBydWxlLiBVc2VyIHBvc3NpYmx5IG5vdCBkb25lIHR5cGluZy5cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIHB1YmxpYyB0b1RleHQoKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIHRoaXMucnJ1bGUudG9UZXh0KCk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB0aGUgZGF0ZXMgb2YgdGhlIG5leHQgb2NjdXJyZW5jZSBvciBudWxsIGlmIHRoZXJlIGlzIG5vIG5leHQgb2NjdXJyZW5jZS5cbiAgICAgKi9cbiAgICBwdWJsaWMgbmV4dCgpOiB7XG4gICAgICAgIHN0YXJ0RGF0ZTogTW9tZW50IHwgbnVsbDtcbiAgICAgICAgc2NoZWR1bGVkRGF0ZTogTW9tZW50IHwgbnVsbDtcbiAgICAgICAgZHVlRGF0ZTogTW9tZW50IHwgbnVsbDtcbiAgICB9IH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AgICAgICAgICAgICAgICAgICBNYXRoLnJvdW5kKG9yaWdpbmFsRGlmZmVyZW5jZS5hc0RheXMoKSksXG4gICAgICAgICAgICAgICAgICAgICAgICAnZGF5cycsXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmICh0aGlzLnNjaGVkdWxlZERhdGUpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qgb3JpZ2luYWxEaWZmZXJlbmNlID0gd2luZG93Lm1vbWVudC5kdXJhdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2NoZWR1bGVkRGF0ZS5kaWZmKHRoaXMucmVmZXJlbmNlRGF0ZSksXG4gICAgICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gQ2xvbmluZyBzbyB0aGF0IG9yaWdpbmFsIHdvbid0IGJlIG1hbmlwdWxhdGVkOlxuICAgICAgICAgICAgICAgICAgICBzY2hlZHVsZWREYXRlID0gd2luZG93Lm1vbWVudChuZXh0T2NjdXJyZW5jZSk7XG4gICAgICAgICAgICAgICAgICAgIC8vIFJvdW5kaW5nIGRheXMgdG8gaGFuZGxlIGNyb3NzIGRheWxpZ2h0LXNhdmluZ3MtdGltZSByZWN1cnJlbmNlcy5cbiAgICAgICAgICAgICAgICAgICAgc2NoZWR1bGVkRGF0ZS5hZGQoXG4gICAgICAgICAgICAgICAgICAgICAgICBNYXRoLnJvdW5kKG9yaWdpbmFsRGlmZmVyZW5jZS5hc0RheXMoKSksXG4gICAgICAgICAgICAgICAgICAgICAgICAnZGF5cycsXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmR1ZURhdGUpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qgb3JpZ2luYWxEaWZmZXJlbmNlID0gd2luZG93Lm1vbWVudC5kdXJhdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZHVlRGF0ZS5kaWZmKHRoaXMucmVmZXJlbmNlRGF0ZSksXG4gICAgICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gQ2xvbmluZyBzbyB0aGF0IG9yaWdpbmFsIHdvbid0IGJlIG1hbmlwdWxhdGVkOlxuICAgICAgICAgICAgICAgICAgICBkdWVEYXRlID0gd2luZG93Lm1vbWVudChuZXh0T2NjdXJyZW5jZSk7XG4gICAgICAgICAgICAgICAgICAgIC8vIFJvdW5kaW5nIGRheXMgdG8gaGFuZGxlIGNyb3NzIGRheWxpZ2h0LXNhdmluZ3MtdGltZSByZWN1cnJlbmNlcy5cbiAgICAgICAgICAgICAgICAgICAgZHVlRGF0ZS5hZGQoXG4gICAgICAgICAgICAgICAgICAgICAgICBNYXRoLnJvdW5kKG9yaWdpbmFsRGlmZmVyZW5jZS5hc0RheXMoKSksXG4gICAgICAgICAgICAgICAgICAgICAgICAnZGF5cycsXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIHN0YXJ0RGF0ZSxcbiAgICAgICAgICAgICAgICBzY2hlZHVsZWREYXRlLFxuICAgICAgICAgICAgICAgIGR1ZURhdGUsXG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxufVxuIiwiaW1wb3J0IHR5cGUgeyBUYXNrIH0gZnJvbSAnLi9UYXNrJztcblxuZXhwb3J0IGNsYXNzIFVyZ2VuY3kge1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGR1ZUNvZWZmaWNpZW50ID0gMTIuMDtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSBzY2hlZHVsZWRDb2VmZmljaWVudCA9IDUuMDtcbiAgICBwcml2YXRlIHN0YXRpYyByZ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4yOyAvLyA+IDIgd2tzXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHVyZ2VuY3kgKz0gZHVlTXVsdGlwbGllciAqIFVyZ2VuY3kuZHVlQ29lZmZpY2llbnQ7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGFzay5zY2hlZHVsZWREYXRlICE9PSBudWxsKSB7XG4gICAgICAgICAgICBpZiAod2luZG93Lm1vbWVudCgpLmlzU2FtZU9yQWZ0ZXIodGFzay5zY2hlZHVsZWREYXRlKSkge1xuICAgICAgICAgICAgICAgIHVyZ2VuY3kgKz0gMSAqIFVyZ2VuY3kuc2NoZWR1bGVkQ29lZmZpY2llbnQ7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGFzay5zdGFydERhdGUgIT09IG51bGwpIHtcbiAgICAgICAgICAgIGlmICh3aW5kb3cubW9tZW50KCkuaXNCZWZvcmUodGFzay5zdGFydERhdGUpKSB7XG4gICAgICAgICAgICAgICAgdXJnZW5jeSArPSAxICogVXJnZW5jeS5zdGFydGVkQ29lZmZpY2llbnQ7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBzd2l0Y2ggKHRhc2sucHJpb3JpdHkpIHtcbiAgICAgICAgICAgIC8vIEhpZ2hcbiAgICAgICAgICAgIGNhc2UgJzEnOlxuICAgICAgICAgICAgICAgIHVyZ2VuY3kgKz0gMS4wICogVXJnZW5jeS5wcmlvcml0eUNvZWZmaWNpZW50O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgLy8gTWVkaXVtXG4gICAgICAgICAgICBjYXNlICcyJzpcbiAgICAgICAgICAgICAgICB1cmdlbmN5ICs9IDAuNjUgKiBVcmdlbmN5LnByaW9yaXR5Q29lZmZpY2llbnQ7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAvLyBOb25lXG4gICAgICAgICAgICBjYXNlICczJzpcbiAgICAgICAgICAgICAgICB1cmd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gICAgcHVibGljIHN0YXRpYyByZWFkb25seSBibG9ja0xpbmtSZWdleCA9IC8gXFxeW2EtekEtWjAtOS1dKyQvdTtcblxuICAgIHByaXZhdGUgX3VyZ2VuY3k6IG51bWJlciB8IG51bGwgPSBudWxsO1xuXG4gICAgY29uc3RydWN0b3Ioe1xuICAgICAgICBzdGF0dXMsXG4gICAgICAgIGRlc2NyaXB0aW9uLFxuICAgICAgICBwYXRoLFxuICAgICAgICBpbmRlbnRhdGlvbixcbiAgICAgICAgc2VjdGlvblN0YXJ0LFxuICAgICAgICBzZWN0aW9uSW5kZXgsXG4gICAgICAgIG9yaWdpbmFsU3RhdHVzQ2hhcmFjdGVyLFxuICAgICAgICBwcmVjZWRpbmdIZWFkZXIsXG4gICAgICAgIHByaW9yaXR5LFxuICAgICAgICBzdGFydERhdGUsXG4gICAgICAgIHNjaGVkdWxlZERhdGUsXG4gICAgICAgIGR1ZURhdGUsXG4gICAgICAgIGRvbmVEYXRlLFxuICAgICAgICByZWN1cnJlbmNlLFxuICAgICAgICBibG9ja0xpbmssXG4gICAgfToge1xuICAgICAgICBzdGF0dXM6IFN0YXR1cztcbiAgICAgICAgZGVzY3JpcHRpb246IHN0cmluZztcbiAgICAgICAgcGF0aDogc3RyaW5nO1xuICAgICAgICBpbmRlbnRhdGlvbjogc3RyaW5nO1xuICAgICAgICBzZWN0aW9uU3RhcnQ6IG51bWJlcjtcbiAgICAgICAgc2VjdGlvbkluZGV4OiBudW1iZXI7XG4gICAgICAgIG9yaWdpbmFsU3RhdHVzQ2hhcmFjdGVyOiBzdHJpbmc7XG4gICAgICAgIHByZWNlZGluZ0hlYWRlcjogc3RyaW5nIHwgbnVsbDtcbiAgICAgICAgcHJpb3JpdHk6IFByaW9yaXR5O1xuICAgICAgICBzdGFydERhdGU6IG1vbWVudC5Nb21lbnQgfCBudWxsO1xuICAgICAgICBzY2hlZHVsZWREYXRlOiBtb21lbnQuTW9tZW50IHwgbnVsbDtcbiAgICAgICAgZHVlRGF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gIHNlY3Rpb25TdGFydCxcbiAgICAgICAgc2VjdGlvbkluZGV4LFxuICAgICAgICBwcmVjZWRpbmdIZWFkZXIsXG4gICAgfToge1xuICAgICAgICBsaW5lOiBzdHJpbmc7XG4gICAgICAgIHBhdGg6IHN0cmluZztcbiAgICAgICAgc2VjdGlvblN0YXJ0OiBudW1iZXI7XG4gICAgICAgIHNlY3Rpb25JbmRleDogbnVtYmVyO1xuICAgICAgICBwcmVjZWRpbmdIZWFkZXI6IHN0cmluZyB8IG51bGw7XG4gICAgfSk6IFRhc2sgfCBudWxsIHtcbiAgICAgICAgY29uc3QgcmVnZXhNYXRjaCA9IGxpbmUubWF0Y2goVGFzay50YXNrUmVnZXgpO1xuICAgICAgICBpZiAocmVnZXhNYXRjaCA9PT0gbnVsbCkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBpbmRlbnRhdGlvbiA9IHJlZ2V4TWF0Y2hbMV07XG4gICAgICAgIGNvbnN0IHN0YXR1c1N0cmluZyA9IHJlZ2V4TWF0Y2hbMl0udG9Mb3dlckNhc2UoKTtcblxuICAgICAgICBsZXQgc3RhdHVzOiBTdGF0dXM7XG4gICAgICAgIHN3aXRjaCAoc3RhdHVzU3RyaW5nKSB7XG4gICAgICAgICAgICBjYXNlICcgJzpcbiAgICAgICAgICAgICAgICBzdGF0dXMgPSBTdGF0dXMuVG9kbztcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgc3RhdHVzID0gU3RhdHVzLkRvbmU7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBtYXRjaFszXSBpbmNsdWRlcyB0aGUgd2hvbGUgYm9keSBvZiB0aGUgdGFzayBhZnRlciB0aGUgYnJhY2tldHMuXG4gICAgICAgIGNvbnN0IGJvZHkgPSByZWdleE1hdGNoWzNdLnRyaW0oKTtcblxuICAgICAgICBjb25zdCB7IGdsb2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gZHVlRGF0ZTogTW9tZW50IHwgbnVsbCA9IG51bGw7XG4gICAgICAgIGxldCBkb25lRGF0ZTogTW9tZW50IHwgbnVsbCA9IG51bGw7XG4gICAgICAgIGxldCByZWN1cnJlbmNlOiBSZWN1cnJlbmNlIHwgbnVsbCA9IG51bGw7XG4gICAgICAgIC8vIEFkZCBhIFwibWF4IHJ1bnNcIiBmYWlsc2FmZSB0byBuZXZlciBlbmQgaW4gYW4gZW5kbGVzcyBsb29wOlxuICAgICAgICBjb25zdCBtYXhSdW5zID0gNztcbiAgICAgICAgbGV0IHJ1bnMgPSAwO1xuICAgICAgICBkbyB7XG4gICAgICAgICAgICBtYXRjaGVkID0gZmFsc2U7XG4gICAgICAgICAgICBjb25zdCBwcmlvcml0eU1hdGNoID0gZGVzY3JpcHRpb24ubWF0Y2goVGFzay5wcmlvcml0eVJlZ2V4KTtcbiAgICAgICAgICAgIGlmIChwcmlvcml0eU1hdGNoICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgc3dpdGNoIChwcmlvcml0eU1hdGNoWzFdKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ/CflL0nOlxuICAgICAgICAgICAgICAgICAgICAgICAgcHJpb3JpdHkgPSBQcmlvcml0eS5Mb3c7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAn8J+UvCc6XG4gICAgICAgICAgICAgICAgICAgICAgICBwcmlvcml0eSA9IFByaW9yaXR5Lk1lZGl1bTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICBjYXNlICfij6snOlxuICAgICAgICAgICAgICAgICAgICAgICAgcHJpb3JpdHkgPSBQcmlvcml0eS5IaWdoO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gPSBkZXNjcmlwdGlvblxuICAgICAgICAgICAgICAgICAgICAucmVwbGFjZShUYXNrLnByaW9yaXR5UmVnZXgsICcnKVxuICAgICAgICAgICAgICAgICAgICAudHJpbSgpO1xuICAgICAgICAgICAgICAgIG1hdGNoZWQgPSB0cnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCBkb25lRGF0ZU1hdGNoID0gZGVzY3JpcHRpb24ubWF0Y2goVGFzay5kb25lRGF0ZVJlZ2V4KTtcbiAgICAgICAgICAgIGlmIChkb25lRGF0ZU1hdGNoICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgZG9uZURhdGUgPSB3aW5kb3cubW9tZW50KGRvbmVEYXRlTWF0Y2hbMV0sIFRhc2suZGF0ZUZvcm1hdCk7XG4gICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gPSBkZXNjcmlwdGlvblxuICAgICAgICAgICAgICAgICAgICAucmVwbGFjZShUYXNrLmRvbmVEYXRlUmVnZXgsICcnKVxuICAgICAgICAgICAgICAgICAgICAudHJpbSgpO1xuICAgICAgICAgICAgICAgIG1hdGNoZWQgPSB0cnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCBkdWVEYXRlTWF0Y2ggPSBkZXNjcmlwdGlvbi5tYXRjaChUYXNrLmR1ZURhdGVSZWdleCk7XG4gICAgICAgICAgICBpZiAoZHVlRGF0ZU1hdGNoICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgZHVlRGF0ZSA9IHdpbmRvdy5tb21lbnQoZHVlRGF0ZU1hdGNoWzFdLCBUYXNrLmRhdGVGb3JtYXQpO1xuICAgICAgICAgICAgICAgIGRlc2NyaXB0aW9uID0gZGVzY3JpcHRpb24ucmVwbGFjZShUYXNrLmR1ZURhdGVSZWdleCwgJycpLnRyaW0oKTtcbiAgICAgICAgICAgICAgICBtYXRjaGVkID0gdHJ1ZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY29uc3Qgc2NoZWR1bGVkRGF0ZU1hdGNoID0gZGVzY3JpcHRpb24ubWF0Y2goXG4gICAgICAgICAgICAgICAgVGFzay5zY2hlZHVsZWREYXRlUmVnZXgsXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgaWYgKHNjaGVkdWxlZERhdGVNYXRjaCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIHNjaGVkdWxlZERhdGUgPSB3aW5kb3cubW9tZW50KFxuICAgICAgICAgICAgICAgICAgICBzY2hlZHVsZWREYXRlTWF0Y2hbMV0sXG4gICAgICAgICAgICAgICAgICAgIFRhc2suZGF0ZUZvcm1hdCxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIGRlc2NyaXB0aW9uID0gZGVzY3JpcHRpb25cbiAgICAgICAgICAgICAgICAgICAgLnJlcGxhY2UoVGFzay5zY2hlZHVsZWREYXRlUmVnZXgsICcnKVxuICAgICAgICAgICAgICAgICAgICAudHJpbSgpO1xuICAgICAgICAgICAgICAgIG1hdGNoZWQgPSB0cnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCBzdGFydERhdGVNYXRjaCA9IGRlc2NyaXB0aW9uLm1hdGNoKFRhc2suc3RhcnREYXRlUmVnZXgpO1xuICAgICAgICAgICAgaWYgKHN0YXJ0RGF0ZU1hdGNoICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgc3RhcnREYXRlID0gd2luZG93Lm1vbWVudChzdGFydERhdGVNYXRjaFsxXSwgVGFzay5kYXRlRm9ybWF0KTtcbiAgICAgICAgICAgICAgICBkZXNjcmlwdGlvbiA9IGRlc2NyaXB0aW9uXG4gICAgICAgICAgICAgICAgICAgIC5yZXBsYWNlKFRhc2suc3RhcnREYXRlUmVnZXgsICcnKVxuICAgICAgICAgICAgICAgICAgICAudHJpbSgpO1xuICAgICAgICAgICAgICAgIG1hdGNoZWQgPSB0cnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCByZWN1cnJlbmNlTWF0Y2ggPSBkZXNjcmlwdGlvbi5tYXRjaChUYXNrLnJlY3VycmVuY2VSZWdleCk7XG4gICAgICAgICAgICBpZiAocmVjdXJyZW5jZU1hdGNoICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgcmVjdXJyZW5jZSA9IFJlY3VycmVuY2UuZnJvbVRleHQoe1xuICAgICAgICAgICAgICAgICAgICByZWN1cnJlbmNlUnVsZVRleHQ6IHJlY3VycmVuY2VNYXRjaFsxXS50cmltKCksXG4gICAgICAgICAgICAgICAgICAgIHN0YXJ0RGF0ZSxcbiAgICAgICAgICAgICAgICAgICAgc2NoZWR1bGVkRGF0ZSxcbiAgICAgICAgICAgICAgICAgICAgZHVlRGF0ZSxcbiAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgIGRlc2NyaXB0aW9uID0gZGVzY3JpcHRpb25cbiAgICAgICAgICAgICAgICAgICAgLnJlcGxhY2UoVGFzay5yZWN1cnJlbmNlUmVnZXgsICcnKVxuICAgICAgICAgICAgICAgICAgICAudHJpbSgpO1xuICAgICAgICAgICAgICAgIG1hdGNoZWQgPSB0cnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBydW5zKys7XG4gICAgICAgIH0gd2hpbGUgKG1hdGNoZWQgJiYgcnVucyA8PSBtYXhSdW5zKTtcblxuICAgICAgICBjb25zdCB0YXNrID0gbmV3IFRhc2soe1xuICAgICAgICAgICAgc3RhdHVzLFxuICAgICAgICAgICAgZGVzY3JpcHRpb24sXG4gICAgICAgICAgICBwYXRoLFxuICAgICAgICAgICAgaW5kZW50YXRpb24sXG4gICAgICAgICAgICBzZWN0aW9uU3RhcnQsXG4gICAgICAgICAgICBzZWN0aW9uSW5kZXgsXG4gICAgICAgICAgICBvcmlnaW5hbFN0YXR1c0NoYXJhY3Rlcjogc3RhdHVzU3RyaW5nLFxuICAgICAgICAgICAgcHJlY2VkaW5nSGVhZGVyLFxuICAgICAgICAgICAgcHJpb3JpdHksXG4gIC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IH1cblxuICAgICAgICByZXR1cm4gbGk7XG4gICAgfVxuXG4gICAgcHVibGljIHRvU3RyaW5nKGxheW91dE9wdGlvbnM/OiBMYXlvdXRPcHRpb25zKTogc3RyaW5nIHtcbiAgICAgICAgbGF5b3V0T3B0aW9ucyA9IGxheW91dE9wdGlvbnMgPz8gbmV3IExheW91dE9wdGlvbnMoKTtcbiAgICAgICAgbGV0IHRhc2tTdHJpbmcgPSB0aGlzLmRlc2NyaXB0aW9uO1xuXG4gICAgICAgIGlmICghbGF5b3V0T3B0aW9ucy5oaWRlUHJpb3JpdHkpIHtcbiAgICAgICAgICAgIGxldCBwcmlvcml0eTogc3RyaW5nID0gJyc7XG5cbiAgICAgICAgICAgIGlmICh0aGlzLnByaW9yaXR5ID09PSBQcmlvcml0eS5IaWdoKSB7XG4gICAgICAgICAgICAgICAgcHJpb3JpdHkgPSAnIOKPqyc7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMucHJpb3JpdHkgPT09IFByaW9yaXR5Lk1lZGl1bSkge1xuICAgICAgICAgICAgICAgIHByaW9yaXR5ID0gJyDwn5S8JztcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5wcmlvcml0eSA9PT0gUHJpb3JpdHkuTG93KSB7XG4gICAgICAgICAgICAgICAgcHJpb3JpdHkgPSAnIPCflL0nO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0YXNrU3RyaW5nICs9IHByaW9yaXR5O1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCFsYXlvdXRPcHRpb25zLmhpZGVSZWN1cnJlbmNlUnVsZSAmJiB0aGlzLnJlY3VycmVuY2UpIHtcbiAgICAgICAgICAgIGNvbnN0IHJlY3VycmVuY2VSdWxlOiBzdHJpbmcgPSBsYXlvdXRPcHRpb25zLnNob3J0TW9kZVxuICAgICAgICAgICAgICAgID8gJyDwn5SBJ1xuICAgICAgICAgICAgICAgIDogYCDwn5SBICR7dGhpcy5yZWN1cnJlbmNlLn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tYXQpfWA7XG4gICAgICAgICAgICB0YXNrU3RyaW5nICs9IGR1ZURhdGU7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIWxheW91dE9wdGlvbnMuaGlkZURvbmVEYXRlICYmIHRoaXMuZG9uZURhdGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGRvbmVEYXRlOiBzdHJpbmcgPSBsYXlvdXRPcHRpb25zLnNob3J0TW9kZVxuICAgICAgICAgICAgICAgID8gJyDinIUnXG4gICAgICAgICAgICAgICAgOiBgIOKchSAke3RoaXMuZG9uZURhdGUuZm9ybWF0KFRhc2suZGF0ZUZvcm1hdCl9YDtcbiAgICAgICAgICAgIHRhc2tTdHJpbmcgKz0gZG9uZURhdGU7XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBibG9ja0xpbms6IHN0cmluZyA9IHRoaXMuYmxvY2tMaW5rID8/ICcnO1xuICAgICAgICB0YXNrU3RyaW5nICs9IGJsb2NrTGluaztcblxuICAgICAgICByZXR1cm4gdGFza1N0cmluZztcbiAgICB9XG5cbiAgICBwdWJsaWMgdG9GaWxlTGluZVN0cmluZygpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gYCR7dGhpcy5pbmRlbnRhdGlvbn0tIFske1xuICAgICAgICAgICAgdGhpcy5vcmlnaW5hbFN0YXR1c0NoYXJhY3RlclxuICAgICAgICB9XSAke3RoaXMudG9TdHJpbmcoKX1gO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFRvZ2dsZXMgdGhpcyB0YXNrIGFuZCByZXR1cm5zIHRoZSByZXN1bHRpbmcgdGFza3MuXG4gICAgICpcbiAgICAgKiBUb2dnbGluZyBjYW4gcmVzdWx0IGluIG1vcmUgdGhhbiBvbmUgcmV0dXJuZWQgdGFzayBpbiB0aGUgY2FzZSBvZlxuICAgICAqIHJlY3VycmVuY2UuIElmIGl0IGlzIGEgcmVjdXJyaW5nIHRhc2ssIHRoZSB0b2dnbGVkIHRhc2sgd2lsbCBiZSByZXR1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ldyBUYXNrKHtcbiAgICAgICAgICAgIC4uLnRoaXMsXG4gICAgICAgICAgICBzdGF0dXM6IG5ld1N0YXR1cyxcbiAgICAgICAgICAgIGRvbmVEYXRlOiBuZXdEb25lRGF0ZSxcbiAgICAgICAgICAgIG9yaWdpbmFsU3RhdHVzQ2hhcmFjdGVyOiBuZXdTdGF0dXMgPT09IFN0YXR1cy5Eb25lID8gJ3gnIDogJyAnLFxuICAgICAgICB9KTtcblxuICAgICAgICBjb25zdCBuZXdUYXNrczogVGFza1tdID0gW107XG5cbiAgICAgICAgaWYgKG5leHRPY2N1cnJlbmNlICE9PSBudWxsKSB7XG4gICAgICAgICAgICBjb25zdCBuZXh0VGFzayA9IG5ldyBUYXNrKHtcbiAgICAgICAgICAgICAgICAuLi50aGlzLFxuICAgICAgICAgICAgICAgIC4uLm5leHRPY2N1cnJlbmNlLFxuICAgICAgICAgICAgICAgIC8vIE5ldyBvY2N1cnJlbmNlcyBjYW5ub3QgaGF2ZSB0aGUgc2FtZSBibG9jayBsaW5rLlxuICAgICAgICAgICAgICAgIC8vIEFuZCByYW5kb20gYmxvY2sgbGlua3MgZG9uJ3QgaGVscC5cbiAgICAgICAgICAgICAgICBibG9ja0xpbms6ICcnLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBuZXdUYXNrcy5wdXNoKG5leHRUYXNrKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIFdyaXRlIG5leHQgb2NjdXJyZW5jZSBiZWZvcmUgcHJldmlvdXMgb2NjdXJyZW5jZS5cbiAgICAgICAgbmV3VGFza3MucHVzaCh0b2dnbGVkVGFzayk7XG5cbiAgICAgICAgcmV0dXJuIG5ld1Rhc2tzO1xuICAgIH1cblxuICAgIHB1YmxpYyBnZXQgdXJnZW5jeSgpOiBudW1iZXIge1xuICAgICAgICBpZiAodGhpcy5fdXJnZW5jeSA9PT0gbnVsbCkge1xuICAgICAgICAgICAgdGhpcy5fdXJnZW5jeSA9IFVyZ2VuY3kuY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zZXRUZXh0KFxuICAgICAgICAgICAgICAgICAgICAgICAgVGFzay50b1Rvb2x0aXBEYXRlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaWduaWZpZXI6ICfwn5urJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRlOiB0aGlzLnN0YXJ0RGF0ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICh0aGlzLnNjaGVkdWxlZERhdGUpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qgc2NoZWR1bGVkRGF0ZURpdiA9IHRvb2x0aXAuY3JlYXRlRGl2KCk7XG4gICAgICAgICAgICAgICAgICAgIHNjaGVkdWxlZERhdGVEaXYuc2V0VGV4dChcbiAgICAgICAgICAgICAgICAgICAgICAgIFRhc2sudG9Ub29sdGlwRGF0ZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2lnbmlmaWVyOiAn4o+zJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRlOiB0aGlzLnNjaGVkdWxlZERhdGUsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5kdWVEYXRlKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGR1ZURhdGVEaXYgPSB0b29sdGlwLmNyZWF0ZURpdigpO1xuICAgICAgICAgICAgICAgICAgICBkdWVEYXRlRGl2LnNldFRleHQoXG4gICAgICAgICAgICAgICAgICAgICAgICBUYXNrLnRvVG9vbHRpcERhdGUoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNpZ25pZmllcjogJ/Cfk4UnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGU6IHRoaXMuZHVlRGF0ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmRvbmVEYXRlKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGRvbmVEYXRlRGl2ID0gdG9vbHRpcC5jcmVhdGVEaXYoKTtcbiAgICAgICAgICAgICAgICAgICAgZG9uZURhdGVEaXYuc2V0VGV4dChcbiAgICAgICAgICAgICAgICAgICAgICAgIFRhc2sudG9Ub29sdGlwRGF0ZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2lnbmlmaWVyOiAn4pyFJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRlOiB0aGlzLmRvbmVEYXRlLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgZWxlbWVudC5hZGRFdmVudExpc3RlbmVyKCdtb3VzZWxlYXZlJywgKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0b29sdGlwLnJlbW92ZSgpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIHN0YXRpYyB0b1Rvb2x0aXBEYXRlKHtcbiAgICAgICAgc2lnbmlmaWVyLFxuICAgICAgICBkYXRlLFxuICAgIH06IHtcbiAgICAgICAgc2lnbmlmaWVyOiBzdHJpbmc7XG4gICAgICAgIGRhdGU6IE1vbWVudDtcbiAgICB9KTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIGAke3NpZ25pZmllcn0gJHtkYXRlLmZvcm1hdChUYXNrLmRhdGVGb3JtYXQpfSAoJHtkYXRlLmZyb20oXG4gICAgICAgICAgICB3aW5kb3cubW9tZW50KCkuc3RhcnRPZignZGF5JyksXG4gICAgICAgICl9KWA7XG4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V2ZW50ZVJlZmVyZW5jZSk7XG5cbiAgICAgICAgLy8gRG9lcyBub3QgZmlyZSB3aGVuIHN0YXJ0aW5nIHVwIG9ic2lkaWFuIGFuZCBvbmx5IHdvcmtzIGZvciBjaGFuZ2VzLlxuICAgICAgICBjb25zdCBjaGFuZ2VkRXZlbnRSZWZlcmVuY2UgPSB0aGlzLm1ldGFkYXRhQ2FjaGUub24oXG4gICAgICAgICAgICAnY2hhbmdlZCcsXG4gICAgICAgICAgICAoZmlsZTogVEZpbGUpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLnRhc2tzTXV0ZXgucnVuRXhjbHVzaXZlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5pbmRleEZpbGUoZmlsZSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9LFxuICAgICAgICApO1xuICAgICAgICB0aGlzLm1ldGFkYXRhQ2FjaGVFdmVudFJlZmVyZW5jZXMucHVzaChjaGFuZ2VkRXZlbnRSZWZlcmVuY2UpO1xuICAgIH1cblxuICAgIHByaXZhdGUgc3Vic2NyaWJlVG9WYXVsdCgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgY3JlYXRlZEV2ZW50UmVmZXJlbmNlID0gdGhpcy52YXVsdC5vbihcbiAgICAgICAgICAgICdjcmVhdGUnLFxuICAgICAgICAgICAgKGZpbGU6IFRBYnN0cmFjdEZpbGUpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIShmaWxlIGluc3RhbmNlb2YgVEZpbGUpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB0aGlzLnRhc2tzTXV0ZXgucnVuRXhjbHVzaXZlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5pbmRleEZpbGUoZmlsZSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9LFxuICAgICAgICApO1xuICAgICAgICB0aGlzLnZhdWx0RXZlbnRSZWZlcmVuY2VzLnB1c2goY3JlYXRlZEV2ZW50UmVmZXJlbmNlKTtcblxuICAgICAgICBjb25zdCBkZWxldGVkRXZlbnRSZWZlcmVuY2UgPSB0aGlzLnZhdWx0Lm9uKFxuICAgICAgICAgICAgJ2RlbGV0ZScsXG4gICAgICAgICAgICAoZmlsZTogVEFic3RyYWN0RmlsZSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICghKGZpbGUgaW5zdGFuY2VvZiBURmlsZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHRoaXMudGFza3NNdXRleC5ydW5FeGNsdXNpdmUoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnRhc2tzID0gdGhpcy50YXNrcy5maWx0ZXIoKHRhc2s6IFRhc2spID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0YXNrLnBhdGggIT09IGZpbGUucGF0aDtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5ub3RpZnlTdWJzY3JpYmVycygpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgKTtcbiAgICAgICAgdGhpcy52YXVsdEV2ZW50UmVmZXJlbmNlcy5wdXNoKGRlbGV0ZWRFdmVudFJlZmVyZW5jZSk7XG5cbiAgICAgICAgY29uc3QgcmVuYW1lZEV2ZW50UmVmZXJlbmNlID0gdGhpcy52YXVsdC5vbihcbiAgICAgICAgICAgICdyZW5hbWUnLFxuICAgICAgICAgICAgKGZpbGU6IFRBYnN0cmFjdEZpbGUsIG9sZFBhdGg6IHN0cmluZykgPT4ge1xuICAgICAgICAgICAgICAgIGlmICghKGZpbGUgaW5zdGFuY2VvZiBURmlsZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHRoaXMudGFza3NNdXRleC5ydW5FeGNsdXNpdmUoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnRhc2tzID0gdGhpcy50YXNrcy5tYXAoKHRhc2s6IFRhc2spOiBUYXNrID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0YXNrLnBhdGggPT09IG9sZFBhdGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFRhc2soeyAuLi50YXNrLCBwYXRoOiBmaWxlLnBhdGggfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0YXNrO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICB0aGlzLm5vdGlmeVN1YnNjcmliZXJzKCk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9LFxuICAgICAgICApO1xuICAgICAgICB0aGlzLnZhdWx0RXZlbnRSZWZlcmVuY2VzLnB1c2gocmVuYW1lZEV2ZW50UmVmZXJlbmNlKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHN1YnNjcmliZVRvRXZlbnRzKCk6IHZvaWQge1xuICAgICAgICBjb25zdCByZXF1ZXN0UmVmZXJlbmNlID0gdGhpcy5ldmVudHMub25SZXF1ZXN0Q2FjaGVVcGRhdGUoKGhhbmRsZXIpID0+IHtcbiAgICAgICAgICAgIGhhbmRsZXIoeyB0YXNrczogdGhpcy50YXNrcywgc3RhdGU6IHRoaXMuc3RhdGUgfSk7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLmV2ZW50c0V2ZW50UmVmZXJlbmNlcy5wdXNoKHJlcXVlc3RSZWZlcmVuY2UpO1xuICAgIH1cblxuICAgIHByaXZhdGUgbG9hZFZhdWx0KCk6IFBy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iAoXG4gICAgICAgICAgICAgICAgICAgIGN1cnJlbnRTZWN0aW9uID09PSBudWxsIHx8XG4gICAgICAgICAgICAgICAgICAgIGN1cnJlbnRTZWN0aW9uLnBvc2l0aW9uLmVuZC5saW5lIDxcbiAgICAgICAgICAgICAgICAgICAgICAgIGxpc3RJdGVtLnBvc2l0aW9uLnN0YXJ0LmxpbmVcbiAgICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gV2Ugd2VudCBwYXN0IHRoZSBjdXJyZW50IHNlY3Rpb24gKG9yIHRoaXMgaXMgdGhlIGZpcnN0IHRhc2spLlxuICAgICAgICAgICAgICAgICAgICAvLyBGaW5kIHRoZSBzZWN0aW9uIHRoYXQgaXMgcmVsZXZhbnQgZm9yIHRoaXMgdGFzayBhbmQgdGhlIGZvbGxvd2luZyBvZiB0aGUgc2FtZSBzZWN0aW9uLlxuICAgICAgICAgICAgICAgICAgICBjdXJyZW50U2VjdGlvbiA9IHRoaXMuZ2V0U2VjdGlvbih7XG4gICAgICAgICAgICAgICAgICAgICAgICBsaW5lTnVtYmVyVGFzazogbGlzdEl0ZW0ucG9zaXRpb24uc3RhcnQubGluZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNlY3Rpb25zOiBmaWxlQ2FjaGUuc2VjdGlvbnMsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBzZWN0aW9uSW5kZXggPSAwO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChjdXJyZW50U2VjdGlvbiA9PT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAvLyBDYW5ub3QgcHJvY2VzcyBhIHRhc2sgd2l0aG91dCBhIHNlY3Rpb24uXG4gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGNvbnN0IGxpbmUgPSBmaWxlTGluZXNbbGlzdEl0ZW0ucG9zaXRpb24uc3RhcnQubGluZV07XG4gICAgICAgICAgICAgICAgY29uc3QgdGFzayA9IFRhc2suZnJvbUxpbmUoe1xuICAgICAgICAgICAgICAgICAgICBsaW5lLFxuICAgICAgICAgICAgICAgICAgICBwYXRoOiBmaWxlLnBhdGgsXG4gICAgICAgICAgICAgICAgICAgIHNlY3Rpb25TdGFydDogY3VycmVudFNlY3Rpb24ucG9zaXRpb24uc3RhcnQubGluZSxcbiAgICAgICAgICAgICAgICAgICAgc2VjdGlvbkluZGV4LFxuICAgICAgICAgICAgICAgICAgICBwcmVjZWRpbmdIZWFkZXI6IHRoaXMuZ2V0UHJlY2VkaW5nSGVhZGVyKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxpbmVOdW1iZXJUYXNrOiBsaXN0SXRlbS5wb3NpdGlvbi5zdGFydC5saW5lLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2VjdGlvbnM6IGZpbGVDYWNoZS5zZWN0aW9ucyxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpbGVMaW5lcyxcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICBpZiAodGFzayAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBzZWN0aW9uSW5kZXgrKztcbiAgICAgICAgICAgICAgICAgICAgdGhpcy50YXNrcy5wdXNoKHRhc2spO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEFsbCB1cGRhdGVkLCBpbmZvcm0gb3VyIHN1YnNjcmliZXJzLlxuICAgICAgICB0aGlzLm5vdGlmeVN1YnNjcmliZXJzKCk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXRTZWN0aW9uKHtcbiAgICAgICAgbGluZU51bWJlclRhc2ssXG4gICAgICAgIHNlY3Rpb25zLFxuICAgIH06IHtcbiAgICAgICAgbGluZU51bWJlclRhc2s6IG51bWJlcjtcbiAgICAgICAgc2VjdGlvbnM6IFNlY3Rpb25DYWNoZVtdIHwgdW5kZWZpbmVkO1xuICAgIH0pOiBTZWN0aW9uQ2FjaGUgfCBudWxsIHtcbiAgICAgICAgaWYgKHNlY3Rpb25zID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG5cbiAgICAgICAgZm9yIChjb25zdCBzZWN0aW9uIG9mIHNlY3Rpb25zKSB7XG4gICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgc2VjdGlvbi50eXBlID09PSAnbGlzdCcgJiZcbiAgICAgICAgICAgICAgICBzZWN0aW9uLnBvc2l0aW9uLnN0YXJ0LmxpbmUgPD0gbGluZU51bWJlclRhc2sgJiZcbiAgICAgICAgICAgICAgICBzZWN0aW9uLnBvc2l0aW9uLmVuZC5saW5lID49IGxpbmVOdW1iZXJUYXNrXG4gICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gc2VjdGlvbjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0UHJlY2VkaW5nSGVhZGVyKHtcbiAgICAgICAgbGluZU51bWJlclRhc2ssXG4gICAgICAgIHNlY3Rpb25zLFxuICAgICAgICBmaWxlTGluZXMsXG4gICAgfToge1xuICAgICAgICBsaW5lTnVtYmVyVGFzazogbnVtYmVyO1xuICAgICAgICBzZWN0aW9uczogU2VjdGlvbkNhY2hlW10gfCB1bmRlZmluZWQ7XG4gICAgICAgIGZpbGVMaW5lczogc3RyaW5nW107XG4gICAgfSk6IHN0cmluZyB8IG51bGwge1xuICAgICAgICBpZiAoc2VjdGlvbnMgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgcHJlY2VkaW5nSGVhZGVyU2VjdGlvbjogU2VjdGlvbkNhY2hlIHwgdW5kZWZpbmVkO1xuICAgICAgICBmb3IgKGNvbnN0IHNlY3Rpb24gb2Ygc2VjdGlvbnMpIHtcbiAgICAgICAgICAgIGlmIChzZWN0aW9uLnR5cGUgPT09ICdoZWFkaW5nJykge1xuICAgICAgICAgICAgICAgIGlmIChzZWN0aW9uLnBvc2l0aW9uLnN0YXJ0LmxpbmUgPiBsaW5lTnVtYmVyVGFzaykge1xuICAgICAgICAgICAgICAgICAgICAvLyBCcmVhayBvdXQgb2YgdGhlIGxvb3AgYXMgdGhlIGxhc3QgaGVhZGVyIHdhcyB0aGUgcHJlY2VkaW5nIG9uZS5cbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHByZWNlZGluZ0hlYWRlclNlY3Rpb24gPSBzZWN0aW9uO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChwcmVjZWRpbmdIZWFkZXJTZWN0aW9uID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgbGluZU51bWJlclByZWNlZGluZ0hlYWRlciA9XG4gICAgICAgICAgICBwcmVjZWRpbmdIZWFkZXJTZWN0aW9uLnBvc2l0aW9uLnN0YXJ0LmxpbmU7XG5cbiAgICAgICAgY29uc3QgbGluZVByZWNlZGluZ0hlYWRlciA9IGZpbGVMaW5lc1tsaW5lTnVtYmVyUHJlY2VkaW5nSGVhZGVyXTtcblxuICAgICAgICBjb25zdCBoZWFkZXJSZWdleCA9IC9eIysgKyguKikvdTtcbiAgICAgICAgY29uc3QgaGVhZGVyTWF0Y2ggPSBsaW5lUHJlY2VkaW5nSGVhZGVyLm1hdGNoKGhlYWRlclJlZ2V4KTtcbiAgICAgICAgaWYgKGhlYWRlck1hdGNoID09PSBudWxsKSB7XG4gICAgICAgICAgICByZXR1cm4gbnVsbDtcb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AgICAgICAgICAgICAgaWYgKHJlcGxhY2VtZW50ID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgbm9kZXMuc3BsaWNlKGksIDEpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgbm9kZXNbaV0gPSByZXBsYWNlbWVudDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKCFkb250VXBkYXRlTGFzdEluZGV4KSB7XG4gICAgICAgICAgICAgICAgICAgIG5vZGVzLmNsYWltX2luZm8ubGFzdF9pbmRleCA9IGk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiBub2RlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIC8vIE90aGVyd2lzZSwgd2UgdHJ5IHRvIGZpbmQgb25lIGJlZm9yZVxuICAgICAgICAvLyBXZSBpdGVyYXRlIGluIHJldmVyc2Ugc28gdGhhdCB3ZSBkb24ndCBnbyB0b28gZmFyIGJhY2tcbiAgICAgICAgZm9yIChsZXQgaSA9IG5vZGVzLmNsYWltX2luZm8ubGFzdF9pbmRleCAtIDE7IGkgPj0gMDsgaS0tKSB7XG4gICAgICAgICAgICBjb25zdCBub2RlID0gbm9kZXNbaV07XG4gICAgICAgICAgICBpZiAocHJlZGljYXRlKG5vZGUpKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgcmVwbGFjZW1lbnQgPSBwcm9jZXNzTm9kZShub2RlKTtcbiAgICAgICAgICAgICAgICBpZiAocmVwbGFjZW1lbnQgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgICAgICBub2Rlcy5zcGxpY2UoaSwgMSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBub2Rlc1tpXSA9IHJlcGxhY2VtZW50O1xuICAgICAgICAgICAgICAgIH1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tcbn1cbmNsYXNzIEh0bWxUYWcge1xuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICB0aGlzLmUgPSB0aGlzLm4gPSBudWxsO1xuICAgIH1cbiAgICBjKGh0bWwpIHtcbiAgICAgICAgdGhpcy5oKGh0bWwpO1xuICAgIH1cbiAgICBtKGh0bWwsIHRhcmdldCwgYW5jaG9yID0gbnVsbCkge1xuICAgICAgICBpZiAoIXRoaXMuZSkge1xuICAgICAgICAgICAgdGhpcy5lID0gZWxlbWVudCh0YXJnZXQubm9kZU5hbWUpO1xuICAgICAgICAgICAgdGhpcy50ID0gdGFyZ2V0O1xuICAgICAgICAgICAgdGhpcy5jKGh0bWwpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuaShhbmNob3IpO1xuICAgIH1cbiAgICBoKGh0bWwpIHtcbiAgICAgICAgdGhpcy5lLmlubmVySFRNTCA9IGh0bWw7XG4gICAgICAgIHRoaXMubiA9IEFycmF5LmZyb20odGhpcy5lLmNoaWxkTm9kZXMpO1xuICAgIH1cbiAgICBpKGFuY2hvcikge1xuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IHRoaXMubi5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgICAgICAgaW5zZXJ0KHRoaXMudCwgdGhpcy5uW2ldLCBhbmNob3IpO1xuICAgICAgICB9XG4gICAgfVxuICAgIHAoaHRtbCkge1xuICAgICAgICB0aGlzLmQoKTtcbiAgICAgICAgdGhpcy5oKGh0bWwpO1xuICAgICAgICB0aGlzLmkodGhpcy5hKTtcbiAgICB9XG4gICAgZCgpIHtcbiAgICAgICAgdGhpcy5uLmZvckVhY2goZGV0YWNoKTtcbiAgICB9XG59XG5jbGFzcyBIdG1sVGFnSHlkcmF0aW9uIGV4dGVuZHMgSHRtbFRhZyB7XG4gICAgY29uc3RydWN0b3IoY2xhaW1lZF9ub2Rlcykge1xuICAgICAgICBzdXBlcigpO1xuICAgICAgICB0aGlzLmUgPSB0aGlzLm4gPSBudWx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ldGUoYmxvY2spO1xuICAgICAgICBibG9jay5pKGxvY2FsKTtcbiAgICB9XG59XG5mdW5jdGlvbiB0cmFuc2l0aW9uX291dChibG9jaywgbG9jYWwsIGRldGFjaCwgY2FsbGJhY2spIHtcbiAgICBpZiAoYmxvY2sgJiYgYmxvY2subykge1xuICAgICAgICBpZiAob3V0cm9pbmcuaGFzKGJsb2NrKSlcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgb3V0cm9pbmcuYWRkKGJsb2NrKTtcbiAgICAgICAgb3V0cm9zLmMucHVzaCgoKSA9PiB7XG4gICAgICAgICAgICBvdXRyb2luZy5kZWxldGUoYmxvY2spO1xuICAgICAgICAgICAgaWYgKGNhbGxiYWNrKSB7XG4gICAgICAgICAgICAgICAgaWYgKGRldGFjaClcbiAgICAgICAgICAgICAgICAgICAgYmxvY2suZCgxKTtcbiAgICAgICAgICAgICAgICBjYWxsYmFjaygpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgYmxvY2subyhsb2NhbCk7XG4gICAgfVxufVxuY29uc3QgbnVsbF90cmFuc2l0aW9uID0geyBkdXJhdGlvbjogMCB9O1xuZnVuY3Rpb24gY3JlYXRlX2luX3RyYW5zaXRpb24obm9kZSwgZm4sIHBhcmFtcykge1xuICAgIGxldCBjb25maWcgPSBmbihub2RlLCBwYXJhbXMpO1xuICAgIGxldCBydW5uaW5nID0gZmFsc2U7XG4gICAgbGV0IGFuaW1hdGlvbl9uYW1lO1xuICAgIGxldCB0YXNrO1xuICAgIGxldCB1aWQgPSAwO1xuICAgIGZ1bmN0aW9uIGNsZWFudXAoKSB7XG4gICAgICAgIGlmIChhbmltYXRpb25fbmFtZSlcbiAgICAgICAgICAgIGRlbGV0ZV9ydWxlKG5vZGUsIGFuaW1hdGlvbl9uYW1lKTtcbiAgICB9XG4gICAgZnVuY3Rpb24gZ28oKSB7XG4gICAgICAgIGNvbnN0IHsgZGVsYXkgPSAwLCBkdXJhdGlvbiA9IDMwMCwgZWFzaW5nID0gaWRlbnRpdHksIHRpY2sgPSBub29wLCBjc3MgfSA9IGNvbmZpZyB8fCBudWxsX3RyYW5zaXRpb247XG4gICAgICAgIGlmIChjc3MpXG4gICAgICAgICAgICBhbmltYXRpb25fbmFtZSA9IGNyZWF0ZV9ydWxlKG5vZGUsIDAsIDEsIGR1cmF0aW9uLCBkZWxheSwgZWFzaW5nLCBjc3MsIHVpZCsrKTtcbiAgICAgICAgdGljaygwLCAxKTtcbiAgICAgICAgY29uc3Qgc3RhcnRfdGltZSA9IG5vdygpICsgZGVsYXk7XG4gICAgICAgIGNvbnN0IGVuZF90aW1lID0gc3RhcnRfdGltZSArIGR1cmF0aW9uO1xuICAgICAgICBpZiAodGFzaylcbiAgICAgICAgICAgIHRhc2suYWJvcnQoKTtcbiAgICAgICAgcnVubmluZyA9IHRydWU7XG4gICAgICAgIGFkZF9yZW5kZXJfY2FsbGJhY2soKCkgPT4gZGlzcGF0Y2gobm9kZSwgdHJ1ZSwgJ3N0YXJ0JykpO1xuICAgICAgICB0YXNrID0gbG9vcChub3cgPT4ge1xuICAgICAgICAgICAgaWYgKHJ1bm5pbmcpIHtcbiAgICAgICAgICAgICAgICBpZiAobm93ID49IGVuZF90aW1lKSB7XG4gICAgICAgICAgICAgICAgICAgIHRpY2soMSwgMCk7XG4gICAgICAgICAgICAgICAgICAgIGRpc3BhdGNoKG5vZGUsIHRydWUsICdlbmQnKTtcbiAgICAgICAgICAgICAgICAgICAgY2xlYW51cCgpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gcnVubmluZyA9IGZhbHNlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAobm93ID49IHN0YXJ0X3RpbWUpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgdCA9IGVhc2luZygobm93IC0gc3RhcnRfdGltZSkgLyBkdXJhdGlvbik7XG4gICAgICAgICAgICAgICAgICAgIHRpY2sodCwgMSAtIHQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBydW5uaW5nO1xuICAgICAgICB9KTtcbiAgICB9XG4gICAgbGV0IHN0YXJ0ZWQgPSBmYWxzZTtcbiAgICByZXR1cm4ge1xuICAgICAgICBzdGFydCgpIHtcbiAgICAgICAgICAgIGlmIChzdGFydGVkKVxuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIHN0YXJ0ZWQgPSB0cnVlO1xuICAgICAgICAgICAgZGVsZXRlX3J1bGUobm9kZSk7XG4gICAgICAgICAgICBpZiAoaXNfZnVuY3Rpb24oY29uZmlnKSkge1xuICAgICAgICAgICAgICAgIGNvbmZpZyA9IGNvbmZpZygpO1xuICAgICAgICAgICAgICAgIHdhaXQoKS50aGVuKGdvKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGdvKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGludmFsaWRhdGUoKSB7XG4gICAgICAgICAgICBzdGFydGVkID0gZmFsc2U7XG4gICAgICAgIH0sXG4gICAgICAgIGVuZCgpIHtcbiAgICAgICAgICAgIGlmIChydW5uaW5nKSB7XG4gICAgICAgICAgICAgICAgY2xlYW51cCgpO1xuICAgICAgICAgICAgICAgIHJ1bm5pbmcgPSBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH07XG59XG5mdW5jdGlvbiBjcmVhdGVfb3V0X3RyYW5zaXRpb24obm9kZSwgZm4sIHBhcmFtcykge1xuICAgIGxldCBjb25maWcgPSBmbihub2RlLCBwYXJhbXMpO1xuICAgIGxldCBydW5uaW5nID0gdHJ1ZTtcbiAgICBsZXQgYW5pbWF0aW9uX25hbWU7XG4gICAgY29uc3QgZ3JvdXAgPSBvdXRyb3M7XG4gICAgZ3JvdXAuciArPSAxO1xuICAgIGZ1bmN0aW9uIGdvKCkge1xuICAgICAgICBjb25zdCB7IGRlbGF5ID0gMCwgZHVyYXRpb24gPSAzMDAsIGVhc2luZyA9IGlkZW50aXR5LCB0aWNrID0gbm9vcCwgY3NzIH0gPSBjb25maWcgfHwgbnVsbF90cmFuc2l0aW9uO1xuICAgICAgICBpZiAoY3NzKVxuICAgICAgICAgICAgYW5pbWF0aW9uX25hbWUgPSBjcmVhdGVfcnVsZShub2RlLCAxLCAwLCBkdXJhdGlvbiwgZGVsYXksIGVhc2luZywgY3NzKTtcbiAgICAgICAgY29uc3Qgc3RhcnRfdGltZSA9IG5vdygpICsgZGVsYXk7XG4gICAgICAgIGNvbnN0IGVuZF90aW1lID0gc3RhcnRfdGltZSArIGR1cmF0aW9uO1xuICAgICAgICBhZGRfcmVuZGVyX2NhbGxiYWNrKCgpID0+IGRpc3BhdGNoKG5vZGUsIGZhbHNlLCAnc3RhcnQnKSk7XG4gICAgICAgIGxvb3Aobm93ID0+IHtcbiAgICAgICAgICAgIGlmIChydW5uaW5nKSB7XG4gICAgICAgICAgICAgICAgaWYgKG5vdyA+PSBlbmRfdGltZSkge1xuICAgICAgICAgICAgICAgICAgICB0aWNrKDAsIDEpO1xuICAgICAgICAgICAgICAgICAgICBkaXNwYXRjaChub2RlLCBmYWxzZSwgJ2VuZCcpO1xuICAgICAgICAgICAgICAgICAgICBpZiAoIS0tZ3JvdXAucikge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdGhpcyB3aWxsIHJlc3VsdCBpbiBgZW5kKClgIGJlaW5nIGNhbGxlZCxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHNvIHdlIGRvbid0IG5lZWQgdG8gY2xlYW4gdXAgaGVyZVxuICAgICAgICAgICAgICAgICAgICAgICAgcnVuX2FsbChncm91cC5jKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChub3cgPj0gc3RhcnRfdGltZSkge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCB0ID0gZWFzaW5nKChub3cgLSBzdGFydF90aW1lKSAvIGR1cmF0aW9uKTtcbiAgICAgICAgICAgICAgICAgICAgdGljaygxIC0gdCwgdCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHJ1bm5pbmc7XG4gICAgICAgIH0pO1xuICAgIH1cbiAgICBpZiAoaXNfZnVuY3Rpb24oY29uZmlnKSkge1xuICAgICAgICB3YWl0KCkudGhlbigoKSA9PiB7XG4gICAgICAgICAgICAvLyBAdHMtaWdub3JlXG4gICAgICAgICAgICBjb25maWcgPSBjb25maWcoKTtcbiAgICAgICAgICAgIGdvKCk7XG4gICAgICAgIH0pO1xuICAgIH1cbiAgICBlbHNlIHtcbiAgICAgICAgZ28oKTtcbiAgICB9XG4gICAgcmV0dXJuIHtcbiAgICAgICAgZW5kKHJlc2V0KSB7XG4gICAgICAgICAgICBpZiAocmVzZXQgJiYgY29uZmlnLnRpY2spIHtcbiAgICAgICAgICAgICAgICBjb25maWcudGljaygxLCAwKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChydW5uaW5nKSB7XG4gICAgICAgICAgICAgICAgaWYgKGFuaW1hdGlvbl9uYW1lKVxuICAgICAgICAgICAgICAgICAgICBkZWxldGVfcnVsZShub2RlLCBhbmltYXRpb25fbmFtZSk7XG4gICAgICAgICAgICAgICAgcnVubmluZyA9IGZhbHNlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfTtcbn1cbmZ1bmN0aW9uIGNyZWF0ZV9iaWRpcmVjdGlvbmFsX3RyYW5zaXRpb24obm9kZSwgZm4sIHBhcmFtcywgaW50cm8pIHtcbiAgICBsZXQgY29uZmlnID0gZm4obm9kZSwgcGFyYW1zKTtcbiAgICBsZXQgdCA9IGludHJvID8gMCA6IDE7XG4gICAgbGV0IHJ1bm5pbmdfcHJvZ3JhbSA9IG51bGw7XG4gICAgbGV0IHBlbmRpbmdfcHJvZ3JhbSA9IG51bGw7XG4gICAgbGV0IGFuaW1hdGlvbl9uYW1lID0gbnVsbDtcbiAgICBmdW5jdGlvbiBjbGVhcl9hbmltYXRpb24oKSB7XG4gICAgICAgIGlmIChhbmltYXRpb25fbmFtZSlcbiAgICAgICAgICAgIGRlbGV0ZV9ydWxlKG5vZGUsIGFuaW1hdGlvbl9uYW1lKTtcbiAgICB9XG4gICAgZnVuY3Rpb24gaW5pdChwcm9ncmFtLCBkdXJhdGlvbikge1xuICAgICAgICBjb25zdCBkID0gKHByb2dyYW0uYiAtIHQpO1xuICAgICAgICBkdXJhdGlvbiAqPSBNYXRoLmFicyhkKTtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGE6IHQsXG4gICAgICAgICAgICBiOiBwcm9ncmFtLmIsXG4gICAgICAgICAgICBkLFxuICAgICAgICAgICAgZHVyYXRpb24sXG4gICAgICAgICAgICBzdGFydDogcHJvZ3JhbS5zdGFydCxcbiAgICAgICAgICAgIGVuZDogcHJvZ3JhbS5zdGFydCArIGR1cmF0aW9uLFxuICAgICAgICAgICAgZ3JvdXA6IHByb2dyYW0uZ3JvdXBcbiAgICAgICAgfTtcbiAgICB9XG4gICAgZnVuY3Rpb24gZ28oYikge1xuICAgICAgICBjb25zdCB7IGRlbGF5ID0gMCwgZHVyYXRpb24gPSAzMDAsIGVhc2luZyA9IGlkZW50aXR5LCB0aWNrID0gbm9vcCwgY3NzIH0gPSBjb25maWcgfHwgbnVsbF90cmFuc2l0aW9uO1xuICAgICAgICBjb25zdCBwcm9ncmFtID0ge1xuICAgICAgICAgICAgc3RhcnQ6IG5vdygpICsgZGVsYXksXG4gICAgICAgICAgICBiXG4gICAgICAgIH07XG4gICAgICAgIGlmICghYikge1xuICAgICAgICAgICAgLy8gQHRzLWlnbm9yZSB0b2RvOiBpbXByb3ZlIHR5cGluZ3NcbiAgICAgICAgICAgIHByb2dyYW0uZ3JvdXAgPSBvdXRyb3M7XG4gICAgICAgICAgICBvdXRyb3MuciArPSAxO1xuICAgICAgICB9XG4gICAgICAgIGlmIChydW5uaW5nX3Byb2dyYW0gfHwgcGVuZGluZ19wcm9ncmFtKSB7XG4gICAgICAgICAgICBwZW5kaW5nX3Byb2dyYW0gPSBwcm9ncmFtO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgLy8gaWYgdGhpcyBpcyBhbiBpbnRybywgYW5kIHRoZXJlJ3MgYSBkZWxheSwgd2UgbmVlZCB0byBkb1xuICAgICAgICAgICAgLy8gYW4gaW5pdGlhbCB0aWNrIGFuZC9vciBhcHBseSBDU1MgYW5pbWF0aW9uIGltbWVkaWF0ZWx5XG4gICAgICAgICAgICBpZiAoY3NzKSB7XG4gICAgICAgICAgICAgICAgY2xlYXJfYW5pbWF0aW9uKCk7XG4gICAgICAgICAgICAgICAgYW5pbWF0aW9uX25hbWUgPSBjcmVhdGVfcnVsZShub2RlLCB0LCBiLCBkdXJhdGlvbiwgZGVsYXksIGVhc2luZywgY3NzKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChiKVxuICAgICAgICAgICAgICAgIHRpY2soMCwgMSk7XG4gICAgICAgICAgICBydW5uaW5nX3Byb2dyYW0gPSBpbml0KHByb2dyYW0sIGR1cmF0aW9uKTtcbiAgICAgICAgICAgIGFkZF9yZW5kZXJfY2FsbGJhY2soKCkgPT4gZGlzcGF0Y2gobm9kZSwgYiwgJ3N0YXJ0JykpO1xuICAgICAgICAgICAgbG9vcChub3cgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChwZW5kaW5nX3Byb2dyYW0gJiYgbm93ID4gcGVuZGluZ19wcm9ncmFtLnN0YXJ0KSB7XG4gICAgICAgICAgICAgICAgICAgIHJ1bm5pbmdfcHJvZ3JhbSA9IGluaXQocGVuZGluZ19wcm9ncmFtLCBkdXJhdGlvbik7XG4gICAgICAgICAgICAgICAgICAgIHBlbmRpbmdfcHJvZ3JhbSA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIGRpc3BhdGNoKG5vZGUsIHJ1bm5pbmdfcHJvZ3JhbS5iLCAnc3RhcnQnKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGNzcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xlYXJfYW5pbWF0aW9uKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBhbmltYXRpb25fbmFtZSA9IGNyZWF0ZV9ydWxlKG5vZGUsIHQsIHJ1bm5pbmdfcHJvZ3JhbS5iLCBydW5uaW5nX3Byb2dyYW0uZHVyYXRpb24sIDAsIGVhc2luZywgY29uZmlnLmNzcyk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKHJ1bm5pbmdfcHJvZ3JhbSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAobm93ID49IHJ1bm5pbmdfcHJvZ3JhbS5lbmQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpY2sodCA9IHJ1bm5pbmdfcHJvZ3JhbS5iLCAxIC0gdCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBkaXNwYXRjaChub2RlLCBydW5uaW5nX3Byb2dyYW0uYiwgJ2VuZCcpO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFwZW5kaW5nX3Byb2dyYW0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB3ZSdyZSBkb25lXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJ1bm5pbmdfcHJvZ3JhbS5iKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGludHJvIOKAlCB3ZSBjYW4gdGlkeSB1cCBpbW1lZGlhdGVseVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGVhcl9hbmltYXRpb24oKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIG91dHJvIOKAlCBuZWVkcyB0byBiZSBjb29yZGluYXRlZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIS0tcnVubmluZ19wcm9ncmFtLmdyb3VwLnIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBydW5fYWxsKHJ1bm5pbmdfcHJvZ3JhbS5ncm91cC5jKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBydW5uaW5nX3Byb2dyYW0gPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2UgaWYgKG5vdyA+PSBydW5uaW5nX3Byb2dyYW0uc3RhcnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHAgPSBub3cgLSBydW5uaW5nX3Byb2dyYW0uc3RhcnQ7XG4gICAgICAgICAgICAgICAgICAgICAgICB0ID0gcnVubmluZ19wcm9ncmFtLmEgKyBydW5uaW5nX3Byb2dyYW0uZCAqIGVhc2luZyhwIC8gcnVubmluZ19wcm9ncmFtLmR1cmF0aW9uKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpY2sodCwgMSAtIHQpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiAhIShydW5uaW5nX3Byb2dyYW0gfHwgcGVuZGluZ19wcm9ncmFtKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuICAgIHJldHVybiB7XG4gICAgICAgIHJ1bihiKSB7XG4gICAgICAgICAgICBpZiAoaXNfZnVuY3Rpb24oY29uZmlnKSkge1xuICAgICAgICAgICAgICAgIHdhaXQoKS50aGVuKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgLy8gQHRzLWlnbm9yZVxuICAgICAgICAgICAgICAgICAgICBjb25maWcgPSBjb25maWcoKTtcbiAgICAgICAgICAgICAgICAgICAgZ28oYik7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICBnbyhiKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgZW5kKCkge1xuICAgICAgICAgICAgY2xlYXJfYW5pbWF0aW9uKCk7XG4gICAgICAgICAgICBydW5uaW5nX3Byb2dyYW0gPSBwZW5kaW5nX3Byb2dyYW0gPSBudWxsO1xuICAgICAgICB9XG4gICAgfTtcbn1cblxuZnVuY3Rpb24gaGFuZGxlX3Byb21pc2UocHJvbWlzZSwgaW5mbykge1xuICAgIGNvbnN0IHRva2VuID0gaW5mby50b2tlbiA9IHt9O1xuICAgIGZ1bmN0aW9uIHVwZGF0ZSh0eXBlLCBpbmRleCwga2V5LCB2YWx1ZSkge1xuICAgICAgICBpZiAoaW5mby50b2tlbiAhPT0gdG9rZW4pXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIGluZm8ucmVzb2x2ZWQgPSB2YWx1ZTtcbiAgICAgICAgbGV0IGNoaWxkX2N0eCA9IGluZm8uY3R4O1xuICAgICAgICBpZiAoa2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGNoaWxkX2N0eCA9IGNoaWxkX2N0eC5zbGljZSgpO1xuICAgICAgICAgICAgY2hpbGRfY3R4W2tleV0gPSB2YWx1ZTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBibG9jayA9IHR5cGUgJiYgKGluZm8uY3VycmVudCA9IHR5cGUpKGNoaWxkX2N0eCk7XG4gICAgICAgIGxldCBuZWVkc19mbHVzaCA9IGZhbHNlO1xuICAgICAgICBpZiAoaW5mby5ibG9jaykge1xuICAgICAgICAgICAgaWYgKGluZm8uYmxvY2tzKSB7XG4gICAgICAgICAgICAgICAgaW5mby5ibG9ja3MuZm9yRWFjaCgoYmxvY2ssIGkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGkgIT09IGluZGV4ICYmIGJsb2NrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBncm91cF9vdXRyb3MoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRyYW5zaXRpb25fb3V0KGJsb2NrLCAxLCAxLCAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGluZm8uYmxvY2tzW2ldID09PSBibG9jaykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmZvLmJsb2Nrc1tpXSA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjaGVja19vdXRyb3MoKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgaW5mby5ibG9jay5kKDEpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYmxvY2suYygpO1xuICAgICAgICAgICAgdHJhbnNpdGlvbl9pbihibG9jaywgMSk7XG4gICAgICAgICAgICBibG9jay5tKGluZm8ubW91bnQoKSwgaW5mby5hbmNob3IpO1xuICAgICAgICAgICAgbmVlZHNfZmx1c2ggPSB0cnVlO1xuICAgICAgICB9XG4gICAgICAgIGluZm8uYmxvY2sgPSBibG9jaztcbiAgICAgICAgaWYgKGluZm8uYmxvY2tzKVxuICAgICAgICAgICAgaW5mby5ibG9ja3NbaW5kZXhdID0gYmxvY2s7XG4gICAgICAgIGlmIChuZWVkc19mbHVzaCkge1xuICAgICAgICAgICAgZmx1c2goKTtcbiAgICAgICAgfVxuICAgIH1cbiAgICBpZiAoaXNfcHJvbWlzZShwcm9taXNlKSkge1xuICAgICAgICBjb25zdCBjdXJyZW50X2NvbXBvbmVudCA9IGdldF9jdXJyZW50X2NvbXBvbmVudCgpO1xuICAgICAgICBwcm9taXNlLnRoZW4odmFsdWUgPT4ge1xuICAgICAgICAgICAgc2V0X2N1cnJlbnRfY29tcG9uZW50KGN1cnJlbnRfY29tcG9uZW50KTtcbiAgICAgICAgICAgIHVwZGF0ZShpbmZvLnRoZW4sIDEsIGluZm8udmFsdWUsIHZhbHVlKTtcbiAgICAgICAgICAgIHNldF9jdXJyZW50X2NvbXBvbmVudChudWxsKTtcbiAgICAgICAgfSwgZXJyb3IgPT4ge1xuICAgICAgICAgICAgc2V0X2N1cnJlbnRfY29tcG9uZW50KGN1cnJlbnRfY29tcG9uZW50KTtcbiAgICAgICAgICAgIHVwZGF0ZShpbmZvLmNhdGNoLCAyLCBpbmZvLmVycm9yLCBlcnJvcik7XG4gICAgICAgICAgICBzZXRfY3VycmVudF9jb21wb25lbnQobnVsbCk7XG4gICAgICAgICAgICBpZiAoIWluZm8uaGFzQ2F0Y2gpIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBlcnJvcjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIC8vIGlmIHdlIHByZXZpb3VzbHkgaGFkIGEgdGhlbi9jYXRjaCBibG9jaywgZGVzdHJveSBpdFxuICAgICAgICBpZiAoaW5mby5jdXJyZW50ICE9PSBpbmZvLnBlbmRpbmcpIHtcbiAgICAgICAgICAgIHVwZGF0ZShpbmZvLnBlbmRpbmcsIDApO1xuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgIH1cbiAgICB9XG4gICAgZWxzZSB7XG4gICAgICAgIGlmIChpbmZvLmN1cnJlbnQgIT09IGluZm8udGhlbikge1xuICAgICAgICAgICAgdXBkYXRlKGluZm8udGhlbiwgMSwgaW5mby52YWx1ZSwgcHJvbWlzZSk7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuIC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biAgICAgICAgZWxzZSBpZiAoZHluYW1pYykge1xuICAgICAgICAgICAgYmxvY2sucChjaGlsZF9jdHgsIGRpcnR5KTtcbiAgICAgICAgfVxuICAgICAgICBuZXdfbG9va3VwLnNldChrZXksIG5ld19ibG9ja3NbaV0gPSBibG9jayk7XG4gICAgICAgIGlmIChrZXkgaW4gb2xkX2luZGV4ZXMpXG4gICAgICAgICAgICBkZWx0YXMuc2V0KGtleSwgTWF0aC5hYnMoaSAtIG9sZF9pbmRleGVzW2tleV0pKTtcbiAgICB9XG4gICAgY29uc3Qgd2lsbF9tb3ZlID0gbmV3IFNldCgpO1xuICAgIGNvbnN0IGRpZF9tb3ZlID0gbmV3IFNldCgpO1xuICAgIGZ1bmN0aW9uIGluc2VydChibG9jaykge1xuICAgICAgICB0cmFuc2l0aW9uX2luKGJsb2NrLCAxKTtcbiAgICAgICAgYmxvY2subShub2RlLCBuZXh0KTtcbiAgICAgICAgbG9va3VwLnNldChibG9jay5rZXksIGJsb2NrKTtcbiAgICAgICAgbmV4dCA9IGJsb2NrLmZpcnN0O1xuICAgICAgICBuLS07XG4gICAgfVxuICAgIHdoaWxlIChvICYmIG4pIHtcbiAgICAgICAgY29uc3QgbmV3X2Jsb2NrID0gbmV3X2Jsb2Nrc1tuIC0gMV07XG4gICAgICAgIGNvbnN0IG9sZF9ibG9jayA9IG9sZF9ibG9ja3NbbyAtIDFdO1xuICAgICAgICBjb25zdCBuZXdfa2V5ID0gbmV3X2Jsb2NrLmtleTtcbiAgICAgICAgY29uc3Qgb2xkX2tleSA9IG9sZF9ibG9jay5rZXk7XG4gICAgICAgIGlmIChuZXdfYmxvY2sgPT09IG9sZF9ibG9jaykge1xuICAgICAgICAgICAgLy8gZG8gbm90aGluZ1xuICAgICAgICAgICAgbmV4dCA9IG5ld19ibG9jay5maXJzdDtcbiAgICAgICAgICAgIG8tLTtcbiAgICAgICAgICAgIG4tLTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmICghbmV3X2xvb2t1cC5oYXMob2xkX2tleSkpIHtcbiAgICAgICAgICAgIC8vIHJlbW92ZSBvbGQgYmxvY2tcbiAgICAgICAgICAgIGRlc3Ryb3kob2xkX2Jsb2NrLCBsb29rdXApO1xuICAgICAgICAgICAgby0tO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKCFsb29rdXAuaGFzKG5ld19rZXkpIHx8IHdpbGxfbW92ZS5oYXMobmV3X2tleSkpIHtcbiAgICAgICAgICAgIGluc2VydChuZXdfYmxvY2spO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKGRpZF9tb3ZlLmhhcyhvbGRfa2V5KSkge1xuICAgICAgICAgICAgby0tO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKGRlbHRhcy5nZXQobmV3X2tleSkgPiBkZWx0YXMuZ2V0KG9sZF9rZXkpKSB7XG4gICAgICAgICAgICBkaWRfbW92ZS5hZGQobmV3X2tleSk7XG4gICAgICAgICAgICBpbnNlcnQobmV3X2Jsb2NrKTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHdpbGxfbW92ZS5hZGQob2xkX2tleSk7XG4gICAgICAgICAgICBvLS07XG4gICAgICAgIH1cbiAgICB9XG4gICAgd2hpbGUgKG8tLSkge1xuICAgICAgICBjb25zdCBvbGRfYmxvY2sgPSBvbGRfYmxvY2tzW29dO1xuICAgICAgICBpZiAoIW5ld19sb29rdXAuaGFzKG9sZF9ibG9jay5rZXkpKVxuICAgICAgICAgICAgZGVzdHJveShvbGRfYmxvY2ssIGxvb2t1cCk7XG4gICAgfVxuICAgIHdoaWxlIChuKVxuICAgICAgICBpbnNlcnQobmV3X2Jsb2Nrc1tuIC0gMV0pO1xuICAgIHJldHVybiBuZXdfYmxvY2tzO1xufVxuZnVuY3Rpb24gdmFsaWRhdGVfZWFjaF9rZXlzKGN0eCwgbGlzdCwgZ2V0X2NvbnRleHQsIGdldF9rZXkpIHtcbiAgICBjb25zdCBrZXlzID0gbmV3IFNldCgpO1xuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgbGlzdC5sZW5ndGg7IGkrKykge1xuICAgICAgICBjb25zdCBrZXkgPSBnZXRfa2V5KGdldF9jb250ZXh0KGN0eCwgbGlzdCwgaSkpO1xuICAgICAgICBpZiAoa2V5cy5oYXMoa2V5KSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdDYW5ub3QgaGF2ZSBkdXBsaWNhdGUga2V5cyBpbiBhIGtleWVkIGVhY2gnKTtcbiAgICAgICAgfVxuICAgICAgICBrZXlzLmFkZChrZXkpO1xuICAgIH1cbn1cblxuZnVuY3Rpb24gZ2V0X3NwcmVhZF91cGRhdGUobGV2ZWxzLCB1cGRhdGVzKSB7XG4gICAgY29uc3QgdXBkYXRlID0ge307XG4gICAgY29uc3QgdG9fbnVsbF9vdXQgPSB7fTtcbiAgICBjb25zdCBhY2NvdW50ZWRfZm9yID0geyAkJHNjb3BlOiAxIH07XG4gICAgbGV0IGkgPSBsZXZlbHMubGVuZ3RoO1xuICAgIHdoaWxlIChpLS0pIHtcbiAgICAgICAgY29uc3QgbyA9IGxldmVsc1tpXTtcbiAgICAgICAgY29uc3QgbiA9IHVwZGF0ZXNbaV07XG4gICAgICAgIGlmIChuKSB7XG4gICAgICAgICAgICBmb3IgKGNvbnN0IGtleSBpbiBvKSB7XG4gICAgICAgICAgICAgICAgaWYgKCEoa2V5IGluIG4pKVxuICAgICAgICAgICAgICAgICAgICB0b19udWxsX291dFtrZXldID0gMTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIG4pIHtcbiAgICAgICAgICAgICAgICBpZiAoIWFjY291bnRlZF9mb3Jba2V5XSkge1xuICAgICAgICAgICAgICAgICAgICB1cGRhdGVba2V5XSA9IG5ba2V5XTtcbiAgICAgICAgICAgICAgICAgICAgYWNjb3VudGVkX2ZvcltrZXldID0gMTtcbiAgICAgICAgICAgICAgICB9XG4g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uICAgICAgICAgICAgYWZ0ZXJfdXBkYXRlOiBbXSxcbiAgICAgICAgICAgIGNhbGxiYWNrczogYmxhbmtfb2JqZWN0KClcbiAgICAgICAgfTtcbiAgICAgICAgc2V0X2N1cnJlbnRfY29tcG9uZW50KHsgJCQgfSk7XG4gICAgICAgIGNvbnN0IGh0bWwgPSBmbihyZXN1bHQsIHByb3BzLCBiaW5kaW5ncywgc2xvdHMpO1xuICAgICAgICBzZXRfY3VycmVudF9jb21wb25lbnQocGFyZW50X2NvbXBvbmVudCk7XG4gICAgICAgIHJldHVybiBodG1sO1xuICAgIH1cbiAgICByZXR1cm4ge1xuICAgICAgICByZW5kZXI6IChwcm9wcyA9IHt9LCB7ICQkc2xvdHMgPSB7fSwgY29udGV4dCA9IG5ldyBNYXAoKSB9ID0ge30pID0+IHtcbiAgICAgICAgICAgIG9uX2Rlc3Ryb3kgPSBbXTtcbiAgICAgICAgICAgIGNvbnN0IHJlc3VsdCA9IHsgdGl0bGU6ICcnLCBoZWFkOiAnJywgY3NzOiBuZXcgU2V0KCkgfTtcbiAgICAgICAgICAgIGNvbnN0IGh0bWwgPSAkJHJlbmRlcihyZXN1bHQsIHByb3BzLCB7fSwgJCRzbG90cywgY29udGV4dCk7XG4gICAgICAgICAgICBydW5fYWxsKG9uX2Rlc3Ryb3kpO1xuICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICBodG1sLFxuICAgICAgICAgICAgICAgIGNzczoge1xuICAgICAgICAgICAgICAgICAgICBjb2RlOiBBcnJheS5mcm9tKHJlc3VsdC5jc3MpLm1hcChjc3MgPT4gY3NzLmNvZGUpLmpvaW4oJ1xcbicpLFxuICAgICAgICAgICAgICAgICAgICBtYXA6IG51bGwgLy8gVE9ET1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgaGVhZDogcmVzdWx0LnRpdGxlICsgcmVzdWx0LmhlYWRcbiAgICAgICAgICAgIH07XG4gICAgICAgIH0sXG4gICAgICAg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CAmJiAkJC5mcmFnbWVudC5jKCk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG9wdGlvbnMuaW50cm8pXG4gICAgICAgICAgICB0cmFuc2l0aW9uX2luKGNvbXBvbmVudC4kJC5mcmFnbWVudCk7XG4gICAgICAgIG1vdW50X2NvbXBvbmVudChjb21wb25lbnQsIG9wdGlvbnMudGFyZ2V0LCBvcHRpb25zLmFuY2hvciwgb3B0aW9ucy5jdXN0b21FbGVtZW50KTtcbiAgICAgICAgZW5kX2h5ZHJhdGluZygpO1xuICAgICAgICBmbHVzaCgpO1xuICAgIH1cbiAgICBzZXRfY3VycmVudF9jb21wb25lbnQocGFyZW50X2NvbXBvbmVudCk7XG59XG5sZXQgU3ZlbHRlRWxlbWVudDtcbmlmICh0eXBlb2YgSFRNTEVsZW1lbnQgPT09ICdmdW5jdGlvbicpIHtcbiAgICBTdmVsdGVFbGVtZW50ID0gY2xhc3MgZXh0ZW5kcyBIVE1MRWxlbWVudCB7XG4gICAgICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICAgICAgc3VwZXIoKTtcbiAgICAgICAgICAgIHRoaXMuYXR0YWNoU2hhZG93KHsgbW9kZTogJ29wZW4nIH0pO1xuICAgICAgICB9XG4gICAgICAgIGNvbm5lY3RlZENhbGxiYWNrKCkge1xuICAgICAgICAgICAgY29uc3QgeyBvbl9tb3VudCB9ID0gdGhpcy4kJDtcbiAgICAgICAgICAgIHRoaXMuJCQub25fZGlzY29ubmVjdCA9IG9uX21vdW50Lm1hcChydW4pLmZpbHRlcihpc19mdW5jdGlvbik7XG4gICAgICAgICAgICAvLyBAdHMtaWdub3JlIHRvZG86IGltcHJvdmUgdHlwaW5nc1xuICAgICAgICAgICAgZm9yIChjb25zdCBrZXkgaW4gdGhpcy4kJC5zbG90dGVkKSB7XG4gICAgICAgICAgICAgICAgLy8gQHRzLWlnbm9yZSB0b2RvOiBpbXByb3ZlIHR5cGluZ3NcbiAgICAgICAgICAgICAgICB0aGlzLmFwcGVuZENoaWxkKHRoaXMuJCQuc2xvdHRlZFtrZXldKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBhdHRyaWJ1dGVDaGFuZ2VkQ2FsbGJhY2soYXR0ciwgX29sZFZhbHVlLCBuZXdWYWx1ZSkge1xuICAgICAgICAgICAgdGhpc1thdHRyXSA9IG5ld1ZhbHVlO1xuICAgICAgICB9XG4gICAgICAgIGRpc2Nvbm5lY3RlZENhbGxiYWNrKCkge1xuICAgICAgICAgICAgcnVuX2FsbCh0aGlzLiQkLm9uX2Rpc2Nvbm5lY3QpO1xuICAgICAgICB9XG4gICAgICAgICRkZXN0cm95KCkge1xuICAgICAgICAgICAgZGVzdHJveV9jb21wb25lbnQodGhpcywgMSk7XG4gICAgICAgICAgICB0aGlzLiRkZXN0cm95ID0gbm9vcDtcbiAgICAgICAgfVxuICAgICAgICAkb24odHlwZSwgY2FsbGJhY2spIHtcbiAgICAgICAgICAgIC8vIFRPRE8gc2hvdWxkIHRoaXMgZGVsZWdhdGUgdG8gYWRkRXZlbnRMaXN0ZW5lcj9cbiAgICAgICAgICAgIGNvbnN0IGNhbGxiYWNrcyA9ICh0aGlzLiQkLmNhbGxiYWNrc1t0eXBlXSB8fCAodGhpcy4kJC5jYWxsYmFja3NbdHlwZV0gPSBbXSkpO1xuICAgICAgICAgICAgY2FsbGJhY2tzLnB1c2goY2FsbGJhY2spO1xuICAgICAgICAgICAgcmV0dXJuICgpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBpbmRleCA9IGNhbGxiYWNrcy5pbmRleE9mKGNhbGxiYWNrKTtcbiAgICAgICAgICAgICAgICBpZiAoaW5kZXggIT09IC0xKVxuICAgICAgICAgICAgICAgICAgICBjYWxsYmFja3Muc3BsaWNlKGluZGV4LCAxKTtcbiAgICAgICAgICAgIH07XG4gICAgICAgIH1cbiAgICAgICAgJHNldCgkJHByb3BzKSB7XG4gICAgICAgICAgICBpZiAodGhpcy4kJHNldCAmJiAha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RheUpzID0gZGF5anNfMS5kZWZhdWx0KHJlZkRhdGUpO1xuICAgICAgICB0aGlzLmltcGx5KFwiZGF5XCIsIHJlZkRheUpzLmRhdGUoKSk7XG4gICAgICAgIHRoaXMuaW1wbHkoXCJtb250aFwiLCByZWZEYXlKcy5tb250aCgpICsgMSk7XG4gICAgICAgIHRoaXMuaW1wbHkoXCJ5ZWFyXCIsIHJlZkRheUpzLnllYXIoKSk7XG4gICAgICAgIHRoaXMuaW1wbHkoXCJob3VyXCIsIDEyKTtcbiAgICAgICAgdGhpcy5pbXBseShcIm1pbnV0ZVwiLCAwKTtcbiAgICAgICAgdGhpcy5pbXBseShcInNlY29uZFwiLCAwKTtcbiAgICAgICAgdGhpcy5pbXBseShcIm1pbGxpc2Vjb25kXCIsIDApO1xuICAgIH1cbiAgICBnZXQoY29tcG9uZW50KSB7XG4gICAgICAgIGlmIChjb21wb25lbnQgaW4gdGhpcy5rbm93blZhbHVlcykge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMua25vd25WYWx1ZXNbY29tcG9uZW50XTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoY29tcG9uZW50IGluIHRoaXMuaW1wbGllZFZhbHVlcykge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuaW1wbGllZFZhbHVlc1tjb21wb25lbnRdO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cbiAgICBpc0NlcnRhaW4oY29tcG9uZW50KSB7XG4gICAgICAgIHJldHVybiBjb21wb25lbnQgaW4gdGhpcy5rbm93blZhbHVlcztcbiAgICB9XG4gICAgZ2V0Q2VydGFpbkNvbXBvbmVudHMoKSB7XG4gICAgICAgIHJldHVybiBPYmplY3Qua2V5cyh0aGlzLmtub3duVmFsdWVzKTtcbiAgICB9XG4gICAgaW1wbHkoY29tcG9uZW50LCB2YWx1ZSkge1xuICAgICAgICBpZiAoY29tcG9uZW50IGluIHRoaXMua25vd25WYWx1ZXMpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuaW1wbGllZFZhbHVlc1tjb21wb25lbnRdID0gdmFsdWU7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cbiAgICBhc3NpZ24oY29tcG9uZW50LCB2YWx1ZSkge1xuICAgICAgICB0aGlzLmtub3duVmFsdWVzW2NvbXBvbmVudF0gPSB2YWx1ZTtcbiAgICAgICAgZGVsZXRlIHRoaXMuaW1wbGllZFZhbHVlc1tjb21wb25lbnRdO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG4gICAgZGVsZXRlKGNvbXBvbmVudCkge1xuICAgICAgICBkZWxldGUgdGhpcy5rbm93blZhbHVlc1tjb21wb25lbnRdO1xuICAgICAgICBkZWxldGUgdGhpcy5pbXBsaWVkVmFsdWVzW2NvbXBvbmVudF07XG4gICAgfVxuICAgIGNsb25lKCkge1xuICAgICAgICBjb25zdCBjb21wb25lbnQgPSBuZXcgUGFyc2luZ0NvbXBvbmVudHMobmV3IERhdGUoKSk7XG4gICAgICAgIGNvbXBvbmVudC5rbm93blZhbHVlcyA9IHt9O1xuICAgICAgICBjb21wb25lbnQuaW1wbGllZFZhbHVlcyA9IHt9O1xuICAgICAgICBmb3IgKGNvbnN0IGtleSBpbiB0aGlzLmtub3duVmFsdWVzKSB7XG4gICAgICAgICAgICBjb21wb25lbnQua25vd25WYWx1ZXNba2V5XSA9IHRoaXMua25vd25WYWx1ZXNba2V5XTtcbiAgICAgICAgfVxuICAgICAgICBmb3IgKGNvbnN0IGtleSBpbiB0aGlzLmltcGxpZWRWYWx1ZXMpIHtcbiAgICAgICAgICAgIGNvbXBvbmVudC5pbXBsaWVkVmFsdWVzW2tleV0gPSB0aGlzLmltcGxpZWRWYWx1ZXNba2V5XTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY29tcG9uZW50O1xuICAgIH1cbiAgICBpc09ubHlEYXRlKCkge1xuICAgICAgICByZXR1cm4gIXR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aW5nQ29tcG9uZW50cyhyZWZEYXRlKTtcbiAgICAgICAgaWYgKGZyYWdtZW50c1tcImhvdXJcIl0gfHwgZnJhZ21lbnRzW1wibWludXRlXCJdIHx8IGZyYWdtZW50c1tcInNlY29uZFwiXSkge1xuICAgICAgICAgICAgZGF5anNfMi5hc3NpZ25TaW1pbGFyVGltZShjb21wb25lbnRzLCBkYXRlKTtcbiAgICAgICAgICAgIGRheWpzXzIuYXNzaWduU2ltaWxhckRhdGUoY29tcG9uZW50cywgZGF0ZSk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBkYXlqc18yLmltcGx5U2ltaWxhclRpbWUoY29tcG9uZW50cywgZGF0ZSk7XG4gICAgICAgICAgICBpZiAoZnJhZ21lbnRzW1wiZFwiXSkge1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudHMuYXNzaWduKFwiZGF5XCIsIGRhdGUuZGF0ZSgpKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcIm1vbnRoXCIsIGRhdGUubW9udGgoKSArIDEpO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudHMuYXNzaWduKFwieWVhclwiLCBkYXRlLnllYXIoKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICBpZiAoZnJhZ21lbnRzW1wid2Vla1wiXSkge1xuICAgICAgICAgICAgICAgICAgICBjb21wb25lbnRzLmltcGx5KFwid2Vla2RheVwiLCBkYXRlLmRheSgpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgY29tcG9uZW50cy5pbXBseShcImRheVwiLCBkYXRlLmRhdGUoKSk7XG4gICAgICAgICAgICAgICAgaWYgKGZyYWdtZW50c1tcIm1vbnRoXCJdKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbXBvbmVudHMuYXNzaWduKFwibW9udGhcIiwgZGF0ZS5tb250aCgpICsgMSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbXBvbmVudHMuYXNzaWduKFwieWVhclwiLCBkYXRlLnllYXIoKSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBjb21wb25lbnRzLmltcGx5KFwibW9udGhcIiwgZGF0ZS5tb250aCgpICsgMSk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChmcmFnbWVudHNbXCJ5ZWFyXCJdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcInllYXJcIiwgZGF0ZS55ZWFyKCkpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50cy5pbXBseShcInllYXJcIiwgZGF0ZS55ZWFyKCkpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjb21wb25lbnRzO1xuICAgIH1cbn1cbmV4cG9ydHMuUGFyc2luZ0NvbXBvbmVudHMgPSBQYXJzaW5nQ29tcG9uZW50cztcbmNsYXNzIFBhcnNpbmdSZXN1bHQge1xuICAgIGNvbnN0cnVjdG9yKHJlZkRhdGUsIGluZGV4LCB0ZXh0LCBzdGFydCwgZW5kKSB7XG4gICAgICAgIHRoaXMucmVmRGF0ZSA9IHJlZkRhdGU7XG4gICAgICAgIHRoaXMuaW5kZXggPSBpbmRleDtcbiAgICAgICAgdGhpcy50ZXh0ID0gdGV4dDtcbiAgICAgICAgdGhpcy5zdGFydCA9IHN0YXJ0IHx8IG5ldyBQYXJzaW5nQ29tcG9uZW50cyh0aGlzLnJlZkRhdGUpO1xuICAgICAgICB0aGlzLmVuZCA9IGVuZDtcbiAgICB9XG4gICAgY2xvbmUoKSB7XG4gICAgICAgIGNvbnN0IHJlc3VsdCA9IG5ldyBQYXJza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dpbmdNYXRjaCB8fFxuICAgICAgICAgICAgZm9sbG93aW5nTWF0Y2hbMF0ubWF0Y2goL15cXHMqKFsrLV0pXFxzKlxcZHszLDR9JC8pKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5jaGVja0FuZFJldHVybldpdGhvdXRGb2xsb3dpbmdQYXR0ZXJuKHJlc3VsdCk7XG4gICAgICAgIH1cbiAgICAgICAgcmVzdWx0LmVuZCA9IHRoaXMuZXh0cmFjdEZvbGxvd2luZ1RpbWVDb21wb25lbnRzKGNvbnRleHQsIGZvbGxvd2luZ01hdGNoLCByZXN1bHQpO1xuICAgICAgICBpZiAocmVzdWx0LmVuZCkge1xuICAgICAgICAgICAgcmVzdWx0LnRleHQgKz0gZm9sbG93aW5nTWF0Y2hbMF07XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRoaXMuY2hlY2tBbmRSZXR1cm5XaXRoRm9sbG93aW5nUGF0dGVybihyZXN1bHQpO1xuICAgIH1cbiAgICBleHRyYWN0UHJpbWFyeVRpbWVDb21wb25lbnRzKGNvbnRleHQsIG1hdGNoLCBzdHJpY3QgPSBmYWxzZSkge1xuICAgICAgICBjb25zdCBjb21wb25lbnRzID0gY29udGV4dC5jcmVhdGVQYXJzaW5nQ29tcG9uZW50cygpO1xuICAgICAgICBsZXQgbWludXRlID0gMDtcbiAgICAgICAgbGV0IG1lcmlkaWVtID0gbnVsbDtcbiAgICAgICAgbGV0IGhvdXIgPSBwYXJzZUludChtYXRjaFtIT1VSX0dST1VQXSk7XG4gICAgICAgIGlmIChob3VyID4gMTAwKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5zdHJpY3RNb2RlIHx8IG1hdGNoW01JTlVURV9HUk9VUF0gIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbWludXRlID0gaG91ciAlIDEwMDtcbiAgICAgICAgICAgIGhvdXIgPSBNYXRoLmZsb29yKGhvdXIgLyAxMDApO1xuICAgICAgICB9XG4gICAgICAgIGlmIChob3VyID4gMjQpIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgICAgIGlmIChtYXRjaFtNSU5VVEVfR1JPVVBdICE9IG51bGwpIHtcbiAgICAgICAgICAgIGlmIChtYXRjaFtNSU5VVEVfR1JPVVBdLmxlbmd0aCA9PSAxICYmICFtYXRjaFtBTV9QTV9IT1VSX0dST1VQXSkge1xuICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbWludXRlID0gcGFyc2VJbnQobWF0Y2hbTUlOVVRFX0dST1VQXSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG1pbnV0ZSA+PSA2MCkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGhvdXIgPiAxMikge1xuICAgICAgICAgICAgbWVyaWRpZW0gPSBpbmRleF8xLk1lcmlkaWVtLlBNO1xuICAgICAgICB9XG4gICAgICAgIGlmIChtYXRjaFtBTV9QTV9IT1VSX0dST1VQXSAhPSBudWxsKSB7XG4gICAgICAgICAgICBpZiAoaG91ciA+IDEyKVxuICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICAgICAgY29uc3QgYW1wbSA9IG1hdGNoW0FNX1BNX0hPVVJfR1JPVVBdWzBdLnRvTG93ZXJDYXNlKCk7XG4gICAgICAgICAgICBpZiAoYW1wbSA9PSBcImFcIikge1xuICAgICAgICAgICAgICAgIG1lcmlkaWVtID0gaW5kZXhfMS5NZXJpZGllbS5BTTtcbiAgICAgICAgICAgICAgICBpZiAoaG91ciA9PSAxMikge1xuICAgICAgICAgICAgICAgICAgICBob3VyID0gMDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoYW1wbSA9PSBcInBcIikge1xuICAgICAgICAgICAgICAgIG1lcmlkaWVtID0gaW5kZXhfMS5NZXJpZGllbS5QTTtcbiAgICAgICAgICAgICAgICBpZiAoaG91ciAhPSAxMikge1xuICAgICAgICAgICAgICAgICAgICBob3VyICs9IDEyO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcImhvdXJcIiwgaG91cik7XG4gICAgICAgIGNvbXBvbmVudHMuYXNzaWduKFwibWludXRlXCIsIG1pbnV0ZSk7XG4gICAgICAgIGlmIChtZXJpZGllbSAhPT0gbnVsbCkge1xuICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJtZXJpZGllbVwiLCBtZXJpZGllbSk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBpZiAoaG91ciA8IDEyKSB7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50cy5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uQU0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50cy5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uUE0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChtYXRjaFtNSUxMSV9TRUNPTkRfR1JPVVBdICE9IG51bGwpIHtcbiAgICAgICAgICAgIGNvbnN0IG1pbGxpc2Vjb25kID0gcGFyc2VJbnQobWF0Y2hbTUlMTElfU0VDT05EX0dST1VQXS5zdWJzdHJpbmcoMCwgMykpO1xuICAgICAgICAgICAgaWYgKG1pbGxpc2Vjb25kID49IDEwMDApXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcIm1pbGxpc2Vjb25kXCIsIG1pbGxpc2Vjb25kKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAobWF0Y2hbU0VDT05EX0dST1VQXSAhPSBudWxsKSB7XG4gICAgICAgICAgICBjb25zdCBzZWNvbmQgPSBwYXJzZUludChtYXRjaFtTRUNPTkRfR1JPVVBdKTtcbiAgICAgICAgICAgIGlmIChzZWNvbmQgPj0gNjApXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcInNlY29uZFwiLCBzZWNvbmQpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjb21wb25lbnRzO1xuICAgIH1cbiAgICBleHRyYWN0Rm9sbG93aW5nVGltZUNvbXBvbmVudHMoY29udGV4dCwgbWF0Y2gsIHJlc3VsdCkge1xuICAgICAgICBjb25zdCBjb21wb25lbnRzID0gY29udGV4dC5jcmVhdGVQYXJzaW5nQ29tcG9uZW50cygpO1xuICAgICAgICBpZiAobWF0Y2hbTUlMTElfU0VDT05EX0dST1VQXSAhPSBudWxsKSB7XG4gICAgICAgICAgICBjb25zdCBtaWxsaXNlY29uZCA9IHBhcnNlSW50KG1hdGNoW01JTExJX1NFQ09ORF9HUk9VUF0uc3Vic3RyaW5nKDAsIDMpKTtcbiAgICAgICAgICAgIGlmIChtaWxsaXNlY29uZCA+PSAxMDAwKVxuICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJtaWxsaXNlY29uZFwiLCBtaWxsaXNlY29uZCk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG1hdGNoW1NFQ09ORF9HUk9VUF0gIT0gbnVsbCkge1xuICAgICAgICAgICAgY29uc3Qgc2Vjb25kID0gcGFyc2VJbnQobWF0Y2hbU0VDT05EX0dST1VQXSk7XG4gICAgICAgICAgICBpZiAoc2Vjb25kID49IDYwKVxuICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJzZWNvbmRcIiwgc2Vjb25kKTtcbiAgICAgICAgfVxuICAgICAgICBsZXQgaG91ciA9IHBhcnNlSW50KG1hdGNoW0hPVVJfR1JPVVBdKTtcbiAgICAgICAgbGV0IG1pbnV0ZSA9IDA7XG4gICAgICAgIGxldCBtZXJpZGllbSA9IC0xO1xuICAgICAgICBpZiAobWF0Y2hbTUlOVVRFX0dST1VQXSAhPSBudWxsKSB7XG4gICAgICAgICAgICBtaW51dGUgPSBwYXJzZUludChtYXRjaFtNSU5VVEVfR1JPVVBdKTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChob3VyID4gMTAwKSB7XG4gICAgICAgICAgICBtaW51dGUgPSBob3VyICUgMTAwO1xuICAgICAgICAgICAgaG91ciA9IE1hdGguZmxvb3IoaG91ciAvIDEwMCk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG1pbnV0ZSA+PSA2MCB8fCBob3VyID4gMjQpIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgICAgIGlmIChob3VyID49IDEyKSB7XG4gICAgICAgICAgICBtZXJpZGllbSA9IGluZGV4XzEuTWVyaWRpZW0uUE07XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG1hdGNoW0FNX1BNX0hPVVJfR1JPVVBdICE9IG51bGwpIHtcbiAgICAgICAgICAgIGlmIChob3VyID4gMTIpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGNvbnN0IGFtcG0gPSBtYXRjaFtBTV9QTV9IT1VSX0dST1VQXVswXS50b0xvd2VyQ2FzZSgpO1xuICAgICAgICAgICAgaWYgKGFtcG0gPT0gXCJhXCIpIHtcbiAgICAgICAgICAgICAgICBtZXJpZGllbSA9IGluZGV4XzEuTWVyaWRpZW0uQU07XG4gICAgICAgICAgICAgICAgaWYgKGhvdXIgPT0gMTIpIHtcbiAgICAgICAgICAgICAgICAgICAgaG91ciA9IDA7XG4gICAgICAgICAgICAgICAgICAgIGlmICghY29tcG9uZW50cy5pc0NlcnRhaW4oXCJkYXlcIikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBvbmVudHMuaW1wbHkoXCJkYXlcIiwgY29tcG9uZW50cy5nZXQoXCJkYXlcIikgKyAxKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChhbXBtID09IFwicFwiKSB7XG4gICAgICAgICAgICAgICAgbWVyaWRpZW0gPSBpbmRleF8xLk1lcmlkaWVtLlBNO1xuICAgICAgICAgICAgICAgIGlmIChob3VyICE9IDEyKVxuICAgICAgICAgICAgICAgICAgICBob3VyICs9IDEyO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKCFyZXN1bHQuc3RhcnQuaXNDZXJ0YWluKFwibWVyaWRpZW1cIikpIHtcbiAgICAgICAgICAgICAgICBpZiAobWVyaWRpZW0gPT0gaW5kZXhfMS5NZXJpZGllbS5BTSkge1xuICAgICAgICAgICAgICAgICAgICByZXN1bHQuc3RhcnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLkFNKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHJlc3VsdC5zdGFydC5nZXQoXCJob3VyXCIpID09IDEyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXN1bHQuc3RhcnQuYXNzaWduKFwiaG91clwiLCAwKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgcmVzdWx0LnN0YXJ0LmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5QTSk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHQuc3RhcnQuZ2V0KFwiaG91clwiKSAhPSAxMikge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVzdWx0LnN0YXJ0LmFzc2lnbihcImhvdXJcIiwgcmVzdWx0LnN0YXJ0LmdldChcImhvdXJcIikgKyAxMik7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJob3VyXCIsIGhvdXIpO1xuICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcIm1pbnV0ZVwiLCBtaW51dGUpO1xuICAgICAgICBpZiAobWVyaWRpZW0gPj0gMCkge1xuICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJtZXJpZGllbVwiLCBtZXJpZGllbSk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBjb25zdCBzdGFydEF0UE0gPSByZXN1bHQuc3RhcnQuaXNDZXJ0YWluKFwibWVyaWRpZW1cIikgJiYgcmVzdWx0LnN0YXJ0LmdldChcImhvdXJcIikgPiAxMjtcbiAgICAgICAgICAgIGlmIChzdGFydEF0UE0pIHtcbiAgICAgICAgICAgICAgICBpZiAocmVzdWx0LnN0YXJ0LmdldChcImhvdXJcIikgLSAxMiA+IGhvdXIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50cy5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uQU0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIGlmIChob3VyIDw9IDEyKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbXBvbmVudHMuYXNzaWduKFwiaG91clwiLCBob3VyICsgMTIpO1xuICAgICAgICAgICAgICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uUE0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKGhvdXIgPiAxMikge1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudHMuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLlBNKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKGhvdXIgPD0gMTIpIHtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRzLmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5BTSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGNvbXBvbmVudHMuZGF0ZSgpLmdldFRpbWUoKSA8IHJlc3VsdC5zdGFydC5kYXRlKCkuZ2V0VGltZSgpKSB7XG4gICAgICAgICAgICBjb21wb25lbnRzLmltcGx5KFwiZGF5XCIsIGNvbXBvbmVudHMuZ2V0KFwiZGF5XCIpICsgMSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGNvbXBvbmVudHM7XG4gICAgfVxuICAgIGNoZWNrQW5kUmV0dXJuV2l0aG91dEZvbGxvd2luZ1BhdHRlcm4ocmVzdWx0KSB7XG4gICAgICAgIGlmIChyZXN1bHQudGV4dC5tYXRjaCgvXlxcZCQvKSkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgY29uc3QgZW5kaW5nV2l0aE51bWJlcnMgPSByZXN1bHQudGV4dC5tYXRjaCgvW15cXGQ6Ll0oXFxkW1xcZC5dKykkLyk7XG4gICAgICAgIGlmIChlbmRpbmdXaXRoTnVtYmVycykge1xuICAgICAgICAgICAgY29uc3QgZW5kaW5nTnVtYmVycyA9IGVuZGluZ1dpdGhOdW1iZXJzWzFdO1xuICAgICAgICAgICAgaWYgKHRoaXMuc3RyaWN0TW9kZSkge1xuICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGVuZGluZ051bWJlcnMuaW5jbHVkZXMoXCIuXCIpICYmICFlbm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kc1dpdGgoXCJuaWdodFwiKSkge1xuICAgICAgICAgICAgICAgIGNvbnN0IGhvdXIgPSBjb21wb25lbnRzLmdldChcImhvdXJcIik7XG4gICAgICAgICAgICAgICAgaWYgKGhvdXIgPj0gNiAmJiBob3VyIDwgMTIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJob3VyXCIsIGNvbXBvbmVudHMuZ2V0KFwiaG91clwiKSArIDEyKTtcbiAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLlBNKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSBpZiAoaG91ciA8IDYpIHtcbiAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLkFNKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAobWF0Y2hbMF0uZW5kc1dpdGgoXCJhZnRlcm5vb25cIikpIHtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uUE0pO1xuICAgICAgICAgICAgICAgIGNvbnN0IGhvdXIgPSBjb21wb25lbnRzLmdldChcImhvdXJcIik7XG4gICAgICAgICAgICAgICAgaWYgKGhvdXIgPj0gMCAmJiBob3VyIDw9IDYpIHtcbiAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJob3VyXCIsIGNvbXBvbmVudHMuZ2V0KFwiaG91clwiKSArIDEyKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAobWF0Y2hbMF0uZW5kc1dpdGgoXCJtb3JuaW5nXCIpKSB7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50cy5hc3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gZXhwb3J0cy5GaWx0ZXIgPSB2b2lkIDA7XG5jbGFzcyBGaWx0ZXIge1xuICAgIHJlZmluZShjb250ZXh0LCByZXN1bHRzKSB7XG4gICAgICAgIHJldHVybiByZXN1bHRzLmZpbHRlcigocikgPT4gdGhpcy5pc1ZhbGlkKGNvbnRleHQsIHIpKTtcbiAgICB9XG59XG5leHBvcnRzLkZpbHRlciA9IEZpbHRlcjtcbmNsYXNzIE1lcmdpbmdSZWZpbmVyIHtcbiAgICByZWZpbmUoY29udGV4dCwgcmVzdWx0cykge1xuICAgICAgICBpZiAocmVzdWx0cy5sZW5ndGggPCAyKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0cztcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBtZXJnZWRSZXN1bHRzID0gW107XG4gICAgICAgIGxldCBjdXJSZXN1bHQgPSByZXN1bHRzWzBdO1xuICAgICAgICBsZXQgbmV4dFJlc3VsdCA9IG51bGw7XG4gICAgICAgIGZvciAobGV0IGkgPSAxOyBpIDwgcmVzdWx0cy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgbmV4dFJlc3VsdCA9IHJlc3VsdHNbaV07XG4gICAgICAgICAgICBjb25zdCB0ZXh0QmV0d2VlbiA9IGNvbnRleHQudGV4dC5zdWJzdHJpbmcoY3VyUmVzdWx0LmluZGV4ICsgY3VyUmVzdWx0LnRleHQubGVuZ3RoLCBuZXh0UmVzdWx0LmluZGV4KTtcbiAgICAgICAgICAgIGlmICghdGhpcy5zaG91bGRNZXJnZVJlc3VsdHModGV4dEJldHdlZW4sIGN1clJlc3VsdCwgbmV4dFJlc3VsdCwgY29udGV4dCkpIHtcbiAgICAgICAgICAgICAgICBtZXJnZWRSZXN1bHRzLnB1c2goY3VyUmVzdWx0KTtcbiAgICAgICAgICAgICAgICBjdXJSZXN1bHQgPSBuZXh0UmVzdWx0O1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgY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JSX01BUCksIHRpbWV6b25lT3ZlcnJpZGVzKTtcbiAgICB9XG4gICAgcmVmaW5lKGNvbnRleHQsIHJlc3VsdHMpIHtcbiAgICAgICAgdmFyIF9hO1xuICAgICAgICBjb25zdCB0aW1lem9uZU92ZXJyaWRlcyA9IChfYSA9IGNvbnRleHQub3B0aW9uLnRpbWV6b25lcykgIT09IG51bGwgJiYgX2EgIT09IHZvaWQgMCA/IF9hIDoge307XG4gICAgICAgIHJlc3VsdHMuZm9yRWFjaCgocmVzdWx0KSA9PiB7XG4gICAgICAgICAgICB2YXIgX2EsIF9iO1xuICAgICAgICAgICAgY29uc3Qgc3VmZml4ID0gY29udGV4dC50ZXh0LnN1YnN0cmluZyhyZXN1bHQuaW5kZXggKyByZXN1bHQudGV4dC5sZW5ndGgpO1xuICAgICAgICAgICAgY29uc3QgbWF0Y2ggPSBUSU1FWk9ORV9OQU1FX1BBVFRFUk4uZXhlYyhzdWZmaXgpO1xuICAgICAgICAgICAgaWYgKCFtYXRjaCkge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGNvbnN0IHRpbWV6b25lQWJiciA9IG1hdGNoWzFdLnRvVXBwZXJDYXNlKCk7XG4gICAgICAgICAgICBjb25zdCBleHRyYWN0ZWRUaW1lem9uZU9mZnNldCA9IChfYiA9IChfYSA9IHRpbWV6b25lT3ZlcnJpZGVzW3RpbWV6b25lQWJicl0pICE9PSBudWxsICYmIF9hICE9PSB2b2lkIDAgPyBfYSA6IHRoaXMudGltZXpvbmVbdGltZXpvbmVBYmJyXSkgIT09IG51bGwgJiYgX2IgIT09IHZvaWQgMCA/IF9iIDogbnVsbDtcbiAgICAgICAgICAgIGlmIChleHRyYWN0ZWRUaW1lem9uZU9mZnNldCA9PT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGNvbnRleHQuZGVidWcoKCkgPT4ge1xuICAg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sIHsgdmFsdWU6IHRydWUgfSk7XG5jbGFzcyBPdmVybGFwUmVtb3ZhbFJlZmluZXIge1xuICAgIHJlZmluZShjb250ZXh0LCByZXN1bHRzKSB7XG4gICAgICAgIGlmIChyZXN1bHRzLmxlbmd0aCA8IDIpIHtcbiAgICAgICAgICAgIHJldHVybiByZXN1bHRzO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGZpbHRlcmVkUmVzdWx0cyA9IFtdO1xuICAgICAgICBsZXQgcHJldlJlc3VsdCA9IHJlc3VsdHNbMF07XG4gICAgICAgIGZvciAobGV0IGkgPSAxOyBpIDwgcmVzdWx0cy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgY29uc3QgcmVzdWx0ID0gcmVzdWx0c1tpXTtcbiAgICAgICAgICAgIGlmIChyZXN1bHQuaW5kZXggPCBwcmV2UmVzdWx0LmluZGV4ICsgcHJldlJlc3VsdC50ZXh0Lmxlbmd0aCkge1xuICAgICAgICAgICAgICAgIGlmIChyZXN1bHQudGV4dC5sZW5ndGggPiBwcmV2UmVzdWx0LnRleHQubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgIHByZXZSZXN1bHQgPSByZXN1bHQ7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgZmlsdGVyZWRSZXN1bHRzLnB1c2gocHJldlJlc3VsdCk7XG4gICAgICAgICAgICAgICAgcHJldlJlc3VsdCA9IHJlc3VsdDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAocHJldlJlc3VsdCAhPSBudWxsKSB7XG4gICAgICAgICAgICBmaWx0ZXJlZFJlc3VsdHMucHVzaChwcmV2UmVzdWx0KTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmlsdGVyZWRSZXN1bHRzO1xuICAgIH1cbn1cbmV4cG9ydHMuZGVmYXVsdCA9IE92ZXJsYXBSZW1vdmFsUmVmaW5lcjtcbiIsIlwidXNlIHN0cmljdFwiO1xudmFyIF9faW1wb3J0RGVmYXVsdCA9ICh0aGlzICYmIHRoaXMuX19pbXBvcnREZWZhdWx0KSB8fCBmdW5jdGlvbiAobW9kKSB7XG4gICAgcmV0dXJuIChtb2QgJiYgbW9kLl9fZXNNb2R1bGUpID8gbW9kIDogeyBcImRlZmF1bHRcIjogbW9kIH07XG59O1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xuY29uc3QgZGF5anNfMSA9IF9faW1wb3J0RGVmYXVsdChyZXF1aXJlKFwiZGF5anNcIikpO1xuY2xhc3MgRm9yd2FyZERhdGVSZWZpbmVyIHtcbiAgICByZWZpbmUoY29udGV4dCwgcmVzdWx0cykge1xuICAgICAgICBpZiAoIWNvbnRleHQub3B0aW9uLmZvcndhcmREYXRlKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0cztcbiAgICAgICAgfVxuICAgICAgICByZXN1bHRzLmZvckVhY2goZnVuY3Rpb24gKHJlc3VsdCkge1xuICAgICAgICAgICAgbGV0IHJlZk1vbWVudCA9IGRheWpzXzEuZGVmYXVsdChjb250ZXh0LnJlZkRhdGUpO1xuICAgICAgICAgICAgaWYgKHJlc3VsdC5zdGFydC5pc09ubHlEYXlNb250aENvbXBvbmVudCgpICYmIHJlZk1vbWVudC5pc0FmdGVyKHJlc3VsdC5zdGFydC5kYXlqcygpKSkge1xuICAgICAgICAgICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgMyAmJiByZWZNb21lbnQuaXNBZnRlcihyZXN1bHQuc3RhcnQuZGF5anMoKSk7IGkrKykge1xuICAgICAgICAgICAgICAgICAgICByZXN1bHQuc3RhcnQuaW1wbHkoXCJ5ZWFyXCIsIHJlc3VsdC5zdGFydC5nZXQoXCJ5ZWFyXCIpICsgMSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRleHQuZGVidWcoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coYEZvcndhcmQgeWVhcmx5IGFkanVzdGVkIGZvciAke3Jlc3VsdH0gKCR7cmVzdWx0LnN0YXJ0fSlgKTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHQuZW5kICYmICFyZXN1bHQuZW5kLmlzQ2VydGFpbihcInllYXJcIikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdC5lbmQuaW1wbHkoXCJ5ZWFyXCIsIHJlc3VsdC5lbmQuZ2V0KFwieWVhclwiKSArIDEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29udGV4dC5kZWJ1ZygoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coYEZvcndhcmQgeWVhcmx5IGFkanVzdGVkIGZvciAke3Jlc3VsdH0gKCR7cmVzdWx0LmVuZH0pYCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChyZXN1bHQuc3RhcnQuaXNPbmx5V2Vla2RheUNvbXBvbmVudCgpICYmIHJlZk1vbWVudC5pc0FmdGVyKHJlc3VsdC5zdGFydC5kYXlqcygpKSkge1xuICAgICAgICAgICAgICAgIGlmIChyZWZNb21lbnQuZGF5KCkgPiByZXN1bHQuc3RhcnQuZ2V0KFwid2Vla2RheVwiKSkge1xuICAgICAgICAgICAgICAgICAgICByZWZNb21lbnQgPSByZWZNb21lbnQuZGF5KHJlc3VsdC5zdGFydC5nZXQoXCJ3ZWVrZGF5XCIpICsgNyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICByZWZNb21lbnQgPSByZWZNb21lbnQuZGF5KHJlc3VsdC5zdGFydC5nZXQoXCJ3ZWVrZGF5XCIpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmVzdWx0LnN0YXJ0LmltcGx5KFwiZGF5XCIsIHJlZk1vbWVudC5kYXRlKCkpO1xuICAgICAgICAgICAgICAgIHJlc3VsdC5zdGFydC5pbXBseShcIm1vbnRoXCIsIHJlZk1vbWVudC5tb250aCgpICsgMSk7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnN0YXJ0LmltcGx5KFwieWVhclwiLCByZWZNb21lbnQueWVhcigpKTtcbiAgICAgICAgICAgICAgICBjb250ZXh0LmRlYnVnKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coYEZvcndhcmQgd2Vla2x5IGFkanVzdGVkIGZvciAke3Jlc3VsdH0gKCR7cmVzdWx0LnN0YXJ0fSlgKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBpZiAocmVzdWx0LmVuZCAmJiByZXN1bHQuZW5kLmlzT25seVdlZWtkYXlDb21wb25lbnQoKSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAocmVmTW9tZW50LmRheSgpID4gcmVzdWx0LmVuZC5nZXQoXCJ3ZWVrZGF5XCIpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZWZNb21lbnQgPSByZWZNb21lbnQuZGF5KHJlc3VsdC5lbmQuZ2V0KFwid2Vla2RheVwiKSArIDcpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVmTW9tZW50ID0gcmVmTW9tZW50LmRheShyZXN1bHQuZW5kLmdldChcIndlZWtkYXlcIikpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHJlc3VsdC5lbmQuaW1wbHkoXCJkYXlcIiwgcmVmTW9tZW50LmRhdGUoKSk7XG4gICAgICAgICAgIC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4dC5kZWJ1ZygoKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coYFJlbW92aW5nIHVubGlrZWx5IHJlc3VsdCAnJHtyZXN1bHQudGV4dH0nYCk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIXJlc3VsdC5zdGFydC5pc1ZhbGlkRGF0ZSgpKSB7XG4gICAgICAgICAgICBjb250ZXh0LmRlYnVnKCgpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhgUmVtb3ZpbmcgaW52YWxpZCByZXN1bHQ6ICR7cmVzdWx0fSAoJHtyZXN1bHQuc3RhcnR9KWApO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHJlc3VsdC5lbmQgJiYgIXJlc3VsdC5lbmQuaXNWYWxpZERhdGUoKSkge1xuICAgICAgICAgICAgY29udGV4dC5kZWJ1ZygoKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coYFJlbW92aW5nIGludmFsaWQgcmVzdWx0OiAke3Jlc3VsdH0gKCR7cmVzdWx0LmVuZH0pYCk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5zdHJpY3RNb2RlKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5pc1N0cmljdE1vZGVWYWxpZChjb250ZXh0LCByZXN1bHQpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cbiAgICBpc1N0cmljdE1vZGVWYWxpZChjb250ZXh0LCByZXN1bHQpIHtcbiAgICAgICAgaWYgKHJlc3VsdC5zdGFydC5pc09ubHlXZWVrZGF5Q29tcG9uZW50KCkpIHtcbiAgICAgICAgICAgIGNvbnRleHQuZGVidWcoK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b25lbnRzW1wibW9udGhcIl0gPSBwYXJzZUludChtYXRjaFtNT05USF9OVU1CRVJfR1JPVVBdKTtcbiAgICAgICAgY29tcG9uZW50c1tcImRheVwiXSA9IHBhcnNlSW50KG1hdGNoW0RBVEVfTlVNQkVSX0dST1VQXSk7XG4gICAgICAgIGlmIChtYXRjaFtIT1VSX05VTUJFUl9HUk9VUF0gIT0gbnVsbCkge1xuICAgICAgICAgICAgY29tcG9uZW50c1tcImhvdXJcIl0gPSBwYXJzZUludChtYXRjaFtIT1VSX05VTUJFUl9HUk9VUF0pO1xuICAgICAgICAgICAgY29tcG9uZW50c1tcIm1pbnV0ZVwiXSA9IHBhcnNlSW50KG1hdGNoW01JTlVURV9OVU1CRVJfR1JPVVBdKTtcbiAgICAgICAgICAgIGlmIChtYXRjaFtTRUNPTkRfTlVNQkVSX0dST1VQXSAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50c1tcInNlY29uZFwiXSA9IHBhcnNlSW50KG1hdGNoW1NFQ09ORF9OVU1CRVJfR1JPVVBdKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChtYXRjaFtNSUxMSVNFQ09ORF9OVU1CRVJfR1JPVVBdICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRzW1wibWlsbGlzZWNvbmRcIl0gPSBwYXJzZUludChtYXRjaFtNSUxMSVNFQ09ORF9OVU1CRVJfR1JPVVBdKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChtYXRjaFtUWkRfSE9VUl9PRkZTRVRfR1JPVVBdID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRzW1widGltZXpvbmVPZmZzZXRcIl0gPSAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgY29uc3QgaG91ck9mZnNldCA9IHBhcnNlSW50KG1hdGNoW1RaRF9IT1VSX09GRlNFVF9HUk9VUF0pO1xuICAgICAgICAgICAgICAgIGxldCBtaW51dGVPZmZzZXQgPSAwO1xuICAgICAgICAgICAgICAgIGlmIChtYXRjaFtUWkRfTUlOVVRFX09GRlNFVF9HUk9VUF0gIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBtaW51dGVPZmZzZXQgPSBwYXJzZUludChtYXRjaFtUWkRfTUlOVVRFX09GRlNFVF9HUk9VUF0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBsZXQgb2Zmc2V0ID0gaG91ck9mZnNldCAqIDYwO1xuICAgICAgICAgICAgICAgIGlmIChvZmZzZXQgPCAwKSB7XG4gICAgICAgICAgICAgICAgICAgIG9mZnNldCAtPSBtaW51dGVPZmZzZXQ7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBvZmZzZXQgKz0gbWludXRlT2Zmc2V0O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb21wb25lbnRzW1widGltZXpvbmVPZmZzZXRcIl0gPSBvZmZzZXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGNvbXBvbmVudHM7XG4gICAgfVxufVxuZXhwb3J0cy5kZWZhdWx0ID0gSVNPRm9ybWF0UGFyc2VyO1xuIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5jb25zdCBhYnN0cmFjdFJlZmluZXJzXzEgPSByZXF1aXJlKFwiLi4vYWJzdHJhY3RSZWZpbmVyc1wiKTtcbmNsYXNzIE1lcmdlV2Vla2RheUNvbXBvbmVudFJlZmluZXIgZXh0ZW5kcyBhYnN0cmFjdFJlZmluZXJzXzEuTWVyZ2luZ1JlZmluZXIge1xuICAgIG1lcmdlUmVzdWx0cyh0ZXh0Q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ZXREYXRlID0gZGF5anNfMS5kZWZhdWx0KGNvbnRleHQucmVmRGF0ZSk7XG4gICAgICAgIGNvbnN0IGxvd2VyVGV4dCA9IG1hdGNoWzBdLnRvTG93ZXJDYXNlKCk7XG4gICAgICAgIGNvbnN0IGNvbXBvbmVudCA9IGNvbnRleHQuY3JlYXRlUGFyc2luZ0NvbXBvbmVudHMoKTtcbiAgICAgICAgc3dpdGNoIChsb3dlclRleHQpIHtcbiAgICAgICAgICAgIGNhc2UgXCJub3dcIjpcbiAgICAgICAgICAgICAgICByZXR1cm4gcmVmZXJlbmNlcy5ub3coY29udGV4dC5yZWZEYXRlKTtcbiAgICAgICAgICAgIGNhc2UgXCJ0b2RheVwiOlxuICAgICAgICAgICAgICAgIHJldHVybiByZWZlcmVuY2VzLnRvZGF5KGNvbnRleHQucmVmRGF0ZSk7XG4gICAgICAgICAgICBjYXNlIFwieWVzdGVyZGF5XCI6XG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlZmVyZW5jZXMueWVzdGVyZGF5KGNvbnRleHQucmVmRGF0ZSk7XG4gICAgICAgICAgICBjYXNlIFwidG9tb3Jyb3dcIjpcbiAgICAgICAgICAgIGNhc2UgXCJ0bXJcIjpcbiAgICAgICAgICAgICAgICByZXR1cm4gcmVmZXJlbmNlcy50b21vcnJvdyhjb250ZXh0LnJlZkRhdGUpO1xuICAgICAgICAgICAgY2FzZSBcInRvbmlnaHRcIjpcbiAgICAgICAgICAgICAgICByZXR1cm4gcmVmZXJlbmNlcy50b25pZ2h0KGNvbnRleHQucmVmRGF0ZSk7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIGlmIChsb3dlclRleHQubWF0Y2goL2xhc3RcXHMqbmlnaHQvKSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGFyZ2V0RGF0ZS5ob3VyKCkgPiA2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXREYXRlID0gdGFyZ2V0RGF0ZS5hZGQoL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ufGV2ZW5pbmd8bmlnaHR8bWlkbmlnaHR8bm9vbikoPz1cXFd8JCkvaTtcbmNsYXNzIEVOQ2FzdWFsVGltZVBhcnNlciBleHRlbmRzIEFic3RyYWN0UGFyc2VyV2l0aFdvcmRCb3VuZGFyeV8xLkFic3RyYWN0UGFyc2VyV2l0aFdvcmRCb3VuZGFyeUNoZWNraW5nIHtcbiAgICBpbm5lclBhdHRlcm4oKSB7XG4gICAgICAgIHJldHVybiBQQVRURVJOO1xuICAgIH1cbiAgICBpbm5lckV4dHJhY3QoY29udGV4dCwgbWF0Y2gpIHtcbiAgICAgICAgY29uc3QgdGFyZ2V0RGF0ZSA9IGRheWpzXzEuZGVmYXVsdChjb250ZXh0LnJlZkRhdGUpO1xuICAgICAgICBjb25zdCBjb21wb25lbnQgPSBjb250ZXh0LmNyZWF0ZVBhcnNpbmdDb21wb25lbnRzKCk7XG4gICAgICAgIHN3aXRjaCAobWF0Y2hbMV0udG9Mb3dlckNhc2UoKSkge1xuICAgICAgICAgICAgY2FzZSBcImFmdGVybm9vblwiOlxuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uUE0pO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcImhvdXJcIiwgMTUpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcImV2ZW5pbmdcIjpcbiAgICAgICAgICAgIGNhc2UgXCJuaWdodFwiOlxuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uUE0pO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcImhvdXJcIiwgMjApO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm1pZG5pZ2h0XCI6XG4gICAgICAgICAgICAgICAgZGF5anNfMi5hc3NpZ25UaGVOZXh0RGF5KGNvbXBvbmVudCwgdGFyZ2V0RGF0ZSk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwiLCAwKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtaW51dGVcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwic2Vjb25kXCIsIDApO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm1vcm5pbmdcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLkFNKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDYpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm5vb25cIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLkFNKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDEyKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY29tcG9uZW50O1xuICAgIH1cbn1cbmV4cG9ydHMuZGVmYXVsdCA9IEVOQ2FzdWFsVGltZVBhcnNlcjtcbiIsIlwidXNlIHN0cmljdFwiO1xudmFyIF9faW1wb3J0RGVmYXVsdCA9ICh0aGlzICYmIHRoaXMuX19pbXBvcnREZWZhdWx0KSB8fCBmdW5jdGlvbiAobW9kKSB7XG4gICAgcmV0dXJuIChtb2QgJiYgbW9kLl9fZXNNb2R1bGUpID8gbW9kIDogeyBcImRlZmF1bHRcIjogbW9kIH07XG59O1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnV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VyV29yZCB8fCBcIlwiO1xuICAgICAgICBtb2RpZmllcldvcmQgPSBtb2RpZmllcldvcmQudG9Mb3dlckNhc2UoKTtcbiAgICAgICAgbGV0IG1vZGlmaWVyID0gbnVsbDtcbiAgICAgICAgaWYgKG1vZGlmaWVyV29yZCA9PSBcImxhc3RcIiB8fCBtb2RpZmllcldvcmQgPT0gXCJwYXN0XCIpIHtcbiAgICAgICAgICAgIG1vZGlmaWVyID0gXCJsYXN0XCI7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSBpZiAobW9kaWZpZXJXb3JkID09IFwibmV4dFwiKSB7XG4gICAgICAgICAgICBtb2RpZmllciA9IFwibmV4dFwiO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKG1vZGlmaWVyV29yZCA9PSBcInRoaXNcIikge1xuICAgICAgICAgICAgbW9kaWZpZXIgPSBcInRoaXNcIjtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBkYXRlID0gd2Vla3NfMS50b0RheUpTV2Vla2RheShjb250ZXh0LnJlZkRhdGUsIG9mZnNldCwgbW9kaWZpZXIpO1xuICAgICAgICByZXR1cm4gY29udGV4dFxuICAgICAgICAgICAgLmNyZWF0ZVBhcnNpbmdDb21wb25lbnRzKClcbiAgICAgICAgICAgIC5hc3NpZ24oXCJ3ZWVrZGF5XCIsIG9mZnNldClcbiAgICAgICAgICAgIC5pbXBseShcImRheVwiLCBkYXRlLmRhdGUoKSlcbiAgICAgICAgICAgIC5pbXBseShcIm1vbnRoXCIsIGRhdGUubW9udGgoKSArIDEpXG4gICAgICAgICAgICAuaW1wbHkoXCJ5ZWFyXCIsIGRhdGUueWVhcigpKTtcbiAgICB9XG59XG5leHBvcnRzLmRlZmF1bHQgPSBFTldlZWtkYXlQYXJzZXI7XG4iLCJcInVzZSBzdHJpY3RcIjtcbnZhciBfX2ltcG9ydERlZmF1bHQgPSAodGhpcyAmJiB0aGlzLl9faW1wb3J0RGVmYXVsdCkgfHwgZnVuY3Rpb24gK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wYXJzZXIucGF0dGVybihjb250ZXh0KTtcbiAgICAgICAgY29uc3Qgb3JpZ2luYWxUZXh0ID0gY29udGV4dC50ZXh0O1xuICAgICAgICBsZXQgcmVtYWluaW5nVGV4dCA9IGNvbnRleHQudGV4dDtcbiAgICAgICAgbGV0IG1hdGNoID0gcGF0dGVybi5leGVjKHJlbWFpbmluZ1RleHQpO1xuICAgICAgICB3aGlsZSAobWF0Y2gpIHtcbiAgICAgICAgICAgIGNvbnN0IGluZGV4ID0gbWF0Y2guaW5kZXggKyBvcmlnaW5hbFRleHQubGVuZ3RoIC0gcmVtYWluaW5nVGV4dC5sZW5ndGg7XG4gICAgICAgICAgICBtYXRjaC5pbmRleCA9IGluZGV4O1xuICAgICAgICAgICAgY29uc3QgcmVzdWx0ID0gcGFyc2VyLmV4dHJhY3QoY29udGV4dCwgbWF0Y2gpO1xuICAgICAgICAgICAgaWYgKCFyZXN1bHQpIHtcbiAgICAgICAgICAgICAgICByZW1haW5pbmdUZXh0ID0gb3JpZ2luYWxUZXh0LnN1YnN0cmluZyhtYXRjaC5pbmRleCArIDEpO1xuICAgICAgICAgICAgICAgIG1hdGNoID0gcGF0dGVybi5leGVjKHJlbWFpbmluZ1RleHQpO1xuICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbGV0IHBhcnNlZFJlc3VsdCA9IG51bGw7XG4gICAgICAgICAgICBpZiAocmVzdWx0IGluc3RhbmNlb2YgcmVzdWx0c18xLlBhcnNpbmdSZXN1bHQpIHtcbiAgICAgICAgICAgICAgICBwYXJzZWRSZXN1bHQgPSByZXN1bHQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChyZXN1bHQgaW5zdGFuY2VvZiByZXN1bHRzXzEuUGFyc2luZ0NvbXBvbmVudHMpIHtcbiAgICAgICAgICAgICAgICBwYXJzZWRSZXN1bHQgPSBjb250ZXh0LmNyZWF0ZVBhcnNpbmdSZXN1bH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RoXSk7XG4gICAgICAgIGxldCBkYXkgPSBwYXJzZUludChtYXRjaFt0aGlzLmdyb3VwTnVtYmVyRGF5XSk7XG4gICAgICAgIGlmIChtb250aCA8IDEgfHwgbW9udGggPiAxMikge1xuICAgICAgICAgICAgaWYgKG1vbnRoID4gMTIpIHtcbiAgICAgICAgICAgICAgICBpZiAoZGF5ID49IDEgJiYgZGF5IDw9IDEyICYmIG1vbnRoIDw9IDMxKSB7XG4gICAgICAgICAgICAgICAgICAgIFtkYXksIG1vbnRoXSA9IFttb250aCwgZGF5XTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAoZGF5IDwgMSB8fCBkYXkgPiAzMSkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgcmVzdWx0LnN0YXJ0LmFzc2lnbihcImRheVwiLCBkYXkpO1xuICAgICAgICByZXN1bHQuc3RhcnQuYXNzaWduKFwibW9udGhcIiwgbW9udGgpO1xuICAgICAgICBpZiAobWF0Y2hbWUVBUl9HUk9VUF0pIHtcbiAgICAgICAgICAgIGNvbnN0IHJhd1llYXJOdW1iZXIgPSBwYXJzZUludChtYXRjaFtZRUFSX0dST1VQXSk7XG4gICAgICAgICAgICBjb25zdCB5ZWFyID0geWVhcnNfMS5maW5kTW9zdExpa2VseUFEWWVhcihyYXdZZWFyTnVtYmVyKTtcbiAgICAgICAgICAgIHJlc3VsdC5zdGFydC5hc3NpZ24oXCJ5ZWFyXCIsIHllYXIpO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgY29uc3QgeWVhciA9IHllYXJzXzEuZmluZFllYXJDbG9zZXN0VG9SZWYoY29udGV4dC5yZWZEYXRlLCBkYXksIG1vbnRoKTtcbiAg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VyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5BTSk7XG4gICAgICAgICAgICAgICAgY29uc3QgaG91ciA9IGNvbXBvbmVudHMuZ2V0KFwiaG91clwiKTtcbiAgICAgICAgICAgICAgICBpZiAoaG91ciA8IDEyKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbXBvbmVudHMuYXNzaWduKFwiaG91clwiLCBjb21wb25lbnRzLmdldChcImhvdXJcIikpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChtYXRjaFswXS5lbmRzV2l0aChcIm5hY2htaXR0YWdzXCIpIHx8IG1hdGNoWzBdLmVuZHNXaXRoKFwiYWJlbmRzXCIpIHx8IG1hdGNoWzBdLmVuZHNXaXRoKFwibmFjaHRzXCIpKSB7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLlBNKTtcbiAgICAgICAgICAgICAgICBjb25zdCBob3VyID0gY29tcG9uZW50cy5nZXQoXCJob3VyXCIpO1xuICAgICAgICAgICAgICAgIGlmIChob3VyIDwgMTIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJob3VyXCIsIGNvbXBvbmVudHMuZ2V0KFwiaG91clwiKSArIDEyKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGNvbXBvbmVudHM7XG4gICAgfVxufVxuZXhwb3J0cy5kZWZhdWx0ID0gREVUaW1lRXhwcmVzc2lvblBhcnNlcjtcbiIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xuZXhwb3J0cy5wYXJzZVRpbWVVbml0cyA9IGV4cG9ydHMuVElNRV9VTklUU19QQ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gIFwibcOkclwiOiAzLFxuICAgIFwibcOkci5cIjogMyxcbiAgICBcIm1yelwiOiAzLFxuICAgIFwibXJ6LlwiOiAzLFxuICAgIFwiYXByaWxcIjogNCxcbiAgICBcImFwclwiOiA0LFxuICAgIFwiYXByLlwiOiA0LFxuICAgIFwibWFpXCI6IDUsXG4gICAgXCJqdW5pXCI6IDYsXG4gICAgXCJqdW5cIjogNixcbiAgICBcImp1bi5cIjogNixcbiAgICBcImp1bGlcIjogNyxcbiAgICBcImp1bFwiOiA3LFxuICAgIFwianVsLlwiOiA3LFxuICAgIFwiYXVndXN0XCI6IDgsXG4gICAgXCJhdWdcIjogOCxcbiAgICBcImF1Zy5cIjogOCxcbiAgICBcInNlcHRlbWJlclwiOiA5LFxuICAgIFwic2VwXCI6IDksXG4gICAgXCJzZXAuXCI6IDksXG4gICAgXCJzZXB0XCI6IDksXG4gICAgXCJzZXB0LlwiOiA5LFxuICAgIFwib2t0b2JlclwiOiAxMCxcbiAgICBcIm9rdFwiOiAxMCxcbiAgICBcIm9rdC5cIjogMTAsXG4gICAgXCJub3ZlbWJlclwiOiAxMSxcbiAgICBcIm5vdlwiOiAxMSxcbiAgICBcIm5vdi5cIjogMTEsXG4gICAgXCJkZXplbWJlclwiOiAxMixcbiAgICBcImRlelwiOiAxMixcbiAgICBcImRlei5cIjogMTIsXG59O1xuZXhwb3J0cy5JTlRFR0VSX1dPUkRfRElDVElPTkFSWSA9IHtcbiAgICBcImVpbnNcIjogMSxcbiAgICBcInp3ZWlcIjogMixcbiAgICBcImRyZWlcIjogMyxcbiAgICBcInZpZXJcIjogNCxcbiAgICBcImbDvG5mXCI6IDUsXG4gICAgXCJmdWVuZlwiOiA1LFxuICAgIFwic2VjaHNcIjogNixcbiAgICBcInNpZWJlblwiOiA3LFxuICAgIFwiYWNodFwiOiA4LFxuICAgIFwibmV1blwiOiA5LFxuICAgIFwiemVoblwiOiAxMCxcbiAgICBcImVsZlwiOiAxMSxcbiAgICBcInp3w7ZsZl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oXCJzZWNvbmRcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5BTSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIFwidm9ybWl0dGFnXCI6XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwiLCA5KTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtaW51dGVcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwic2Vjb25kXCIsIDApO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uQU0pO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm1pdHRhZ1wiOlxuICAgICAgICAgICAgY2FzZSBcIm1pdHRhZ3NcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDEyKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtaW51dGVcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwic2Vjb25kXCIsIDApO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uQU0pO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm5hY2htaXR0YWdcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDE1KTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtaW51dGVcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwic2Vjb25kXCIsIDApO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uUE0pO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcImFiZW5kXCI6XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwiLCAxOCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWludXRlXCIsIDApO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcInNlY29uZFwiLCAwKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLlBNKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgXCJuYWNodFwiOlxuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcImhvdXJcIiwgMjIpO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1pbnV0ZVwiLCAwKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJzZWNvbmRcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5QTSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIFwibWl0dGVybmFjaHRcIjpcbiAgICAgICAgICAgICAgICBpZiAoY29tcG9uZW50LmdldChcImhvdXJcIikgPiAxKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbXBvbmVudCA9IHRpbWV1bml0c18xLmFkZEltcGxpZWRUaW1lVW5pdHMoY29tcG9uZW50LCB7IFwiZGF5XCI6IDEgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcImhvdXJcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9u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JzaW5nQ29tcG9uZW50cygpO1xuICAgICAgICBzd2l0Y2ggKGRhdGVLZXl3b3JkKSB7XG4gICAgICAgICAgICBjYXNlIFwiamV0enRcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQgPSByZWZlcmVuY2VzLm5vdyhjb250ZXh0LnJlZkRhdGUpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcImhldXRlXCI6XG4gICAgICAgICAgICAgICAgY29tcG9uZW50ID0gcmVmZXJlbmNlcy50b2RheShjb250ZXh0LnJlZkRhdGUpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm1vcmdlblwiOlxuICAgICAgICAgICAgICAgIGRheWpzXzIuYXNzaWduVGhlTmV4dERheShjb21wb25lbnQsIHRhcmdldERhdGUpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIsO8YmVybW9yZ2VuXCI6XG4gICAgICAgICAgICBjYXNlIFwidWViZXJtb3JnZW5cIjpcbiAgICAgICAgICAgICAgICB0YXJnZXREYXRlID0gdGFyZ2V0RGF0ZS5hZGQoMSwgXCJkYXlcIik7XG4gICAgICAgICAgICAgICAgZGF5anNfMi5hc3NpZ25UaGVOZXh0RGF5KGNvbXBvbmVudCwgdGFyZ2V0RGF0ZSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIFwiZ2VzdGVyblwiOlxuICAgICAgICAgICAgICAgIHRhcmdldERhdGUgPSB0YXJnZXREYXRlLmFkZCgtMSwgXCJkYXlcIik7XG4gICAgICAgICAgICAgICAgZGF5anNfMi5hc3NpZ25TaW1pbGFyRGF0ZShjb21wb25lbnQsIHRhcmdldERhdGUpO1xuICAgICAgICAgICAgICAgIGRheWpzXzIuaW1wbHlTaW1pbGFyVGltZShjb21wb25lbnQsIHRhcmdldERhdGUpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcInZvcmdlc3Rlcm5cIjpcbiAgICAgICAgICAgICAgICB0YXJnZXREYXRlID0gdGFyZ2V0RGF0ZS5hZGQoLTIsIFwiZGF5XCIpO1xuICAgICAgICAgICAgICAgIGRheWpzXzIuYXNzaWduU2ltaWxhckRhdGUoY29tcG9uZW50LCB0YXJnZXREYXRlKTtcbiAgICAgICAgICAgICAgICBkYXlqc18yLmltcGx5U2ltaWxhclRpbWUoY29tcG9uZW50LCB0YXJnZXREYXRlKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgaWYgKGRhdGVLZXl3b3JkLm1hdGNoKC9sZXR6dGVcXHMqbmFjaHQvKSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGFyZ2V0RGF0ZS5ob3VyKCkgPiA2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXREYXRlID0gdGFyZ2V0RGF0ZS5hZGQoLTEsIFwiZGF5XCIpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGRheWpzXzIuYXNzaWduU2ltaWxhckRhdGUoY29tcG9uZW50LCB0YXJnZXREYXRlKTtcbiAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwiLCAwKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRpbWVLZXl3b3JkKSB7XG4gICAgICAgICAgICBjb21wb25lbnQgPSBERUNhc3VhbFRpbWVQYXJzZXJfMS5kZWZhdWx0LmV4dHJhY3RUaW1lQ29tcG9uZW50cyhjb21wb25lbnQsIHRpbWVLZXl3b3JkKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY29tcG9uZW50O1xuICAgIH1cbn1cbmV4cG9ydHMuZGVmYXVsdCA9IERFQ2FzdWFsRGF0ZVBhcnNl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biAgICBpbm5lckV4dHJhY3QoY29udGV4dCwgbWF0Y2gpIHtcbiAgICAgICAgbGV0IHRhcmdldERhdGUgPSBkYXlqc18xLmRlZmF1bHQoY29udGV4dC5yZWZEYXRlKTtcbiAgICAgICAgY29uc3QgbG93ZXJUZXh0ID0gbWF0Y2hbMF0udG9Mb3dlckNhc2UoKTtcbiAgICAgICAgY29uc3QgY29tcG9uZW50ID0gY29udGV4dC5jcmVhdGVQYXJzaW5nQ29tcG9uZW50cygpO1xuICAgICAgICBzd2l0Y2ggKGxvd2VyVGV4dCkge1xuICAgICAgICAgICAgY2FzZSBcIm1haW50ZW5hbnRcIjpcbiAgICAgICAgICAgICAgICByZXR1cm4gcmVmZXJlbmNlcy5ub3coY29udGV4dC5yZWZEYXRlKTtcbiAgICAgICAgICAgIGNhc2UgXCJhdWpvdXJkJ2h1aVwiOlxuICAgICAgICAgICAgICAgIHJldHVybiByZWZlcmVuY2VzLnRvZGF5KGNvbnRleHQucmVmRGF0ZSk7XG4gICAgICAgICAgICBjYXNlIFwiaGllclwiOlxuICAgICAgICAgICAgICAgIHJldHVybiByZWZlcmVuY2VzLnllc3RlcmRheShjb250ZXh0LnJlZkRhdGUpO1xuICAgICAgICAgICAgY2FzZSBcImRlbWFpblwiOlxuICAgICAgICAgICAgICAgIHJldHVybiByZWZlcmVuY2VzLnRvbW9ycm93KGNvbnRleHQucmVmRGF0ZSk7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIGlmIChsb3dlclRleHQubWF0Y2goL2NldHRlXFxzKm51aXQvKSkge1xuICAgICAgICAgICAgICAgICAgICBkYXlqc18yLmFzc2lnblNpbWlsYXJEYXRlKGNvbXBvbmVudCwgdGFyZ2V0RGF0ZSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcImhvdXJcIiwgMjIpO1xuICAgICAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRle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bXxhIG1pZGl8w6AgbWludWl0KSg/PVxcV3wkKS9pO1xuICAgIH1cbiAgICBpbm5lckV4dHJhY3QoY29udGV4dCwgbWF0Y2gpIHtcbiAgICAgICAgY29uc3Qgc3VmZml4TG93ZXIgPSBtYXRjaFsyXS50b0xvd2VyQ2FzZSgpO1xuICAgICAgICBjb25zdCBjb21wb25lbnQgPSBjb250ZXh0LmNyZWF0ZVBhcnNpbmdDb21wb25lbnRzKCk7XG4gICAgICAgIHN3aXRjaCAoc3VmZml4TG93ZXIpIHtcbiAgICAgICAgICAgIGNhc2UgXCJhcHLDqHMtbWlkaVwiOlxuICAgICAgICAgICAgY2FzZSBcImFwcmVtXCI6XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwiLCAxNCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWludXRlXCIsIDApO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uUE0pO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcInNvaXJcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDE4KTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtaW51dGVcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5QTSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIFwibWF0aW5cIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDgpO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1pbnV0ZVwiLCAwKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLkFNKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgXCJhIG1pZGlcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDEyKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtaW51dGVcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5BTSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIFwiw6AgbWludWl0XCI6XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwiLCAwKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLkFNKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY29tcG9uZW50O1xuICAgIH1cbn1cbmV4cG9ydHMuZGVmYXVsdCA9IEZSQ2FzdWFsVGltZVBhcnNlcjtcbiIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xuY29uc3QgQWJzdHJhY3RUaW1lRXhwcmVzc2lvblBhcnNlcl8xID0gcmVxdWlyZShcIi4uLy4uLy4uL2NvbW1vbi9wYXJzZXJzL0Fic3RyYWN0VGltZUV4cHJlc3Npb25QYXJzZXJcIik7XG5jbGFzcyBGUlRpbWVFeHByZXNzaW9uUGFyc2VyIGV4dGVuZHMgQWJzdHJhY3RUaW1lRXhwcmVzc2lvblBhcnNlcl8xLkFic3RyYWN0VGltZUV4cHJlc3Npb25QYXJzZXIge1xuICAgIHByaW1hcnlQcmVmaXgoKSB7XG4g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ICAgXCJodWl0XCI6IDgsXG4gICAgXCJuZXVmXCI6IDksXG4gICAgXCJkaXhcIjogMTAsXG4gICAgXCJvbnplXCI6IDExLFxuICAgIFwiZG91emVcIjogMTIsXG4gICAgXCJ0cmVpemVcIjogMTMsXG59O1xuZXhwb3J0cy5USU1FX1VOSVRfRElDVElPTkFSWSA9IHtcbiAgICBcInNlY1wiOiBcInNlY29uZFwiLFxuICAgIFwic2Vjb25kZVwiOiBcInNlY29uZFwiLFxuICAgIFwic2Vjb25kZXNcIjogXCJzZWNvbmRcIixcbiAgICBcIm1pblwiOiBcIm1pbnV0ZVwiLFxuICAgIFwibWluc1wiOiBcIm1pbnV0ZVwiLFxuICAgIFwibWludXRlXCI6IFwibWludXRlXCIsXG4gICAgXCJtaW51dGVzXCI6IFwibWludXRlXCIsXG4gICAgXCJoXCI6IFwiaG91clwiLFxuICAgIFwiaHJcIjogXCJob3VyXCIsXG4gICAgXCJocnNcIjogXCJob3VyXCIsXG4gICAgXCJoZXVyZVwiOiBcImhvdXJcIixcbiAgICBcImhldXJlc1wiOiBcImhvdXJcIixcbiAgICBcImpvdXJcIjogXCJkXCIsXG4gICAgXCJqb3Vyc1wiOiBcImRcIixcbiAgICBcInNlbWFpbmVcIjogXCJ3ZWVrXCIsXG4gICAgXCJzZW1haW5lc1wiOiBcIndlZWtcIixcbiAgICBcIm1vaXNcIjogXCJtb250aFwiLFxuICAgIFwidHJpbWVzdHJlXCI6IFwicXVhcnRlclwiLFxuICAgIFwidHJpbWVzdHJlc1wiOiBcInF1YXJ0ZXJcIixcbiAgICBcImFuc1wiOiBcInllYXJcIixcbiAgICBcImFubsOpZVwiOiBcInllYXJcIixcbiAgICBcImFubsOpZXNcIjogXCJ5ZWFyXCIsXG59O1xuZXhwb3J0cy5OVU1CRVJfUEFUVEVSTiA9IGAoPzoke3BhdHRlcm5fMS5tYXRjaEFueVBhdHRlcm4oZXhwb3J0cy5JTlRFR0VSX1dPUkRfRElDVElPTkFSWSl9fFswLTld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lDaGVja2luZyB7XG4gICAgaW5uZXJQYXR0ZXJuKCkge1xuICAgICAgICByZXR1cm4gUEFUVEVSTjtcbiAgICB9XG4gICAgaW5uZXJFeHRyYWN0KGNvbnRleHQsIG1hdGNoKSB7XG4gICAgICAgIGNvbnN0IGRheU9mV2VlayA9IG1hdGNoW1dFRUtEQVlfR1JPVVBdLnRvTG93ZXJDYXNlKCk7XG4gICAgICAgIGNvbnN0IG9mZnNldCA9IGNvbnN0YW50c18xLldFRUtEQVlfRElDVElPTkFSWVtkYXlPZldlZWtdO1xuICAgICAgICBpZiAob2Zmc2V0ID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgICAgIGxldCBzdWZmaXggPSBtYXRjaFtQT1NURklYX0dST1VQXTtcbiAgICAgICAgc3VmZml4ID0gc3VmZml4IHx8IFwiXCI7XG4gICAgICAgIHN1ZmZpeCA9IHN1ZmZpeC50b0xvd2VyQ2FzZSgpO1xuICAgICAgICBsZXQgbW9kaWZpZXIgPSBudWxsO1xuICAgICAgICBpZiAoc3VmZml4ID09IFwiZGVybmllclwiKSB7XG4gICAgICAgICAgICBtb2RpZmllciA9IFwibGFzdFwiO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKHN1ZmZpeCA9PSBcInByb2NoYWluXCIpIHtcbiAgICAgICAgICAgIG1vZGlmaWVyID0gXCJuZXh0XCI7XG4gICAgICAgIH1cbiAgICAgICAgY29uc3QgZGF0ZSA9IHdlZWtzXzEudG9EYXlKU1dlZWtkYXkoY29udGV4dC5yZWZEYXRlLCBvZmZzZXQsIG1vZGlmaWVyKTtcbiAgICAgICAgcmV0dXJuIGNvbnRleHRcbiAgICAgICAgICAgIC5jcmVhdGVQYXJzaW5nQ29tcG9uZW50cygpXG4gICAgICAgICAgICAuYXNzaWduKFwid2Vla2RheVwiLCBvZmZzZXQpXG4gICAgICAgICAgICAuaW1wbHkoXCJkYXlcIiwgZGF0Z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uICAgICAgICBjb25zdCBzZWNvbmRNYXRjaCA9IFNFQ09ORF9SRUdfUEFUVEVSTi5leGVjKHJlbWFpbmluZ1RleHQpO1xuICAgICAgICBpZiAoc2Vjb25kTWF0Y2gpIHtcbiAgICAgICAgICAgIHJlc3VsdC5lbmQgPSBGUlNwZWNpZmljVGltZUV4cHJlc3Npb25QYXJzZXIuZXh0cmFjdFRpbWVDb21wb25lbnQocmVzdWx0LnN0YXJ0LmNsb25lKCksIHNlY29uZE1hdGNoKTtcbiAgICAgICAgICAgIGlmIChyZXN1bHQuZW5kKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnRleHQgKz0gc2Vjb25kTWF0Y2hbMF07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG4gICAgc3RhdGljIGV4dHJhY3RUaW1lQ29tcG9uZW50KGV4dHJhY3RpbmdDb21wb25lbnRzLCBtYXRjaCkge1xuICAgICAgICBsZXQgaG91ciA9IDA7XG4gICAgICAgIGxldCBtaW51dGUgPSAwO1xuICAgICAgICBsZXQgbWVyaWRpZW0gPSBudWxsO1xuICAgICAgICBob3VyID0gcGFyc2VJbnQobWF0Y2hbSE9VUl9HUk9VUF0pO1xuICAgICAgICBpZiAobWF0Y2hbTUlOVVRFX0dST1VQXSAhPSBudWxsKSB7XG4gICAgICAgICAgICBtaW51dGUgPSBwYXJzZUludChtYXRjaFtNSU5VVEVfR1JPVVBdKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAobWludXRlID49IDYwIHx8IGhvdXIgPiAyNCkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGhvdXIgPj0gMTIpIHtcbiAgICAgICAgICAgIG1lcmlkaWVtID0gaW5kZXhfMS5NZXJpZGllbS5QTTtcbiAgICAgICAgfVxuICAgICAgICBpZiAobWF0Y2hbQU1fUE1fSE9VUl9HUk9VUF0gIT0gbnVsbCkge1xuICAgICAgICAgICAgaWYgKGhvdXIgPiAxMilcbiAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIGNvbnN0IGFtcG0gPSBtYXRjaFtBTV9QTV9IT1VSX0dST1VQXVswXS50b0xvd2VyQ2FzZSgpO1xuICAgICAgICAgICAgaWYgKGFtcG0gPT0gXCJhXCIpIHtcbiAgICAgICAgICAgICAgICBtZXJpZGllbSA9IGluZGV4XzEuTWVyaWRpZW0uQU07XG4gICAgICAgICAgICAgICAgaWYgKGhvdXIgPT0gMTIpIHtcbiAgICAgICAgICAgICAgICAgICAgaG91ciA9IDA7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGFtcG0gPT0gXCJwXCIpIHtcbiAgICAgICAgICAgICAgICBtZXJpZGllbSA9IGluZGV4XzEuTWVyaWRpZW0uUE07XG4gICAgICAgICAgICAgICAgaWYgKGhvdXIgIT0gMTIpIHtcbiAgICAgICAgICAgICAgICAgICAgaG91ciArPSAxMjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZXh0cmFjdGluZ0NvbXBvbmVudHMuYXNzaWduKFwiaG91clwiLCBob3VyKTtcbiAgICAgICAgZXh0cmFjdGluZ0NvbXBvbmVudHMuYXNzaWduKFwibWludXRlXCIsIG1pbnV0ZSk7XG4gICAgICAgIGlmIChtZXJpZGllbSAhPT0gbnVsbCkge1xuICAgICAgICAgICAgZXh0cmFjdGluZ0NvbXBvbmVudHMuYXNzaWduKFwibWVyaWRpZW1cIiwgbWVyaWRpZW0pO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgaWYgKGhvdXIgPCAxMikge1xuICAgICAgICAgICAgICAgIGV4dHJhY3RpbmdDb21wb25lbnRzLmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5BTSk7XG4gICAgICAgIC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gICAgICAgIGNvbnN0IG1vbWVudCA9IGRheWpzXzEuZGVmYXVsdChjb250ZXh0LnJlZkRhdGUpO1xuICAgICAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJ5ZWFyXCIsIG1vbWVudC55ZWFyKCkpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChtYXRjaFtUWVBJQ0FMX1lFQVJfR1JPVVBdKSB7XG4gICAgICAgICAgICBjb25zdCB5ZWFyTnVtVGV4dCA9IG1hdGNoW1lFQVJfTlVNQkVSX0dST1VQXTtcbiAgICAgICAgICAgIGxldCB5ZWFyID0geWVhck51bVRleHQgPT0gXCLlhYNcIiA/IDEgOiBwYXJzZUludChjb25zdGFudHNfMS50b0hhbmtha3UoeWVhck51bVRleHQpKTtcbiAgICAgICAgICAgIGlmIChtYXRjaFtFUkFfR1JPVVBdID09IFwi5Luk5ZKMXCIpIHtcbiAgICAgICAgICAgICAgICB5ZWFyICs9IDIwMTg7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChtYXRjaFtFUkFfR1JPVVBdID09IFwi5bmz5oiQXCIpIHtcbiAgICAgICAgICAgICAgICB5ZWFyICs9IDE5ODg7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChtYXRjaFtFUkFfR1JPVVBdID09IFwi5pit5ZKMXCIpIHtcbiAgICAgICAgICAgICAgICB5ZWFyICs9IDE5MjU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcInllYXJcIiwgeWVhcik7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBjb25zdCB5ZWFyID0geWVhcnNfMS5maW5kWWVhckNsb3Nlc3RUb1JlZihjb250ZXh0LnJlZkRhdGUsIGRheSwgbW9udGgpO1xuICAgICAgICAgICAgY29tcG9uZW50cy5pbXBseShcInllYXJcIiwgeWVhcik7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGNv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U9OQVJZID0gdm9pZCAwO1xuZXhwb3J0cy5XRUVLREFZX0RJQ1RJT05BUlkgPSB7XG4gICAgXCJkb21pbmdvXCI6IDAsXG4gICAgXCJkb21cIjogMCxcbiAgICBcInNlZ3VuZGFcIjogMSxcbiAgICBcInNlZ3VuZGEtZmVpcmFcIjogMSxcbiAgICBcInNlZ1wiOiAxLFxuICAgIFwidGVyw6dhXCI6IDIsXG4gICAgXCJ0ZXLDp2EtZmVpcmFcIjogMixcbiAgICBcInRlclwiOiAyLFxuICAgIFwicXVhcnRhXCI6IDMsXG4gICAgXCJxdWFydGEtZmVpcmFcIjogMyxcbiAgICBcInF1YVwiOiAzLFxuICAgIFwicXVpbnRhXCI6IDQsXG4gICAgXCJxdWludGEtZmVpcmFcIjogNCxcbiAgICBcInF1aVwiOiA0LFxuICAgIFwic2V4dGFcIjogNSxcbiAgICBcInNleHRhLWZlaXJhXCI6IDUsXG4gICAgXCJzZXhcIjogNSxcbiAgICBcInPDoWJhZG9cIjogNixcbiAgICBcInNhYmFkb1wiOiA2LFxuICAgIFwic2FiXCI6IDYsXG59O1xuZXhwb3J0cy5NT05USF9ESUNUSU9OQVJZID0ge1xuICAgIFwiamFuZWlyb1wiOiAxLFxuICAgIFwiamFuXCI6IDEsXG4gICAgXCJqYW4uXCI6IDEsXG4gICAgXCJmZXZlcmVpcm9cIjogMixcbiAgICBcImZldlwiOiAyLFxuICAgIFwiZmV2LlwiOiAyLFxuICAgIFwibWFyw6dvXCI6IDMsXG4gICAgXCJtYXJcIjogMyxcbiAgICBcIm1hci5cIjogMyxcbiAgICBcImFicmlsXCI6IDQsXG4gICAgXCJhYnJcIjogNCxcbiAgICBcImFici5cIjogNCxcbiAgICBcIm1haW9cIjogNSxcbiAgICBcIm1haVwiOiA1LFxuICAgIFwibWFpLlwiOiA1LFxuICAgIFwianVuaG9cIjogNixcbiAgICBcImp1blwiOiA2LFxuICAgIFwianVuLlwiOiA2LFxuICAgIFwianVsaG9cIjogNyxcbiAgICBcImp1bFwiOiA3LFxuICAgIFwianVsLlwiOiA3LFxuICAgIFwiYWdvc3RvXCI6IDgsXG4gICAgXCJhZ29cIjogOCxcbiAgICBcImFnby5cIjogOCxcbiAgICBcInNldGVtYnJvXCI6IDksXG4gICAgXCJzZXRcIjogOSxcbiAgICBcInNldC5cIjogOSxcbiAgICBcIm91dHVicm9cIjogMTAsXG4gICAgXCJvdXRcIjogMTAsXG4gICAgXCJvdXQuXCI6IDEwLFxuICAgIFwibm92ZW1icm9cIjogMTEsXG4gICAgXCJub3ZcIjogMTEsXG4gICAgXCJub3YuXCI6IDExLFxuICAgIFwiZGV6ZW1icm9cIjogMTIsXG4gICAgXCJkZXpcIjogMTIsXG4gICAgXCJkZXouXCI6IDEyLFxufTtcbmV4cG9ydHMuWUVBUl9QQVRURVJOID0gXCJbMC05XXsxLDR9KD8hW15cXFxcc11cXFxcZCkoPzpcXFxccypbYXxkXVxcXFwuP1xcXFxzKmNcXFxcLj98XFxcXHMqYVxcXFwuP1xcXFxzKmRcXFxcLj8pP1wiO1xuZnVuY3Rpb24gcGFyc2VZZWFyKG1hdGNoKSB7XG4gICAgaWYgKG1hdGNoLm1hdGNoKC9eWzAtOV17MSw0fSQvKSkge1xuICAgICAgICBsZXQgeWVhck51bWJlciA9IHBhcnNlSW50KG1hdGNoKTtcbiAgICAgICAgaWYgKHllYXJOdW1iZXIgPCAxMDApIHtcbiAgICAgICAgICAgIGlmICh5ZWFyTnVtYmVyID4gNTApIHtcbiAgICAgICAgICAgICAgICB5ZWFyTnVtYmVyID0geWVhck51bWJlciArIDE5MDA7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICB5ZWFyTnVtYmVyID0geWVhck51bWJlciArIDIwMDA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHllYXJOdW1iZXI7XG4gICAgfVxuICAgIGlmIChtYXRjaC5tYXRjaCgvYVxcLj9cXHMqY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LCBpbmRleF8xLk1lcmlkaWVtLlBNKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDE1KTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgXCJub2l0ZVwiOlxuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcIm1lcmlkaWVtXCIsIGluZGV4XzEuTWVyaWRpZW0uUE0pO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcImhvdXJcIiwgMjIpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm1hbmhhXCI6XG4gICAgICAgICAgICBjYXNlIFwibWFuaMOjXCI6XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5BTSk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwiLCA2KTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgXCJtZWlhLW5vaXRlXCI6XG4gICAgICAgICAgICAgICAgZGF5anNfMS5hc3NpZ25UaGVOZXh0RGF5KGNvbXBvbmVudCwgdGFyZ2V0RGF0ZSk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwiLCAwKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtaW51dGVcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwic2Vjb25kXCIsIDApO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm1laW8tZGlhXCI6XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWVyaWRpZW1cIiwgaW5kZXhfMS5NZXJpZGllbS5BTSk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwiaG91clwi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ICAgIGNhc2UgXCJhdm9uZFwiOlxuICAgICAgICAgICAgY2FzZSBcIidzIGF2b25kcydcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLlBNKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDIwKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgXCJtaWRkZXJuYWNodFwiOlxuICAgICAgICAgICAgICAgIGRheWpzXzIuYXNzaWduVGhlTmV4dERheShjb21wb25lbnQsIHRhcmdldERhdGUpO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcImhvdXJcIiwgMCk7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50LmltcGx5KFwibWludXRlXCIsIDApO1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudC5pbXBseShcInNlY29uZFwiLCAwKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgXCJvY2h0ZW5kXCI6XG4gICAgICAgICAgICBjYXNlIFwiJ3Mgb2NodGVuZHNcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLkFNKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDYpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIm1pZGRhZ1wiOlxuICAgICAgICAgICAgY2FzZSBcIidzIG1pZGRhZ3NcIjpcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJtZXJpZGllbVwiLCBpbmRleF8xLk1lcmlkaWVtLkFNKTtcbiAgICAgICAgICAgICAgICBjb21wb25lbnQuaW1wbHkoXCJob3VyXCIsIDEyKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbi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xcbiAgICBkaW5zZGFnOiAyLFxuICAgIGRpbjogMixcbiAgICBcImRpbi5cIjogMixcbiAgICBkaTogMixcbiAgICBcImRpLlwiOiAyLFxuICAgIHdvZW5zZGFnOiAzLFxuICAgIHdvZTogMyxcbiAgICBcIndvZS5cIjogMyxcbiAgICB3bzogMyxcbiAgICBcIndvLlwiOiAzLFxuICAgIGRvbmRlcmRhZzogNCxcbiAgICBkb25kOiA0LFxuICAgIFwiZG9uZC5cIjogNCxcbiAgICBkbzogNCxcbiAgICBcImRvLlwiOiA0LFxuICAgIHZyaWpkYWc6IDUsXG4gICAgdnJpajogNSxcbiAgICBcInZyaWouXCI6IDUsXG4gICAgdnI6IDUsXG4gICAgXCJ2ci5cIjogNSxcbiAgICB6YXRlcmRhZzogNixcbiAgICB6YXQ6IDYsXG4gICAgXCJ6YXQuXCI6IDYsXG4gICAgXCJ6YVwiOiA2LFxuICAgIFwiemEuXCI6IDYsXG59O1xuZXhwb3J0cy5NT05USF9ESUNUSU9OQVJZID0ge1xuICAgIGphbnVhcmk6IDEsXG4gICAgamFuOiAxLFxuICAgIFwiamFuLlwiOiAxLFxuICAgIGZlYnJ1YXJpOiAyLFxuICAgIGZlYjogMixcbiAgICBcImZlYi5cIjogMixcbiAgICBtYWFydDogMyxcbiAgICBtYXI6IDMsXG4gICAgXCJtYXIuXCI6IDMsXG4gICAgYXByaWw6IDQsXG4gICAgYXByOiA0LFxuICAgIFwiYXByLlwiOiA0LFxuICAgIG1laTogNSxcbiAgICBqdW5pOiA2LFxuICAgIGp1bjogNixcbiAgICBcImp1bi5cIjogNixcbiAgICBqdWxpOiA3LFxuICAgIGp1bDogNyxcbiAgICBcImp1bC5cIjogNyxcbiAgICBhdWd1c3R1czogOCxcbiAgICBhdWc6IDgsXG4gICAgXCJhdWcuXCI6IDgsXG4gICAgc2VwdGVtYmVyOiA5LFxuICAgIHNlcDogOSxcbiAgICBcInNlcC5cIjogOSxcbiAgICBzZXB0OiA5LFxuICAgIFwic2Vw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NvbnN0IG1vbnRoID0gY29uc3RhbnRzXzEuTU9OVEhfRElDVElPTkFSWVttYXRjaFtNT05USF9OQU1FX0dST1VQXS50b0xvd2VyQ2FzZSgpXTtcbiAgICAgICAgY29uc3QgZGF5ID0gY29uc3RhbnRzXzIucGFyc2VPcmRpbmFsTnVtYmVyUGF0dGVybihtYXRjaFtEQVRFX0dST1VQXSk7XG4gICAgICAgIGlmIChkYXkgPiAzMSkge1xuICAgICAgICAgICAgbWF0Y2guaW5kZXggPSBtYXRjaC5pbmRleCArIG1hdGNoW0RBVEVfR1JPVVBdLmxlbmd0aDtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGNvbXBvbmVudHMgPSBjb250ZXh0LmNyZWF0ZVBhcnNpbmdDb21wb25lbnRzKHtcbiAgICAgICAgICAgIGRheTogZGF5LFxuICAgICAgICAgICAgbW9udGg6IG1vbnRoLFxuICAgICAgICB9KTtcbiAgICAgICAgaWYgKG1hdGNoW1lFQVJfR1JPVVBdKSB7XG4gICAgICAgICAgICBjb25zdCB5ZWFyID0gY29uc3RhbnRzXzMucGFyc2VZZWFyKG1hdGNoW1lFQVJfR1JPVVBdKTtcbiAgICAgICAgICAgIGNvbXBvbmVudHMuYXNzaWduKFwieWVhclwiLCB5ZWFyKTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIGNvbnN0IHllYXIgPSB5ZWFyc18xLmZpbmRZZWFyQ2xvc2VzdFRvUmVmKGNvbnRleHQucmVmRGF0ZSwgZGF5LCBtb250aCk7XG4gICAgICAgICAgICBjb21wb25lbnRzLmltcGx5KFwieWVhclwiLCB5ZWFyKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIW1hdGNoW0RBVEVfVE9fR1JPVVBdKSB7XG4gICAgICAgICAgICByZXR1cm4gY29tcG9uZW50cztcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBlbmREYXRlID0gY29uc3RhbnRz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zEuTU9OVEhfRElDVElPTkFSWSl9KWAgK1xuICAgIGBcXFxccypgICtcbiAgICBgKD86YCArXG4gICAgYFssLV0/XFxcXHMqKCR7Y29uc3RhbnRzXzIuWUVBUl9QQVRURVJOfSk/YCArXG4gICAgXCIpP1wiICtcbiAgICBcIig/PVteXFxcXHNcXFxcd118XFxcXHMrW14wLTldfFxcXFxzKyR8JClcIiwgXCJpXCIpO1xuY29uc3QgTU9OVEhfTkFNRV9HUk9VUCA9IDE7XG5jb25zdCBZRUFSX0dST1VQID0gMjtcbmNsYXNzIE5MTW9udGhOYW1lUGFyc2VyIGV4dGVuZHMgQWJzdHJhY3RQYXJzZXJXaXRoV29yZEJvdW5kYXJ5XzEuQWJzdHJhY3RQYXJzZXJXaXRoV29yZEJvdW5kYXJ5Q2hlY2tpbmcge1xuICAgIGlubmVyUGF0dGVybigpIHtcbiAgICAgICAgcmV0dXJuIFBBVFRFUk47XG4gICAgfVxuICAgIGlubmVyRXh0cmFjdChjb250ZXh0LCBtYXRjaCkge1xuICAgICAgICBjb25zdCBjb21wb25lbnRzID0gY29udGV4dC5jcmVhdGVQYXJzaW5nQ29tcG9uZW50cygpO1xuICAgICAgICBjb21wb25lbnRzLmltcGx5KFwiZGF5XCIsIDEpO1xuICAgICAgICBjb25zdCBtb250aE5hbWUgPSBtYXRjaFtNT05USF9OQU1FX0dST1VQXTtcbiAgICAgICAgY29uc3QgbW9udGggPSBjb25zdGFudHNfMS5NT05USF9ESUNUSU9OQVJZW21vbnRoTmFtZS50b0xvd2VyQ2FzZSgpXTtcbiAgICAgICAgY29tcG9uZW50cy5hc3NpZ24oXCJtb250aFwiLCBtb250aCk7XG4gICAgICAgIGlmIChtYXRjaFtZRUFSX0dST1VQXSkge1xuICAgICAgICAgICAgY29uc3QgeWVhciA9IGNvbnN0YW50c18yLnBhcnNlWWVhcihtYXRjaFtZRUFSX0dST1VQXSk7XG4gICAgICAgICAgICBjb21wb25lbnRzLmFzc2lnbihcInllYXJcIiwgeW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ICAgICAgICAgICBjb25zdCBwYXJzZWQgPSBjaHJvbm8ucGFyc2VEYXRlKFxuICAgICAgICAgICAgICAgIGVkaXRhYmxlVGFzay5zdGFydERhdGUsXG4gICAgICAgICAgICAgICAgbmV3IERhdGUoKSxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGZvcndhcmREYXRlOiB0cnVlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgaWYgKHBhcnNlZCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIHBhcnNlZFN0YXJ0RGF0ZSA9IHdpbmRvdy5tb21lbnQocGFyc2VkKS5mb3JtYXQoJ1lZWVktTU0tREQnKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcGFyc2VkU3RhcnREYXRlID0gJzxpPmludmFsaWQgc3RhcnQgZGF0ZTwvaT4nO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJDoge1xuICAgICAgICBpZiAoIWVkaXRhYmxlVGFzay5zY2hlZHVsZWREYXRlKSB7XG4gICAgICAgICAgICBwYXJzZWRTY2hlZHVsZWREYXRlID0gJzxpPm5vIHNjaGVkdWxlZCBkYXRlPC8+JztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGNvbnN0IHBhcnNlZCA9IGNocm9uby5wYXJzZURhdGUoXG4gICAgICAgICAgICAgICAgZWRpdGFibGVUYXNrLnNjaGVkdWxlZERhdGUsXG4gICAgICAgICAgICAgICAgbmV3IERhdGUoKSxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGZvcndhcmREYXRlOiB0cnVlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgaWYgKHBhcnNlZCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIHBhcnNlZFNjaGVkdWxlZERhdGUgPSB3aW5kb3dcbiAgICAgICAgICAgICAgICAgICAgLm1vbWVudChwYXJzZWQpXG4gICAgICAgICAgICAgICAgICAgIC5mb3JtYXQoJ1lZWVktTU0tREQnKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcGFyc2VkU2NoZWR1bGVkRGF0ZSA9ICc8aT5pbnZhbGlkIHNjaGVkdWxlZCBkYXRlPC9pPic7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAkOiB7XG4gICAgICAgIGlmICghZWRpdGFibGVUYXNrLmR1ZURhdGUpIHtcbiAgICAgICAgICAgIHBhcnNlZER1ZURhdGUgPSAnPGk+bm8gZHVlIGRhdGU8Lz4nO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgY29uc3QgcGFyc2VkID0gY2hyb25vLnBhcnNlRGF0ZShlZGl0YWJsZVRhc2suZHVlRGF0ZSwgbmV3IERhdGUoKSwge1xuICAgICAgICAgICAgICAgIGZvcndhcmREYXRlOiB0cnVlLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBpZiAocGFyc2VkICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgcGFyc2VkRHVlRGF0ZSA9IHdpbmRvdy5tb21lbnQocGFyc2VkKS5mb3JtYXQoJ1lZWVktTU0tREQnKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcGFyc2VkRHVlRGF0ZSA9ICc8aT5pbnZhbGlkIGR1ZSBkYXRlPC9pPic7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAkOiB7XG4gICAgICAgIGlmICghZWRpdGFibGVUYXNrLnJlY3VycmVuY2VSdWxlKSB7XG4gICAgICAgICAgICBwYXJzZWRSZWN1cnJlbmNlID0gJzxpPm5vdCByZWN1cnJpbmc8Lz4nO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcGFyc2VkUmVjdXJyZW5jZSA9XG4gICAgICAgICAgICAgICAgUmVjdXJyZW5jZS5mcm9tVGV4dCh7XG4gICAgICAgICAgICAgICAgICAgIHJlY3VycmVuY2VSdWxlVGV4dDogZWRpdGFibGVUYXNrLnJlY3VycmVuY2VSdWxlLFxuICAgICAgICAgICAgICAgICAgICAvLyBPbmx5IGZvciByZXByZXNlbnRhdGlvbiBpbiB0aGUgbW9kYWwsIG5vIGRhdGVzIHJlcXVpcmVkLlxuICAgICAgICAgICAgICAgICAgICBzdGFydERhdGU6IG51bGwsXG4gICAgICAgICAgICAgICAgICAgIHNjaGVkdWxlZERhdGU6IG51bGwsXG4gICAgICAgICAgICAgICAgICAgIGR1ZURhdGU6IG51bGwsXG4gICAgICAgICAgICAgICAgfSk/LnRvVGV4dCgpID8/ICc8aT5pbnZhbGlkIHJlY3VycmVuY2UgcnVsZTwvaT4nO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJDoge1xuICAgICAgICBpZiAoIWVkaXRhYmxlVGFzay5kb25lRGF0ZSkge1xuICAgICAgICAgICAgcGFyc2VkRG9uZSA9ICc8aT5ubyBkb25lIGRhdGU8L2k+JztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGNvbnN0IHBhcnNlZCA9IGNocm9uby5wYXJzZURhdGUoZWRpdGFibGVUYXNrLmRvbmVEYXRlKTtcbiAgICAgICAgICAgIGlmIChwYXJzZWQgIT09IG51bGwpIHtcbiAgICAgICAgICAgICAgICBwYXJzZWREb25lID0gd2luZG93Lm1vbWVudChwYXJzZWQpLmZvcm1hdCgnWVlZWS1NTS1ERCcpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBwYXJzZWREb25lID0gJzxpPmludmFsaWQgZG9uZSBkYXRlPC9pPic7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbk1vdW50KCgpID0+IHtcbiAgICAgICAgY29uc3QgeyBnbG9iYWxGaWx0ZXIgfSA9IGdldFNldHRpbmdzKCk7XG4gICAgICAgIGNvbnN0IGRlc2NyaXB0aW9uID0gdGFzay5kZXNjcmlwdGlvblxuICAgICAgICAgICAgLnJlcGxhY2UoZ2xvYmFsRmlsdGVyLCAnJylcbiAgICAgICAgICAgIC5yZXBsYWNlKCcgICcsICcgJylcbiAgICAgICAgICAgIC50cmltKCk7XG5cbiAgICAgICAgbGV0IHByaW9yaXR5OiAnbm9uZScgfCAnbG93JyB8ICdtZWRpdW0nIHwgJ2hpZ2gnID0gJ25vbmUnO1xuICAgICAgICBpZiAodGFzay5wcmlvcml0eSA9PT0gUHJpb3JpdHkuTG93KSB7XG4gICAgICAgICAgICBwcmlvcml0eSA9ICdsb3cnO1xuICAgICAgICB9IGVsc2UgaWYgKHRhc2sucHJpb3JpdHkgPT09IFByaW9yaXR5Lk1lZGl1bSkge1xuICAgICAgICAgICAgcHJpb3JpdHkgPSAnbWVkaXVtJztcbiAgICAgICAgfSBlbHNlIGlmICh0YXNrLnByaW9yaXR5ID09PSBQcmlvcml0eS5IaWdoKSB7XG4gICAgICAgICAgICBwcmlvcml0eSA9ICdoaWdoJztcbiAgICAgICAgfVxuXG4gICAgICAgIGVkaXRhYmxlVGFzayA9IHtcbiAgICAgICAgICAgIGRlc2NyaXB0aW9uLFxuICAgICAgICAgICAgc3RhdHVzOiB0YXNrLnN0YXR1cyxcbiAgICAgICAgICAgIHByaW9yaXR5LFxuICAgICAgICAgICAgcmVjdXJyZW5jZVJ1bGU6IHRhc2sucmVjdXJyZW5jZSA/IHRhc2sucmVjdXJyZW5jZS50b1RleHQoKSA6ICcnLFxuICAgICAgICAgICAgc3RhcnREYXRlOiB0YXNrLnN0YXJ0RGF0ZVxuICAgICAgICAgICAgICAgID8gdGFzay5zdGFydERhdGUuZm9ybWF0KCdZWVlZLU1NLUREJylcbiAgICAgICAgICAgICAgICA6ICcnLFxuICAgICAgICAgICAgc2NoZWR1bGVkRGF0ZTogdGFzay5zY2hlZHVsZWREYXRlXG4gICAgICAgICAgICAgICAgPyB0YXNrLnNjaGVkdWxlZERhdGUuZm9ybWF0KCdZWVlZLU1NLUREJylcbiAgICAgICAgICAgICAgICA6ICcnLFxuICAgICAgICAgICAgZHVlRGF0ZTogdGFzay5kdWVEYXRlID8gdGFzay5kdWVEYXRlLmZvcm1hdCgnWVlZWS1NTS1ERCcpIDogJycsXG4gICAgICAgICAgICBkb25lRGF0ZTogdGFzay5kb25lRGF0ZSA/IHRhc2suZG9uZURhdGUuZm9ybWF0KCdZWVlZLU1NLUREJykgOiAnJyxcbiAgICAgICAgfTtcbiAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICBkZXNjcmlwdGlvbklucHV0LmZvY3VzKCk7XG4gICAgICAgIH0sIDEwKTtcbiAgICB9KTtcblxuICAgIGNvbnN0IF9vblN1Ym1pdCA9ICgpID0+IHtcbiAgICAgICAgY29uc3QgeyBnbG9iYWxGaWx0ZXIgfSA9IGdldFNldHRpbmdzKCk7XG4gICAgICAgIGxldCBkZXNjcmlwdGlvbiA9IGVkaXRhYmxlVGFzay5kZXNjcmlwdGlvbi50cmltKCk7XG4gICAgICAgIGlmICghZGVzY3JpcHRpb24uaW5jbHVkZXMoZ2xvYmFsRmlsdGVyKSkge1xuICAgICAgICAgICAgZGVzY3JpcHRpb24gPSBnbG9iYWxGaWx0ZXIgKyAnICcgKyBkZXNjcmlwdGlvbjtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBzdGFydERhdGU6IG1vbWVudC5Nb21lbnQgfCBudWxsID0gbnVsbDtcbiAgICAgICAgY29uc3QgcGFyc2VkU3RhcnREYXRlID0gY2hyb25vLnBhcnNlRGF0ZShcbiAgICAgICAgICAgIGVkaXRhYmxlVGFzay5zdGFydERhdGUsXG4gICAgICAgICAgICBuZXcgRGF0ZSgpLFxuICAgICAgICAgICAgeyBmb3J3YXJkRGF0ZTogdHJ1ZSB9LFxuICAgICAgICApO1xuICAgICAgICBpZiAocGFyc2VkU3RhcnREYXRlICE9PSBudWxsKSB7XG4gICAgICAgICAgICBzdGFydERhdGUgPSB3aW5kb3cubW9tZW50KHBhcnNlZFN0YXJ0RGF0ZSk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgc2NoZWR1bGVkRGF0ZTogbW9tZW50Lk1vbWVudCB8IG51bGwgPSBudWxsO1xuICAgICAgICBjb25zdCBwYXJzZWRTY2hlZHVsZWREYXRlID0gY2hyb25vLnBhcnNlRGF0ZShcbiAgICAgICAgICAgIGVkaXRhYmxlVGFzay5zY2hlZHVsZWREYXRlLFxuICAgICAgICAgICAgbmV3IERhdGUoKSxcbiAgICAgICAgICAgIHsgZm9yd2FyZERhdGU6IHRydWUgfSxcbiAgICAgICAgKTtcbiAgICAgICAgaWYgKHBhcnNlZFNjaGVkdWxlZERhdGUgIT09IG51bGwpIHtcbiAgICAgICAgICAgIHNjaGVkdWxlZERhdGUgPSB3aW5kb3cubW9tZW50KHBhcnNlZFNjaGVkdWxlZERhdGUpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGR1ZURhdGU6IG1vbWVudC5Nb21lbnQgfCBudWxsID0gbnVsbDtcbiAgICAgICAgY29uc3QgcGFyc2VkRHVlRGF0ZSA9IGNocm9uby5wYXJzZURhdGUoXG4gICAgICAgICAgICBlZGl0YWJsZVRhc2suZHVlRGF0ZSxcbiAgICAgICAgICAgIG5ldyBEYXRlKCksXG4gICAgICAgICAgICB7IGZvcndhcmREYXRlOiB0cnVlIH0sXG4gICAgICAgICk7XG4gICAgICAgIGlmIChwYXJzZWREdWVEYXRlICE9PSBudWxsKSB7XG4gICAgICAgICAgICBkdWVEYXRlID0gd2luZG93Lm1vbWVudChwYXJzZWREdWVEYXRlKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCByZWN1cnJlbmNlOiBSZWN1cnJlbmNlIHwgbnVsbCA9IG51bGw7XG4gICAgICAgIGlmIChlZGl0YWJsZVRhc2sucmVjdXJyZW5jZVJ1bGUpIHtcbiAgICAgICAgICAgIHJlY3VycmVuY2UgPSBSZWN1cnJlbmNlLmZyb21UZXh0KHtcbiAgICAgICAgICAgICAgICByZWN1cnJlbmNlUnVsZVRleHQ6IGVkaXRhYmxlVGFzay5yZWN1cnJlbmNlUnVsZSxcbiAgICAgICAgICAgICAgICBzdGFydERhdGUsXG4gICAgICAgICAgICAgICAgc2NoZWR1bGVkRGF0ZSxcbiAgICAgICAgICAgICAgICBkdWVEYXRlLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgcGFyc2VkUHJpb3JpdHk6IFByaW9yaXR5O1xuICAgICAgICBzd2l0Y2ggKGVkaXRhYmxlVGFzay5wcmlvcml0eSkge1xuICAgICAgICAgICAgY2FzZSAnbG93JzpcbiAgICAgICAgICAgICAgICBwYXJzZWRQcmlvcml0eSA9IFByaW9yaXR5LkxvdztcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ21lZGl1bSc6XG4gICAgICAgICAgICAgICAgcGFyc2VkUHJpb3JpdHkgPSBQcmlvcml0eS5NZWRpdW07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdoaWdoJzpcbiAgICAgICAgICAgICAgICBwYXJzZWRQcmlvcml0eSA9IFByaW9yaXR5LkhpZ2g7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHBhcnNlZFByaW9yaXR5ID0gUHJpb3JpdHkuTm9uZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHVwZGF0ZWRUYXNrID0gbmV3IFRhc2soe1xuICAgICAgICAgICAgLi4udGFzayxcbiAgICAgICAgICAgIGRlc2NyaXB0aW9uLFxuICAgICAgICAgICAgc3RhdHVzOiBlZGl0YWJsZVRhc2suc3RhdHVzLFxuICAgICAgICAgICAgcHJpb3JpdHk6IHBhcnNlZFByaW9yaXR5LFxuICAgICAgICAgICAgcmVjdXJyZW5jZSxcbiAgICAgICAgICAgIHN0YXJ0RGF0ZSxcbiAgICAgICAgICAgIHNjaGVkdWxlZERhdGUsXG4gICAgICAgICAgICBkdWVEYXRlLFxuICAgICAgICAgICAgZG9uZURhdGU6IHdpbmRvd1xuICAgICAgICAgICAgICAgIC5tb21lbnQoZWRpdGFibGVUYXNrLmRvbmVEYXRlLCAnWVlZWS1NTS1ERCcpXG4gICAgICAgICAgICAgICAgLmlzVmFsaWQoKVxuICAgICAgICAgICAgICAgID8gd2luZG93Lm1vbWVudChlZGl0YWJsZVRhc2suZG9uZURhdGUsICdZWVlZLU1NLUREJylcbiAgICAgICAgICAgICAgICA6IG51bGwsXG4gICAgICAgIH0pO1xuXG4gICAgICAgIG9uU3VibWl0KFt1cGRhdGVkVGFza10pO1xuICAgIH07XG48L3NjcmlwdD5cblxuPGRpdiBjbGFzcz1cInRhc2tzLW1vZGFsXCI+XG4gICAgPGZvcm0gb246c3VibWl0fHByZXZlbnREZWZhdWx0PXtfb25TdWJtaXR9PlxuICAgICAgICA8ZGl2IGNsYXNzPVwidGFza3MtbW9kYWwtc2VjdGlvblwiPlxuICAgICAgICAgICAgPGxhYmVsIGZvcj1cImRlc2NyaXB0aW9uXCI+RGVzY3JpcHRpb248L2xhYmVsPlxuICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgYmluZDp2YWx1ZT17ZWRpdGFibGVUYXNrLmRlc2NyaXB0aW9ufVxuICAgICAgICAgICAgICAgIGJpbmQ6dGhpcz17ZGVzY3JpcHRpb25JbnB1dH1cbiAgICAgICAgICAgICAgICBpZD1cImRlc2NyaXB0aW9uXCJcbiAgICAgICAgICAgICAgICB0eXBlPVwidGV4dFwiXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJ0YXNrcy1tb2RhbC1kZXNjcmlwdGlvblwiXG4gICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9XCJUYWtlIG91dCB0aGUgdHJhc2hcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxociAvPlxuICAgICAgICA8ZGl2IGNsYXNzPVwidGFza3MtbW9kYWwtc2VjdGlvblwiPlxuICAgICAgICAgICAgPGxhYmVsIGZvcj1cInByaW9yaXR5XCI+UHJpb3JpdHk8L2xhYmVsPlxuICAgICAgICAgICAgPHNlbGVjdFxuICAgICAgICAgICAgICAgIGJpbmQ6dmFsdWU9e2VkaXRhYmxlVGFzay5wcmlvcml0eX1cbiAgICAgICAgICAgICAgICBpZD1cInByaW9yaXR5XCJcbiAgICAgICAgICAgICAgICBjbGFzcz1cImRyb3Bkb3duXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8b3B0aW9uIHZhbHVlPVwibm9uZVwiPk5vbmU8L29wdGlvbj5cbiAgICAgICAgICAgICAgICA8b3B0aW9uIHZhbHVlPVwiaGlnaFwiPuKPqyBIaWdoPC9vcHRpb24+XG4gICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT1cIm1lZGl1bVwiPvCflLwgTWVkaXVtPC9vcHRpb24+XG4gICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT1cImxvd1wiPvCflL0gTG93PC9vcHRpb24+XG4gICAgICAgICAgICA8L3NlbGVjdD5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxociAvPlxuICAgICAgICA8ZGl2IGNsYXNzPVwidGFza3MtbW9kYWwtc2VjdGlvblwiPlxuICAgICAgICAgICAgPGxhYmVsIGZvcj1cInJlY3VycmVuY2VcIj5SZWN1cnJlbmNlPC9sYWJlbD5cbiAgICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgICAgIGJpbmQ6dmFsdWU9e2VkaXRhYmxlVGFzay5yZWN1cnJlbmNlUnVsZX1cbiAgICAgICAgICAgICAgICBpZD1cImRlc2NyaXB0aW9uXCJcbiAgICAgICAgICAgICAgICB0eXBlPVwidGV4dFwiXG4gICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9XC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CJ0ZXh0XCJcbiAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9XCJUcnkgJ01vbmRheScgb3IgJ3RvbW9ycm93Jy5cIlxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgPGNvZGU+4o+zIHtAaHRtbCBwYXJzZWRTY2hlZHVsZWREYXRlfTwvY29kZT5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cInRhc2tzLW1vZGFsLWRhdGVcIj5cbiAgICAgICAgICAgICAgICA8bGFiZWwgZm9yPVwic3RhcnRcIj5TdGFydDwvbGFiZWw+XG4gICAgICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgICAgIGJpbmQ6dmFsdWU9e2VkaXRhYmxlVGFzay5zdGFydERhdGV9XG4gICAgICAgICAgICAgICAgICAgIGlkPVwic3RhcnRcIlxuICAgICAgICAgICAgICAgICAgICB0eXBlPVwidGV4dFwiXG4gICAgICAgICAgICAgICAgICAgIHBsYWNlaG9sZGVyPVwiVHJ5ICdNb25kYXknIG9yICd0b21vcnJvdycuXCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgIDxjb2RlPvCfm6sge0BodG1sIHBhcnNlZFN0YXJ0RGF0ZX08L2NvZGU+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxociAvPlxuICAgICAgICA8ZGl2IGNsYXNzPVwidGFza3MtbW9kYWwtc2VjdGlvblwiPlxuICAgICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgICAgICBTdGF0dXM6XG4gICAgICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgICAgIHR5cGU9XCJjaGVja2JveFwiXG4gICAgICAgICAgICAgICAgICAgIGNsYXNzPVwidGFzay1saXN0LWl0ZW0tY2hlY2tib3ggdGFza3MtbW9kYWwtY2hlY2tib3hcIlxuICAgICAgICAgICAgICAgICAgICBjaG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2ZWwgTEkgaW5kZXBlbmRlbnRseSBmcm9tIGl0cyBjaGlsZHJlbi5cbiAgICAgICAgICAgICAgICAvLyBUaGVyZSB3YXMgYSBmYWxzZSBwb3NpdGl2ZSwgd2hlbiB0aGUgTEkgd2Fzbid0IGEgdGFzayBpdHNlbGYsIGJ1dCBjb250YWluZWQgdGhlXG4gICAgICAgICAgICAgICAgLy8gZ2xvYmFsIGZpbHRlciBpbiBjaGlsZCBMSXMuXG4gICAgICAgICAgICAgICAgbGV0IGZpcnN0TGluZVRleHQ6IHN0cmluZyB8IG51bGwgPSBudWxsO1xuXG4gICAgICAgICAgICAgICAgLy8gVGhlIGZpcnN0IGxpbmUgaXMgdGhlIGZpcnN0IGxpbmUgdGhhdCBpcyBub3QgZW1wdHkuIEVtcHR5IGxpbmVzIGNhbiBleGlzdCB3aGVuXG4gICAgICAgICAgICAgICAgLy8gdGhlIGNoZWNrbGlzdCBpbiBtYXJrZG93biBpbmNsdWRlcyBibGFuayBsaW5lcyAoc2VlICMzMTMpLlxuICAgICAgICAgICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgbGluZXNUZXh0Lmxlbmd0aDsgaSA9IGkgKyAxKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChsaW5lc1RleHRbaV0gIT09ICcnKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmaXJzdExpbmVUZXh0ID0gbGluZXNUZXh0W2ldO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoZmlyc3RMaW5lVGV4dCA9PT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIGZpcnN0TGluZVRleHQuaW5jbHVkZXMoZ2xvYmFsRmlsdGVyKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICBpZiAocmVuZGVyZWRFbGVtZW50cy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIC8vIE5vIHRhc2tzIG1lYW5zIG5vdGhpbmcgdG8gZG8uXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBwYXRoID0gY29udGV4dC5zb3VyY2VQYXRoO1xuICAgICAgICBjb25zdCBzZWN0aW9uID0gY29udGV4dC5nZXRTZWN0aW9uSW5mbyhlbGVtZW50KTtcblxuICAgICAgICBpZiAoc2VjdGlvbiA9PT0gbnVsbCkge1xuICAgICAgICAgICAgLy8gV2UgY2Fubm90IHByb2Nlc3MgdGhlIHJlbmRlciB3aXRob3V0IHRoZSBzZWN0aW9uIGluZm8uXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBmaWxlTGluZXMgPSBzZWN0aW9uLnRleHQuc3BsaXQoJ1xcbicpO1xuXG4gICAgICAgIGxldCBzZWN0aW9uSW5kZXggPSAwO1xuICAgICAgICBjb25zdCBmaWxlVGFza3M6IFRhc2tbXSA9IFtdO1xuICAgICAgICBmb3IgKFxuICAgICAgICAgICAgbGV0IGxpbmVOdW1iZXIgPSBzZWN0aW9uLmxpbmVTdGFydDtcbiAgICAgICAgICAgIGxpbmVOdW1iZXIgPD0gc2VjdGlvbi5saW5lRW5kO1xuICAgICAgICAgICAgbGluZU51bWJlcisrXG4gICAgICAgICkge1xuICAgICAgICAgICAgY29uc3QgbGluZSA9IGZpbGVMaW5lc1tsaW5lTnVtYmVyXTtcbiAgICAgICAgICAgIGlmIChsaW5lID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAvLyBJZiB3ZSBlbmQgdXAgb3V0c2lkZSB0aGUgcmFuZ2Ugb2YgdGhlIGZpbGUsXG4gICAgICAgICAgICAgICAgLy8gd2UgY2Fubm90IHByb2Nlc3MgdGhpcyB0YXNrLlxuICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCB0YXNrID0gVGFzay5mcm9tTGluZSh7XG4gICAgICAgICAgICAgICAgbGluZSxcbiAgICAgICAgICAgICAgICBwYXRoLFxuICAgICAgICAgICAgICAgIHNlY3Rpb25TdGFydDogc2VjdGlvbi5saW5lU3RhcnQsXG4gICAgICAgICAgICAgICAgc2VjdGlvbkluZGV4LFxuICAgICAgICAgICAgICAgIHByZWNlZGluZ0hlYWRlcjogbnVsbCwgLy8gV2UgZG9uJ3QgbmVlZCB0aGUgcHJlY2VkaW5nIGhlYWRlciBmb3IgaW4tbGluZSByZW5kZXJpbmcuXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGlmICh0YXNrICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgZmlsZVRhc2tzLnB1c2godGFzayk7XG4gICAgICAgICAgICAgICAgc2VjdGlvbkluZGV4Kys7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAvLyBUaGUgc2VjdGlvbiBpbmRleCBpcyB0aGUgbnRoIHRhc2sgd2l0aGluIHRoaXMgc2VjdGlvbi5cbiAgICAgICAgZm9yIChcbiAgICAgICAgICAgIGxldCBzZWN0aW9uSW5kZXggPSAwO1xuICAgICAgICAgICAgc2VjdGlvbkluZGV4IDwgcmVuZGVyZWRFbGVtZW50cy5sZW5ndGg7XG4gICAgICAgICAgICBzZWN0aW9uSW5kZXgrK1xuICAgICAgICApIHtcbiAgICAgICAgICAgIGNvbnN0IHRhc2sgPSBmaWxlVGFza3Nbc2VjdGlvbkluZGV4XTtcbiAgICAgICAgICAgIGNvbnN0IHJlbmRlcmVkRWxlbWVudCA9IHJlbmRlcmVkRWxlbWVudHNbc2VjdGlvbkluZGV4XTtcblxuICAgICAgICAgICAgaWYgKHRhc2sgPT09IHVuZGVmaW5lZCB8fCByZW5kZXJlZEVsZW1lbnQgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIC8vIEFzc3VtaW5nIG1hdGNoIG9mIHRhc2tzIGluIGZpbGUgYW5kIHJlbmRlciBwcmV2aWV3LlxuICAgICAgICAgICAgICAgIC8vIElmIHRoZXJlIGlzIGEgbWlzLW1hdGNoIGluIHRoZSBudW1iZXJzLCB3ZSBzdGlsbCBwcm9jZXNzXG4gICAgICAgICAgICAgICAgLy8gd2hhdCB3ZSBjYW4uXG4gICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNvbnN0IGRhdGFMaW5lOiBzdHJpbmcgPVxuICAgICAgICAgICAgICAgIHJlbmRlcmVkRWxlbWVudC5nZXRBdHRyKCdkYXRhLWxpbmUnKSA/PyAnMCc7XG4gICAgICAgICAgICBjb25zdCBsaXN0SW5kZXg6IG51bWJlciA9IE51bWJlci5wYXJzZUludChkYXRhTGluZSwgMTApO1xuICAgICAgICAgICAgY29uc3QgdGFza0VsZW1lbnQgPSBhd2FpdCB0YXNrLnRvTGkoe1xuICAgICAgICAgICAgICAgIHBhcmVudFVsRWxlbWVudDogZWxlbWVudCxcbiAgICAgICAgICAgICAgICBsaXN0SW5kZXgsXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgLy8gSWYgdGhlIHJlbmRlcmVkIGVsZW1lbnQgY29udGFpbnMgYSBzdWItbGlzdCBvciBzdWItZGl2IChlLmcuIHRoZVxuICAgICAgICAgICAgLy8gZm9sZGluZyBhcnJvdyksIHdlIG5lZWQgdG8ga2VlcCBpdC5cbiAgICAgICAgICAgIGNvbnN0IHJlbmRlcmVkQ2hpbGRyZW4gPSByZW5kZXJlZEVsZW1lbnQuY2hpbGROb2RlcztcbiAgICAgICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgcmVuZGVyZWRDaGlsZHJlbi5sZW5ndGg7IGkgPSBpICsgMSkge1xuICAgICAgICAgICAgICAgIGNvbnN0IHJlbmRlcmVkQ2hpbGQgPSByZW5kZXJlZENoaWx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Bjb25zdHJ1Y3Rvcih7IHNvdXJjZSB9OiB7IHNvdXJjZTogc3RyaW5nIH0pIHtcbiAgICAgICAgc291cmNlXG4gICAgICAgICAgICAuc3BsaXQoJ1xcbicpXG4gICAgICAgICAgICAubWFwKChsaW5lOiBzdHJpbmcpID0+IGxpbmUudHJpbSgpKVxuICAgICAgICAgICAgLmZvckVhY2goKGxpbmU6IHN0cmluZykgPT4ge1xuICAgICAgICAgICAgICAgIHN3aXRjaCAodHJ1ZSkge1xuICAgICAgICAgICAgICAgICAgICBjYXNlIGxpbmUgPT09ICcnOlxuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgbGluZSA9PT0gdGhpcy5kb25lU3RyaW5nOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZmlsdGVycy5wdXNoKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICh0YXNrKSA9PiB0YXNrLnN0YXR1cyA9PT0gU3RhdHVzLkRvbmUsXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgbGluZSA9PT0gdGhpcy5ub3REb25lU3RyaW5nOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZmlsdGVycy5wdXNoKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICh0YXNrKSA9PiB0YXNrLnN0YXR1cyAhPT0gU3RhdHVzLkRvbmUsXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgbGluZSA9PT0gdGhpcy5yZWN1cnJpbmdTdHJpbmc6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9maWx0ZXJzLnB1c2goKHRhc2spID0+IHRhc2sucmVjdXJyZW5jZSAhPT0gbnVsbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSBsaW5lID09PSB0aGlzLm5vdFJlY3VycmluZ1N0cmluZzpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2ZpbHRlcnMucHVzaCgodGFzaykgPT4gdGFzay5yZWN1cnJlbmNlID09PSBudWxsKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICBjYXNlIGxpbmUgPT09IHRoaXMuZXhjbHVkZVN1Ykl0ZW1zU3RyaW5nOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZmlsdGVycy5wdXNoKCh0YXNrKSA9PiB0YXNrLmluZGVudGF0aW9uID09PSAnJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSBsaW5lID09PSB0aGlzLm5vU3RhcnRTdHJpbmc6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9maWx0ZXJzLnB1c2goKHRhc2spID0+IHRhc2suc3RhcnREYXRlID09PSBudWxsKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICBjYXNlIGxpbmUgPT09IHRoaXMubm9TY2hlZHVsZWRTdHJpbmc6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9maWx0ZXJzLnB1c2goXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKHRhc2spID0+IHRhc2suc2NoZWR1bGVkRGF0ZSA9PT0gbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSBsaW5lID09PSB0aGlzLm5vRHVlU3RyaW5nOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZmlsdGVycy5wdXNoKCh0YXNrKSA9PiB0YXNrLmR1ZURhdGUgPT09IG51bGwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgdGhpcy5zaG9ydE1vZGVSZWdleHAudGVzdChsaW5lKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2xheW91dE9wdGlvbnMuc2hvcnRNb2RlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICBjYXNlIHRoaXMucHJpb3JpdHlSZWdleHAudGVzdChsaW5lKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGFyc2VQcmlvcml0eUZpbHRlcih7IGxpbmUgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSB0aGlzLnN0YXJ0UmVnZXhwLnRlc3QobGluZSk6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnBhcnNlU3RhcnRGaWx0ZXIoeyBsaW5lIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgdGhpcy5zY2hlZHVsZWRSZWdleHAudGVzdChsaW5lKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGFyc2VTY2hlZHVsZWRGaWx0ZXIoeyBsaW5lIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgdGhpcy5kdWVSZWdleHAudGVzdChsaW5lKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGFyc2VEdWVGaWx0ZXIoeyBsaW5lIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgdGhpcy5kb25lUmVnZXhwLnRlc3QobGluZSk6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnBhcnNlRG9uZUZpbHRlcih7IGxpbmUgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSB0aGlzLnBhdGhSZWdleHAudGVzdChsaW5lKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGFyc2VQYXRoRmlsdGVyKHsgbGluZSB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICBjYXNlIHRoaXMuZGVzY3JpcHRpb25SZWdleHAudGVzdChsaW5lKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGFyc2VEZXNjcmlwdGlvbkZpbHRlcih7IGxpbmUgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSB0aGlzLmhlYWRpbmdSZWdleHAudGVzdChsaW5lKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGFyc2VIZWFkaW5nRmlsdGVyKHsgbGluZSB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICBjYXNlIHRoaXMubGltaXRSZWdleHAudGVzdChsaW5lKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGFyc2VMaW1pdCh7IGxpbmUgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSB0aGlzLnNvcnRCeVJlZ2V4cC50ZXN0KGxpbmUpOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5wYXJzZVNvcnRCeSh7IGxpbmUgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSB0aGlzLmhpZGVPcHRpb25zUmVnZXhwLnRlc3QobGluZSk6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnBhcnNlSGlkZU9wdGlvbnMoeyBsaW5lIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9lcnJvciA9ICdkbyBub3QgdW5kZXJzdGFuZCBxdWVyeSc7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIGdldCBsaW1pdCgpOiBudW1iZXIgfCB1bmRlZmluZWQge1xuICAgICAgICByZXR1cm4gdGhpcy5fbGltaXQ7XG4gICAgfVxuXG4gICAgcHVibGljIGdldCBsYXlvdXRPcHRpb25zKCk6IExheW91dE9wdGlvbnMge1xuICAgICAgICByZXR1cm4gdGhpcy5fbGF5b3V0T3B0aW9ucztcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0IGZpbHRlcnMoKTogKCh0YXNrOiBUYXNrKSA9PiBib29sZWFuKVtdIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX2ZpbHRlcnM7XG4gICAgfVxuXG4gICAgcHVibGljIGdldCBzb3J0aW5nKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fc29ydGluZztcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0IGVycm9yKCk6IHN0cmluZyB8IHVuZGVmaW5lZCB7XG4gICAgICAgIHJldHVybiB0aGlzLl9lcnJvcjtcbiAgICB9XG5cbiAgICBwcml2YXRlIHBhcnNlSGlkZU9wdGlvbnMoeyBsaW5lIH06IHsgbGluZTogc3RyaW5nIH0pOiB2b2lkIHtcbiAgICAgICAgY29uc3QgaGlkZU9wdGlvbnNNYXRjaCA9IGxpbmUubWF0Y2godGhpcy5oaWRlT3B0aW9uc1JlZ2V4cCk7XG4gICAgICAgIGlmIChoaWRlT3B0aW9uc01hdGNoICE9PSBudWxsKSB7XG4gICAgICAgICAgICBjb25zdCBvcHRpb24gPSBoaWRlT3B0aW9uc01hdGNoWzFdLnRyaW0oKS50b0xvd2VyQ2FzZSgpO1xuXG4gICAgICAgICAgICBzd2l0Y2ggKG9wdGlvbikge1xuICAgICAgICAgICAgICAgIGNhc2UgJ3Rhc2sgY291bnQnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9sYXlvdXRPcHRpb25zLmhpZGVUYXNrQ291bnQgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlICdiYWNrbGluayc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2xheW91dE9wdGlvbnMuaGlkZUJhY2tsaW5rcyA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgJ3ByaW9yaXR5JzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbGF5b3V0T3B0aW9ucy5oaWRlUHJpb3JpdHkgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlICdzdGFydCBkYXRlJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbGF5b3V0T3B0aW9ucy5oaWRlU3RhcnREYXRlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSAnc2NoZWR1bGVkIGRhdGUnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9sYXlvdXRPcHRpb25zLmhpZGVTY2hlZHVsZWREYXRlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSAnZHVlIGRhdGUnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9sYXlvdXRPcHRpb25zLmhpZGVEdWVEYXRlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSAnZG9uZSBkYXRlJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbGF5b3V0T3B0aW9ucy5oaWRlRG9uZURhdGUgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlICdyZWN1cnJlbmNlIHJ1bGUnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9sYXlvdXRPcHRpb25zLmhpZGVSZWN1cnJlbmNlUnVsZSA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgJ2VkaXQgYnV0dG9uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbGF5b3V0T3B0aW9ucy5oaWRlRWRpdEJ1dHRvbiA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2Vycm9yID0gJ2RvIG5vdCB1bmRlcnN0YW5kIGhpZGUgb3B0aW9uJztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByaXZhdGUgcGFyc2VQcmlvcml0eUZpbHRlcih7IGxpbmUgfTogeyBsaW5lOiBzdHJpbmcgfSk6IHZvaWQge1xuICAgICAgICBjb25zdCBwcmlvcml0eU1hdGNoID0gbGluZS5tYXRjaCh0aGlzLnByaW9yaXR5UmVnZXhwKTtcbiAgICAgICAgaWYgKHByaW9yaXR5TWF0Y2ggIT09IG51bGwpIHtcbiAgICAgICAgICAgIGNvbnN0IGZpbHRlclByaW9yaXR5U3RyaW5nID0gcHJpb3JpdHlNYXRjaFszXTtcbiAgICAgICAgICAgIGxldCBmaWx0ZXJQcmlvcml0eTogUHJpb3JpdHkgfCBudWxsID0gbnVsbDtcblxuICAgICAgICAgICAgc3dpdGNoIChmaWx0ZXJQcmlvcml0eVN0cmluZykge1xuICAgICAgICAgICAgICAgIGNhc2UgJ2xvdyc6XG4gICAgICAgICAgICAgICAgICAgIGZpbHRlclByaW9yaXR5ID0gUHJpb3JpdHkuTG93O1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlICdub25lJzpcbiAgICAgICAgICAgICAgICAgICAgZmlsdGVyUHJpb3JpdHkgPSBQcmlvcml0eS5Ob25lO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlICdtZWRpdW0nOlxuICAgICAgICAgICAgICAgICAgICBmaWx0ZXJQcmlvcml0eSA9IFByaW9yaXR5Lk1lZGl1bTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSAnaGlnaCc6XG4gICAgICAgICAgICAgICAgICAgIGZpbHRlclByaW9yaXR5ID0gUHJpb3JpdHkuSGlnaDtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChmaWx0ZXJQcmlvcml0eSA9PT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIHRoaXMuX2Vycm9yID0gJ2RvIG5vdCB1bmRlcnN0YW5kIHByaW9yaXR5JztcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGxldCBmaWx0ZXI7XG4gICAgICAgICAgICBpZiAocHJpb3JpdHlNYXRjaFsyXSA9PT0gJ2Fib3ZlJykge1xuICAgICAgICAgICAgICAgIGZpbHRlciA9ICh0YXNrOiBUYXNrKSA9PlxuICAgICAgICAgICAgICAgICAgICB0YXNrLnByaW9yaXR5XG4gICAgICAgICAgICAgICAgICAgICAgICA/IHRhc2sucHJpb3JpdHkubG9jYWxlQ29tcGFyZShmaWx0ZXJQcmlvcml0eSEpIDwgMFxuICAgICAgICAgICAgICAgICAgICAgICAgOiBmYWxzZTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAocHJpb3JpdHlNYXRjaFsyXSA9PT0gJ2JlbG93Jykge1xuICAgICAgICAgICAgICAgIGZpbHR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xuICAgICAgICBpZiAoc2NoZWR1bGVkTWF0Y2ggIT09IG51bGwpIHtcbiAgICAgICAgICAgIGNvbnN0IGZpbHRlckRhdGUgPSB0aGlzLnBhcnNlRGF0ZShzY2hlZHVsZWRNYXRjaFsyXSk7XG4gICAgICAgICAgICBpZiAoIWZpbHRlckRhdGUuaXNWYWxpZCgpKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fZXJyb3IgPSAnZG8gbm90IHVuZGVyc3RhbmQgc2NoZWR1bGVkIGRhdGUnO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBsZXQgZmlsdGVyO1xuICAgICAgICAgICAgaWYgKHNjaGVkdWxlZE1hdGNoWzFdID09PSAnYmVmb3JlJykge1xuICAgICAgICAgICAgICAgIGZpbHRlciA9ICh0YXNrOiBUYXNrKSA9PlxuICAgICAgICAgICAgICAgICAgICB0YXNrLnNjaGVkdWxlZERhdGVcbiAgICAgICAgICAgICAgICAgICAgICAgID8gdGFzay5zY2hlZHVsZWREYXRlLmlzQmVmb3JlKGZpbHRlckRhdGUpXG4gICAgICAgICAgICAgICAgICAgICAgICA6IGZhbHNlO1xuICAgICAgICAgICAgfSBlbHNlIGlmIChzY2hlZHVsZWRNYXRjaFsxXSA9PT0gJ2FmdGVyJykge1xuICAgICAgICAgICAgICAgIGZpbHRlciA9ICh0YXNrOiBUYXNrKSA9PlxuICAgICAgICAgICAgICAgICAgICB0YXNrLnNjaGVkdWxlZERhdGVcbiAgICAgICAgICAgICAgICAgICAgICAgID8gdGFzay5zY2hlZHVsZWREYXRlLmlzQWZ0ZXIoZmlsdGVyRGF0ZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIDogZmFsc2U7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGZpbHRlciA9ICh0YXNrOiBUYXNrKSA9PlxuICAgICAgICAgICAgICAgICAgICB0YXNrLnNjaGVkdWxlZERhdGVcbiAgICAgICAgICAgICAgICAgICAgICAgID8gdGF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HVzaCgodGFzazogVGFzaykgPT5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zdHJpbmdJbmNsdWRlc0Nhc2VJbnNlbnNpdGl2ZSh0YXNrLnBhdGgsIHBhdGhNYXRjaFsyXSksXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAocGF0aE1hdGNoWzFdID09PSAnZG9lcyBub3QgaW5jbHVkZScpIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9maWx0ZXJzLnB1c2goXG4gICAgICAgICAgICAgICAgICAgICh0YXNrOiBUYXNrKSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgIXRoaXMuc3RyaW5nSW5jbHVkZXNDYXNlSW5zZW5zaXRpdmUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFzay5wYXRoLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhdGhNYXRjaFsyXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fZXJyb3IgPSAnZG8gbm90IHVuZGVyc3RhbmQgcXVlcnkgZmlsdGVyIChwYXRoKSc7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLl9lcnJvciA9ICdkbyBub3QgdW5kZXJzdGFuZCBxdWVyeSBmaWx0ZXIgKHBhdGgpJztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByaXZhdGUgcGFyc2VEZXNjcmlwdGlvbkZpbHRlcih7IGxpbmUgfTogeyBsaW5lOiBzdHJpbmcgfSk6IHZvaWQge1xuICAgICAgICBjb25zdCBkZXNjcmlwdGlvbk1hdGNoID0gbGluZS5tYXRjaCh0aGlzLmRlc2NyaXB0aW9uUmVnZXhwKTtcbiAgICAgICAgaWYgKGRlc2NyaXB0aW9uTWF0Y2ggIT09IG51bGwpIHtcbiAgICAgICAgICAgIGNvbnN0IGZpbHRlck1ldGhvZCA9IGRlc2NyaXB0aW9uTWF0Y2hbMV07XG4gICAgICAgICAgICBjb25zdCBnbG9iYWxGaWx0ZXIgPSBnZXRTZXR0aW5ncygpLmdsb2JhbEZpbHRlcjtcblxuICAgICAgICAgICAgaWYgKGZpbHRlck1ldGhvZCA9PT0gJ2luY2x1ZGVzJykge1xuICAgICAgICAgICAgICAgIHRoaXMuX2ZpbHRlcnMucHVzaCgodGFzazogVGFzaykgPT5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zdHJpbmdJbmNsdWRlc0Nhc2VJbnNlbnNpdGl2ZShcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFJlbW92ZSBnbG9iYWwgZmlsdGVyIGZyb20gZGVzY3JpcHRpb24gbWF0Y2ggaWYgcHJlc2VudC5cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFRoaXMgaXMgbmVjZXNzYXJ5IHRvIG1hdGNoIG9ubHkgb24gdGhlIGNvbnRlbnQgb2YgdGhlIHRhc2ssIG5vdFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdGhlIGdsb2JhbCBmaWx0ZXIuXG4gICAgICAgICAgICAgICAgICAgICAgICB0YXNrLmRlc2NyaXB0aW9uLnJlcGxhY2UoZ2xvYmFsRmlsdGVyLCAnJykudHJpbSgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb25NYXRjaFsyXSxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfSBlbHNlIGlmIChkZXNjcmlwdGlvbk1hdGNoWzFdID09PSAnZG9lcyBub3QgaW5jbHVkZScpIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9maWx0ZXJzLnB1c2goXG4gICAgICAgICAgICAgICAgICAgICh0YXNrOiBUYXNrKSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgIXRoaXMuc3RyaW5nSW5jbHVkZXNDYXNlSW5zZW5zaXRpdmUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gUmVtb3ZlIGdsb2JhbCBmaWx0ZXIgZnJvbSBkZXNjcmlwdGlvbiBtYXRjaCBpZiBwcmVzZW50LlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIFRoaXMgaXMgbmVjZXNzYXJ5IHRvIG1hdGNoIG9ubHkgb24gdGhlIGNvbnRlbnQgb2YgdGhlIHRhc2ssIG5vdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHRoZSBnbG9iYWwgZmlsdGVyLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhc2suZGVzY3JpcHRpb24ucmVwbGFjZShnbG9iYWxGaWx0ZXIsICcnKS50cmltKCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb25NYXRjaFsyXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fZXJyb3IgPSAnZG8gbm90IHVuZGVyc3RhbmQgcXVlcnkgZmlsdGVyIChkZXNjcmlwdGlvbiknO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5fZXJyb3IgPSAnZG8gbm90IHVuZGVyc3RhbmQgcXVlcnkgZmlsdGVyIChkZXNjcmlwdGlvbiknO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBwYXJzZUhlYWRpbmdGaWx0ZXIoeyBsaW5lIH06IHsgbGluZTogc3RyaW5nIH0pOiB2b2lkIHtcbiAgICAgICAgY29uc3QgaGVhZGluZ01hdGNoID0gbGluZS5tYXRjaCh0aGlzLmhlYWRpbmdSZWdleHApO1xuICAgICAgICBpZiAoaGVhZGluZ01hdGNoICE9PSBudWxsKSB7XG4gICAgICAgICAgICBjb25zdCBmaWx0ZXJNZXRob2QgPSBoZWFkaW5nTWF0Y2hbMV0udG9Mb3dlckNhc2UoKTtcbiAgICAgICAgICAgIGlmIChmaWx0ZXJNZXRob2QgPT09ICdpbmNsdWRlcycpIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9maWx0ZXJzLnB1c2goXG4gICAgICAgICAgICAgICAgICAgICh0YXNrOiBUYXNrKSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgdGFzay5wcmVjZWRpbmdIZWFkZXIgIT09IG51bGwgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc3RyaW5nSW5jbHVkZXNDYXNlSW5zZW5zaXRpdmUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFzay5wcmVjZWRpbmdIZWFkZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGluZ01hdGNoWzJdLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfSBlbHNlIGlmIChoZWFkaW5nTWF0Y2hbMV0gPT09ICdkb2VzIG5vdCBpbmNsdWRlJykge1xuICAgICAgICAgICAgICAgIHRoaXMuX2ZpbHRlcnMucHVzaChcbiAgICAgICAgICAgICAgICAgICAgKHRhc2s6IFRhc2spID0+XG4gICAgICAgICAgICAgICAgICAgICAgICB0YXNrLnByZWNlZGluZ0hlYWRlciA9PT0gbnVsbCB8fFxuICAgICAgICAgICAgICAgICAgICAgICAgIXRoaXMuc3RyaW5nSW5jbHVkZXNDYXNlSW5zZW5zaXRpdmUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFzay5wcmVjZWRpbmdIZWFkZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGluZ01hdGNoWzJdLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9lcnJvciA9ICdkbyB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G9ycykge1xuICAgICAgICAgICAgICAgIGNvbnN0IHJlc3VsdCA9IGNvbXBhcmF0b3IoYSwgYik7XG4gICAgICAgICAgICAgICAgaWYgKHJlc3VsdCAhPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiAwO1xuICAgICAgICB9O1xuICAgIH1cblxuICAgIHByaXZhdGUgc3RhdGljIGNvbXBhcmVCeVVyZ2VuY3koYTogVGFzaywgYjogVGFzayk6IG51bWJlciB7XG4gICAgICAgIC8vIEhpZ2hlciB1cmdlbmN5IHNob3VsZCBiZSBzb3J0ZWQgZWFybGllci5cbiAgICAgICAgcmV0dXJuIGIudXJnZW5jeSAtIGEudXJnZW5jeTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHN0YXRpYyBjb21wYXJlQnlTdGF0dXMoYTogVGFzaywgYjogVGFzayk6IC0xIHwgMCB8IDEge1xuICAgICAgICBpZiAoYS5zdGF0dXMgPCBiLnN0YXR1cykge1xuICAgICAgICAgICAgcmV0dXJuIDE7XG4gICAgICAgIH0gZWxzZSBpZiAoYS5zdGF0dXMgPiBiLnN0YXR1cykge1xuICAgICAgICAgICAgcmV0dXJuIC0xO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIDA7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIHN0YXRpYyBjb21wYXJlQnlQcmlvcml0eShhOiBUYXNrLCBiOiBUYXNrKTogbnVtYmVyIHtcbiAgICAgICAgcmV0dXJuIGEucHJpb3JpdHkubG9jYWxlQ29tcGFyZShiLnByaW9yaXR5KTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHN0YXRpYyBjb21wYXJlQnlTdGFydERhdGUoYTogVGFzaywgYjogVGFzayk6IC0xIHwgMCB8IDEge1xuICAgICAgICByZXR1cm4gU29ydC5jb21wYXJlQnlE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cm4gMTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoYS5pc0JlZm9yZShiKSkge1xuICAgICAgICAgICAgICAgIHJldHVybiAtMTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIDA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gMDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByaXZhdGUgc3RhdGljIGNvbXBhcmVCeVBhdGgoYTogVGFzaywgYjogVGFzayk6IC0xIHwgMCB8IDEge1xuICAgICAgICBpZiAoYS5wYXRoIDwgYi5wYXRoKSB7XG4gICAgICAgICAgICByZXR1cm4gLTE7XG4gICAgICAgIH0gZWxzZSBpZiAoYS5wYXRoID4gYi5wYXRoKSB7XG4gICAgICAgICAgICByZXR1cm4gMTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiAwO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQ29tcGFyZSB0aGUgZGVzY3JpcHRpb24gYnkgaG93IGl0IGlzIHJlbmRlcmVkIGluIG1hcmtkb3duLlxuICAgICAqXG4gICAgICogRG9lcyBub3QgdXNlIHRoZSBNYXJrZG93blJlbmRlcmVyLCBidXQgdHJpZXMgdG8gbWF0Y2ggcmVnZXhlcyBpbnN0ZWFkXG4gICAgICogaW4gb3JkZXIgdG8gYmUgc2ltcGxlciwgZmFzdGVyLCBhbmQgbm90IGFzeW5jLlxuICAgICAqL1xuICAgIHByaXZhdGUgc3RhdGljIGNvbXBhcmVCeURlc2NyaXB0aW9uKGE6IFRhc2ssIGI6IFRhc2spIHtcbiAgICAgICAgcmV0dXJuIFNvcnQuY2xlYW5EZXNjcmlwdGlvbihhLmRlc2NyaXB0aW9uKS5sb2NhbGVDb21wYXJlKFxuICAgICAgICAgICAgU29ydC5jbGVhbkRlc2NyaXB0aW9uKGIuZGVzY3JpcHRpb24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ICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY29udGVudC5hcHBlbmRDaGlsZCh0YXNrTGlzdCk7XG4gICAgICAgICAgICBpZiAoIXRoaXMucXVlcnkubGF5b3V0T3B0aW9ucy5oaWRlVGFza0NvdW50KSB7XG4gICAgICAgICAgICAgICAgY29udGVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICB0ZXh0OiBgJHt0YXNrc0NvdW50fSB0YXNrJHt0YXNrc0NvdW50ICE9PSAxID8gJ3MnIDogJyd9YCxcbiAgICAgICAgICAgICAgICAgICAgY2xzOiAndGFza3MtY291bnQnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2UgaWYgKHRoaXMucXVlcnkuZXJyb3IgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgY29udGVudC5zZXRUZXh0KGBUYXNrcyBxdWVyeTogJHt0aGlzLnF1ZXJ5LmVycm9yfWApO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgY29udGVudC5zZXRUZXh0KCdMb2FkaW5nIFRhc2tzIC4uLicpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5jb250YWluZXJFbC5maXJzdENoaWxkPy5yZXBsYWNlV2l0aChjb250ZW50KTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGFzeW5jIGNyZWF0ZVRhc2tzTGlzdCh7XG4gICAgICAgIHRhc2tzLFxuICAgICAgICBjb250ZW50LFxuICAgIH06IHtcbiAgICAgICAgdGFza3M6IFRhc2tbXTtcbiAgICAgICAgY29udGVudDogSFRNTERpdkVsZW1lbnQ7XG4gICAgfSk6IFByb21pc2U8eyB0YXNrTGlzdDogSFRNTFVMaXN0RWxlbWVudDsgdGFza3NDb3VudDogbnVtYmVyIH0+IHtcbiAgICAgICAgdGhpcy5xdWVyeS5maWx0ZXJzLmZvckVhY2goKGZpbHRlcikgPT4ge1xuICAgICAgICAgICAgdGFza3MgPSB0YX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UTUxTcGFuRWxlbWVudCwgdGFzazogVGFzaykge1xuICAgICAgICBjb25zdCBlZGl0VGFza1BlbmNpbCA9IHBvc3RJbmZvLmNyZWF0ZUVsKCdhJywge1xuICAgICAgICAgICAgY2xzOiAndGFza3MtZWRpdCcsXG4gICAgICAgIH0pO1xuICAgICAgICBlZGl0VGFza1BlbmNpbC5vbkNsaWNrRXZlbnQoKGV2ZW50OiBNb3VzZUV2ZW50KSA9PiB7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuXG4gICAgICAgICAgICBjb25zdCBvblN1Ym1pdCA9ICh1cGRhdGVkVGFza3M6IFRhc2tbXSk6IHZvaWQgPT4ge1xuICAgICAgICAgICAgICAgIHJlcGxhY2VUYXNrV2l0aFRhc2tzKHtcbiAgICAgICAgICAgICAgICAgICAgb3JpZ2luYWxUYXNrOiB0YXNrLFxuICAgICAgICAgICAgICAgICAgICBuZXdUYXNrczogdXBkYXRlZFRhc2tzLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgLy8gTmVlZCB0byBjcmVhdGUgYSBuZXcgaW5zdGFuY2UgZXZlcnkgdGltZSwgYXMgY3Vyc29yL3Rhc2sgY2FuIGNoYW5nZS5cbiAgICAgICAgICAgIGNvbnN0IHRhc2tNb2RhbCA9IG5ldyBUYXNrTW9kYWwoe1xuICAgICAgICAgICAgICAgIGFwcDogdGhpcy5hcHAsXG4gICAgICAgICAgICAgICAgdGFzayxcbiAgICAgICAgICAgICAgICBvblN1Ym1pdCxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgdGFza01vZGFsLm9wZW4oKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBhZGRCYWNrbGlua3MoXG4gICAgICAgIHBvc3RJbmZvOiBIVE1MU3BhbkVsZW1lbnQsXG4gICAgICAgIGZpbGVOYW1lOiBzdHJpbmcsXG4gICAgICAgIHRhc2s6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BvZiBvYnNpZGlhbi4nLFxuICAgICAgICB9KTtcblxuICAgICAgICBuZXcgU2V0dGluZyhjb250YWluZXJFbClcbiAgICAgICAgICAgIC5zZXROYW1lKCdHbG9iYWwgdGFzayBmaWx0ZXInKVxuICAgICAgICAgICAgLnNldERlc2MoXG4gICAgICAgICAgICAgICAgJ1RoZSBnbG9iYWwgZmlsdGVyIHdpbGwgYmUgYXBwbGllZCB0byBhbGwgY2hlY2tsaXN0IGl0ZW1zLicsXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAuYWRkVGV4dCgodGV4dCkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IHNldHRpbmdzID0gZ2V0U2V0dGluZ3MoKTtcblxuICAgICAgICAgICAgICAgIHRleHQuc2V0UGxhY2Vob2xkZXIoJyN0YXNrJylcbiAgICAgICAgICAgICAgICAgICAgLnNldFZhbHVlKHNldHRpbmdzLmdsb2JhbEZpbHRlcilcbiAgICAgICAgICAgICAgICAgICAgLm9uQ2hhbmdlKGFzeW5jICh2YWx1ZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgdXBkYXRlU2V0dGluZ3MoeyBnbG9iYWxGaWx0ZXI6IHZhbHVlIH0pO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBhd2FpdCB0aGlzLnBsdWdpbi5zYXZlU2V0dGluZ3MoKTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgY29udGFpbmVyRWwuY3JlYXRlRWwoJ2RpdicsIHtcbiAgICAgICAgICAgIGNsczogJ3NldHRpbmctaXRlbS1kZXNjcmlwdGlvbicsXG4gICAgICAgICAgICB0ZXh0OlxuICAgICAgICAgICAgICAgICdUaGUgZ2xvYmFsIGZpbHRlciB3aWxsIGJlIGFwcGxpZWQgdG8gYWxsIGNoZWNrbGlzdCBpdGVtcyB0byBmaWx0ZXIgb3V0IFwibm9uLXRhc2tcIiBjaGVja2xpc3QgaXRlbXMuXFxu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