/** * @preserve * https://github.com/GregBee2/xassist-date.git Version 1.2.2. * Copyright 2018 Gregory Beirens. * Created on Tue, 17 Apr 2018 10:42:12 GMT. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@xassist/xassist-object")):"function"==typeof define&&define.amd?define(["exports","@xassist/xassist-object"],e):e(t.xa=t.xa||{},t.xa)}(this,function(t,e){"use strict";function a(t){return+((t<0?"-.":".")+t.toString().split(".")[1])||0}var i=[{key:"year",re:/(-?\d*(?:[.,]\d*)?)(?:[ ]?y|Y|years?|Years?)(?![a-zA-z])/g},{key:"month",re:/(-?\d*(?:[.,]\d*)?)(?:[ ]?M|months?|Months?)(?![a-zA-z])/g},{key:"day",re:/(-?\d*(?:[.,]\d*)?)(?:[ ]?d|D|days?|Days?)(?![a-zA-z])/g},{key:"hour",re:/(-?\d*(?:[.,]\d*)?)(?:[ ]?h|H|hours?|Hours?)(?![a-zA-z])/g},{key:"minute",re:/(-?\d*(?:[.,]\d*)?)(?:[ ]?m|mins?|Mins?|minutes?|Minutes?)(?![a-zA-z])/g},{key:"second",re:/(-?\d*(?:[.,]\d*)?)(?:[ ]?s|S|secs?|Secs?|seconds?|Seconds?)(?![a-zA-z])/g},{key:"millisecond",re:/(-?\d*(?:[.,]\d*)?)(?:[ ]?ms|millis?|m[sS]ecs?|m[sS]econds?|milli[sS]ecs?|milli[sS]econds?)(?![a-zA-z])/g}];var d=function(){return new n([].slice.call(arguments))};function n(t){this.year=0,this.month=0,this.day=0,this.hour=0,this.minute=0,this.second=0,this.millisecond=0,this.normalized=!1,this.init(t)}n.prototype._keyOrder=["year","month","day","hour","minute","second","millisecond"],n.prototype.init=function(t){1===t.length&&("string"==typeof t[0]?function(t,e){for(var n,r=0,o=i.length;r