@js-joda/core 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- //! @version @js-joda/core - 4.2.0
1
+ //! @version @js-joda/core - 4.2.1
2
2
  //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
5
- var JSJoda=function(e){"use strict";function t(e,t,n){var i=2<arguments.length&&void 0!==n?n:Error;function a(e){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,t&&t.apply(this,arguments),this.toString=function(){return"".concat(this.name,": ").concat(this.message)}}return(a.prototype=Object.create(i.prototype)).name=e,a.prototype.constructor=a}var T=t("DateTimeException",function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=e||this.name;null!==t&&t instanceof Error&&(n+="\n-------\nCaused by: ".concat(t.stack,"\n-------\n"));this.message=n}),v=t("DateTimeParseException",function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,a=e||this.name;a+=": ".concat(t,", at index: ").concat(n),null!==i&&i instanceof Error&&(a+="\n-------\nCaused by: ".concat(i.stack,"\n-------\n"));this.message=a,this.parsedString=function(){return t},this.errorIndex=function(){return n}}),u=t("UnsupportedTemporalTypeException",null,T),O=t("ArithmeticException"),c=t("IllegalArgumentException"),r=t("IllegalStateException"),s=t("NullPointerException");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function S(i){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=d(i);if(a){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return E(this,e)}}function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function k(e,t,n){if(!e)throw n?new n(t):new Error(t)}function N(e,t){if(null==e)throw new s("".concat(t," must not be null"));return e}function D(e,t,n){if(!(e instanceof t))throw new c("".concat(n," must be an instance of ").concat(t.name?t.name:t).concat(e&&e.constructor&&e.constructor.name?", but is ".concat(e.constructor.name):""));return e}function o(e){throw new TypeError('abstract method "'.concat(e,'" is not implemented'))}var l,h=Object.freeze({__proto__:null,assert:k,requireNonNull:N,requireInstance:D,abstractMethodFail:o}),A=9007199254740991,w=-9007199254740991,M=(y(g,null,[{key:"intDiv",value:function(e,t){var n=e/t;return n=g.roundDown(n),g.safeZero(n)}},{key:"intMod",value:function(e,t){var n=e-g.intDiv(e,t)*t;return n=g.roundDown(n),g.safeZero(n)}},{key:"roundDown",value:function(e){return e<0?Math.ceil(e):Math.floor(e)}},{key:"floorDiv",value:function(e,t){var n=Math.floor(e/t);return g.safeZero(n)}},{key:"floorMod",value:function(e,t){var n=e-g.floorDiv(e,t)*t;return g.safeZero(n)}},{key:"safeAdd",value:function(e,t){if(g.verifyInt(e),g.verifyInt(t),0===e)return g.safeZero(t);if(0===t)return g.safeZero(e);var n=g.safeToInt(e+t);if(n===e||n===t)throw new O("Invalid addition beyond MAX_SAFE_INTEGER!");return n}},{key:"safeSubtract",value:function(e,t){return g.verifyInt(e),g.verifyInt(t),0===e&&0===t?0:0===e?g.safeZero(-1*t):0===t?g.safeZero(e):g.safeToInt(e-t)}},{key:"safeMultiply",value:function(e,t){if(g.verifyInt(e),g.verifyInt(t),1===e)return g.safeZero(t);if(1===t)return g.safeZero(e);if(0===e||0===t)return 0;var n=g.safeToInt(e*t);if(n/t!==e||e===w&&-1===t||t===w&&-1===e)throw new O("Multiplication overflows: ".concat(e," * ").concat(t));return n}},{key:"parseInt",value:(l=function(e){var t=parseInt(e);return g.safeToInt(t)},R.toString=function(){return l.toString()},R)},{key:"safeToInt",value:function(e){return g.verifyInt(e),g.safeZero(e)}},{key:"verifyInt",value:function(e){if(null==e)throw new O("Invalid value: '".concat(e,"', using null or undefined as argument"));if(isNaN(e))throw new O("Invalid int value, using NaN as argument");if(e%1!=0)throw new O("Invalid value: '".concat(e,"' is a float"));if(A<e||e<w)throw new O("Calculation overflows an int: ".concat(e))}},{key:"safeZero",value:function(e){return 0===e?0:+e}},{key:"compareNumbers",value:function(e,t){return e<t?-1:t<e?1:0}},{key:"smi",value:function(e){return e>>>1&1073741824|3221225471&e}},{key:"hash",value:function(e){if(e!=e||e===1/0)return 0;for(var t=e;4294967295<e;)t^=e/=4294967295;return g.smi(t)}},{key:"hashCode",value:function(){for(var e=17,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var a=0,r=n;a<r.length;a++){var s=r[a];e=(e<<5)-e+g.hash(s)}return g.hash(e)}}]),g);function g(){f(this,g)}function R(e){return l.apply(this,arguments)}M.MAX_SAFE_INTEGER=A,M.MIN_SAFE_INTEGER=w;var I=(y(F,[{key:"equals",value:function(e){return this===e}},{key:"toString",value:function(){return this._name}},{key:"toJSON",value:function(){return this.toString()}}]),F);function F(e){f(this,F),this._name=e}var Y=(y(C,[{key:"get",value:function(e){o("get")}},{key:"units",value:function(){o("units")}},{key:"addTo",value:function(e){o("addTo")}},{key:"subtractFrom",value:function(e){o("subtractFrom")}}]),C);function C(){f(this,C)}var L=(y(P,[{key:"duration",value:function(){o("duration")}},{key:"isDurationEstimated",value:function(){o("isDurationEstimated")}},{key:"isDateBased",value:function(){o("isDateBased")}},{key:"isTimeBased",value:function(){o("isTimeBased")}},{key:"isSupportedBy",value:function(e){o("isSupportedBy")}},{key:"addTo",value:function(e,t){o("addTo")}},{key:"between",value:function(e,t){o("between")}}]),P);function P(){f(this,P)}var U=function(){p(d,Y);var i=S(d);function d(e,t){var n;return f(this,d),(n=i.call(this))._seconds=M.safeToInt(e),n._nanos=M.safeToInt(t),n}return y(d,[{key:"get",value:function(e){if(e===b.SECONDS)return this._seconds;if(e===b.NANOS)return this._nanos;throw new u("Unsupported unit: ".concat(e))}},{key:"units",value:function(){return[b.SECONDS,b.NANOS]}},{key:"isZero",value:function(){return 0===this._seconds&&0===this._nanos}},{key:"isNegative",value:function(){return this._seconds<0}},{key:"seconds",value:function(){return this._seconds}},{key:"nano",value:function(){return this._nanos}},{key:"withSeconds",value:function(e){return d._create(e,this._nanos)}},{key:"withNanos",value:function(e){return q.NANO_OF_SECOND.checkValidIntValue(e),d._create(this._seconds,e)}},{key:"plusDuration",value:function(e){return N(e,"duration"),this.plus(e.seconds(),e.nano())}},{key:"plus",value:function(e,t){return 1===arguments.length?this.plusDuration(e):2===arguments.length&&t instanceof L?this.plusAmountUnit(e,t):this.plusSecondsNanos(e,t)}},{key:"plusAmountUnit",value:function(e,t){if(N(e,"amountToAdd"),N(t,"unit"),t===b.DAYS)return this.plusSecondsNanos(M.safeMultiply(e,Xt.SECONDS_PER_DAY),0);if(t.isDurationEstimated())throw new u("Unit must not have an estimated duration");if(0===e)return this;if(t instanceof b){switch(t){case b.NANOS:return this.plusNanos(e);case b.MICROS:return this.plusSecondsNanos(1e3*M.intDiv(e,1e9),1e3*M.intMod(e,1e9));case b.MILLIS:return this.plusMillis(e);case b.SECONDS:return this.plusSeconds(e)}return this.plusSecondsNanos(M.safeMultiply(t.duration().seconds(),e),0)}var n=t.duration().multipliedBy(e);return this.plusSecondsNanos(n.seconds(),n.nano())}},{key:"plusDays",value:function(e){return this.plusSecondsNanos(M.safeMultiply(e,Xt.SECONDS_PER_DAY),0)}},{key:"plusHours",value:function(e){return this.plusSecondsNanos(M.safeMultiply(e,Xt.SECONDS_PER_HOUR),0)}},{key:"plusMinutes",value:function(e){return this.plusSecondsNanos(M.safeMultiply(e,Xt.SECONDS_PER_MINUTE),0)}},{key:"plusSeconds",value:function(e){return this.plusSecondsNanos(e,0)}},{key:"plusMillis",value:function(e){return this.plusSecondsNanos(M.intDiv(e,1e3),1e6*M.intMod(e,1e3))}},{key:"plusNanos",value:function(e){return this.plusSecondsNanos(0,e)}},{key:"plusSecondsNanos",value:function(e,t){if(N(e,"secondsToAdd"),N(t,"nanosToAdd"),0===e&&0===t)return this;var n=M.safeAdd(this._seconds,e);n=M.safeAdd(n,M.intDiv(t,Xt.NANOS_PER_SECOND)),t=M.intMod(t,Xt.NANOS_PER_SECOND);var i=M.safeAdd(this._nanos,t);return d.ofSeconds(n,i)}},{key:"minus",value:function(e,t){return 1===arguments.length?this.minusDuration(e):this.minusAmountUnit(e,t)}},{key:"minusDuration",value:function(e){N(e,"duration");var t=e.seconds(),n=e.nano();return t===w?this.plus(A,-n):this.plus(-t,-n)}},{key:"minusAmountUnit",value:function(e,t){return N(e,"amountToSubtract"),N(t,"unit"),e===w?this.plusAmountUnit(A,t):this.plusAmountUnit(-e,t)}},{key:"minusDays",value:function(e){return e===w?this.plusDays(A):this.plusDays(-e)}},{key:"minusHours",value:function(e){return e===w?this.plusHours(A):this.plusHours(-e)}},{key:"minusMinutes",value:function(e){return e===w?this.plusMinutes(A):this.plusMinutes(-e)}},{key:"minusSeconds",value:function(e){return e===w?this.plusSeconds(A):this.plusSeconds(-e)}},{key:"minusMillis",value:function(e){return e===w?this.plusMillis(A):this.plusMillis(-e)}},{key:"minusNanos",value:function(e){return e===w?this.plusNanos(A):this.plusNanos(-e)}},{key:"multipliedBy",value:function(e){if(0===e)return d.ZERO;if(1===e)return this;var t=M.safeMultiply(this._seconds,e),n=M.safeMultiply(this._nanos,e);return t+=M.intDiv(n,Xt.NANOS_PER_SECOND),n=M.intMod(n,Xt.NANOS_PER_SECOND),d.ofSeconds(t,n)}},{key:"dividedBy",value:function(e){if(0===e)throw new O("Cannot divide by zero");if(1===e)return this;var t=M.intDiv(this._seconds,e),n=M.roundDown((this._seconds/e-t)*Xt.NANOS_PER_SECOND),i=M.intDiv(this._nanos,e);return d.ofSeconds(t,i=n+i)}},{key:"negated",value:function(){return this.multipliedBy(-1)}},{key:"abs",value:function(){return this.isNegative()?this.negated():this}},{key:"addTo",value:function(e){return N(e,"temporal"),0!==this._seconds&&(e=e.plus(this._seconds,b.SECONDS)),0!==this._nanos&&(e=e.plus(this._nanos,b.NANOS)),e}},{key:"subtractFrom",value:function(e){return N(e,"temporal"),0!==this._seconds&&(e=e.minus(this._seconds,b.SECONDS)),0!==this._nanos&&(e=e.minus(this._nanos,b.NANOS)),e}},{key:"toDays",value:function(){return M.intDiv(this._seconds,Xt.SECONDS_PER_DAY)}},{key:"toHours",value:function(){return M.intDiv(this._seconds,Xt.SECONDS_PER_HOUR)}},{key:"toMinutes",value:function(){return M.intDiv(this._seconds,Xt.SECONDS_PER_MINUTE)}},{key:"toMillis",value:function(){var e=Math.round(M.safeMultiply(this._seconds,1e3));return e=M.safeAdd(e,M.intDiv(this._nanos,1e6))}},{key:"toNanos",value:function(){var e=M.safeMultiply(this._seconds,Xt.NANOS_PER_SECOND);return e=M.safeAdd(e,this._nanos)}},{key:"compareTo",value:function(e){N(e,"otherDuration"),D(e,d,"otherDuration");var t=M.compareNumbers(this._seconds,e.seconds());return 0!==t?t:this._nanos-e.nano()}},{key:"equals",value:function(e){return this===e||e instanceof d&&(this.seconds()===e.seconds()&&this.nano()===e.nano())}},{key:"toString",value:function(){if(this===d.ZERO)return"PT0S";var e,t=M.intDiv(this._seconds,Xt.SECONDS_PER_HOUR),n=M.intDiv(M.intMod(this._seconds,Xt.SECONDS_PER_HOUR),Xt.SECONDS_PER_MINUTE),i=M.intMod(this._seconds,Xt.SECONDS_PER_MINUTE),a="PT";if(0!==t&&(a+="".concat(t,"H")),0!==n&&(a+="".concat(n,"M")),0===i&&0===this._nanos&&2<a.length)return a;if(i<0&&0<this._nanos?a+=-1===i?"-0":i+1:a+=i,0<this._nanos)for(a+=".",a+=e=(e="".concat(i<0?2*Xt.NANOS_PER_SECOND-this._nanos:Xt.NANOS_PER_SECOND+this._nanos)).slice(1,e.length);"0"===a.charAt(a.length-1);)a=a.slice(0,a.length-1);return a+="S"}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"ofDays",value:function(e){return d._create(M.safeMultiply(e,Xt.SECONDS_PER_DAY),0)}},{key:"ofHours",value:function(e){return d._create(M.safeMultiply(e,Xt.SECONDS_PER_HOUR),0)}},{key:"ofMinutes",value:function(e){return d._create(M.safeMultiply(e,Xt.SECONDS_PER_MINUTE),0)}},{key:"ofSeconds",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,i=M.safeAdd(e,M.floorDiv(n,Xt.NANOS_PER_SECOND)),a=M.floorMod(n,Xt.NANOS_PER_SECOND);return d._create(i,a)}},{key:"ofMillis",value:function(e){var t=M.intDiv(e,1e3),n=M.intMod(e,1e3);return n<0&&(n+=1e3,t--),d._create(t,1e6*n)}},{key:"ofNanos",value:function(e){var t=M.intDiv(e,Xt.NANOS_PER_SECOND),n=M.intMod(e,Xt.NANOS_PER_SECOND);return n<0&&(n+=Xt.NANOS_PER_SECOND,t--),this._create(t,n)}},{key:"of",value:function(e,t){return d.ZERO.plus(e,t)}},{key:"from",value:function(t){N(t,"amount"),D(t,Y);var n=d.ZERO;return t.units().forEach(function(e){n=n.plus(t.get(e),e)}),n}},{key:"between",value:function(e,t){N(e,"startInclusive"),N(t,"endExclusive");var n=e.until(t,b.SECONDS),i=0;if(e.isSupported(q.NANO_OF_SECOND)&&t.isSupported(q.NANO_OF_SECOND))try{var a=e.getLong(q.NANO_OF_SECOND);if(i=t.getLong(q.NANO_OF_SECOND)-a,0<n&&i<0)i+=Xt.NANOS_PER_SECOND;else if(n<0&&0<i)i-=Xt.NANOS_PER_SECOND;else if(0===n&&0!==i){var r=t.with(q.NANO_OF_SECOND,a);n=e.until(r,b.SECONDS)}}catch(e){}return this.ofSeconds(n,i)}},{key:"parse",value:function(t){N(t,"text");var e=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i").exec(t);if(null!==e&&"T"===e[3]==!1){var n="-"===e[1],i=e[2],a=e[4],r=e[5],s=e[6],o=e[7];if(null!=i||null!=a||null!=r||null!=s){var u=d._parseNumber(t,i,Xt.SECONDS_PER_DAY,"days"),l=d._parseNumber(t,a,Xt.SECONDS_PER_HOUR,"hours"),h=d._parseNumber(t,r,Xt.SECONDS_PER_MINUTE,"minutes"),c=d._parseNumber(t,s,1,"seconds"),f=null!=s&&"-"===s.charAt(0),_=d._parseFraction(t,o,f?-1:1);try{return d._create(n,u,l,h,c,_)}catch(e){throw new v("Text cannot be parsed to a Duration: overflow",t,0,e)}}}throw new v("Text cannot be parsed to a Duration",t,0)}},{key:"_parseNumber",value:function(t,e,n,i){if(null==e)return 0;try{return"+"===e[0]&&(e=e.substring(1)),M.safeMultiply(parseFloat(e),n)}catch(e){throw new v("Text cannot be parsed to a Duration: ".concat(i),t,0,e)}}},{key:"_parseFraction",value:function(e,t,n){return null==t||0===t.length?0:(t="".concat(t,"000000000").substring(0,9),parseFloat(t)*n)}},{key:"_create",value:function(e,t,n,i,a,r){return arguments.length<=2?d._createSecondsNanos(e,t):d._createNegateDaysHoursMinutesSecondsNanos(e,t,n,i,a,r)}},{key:"_createNegateDaysHoursMinutesSecondsNanos",value:function(e,t,n,i,a,r){var s=M.safeAdd(t,M.safeAdd(n,M.safeAdd(i,a)));return e?d.ofSeconds(s,r).negated():d.ofSeconds(s,r)}},{key:"_createSecondsNanos",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,i=1<arguments.length&&void 0!==t?t:0;return 0===n&&0===i?d.ZERO:new d(n,i)}}]),d}();var V=function e(){f(this,e)};var b=function(){p(a,L);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._name=e,n._duration=t,n}return y(a,[{key:"duration",value:function(){return this._duration}},{key:"isDurationEstimated",value:function(){return this.isDateBased()||this===a.FOREVER}},{key:"isDateBased",value:function(){return 0<=this.compareTo(a.DAYS)&&this!==a.FOREVER}},{key:"isTimeBased",value:function(){return this.compareTo(a.DAYS)<0}},{key:"isSupportedBy",value:function(t){if(this===a.FOREVER)return!1;try{return t.plus(1,this),!0}catch(e){try{return t.plus(-1,this),!0}catch(e){return!1}}}},{key:"addTo",value:function(e,t){return e.plus(t,this)}},{key:"between",value:function(e,t){return e.until(t,this)}},{key:"toString",value:function(){return this._name}},{key:"compareTo",value:function(e){return this.duration().compareTo(e.duration())}}]),a}();var H=(y(W,[{key:"isDateBased",value:function(){o("isDateBased")}},{key:"isTimeBased",value:function(){o("isTimeBased")}},{key:"baseUnit",value:function(){o("baseUnit")}},{key:"rangeUnit",value:function(){o("rangeUnit")}},{key:"range",value:function(){o("range")}},{key:"rangeRefinedBy",value:function(e){o("rangeRefinedBy")}},{key:"getFrom",value:function(e){o("getFrom")}},{key:"adjustInto",value:function(e,t){o("adjustInto")}},{key:"isSupportedBy",value:function(e){o("isSupportedBy")}},{key:"displayName",value:function(){o("displayName")}},{key:"equals",value:function(e){o("equals")}},{key:"name",value:function(){o("name")}}]),W);function W(){f(this,W)}var x=(y(B,[{key:"isFixed",value:function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest}},{key:"minimum",value:function(){return this._minSmallest}},{key:"largestMinimum",value:function(){return this._minLargest}},{key:"maximum",value:function(){return this._maxLargest}},{key:"smallestMaximum",value:function(){return this._maxSmallest}},{key:"isValidValue",value:function(e){return this.minimum()<=e&&e<=this.maximum()}},{key:"checkValidValue",value:function(e,t){return this.isValidValue(e)?e:k(!1,null!=t?"Invalid value for ".concat(t," (valid values ").concat(this.toString(),"): ").concat(e):"Invalid value (valid values ".concat(this.toString(),"): ").concat(e),T)}},{key:"checkValidIntValue",value:function(e,t){if(!1===this.isValidIntValue(e))throw new T("Invalid int value for ".concat(t,": ").concat(e));return e}},{key:"isValidIntValue",value:function(e){return this.isIntValue()&&this.isValidValue(e)}},{key:"isIntValue",value:function(){return this.minimum()>=M.MIN_SAFE_INTEGER&&this.maximum()<=M.MAX_SAFE_INTEGER}},{key:"equals",value:function(e){return e===this||e instanceof B&&this._minSmallest===e._minSmallest&&this._minLargest===e._minLargest&&this._maxSmallest===e._maxSmallest&&this._maxLargest===e._maxLargest}},{key:"hashCode",value:function(){return M.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)}},{key:"toString",value:function(){var e=this.minimum()+(this.minimum()!==this.largestMinimum()?"/".concat(this.largestMinimum()):"");return e+=" - ",e+=this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/".concat(this.maximum()):"")}}],[{key:"of",value:function(e,t,n,i){return 2===arguments.length?new B(e,e,t,t):3===arguments.length?new B(e,e,t,n):4===arguments.length?new B(e,t,n,i):k(!1,"Invalid number of arguments ".concat(arguments.length),c)}}]),B);function B(e,t,n,i){f(this,B),k(!(t<e),"Smallest minimum value '".concat(e,"' must be less than largest minimum value '").concat(t,"'"),c),k(!(i<n),"Smallest maximum value '".concat(n,"' must be less than largest maximum value '").concat(i,"'"),c),k(!(i<t),"Minimum value '".concat(t,"' must be less than maximum value '").concat(i,"'"),c),this._minSmallest=e,this._minLargest=t,this._maxLargest=i,this._maxSmallest=n}var q=function(){p(s,H);var r=S(s);function s(e,t,n,i){var a;return f(this,s),(a=r.call(this))._name=e,a._baseUnit=t,a._rangeUnit=n,a._range=i,a}return y(s,[{key:"name",value:function(){return this._name}},{key:"baseUnit",value:function(){return this._baseUnit}},{key:"rangeUnit",value:function(){return this._rangeUnit}},{key:"range",value:function(){return this._range}},{key:"displayName",value:function(){return this.toString()}},{key:"checkValidValue",value:function(e){return this.range().checkValidValue(e,this)}},{key:"checkValidIntValue",value:function(e){return this.range().checkValidIntValue(e,this)}},{key:"isDateBased",value:function(){return this===s.DAY_OF_WEEK||this===s.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===s.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===s.DAY_OF_MONTH||this===s.DAY_OF_YEAR||this===s.EPOCH_DAY||this===s.ALIGNED_WEEK_OF_MONTH||this===s.ALIGNED_WEEK_OF_YEAR||this===s.MONTH_OF_YEAR||this===s.YEAR_OF_ERA||this===s.YEAR||this===s.ERA}},{key:"isTimeBased",value:function(){return this===s.NANO_OF_SECOND||this===s.NANO_OF_DAY||this===s.MICRO_OF_SECOND||this===s.MICRO_OF_DAY||this===s.MILLI_OF_SECOND||this===s.MILLI_OF_DAY||this===s.SECOND_OF_MINUTE||this===s.SECOND_OF_DAY||this===s.MINUTE_OF_HOUR||this===s.MINUTE_OF_DAY||this===s.HOUR_OF_AMPM||this===s.CLOCK_HOUR_OF_AMPM||this===s.HOUR_OF_DAY||this===s.CLOCK_HOUR_OF_DAY||this===s.AMPM_OF_DAY}},{key:"rangeRefinedBy",value:function(e){return e.range(this)}},{key:"getFrom",value:function(e){return e.getLong(this)}},{key:"toString",value:function(){return this.name()}},{key:"equals",value:function(e){return this===e}},{key:"adjustInto",value:function(e,t){return e.with(this,t)}},{key:"isSupportedBy",value:function(e){return e.isSupported(this)}}],[{key:"byName",value:function(e){for(var t in s)if(s[t]&&s[t]instanceof s&&s[t].name()===e)return s[t]}}]),s}();var Z=(y(z,null,[{key:"zoneId",value:function(){return z.ZONE_ID}},{key:"chronology",value:function(){return z.CHRONO}},{key:"precision",value:function(){return z.PRECISION}},{key:"zone",value:function(){return z.ZONE}},{key:"offset",value:function(){return z.OFFSET}},{key:"localDate",value:function(){return z.LOCAL_DATE}},{key:"localTime",value:function(){return z.LOCAL_TIME}}]),z);function z(){f(this,z)}var K=(y(j,[{key:"query",value:function(e){return e===Z.zoneId()||e===Z.chronology()||e===Z.precision()?null:e.queryFrom(this)}},{key:"get",value:function(e){return this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){o("getLong")}},{key:"range",value:function(e){if(e instanceof q){if(this.isSupported(e))return e.range();throw new u("Unsupported field: ".concat(e))}return e.rangeRefinedBy(this)}},{key:"isSupported",value:function(e){o("isSupported")}}]),j);function j(){f(this,j)}var G=function(){p(t,I);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"queryFrom",value:function(e){o("queryFrom")}}]),t}();function X(e,t){var n=function(){p(t,G);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return t}();return n.prototype.queryFrom=t,new n(e)}var J,Q=function(){p(a,K);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._ordinal=e,n._name=t,n}return y(a,[{key:"ordinal",value:function(){return this._ordinal}},{key:"name",value:function(){return this._name}},{key:"value",value:function(){return this._ordinal+1}},{key:"displayName",value:function(e,t){throw new c("Pattern using (localized) text not implemented yet!")}},{key:"isSupported",value:function(e){return e instanceof q?e===q.DAY_OF_WEEK:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){if(e===q.DAY_OF_WEEK)return e.range();if(e instanceof q)throw new u("Unsupported field: ".concat(e));return e.rangeRefinedBy(this)}},{key:"get",value:function(e){return e===q.DAY_OF_WEEK?this.value():this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(e===q.DAY_OF_WEEK)return this.value();if(e instanceof q)throw new u("Unsupported field: ".concat(e));return e.getFrom(this)}},{key:"plus",value:function(e){var t=M.floorMod(e,7);return J[M.floorMod(this._ordinal+(t+7),7)]}},{key:"minus",value:function(e){return this.plus(-1*M.floorMod(e,7))}},{key:"query",value:function(e){return e===Z.precision()?b.DAYS:e===Z.localDate()||e===Z.localTime()||e===Z.chronology()||e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:(k(null!=e,"query",s),e.queryFrom(this))}},{key:"adjustInto",value:function(e){return N(e,"temporal"),e.with(q.DAY_OF_WEEK,this.value())}},{key:"equals",value:function(e){return this===e}},{key:"toString",value:function(){return this._name}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,a,"other"),this._ordinal-e._ordinal}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"values",value:function(){return J.slice()}},{key:"valueOf",value:function(e){for(var t=0;t<J.length&&J[t].name()!==e;t++);return a.of(t+1)}},{key:"of",value:function(e){if(e<1||7<e)throw new T("Invalid value for DayOfWeek: ".concat(e));return J[e-1]}},{key:"from",value:function(t){if(k(null!=t,"temporal",s),t instanceof a)return t;try{return a.of(t.get(q.DAY_OF_WEEK))}catch(e){throw e instanceof T?new T("Unable to obtain DayOfWeek from TemporalAccessor: ".concat(t,", type ").concat(null!=t.constructor?t.constructor.name:""),e):e}}}]),a}();var $,ee=function(){p(a,K);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._value=M.safeToInt(e),n._name=t,n}return y(a,[{key:"value",value:function(){return this._value}},{key:"ordinal",value:function(){return this._value-1}},{key:"name",value:function(){return this._name}},{key:"displayName",value:function(e,t){throw new c("Pattern using (localized) text not implemented yet!")}},{key:"isSupported",value:function(e){return null!==e&&(e instanceof q?e===q.MONTH_OF_YEAR:null!=e&&e.isSupportedBy(this))}},{key:"get",value:function(e){return e===q.MONTH_OF_YEAR?this.value():this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(e===q.MONTH_OF_YEAR)return this.value();if(e instanceof q)throw new u("Unsupported field: ".concat(e));return e.getFrom(this)}},{key:"plus",value:function(e){var t=M.intMod(e,12)+12,n=M.intMod(this.value()+t,12);return a.of(n=0===n?12:n)}},{key:"minus",value:function(e){return this.plus(-1*M.intMod(e,12))}},{key:"length",value:function(e){switch(this){case a.FEBRUARY:return e?29:28;case a.APRIL:case a.JUNE:case a.SEPTEMBER:case a.NOVEMBER:return 30;default:return 31}}},{key:"minLength",value:function(){switch(this){case a.FEBRUARY:return 28;case a.APRIL:case a.JUNE:case a.SEPTEMBER:case a.NOVEMBER:return 30;default:return 31}}},{key:"maxLength",value:function(){switch(this){case a.FEBRUARY:return 29;case a.APRIL:case a.JUNE:case a.SEPTEMBER:case a.NOVEMBER:return 30;default:return 31}}},{key:"firstDayOfYear",value:function(e){var t=e?1:0;switch(this){case a.JANUARY:return 1;case a.FEBRUARY:return 32;case a.MARCH:return 60+t;case a.APRIL:return 91+t;case a.MAY:return 121+t;case a.JUNE:return 152+t;case a.JULY:return 182+t;case a.AUGUST:return 213+t;case a.SEPTEMBER:return 244+t;case a.OCTOBER:return 274+t;case a.NOVEMBER:return 305+t;case a.DECEMBER:default:return 335+t}}},{key:"firstMonthOfQuarter",value:function(){switch(this){case a.JANUARY:case a.FEBRUARY:case a.MARCH:return a.JANUARY;case a.APRIL:case a.MAY:case a.JUNE:return a.APRIL;case a.JULY:case a.AUGUST:case a.SEPTEMBER:return a.JULY;case a.OCTOBER:case a.NOVEMBER:case a.DECEMBER:default:return a.OCTOBER}}},{key:"query",value:function(e){return k(null!=e,"query() parameter must not be null",T),e===Z.chronology()?Wt.INSTANCE:e===Z.precision()?b.MONTHS:m(d(a.prototype),"query",this).call(this,e)}},{key:"toString",value:function(){switch(this){case a.JANUARY:return"JANUARY";case a.FEBRUARY:return"FEBRUARY";case a.MARCH:return"MARCH";case a.APRIL:return"APRIL";case a.MAY:return"MAY";case a.JUNE:return"JUNE";case a.JULY:return"JULY";case a.AUGUST:return"AUGUST";case a.SEPTEMBER:return"SEPTEMBER";case a.OCTOBER:return"OCTOBER";case a.NOVEMBER:return"NOVEMBER";case a.DECEMBER:return"DECEMBER";default:return"unknown Month, value: ".concat(this.value())}}},{key:"toJSON",value:function(){return this.toString()}},{key:"adjustInto",value:function(e){return e.with(q.MONTH_OF_YEAR,this.value())}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,a,"other"),this._value-e._value}},{key:"equals",value:function(e){return this===e}}],[{key:"valueOf",value:function(e){for(var t=0;t<$.length&&$[t].name()!==e;t++);return a.of(t+1)}},{key:"values",value:function(){return $.slice()}},{key:"of",value:function(e){return(e<1||12<e)&&k(!1,"Invalid value for MonthOfYear: ".concat(e),T),$[e-1]}},{key:"from",value:function(t){if(t instanceof a)return t;try{return a.of(t.get(q.MONTH_OF_YEAR))}catch(e){throw new T("Unable to obtain Month from TemporalAccessor: ".concat(t," of type ").concat(t&&null!=t.constructor?t.constructor.name:""),e)}}}]),a}();var te=/([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/,ne=function(){p(c,Y);var o=S(c);function c(e,t,n){var i;f(this,c),i=o.call(this);var a=M.safeToInt(e),r=M.safeToInt(t),s=M.safeToInt(n);return 0===a&&0===r&&0===s?(c.ZERO||(i._years=a,i._months=r,i._days=s,c.ZERO=_(i)),E(i,c.ZERO)):(i._years=a,i._months=r,i._days=s,i)}return y(c,[{key:"units",value:function(){return[b.YEARS,b.MONTHS,b.DAYS]}},{key:"chronology",value:function(){return Wt.INSTANCE}},{key:"get",value:function(e){if(e===b.YEARS)return this._years;if(e===b.MONTHS)return this._months;if(e===b.DAYS)return this._days;throw new u("Unsupported unit: ".concat(e))}},{key:"isZero",value:function(){return this===c.ZERO}},{key:"isNegative",value:function(){return this._years<0||this._months<0||this._days<0}},{key:"years",value:function(){return this._years}},{key:"months",value:function(){return this._months}},{key:"days",value:function(){return this._days}},{key:"withYears",value:function(e){return e===this._years?this:c.create(e,this._months,this._days)}},{key:"withMonths",value:function(e){return e===this._months?this:c.create(this._years,e,this._days)}},{key:"withDays",value:function(e){return e===this._days?this:c.create(this._years,this._months,e)}},{key:"plus",value:function(e){var t=c.from(e);return c.create(M.safeAdd(this._years,t._years),M.safeAdd(this._months,t._months),M.safeAdd(this._days,t._days))}},{key:"plusYears",value:function(e){return 0===e?this:c.create(M.safeToInt(M.safeAdd(this._years,e)),this._months,this._days)}},{key:"plusMonths",value:function(e){return 0===e?this:c.create(this._years,M.safeToInt(M.safeAdd(this._months,e)),this._days)}},{key:"plusDays",value:function(e){return 0===e?this:c.create(this._years,this._months,M.safeToInt(M.safeAdd(this._days,e)))}},{key:"minus",value:function(e){var t=c.from(e);return c.create(M.safeSubtract(this._years,t._years),M.safeSubtract(this._months,t._months),M.safeSubtract(this._days,t._days))}},{key:"minusYears",value:function(e){return this.plusYears(-1*e)}},{key:"minusMonths",value:function(e){return this.plusMonths(-1*e)}},{key:"minusDays",value:function(e){return this.plusDays(-1*e)}},{key:"multipliedBy",value:function(e){return this===c.ZERO||1===e?this:c.create(M.safeMultiply(this._years,e),M.safeMultiply(this._months,e),M.safeMultiply(this._days,e))}},{key:"negated",value:function(){return this.multipliedBy(-1)}},{key:"normalized",value:function(){var e=this.toTotalMonths(),t=M.intDiv(e,12),n=M.intMod(e,12);return t===this._years&&n===this._months?this:c.create(M.safeToInt(t),n,this._days)}},{key:"toTotalMonths",value:function(){return 12*this._years+this._months}},{key:"addTo",value:function(e){return N(e,"temporal"),0!==this._years?e=0!==this._months?e.plus(this.toTotalMonths(),b.MONTHS):e.plus(this._years,b.YEARS):0!==this._months&&(e=e.plus(this._months,b.MONTHS)),0!==this._days&&(e=e.plus(this._days,b.DAYS)),e}},{key:"subtractFrom",value:function(e){return N(e,"temporal"),0!==this._years?e=0!==this._months?e.minus(this.toTotalMonths(),b.MONTHS):e.minus(this._years,b.YEARS):0!==this._months&&(e=e.minus(this._months,b.MONTHS)),0!==this._days&&(e=e.minus(this._days,b.DAYS)),e}},{key:"equals",value:function(e){if(this===e)return!0;if(e instanceof c){var t=e;return this._years===t._years&&this._months===t._months&&this._days===t._days}return!1}},{key:"hashCode",value:function(){return M.hashCode(this._years,this._months,this._days)}},{key:"toString",value:function(){if(this===c.ZERO)return"P0D";var e="P";return 0!==this._years&&(e+="".concat(this._years,"Y")),0!==this._months&&(e+="".concat(this._months,"M")),0!==this._days&&(e+="".concat(this._days,"D")),e}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"ofYears",value:function(e){return c.create(e,0,0)}},{key:"ofMonths",value:function(e){return c.create(0,e,0)}},{key:"ofWeeks",value:function(e){return c.create(0,0,M.safeMultiply(e,7))}},{key:"ofDays",value:function(e){return c.create(0,0,e)}},{key:"of",value:function(e,t,n){return c.create(e,t,n)}},{key:"from",value:function(e){if(e instanceof c)return e;N(e,"amount");for(var t=0,n=0,i=0,a=e.units(),r=0;r<a.length;r++){var s=a[r],o=e.get(s);if(s===b.YEARS)t=M.safeToInt(o);else if(s===b.MONTHS)n=M.safeToInt(o);else{if(s!==b.DAYS)throw new T("Unit must be Years, Months or Days, but was ".concat(s));i=M.safeToInt(o)}}return c.create(t,n,i)}},{key:"between",value:function(e,t){return N(e,"startDate"),N(t,"endDate"),D(e,Kt,"startDate"),D(t,Kt,"endDate"),e.until(t)}},{key:"parse",value:function(t){N(t,"text");try{return c._parse(t)}catch(e){throw e instanceof O?new v("Text cannot be parsed to a Period",t,0,e):e}}},{key:"_parse",value:function(e){var t=te.exec(e);if(null!=t){var n="-"===t[1]?-1:1,i=t[2],a=t[3],r=t[4],s=t[5];if(null!=i||null!=a||null!=r||null!=s){var o=c._parseNumber(e,i,n),u=c._parseNumber(e,a,n),l=c._parseNumber(e,r,n),h=c._parseNumber(e,s,n);return h=M.safeAdd(h,M.safeMultiply(l,7)),c.create(o,u,h)}}throw new v("Text cannot be parsed to a Period",e,0)}},{key:"_parseNumber",value:function(e,t,n){if(null==t)return 0;var i=M.parseInt(t);return M.safeMultiply(i,n)}},{key:"create",value:function(e,t,n){return new c(e,t,n)}}]),c}();var ie=(y(ae,[{key:"getIndex",value:function(){return this._index}},{key:"setIndex",value:function(e){this._index=e}},{key:"getErrorIndex",value:function(){return this._errorIndex}},{key:"setErrorIndex",value:function(e){this._errorIndex=e}}]),ae);function ae(e){f(this,ae),this._index=e,this._errorIndex=-1}var re=(y(se,[{key:"putAll",value:function(e){for(var t in e._map)this._map[t]=e._map[t];return this}},{key:"containsKey",value:function(e){return this._map.hasOwnProperty(e.name())&&void 0!==this.get(e)}},{key:"get",value:function(e){return this._map[e.name()]}},{key:"put",value:function(e,t){return this.set(e,t)}},{key:"set",value:function(e,t){return this._map[e.name()]=t,this}},{key:"retainAll",value:function(e){for(var t={},n=0;n<e.length;n++){var i=e[n].name();t[i]=this._map[i]}return this._map=t,this}},{key:"remove",value:function(e){var t=e.name(),n=this._map[t];return this._map[t]=void 0,n}},{key:"keySet",value:function(){return this._map}},{key:"clear",value:function(){this._map={}}}]),se);function se(){f(this,se),this._map={}}var oe=function(){p(t,I);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return t}();oe.STRICT=new oe("STRICT"),oe.SMART=new oe("SMART"),oe.LENIENT=new oe("LENIENT");var ue=function(){p(t,K);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"isSupported",value:function(e){o("isSupported")}},{key:"minus",value:function(e,t){return arguments.length<2?this._minusAmount(e):this._minusUnit(e,t)}},{key:"_minusAmount",value:function(e){return N(e,"amount"),D(e,Y,"amount"),e.subtractFrom(this)}},{key:"_minusUnit",value:function(e,t){return N(e,"amountToSubtract"),N(t,"unit"),D(t,L,"unit"),this._plusUnit(-e,t)}},{key:"plus",value:function(e,t){return arguments.length<2?this._plusAmount(e):this._plusUnit(e,t)}},{key:"_plusAmount",value:function(e){return N(e,"amount"),D(e,Y,"amount"),e.addTo(this)}},{key:"_plusUnit",value:function(e,t){o("_plusUnit")}},{key:"until",value:function(e,t){o("until")}},{key:"with",value:function(e,t){return arguments.length<2?this._withAdjuster(e):this._withField(e,t)}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),k("function"==typeof e.adjustInto,"adjuster must be a TemporalAdjuster",c),e.adjustInto(this)}},{key:"_withField",value:function(e,t){o("_withField")}}]),t}(),le=function(){p(t,ue);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"isSupported",value:function(e){return e instanceof q?e.isDateBased():e instanceof b?e.isDateBased():null!=e&&e.isSupportedBy(this)}},{key:"query",value:function(e){return e===Z.chronology()?this.chronology():e===Z.precision()?b.DAYS:e===Z.localDate()?Kt.ofEpochDay(this.toEpochDay()):e===Z.localTime()||e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:m(d(t.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return e.with(q.EPOCH_DAY,this.toEpochDay())}},{key:"format",value:function(e){return N(e,"formatter"),D(e,Tt,"formatter"),e.format(this)}}]),t}(),he=(y(ce,null,[{key:"startsWith",value:function(e,t){return 0===e.indexOf(t)}},{key:"hashCode",value:function(e){var t=e.length;if(0===t)return 0;for(var n=0,i=0;i<t;i++)n=(n<<5)-n+e.charCodeAt(i),n|=0;return M.smi(n)}}]),ce);function ce(){f(this,ce)}var fe=(y(_e,[{key:"id",value:function(){o("ZoneId.id")}},{key:"rules",value:function(){o("ZoneId.rules")}},{key:"normalized",value:function(){var e=this.rules();return e.isFixedOffset()?e.offset(Jt.EPOCH):this}},{key:"equals",value:function(e){return this===e||e instanceof _e&&this.id()===e.id()}},{key:"hashCode",value:function(){return he.hashCode(this.id())}},{key:"toString",value:function(){return this.id()}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"systemDefault",value:function(){throw new T("not supported operation")}},{key:"getAvailableZoneIds",value:function(){throw new T("not supported operation")}},{key:"of",value:function(e){throw new T("not supported operation".concat(e))}},{key:"ofOffset",value:function(e,t){throw new T("not supported operation".concat(e).concat(t))}},{key:"from",value:function(e){throw new T("not supported operation".concat(e))}}]),_e);function _e(){f(this,_e)}var de=(y(ve,[{key:"isFixedOffset",value:function(){o("ZoneRules.isFixedOffset")}},{key:"offset",value:function(e){return e instanceof Jt?this.offsetOfInstant(e):this.offsetOfLocalDateTime(e)}},{key:"offsetOfInstant",value:function(e){o("ZoneRules.offsetInstant")}},{key:"offsetOfEpochMilli",value:function(e){o("ZoneRules.offsetOfEpochMilli")}},{key:"offsetOfLocalDateTime",value:function(e){o("ZoneRules.offsetLocalDateTime")}},{key:"validOffsets",value:function(e){o("ZoneRules.validOffsets")}},{key:"transition",value:function(e){o("ZoneRules.transition")}},{key:"standardOffset",value:function(e){o("ZoneRules.standardOffset")}},{key:"daylightSavings",value:function(e){o("ZoneRules.daylightSavings")}},{key:"isDaylightSavings",value:function(e){o("ZoneRules.isDaylightSavings")}},{key:"isValidOffset",value:function(e,t){o("ZoneRules.isValidOffset")}},{key:"nextTransition",value:function(e){o("ZoneRules.nextTransition")}},{key:"previousTransition",value:function(e){o("ZoneRules.previousTransition")}},{key:"transitions",value:function(){o("ZoneRules.transitions")}},{key:"transitionRules",value:function(){o("ZoneRules.transitionRules")}},{key:"toString",value:function(){o("ZoneRules.toString")}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"of",value:function(e){return N(e,"offset"),new ye(e)}}]),ve);function ve(){f(this,ve)}var ye=function(){p(i,de);var n=S(i);function i(e){var t;return f(this,i),(t=n.call(this))._offset=e,t}return y(i,[{key:"isFixedOffset",value:function(){return!0}},{key:"offsetOfInstant",value:function(){return this._offset}},{key:"offsetOfEpochMilli",value:function(){return this._offset}},{key:"offsetOfLocalDateTime",value:function(){return this._offset}},{key:"validOffsets",value:function(){return[this._offset]}},{key:"transition",value:function(){return null}},{key:"standardOffset",value:function(){return this._offset}},{key:"daylightSavings",value:function(){return U.ZERO}},{key:"isDaylightSavings",value:function(){return!1}},{key:"isValidOffset",value:function(e,t){return this._offset.equals(t)}},{key:"nextTransition",value:function(){return null}},{key:"previousTransition",value:function(){return null}},{key:"transitions",value:function(){return[]}},{key:"transitionRules",value:function(){return[]}},{key:"equals",value:function(e){return this===e||e instanceof i&&this._offset.equals(e._offset)}},{key:"toString",value:function(){return"FixedRules:".concat(this._offset.toString())}}]),i}(),pe={},Oe={},Ee=function(){p(s,fe);var n=S(s);function s(e){var t;return f(this,s),t=n.call(this),s._validateTotalSeconds(e),t._totalSeconds=M.safeToInt(e),t._rules=de.of(_(t)),t._id=s._buildId(e),t}return y(s,[{key:"totalSeconds",value:function(){return this._totalSeconds}},{key:"id",value:function(){return this._id}},{key:"rules",value:function(){return this._rules}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){if(e===q.OFFSET_SECONDS)return this._totalSeconds;if(e instanceof q)throw new T("Unsupported field: ".concat(e));return e.getFrom(this)}},{key:"query",value:function(e){return N(e,"query"),e===Z.offset()||e===Z.zone()?this:e===Z.localDate()||e===Z.localTime()||e===Z.precision()||e===Z.chronology()||e===Z.zoneId()?null:e.queryFrom(this)}},{key:"adjustInto",value:function(e){return e.with(q.OFFSET_SECONDS,this._totalSeconds)}},{key:"compareTo",value:function(e){return N(e,"other"),e._totalSeconds-this._totalSeconds}},{key:"equals",value:function(e){return this===e||e instanceof s&&this._totalSeconds===e._totalSeconds}},{key:"hashCode",value:function(){return this._totalSeconds}},{key:"toString",value:function(){return this._id}}],[{key:"_buildId",value:function(e){if(0===e)return"Z";var t=Math.abs(e),n=M.intDiv(t,Xt.SECONDS_PER_HOUR),i=M.intMod(M.intDiv(t,Xt.SECONDS_PER_MINUTE),Xt.MINUTES_PER_HOUR),a="".concat(e<0?"-":"+").concat(n<10?"0":"").concat(n).concat(i<10?":0":":").concat(i),r=M.intMod(t,Xt.SECONDS_PER_MINUTE);return 0!==r&&(a+=(r<10?":0":":")+r),a}},{key:"_validateTotalSeconds",value:function(e){if(Math.abs(e)>s.MAX_SECONDS)throw new T("Zone offset not in valid range: -18:00 to +18:00")}},{key:"_validate",value:function(e,t,n){if(e<-18||18<e)throw new T("Zone offset hours not in valid range: value ".concat(e," is not in the range -18 to 18"));if(0<e){if(t<0||n<0)throw new T("Zone offset minutes and seconds must be positive because hours is positive")}else if(e<0){if(0<t||0<n)throw new T("Zone offset minutes and seconds must be negative because hours is negative")}else if(0<t&&n<0||t<0&&0<n)throw new T("Zone offset minutes and seconds must have the same sign");if(59<Math.abs(t))throw new T("Zone offset minutes not in valid range: abs(value) ".concat(Math.abs(t)," is not in the range 0 to 59"));if(59<Math.abs(n))throw new T("Zone offset seconds not in valid range: abs(value) ".concat(Math.abs(n)," is not in the range 0 to 59"));if(18===Math.abs(e)&&(0<Math.abs(t)||0<Math.abs(n)))throw new T("Zone offset not in valid range: -18:00 to +18:00")}},{key:"of",value:function(e){N(e,"offsetId");var t,n,i,a=Oe[e];if(null!=a)return a;switch(e.length){case 2:e="".concat(e[0],"0").concat(e[1]);case 3:t=s._parseNumber(e,1,!1),i=n=0;break;case 5:t=s._parseNumber(e,1,!1),n=s._parseNumber(e,3,!1),i=0;break;case 6:t=s._parseNumber(e,1,!1),n=s._parseNumber(e,4,!0),i=0;break;case 7:t=s._parseNumber(e,1,!1),n=s._parseNumber(e,3,!1),i=s._parseNumber(e,5,!1);break;case 9:t=s._parseNumber(e,1,!1),n=s._parseNumber(e,4,!0),i=s._parseNumber(e,7,!0);break;default:throw new T("Invalid ID for ZoneOffset, invalid format: ".concat(e))}var r=e[0];if("+"!==r&&"-"!==r)throw new T("Invalid ID for ZoneOffset, plus/minus not found when expected: ".concat(e));return"-"===r?s.ofHoursMinutesSeconds(-t,-n,-i):s.ofHoursMinutesSeconds(t,n,i)}},{key:"_parseNumber",value:function(e,t,n){if(n&&":"!==e[t-1])throw new T("Invalid ID for ZoneOffset, colon not found when expected: ".concat(e));var i=e[t],a=e[t+1];if(i<"0"||"9"<i||a<"0"||"9"<a)throw new T("Invalid ID for ZoneOffset, non numeric characters found: ".concat(e));return 10*(i.charCodeAt(0)-48)+(a.charCodeAt(0)-48)}},{key:"ofHours",value:function(e){return s.ofHoursMinutesSeconds(e,0,0)}},{key:"ofHoursMinutes",value:function(e,t){return s.ofHoursMinutesSeconds(e,t,0)}},{key:"ofHoursMinutesSeconds",value:function(e,t,n){s._validate(e,t,n);var i=e*Xt.SECONDS_PER_HOUR+t*Xt.SECONDS_PER_MINUTE+n;return s.ofTotalSeconds(i)}},{key:"ofTotalMinutes",value:function(e){var t=e*Xt.SECONDS_PER_MINUTE;return s.ofTotalSeconds(t)}},{key:"ofTotalSeconds",value:function(e){if(e%(15*Xt.SECONDS_PER_MINUTE)!=0)return new s(e);var t=e,n=pe[t];return null==n&&(n=new s(e),pe[t]=n,Oe[n.id()]=n),n}}]),s}();var Se=function(){p(i,K);var t=S(i);function i(){var e;return f(this,i),(e=t.call(this)).fieldValues=new re,e.chrono=null,e.zone=null,e.date=null,e.time=null,e.leapSecond=!1,e.excessDays=null,e}return y(i,[{key:"getFieldValue0",value:function(e){return this.fieldValues.get(e)}},{key:"_addFieldValue",value:function(e,t){N(e,"field");var n=this.getFieldValue0(e);if(null!=n&&n!==t)throw new T("Conflict found: ".concat(e," ").concat(n," differs from ").concat(e," ").concat(t,": ").concat(this));return this._putFieldValue0(e,t)}},{key:"_putFieldValue0",value:function(e,t){return this.fieldValues.put(e,t),this}},{key:"resolve",value:function(e,t){return null!=t&&this.fieldValues.retainAll(t),this._mergeDate(e),this._mergeTime(e),this._resolveTimeInferZeroes(e),null!=this.excessDays&&!1===this.excessDays.isZero()&&null!=this.date&&null!=this.time&&(this.date=this.date.plus(this.excessDays),this.excessDays=ne.ZERO),this._resolveInstant(),this}},{key:"_mergeDate",value:function(e){this._checkDate(Wt.INSTANCE.resolveDate(this.fieldValues,e))}},{key:"_checkDate",value:function(e){if(null!=e)for(var t in this._addObject(e),this.fieldValues.keySet()){var n=q.byName(t);if(n&&void 0!==this.fieldValues.get(n)&&n.isDateBased()){var i=void 0;try{i=e.getLong(n)}catch(e){if(e instanceof T)continue;throw e}var a=this.fieldValues.get(n);if(i!==a)throw new T("Conflict found: Field ".concat(n," ").concat(i," differs from ").concat(n," ").concat(a," derived from ").concat(e))}}}},{key:"_mergeTime",value:function(e){if(this.fieldValues.containsKey(q.CLOCK_HOUR_OF_DAY)){var t=this.fieldValues.remove(q.CLOCK_HOUR_OF_DAY);e!==oe.LENIENT&&(e===oe.SMART&&0===t||q.CLOCK_HOUR_OF_DAY.checkValidValue(t)),this._addFieldValue(q.HOUR_OF_DAY,24===t?0:t)}if(this.fieldValues.containsKey(q.CLOCK_HOUR_OF_AMPM)){var n=this.fieldValues.remove(q.CLOCK_HOUR_OF_AMPM);e!==oe.LENIENT&&(e===oe.SMART&&0===n||q.CLOCK_HOUR_OF_AMPM.checkValidValue(n)),this._addFieldValue(q.HOUR_OF_AMPM,12===n?0:n)}if(e!==oe.LENIENT&&(this.fieldValues.containsKey(q.AMPM_OF_DAY)&&q.AMPM_OF_DAY.checkValidValue(this.fieldValues.get(q.AMPM_OF_DAY)),this.fieldValues.containsKey(q.HOUR_OF_AMPM)&&q.HOUR_OF_AMPM.checkValidValue(this.fieldValues.get(q.HOUR_OF_AMPM))),this.fieldValues.containsKey(q.AMPM_OF_DAY)&&this.fieldValues.containsKey(q.HOUR_OF_AMPM)){var i=this.fieldValues.remove(q.AMPM_OF_DAY),a=this.fieldValues.remove(q.HOUR_OF_AMPM);this._addFieldValue(q.HOUR_OF_DAY,12*i+a)}if(this.fieldValues.containsKey(q.NANO_OF_DAY)){var r=this.fieldValues.remove(q.NANO_OF_DAY);e!==oe.LENIENT&&q.NANO_OF_DAY.checkValidValue(r),this._addFieldValue(q.SECOND_OF_DAY,M.intDiv(r,1e9)),this._addFieldValue(q.NANO_OF_SECOND,M.intMod(r,1e9))}if(this.fieldValues.containsKey(q.MICRO_OF_DAY)){var s=this.fieldValues.remove(q.MICRO_OF_DAY);e!==oe.LENIENT&&q.MICRO_OF_DAY.checkValidValue(s),this._addFieldValue(q.SECOND_OF_DAY,M.intDiv(s,1e6)),this._addFieldValue(q.MICRO_OF_SECOND,M.intMod(s,1e6))}if(this.fieldValues.containsKey(q.MILLI_OF_DAY)){var o=this.fieldValues.remove(q.MILLI_OF_DAY);e!==oe.LENIENT&&q.MILLI_OF_DAY.checkValidValue(o),this._addFieldValue(q.SECOND_OF_DAY,M.intDiv(o,1e3)),this._addFieldValue(q.MILLI_OF_SECOND,M.intMod(o,1e3))}if(this.fieldValues.containsKey(q.SECOND_OF_DAY)){var u=this.fieldValues.remove(q.SECOND_OF_DAY);e!==oe.LENIENT&&q.SECOND_OF_DAY.checkValidValue(u),this._addFieldValue(q.HOUR_OF_DAY,M.intDiv(u,3600)),this._addFieldValue(q.MINUTE_OF_HOUR,M.intMod(M.intDiv(u,60),60)),this._addFieldValue(q.SECOND_OF_MINUTE,M.intMod(u,60))}if(this.fieldValues.containsKey(q.MINUTE_OF_DAY)){var l=this.fieldValues.remove(q.MINUTE_OF_DAY);e!==oe.LENIENT&&q.MINUTE_OF_DAY.checkValidValue(l),this._addFieldValue(q.HOUR_OF_DAY,M.intDiv(l,60)),this._addFieldValue(q.MINUTE_OF_HOUR,M.intMod(l,60))}if(e!==oe.LENIENT&&(this.fieldValues.containsKey(q.MILLI_OF_SECOND)&&q.MILLI_OF_SECOND.checkValidValue(this.fieldValues.get(q.MILLI_OF_SECOND)),this.fieldValues.containsKey(q.MICRO_OF_SECOND)&&q.MICRO_OF_SECOND.checkValidValue(this.fieldValues.get(q.MICRO_OF_SECOND))),this.fieldValues.containsKey(q.MILLI_OF_SECOND)&&this.fieldValues.containsKey(q.MICRO_OF_SECOND)){var h=this.fieldValues.remove(q.MILLI_OF_SECOND),c=this.fieldValues.get(q.MICRO_OF_SECOND);this._putFieldValue0(q.MICRO_OF_SECOND,1e3*h+M.intMod(c,1e3))}if(this.fieldValues.containsKey(q.MICRO_OF_SECOND)&&this.fieldValues.containsKey(q.NANO_OF_SECOND)){var f=this.fieldValues.get(q.NANO_OF_SECOND);this._putFieldValue0(q.MICRO_OF_SECOND,M.intDiv(f,1e3)),this.fieldValues.remove(q.MICRO_OF_SECOND)}if(this.fieldValues.containsKey(q.MILLI_OF_SECOND)&&this.fieldValues.containsKey(q.NANO_OF_SECOND)){var _=this.fieldValues.get(q.NANO_OF_SECOND);this._putFieldValue0(q.MILLI_OF_SECOND,M.intDiv(_,1e6)),this.fieldValues.remove(q.MILLI_OF_SECOND)}if(this.fieldValues.containsKey(q.MICRO_OF_SECOND)){var d=this.fieldValues.remove(q.MICRO_OF_SECOND);this._putFieldValue0(q.NANO_OF_SECOND,1e3*d)}else if(this.fieldValues.containsKey(q.MILLI_OF_SECOND)){var v=this.fieldValues.remove(q.MILLI_OF_SECOND);this._putFieldValue0(q.NANO_OF_SECOND,1e6*v)}}},{key:"_resolveTimeInferZeroes",value:function(e){var t=this.fieldValues.get(q.HOUR_OF_DAY),n=this.fieldValues.get(q.MINUTE_OF_HOUR),i=this.fieldValues.get(q.SECOND_OF_MINUTE),a=this.fieldValues.get(q.NANO_OF_SECOND);if(null!=t&&(null!=n||null==i&&null==a)&&(null==n||null!=i||null==a)){if(e!==oe.LENIENT){if(null!=t){e!==oe.SMART||24!==t||null!=n&&0!==n||null!=i&&0!==i||null!=a&&0!==a||(t=0,this.excessDays=ne.ofDays(1));var r=q.HOUR_OF_DAY.checkValidIntValue(t);if(null!=n){var s=q.MINUTE_OF_HOUR.checkValidIntValue(n);if(null!=i){var o=q.SECOND_OF_MINUTE.checkValidIntValue(i);if(null!=a){var u=q.NANO_OF_SECOND.checkValidIntValue(a);this._addObject(Xt.of(r,s,o,u))}else this._addObject(Xt.of(r,s,o))}else null==a&&this._addObject(Xt.of(r,s))}else null==i&&null==a&&this._addObject(Xt.of(r,0))}}else if(null!=t){var l=t;if(null!=n)if(null!=i){null==a&&(a=0);var h=M.safeMultiply(l,36e11);h=M.safeAdd(h,M.safeMultiply(n,6e10)),h=M.safeAdd(h,M.safeMultiply(i,1e9)),h=M.safeAdd(h,a);var c=M.floorDiv(h,864e11),f=M.floorMod(h,864e11);this._addObject(Xt.ofNanoOfDay(f)),this.excessDays=ne.ofDays(c)}else{var _=M.safeMultiply(l,3600);_=M.safeAdd(_,M.safeMultiply(n,60));var d=M.floorDiv(_,86400),v=M.floorMod(_,86400);this._addObject(Xt.ofSecondOfDay(v)),this.excessDays=ne.ofDays(d)}else{var y=M.safeToInt(M.floorDiv(l,24));l=M.floorMod(l,24),this._addObject(Xt.of(l,0)),this.excessDays=ne.ofDays(y)}}this.fieldValues.remove(q.HOUR_OF_DAY),this.fieldValues.remove(q.MINUTE_OF_HOUR),this.fieldValues.remove(q.SECOND_OF_MINUTE),this.fieldValues.remove(q.NANO_OF_SECOND)}}},{key:"_addObject",value:function(e){e instanceof le?this.date=e:e instanceof Xt&&(this.time=e)}},{key:"_resolveInstant",value:function(){if(null!=this.date&&null!=this.time){var e=this.fieldValues.get(q.OFFSET_SECONDS);if(null!=e){var t=Ee.ofTotalSeconds(e),n=this.date.atTime(this.time).atZone(t).getLong(q.INSTANT_SECONDS);this.fieldValues.put(q.INSTANT_SECONDS,n)}else if(null!=this.zone){var i=this.date.atTime(this.time).atZone(this.zone).getLong(q.INSTANT_SECONDS);this.fieldValues.put(q.INSTANT_SECONDS,i)}}}},{key:"build",value:function(e){return e.queryFrom(this)}},{key:"isSupported",value:function(e){return null!=e&&(this.fieldValues.containsKey(e)&&void 0!==this.fieldValues.get(e)||null!=this.date&&this.date.isSupported(e)||null!=this.time&&this.time.isSupported(e))}},{key:"getLong",value:function(e){N(e,"field");var t=this.getFieldValue0(e);if(null!=t)return t;if(null!=this.date&&this.date.isSupported(e))return this.date.getLong(e);if(null!=this.time&&this.time.isSupported(e))return this.time.getLong(e);throw new T("Field not found: ".concat(e))}},{key:"query",value:function(e){return e===Z.zoneId()?this.zone:e===Z.chronology()?this.chrono:e===Z.localDate()?null!=this.date?Kt.from(this.date):null:e===Z.localTime()?this.time:e===Z.zone()||e===Z.offset()?e.queryFrom(this):e===Z.precision()?null:e.queryFrom(this)}}],[{key:"create",value:function(e,t){var n=new i;return n._addFieldValue(e,t),n}}]),i}(),me=(y(ke,[{key:"_constructorParam",value:function(e,t,n){this._locale=e,this._symbols=t,this._overrideChronology=n}},{key:"_constructorFormatter",value:function(e){this._locale=e.locale(),this._symbols=e.decimalStyle(),this._overrideChronology=e.chronology()}},{key:"_constructorSelf",value:function(e){this._locale=e._locale,this._symbols=e._symbols,this._overrideChronology=e._overrideChronology,this._overrideZone=e._overrideZone,this._caseSensitive=e._caseSensitive,this._strict=e._strict,this._parsed=[new Ne(this)]}},{key:"copy",value:function(){return new ke(this)}},{key:"symbols",value:function(){return this._symbols}},{key:"isStrict",value:function(){return this._strict}},{key:"setStrict",value:function(e){this._strict=e}},{key:"locale",value:function(){return this._locale}},{key:"setLocale",value:function(e){this._locale=e}},{key:"startOptional",value:function(){this._parsed.push(this.currentParsed().copy())}},{key:"endOptional",value:function(e){e?this._parsed.splice(this._parsed.length-2,1):this._parsed.splice(this._parsed.length-1,1)}},{key:"isCaseSensitive",value:function(){return this._caseSensitive}},{key:"setCaseSensitive",value:function(e){this._caseSensitive=e}},{key:"subSequenceEquals",value:function(e,t,n,i,a){if(t+a>e.length||i+a>n.length)return!1;this.isCaseSensitive()||(e=e.toLowerCase(),n=n.toLowerCase());for(var r=0;r<a;r++)if(e[t+r]!==n[i+r])return!1;return!0}},{key:"charEquals",value:function(e,t){return this.isCaseSensitive()?e===t:this.charEqualsIgnoreCase(e,t)}},{key:"charEqualsIgnoreCase",value:function(e,t){return e===t||e.toLowerCase()===t.toLowerCase()}},{key:"setParsedField",value:function(e,t,n,i){var a=this.currentParsed().fieldValues,r=a.get(e);return a.set(e,t),null!=r&&r!==t?~n:i}},{key:"setParsedZone",value:function(e){N(e,"zone"),this.currentParsed().zone=e}},{key:"getParsed",value:function(e){return this.currentParsed().fieldValues.get(e)}},{key:"toParsed",value:function(){return this.currentParsed()}},{key:"currentParsed",value:function(){return this._parsed[this._parsed.length-1]}},{key:"setParsedLeapSecond",value:function(){this.currentParsed().leapSecond=!0}},{key:"getEffectiveChronology",value:function(){var e=this.currentParsed().chrono;return null==e&&null==(e=this._overrideChronology)&&(e=Wt.INSTANCE),e}}]),ke);function ke(){if(f(this,ke),1===arguments.length){if(arguments[0]instanceof ke)return void this._constructorSelf.apply(this,arguments);this._constructorFormatter.apply(this,arguments)}else this._constructorParam.apply(this,arguments);this._caseSensitive=!0,this._strict=!0,this._parsed=[new Ne(this)]}var Ne=function(){p(i,ue);var n=S(i);function i(e){var t;return f(this,i),(t=n.call(this)).chrono=null,t.zone=null,t.fieldValues=new re,t.leapSecond=!1,t.dateTimeParseContext=e,t}return y(i,[{key:"copy",value:function(){var e=new i;return e.chrono=this.chrono,e.zone=this.zone,e.fieldValues.putAll(this.fieldValues),e.leapSecond=this.leapSecond,e.dateTimeParseContext=this.dateTimeParseContext,e}},{key:"toString",value:function(){return"".concat(this.fieldValues,", ").concat(this.chrono,", ").concat(this.zone)}},{key:"isSupported",value:function(e){return this.fieldValues.containsKey(e)}},{key:"get",value:function(e){var t=this.fieldValues.get(e);return k(null!=t),t}},{key:"query",value:function(e){return e===Z.chronology()?this.chrono:e===Z.zoneId()||e===Z.zone()?this.zone:m(d(i.prototype),"query",this).call(this,e)}},{key:"toBuilder",value:function(){var e=new Se;return e.fieldValues.putAll(this.fieldValues),e.chrono=this.dateTimeParseContext.getEffectiveChronology(),null!=this.zone?e.zone=this.zone:e.zone=this.overrideZone,e.leapSecond=this.leapSecond,e.excessDays=this.excessDays,e}}]),i}(),De=(y(Ae,[{key:"symbols",value:function(){return this._symbols}},{key:"startOptional",value:function(){this._optional++}},{key:"endOptional",value:function(){this._optional--}},{key:"getValueQuery",value:function(e){var t=this._temporal.query(e);if(null==t&&0===this._optional)throw new T("Unable to extract value: ".concat(this._temporal));return t}},{key:"getValue",value:function(e){try{return this._temporal.getLong(e)}catch(e){if(e instanceof T&&0<this._optional)return null;throw e}}},{key:"temporal",value:function(){return this._temporal}},{key:"locale",value:function(){return this._locale}},{key:"setDateTime",value:function(e){this._temporal=e}},{key:"setLocale",value:function(e){this._locale=e}}],[{key:"adjust",value:function(e,t){return e}}]),Ae);function Ae(e,t,n){f(this,Ae),2===arguments.length&&t instanceof Tt?(this._temporal=Ae.adjust(e,t),this._locale=t.locale(),this._symbols=t.decimalStyle()):(this._temporal=e,this._locale=t,this._symbols=n),this._optional=0}var Te={},we=[0,90,181,273,0,91,182,274],Me=function(){p(s,H);var e=S(s);function s(){return f(this,s),e.apply(this,arguments)}return y(s,[{key:"isDateBased",value:function(){return!0}},{key:"isTimeBased",value:function(){return!1}},{key:"_isIso",value:function(){return!0}},{key:"displayName",value:function(){return this.toString()}},{key:"resolve",value:function(){return null}},{key:"name",value:function(){return this.toString()}}],[{key:"_getWeekRangeByLocalDate",value:function(e){var t=s._getWeekBasedYear(e);return x.of(1,s._getWeekRangeByYear(t))}},{key:"_getWeekRangeByYear",value:function(e){var t=Kt.of(e,1,1);return t.dayOfWeek()===Q.THURSDAY||t.dayOfWeek()===Q.WEDNESDAY&&t.isLeapYear()?53:52}},{key:"_getWeek",value:function(e){var t=e.dayOfWeek().ordinal(),n=e.dayOfYear()-1,i=3-t+n,a=i-7*M.intDiv(i,7)-3;if(a<-3&&(a+=7),n<a)return s._getWeekRangeByLocalDate(e.withDayOfYear(180).minusYears(1)).maximum();var r=M.intDiv(n-a,7)+1;return 53===r&&!1===(-3===a||-2===a&&e.isLeapYear())&&(r=1),r}},{key:"_getWeekBasedYear",value:function(e){var t=e.year(),n=e.dayOfYear();if(n<=3)n-e.dayOfWeek().ordinal()<-2&&t--;else if(363<=n){var i=e.dayOfWeek().ordinal();0<=(n=n-363-(e.isLeapYear()?1:0))-i&&t++}return t}}]),s}(),ge=function(){p(t,Me);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"toString",value:function(){return"DayOfQuarter"}},{key:"baseUnit",value:function(){return b.DAYS}},{key:"rangeUnit",value:function(){return be}},{key:"range",value:function(){return x.of(1,90,92)}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.DAY_OF_YEAR)&&e.isSupported(q.MONTH_OF_YEAR)&&e.isSupported(q.YEAR)&&this._isIso(e)}},{key:"rangeRefinedBy",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: DayOfQuarter");var t=e.getLong(Le);if(1!==t)return 2===t?x.of(1,91):3===t||4===t?x.of(1,92):this.range();var n=e.getLong(q.YEAR);return Wt.isLeapYear(n)?x.of(1,91):x.of(1,90)}},{key:"getFrom",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: DayOfQuarter");var t=e.get(q.DAY_OF_YEAR),n=e.get(q.MONTH_OF_YEAR),i=e.getLong(q.YEAR);return t-we[M.intDiv(n-1,3)+(Wt.isLeapYear(i)?4:0)]}},{key:"adjustInto",value:function(e,t){var n=this.getFrom(e);return this.range().checkValidValue(t,this),e.with(q.DAY_OF_YEAR,e.getLong(q.DAY_OF_YEAR)+(t-n))}},{key:"resolve",value:function(e,t,n){var i=e.get(q.YEAR),a=e.get(Le);if(null==i||null==a)return null;var r,s=q.YEAR.checkValidIntValue(i),o=e.get(Ce);if(n===oe.LENIENT){var u=a;r=(r=(r=Kt.of(s,1,1)).plusMonths(M.safeMultiply(M.safeSubtract(u,1),3))).plusDays(M.safeSubtract(o,1))}else{var l=Le.range().checkValidIntValue(a,Le);if(n===oe.STRICT){var h=92;1===l?h=Wt.isLeapYear(s)?91:90:2===l&&(h=91),x.of(1,h).checkValidValue(o,this)}else this.range().checkValidValue(o,this);r=Kt.of(s,3*(l-1)+1,1).plusDays(o-1)}return e.remove(this),e.remove(q.YEAR),e.remove(Le),r}}]),t}(),Re=function(){p(t,Me);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"toString",value:function(){return"QuarterOfYear"}},{key:"baseUnit",value:function(){return be}},{key:"rangeUnit",value:function(){return b.YEARS}},{key:"range",value:function(){return x.of(1,4)}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.MONTH_OF_YEAR)&&this._isIso(e)}},{key:"rangeRefinedBy",value:function(e){return this.range()}},{key:"getFrom",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: QuarterOfYear");var t=e.getLong(q.MONTH_OF_YEAR);return M.intDiv(t+2,3)}},{key:"adjustInto",value:function(e,t){var n=this.getFrom(e);return this.range().checkValidValue(t,this),e.with(q.MONTH_OF_YEAR,e.getLong(q.MONTH_OF_YEAR)+3*(t-n))}}]),t}(),Ie=function(){p(t,Me);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"toString",value:function(){return"WeekOfWeekBasedYear"}},{key:"baseUnit",value:function(){return b.WEEKS}},{key:"rangeUnit",value:function(){return Ve}},{key:"range",value:function(){return x.of(1,52,53)}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.EPOCH_DAY)&&this._isIso(e)}},{key:"rangeRefinedBy",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: WeekOfWeekBasedYear");return Me._getWeekRangeByLocalDate(Kt.from(e))}},{key:"getFrom",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: WeekOfWeekBasedYear");return Me._getWeek(Kt.from(e))}},{key:"adjustInto",value:function(e,t){return this.range().checkValidValue(t,this),e.plus(M.safeSubtract(t,this.getFrom(e)),b.WEEKS)}},{key:"resolve",value:function(e,t,n){var i=e.get(Ue),a=e.get(q.DAY_OF_WEEK);if(null==i||null==a)return null;var r,s=Ue.range().checkValidIntValue(i,Ue),o=e.get(Pe);if(n===oe.LENIENT){var u=a,l=0;7<u?(l=M.intDiv(u-1,7),u=M.intMod(u-1,7)+1):u<1&&(l=M.intDiv(u,7)-1,u=M.intMod(u,7)+7),r=Kt.of(s,1,4).plusWeeks(o-1).plusWeeks(l).with(q.DAY_OF_WEEK,u)}else{var h=q.DAY_OF_WEEK.checkValidIntValue(a);if(n===oe.STRICT){var c=Kt.of(s,1,4);Me._getWeekRangeByLocalDate(c).checkValidValue(o,this)}else this.range().checkValidValue(o,this);r=Kt.of(s,1,4).plusWeeks(o-1).with(q.DAY_OF_WEEK,h)}return e.remove(this),e.remove(Ue),e.remove(q.DAY_OF_WEEK),r}},{key:"displayName",value:function(){return"Week"}}]),t}(),Fe=function(){p(t,Me);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"toString",value:function(){return"WeekBasedYear"}},{key:"baseUnit",value:function(){return Ve}},{key:"rangeUnit",value:function(){return b.FOREVER}},{key:"range",value:function(){return q.YEAR.range()}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.EPOCH_DAY)&&this._isIso(e)}},{key:"rangeRefinedBy",value:function(e){return q.YEAR.range()}},{key:"getFrom",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: WeekBasedYear");return Me._getWeekBasedYear(Kt.from(e))}},{key:"adjustInto",value:function(e,t){if(!1===this.isSupportedBy(e))throw new u("Unsupported field: WeekBasedYear");var n=this.range().checkValidIntValue(t,Ue),i=Kt.from(e),a=i.get(q.DAY_OF_WEEK),r=Me._getWeek(i);53===r&&52===Me._getWeekRangeByYear(n)&&(r=52);var s=Kt.of(n,1,4),o=a-s.get(q.DAY_OF_WEEK)+7*(r-1);return s=s.plusDays(o),e.with(s)}}]),t}(),Ye=function(){p(a,L);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._name=e,n._duration=t,n}return y(a,[{key:"duration",value:function(){return this._duration}},{key:"isDurationEstimated",value:function(){return!0}},{key:"isDateBased",value:function(){return!0}},{key:"isTimeBased",value:function(){return!1}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.EPOCH_DAY)}},{key:"addTo",value:function(e,t){switch(this){case Ve:var n=M.safeAdd(e.get(Ue),t);return e.with(Ue,n);case be:return e.plus(M.intDiv(t,256),b.YEARS).plus(3*M.intMod(t,256),b.MONTHS);default:throw new r("Unreachable")}}},{key:"between",value:function(e,t){switch(this){case Ve:return M.safeSubtract(t.getLong(Ue),e.getLong(Ue));case be:return M.intDiv(e.until(t,b.MONTHS),3);default:throw new r("Unreachable")}}},{key:"toString",value:function(){return name}}]),a}(),Ce=null,Le=null,Pe=null,Ue=null,Ve=null,be=null;var He=(y(We,[{key:"positiveSign",value:function(){return this._positiveSign}},{key:"withPositiveSign",value:function(e){return e===this._positiveSign?this:new We(this._zeroDigit,e,this._negativeSign,this._decimalSeparator)}},{key:"negativeSign",value:function(){return this._negativeSign}},{key:"withNegativeSign",value:function(e){return e===this._negativeSign?this:new We(this._zeroDigit,this._positiveSign,e,this._decimalSeparator)}},{key:"zeroDigit",value:function(){return this._zeroDigit}},{key:"withZeroDigit",value:function(e){return e===this._zeroDigit?this:new We(e,this._positiveSign,this._negativeSign,this._decimalSeparator)}},{key:"decimalSeparator",value:function(){return this._decimalSeparator}},{key:"withDecimalSeparator",value:function(e){return e===this._decimalSeparator?this:new We(this._zeroDigit,this._positiveSign,this._negativeSign,e)}},{key:"convertToDigit",value:function(e){var t=e.charCodeAt(0)-this._zeroDigitCharCode;return 0<=t&&t<=9?t:-1}},{key:"convertNumberToI18N",value:function(e){if("0"===this._zeroDigit)return e;for(var t=this._zeroDigitCharCode-"0".charCodeAt(0),n="",i=0;i<e.length;i++)n+=String.fromCharCode(e.charCodeAt(i)+t);return n}},{key:"equals",value:function(e){return this===e||e instanceof We&&this._zeroDigit===e._zeroDigit&&this._positiveSign===e._positiveSign&&this._negativeSign===e._negativeSign&&this._decimalSeparator===e._decimalSeparator}},{key:"hashCode",value:function(){return this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator}},{key:"toString",value:function(){return"DecimalStyle[".concat(this._zeroDigit).concat(this._positiveSign).concat(this._negativeSign).concat(this._decimalSeparator,"]")}}],[{key:"of",value:function(){throw new Error("not yet supported")}},{key:"availableLocales",value:function(){throw new Error("not yet supported")}}]),We);function We(e,t,n,i){f(this,We),this._zeroDigit=e,this._zeroDigitCharCode=e.charCodeAt(0),this._positiveSign=t,this._negativeSign=n,this._decimalSeparator=i}He.STANDARD=new He("0","+","-",".");var xe=function(){p(i,I);var e=S(i);function i(){return f(this,i),e.apply(this,arguments)}return y(i,[{key:"parse",value:function(e,t,n){switch(this){case i.NORMAL:return!e||!t;case i.ALWAYS:case i.EXCEEDS_PAD:return!0;default:return!t&&!n}}}]),i}();xe.NORMAL=new xe("NORMAL"),xe.NEVER=new xe("NEVER"),xe.ALWAYS=new xe("ALWAYS"),xe.EXCEEDS_PAD=new xe("EXCEEDS_PAD"),xe.NOT_NEGATIVE=new xe("NOT_NEGATIVE");var Be=function(){p(t,I);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"isStandalone",value:function(){switch(this){case t.FULL_STANDALONE:case t.SHORT_STANDALONE:case t.NARROW_STANDALONE:return!0;default:return!1}}},{key:"asStandalone",value:function(){switch(this){case t.FULL:return t.FULL_STANDALONE;case t.SHORT:return t.SHORT_STANDALONE;case t.NARROW:return t.NARROW_STANDALONE;default:return this}}},{key:"asNormal",value:function(){switch(this){case t.FULL_STANDALONE:return t.FULL;case t.SHORT_STANDALONE:return t.SHORT;case t.NARROW_STANDALONE:return t.NARROW;default:return this}}}]),t}();Be.FULL=new Be("FULL"),Be.FULL_STANDALONE=new Be("FULL_STANDALONE"),Be.SHORT=new Be("SHORT"),Be.SHORT_STANDALONE=new Be("SHORT_STANDALONE"),Be.NARROW=new Be("NARROW"),Be.NARROW_STANDALONE=new Be("NARROW_STANDALONE");var qe=(y(Ze,[{key:"print",value:function(e,t){return t.append(this._literal),!0}},{key:"parse",value:function(e,t,n){if(n===t.length)return~n;var i=t.charAt(n);return!1===e.charEquals(this._literal,i)?~n:n+this._literal.length}},{key:"toString",value:function(){return"'"===this._literal?"''":"'".concat(this._literal,"'")}}]),Ze);function Ze(e){if(f(this,Ze),1<e.length)throw new c('invalid literal, too long: "'.concat(e,'"'));this._literal=e}var ze=(y(Ke,[{key:"withOptional",value:function(e){return e===this._optional?this:new Ke(this._printerParsers,e)}},{key:"print",value:function(e,t){var n=t.length();this._optional&&e.startOptional();try{for(var i=0;i<this._printerParsers.length;i++)if(!1===this._printerParsers[i].print(e,t))return t.setLength(n),!0}finally{this._optional&&e.endOptional()}return!0}},{key:"parse",value:function(e,t,n){if(this._optional){e.startOptional();for(var i=n,a=0;a<this._printerParsers.length;a++)if((i=this._printerParsers[a].parse(e,t,i))<0)return e.endOptional(!1),n;return e.endOptional(!0),i}for(var r=0;r<this._printerParsers.length&&!((n=this._printerParsers[r].parse(e,t,n))<0);r++);return n}},{key:"toString",value:function(){var e="";if(null!=this._printerParsers){e+=this._optional?"[":"(";for(var t=0;t<this._printerParsers.length;t++)e+=this._printerParsers[t].toString();e+=this._optional?"]":")"}return e}}]),Ke);function Ke(e,t){f(this,Ke),this._printerParsers=e,this._optional=t}var je=(y(Ge,[{key:"print",value:function(e,t){var n=e.getValue(this.field);if(null===n)return!1;var i=e.symbols();if(0===n){if(0<this.minWidth){this.decimalPoint&&t.append(i.decimalSeparator());for(var a=0;a<this.minWidth;a++)t.append(i.zeroDigit())}}else{var r=this.convertToFraction(n,i.zeroDigit()),s=Math.min(Math.max(r.length,this.minWidth),this.maxWidth);if(0<1*(r=r.substr(0,s)))for(;r.length>this.minWidth&&"0"===r[r.length-1];)r=r.substr(0,r.length-1);var o=r;o=i.convertNumberToI18N(o),this.decimalPoint&&t.append(i.decimalSeparator()),t.append(o)}return!0}},{key:"parse",value:function(e,t,n){var i=e.isStrict()?this.minWidth:0,a=e.isStrict()?this.maxWidth:9,r=t.length;if(n===r)return 0<i?~n:n;if(this.decimalPoint){if(t[n]!==e.symbols().decimalSeparator())return 0<i?~n:n;n++}var s=n+i;if(r<s)return~n;for(var o=Math.min(n+a,r),u=0,l=n;l<o;){var h=t.charAt(l++),c=e.symbols().convertToDigit(h);if(c<0){if(l<s)return~n;l--;break}u=10*u+c}var f=l-n,_=Math.pow(10,f),d=this.convertFromFraction(u,_);return e.setParsedField(this.field,d,n,l)}},{key:"convertToFraction",value:function(e,t){var n=this.field.range();n.checkValidValue(e,this.field);for(var i=n.minimum(),a=n.maximum()-i+1,r=e-i,s=M.intDiv(1e9*r,a),o="".concat(s);o.length<9;)o=t+o;return o}},{key:"convertFromFraction",value:function(e,t){var n=this.field.range(),i=n.minimum(),a=n.maximum()-i+1;return M.intDiv(e*a,t)}},{key:"toString",value:function(){var e=this.decimalPoint?",DecimalPoint":"";return"Fraction(".concat(this.field,",").concat(this.minWidth,",").concat(this.maxWidth).concat(e,")")}}]),Ge);function Ge(e,t,n,i){if(f(this,Ge),N(e,"field"),!1===e.range().isFixed())throw new c("Field must have a fixed set of values: ".concat(e));if(t<0||9<t)throw new c("Minimum width must be from 0 to 9 inclusive but was ".concat(t));if(n<1||9<n)throw new c("Maximum width must be from 1 to 9 inclusive but was ".concat(n));if(n<t)throw new c("Maximum width must exceed or equal the minimum width but ".concat(n," < ").concat(t));this.field=e,this.minWidth=t,this.maxWidth=n,this.decimalPoint=i}var Xe=[0,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],Je=(y(Qe,[{key:"field",value:function(){return this._field}},{key:"minWidth",value:function(){return this._minWidth}},{key:"maxWidth",value:function(){return this._maxWidth}},{key:"signStyle",value:function(){return this._signStyle}},{key:"withFixedWidth",value:function(){return-1===this._subsequentWidth?this:new Qe(this._field,this._minWidth,this._maxWidth,this._signStyle,-1)}},{key:"withSubsequentWidth",value:function(e){return new Qe(this._field,this._minWidth,this._maxWidth,this._signStyle,this._subsequentWidth+e)}},{key:"_isFixedWidth",value:function(){return-1===this._subsequentWidth||0<this._subsequentWidth&&this._minWidth===this._maxWidth&&this._signStyle===xe.NOT_NEGATIVE}},{key:"print",value:function(e,t){var n=e.getValue(this._field);if(null==n)return!1;var i=this._getValue(e,n),a=e.symbols(),r="".concat(Math.abs(i));if(r.length>this._maxWidth)throw new T("Field ".concat(this._field," cannot be printed as the value ").concat(i," exceeds the maximum print width of ").concat(this._maxWidth));if(r=a.convertNumberToI18N(r),0<=i)switch(this._signStyle){case xe.EXCEEDS_PAD:this._minWidth<15&&i>=Xe[this._minWidth]&&t.append(a.positiveSign());break;case xe.ALWAYS:t.append(a.positiveSign())}else switch(this._signStyle){case xe.NORMAL:case xe.EXCEEDS_PAD:case xe.ALWAYS:t.append(a.negativeSign());break;case xe.NOT_NEGATIVE:throw new T("Field ".concat(this._field," cannot be printed as the value ").concat(i," cannot be negative according to the SignStyle"))}for(var s=0;s<this._minWidth-r.length;s++)t.append(a.zeroDigit());return t.append(r),!0}},{key:"parse",value:function(e,t,n){var i=t.length;if(n===i)return~n;k(0<=n&&n<i);var a=t.charAt(n),r=!1,s=!1;if(a===e.symbols().positiveSign()){if(!1===this._signStyle.parse(!0,e.isStrict(),this._minWidth===this._maxWidth))return~n;s=!0,n++}else if(a===e.symbols().negativeSign()){if(!1===this._signStyle.parse(!1,e.isStrict(),this._minWidth===this._maxWidth))return~n;r=!0,n++}else if(this._signStyle===xe.ALWAYS&&e.isStrict())return~n;var o=e.isStrict()||this._isFixedWidth()?this._minWidth:1,u=n+o;if(i<u)return~n;for(var l=(e.isStrict()||this._isFixedWidth()?this._maxWidth:9)+Math.max(this._subsequentWidth,0),h=0,c=n,f=0;f<2;f++){for(var _=Math.min(c+l,i);c<_;){var d=t.charAt(c++),v=e.symbols().convertToDigit(d);if(v<0){if(--c<u)return~n;break}if(15<c-n)throw new O("number text exceeds length");h=10*h+v}if(!(0<this._subsequentWidth&&0===f))break;var y=c-n;l=Math.max(o,y-this._subsequentWidth),c=n,h=0}if(r){if(0===h&&e.isStrict())return~(n-1);0!==h&&(h=-h)}else if(this._signStyle===xe.EXCEEDS_PAD&&e.isStrict()){var p=c-n;if(s){if(p<=this._minWidth)return~(n-1)}else if(p>this._minWidth)return~n}return this._setValue(e,h,n,c)}},{key:"_getValue",value:function(e,t){return t}},{key:"_setValue",value:function(e,t,n,i){return e.setParsedField(this._field,t,n,i)}},{key:"toString",value:function(){return 1===this._minWidth&&15===this._maxWidth&&this._signStyle===xe.NORMAL?"Value(".concat(this._field,")"):this._minWidth===this._maxWidth&&this._signStyle===xe.NOT_NEGATIVE?"Value(".concat(this._field,",").concat(this._minWidth,")"):"Value(".concat(this._field,",").concat(this._minWidth,",").concat(this._maxWidth,",").concat(this._signStyle,")")}}]),Qe);function Qe(e,t,n,i){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0;f(this,Qe),this._field=e,this._minWidth=t,this._maxWidth=n,this._signStyle=i,this._subsequentWidth=a}var $e=function(){p(o,Je);var s=S(o);function o(e,t,n,i,a){var r;if(f(this,o),r=s.call(this,e,t,n,xe.NOT_NEGATIVE),t<1||10<t)throw new c("The width must be from 1 to 10 inclusive but was ".concat(t));if(n<1||10<n)throw new c("The maxWidth must be from 1 to 10 inclusive but was ".concat(n));if(n<t)throw new c("The maxWidth must be greater than the width");if(null===a){if(!1===e.range().isValidValue(i))throw new c("The base value must be within the range of the field");if(i+Xe[t]>M.MAX_SAFE_INTEGER)throw new T("Unable to add printer-parser as the range exceeds the capacity of an int")}return r._baseValue=i,r._baseDate=a,r}return y(o,[{key:"_getValue",value:function(e,t){var n=Math.abs(t),i=this._baseValue;null!==this._baseDate&&(e.temporal(),i=Wt.INSTANCE.date(this._baseDate).get(this._field));return i<=t&&t<i+Xe[this._minWidth]?n%Xe[this._minWidth]:n%Xe[this._maxWidth]}},{key:"_setValue",value:function(e,t,n,i){var a=this._baseValue;null!=this._baseDate&&(a=e.getEffectiveChronology().date(this._baseDate).get(this._field));if(i-n===this._minWidth&&0<=t){var r=Xe[this._minWidth],s=a-a%r;(t=0<a?s+t:s-t)<a&&(t+=r)}return e.setParsedField(this._field,t,n,i)}},{key:"withFixedWidth",value:function(){return-1===this._subsequentWidth?this:new o(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,-1)}},{key:"withSubsequentWidth",value:function(e){return new o(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,this._subsequentWidth+e)}},{key:"isFixedWidth",value:function(e){return!1!==e.isStrict()&&m(d(o.prototype),"isFixedWidth",this).call(this,e)}},{key:"toString",value:function(){return"ReducedValue(".concat(this._field,",").concat(this._minWidth,",").concat(this._maxWidth,",").concat(null!=this._baseDate?this._baseDate:this._baseValue,")")}}]),o}(),et=["+HH","+HHmm","+HH:mm","+HHMM","+HH:MM","+HHMMss","+HH:MM:ss","+HHMMSS","+HH:MM:SS"],tt=(y(nt,[{key:"_checkPattern",value:function(e){for(var t=0;t<et.length;t++)if(et[t]===e)return t;throw new c("Invalid zone offset pattern: ".concat(e))}},{key:"print",value:function(e,t){var n=e.getValue(q.OFFSET_SECONDS);if(null==n)return!1;var i=M.safeToInt(n);if(0===i)t.append(this.noOffsetText);else{var a=Math.abs(M.intMod(M.intDiv(i,3600),100)),r=Math.abs(M.intMod(M.intDiv(i,60),60)),s=Math.abs(M.intMod(i,60)),o=t.length(),u=a;t.append(i<0?"-":"+").appendChar("".concat(M.intDiv(a,10),"0")).appendChar("".concat(M.intMod(a,10),"0")),(3<=this.type||1<=this.type&&0<r)&&(t.append(this.type%2==0?":":"").appendChar("".concat(M.intDiv(r,10),"0")).appendChar("".concat(r%10,"0")),u+=r,(7<=this.type||5<=this.type&&0<s)&&(t.append(this.type%2==0?":":"").appendChar("".concat(M.intDiv(s,10),"0")).appendChar("".concat(s%10,"0")),u+=s)),0===u&&(t.setLength(o),t.append(this.noOffsetText))}return!0}},{key:"parse",value:function(e,t,n){var i=t.length,a=this.noOffsetText.length;if(0===a){if(n===i)return e.setParsedField(q.OFFSET_SECONDS,0,n,n)}else{if(n===i)return~n;if(e.subSequenceEquals(t,n,this.noOffsetText,0,a))return e.setParsedField(q.OFFSET_SECONDS,0,n,n+a)}var r=t[n];if("+"===r||"-"===r){var s="-"===r?-1:1,o=[0,0,0,0];if(o[0]=n+1,!1===(this._parseNumber(o,1,t,!0)||this._parseNumber(o,2,t,3<=this.type)||this._parseNumber(o,3,t,!1))){var u=M.safeZero(s*(3600*o[1]+60*o[2]+o[3]));return e.setParsedField(q.OFFSET_SECONDS,u,n,o[0])}}return 0===a?e.setParsedField(q.OFFSET_SECONDS,0,n,n+a):~n}},{key:"_parseNumber",value:function(e,t,n,i){if((this.type+3)/2<t)return!1;var a=e[0];if(this.type%2==0&&1<t){if(a+1>n.length||":"!==n[a])return i;a++}if(a+2>n.length)return i;var r=n[a++],s=n[a++];if(r<"0"||"9"<r||s<"0"||"9"<s)return i;var o=10*(r.charCodeAt(0)-48)+(s.charCodeAt(0)-48);return o<0||59<o?i:(e[t]=o,e[0]=a,!1)}},{key:"toString",value:function(){var e=this.noOffsetText.replace("'","''");return"Offset(".concat(et[this.type],",'").concat(e,"')")}}]),nt);function nt(e,t){f(this,nt),N(e,"noOffsetText"),N(t,"pattern"),this.noOffsetText=e,this.type=this._checkPattern(t)}tt.INSTANCE_ID=new tt("Z","+HH:MM:ss"),tt.PATTERNS=et;var it=(y(at,[{key:"print",value:function(e,t){var n=t.length();if(!1===this._printerParser.print(e,t))return!1;var i=t.length()-n;if(i>this._padWidth)throw new T("Cannot print as output of ".concat(i," characters exceeds pad width of ").concat(this._padWidth));for(var a=0;a<this._padWidth-i;a++)t.insert(n,this._padChar);return!0}},{key:"parse",value:function(e,t,n){var i=e.isStrict(),a=e.isCaseSensitive();if(k(!(n>t.length)),k(0<=n),n===t.length)return~n;var r=n+this._padWidth;if(r>t.length){if(i)return~n;r=t.length}for(var s=n;s<r&&(a?t[s]===this._padChar:e.charEquals(t[s],this._padChar));)s++;t=t.substring(0,r);var o=this._printerParser.parse(e,t,s);return o!==r&&i?~(n+s):o}},{key:"toString",value:function(){return"Pad(".concat(this._printerParser,",").concat(this._padWidth).concat(" "===this._padChar?")":",'".concat(this._padChar,"')"))}}]),at);function at(e,t,n){f(this,at),this._printerParser=e,this._padWidth=t,this._padChar=n}var rt=function(){p(i,I);var e=S(i);function i(){return f(this,i),e.apply(this,arguments)}return y(i,[{key:"print",value:function(){return!0}},{key:"parse",value:function(e,t,n){switch(this){case i.SENSITIVE:e.setCaseSensitive(!0);break;case i.INSENSITIVE:e.setCaseSensitive(!1);break;case i.STRICT:e.setStrict(!0);break;case i.LENIENT:e.setStrict(!1)}return n}},{key:"toString",value:function(){switch(this){case i.SENSITIVE:return"ParseCaseSensitive(true)";case i.INSENSITIVE:return"ParseCaseSensitive(false)";case i.STRICT:return"ParseStrict(true)";case i.LENIENT:return"ParseStrict(false)"}}}]),i}();rt.SENSITIVE=new rt("SENSITIVE"),rt.INSENSITIVE=new rt("INSENSITIVE"),rt.STRICT=new rt("STRICT"),rt.LENIENT=new rt("LENIENT");var st=(y(ot,[{key:"print",value:function(e,t){return t.append(this._literal),!0}},{key:"parse",value:function(e,t,n){return k(!(t.length<n||n<0)),!1===e.subSequenceEquals(t,n,this._literal,0,this._literal.length)?~n:n+this._literal.length}},{key:"toString",value:function(){var e=this._literal.replace("'","''");return"'".concat(e,"'")}}]),ot);function ot(e){f(this,ot),this._literal=e}var ut=(y(lt,null,[{key:"getRules",value:function(e){throw new T("unsupported ZoneId:".concat(e))}},{key:"getAvailableZoneIds",value:function(){return[]}}]),lt);function lt(){f(this,lt)}var ht=function(){p(a,fe);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._id=e,n._rules=t,n}return y(a,[{key:"id",value:function(){return this._id}},{key:"rules",value:function(){return this._rules}}],[{key:"ofId",value:function(e){return new a(e,ut.getRules(e))}}]),a}(),ct=(y(ft,[{key:"print",value:function(e,t){var n=e.getValueQuery(this.query);return null!=n&&(t.append(n.id()),!0)}},{key:"parse",value:function(e,t,n){var i=t.length;if(i<n)return~n;if(n===i)return~n;var a=t.charAt(n);if("+"===a||"-"===a){var r=e.copy(),s=tt.INSTANCE_ID.parse(r,t,n);if(s<0)return s;var o=r.getParsed(q.OFFSET_SECONDS),u=Ee.ofTotalSeconds(o);return e.setParsedZone(u),s}if(n+2<=i){var l=t.charAt(n+1);if(e.charEquals(a,"U")&&e.charEquals(l,"T"))return n+3<=i&&e.charEquals(t.charAt(n+2),"C")?this._parsePrefixedOffset(e,t,n,n+3):this._parsePrefixedOffset(e,t,n,n+2);if(e.charEquals(a,"G")&&n+3<=i&&e.charEquals(l,"M")&&e.charEquals(t.charAt(n+2),"T"))return this._parsePrefixedOffset(e,t,n,n+3)}if("SYSTEM"===t.substr(n,6))return e.setParsedZone(fe.systemDefault()),n+6;if(e.charEquals(a,"Z"))return e.setParsedZone(Ee.UTC),n+1;var h=ut.getAvailableZoneIds();pt.size!==h.length&&(pt=_t.createTreeMap(h));for(var c=i-n,f=pt.treeMap,_=null,d=0;null!=f;){var v=t.substr(n,Math.min(f.length,c));null!=(f=f.get(v))&&f.isLeaf&&(_=v,d=f.length)}return null!=_?(e.setParsedZone(ht.ofId(_)),n+d):~n}},{key:"_parsePrefixedOffset",value:function(e,t,n,i){var a=t.substring(n,i).toUpperCase(),r=e.copy();if(i<t.length&&e.charEquals(t.charAt(i),"Z"))return e.setParsedZone(fe.ofOffset(a,Ee.UTC)),i;var s=tt.INSTANCE_ID.parse(r,t,i);if(s<0)return e.setParsedZone(fe.ofOffset(a,Ee.UTC)),i;var o=r.getParsed(q.OFFSET_SECONDS),u=Ee.ofTotalSeconds(o);return e.setParsedZone(fe.ofOffset(a,u)),s}},{key:"toString",value:function(){return this.description}}]),ft);function ft(e,t){f(this,ft),this.query=e,this.description=t}var _t=(y(dt,null,[{key:"createTreeMap",value:function(e){for(var t=e.sort(function(e,t){return e.length-t.length}),n=new vt(t[0].length,!1),i=0;i<t.length;i++)n.add(t[i]);return new dt(t.length,n)}}]),dt);function dt(e,t){f(this,dt),this.size=e,this.treeMap=t}var vt=(y(yt,[{key:"add",value:function(e){var t=e.length;if(t===this.length)this._treeMap[e]=new yt(t,!0);else if(t>this.length){var n=e.substr(0,this.length),i=this._treeMap[n];null==i&&(i=new yt(t,!1),this._treeMap[n]=i),i.add(e)}}},{key:"get",value:function(e){return this._treeMap[e]}}]),yt);function yt(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];f(this,yt),this.length=e,this.isLeaf=t,this._treeMap={}}var pt=new _t([]),Ot=(y(Et,[{key:"parseCaseSensitive",value:function(){return this._appendInternalPrinterParser(rt.SENSITIVE),this}},{key:"parseCaseInsensitive",value:function(){return this._appendInternalPrinterParser(rt.INSENSITIVE),this}},{key:"parseStrict",value:function(){return this._appendInternalPrinterParser(rt.STRICT),this}},{key:"parseLenient",value:function(){return this._appendInternalPrinterParser(rt.LENIENT),this}},{key:"appendValue",value:function(){return 1===arguments.length?this._appendValue1.apply(this,arguments):2===arguments.length?this._appendValue2.apply(this,arguments):this._appendValue4.apply(this,arguments)}},{key:"_appendValue1",value:function(e){return N(e),this._appendValuePrinterParser(new Je(e,1,15,xe.NORMAL)),this}},{key:"_appendValue2",value:function(e,t){if(N(e),t<1||15<t)throw new c("The width must be from 1 to ".concat(15," inclusive but was ").concat(t));var n=new Je(e,t,t,xe.NOT_NEGATIVE);return this._appendValuePrinterParser(n),this}},{key:"_appendValue4",value:function(e,t,n,i){if(N(e),N(i),t===n&&i===xe.NOT_NEGATIVE)return this._appendValue2(e,n);if(t<1||15<t)throw new c("The minimum width must be from 1 to ".concat(15," inclusive but was ").concat(t));if(n<1||15<n)throw new c("The minimum width must be from 1 to ".concat(15," inclusive but was ").concat(n));if(n<t)throw new c("The maximum width must exceed or equal the minimum width but ".concat(n," < ").concat(t));var a=new Je(e,t,n,i);return this._appendValuePrinterParser(a),this}},{key:"appendValueReduced",value:function(e,t,n,i){return 4===arguments.length&&i instanceof le?this._appendValueReducedFieldWidthMaxWidthBaseDate.apply(this,arguments):this._appendValueReducedFieldWidthMaxWidthBaseValue.apply(this,arguments)}},{key:"_appendValueReducedFieldWidthMaxWidthBaseValue",value:function(e,t,n,i){N(e,"field");var a=new $e(e,t,n,i,null);return this._appendValuePrinterParser(a),this}},{key:"_appendValueReducedFieldWidthMaxWidthBaseDate",value:function(e,t,n,i){N(e,"field"),N(i,"baseDate"),D(i,le,"baseDate");var a=new $e(e,t,n,0,i);return this._appendValuePrinterParser(a),this}},{key:"_appendValuePrinterParser",value:function(e){if(k(null!=e),0<=this._active._valueParserIndex&&this._active._printerParsers[this._active._valueParserIndex]instanceof Je){var t=this._active._valueParserIndex,n=this._active._printerParsers[t];e.minWidth()===e.maxWidth()&&e.signStyle()===xe.NOT_NEGATIVE?(n=n.withSubsequentWidth(e.maxWidth()),this._appendInternal(e.withFixedWidth()),this._active._valueParserIndex=t):(n=n.withFixedWidth(),this._active._valueParserIndex=this._appendInternal(e)),this._active._printerParsers[t]=n}else this._active._valueParserIndex=this._appendInternal(e);return this}},{key:"appendFraction",value:function(e,t,n,i){return this._appendInternal(new je(e,t,n,i)),this}},{key:"appendInstant",value:function(e){var t=0<arguments.length&&void 0!==e?e:-2;if(t<-2||9<t)throw new c("Invalid fractional digits: ".concat(t));return this._appendInternal(new kt(t)),this}},{key:"appendOffsetId",value:function(){return this._appendInternal(tt.INSTANCE_ID),this}},{key:"appendOffset",value:function(e,t){return this._appendInternalPrinterParser(new tt(t,e)),this}},{key:"appendZoneId",value:function(){return this._appendInternal(new ct(Z.zoneId(),"ZoneId()")),this}},{key:"appendPattern",value:function(e){return N(e,"pattern"),this._parsePattern(e),this}},{key:"appendZoneText",value:function(){throw new c("Pattern using (localized) text not implemented, use js-joda-locale plugin!")}},{key:"appendText",value:function(){throw new c("Pattern using (localized) text not implemented, use js-joda-locale plugin!")}},{key:"appendLocalizedOffset",value:function(){throw new c("Pattern using (localized) text not implemented, use js-joda-locale plugin!")}},{key:"appendWeekField",value:function(){throw new c("Pattern using (localized) text not implemented, use js-joda-locale plugin!")}},{key:"_parsePattern",value:function(e){for(var t={G:q.ERA,y:q.YEAR_OF_ERA,u:q.YEAR,Q:Te.QUARTER_OF_YEAR,q:Te.QUARTER_OF_YEAR,M:q.MONTH_OF_YEAR,L:q.MONTH_OF_YEAR,D:q.DAY_OF_YEAR,d:q.DAY_OF_MONTH,F:q.ALIGNED_DAY_OF_WEEK_IN_MONTH,E:q.DAY_OF_WEEK,c:q.DAY_OF_WEEK,e:q.DAY_OF_WEEK,a:q.AMPM_OF_DAY,H:q.HOUR_OF_DAY,k:q.CLOCK_HOUR_OF_DAY,K:q.HOUR_OF_AMPM,h:q.CLOCK_HOUR_OF_AMPM,m:q.MINUTE_OF_HOUR,s:q.SECOND_OF_MINUTE,S:q.NANO_OF_SECOND,A:q.MILLI_OF_DAY,n:q.NANO_OF_SECOND,N:q.NANO_OF_DAY},n=0;n<e.length;n++){var i=e.charAt(n);if("A"<=i&&i<="Z"||"a"<=i&&i<="z"){for(var a=n++;n<e.length&&e.charAt(n)===i;n++);var r=n-a;if("p"===i){var s=0;if(n<e.length&&("A"<=(i=e.charAt(n))&&i<="Z"||"a"<=i&&i<="z")){for(s=r,a=n++;n<e.length&&e.charAt(n)===i;n++);r=n-a}if(0===s)throw new c("Pad letter 'p' must be followed by valid pad pattern: ".concat(e));this.padNext(s)}var o=t[i];if(null!=o)this._parseField(i,r,o);else if("z"===i){if(4<r)throw new c("Too many pattern letters: ".concat(i));4===r?this.appendZoneText(Be.FULL):this.appendZoneText(Be.SHORT)}else if("V"===i){if(2!==r)throw new c("Pattern letter count must be 2: ".concat(i));this.appendZoneId()}else if("Z"===i)if(r<4)this.appendOffset("+HHMM","+0000");else if(4===r)this.appendLocalizedOffset(Be.FULL);else{if(5!==r)throw new c("Too many pattern letters: ".concat(i));this.appendOffset("+HH:MM:ss","Z")}else if("O"===i)if(1===r)this.appendLocalizedOffset(Be.SHORT);else{if(4!==r)throw new c("Pattern letter count must be 1 or 4: ".concat(i));this.appendLocalizedOffset(Be.FULL)}else if("X"===i){if(5<r)throw new c("Too many pattern letters: ".concat(i));this.appendOffset(tt.PATTERNS[r+(1===r?0:1)],"Z")}else if("x"===i){if(5<r)throw new c("Too many pattern letters: ".concat(i));var u=1===r?"+00":r%2==0?"+0000":"+00:00";this.appendOffset(tt.PATTERNS[r+(1===r?0:1)],u)}else if("W"===i){if(1<r)throw new c("Too many pattern letters: ".concat(i));this.appendWeekField("W",r)}else if("w"===i){if(2<r)throw new c("Too many pattern letters: ".concat(i));this.appendWeekField("w",r)}else{if("Y"!==i)throw new c("Unknown pattern letter: ".concat(i));this.appendWeekField("Y",r)}n--}else if("'"===i){for(var l=n++;n<e.length;n++)if("'"===e.charAt(n)){if(!(n+1<e.length&&"'"===e.charAt(n+1)))break;n++}if(n>=e.length)throw new c("Pattern ends with an incomplete string literal: ".concat(e));var h=e.substring(1+l,n);0===h.length?this.appendLiteral("'"):this.appendLiteral(h.replace("''","'"))}else if("["===i)this.optionalStart();else if("]"===i){if(null===this._active._parent)throw new c("Pattern invalid as it contains ] without previous [");this.optionalEnd()}else{if("{"===i||"}"===i||"#"===i)throw new c("Pattern includes reserved character: '".concat(i,"'"));this.appendLiteral(i)}}}},{key:"_parseField",value:function(e,t,n){switch(e){case"u":case"y":2===t?this.appendValueReduced(n,2,2,$e.BASE_DATE):t<4?this.appendValue(n,t,15,xe.NORMAL):this.appendValue(n,t,15,xe.EXCEEDS_PAD);break;case"M":case"Q":switch(t){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,Be.SHORT);break;case 4:this.appendText(n,Be.FULL);break;case 5:this.appendText(n,Be.NARROW);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"L":case"q":switch(t){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,Be.SHORT_STANDALONE);break;case 4:this.appendText(n,Be.FULL_STANDALONE);break;case 5:this.appendText(n,Be.NARROW_STANDALONE);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"e":switch(t){case 1:case 2:this.appendWeekField("e",t);break;case 3:this.appendText(n,Be.SHORT);break;case 4:this.appendText(n,Be.FULL);break;case 5:this.appendText(n,Be.NARROW);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"c":switch(t){case 1:this.appendWeekField("c",t);break;case 2:throw new c("Invalid number of pattern letters: ".concat(e));case 3:this.appendText(n,Be.SHORT_STANDALONE);break;case 4:this.appendText(n,Be.FULL_STANDALONE);break;case 5:this.appendText(n,Be.NARROW_STANDALONE);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"a":if(1!==t)throw new c("Too many pattern letters: ".concat(e));this.appendText(n,Be.SHORT);break;case"E":case"G":switch(t){case 1:case 2:case 3:this.appendText(n,Be.SHORT);break;case 4:this.appendText(n,Be.FULL);break;case 5:this.appendText(n,Be.NARROW);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"S":this.appendFraction(q.NANO_OF_SECOND,t,t,!1);break;case"F":if(1!==t)throw new c("Too many pattern letters: ".concat(e));this.appendValue(n);break;case"d":case"h":case"H":case"k":case"K":case"m":case"s":if(1===t)this.appendValue(n);else{if(2!==t)throw new c("Too many pattern letters: ".concat(e));this.appendValue(n,t)}break;case"D":if(1===t)this.appendValue(n);else{if(!(t<=3))throw new c("Too many pattern letters: ".concat(e));this.appendValue(n,t)}break;default:1===t?this.appendValue(n):this.appendValue(n,t)}}},{key:"padNext",value:function(){return 1===arguments.length?this._padNext1.apply(this,arguments):this._padNext2.apply(this,arguments)}},{key:"_padNext1",value:function(e){return this._padNext2(e," ")}},{key:"_padNext2",value:function(e,t){if(e<1)throw new c("The pad width must be at least one but was ".concat(e));return this._active._padNextWidth=e,this._active._padNextChar=t,this._active._valueParserIndex=-1,this}},{key:"optionalStart",value:function(){return this._active._valueParserIndex=-1,this._active=Et._of(this._active,!0),this}},{key:"optionalEnd",value:function(){if(null==this._active._parent)throw new r("Cannot call optionalEnd() as there was no previous call to optionalStart()");if(0<this._active._printerParsers.length){var e=new ze(this._active._printerParsers,this._active._optional);this._active=this._active._parent,this._appendInternal(e)}else this._active=this._active._parent;return this}},{key:"_appendInternal",value:function(e){return k(null!=e),0<this._active._padNextWidth&&(null!=e&&(e=new it(e,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(e),this._active._valueParserIndex=-1,this._active._printerParsers.length-1}},{key:"appendLiteral",value:function(e){return k(null!=e),0<e.length&&(1===e.length?this._appendInternalPrinterParser(new qe(e.charAt(0))):this._appendInternalPrinterParser(new st(e))),this}},{key:"_appendInternalPrinterParser",value:function(e){return k(null!=e),0<this._active._padNextWidth&&(null!=e&&(e=new it(e,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(e),this._active._valueParserIndex=-1,this._active._printerParsers.length-1}},{key:"append",value:function(e){return N(e,"formatter"),this._appendInternal(e._toPrinterParser(!1)),this}},{key:"toFormatter",value:function(e){for(var t=0<arguments.length&&void 0!==e?e:oe.SMART;null!=this._active._parent;)this.optionalEnd();var n=new ze(this._printerParsers,!1);return new Tt(n,null,He.STANDARD,t,null,null,null)}}],[{key:"_of",value:function(e,t){N(e,"parent"),N(t,"optional");var n=new Et;return n._parent=e,n._optional=t,n}}]),Et);function Et(){f(this,Et),(this._active=this)._parent=null,this._printerParsers=[],this._optional=!1,this._padNextWidth=0,this._padNextChar=null,this._valueParserIndex=-1}var St=31556952e4,mt=62167219200,kt=(y(Nt,[{key:"print",value:function(e,t){var n=e.getValue(q.INSTANT_SECONDS),i=0;if(e.temporal().isSupported(q.NANO_OF_SECOND)&&(i=e.temporal().getLong(q.NANO_OF_SECOND)),null==n)return!1;var a=n,r=q.NANO_OF_SECOND.checkValidIntValue(i);if(-mt<=a){var s=a-St+mt,o=M.floorDiv(s,St)+1,u=M.floorMod(s,St),l=Gt.ofEpochSecond(u-mt,0,Ee.UTC);0<o&&t.append("+").append(o),t.append(l),0===l.second()&&t.append(":00")}else{var h=a+mt,c=M.intDiv(h,St),f=M.intMod(h,St),_=Gt.ofEpochSecond(f-mt,0,Ee.UTC),d=t.length();t.append(_),0===_.second()&&t.append(":00"),c<0&&(-1e4===_.year()?t.replace(d,d+2,"".concat(c-1)):0===f?t.insert(d,c):t.insert(d+1,Math.abs(c)))}if(-2===this.fractionalDigits)0!==r&&(t.append("."),0===M.intMod(r,1e6)?t.append("".concat(M.intDiv(r,1e6)+1e3).substring(1)):0===M.intMod(r,1e3)?t.append("".concat(M.intDiv(r,1e3)+1e6).substring(1)):t.append("".concat(r+1e9).substring(1)));else if(0<this.fractionalDigits||-1===this.fractionalDigits&&0<r){t.append(".");for(var v=1e8,y=0;-1===this.fractionalDigits&&0<r||y<this.fractionalDigits;y++){var p=M.intDiv(r,v);t.append(p),r-=p*v,v=M.intDiv(v,10)}}return t.append("Z"),!0}},{key:"parse",value:function(e,t,n){var i=e.copy(),a=this.fractionalDigits<0?0:this.fractionalDigits,r=this.fractionalDigits<0?9:this.fractionalDigits,s=(new Ot).append(Tt.ISO_LOCAL_DATE).appendLiteral("T").appendValue(q.HOUR_OF_DAY,2).appendLiteral(":").appendValue(q.MINUTE_OF_HOUR,2).appendLiteral(":").appendValue(q.SECOND_OF_MINUTE,2).appendFraction(q.NANO_OF_SECOND,a,r,!0).appendLiteral("Z").toFormatter()._toPrinterParser(!1).parse(i,t,n);if(s<0)return s;var o,u=i.getParsed(q.YEAR),l=i.getParsed(q.MONTH_OF_YEAR),h=i.getParsed(q.DAY_OF_MONTH),c=i.getParsed(q.HOUR_OF_DAY),f=i.getParsed(q.MINUTE_OF_HOUR),_=i.getParsed(q.SECOND_OF_MINUTE),d=i.getParsed(q.NANO_OF_SECOND),v=null!=_?_:0,y=null!=d?d:0,p=M.intMod(u,1e4),O=0;24===c&&0===f&&0===v&&0===y?(c=0,O=1):23===c&&59===f&&60===v&&(e.setParsedLeapSecond(),v=59);try{o=Gt.of(p,l,h,c,f,v,0).plusDays(O).toEpochSecond(Ee.UTC),o+=M.safeMultiply(M.intDiv(u,1e4),St)}catch(e){return~n}var E=s;return E=e.setParsedField(q.INSTANT_SECONDS,o,n,E),e.setParsedField(q.NANO_OF_SECOND,y,n,E)}},{key:"toString",value:function(){return"Instant()"}}]),Nt);function Nt(e){f(this,Nt),this.fractionalDigits=e}var Dt=(y(At,[{key:"append",value:function(e){return this._str+=e,this}},{key:"appendChar",value:function(e){return this._str+=e[0],this}},{key:"insert",value:function(e,t){return this._str=this._str.slice(0,e)+t+this._str.slice(e),this}},{key:"replace",value:function(e,t,n){return this._str=this._str.slice(0,e)+n+this._str.slice(t),this}},{key:"length",value:function(){return this._str.length}},{key:"setLength",value:function(e){return this._str=this._str.slice(0,e),this}},{key:"toString",value:function(){return this._str}}]),At);function At(){f(this,At),this._str=""}var Tt=(y(wt,[{key:"locale",value:function(){return this._locale}},{key:"decimalStyle",value:function(){return this._decimalStyle}},{key:"chronology",value:function(){return this._chrono}},{key:"withChronology",value:function(e){return null!=this._chrono&&this._chrono.equals(e)?this:new wt(this._printerParser,this._locale,this._decimalStyle,this._resolverStyle,this._resolverFields,e,this._zone)}},{key:"withLocale",value:function(){return this}},{key:"withResolverStyle",value:function(e){return N(e,"resolverStyle"),e.equals(this._resolverStyle)?this:new wt(this._printerParser,this._locale,this._decimalStyle,e,this._resolverFields,this._chrono,this._zone)}},{key:"format",value:function(e){var t=new Dt(32);return this._formatTo(e,t),t.toString()}},{key:"_formatTo",value:function(e,t){N(e,"temporal"),N(t,"appendable");var n=new De(e,this);this._printerParser.print(n,t)}},{key:"parse",value:function(e,t){return 1===arguments.length?this.parse1(e):this.parse2(e,t)}},{key:"parse1",value:function(t){N(t,"text");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields)}catch(e){throw e instanceof v?e:this._createError(t,e)}}},{key:"parse2",value:function(t,e){N(t,"text"),N(e,"type");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields).build(e)}catch(e){throw e instanceof v?e:this._createError(t,e)}}},{key:"_createError",value:function(e,t){var n="";return n=64<e.length?"".concat(e.substring(0,64),"..."):e,new v("Text '".concat(n,"' could not be parsed: ").concat(t.message),e,0,t)}},{key:"_parseToBuilder",value:function(e,t){var n=null!=t?t:new ie(0),i=this._parseUnresolved0(e,n);if(null==i||0<=n.getErrorIndex()||null==t&&n.getIndex()<e.length){var a="";throw a=64<e.length?"".concat(e.substr(0,64).toString(),"..."):e,0<=n.getErrorIndex()?new v("Text '".concat(a,"' could not be parsed at index ").concat(n.getErrorIndex()),e,n.getErrorIndex()):new v("Text '".concat(a,"' could not be parsed, unparsed text found at index ").concat(n.getIndex()),e,n.getIndex())}return i.toBuilder()}},{key:"parseUnresolved",value:function(e,t){return this._parseUnresolved0(e,t)}},{key:"_parseUnresolved0",value:function(e,t){k(null!=e,"text",s),k(null!=t,"position",s);var n=new me(this),i=t.getIndex();return(i=this._printerParser.parse(n,e,i))<0?(t.setErrorIndex(~i),null):(t.setIndex(i),n.toParsed())}},{key:"_toPrinterParser",value:function(e){return this._printerParser.withOptional(e)}},{key:"toString",value:function(){var e=this._printerParser.toString();return 0===e.indexOf("[")?e:e.substring(1,e.length-1)}}],[{key:"parsedExcessDays",value:function(){return wt.PARSED_EXCESS_DAYS}},{key:"parsedLeapSecond",value:function(){return wt.PARSED_LEAP_SECOND}},{key:"ofPattern",value:function(e){return(new Ot).appendPattern(e).toFormatter()}}]),wt);function wt(e,t,n,i,a){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:Wt.INSTANCE,s=6<arguments.length?arguments[6]:void 0;f(this,wt),k(null!=e),k(null!=n),k(null!=i),this._printerParser=e,this._locale=t,this._decimalStyle=n,this._resolverStyle=i,this._resolverFields=a,this._chrono=r,this._zone=s}var Mt,gt=function(){p(a,K);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._month=M.safeToInt(e),n._day=M.safeToInt(t),n}return y(a,[{key:"monthValue",value:function(){return this._month}},{key:"month",value:function(){return ee.of(this._month)}},{key:"dayOfMonth",value:function(){return this._day}},{key:"isSupported",value:function(e){return e instanceof q?e===q.MONTH_OF_YEAR||e===q.DAY_OF_MONTH:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return e===q.MONTH_OF_YEAR?e.range():e===q.DAY_OF_MONTH?x.of(1,this.month().minLength(),this.month().maxLength()):m(d(a.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(N(e,"field"),e instanceof q){switch(e){case q.DAY_OF_MONTH:return this._day;case q.MONTH_OF_YEAR:return this._month}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"isValidYear",value:function(e){return!1==(29===this._day&&2===this._month&&!1===Yt.isLeap(e))}},{key:"withMonth",value:function(e){return this.with(ee.of(e))}},{key:"with",value:function(e){if(N(e,"month"),e.value()===this._month)return this;var t=Math.min(this._day,e.maxLength());return new a(e.value(),t)}},{key:"withDayOfMonth",value:function(e){return e===this._day?this:a.of(this._month,e)}},{key:"query",value:function(e){return N(e,"query"),D(e,G,"query"),e===Z.chronology()?Wt.INSTANCE:m(d(a.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return N(e,"temporal"),(e=e.with(q.MONTH_OF_YEAR,this._month)).with(q.DAY_OF_MONTH,Math.min(e.range(q.DAY_OF_MONTH).maximum(),this._day))}},{key:"atYear",value:function(e){return Kt.of(e,this._month,this.isValidYear(e)?this._day:28)}},{key:"compareTo",value:function(e){N(e,"other"),D(e,a,"other");var t=this._month-e.monthValue();return 0===t&&(t=this._day-e.dayOfMonth()),t}},{key:"isAfter",value:function(e){return N(e,"other"),D(e,a,"other"),0<this.compareTo(e)}},{key:"isBefore",value:function(e){return N(e,"other"),D(e,a,"other"),this.compareTo(e)<0}},{key:"equals",value:function(e){if(this===e)return!0;if(e instanceof a){var t=e;return this.monthValue()===t.monthValue()&&this.dayOfMonth()===t.dayOfMonth()}return!1}},{key:"toString",value:function(){return"--".concat(this._month<10?"0":"").concat(this._month).concat(this._day<10?"-0":"-").concat(this._day)}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),D(e,Tt,"formatter"),e.format(this)}}],[{key:"now",value:function(e){return 0===arguments.length?a.now0():1===arguments.length&&e instanceof fe?a.nowZoneId(e):a.nowClock(e)}},{key:"now0",value:function(){return this.nowClock(Qt.systemDefaultZone())}},{key:"nowZoneId",value:function(e){return N(e,"zone"),this.nowClock(Qt.system(e))}},{key:"nowClock",value:function(e){N(e,"clock");var t=Kt.now(e);return a.of(t.month(),t.dayOfMonth())}},{key:"of",value:function(e,t){return 2===arguments.length&&e instanceof ee?a.ofMonthNumber(e,t):a.ofNumberNumber(e,t)}},{key:"ofMonthNumber",value:function(e,t){if(N(e,"month"),q.DAY_OF_MONTH.checkValidValue(t),t>e.maxLength())throw new T("Illegal value for DayOfMonth field, value ".concat(t," is not valid for month ").concat(e.toString()));return new a(e.value(),t)}},{key:"ofNumberNumber",value:function(e,t){return N(e,"month"),N(t,"dayOfMonth"),a.of(ee.of(e),t)}},{key:"from",value:function(t){if(N(t,"temporal"),D(t,K,"temporal"),t instanceof a)return t;try{return a.of(t.get(q.MONTH_OF_YEAR),t.get(q.DAY_OF_MONTH))}catch(e){throw new T("Unable to obtain MonthDay from TemporalAccessor: ".concat(t,", type ").concat(t&&null!=t.constructor?t.constructor.name:""))}}},{key:"parse",value:function(e,t){return 1===arguments.length?a.parseString(e):a.parseStringFormatter(e,t)}},{key:"parseString",value:function(e){return a.parseStringFormatter(e,Mt)}},{key:"parseStringFormatter",value:function(e,t){return N(e,"text"),N(t,"formatter"),D(t,Tt,"formatter"),t.parse(e,a.FROM)}}]),a}();var Rt,It=function(){p(a,ue);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._year=M.safeToInt(e),n._month=M.safeToInt(t),n}return y(a,[{key:"isSupported",value:function(e){return 1===arguments.length&&e instanceof H?this.isSupportedField(e):this.isSupportedUnit(e)}},{key:"isSupportedField",value:function(e){return e instanceof q?e===q.YEAR||e===q.MONTH_OF_YEAR||e===q.PROLEPTIC_MONTH||e===q.YEAR_OF_ERA||e===q.ERA:null!=e&&e.isSupportedBy(this)}},{key:"isSupportedUnit",value:function(e){return e instanceof b?e===b.MONTHS||e===b.YEARS||e===b.DECADES||e===b.CENTURIES||e===b.MILLENNIA||e===b.ERAS:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return e===q.YEAR_OF_ERA?this.year()<=0?x.of(1,Yt.MAX_VALUE+1):x.of(1,Yt.MAX_VALUE):m(d(a.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return N(e,"field"),D(e,H,"field"),this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(N(e,"field"),D(e,H,"field"),e instanceof q){switch(e){case q.MONTH_OF_YEAR:return this._month;case q.PROLEPTIC_MONTH:return this._getProlepticMonth();case q.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case q.YEAR:return this._year;case q.ERA:return this._year<1?0:1}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"_getProlepticMonth",value:function(){return M.safeAdd(M.safeMultiply(this._year,12),this._month-1)}},{key:"year",value:function(){return this._year}},{key:"monthValue",value:function(){return this._month}},{key:"month",value:function(){return ee.of(this._month)}},{key:"isLeapYear",value:function(){return Wt.isLeapYear(this._year)}},{key:"isValidDay",value:function(e){return 1<=e&&e<=this.lengthOfMonth()}},{key:"lengthOfMonth",value:function(){return this.month().length(this.isLeapYear())}},{key:"lengthOfYear",value:function(){return this.isLeapYear()?366:365}},{key:"with",value:function(e,t){return 1===arguments.length?this._withAdjuster(e):this._withField(e,t)}},{key:"_withField",value:function(e,t){if(N(e,"field"),D(e,H,"field"),e instanceof q){var n=e;switch(n.checkValidValue(t),n){case q.MONTH_OF_YEAR:return this.withMonth(t);case q.PROLEPTIC_MONTH:return this.plusMonths(t-this.getLong(q.PROLEPTIC_MONTH));case q.YEAR_OF_ERA:return this.withYear(this._year<1?1-t:t);case q.YEAR:return this.withYear(t);case q.ERA:return this.getLong(q.ERA)===t?this:this.withYear(1-this._year)}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"withYear",value:function(e){return q.YEAR.checkValidValue(e),new a(e,this._month)}},{key:"withMonth",value:function(e){return q.MONTH_OF_YEAR.checkValidValue(e),new a(this._year,e)}},{key:"_plusUnit",value:function(e,t){if(N(t,"unit"),D(t,L,"unit"),t instanceof b){switch(t){case b.MONTHS:return this.plusMonths(e);case b.YEARS:return this.plusYears(e);case b.DECADES:return this.plusYears(M.safeMultiply(e,10));case b.CENTURIES:return this.plusYears(M.safeMultiply(e,100));case b.MILLENNIA:return this.plusYears(M.safeMultiply(e,1e3));case b.ERAS:return this.with(q.ERA,M.safeAdd(this.getLong(q.ERA),e))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusYears",value:function(e){if(0===e)return this;var t=q.YEAR.checkValidIntValue(this._year+e);return this.withYear(t)}},{key:"plusMonths",value:function(e){if(0===e)return this;var t=12*this._year+(this._month-1)+e;return new a(q.YEAR.checkValidIntValue(M.floorDiv(t,12)),M.floorMod(t,12)+1)}},{key:"minusYears",value:function(e){return e===M.MIN_SAFE_INTEGER?this.plusYears(M.MIN_SAFE_INTEGER).plusYears(1):this.plusYears(-e)}},{key:"minusMonths",value:function(e){return e===M.MIN_SAFE_INTEGER?this.plusMonths(Math.MAX_SAFE_INTEGER).plusMonths(1):this.plusMonths(-e)}},{key:"query",value:function(e){return N(e,"query"),D(e,G,"query"),e===Z.chronology()?Wt.INSTANCE:e===Z.precision()?b.MONTHS:e===Z.localDate()||e===Z.localTime()||e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:m(d(a.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return N(e,"temporal"),D(e,ue,"temporal"),e.with(q.PROLEPTIC_MONTH,this._getProlepticMonth())}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit"),D(e,ue,"endExclusive"),D(t,L,"unit");var n=a.from(e);if(t instanceof b){var i=n._getProlepticMonth()-this._getProlepticMonth();switch(t){case b.MONTHS:return i;case b.YEARS:return i/12;case b.DECADES:return i/120;case b.CENTURIES:return i/1200;case b.MILLENNIA:return i/12e3;case b.ERAS:return n.getLong(q.ERA)-this.getLong(q.ERA)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"atDay",value:function(e){return Kt.of(this._year,this._month,e)}},{key:"atEndOfMonth",value:function(){return Kt.of(this._year,this._month,this.lengthOfMonth())}},{key:"compareTo",value:function(e){N(e,"other"),D(e,a,"other");var t=this._year-e.year();return 0===t&&(t=this._month-e.monthValue()),t}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"equals",value:function(e){if(this===e)return!0;if(e instanceof a){var t=e;return this.year()===t.year()&&this.monthValue()===t.monthValue()}return!1}},{key:"toString",value:function(){return Rt.format(this)}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}}],[{key:"now",value:function(e){return 0===arguments.length?a.now0():1===arguments.length&&e instanceof fe?a.nowZoneId(e):a.nowClock(e)}},{key:"now0",value:function(){return a.nowClock(Qt.systemDefaultZone())}},{key:"nowZoneId",value:function(e){return a.nowClock(Qt.system(e))}},{key:"nowClock",value:function(e){var t=Kt.now(e);return a.of(t.year(),t.month())}},{key:"of",value:function(e,t){return 2===arguments.length&&t instanceof ee?a.ofNumberMonth(e,t):a.ofNumberNumber(e,t)}},{key:"ofNumberMonth",value:function(e,t){return N(t,"month"),D(t,ee,"month"),a.ofNumberNumber(e,t.value())}},{key:"ofNumberNumber",value:function(e,t){return N(e,"year"),N(t,"month"),q.YEAR.checkValidValue(e),q.MONTH_OF_YEAR.checkValidValue(t),new a(e,t)}},{key:"from",value:function(t){if(N(t,"temporal"),t instanceof a)return t;try{return a.of(t.get(q.YEAR),t.get(q.MONTH_OF_YEAR))}catch(e){throw new T("Unable to obtain YearMonth from TemporalAccessor: ".concat(t,", type ").concat(t&&null!=t.constructor?t.constructor.name:""))}}},{key:"parse",value:function(e,t){return 1===arguments.length?a.parseString(e):a.parseStringFormatter(e,t)}},{key:"parseString",value:function(e){return a.parseStringFormatter(e,Rt)}},{key:"parseStringFormatter",value:function(e,t){return N(t,"formatter"),t.parse(e,a.FROM)}}]),a}();var Ft,Yt=function(){p(a,ue);var n=S(a);function a(e){var t;return f(this,a),(t=n.call(this))._year=M.safeToInt(e),t}return y(a,[{key:"value",value:function(){return this._year}},{key:"isSupported",value:function(e){return 1===arguments.length&&e instanceof H?this.isSupportedField(e):this.isSupportedUnit(e)}},{key:"isSupportedField",value:function(e){return e instanceof q?e===q.YEAR||e===q.YEAR_OF_ERA||e===q.ERA:null!=e&&e.isSupportedBy(this)}},{key:"isSupportedUnit",value:function(e){return e instanceof b?e===b.YEARS||e===b.DECADES||e===b.CENTURIES||e===b.MILLENNIA||e===b.ERAS:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){if(this.isSupported(e))return e.range();if(e instanceof q)throw new u("Unsupported field: ".concat(e));return m(d(a.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(N(e,"field"),e instanceof q){switch(e){case q.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case q.YEAR:return this._year;case q.ERA:return this._year<1?0:1}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"isLeap",value:function(){return a.isLeap(this._year)}},{key:"_withField",value:function(e,t){if(N(e,"field"),D(e,H,"field"),e instanceof q){switch(e.checkValidValue(t),e){case q.YEAR_OF_ERA:return a.of(this._year<1?1-t:t);case q.YEAR:return a.of(t);case q.ERA:return this.getLong(q.ERA)===t?this:a.of(1-this._year)}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"_plusUnit",value:function(e,t){if(N(e,"amountToAdd"),N(t,"unit"),D(t,L,"unit"),t instanceof b){switch(t){case b.YEARS:return this.plusYears(e);case b.DECADES:return this.plusYears(M.safeMultiply(e,10));case b.CENTURIES:return this.plusYears(M.safeMultiply(e,100));case b.MILLENNIA:return this.plusYears(M.safeMultiply(e,1e3));case b.ERAS:return this.with(q.ERA,M.safeAdd(this.getLong(q.ERA),e))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusYears",value:function(e){return 0===e?this:a.of(q.YEAR.checkValidIntValue(M.safeAdd(this._year,e)))}},{key:"minusYears",value:function(e){return e===M.MIN_SAFE_INTEGER?this.plusYears(M.MAX_SAFE_INTEGER).plusYears(1):this.plusYears(-e)}},{key:"adjustInto",value:function(e){return N(e,"temporal"),e.with(q.YEAR,this._year)}},{key:"isValidMonthDay",value:function(e){return null!=e&&e.isValidYear(this._year)}},{key:"length",value:function(){return this.isLeap()?366:365}},{key:"atDay",value:function(e){return Kt.ofYearDay(this._year,e)}},{key:"atMonth",value:function(e){return 1===arguments.length&&e instanceof ee?this.atMonthMonth(e):this.atMonthNumber(e)}},{key:"atMonthMonth",value:function(e){return N(e,"month"),D(e,ee,"month"),It.of(this._year,e)}},{key:"atMonthNumber",value:function(e){return N(e,"month"),It.of(this._year,e)}},{key:"atMonthDay",value:function(e){return N(e,"monthDay"),D(e,gt,"monthDay"),e.atYear(this._year)}},{key:"query",value:function(e){return N(e,"query()"),D(e,G,"query()"),e===Z.chronology()?Wt.INSTANCE:e===Z.precision()?b.YEARS:e===Z.localDate()||e===Z.localTime()||e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:m(d(a.prototype),"query",this).call(this,e)}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,a,"other"),this._year-e._year}},{key:"isAfter",value:function(e){return N(e,"other"),D(e,a,"other"),this._year>e._year}},{key:"isBefore",value:function(e){return N(e,"other"),D(e,a,"other"),this._year<e._year}},{key:"format",value:function(e){return N(e,"formatter"),D(e,Tt,"formatter"),e.format(this)}},{key:"equals",value:function(e){return this===e||e instanceof a&&this.value()===e.value()}},{key:"toString",value:function(){return"".concat(this._year)}},{key:"toJSON",value:function(){return this.toString()}},{key:"until",value:function(e,t){var n=a.from(e);if(t instanceof b){var i=n.value()-this.value();switch(t){case b.YEARS:return i;case b.DECADES:return M.intDiv(i,10);case b.CENTURIES:return M.intDiv(i,100);case b.MILLENNIA:return M.intDiv(i,1e3);case b.ERAS:return n.getLong(q.ERA)-this.getLong(q.ERA)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}}],[{key:"now",value:function(e){var t=0<arguments.length&&void 0!==e?e:void 0;return void 0===t?a.now0():t instanceof fe?a.nowZoneId(t):a.nowClock(t)}},{key:"now0",value:function(){return a.nowClock(Qt.systemDefaultZone())}},{key:"nowZoneId",value:function(e){return N(e,"zone"),D(e,fe,"zone"),a.nowClock(Qt.system(e))}},{key:"nowClock",value:function(e){N(e,"clock"),D(e,Qt,"clock");var t=Kt.now(e);return a.of(t.year())}},{key:"of",value:function(e){return N(e,"isoYear"),q.YEAR.checkValidValue(e),new a(e)}},{key:"from",value:function(t){if(N(t,"temporal"),D(t,K,"temporal"),t instanceof a)return t;try{return a.of(t.get(q.YEAR))}catch(e){throw new T("Unable to obtain Year from TemporalAccessor: ".concat(t,", type ").concat(t&&null!=t.constructor?t.constructor.name:""))}}},{key:"parse",value:function(e,t){return arguments.length<=1?a.parseText(e):a.parseTextFormatter(e,t)}},{key:"parseText",value:function(e){return N(e,"text"),a.parse(e,Ft)}},{key:"parseTextFormatter",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Ft;return N(e,"text"),N(n,"formatter"),D(n,Tt,"formatter"),n.parse(e,a.FROM)}},{key:"isLeap",value:function(e){return 0===M.intMod(e,4)&&(0!==M.intMod(e,100)||0===M.intMod(e,400))}}]),a}();var Ct=(y(Lt,[{key:"adjustInto",value:function(e){o("adjustInto")}}]),Lt);function Lt(){f(this,Lt)}var Pt=(y(Ut,null,[{key:"firstDayOfMonth",value:function(){return Vt.FIRST_DAY_OF_MONTH}},{key:"lastDayOfMonth",value:function(){return Vt.LAST_DAY_OF_MONTH}},{key:"firstDayOfNextMonth",value:function(){return Vt.FIRST_DAY_OF_NEXT_MONTH}},{key:"firstDayOfYear",value:function(){return Vt.FIRST_DAY_OF_YEAR}},{key:"lastDayOfYear",value:function(){return Vt.LAST_DAY_OF_YEAR}},{key:"firstDayOfNextYear",value:function(){return Vt.FIRST_DAY_OF_NEXT_YEAR}},{key:"firstInMonth",value:function(e){return N(e,"dayOfWeek"),new bt(1,e)}},{key:"lastInMonth",value:function(e){return N(e,"dayOfWeek"),new bt(-1,e)}},{key:"dayOfWeekInMonth",value:function(e,t){return N(t,"dayOfWeek"),new bt(e,t)}},{key:"next",value:function(e){return new Ht(2,e)}},{key:"nextOrSame",value:function(e){return new Ht(0,e)}},{key:"previous",value:function(e){return new Ht(3,e)}},{key:"previousOrSame",value:function(e){return new Ht(1,e)}}]),Ut);function Ut(){f(this,Ut)}var Vt=function(){p(i,Ct);var n=S(i);function i(e){var t;return f(this,i),(t=n.call(this))._ordinal=e,t}return y(i,[{key:"adjustInto",value:function(e){switch(this._ordinal){case 0:return e.with(q.DAY_OF_MONTH,1);case 1:return e.with(q.DAY_OF_MONTH,e.range(q.DAY_OF_MONTH).maximum());case 2:return e.with(q.DAY_OF_MONTH,1).plus(1,b.MONTHS);case 3:return e.with(q.DAY_OF_YEAR,1);case 4:return e.with(q.DAY_OF_YEAR,e.range(q.DAY_OF_YEAR).maximum());case 5:return e.with(q.DAY_OF_YEAR,1).plus(1,b.YEARS)}throw new r("Unreachable")}}]),i}();Vt.FIRST_DAY_OF_MONTH=new Vt(0),Vt.LAST_DAY_OF_MONTH=new Vt(1),Vt.FIRST_DAY_OF_NEXT_MONTH=new Vt(2),Vt.FIRST_DAY_OF_YEAR=new Vt(3),Vt.LAST_DAY_OF_YEAR=new Vt(4),Vt.FIRST_DAY_OF_NEXT_YEAR=new Vt(5);var bt=function(){p(a,Ct);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._ordinal=e,n._dowValue=t.value(),n}return y(a,[{key:"adjustInto",value:function(e){if(0<=this._ordinal){var t=e.with(q.DAY_OF_MONTH,1),n=t.get(q.DAY_OF_WEEK),i=M.intMod(this._dowValue-n+7,7);return i+=7*(this._ordinal-1),t.plus(i,b.DAYS)}var a=e.with(q.DAY_OF_MONTH,e.range(q.DAY_OF_MONTH).maximum()),r=a.get(q.DAY_OF_WEEK),s=this._dowValue-r;return s=0===s?0:0<s?s-7:s,s-=7*(-this._ordinal-1),a.plus(s,b.DAYS)}}]),a}(),Ht=function(){p(a,Ct);var i=S(a);function a(e,t){var n;return f(this,a),n=i.call(this),N(t,"dayOfWeek"),n._relative=e,n._dowValue=t.value(),n}return y(a,[{key:"adjustInto",value:function(e){var t=e.get(q.DAY_OF_WEEK);if(this._relative<2&&t===this._dowValue)return e;if(0==(1&this._relative)){var n=t-this._dowValue;return e.plus(0<=n?7-n:-n,b.DAYS)}var i=this._dowValue-t;return e.minus(0<=i?7-i:-i,b.DAYS)}}]),a}(),Wt=function(){p(t,I);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"_updateResolveMap",value:function(e,t,n){N(e,"fieldValues"),N(t,"field");var i=e.get(t);if(null!=i&&i!==n)throw new T("Invalid state, field: ".concat(t," ").concat(i," conflicts with ").concat(t," ").concat(n));e.put(t,n)}},{key:"resolveDate",value:function(e,t){if(e.containsKey(q.EPOCH_DAY))return Kt.ofEpochDay(e.remove(q.EPOCH_DAY));var n=e.remove(q.PROLEPTIC_MONTH);null!=n&&(t!==oe.LENIENT&&q.PROLEPTIC_MONTH.checkValidValue(n),this._updateResolveMap(e,q.MONTH_OF_YEAR,M.floorMod(n,12)+1),this._updateResolveMap(e,q.YEAR,M.floorDiv(n,12)));var i=e.remove(q.YEAR_OF_ERA);if(null!=i){t!==oe.LENIENT&&q.YEAR_OF_ERA.checkValidValue(i);var a=e.remove(q.ERA);if(null==a){var r=e.get(q.YEAR);t===oe.STRICT?null!=r?this._updateResolveMap(e,q.YEAR,0<r?i:M.safeSubtract(1,i)):e.put(q.YEAR_OF_ERA,i):this._updateResolveMap(e,q.YEAR,null==r||0<r?i:M.safeSubtract(1,i))}else if(1===a)this._updateResolveMap(e,q.YEAR,i);else{if(0!==a)throw new T("Invalid value for era: ".concat(a));this._updateResolveMap(e,q.YEAR,M.safeSubtract(1,i))}}else e.containsKey(q.ERA)&&q.ERA.checkValidValue(e.get(q.ERA));if(e.containsKey(q.YEAR)){if(e.containsKey(q.MONTH_OF_YEAR)&&e.containsKey(q.DAY_OF_MONTH)){var s=q.YEAR.checkValidIntValue(e.remove(q.YEAR)),o=e.remove(q.MONTH_OF_YEAR),u=e.remove(q.DAY_OF_MONTH);if(t!==oe.LENIENT)return t===oe.SMART&&(q.DAY_OF_MONTH.checkValidValue(u),4===o||6===o||9===o||11===o?u=Math.min(u,30):2===o&&(u=Math.min(u,ee.FEBRUARY.length(Yt.isLeap(s))))),Kt.of(s,o,u);var l=o-1,h=u-1;return Kt.of(s,1,1).plusMonths(l).plusDays(h)}if(e.containsKey(q.DAY_OF_YEAR)){var c=q.YEAR.checkValidIntValue(e.remove(q.YEAR));if(t===oe.LENIENT){var f=M.safeSubtract(e.remove(q.DAY_OF_YEAR),1);return Kt.ofYearDay(c,1).plusDays(f)}var _=q.DAY_OF_YEAR.checkValidIntValue(e.remove(q.DAY_OF_YEAR));return Kt.ofYearDay(c,_)}if(e.containsKey(q.ALIGNED_WEEK_OF_YEAR)){if(e.containsKey(q.ALIGNED_DAY_OF_WEEK_IN_YEAR)){var d=q.YEAR.checkValidIntValue(e.remove(q.YEAR));if(t===oe.LENIENT){var v=M.safeSubtract(e.remove(q.ALIGNED_WEEK_OF_YEAR),1),y=M.safeSubtract(e.remove(q.ALIGNED_DAY_OF_WEEK_IN_YEAR),1);return Kt.of(d,1,1).plusWeeks(v).plusDays(y)}var p=q.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(e.remove(q.ALIGNED_WEEK_OF_YEAR)),O=q.ALIGNED_DAY_OF_WEEK_IN_YEAR.checkValidIntValue(e.remove(q.ALIGNED_DAY_OF_WEEK_IN_YEAR)),E=Kt.of(d,1,1).plusDays(7*(p-1)+(O-1));if(t===oe.STRICT&&E.get(q.YEAR)!==d)throw new T("Strict mode rejected date parsed to a different year");return E}if(e.containsKey(q.DAY_OF_WEEK)){var S=q.YEAR.checkValidIntValue(e.remove(q.YEAR));if(t===oe.LENIENT){var m=M.safeSubtract(e.remove(q.ALIGNED_WEEK_OF_YEAR),1),k=M.safeSubtract(e.remove(q.DAY_OF_WEEK),1);return Kt.of(S,1,1).plusWeeks(m).plusDays(k)}var N=q.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(e.remove(q.ALIGNED_WEEK_OF_YEAR)),D=q.DAY_OF_WEEK.checkValidIntValue(e.remove(q.DAY_OF_WEEK)),A=Kt.of(S,1,1).plusWeeks(N-1).with(Pt.nextOrSame(Q.of(D)));if(t===oe.STRICT&&A.get(q.YEAR)!==S)throw new T("Strict mode rejected date parsed to a different month");return A}}}return null}},{key:"date",value:function(e){return Kt.from(e)}}],[{key:"isLeapYear",value:function(e){return 0==(3&e)&&(e%100!=0||e%400==0)}}]),t}();var xt=function(){p(r,ue);var i=S(r);function r(e,t){var n;return f(this,r),n=i.call(this),N(e,"time"),D(e,Xt,"time"),N(t,"offset"),D(t,Ee,"offset"),n._time=e,n._offset=t,n}return y(r,[{key:"adjustInto",value:function(e){return e.with(q.NANO_OF_DAY,this._time.toNanoOfDay()).with(q.OFFSET_SECONDS,this.offset().totalSeconds())}},{key:"atDate",value:function(e){return Zt.of(e,this._time,this._offset)}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this,r.FROM)}},{key:"get",value:function(e){return m(d(r.prototype),"get",this).call(this,e)}},{key:"getLong",value:function(e){return e instanceof q?e===q.OFFSET_SECONDS?this._offset.totalSeconds():this._time.getLong(e):e.getFrom(this)}},{key:"hour",value:function(){return this._time.hour()}},{key:"minute",value:function(){return this._time.minute()}},{key:"second",value:function(){return this._time.second()}},{key:"nano",value:function(){return this._time.nano()}},{key:"offset",value:function(){return this._offset}},{key:"isAfter",value:function(e){return N(e,"other"),this._toEpochNano()>e._toEpochNano()}},{key:"isBefore",value:function(e){return N(e,"other"),this._toEpochNano()<e._toEpochNano()}},{key:"isEqual",value:function(e){return N(e,"other"),this._toEpochNano()===e._toEpochNano()}},{key:"isSupported",value:function(e){return e instanceof q?e.isTimeBased()||e===q.OFFSET_SECONDS:e instanceof b?e.isTimeBased():null!=e&&e.isSupportedBy(this)}},{key:"minusHours",value:function(e){return this._withLocalTimeOffset(this._time.minusHours(e),this._offset)}},{key:"minusMinutes",value:function(e){return this._withLocalTimeOffset(this._time.minusMinutes(e),this._offset)}},{key:"minusSeconds",value:function(e){return this._withLocalTimeOffset(this._time.minusSeconds(e),this._offset)}},{key:"minusNanos",value:function(e){return this._withLocalTimeOffset(this._time.minusNanos(e),this._offset)}},{key:"_minusAmount",value:function(e){return N(e),e.subtractFrom(this)}},{key:"_minusUnit",value:function(e,t){return this.plus(-1*e,t)}},{key:"_plusAmount",value:function(e){return N(e),e.addTo(this)}},{key:"_plusUnit",value:function(e,t){return t instanceof b?this._withLocalTimeOffset(this._time.plus(e,t),this._offset):t.addTo(this,e)}},{key:"plusHours",value:function(e){return this._withLocalTimeOffset(this._time.plusHours(e),this._offset)}},{key:"plusMinutes",value:function(e){return this._withLocalTimeOffset(this._time.plusMinutes(e),this._offset)}},{key:"plusSeconds",value:function(e){return this._withLocalTimeOffset(this._time.plusSeconds(e),this._offset)}},{key:"plusNanos",value:function(e){return this._withLocalTimeOffset(this._time.plusNanos(e),this._offset)}},{key:"query",value:function(e){return N(e,"query"),e===Z.precision()?b.NANOS:e===Z.offset()||e===Z.zone()?this.offset():e===Z.localTime()?this._time:e===Z.chronology()||e===Z.localDate()||e===Z.zoneId()?null:m(d(r.prototype),"query",this).call(this,e)}},{key:"range",value:function(e){return e instanceof q?e===q.OFFSET_SECONDS?e.range():this._time.range(e):e.rangeRefinedBy(this)}},{key:"toLocalTime",value:function(){return this._time}},{key:"truncatedTo",value:function(e){return this._withLocalTimeOffset(this._time.truncatedTo(e),this._offset)}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit");var n=r.from(e);if(t instanceof b){var i=n._toEpochNano()-this._toEpochNano();switch(t){case b.NANOS:return i;case b.MICROS:return Math.floor(i/1e3);case b.MILLIS:return Math.floor(i/1e6);case b.SECONDS:return Math.floor(i/Xt.NANOS_PER_SECOND);case b.MINUTES:return Math.floor(i/Xt.NANOS_PER_MINUTE);case b.HOURS:return Math.floor(i/Xt.NANOS_PER_HOUR);case b.HALF_DAYS:return Math.floor(i/(12*Xt.NANOS_PER_HOUR))}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"withHour",value:function(e){return this._withLocalTimeOffset(this._time.withHour(e),this._offset)}},{key:"withMinute",value:function(e){return this._withLocalTimeOffset(this._time.withMinute(e),this._offset)}},{key:"withSecond",value:function(e){return this._withLocalTimeOffset(this._time.withSecond(e),this._offset)}},{key:"withNano",value:function(e){return this._withLocalTimeOffset(this._time.withNano(e),this._offset)}},{key:"withOffsetSameInstant",value:function(e){if(N(e,"offset"),e.equals(this._offset))return this;var t=e.totalSeconds()-this._offset.totalSeconds();return new r(this._time.plusSeconds(t),e)}},{key:"withOffsetSameLocal",value:function(e){return null!=e&&e.equals(this._offset)?this:new r(this._time,e)}},{key:"_toEpochNano",value:function(){return this._time.toNanoOfDay()-this._offset.totalSeconds()*Xt.NANOS_PER_SECOND}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),e instanceof Xt?this._withLocalTimeOffset(e,this._offset):e instanceof Ee?this._withLocalTimeOffset(this._time,e):e instanceof r?e:e.adjustInto(this)}},{key:"_withField",value:function(e,t){return N(e,"field"),e instanceof q?e===q.OFFSET_SECONDS?this._withLocalTimeOffset(this._time,Ee.ofTotalSeconds(e.checkValidIntValue(t))):this._withLocalTimeOffset(this._time.with(e,t),this._offset):e.adjustInto(this,t)}},{key:"_withLocalTimeOffset",value:function(e,t){return this._time===e&&this._offset.equals(t)?this:new r(e,t)}},{key:"compareTo",value:function(e){if(N(e,"other"),D(e,r,"other"),this._offset.equals(e._offset))return this._time.compareTo(e._time);var t=M.compareNumbers(this._toEpochNano(),e._toEpochNano());return 0===t?this._time.compareTo(e._time):t}},{key:"equals",value:function(e){return this===e||e instanceof r&&(this._time.equals(e._time)&&this._offset.equals(e._offset))}},{key:"hashCode",value:function(){return this._time.hashCode()^this._offset.hashCode()}},{key:"toString",value:function(){return this._time.toString()+this._offset.toString()}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"from",value:function(t){if(N(t,"temporal"),t instanceof r)return t;if(t instanceof Zt)return t.toOffsetTime();try{return new r(Xt.from(t),Ee.from(t))}catch(e){throw new T("Unable to obtain OffsetTime TemporalAccessor: ".concat(t,", type ").concat(null!=t.constructor?t.constructor.name:""))}}},{key:"now",value:function(e){return r._now(0===arguments.length?Qt.systemDefaultZone():e instanceof Qt?e:Qt.system(e))}},{key:"_now",value:function(e){N(e,"clock");var t=e.instant();return r.ofInstant(t,e.zone().rules().offset(t))}},{key:"of",value:function(){return arguments.length<=2?r.ofTimeAndOffset.apply(this,arguments):r.ofNumbers.apply(this,arguments)}},{key:"ofNumbers",value:function(e,t,n,i,a){return new r(Xt.of(e,t,n,i),a)}},{key:"ofTimeAndOffset",value:function(e,t){return new r(e,t)}},{key:"ofInstant",value:function(e,t){N(e,"instant"),D(e,Jt,"instant"),N(t,"zone"),D(t,fe,"zone");var n=t.rules().offset(e),i=e.epochSecond()%Xt.SECONDS_PER_DAY;return(i=(i+n.totalSeconds())%Xt.SECONDS_PER_DAY)<0&&(i+=Xt.SECONDS_PER_DAY),new r(Xt.ofSecondOfDay(i,e.nano()),n)}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_OFFSET_TIME;return N(n,"formatter"),n.parse(e,r.FROM)}}]),r}();var Bt=function(){p(t,ue);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"query",value:function(e){return e===Z.zoneId()||e===Z.zone()?this.zone():e===Z.chronology()?this.toLocalDate().chronology():e===Z.precision()?b.NANOS:e===Z.offset()?this.offset():e===Z.localDate()?Kt.ofEpochDay(this.toLocalDate().toEpochDay()):e===Z.localTime()?this.toLocalTime():m(d(t.prototype),"query",this).call(this,e)}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}},{key:"toInstant",value:function(){return Jt.ofEpochSecond(this.toEpochSecond(),this.toLocalTime().nano())}},{key:"toEpochSecond",value:function(){var e=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return e-=this.offset().totalSeconds()}},{key:"compareTo",value:function(e){N(e,"other");var t=M.compareNumbers(this.toEpochSecond(),e.toEpochSecond());return 0===t&&0===(t=this.toLocalTime().nano()-e.toLocalTime().nano())&&0===(t=this.toLocalDateTime().compareTo(e.toLocalDateTime()))&&(t=function(e,t){if(e<t)return-1;if(t<e)return 1;return 0}(this.zone().id(),e.zone().id())),t}},{key:"isAfter",value:function(e){N(e,"other");var t=this.toEpochSecond(),n=e.toEpochSecond();return n<t||t===n&&this.toLocalTime().nano()>e.toLocalTime().nano()}},{key:"isBefore",value:function(e){N(e,"other");var t=this.toEpochSecond(),n=e.toEpochSecond();return t<n||t===n&&this.toLocalTime().nano()<e.toLocalTime().nano()}},{key:"isEqual",value:function(e){return N(e,"other"),this.toEpochSecond()===e.toEpochSecond()&&this.toLocalTime().nano()===e.toLocalTime().nano()}},{key:"equals",value:function(e){return this===e||e instanceof t&&0===this.compareTo(e)}}]),t}();var qt=function(){p(l,Bt);var a=S(l);function l(e,t,n){var i;return f(this,l),N(e,"dateTime"),N(t,"offset"),N(n,"zone"),(i=a.call(this))._dateTime=e,i._offset=t,i._zone=n,i}return y(l,[{key:"_resolveLocal",value:function(e){return N(e,"newDateTime"),l.ofLocal(e,this._zone,this._offset)}},{key:"_resolveInstant",value:function(e){return l.ofInstant3(e,this._offset,this._zone)}},{key:"_resolveOffset",value:function(e){return!1===e.equals(this._offset)&&this._zone.rules().isValidOffset(this._dateTime,e)?new l(this._dateTime,e,this._zone):this}},{key:"isSupported",value:function(e){return e instanceof q||(e instanceof b?e.isDateBased()||e.isTimeBased():null!=e&&e.isSupportedBy(this))}},{key:"range",value:function(e){return e instanceof q?e===q.INSTANT_SECONDS||e===q.OFFSET_SECONDS?e.range():this._dateTime.range(e):e.rangeRefinedBy(this)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){if(e instanceof q){switch(e){case q.INSTANT_SECONDS:return this.toEpochSecond();case q.OFFSET_SECONDS:return this._offset.totalSeconds()}return this._dateTime.getLong(e)}return N(e,"field"),e.getFrom(this)}},{key:"offset",value:function(){return this._offset}},{key:"withEarlierOffsetAtOverlap",value:function(){var e=this._zone.rules().transition(this._dateTime);if(null!=e&&e.isOverlap()){var t=e.offsetBefore();if(!1===t.equals(this._offset))return new l(this._dateTime,t,this._zone)}return this}},{key:"withLaterOffsetAtOverlap",value:function(){var e=this._zone.rules().transition(this.toLocalDateTime());if(null!=e){var t=e.offsetAfter();if(!1===t.equals(this._offset))return new l(this._dateTime,t,this._zone)}return this}},{key:"zone",value:function(){return this._zone}},{key:"withZoneSameLocal",value:function(e){return N(e,"zone"),this._zone.equals(e)?this:l.ofLocal(this._dateTime,e,this._offset)}},{key:"withZoneSameInstant",value:function(e){return N(e,"zone"),this._zone.equals(e)?this:l._create(this._dateTime.toEpochSecond(this._offset),this._dateTime.nano(),e)}},{key:"withFixedOffsetZone",value:function(){return this._zone.equals(this._offset)?this:new l(this._dateTime,this._offset,this._offset)}},{key:"year",value:function(){return this._dateTime.year()}},{key:"monthValue",value:function(){return this._dateTime.monthValue()}},{key:"month",value:function(){return this._dateTime.month()}},{key:"dayOfMonth",value:function(){return this._dateTime.dayOfMonth()}},{key:"dayOfYear",value:function(){return this._dateTime.dayOfYear()}},{key:"dayOfWeek",value:function(){return this._dateTime.dayOfWeek()}},{key:"hour",value:function(){return this._dateTime.hour()}},{key:"minute",value:function(){return this._dateTime.minute()}},{key:"second",value:function(){return this._dateTime.second()}},{key:"nano",value:function(){return this._dateTime.nano()}},{key:"_withAdjuster",value:function(e){if(e instanceof Kt)return this._resolveLocal(Gt.of(e,this._dateTime.toLocalTime()));if(e instanceof Xt)return this._resolveLocal(Gt.of(this._dateTime.toLocalDate(),e));if(e instanceof Gt)return this._resolveLocal(e);if(e instanceof Jt){var t=e;return l._create(t.epochSecond(),t.nano(),this._zone)}return e instanceof Ee?this._resolveOffset(e):m(d(l.prototype),"_withAdjuster",this).call(this,e)}},{key:"_withField",value:function(e,t){if(e instanceof q){switch(e){case q.INSTANT_SECONDS:return l._create(t,this.nano(),this._zone);case q.OFFSET_SECONDS:var n=Ee.ofTotalSeconds(e.checkValidIntValue(t));return this._resolveOffset(n)}return this._resolveLocal(this._dateTime.with(e,t))}return e.adjustInto(this,t)}},{key:"withYear",value:function(e){return this._resolveLocal(this._dateTime.withYear(e))}},{key:"withMonth",value:function(e){return this._resolveLocal(this._dateTime.withMonth(e))}},{key:"withDayOfMonth",value:function(e){return this._resolveLocal(this._dateTime.withDayOfMonth(e))}},{key:"withDayOfYear",value:function(e){return this._resolveLocal(this._dateTime.withDayOfYear(e))}},{key:"withHour",value:function(e){return this._resolveLocal(this._dateTime.withHour(e))}},{key:"withMinute",value:function(e){return this._resolveLocal(this._dateTime.withMinute(e))}},{key:"withSecond",value:function(e){return this._resolveLocal(this._dateTime.withSecond(e))}},{key:"withNano",value:function(e){return this._resolveLocal(this._dateTime.withNano(e))}},{key:"truncatedTo",value:function(e){return this._resolveLocal(this._dateTime.truncatedTo(e))}},{key:"_plusUnit",value:function(e,t){return t instanceof b?t.isDateBased()?this._resolveLocal(this._dateTime.plus(e,t)):this._resolveInstant(this._dateTime.plus(e,t)):(N(t,"unit"),t.addTo(this,e))}},{key:"plusYears",value:function(e){return this._resolveLocal(this._dateTime.plusYears(e))}},{key:"plusMonths",value:function(e){return this._resolveLocal(this._dateTime.plusMonths(e))}},{key:"plusWeeks",value:function(e){return this._resolveLocal(this._dateTime.plusWeeks(e))}},{key:"plusDays",value:function(e){return this._resolveLocal(this._dateTime.plusDays(e))}},{key:"plusHours",value:function(e){return this._resolveInstant(this._dateTime.plusHours(e))}},{key:"plusMinutes",value:function(e){return this._resolveInstant(this._dateTime.plusMinutes(e))}},{key:"plusSeconds",value:function(e){return this._resolveInstant(this._dateTime.plusSeconds(e))}},{key:"plusNanos",value:function(e){return this._resolveInstant(this._dateTime.plusNanos(e))}},{key:"_minusUnit",value:function(e,t){return this._plusUnit(-1*e,t)}},{key:"minusYears",value:function(e){return this.plusYears(-1*e)}},{key:"minusMonths",value:function(e){return this.plusMonths(-1*e)}},{key:"minusWeeks",value:function(e){return this.plusWeeks(-1*e)}},{key:"minusDays",value:function(e){return this.plusDays(-1*e)}},{key:"minusHours",value:function(e){return this.plusHours(-1*e)}},{key:"minusMinutes",value:function(e){return this.plusMinutes(-1*e)}},{key:"minusSeconds",value:function(e){return this.plusSeconds(-1*e)}},{key:"minusNanos",value:function(e){return this.plusNanos(-1*e)}},{key:"query",value:function(e){return e===Z.localDate()?this.toLocalDate():(N(e,"query"),m(d(l.prototype),"query",this).call(this,e))}},{key:"until",value:function(e,t){var n=l.from(e);if(t instanceof b){if(n=n.withZoneSameInstant(this._zone),t.isDateBased())return this._dateTime.until(n._dateTime,t);var i=this._offset.totalSeconds()-n._offset.totalSeconds(),a=n._dateTime.plusSeconds(i);return this._dateTime.until(a,t)}return t.between(this,n)}},{key:"toLocalDateTime",value:function(){return this._dateTime}},{key:"toLocalDate",value:function(){return this._dateTime.toLocalDate()}},{key:"toLocalTime",value:function(){return this._dateTime.toLocalTime()}},{key:"toOffsetDateTime",value:function(){return Zt.of(this._dateTime,this._offset)}},{key:"equals",value:function(e){return this===e||e instanceof l&&(this._dateTime.equals(e._dateTime)&&this._offset.equals(e._offset)&&this._zone.equals(e._zone))}},{key:"hashCode",value:function(){return M.hashCode(this._dateTime.hashCode(),this._offset.hashCode(),this._zone.hashCode())}},{key:"toString",value:function(){var e=this._dateTime.toString()+this._offset.toString();return this._offset!==this._zone&&(e+="[".concat(this._zone.toString(),"]")),e}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return m(d(l.prototype),"format",this).call(this,e)}}],[{key:"now",value:function(e){var t;return t=e instanceof fe?Qt.system(e):null==e?Qt.systemDefaultZone():e,l.ofInstant(t.instant(),t.zone())}},{key:"of",value:function(e){return arguments.length<=2?l.of2.apply(this,arguments):3===arguments.length&&e instanceof Kt?l.of3.apply(this,arguments):l.of8.apply(this,arguments)}},{key:"of3",value:function(e,t,n){return l.of2(Gt.of(e,t),n)}},{key:"of2",value:function(e,t){return l.ofLocal(e,t,null)}},{key:"of8",value:function(e,t,n,i,a,r,s,o){var u=Gt.of(e,t,n,i,a,r,s);return l.ofLocal(u,o,null)}},{key:"ofLocal",value:function(e,t,n){if(N(e,"localDateTime"),N(t,"zone"),t instanceof Ee)return new l(e,t,t);var i=null,a=t.rules(),r=a.validOffsets(e);if(1===r.length)i=r[0];else if(0===r.length){var s=a.transition(e);e=e.plusSeconds(s.duration().seconds()),i=s.offsetAfter()}else i=null!=n&&r.some(function(e){return e.equals(n)})?n:N(r[0],"offset");return new l(e,i,t)}},{key:"ofInstant",value:function(){return 2===arguments.length?l.ofInstant2.apply(this,arguments):l.ofInstant3.apply(this,arguments)}},{key:"ofInstant2",value:function(e,t){return N(e,"instant"),N(t,"zone"),l._create(e.epochSecond(),e.nano(),t)}},{key:"ofInstant3",value:function(e,t,n){return N(e,"localDateTime"),N(t,"offset"),N(n,"zone"),l._create(e.toEpochSecond(t),e.nano(),n)}},{key:"_create",value:function(e,t,n){var i=n.rules(),a=Jt.ofEpochSecond(e,t),r=i.offset(a);return new l(Gt.ofEpochSecond(e,t,r),r,n)}},{key:"ofStrict",value:function(e,t,n){N(e,"localDateTime"),N(t,"offset"),N(n,"zone");var i=n.rules();if(!1!==i.isValidOffset(e,t))return new l(e,t,n);var a=i.transition(e);if(null!=a&&a.isGap())throw new T("LocalDateTime ".concat(e," does not exist in zone ").concat(n," due to a gap in the local time-line, typically caused by daylight savings"));throw new T('ZoneOffset "'.concat(t,'" is not valid for LocalDateTime "').concat(e,'" in zone "').concat(n,'"'))}},{key:"ofLenient",value:function(e,t,n){if(N(e,"localDateTime"),N(t,"offset"),N(n,"zone"),n instanceof Ee&&!1===t.equals(n))throw new c("ZoneId must match ZoneOffset");return new l(e,t,n)}},{key:"from",value:function(e){if(N(e,"temporal"),e instanceof l)return e;var t=fe.from(e);if(e.isSupported(q.INSTANT_SECONDS)){var n=l._from(e,t);if(null!=n)return n}var i=Gt.from(e);return l.of2(i,t)}},{key:"_from",value:function(e,t){try{return l.__from(e,t)}catch(e){if(!(e instanceof T))throw e}}},{key:"__from",value:function(e,t){var n=e.getLong(q.INSTANT_SECONDS),i=e.get(q.NANO_OF_SECOND);return l._create(n,i,t)}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_ZONED_DATE_TIME;return N(n,"formatter"),n.parse(e,l.FROM)}}]),l}();var Zt=function(){p(_,ue);var i=S(_);function _(e,t){var n;return f(this,_),n=i.call(this),N(e,"dateTime"),D(e,Gt,"dateTime"),N(t,"offset"),D(t,Ee,"offset"),n._dateTime=e,n._offset=t,n}return y(_,[{key:"adjustInto",value:function(e){return e.with(q.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(q.NANO_OF_DAY,this.toLocalTime().toNanoOfDay()).with(q.OFFSET_SECONDS,this.offset().totalSeconds())}},{key:"until",value:function(e,t){var n=_.from(e);return t instanceof b?(n=n.withOffsetSameInstant(this._offset),this._dateTime.until(n._dateTime,t)):t.between(this,n)}},{key:"atZoneSameInstant",value:function(e){return qt.ofInstant(this._dateTime,this._offset,e)}},{key:"atZoneSimilarLocal",value:function(e){return qt.ofLocal(this._dateTime,e,this._offset)}},{key:"query",value:function(e){return N(e,"query"),e===Z.chronology()?Wt.INSTANCE:e===Z.precision()?b.NANOS:e===Z.offset()||e===Z.zone()?this.offset():e===Z.localDate()?this.toLocalDate():e===Z.localTime()?this.toLocalTime():e===Z.zoneId()?null:m(d(_.prototype),"query",this).call(this,e)}},{key:"get",value:function(e){if(e instanceof q){switch(e){case q.INSTANT_SECONDS:throw new T("Field too large for an int: ".concat(e));case q.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.get(e)}return m(d(_.prototype),"get",this).call(this,e)}},{key:"getLong",value:function(e){if(e instanceof q){switch(e){case q.INSTANT_SECONDS:return this.toEpochSecond();case q.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.getLong(e)}return e.getFrom(this)}},{key:"offset",value:function(){return this._offset}},{key:"year",value:function(){return this._dateTime.year()}},{key:"monthValue",value:function(){return this._dateTime.monthValue()}},{key:"month",value:function(){return this._dateTime.month()}},{key:"dayOfMonth",value:function(){return this._dateTime.dayOfMonth()}},{key:"dayOfYear",value:function(){return this._dateTime.dayOfYear()}},{key:"dayOfWeek",value:function(){return this._dateTime.dayOfWeek()}},{key:"hour",value:function(){return this._dateTime.hour()}},{key:"minute",value:function(){return this._dateTime.minute()}},{key:"second",value:function(){return this._dateTime.second()}},{key:"nano",value:function(){return this._dateTime.nano()}},{key:"toLocalDateTime",value:function(){return this._dateTime}},{key:"toLocalDate",value:function(){return this._dateTime.toLocalDate()}},{key:"toLocalTime",value:function(){return this._dateTime.toLocalTime()}},{key:"toOffsetTime",value:function(){return xt.of(this._dateTime.toLocalTime(),this._offset)}},{key:"toZonedDateTime",value:function(){return qt.of(this._dateTime,this._offset)}},{key:"toInstant",value:function(){return this._dateTime.toInstant(this._offset)}},{key:"toEpochSecond",value:function(){return this._dateTime.toEpochSecond(this._offset)}},{key:"isSupported",value:function(e){return e instanceof q?e.isDateBased()||e.isTimeBased():e instanceof b?e.isDateBased()||e.isTimeBased():null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return e instanceof q?e===q.INSTANT_SECONDS||e===q.OFFSET_SECONDS?e.range():this._dateTime.range(e):e.rangeRefinedBy(this)}},{key:"_withAdjuster",value:function(e){return N(e),e instanceof Kt||e instanceof Xt||e instanceof Gt?this._withDateTimeOffset(this._dateTime.with(e),this._offset):e instanceof Jt?_.ofInstant(e,this._offset):e instanceof Ee?this._withDateTimeOffset(this._dateTime,e):e instanceof _?e:e.adjustInto(this)}},{key:"_withField",value:function(e,t){if(N(e),e instanceof q){var n=e;switch(n){case q.INSTANT_SECONDS:return _.ofInstant(Jt.ofEpochSecond(t,this.nano()),this._offset);case q.OFFSET_SECONDS:return this._withDateTimeOffset(this._dateTime,Ee.ofTotalSeconds(n.checkValidIntValue(t)))}return this._withDateTimeOffset(this._dateTime.with(e,t),this._offset)}return e.adjustInto(this,t)}},{key:"_withDateTimeOffset",value:function(e,t){return this._dateTime===e&&this._offset.equals(t)?this:new _(e,t)}},{key:"withYear",value:function(e){return this._withDateTimeOffset(this._dateTime.withYear(e),this._offset)}},{key:"withMonth",value:function(e){return this._withDateTimeOffset(this._dateTime.withMonth(e),this._offset)}},{key:"withDayOfMonth",value:function(e){return this._withDateTimeOffset(this._dateTime.withDayOfMonth(e),this._offset)}},{key:"withDayOfYear",value:function(e){return this._withDateTimeOffset(this._dateTime.withDayOfYear(e),this._offset)}},{key:"withHour",value:function(e){return this._withDateTimeOffset(this._dateTime.withHour(e),this._offset)}},{key:"withMinute",value:function(e){return this._withDateTimeOffset(this._dateTime.withMinute(e),this._offset)}},{key:"withSecond",value:function(e){return this._withDateTimeOffset(this._dateTime.withSecond(e),this._offset)}},{key:"withNano",value:function(e){return this._withDateTimeOffset(this._dateTime.withNano(e),this._offset)}},{key:"withOffsetSameLocal",value:function(e){return N(e,"offset"),this._withDateTimeOffset(this._dateTime,e)}},{key:"withOffsetSameInstant",value:function(e){if(N(e,"offset"),e.equals(this._offset))return this;var t=e.totalSeconds()-this._offset.totalSeconds();return new _(this._dateTime.plusSeconds(t),e)}},{key:"truncatedTo",value:function(e){return this._withDateTimeOffset(this._dateTime.truncatedTo(e),this._offset)}},{key:"_plusAmount",value:function(e){return N(e,"amount"),e.addTo(this)}},{key:"_plusUnit",value:function(e,t){return t instanceof b?this._withDateTimeOffset(this._dateTime.plus(e,t),this._offset):t.addTo(this,e)}},{key:"plusYears",value:function(e){return this._withDateTimeOffset(this._dateTime.plusYears(e),this._offset)}},{key:"plusMonths",value:function(e){return this._withDateTimeOffset(this._dateTime.plusMonths(e),this._offset)}},{key:"plusWeeks",value:function(e){return this._withDateTimeOffset(this._dateTime.plusWeeks(e),this._offset)}},{key:"plusDays",value:function(e){return this._withDateTimeOffset(this._dateTime.plusDays(e),this._offset)}},{key:"plusHours",value:function(e){return this._withDateTimeOffset(this._dateTime.plusHours(e),this._offset)}},{key:"plusMinutes",value:function(e){return this._withDateTimeOffset(this._dateTime.plusMinutes(e),this._offset)}},{key:"plusSeconds",value:function(e){return this._withDateTimeOffset(this._dateTime.plusSeconds(e),this._offset)}},{key:"plusNanos",value:function(e){return this._withDateTimeOffset(this._dateTime.plusNanos(e),this._offset)}},{key:"_minusAmount",value:function(e){return N(e),e.subtractFrom(this)}},{key:"_minusUnit",value:function(e,t){return this.plus(-1*e,t)}},{key:"minusYears",value:function(e){return this._withDateTimeOffset(this._dateTime.minusYears(e),this._offset)}},{key:"minusMonths",value:function(e){return this._withDateTimeOffset(this._dateTime.minusMonths(e),this._offset)}},{key:"minusWeeks",value:function(e){return this._withDateTimeOffset(this._dateTime.minusWeeks(e),this._offset)}},{key:"minusDays",value:function(e){return this._withDateTimeOffset(this._dateTime.minusDays(e),this._offset)}},{key:"minusHours",value:function(e){return this._withDateTimeOffset(this._dateTime.minusHours(e),this._offset)}},{key:"minusMinutes",value:function(e){return this._withDateTimeOffset(this._dateTime.minusMinutes(e),this._offset)}},{key:"minusSeconds",value:function(e){return this._withDateTimeOffset(this._dateTime.minusSeconds(e),this._offset)}},{key:"minusNanos",value:function(e){return this._withDateTimeOffset(this._dateTime.minusNanos(e),this._offset)}},{key:"compareTo",value:function(e){if(N(e,"other"),D(e,_,"other"),this.offset().equals(e.offset()))return this.toLocalDateTime().compareTo(e.toLocalDateTime());var t=M.compareNumbers(this.toEpochSecond(),e.toEpochSecond());return 0===t&&0===(t=this.toLocalTime().nano()-e.toLocalTime().nano())&&(t=this.toLocalDateTime().compareTo(e.toLocalDateTime())),t}},{key:"isAfter",value:function(e){N(e,"other");var t=this.toEpochSecond(),n=e.toEpochSecond();return n<t||t===n&&this.toLocalTime().nano()>e.toLocalTime().nano()}},{key:"isBefore",value:function(e){N(e,"other");var t=this.toEpochSecond(),n=e.toEpochSecond();return t<n||t===n&&this.toLocalTime().nano()<e.toLocalTime().nano()}},{key:"isEqual",value:function(e){return N(e,"other"),this.toEpochSecond()===e.toEpochSecond()&&this.toLocalTime().nano()===e.toLocalTime().nano()}},{key:"equals",value:function(e){return this===e||e instanceof _&&(this._dateTime.equals(e._dateTime)&&this._offset.equals(e._offset))}},{key:"hashCode",value:function(){return this._dateTime.hashCode()^this._offset.hashCode()}},{key:"toString",value:function(){return this._dateTime.toString()+this._offset.toString()}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}}],[{key:"from",value:function(t){if(N(t,"temporal"),t instanceof _)return t;try{var n=Ee.from(t);try{var e=Gt.from(t);return _.of(e,n)}catch(e){var i=Jt.from(t);return _.ofInstant(i,n)}}catch(e){throw new T("Unable to obtain OffsetDateTime TemporalAccessor: ".concat(t,", type ").concat(null!=t.constructor?t.constructor.name:""))}}},{key:"now",value:function(e){if(0===arguments.length)return _.now(Qt.systemDefaultZone());if(N(e,"clockOrZone"),e instanceof fe)return _.now(Qt.system(e));if(e instanceof Qt){var t=e.instant();return _.ofInstant(t,e.zone().rules().offset(t))}throw new c("clockOrZone must be an instance of ZoneId or Clock")}},{key:"of",value:function(){return arguments.length<=2?_.ofDateTime.apply(this,arguments):3===arguments.length?_.ofDateAndTime.apply(this,arguments):_.ofNumbers.apply(this,arguments)}},{key:"ofDateTime",value:function(e,t){return new _(e,t)}},{key:"ofDateAndTime",value:function(e,t,n){return new _(Gt.of(e,t),n)}},{key:"ofNumbers",value:function(e,t,n,i,a,r,s,o){var u=3<arguments.length&&void 0!==i?i:0,l=4<arguments.length&&void 0!==a?a:0,h=5<arguments.length&&void 0!==r?r:0,c=6<arguments.length&&void 0!==s?s:0,f=7<arguments.length?o:void 0;return new _(Gt.of(e,t,n,u,l,h,c),f)}},{key:"ofInstant",value:function(e,t){N(e,"instant"),N(t,"zone");var n=t.rules().offset(e);return new _(Gt.ofEpochSecond(e.epochSecond(),e.nano(),n),n)}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_OFFSET_DATE_TIME;return N(n,"formatter"),n.parse(e,_.FROM)}}]),_}();var zt=146097,Kt=function(){p(h,le);var a=S(h);function h(e,t,n){var i;return f(this,h),i=a.call(this),N(e,"year"),N(t,"month"),N(n,"dayOfMonth"),t instanceof ee&&(t=t.value()),i._year=M.safeToInt(e),i._month=M.safeToInt(t),i._day=M.safeToInt(n),h._validate(i._year,i._month,i._day),i}return y(h,[{key:"isSupported",value:function(e){return m(d(h.prototype),"isSupported",this).call(this,e)}},{key:"range",value:function(e){if(e instanceof q){if(e.isDateBased()){switch(e){case q.DAY_OF_MONTH:return x.of(1,this.lengthOfMonth());case q.DAY_OF_YEAR:return x.of(1,this.lengthOfYear());case q.ALIGNED_WEEK_OF_MONTH:return x.of(1,this.month()===ee.FEBRUARY&&!1===this.isLeapYear()?4:5);case q.YEAR_OF_ERA:return this._year<=0?x.of(1,Yt.MAX_VALUE+1):x.of(1,Yt.MAX_VALUE)}return e.range()}throw new u("Unsupported field: ".concat(e))}return e.rangeRefinedBy(this)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){return k(null!=e,"",s),e instanceof q?this._get0(e):e.getFrom(this)}},{key:"_get0",value:function(e){switch(e){case q.DAY_OF_WEEK:return this.dayOfWeek().value();case q.ALIGNED_DAY_OF_WEEK_IN_MONTH:return M.intMod(this._day-1,7)+1;case q.ALIGNED_DAY_OF_WEEK_IN_YEAR:return M.intMod(this.dayOfYear()-1,7)+1;case q.DAY_OF_MONTH:return this._day;case q.DAY_OF_YEAR:return this.dayOfYear();case q.EPOCH_DAY:return this.toEpochDay();case q.ALIGNED_WEEK_OF_MONTH:return M.intDiv(this._day-1,7)+1;case q.ALIGNED_WEEK_OF_YEAR:return M.intDiv(this.dayOfYear()-1,7)+1;case q.MONTH_OF_YEAR:return this._month;case q.PROLEPTIC_MONTH:return this._prolepticMonth();case q.YEAR_OF_ERA:return 1<=this._year?this._year:1-this._year;case q.YEAR:return this._year;case q.ERA:return 1<=this._year?1:0}throw new u("Unsupported field: ".concat(e))}},{key:"_prolepticMonth",value:function(){return 12*this._year+(this._month-1)}},{key:"chronology",value:function(){return Wt.INSTANCE}},{key:"year",value:function(){return this._year}},{key:"monthValue",value:function(){return this._month}},{key:"month",value:function(){return ee.of(this._month)}},{key:"dayOfMonth",value:function(){return this._day}},{key:"dayOfYear",value:function(){return this.month().firstDayOfYear(this.isLeapYear())+this._day-1}},{key:"dayOfWeek",value:function(){var e=M.floorMod(this.toEpochDay()+3,7);return Q.of(e+1)}},{key:"isLeapYear",value:function(){return Wt.isLeapYear(this._year)}},{key:"lengthOfMonth",value:function(){switch(this._month){case 2:return this.isLeapYear()?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}},{key:"lengthOfYear",value:function(){return this.isLeapYear()?366:365}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),e instanceof h?e:m(d(h.prototype),"_withAdjuster",this).call(this,e)}},{key:"_withField",value:function(e,t){if(k(null!=e,"field",s),e instanceof q){var n=e;switch(n.checkValidValue(t),n){case q.DAY_OF_WEEK:return this.plusDays(t-this.dayOfWeek().value());case q.ALIGNED_DAY_OF_WEEK_IN_MONTH:return this.plusDays(t-this.getLong(q.ALIGNED_DAY_OF_WEEK_IN_MONTH));case q.ALIGNED_DAY_OF_WEEK_IN_YEAR:return this.plusDays(t-this.getLong(q.ALIGNED_DAY_OF_WEEK_IN_YEAR));case q.DAY_OF_MONTH:return this.withDayOfMonth(t);case q.DAY_OF_YEAR:return this.withDayOfYear(t);case q.EPOCH_DAY:return h.ofEpochDay(t);case q.ALIGNED_WEEK_OF_MONTH:return this.plusWeeks(t-this.getLong(q.ALIGNED_WEEK_OF_MONTH));case q.ALIGNED_WEEK_OF_YEAR:return this.plusWeeks(t-this.getLong(q.ALIGNED_WEEK_OF_YEAR));case q.MONTH_OF_YEAR:return this.withMonth(t);case q.PROLEPTIC_MONTH:return this.plusMonths(t-this.getLong(q.PROLEPTIC_MONTH));case q.YEAR_OF_ERA:return this.withYear(1<=this._year?t:1-t);case q.YEAR:return this.withYear(t);case q.ERA:return this.getLong(q.ERA)===t?this:this.withYear(1-this._year)}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"withYear",value:function(e){return this._year===e?this:(q.YEAR.checkValidValue(e),h._resolvePreviousValid(e,this._month,this._day))}},{key:"withMonth",value:function(e){var t=e instanceof ee?e.value():e;return this._month===t?this:(q.MONTH_OF_YEAR.checkValidValue(t),h._resolvePreviousValid(this._year,t,this._day))}},{key:"withDayOfMonth",value:function(e){return this._day===e?this:h.of(this._year,this._month,e)}},{key:"withDayOfYear",value:function(e){return this.dayOfYear()===e?this:h.ofYearDay(this._year,e)}},{key:"_plusUnit",value:function(e,t){if(N(e,"amountToAdd"),N(t,"unit"),t instanceof b){switch(t){case b.DAYS:return this.plusDays(e);case b.WEEKS:return this.plusWeeks(e);case b.MONTHS:return this.plusMonths(e);case b.YEARS:return this.plusYears(e);case b.DECADES:return this.plusYears(M.safeMultiply(e,10));case b.CENTURIES:return this.plusYears(M.safeMultiply(e,100));case b.MILLENNIA:return this.plusYears(M.safeMultiply(e,1e3));case b.ERAS:return this.with(q.ERA,M.safeAdd(this.getLong(q.ERA),e))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusYears",value:function(e){if(0===e)return this;var t=q.YEAR.checkValidIntValue(this._year+e);return h._resolvePreviousValid(t,this._month,this._day)}},{key:"plusMonths",value:function(e){if(0===e)return this;var t=12*this._year+(this._month-1)+e,n=q.YEAR.checkValidIntValue(M.floorDiv(t,12)),i=M.floorMod(t,12)+1;return h._resolvePreviousValid(n,i,this._day)}},{key:"plusWeeks",value:function(e){return this.plusDays(M.safeMultiply(e,7))}},{key:"plusDays",value:function(e){if(0===e)return this;var t=M.safeAdd(this.toEpochDay(),e);return h.ofEpochDay(t)}},{key:"_minusUnit",value:function(e,t){return N(e,"amountToSubtract"),N(t,"unit"),this._plusUnit(-1*e,t)}},{key:"minusYears",value:function(e){return this.plusYears(-1*e)}},{key:"minusMonths",value:function(e){return this.plusMonths(-1*e)}},{key:"minusWeeks",value:function(e){return this.plusWeeks(-1*e)}},{key:"minusDays",value:function(e){return this.plusDays(-1*e)}},{key:"query",value:function(e){return N(e,"query"),e===Z.localDate()?this:m(d(h.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return m(d(h.prototype),"adjustInto",this).call(this,e)}},{key:"until",value:function(e,t){return arguments.length<2?this.until1(e):this.until2(e,t)}},{key:"until2",value:function(e,t){var n=h.from(e);if(t instanceof b){switch(t){case b.DAYS:return this.daysUntil(n);case b.WEEKS:return M.intDiv(this.daysUntil(n),7);case b.MONTHS:return this._monthsUntil(n);case b.YEARS:return M.intDiv(this._monthsUntil(n),12);case b.DECADES:return M.intDiv(this._monthsUntil(n),120);case b.CENTURIES:return M.intDiv(this._monthsUntil(n),1200);case b.MILLENNIA:return M.intDiv(this._monthsUntil(n),12e3);case b.ERAS:return n.getLong(q.ERA)-this.getLong(q.ERA)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"daysUntil",value:function(e){return e.toEpochDay()-this.toEpochDay()}},{key:"_monthsUntil",value:function(e){var t=32*this._prolepticMonth()+this.dayOfMonth(),n=32*e._prolepticMonth()+e.dayOfMonth();return M.intDiv(n-t,32)}},{key:"until1",value:function(e){var t=h.from(e),n=t._prolepticMonth()-this._prolepticMonth(),i=t._day-this._day;if(0<n&&i<0){n--;var a=this.plusMonths(n);i=t.toEpochDay()-a.toEpochDay()}else n<0&&0<i&&(n++,i-=t.lengthOfMonth());var r=M.intDiv(n,12),s=M.intMod(n,12);return ne.of(r,s,i)}},{key:"atTime",value:function(){return 1===arguments.length?this.atTime1.apply(this,arguments):this.atTime4.apply(this,arguments)}},{key:"atTime1",value:function(e){if(N(e,"time"),e instanceof Xt)return Gt.of(this,e);if(e instanceof xt)return this._atTimeOffsetTime(e);throw new c("time must be an instance of LocalTime or OffsetTime".concat(e&&e.constructor&&e.constructor.name?", but is ".concat(e.constructor.name):""))}},{key:"atTime4",value:function(e,t,n,i){var a=2<arguments.length&&void 0!==n?n:0,r=3<arguments.length&&void 0!==i?i:0;return this.atTime1(Xt.of(e,t,a,r))}},{key:"_atTimeOffsetTime",value:function(e){return Zt.of(Gt.of(this,e.toLocalTime()),e.offset())}},{key:"atStartOfDay",value:function(e){return null!=e?this._atStartOfDayWithZone(e):Gt.of(this,Xt.MIDNIGHT)}},{key:"_atStartOfDayWithZone",value:function(e){N(e,"zone");var t=this.atTime(Xt.MIDNIGHT);if(e instanceof Ee==!1){var n=e.rules().transition(t);null!=n&&n.isGap()&&(t=n.dateTimeAfter())}return qt.of(t,e)}},{key:"toEpochDay",value:function(){var e=this._year,t=this._month,n=0;return n+=365*e,0<=e?n+=M.intDiv(e+3,4)-M.intDiv(e+99,100)+M.intDiv(e+399,400):n-=M.intDiv(e,-4)-M.intDiv(e,-100)+M.intDiv(e,-400),n+=M.intDiv(367*t-362,12),n+=this.dayOfMonth()-1,2<t&&(n--,Wt.isLeapYear(e)||n--),n-719528}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,h,"other"),this._compareTo0(e)}},{key:"_compareTo0",value:function(e){var t=this._year-e._year;return 0===t&&0===(t=this._month-e._month)&&(t=this._day-e._day),t}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"isEqual",value:function(e){return 0===this.compareTo(e)}},{key:"equals",value:function(e){return this===e||e instanceof h&&0===this._compareTo0(e)}},{key:"hashCode",value:function(){var e=this._year,t=this._month,n=this._day;return M.hash(4294965248&e^(e<<11)+(t<<6)+n)}},{key:"toString",value:function(){var e=this._year,t=this._month,n=this._day;return(Math.abs(e)<1e3?e<0?"-".concat("".concat(e-1e4).slice(-4)):"".concat(e+1e4).slice(-4):9999<e?"+".concat(e):"".concat(e))+(t<10?"-0".concat(t):"-".concat(t))+(n<10?"-0".concat(n):"-".concat(n))}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),D(e,Tt,"formatter"),m(d(h.prototype),"format",this).call(this,e)}}],[{key:"now",value:function(e){var t;return t=null==e?Qt.systemDefaultZone():e instanceof fe?Qt.system(e):e,h.ofInstant(t.instant(),t.zone())}},{key:"ofInstant",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:fe.systemDefault();N(e,"instant");var i=n.rules().offset(e),a=e.epochSecond()+i.totalSeconds(),r=M.floorDiv(a,Xt.SECONDS_PER_DAY);return h.ofEpochDay(r)}},{key:"of",value:function(e,t,n){return new h(e,t,n)}},{key:"ofYearDay",value:function(e,t){q.YEAR.checkValidValue(e);var n=Wt.isLeapYear(e);366===t&&!1===n&&k(!1,"Invalid date 'DayOfYear 366' as '".concat(e,"' is not a leap year"),T);var i=ee.of(Math.floor((t-1)/31+1));i.firstDayOfYear(n)+i.length(n)-1<t&&(i=i.plus(1));var a=t-i.firstDayOfYear(n)+1;return new h(e,i.value(),a)}},{key:"ofEpochDay",value:function(e){var t,n,i,a,r;r=(0<arguments.length&&void 0!==e?e:0)+719528,(r-=60)<(t=0)&&(t=400*(n=M.intDiv(r+1,zt)-1),r+=-n*zt),(i=r-(365*(a=M.intDiv(400*r+591,zt))+M.intDiv(a,4)-M.intDiv(a,100)+M.intDiv(a,400)))<0&&(i=r-(365*--a+M.intDiv(a,4)-M.intDiv(a,100)+M.intDiv(a,400))),a+=t;var s=i,o=M.intDiv(5*s+2,153),u=(o+2)%12+1,l=s-M.intDiv(306*o+5,10)+1;return new h(a+=M.intDiv(o,10),u,l)}},{key:"from",value:function(e){N(e,"temporal");var t=e.query(Z.localDate());if(null==t)throw new T("Unable to obtain LocalDate from TemporalAccessor: ".concat(e,", type ").concat(null!=e.constructor?e.constructor.name:""));return t}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_LOCAL_DATE;return k(null!=n,"formatter",s),n.parse(e,h.FROM)}},{key:"_resolvePreviousValid",value:function(e,t,n){switch(t){case 2:n=Math.min(n,Wt.isLeapYear(e)?29:28);break;case 4:case 6:case 9:case 11:n=Math.min(n,30)}return h.of(e,t,n)}},{key:"_validate",value:function(e,t,n){var i;if(q.YEAR.checkValidValue(e),q.MONTH_OF_YEAR.checkValidValue(t),q.DAY_OF_MONTH.checkValidValue(n),28<n){switch(i=31,t){case 2:i=Wt.isLeapYear(e)?29:28;break;case 4:case 6:case 9:case 11:i=30}i<n&&k(!1,29===n?"Invalid date 'February 29' as '".concat(e,"' is not a leap year"):"Invalid date '".concat(e,"' '").concat(t,"' '").concat(n,"'"),T)}}}]),h}();var jt=function(){p(t,ue);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"chronology",value:function(){return this.toLocalDate().chronology()}},{key:"query",value:function(e){return e===Z.chronology()?this.chronology():e===Z.precision()?b.NANOS:e===Z.localDate()?Kt.ofEpochDay(this.toLocalDate().toEpochDay()):e===Z.localTime()?this.toLocalTime():e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:m(d(t.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return e.with(q.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(q.NANO_OF_DAY,this.toLocalTime().toNanoOfDay())}},{key:"toInstant",value:function(e){return D(e,Ee,"zoneId"),Jt.ofEpochSecond(this.toEpochSecond(e),this.toLocalTime().nano())}},{key:"toEpochSecond",value:function(e){N(e,"offset");var t=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return t-=e.totalSeconds(),M.safeToInt(t)}}]),t}(),Gt=function(){p(c,jt);var i=S(c);function c(e,t){var n;return f(this,c),n=i.call(this),D(e,Kt,"date"),D(t,Xt,"time"),n._date=e,n._time=t,n}return y(c,[{key:"_withDateTime",value:function(e,t){return this._date.equals(e)&&this._time.equals(t)?this:new c(e,t)}},{key:"isSupported",value:function(e){return e instanceof q?e.isDateBased()||e.isTimeBased():e instanceof b?e.isDateBased()||e.isTimeBased():null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return e instanceof q?e.isTimeBased()?this._time.range(e):this._date.range(e):e.rangeRefinedBy(this)}},{key:"get",value:function(e){return e instanceof q?e.isTimeBased()?this._time.get(e):this._date.get(e):m(d(c.prototype),"get",this).call(this,e)}},{key:"getLong",value:function(e){return N(e,"field"),e instanceof q?e.isTimeBased()?this._time.getLong(e):this._date.getLong(e):e.getFrom(this)}},{key:"year",value:function(){return this._date.year()}},{key:"monthValue",value:function(){return this._date.monthValue()}},{key:"month",value:function(){return this._date.month()}},{key:"dayOfMonth",value:function(){return this._date.dayOfMonth()}},{key:"dayOfYear",value:function(){return this._date.dayOfYear()}},{key:"dayOfWeek",value:function(){return this._date.dayOfWeek()}},{key:"hour",value:function(){return this._time.hour()}},{key:"minute",value:function(){return this._time.minute()}},{key:"second",value:function(){return this._time.second()}},{key:"nano",value:function(){return this._time.nano()}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),e instanceof Kt?this._withDateTime(e,this._time):e instanceof Xt?this._withDateTime(this._date,e):e instanceof c?e:m(d(c.prototype),"_withAdjuster",this).call(this,e)}},{key:"_withField",value:function(e,t){return N(e,"field"),e instanceof q?e.isTimeBased()?this._withDateTime(this._date,this._time.with(e,t)):this._withDateTime(this._date.with(e,t),this._time):e.adjustInto(this,t)}},{key:"withYear",value:function(e){return this._withDateTime(this._date.withYear(e),this._time)}},{key:"withMonth",value:function(e){return this._withDateTime(this._date.withMonth(e),this._time)}},{key:"withDayOfMonth",value:function(e){return this._withDateTime(this._date.withDayOfMonth(e),this._time)}},{key:"withDayOfYear",value:function(e){return this._withDateTime(this._date.withDayOfYear(e),this._time)}},{key:"withHour",value:function(e){var t=this._time.withHour(e);return this._withDateTime(this._date,t)}},{key:"withMinute",value:function(e){var t=this._time.withMinute(e);return this._withDateTime(this._date,t)}},{key:"withSecond",value:function(e){var t=this._time.withSecond(e);return this._withDateTime(this._date,t)}},{key:"withNano",value:function(e){var t=this._time.withNano(e);return this._withDateTime(this._date,t)}},{key:"truncatedTo",value:function(e){return this._withDateTime(this._date,this._time.truncatedTo(e))}},{key:"_plusUnit",value:function(e,t){if(N(t,"unit"),t instanceof b){switch(t){case b.NANOS:return this.plusNanos(e);case b.MICROS:return this.plusDays(M.intDiv(e,Xt.MICROS_PER_DAY)).plusNanos(1e3*M.intMod(e,Xt.MICROS_PER_DAY));case b.MILLIS:return this.plusDays(M.intDiv(e,Xt.MILLIS_PER_DAY)).plusNanos(1e6*M.intMod(e,Xt.MILLIS_PER_DAY));case b.SECONDS:return this.plusSeconds(e);case b.MINUTES:return this.plusMinutes(e);case b.HOURS:return this.plusHours(e);case b.HALF_DAYS:return this.plusDays(M.intDiv(e,256)).plusHours(12*M.intMod(e,256))}return this._withDateTime(this._date.plus(e,t),this._time)}return t.addTo(this,e)}},{key:"plusYears",value:function(e){var t=this._date.plusYears(e);return this._withDateTime(t,this._time)}},{key:"plusMonths",value:function(e){var t=this._date.plusMonths(e);return this._withDateTime(t,this._time)}},{key:"plusWeeks",value:function(e){var t=this._date.plusWeeks(e);return this._withDateTime(t,this._time)}},{key:"plusDays",value:function(e){var t=this._date.plusDays(e);return this._withDateTime(t,this._time)}},{key:"plusHours",value:function(e){return this._plusWithOverflow(this._date,e,0,0,0,1)}},{key:"plusMinutes",value:function(e){return this._plusWithOverflow(this._date,0,e,0,0,1)}},{key:"plusSeconds",value:function(e){return this._plusWithOverflow(this._date,0,0,e,0,1)}},{key:"plusNanos",value:function(e){return this._plusWithOverflow(this._date,0,0,0,e,1)}},{key:"_minusUnit",value:function(e,t){return N(t,"unit"),this._plusUnit(-1*e,t)}},{key:"minusYears",value:function(e){return this.plusYears(-1*e)}},{key:"minusMonths",value:function(e){return this.plusMonths(-1*e)}},{key:"minusWeeks",value:function(e){return this.plusWeeks(-1*e)}},{key:"minusDays",value:function(e){return this.plusDays(-1*e)}},{key:"minusHours",value:function(e){return this._plusWithOverflow(this._date,e,0,0,0,-1)}},{key:"minusMinutes",value:function(e){return this._plusWithOverflow(this._date,0,e,0,0,-1)}},{key:"minusSeconds",value:function(e){return this._plusWithOverflow(this._date,0,0,e,0,-1)}},{key:"minusNanos",value:function(e){return this._plusWithOverflow(this._date,0,0,0,e,-1)}},{key:"_plusWithOverflow",value:function(e,t,n,i,a,r){if(0===t&&0===n&&0===i&&0===a)return this._withDateTime(e,this._time);var s=M.intDiv(a,Xt.NANOS_PER_DAY)+M.intDiv(i,Xt.SECONDS_PER_DAY)+M.intDiv(n,Xt.MINUTES_PER_DAY)+M.intDiv(t,Xt.HOURS_PER_DAY);s*=r;var o=M.intMod(a,Xt.NANOS_PER_DAY)+M.intMod(i,Xt.SECONDS_PER_DAY)*Xt.NANOS_PER_SECOND+M.intMod(n,Xt.MINUTES_PER_DAY)*Xt.NANOS_PER_MINUTE+M.intMod(t,Xt.HOURS_PER_DAY)*Xt.NANOS_PER_HOUR,u=this._time.toNanoOfDay();o=o*r+u,s+=M.floorDiv(o,Xt.NANOS_PER_DAY);var l=M.floorMod(o,Xt.NANOS_PER_DAY),h=l===u?this._time:Xt.ofNanoOfDay(l);return this._withDateTime(e.plusDays(s),h)}},{key:"query",value:function(e){return N(e,"query"),e===Z.localDate()?this.toLocalDate():m(d(c.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return m(d(c.prototype),"adjustInto",this).call(this,e)}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit");var n=c.from(e);if(t instanceof b){if(t.isTimeBased()){var i=this._date.daysUntil(n._date),a=n._time.toNanoOfDay()-this._time.toNanoOfDay();0<i&&a<0?(i--,a+=Xt.NANOS_PER_DAY):i<0&&0<a&&(i++,a-=Xt.NANOS_PER_DAY);var r=i;switch(t){case b.NANOS:return r=M.safeMultiply(r,Xt.NANOS_PER_DAY),M.safeAdd(r,a);case b.MICROS:return r=M.safeMultiply(r,Xt.MICROS_PER_DAY),M.safeAdd(r,M.intDiv(a,1e3));case b.MILLIS:return r=M.safeMultiply(r,Xt.MILLIS_PER_DAY),M.safeAdd(r,M.intDiv(a,1e6));case b.SECONDS:return r=M.safeMultiply(r,Xt.SECONDS_PER_DAY),M.safeAdd(r,M.intDiv(a,Xt.NANOS_PER_SECOND));case b.MINUTES:return r=M.safeMultiply(r,Xt.MINUTES_PER_DAY),M.safeAdd(r,M.intDiv(a,Xt.NANOS_PER_MINUTE));case b.HOURS:return r=M.safeMultiply(r,Xt.HOURS_PER_DAY),M.safeAdd(r,M.intDiv(a,Xt.NANOS_PER_HOUR));case b.HALF_DAYS:return r=M.safeMultiply(r,2),M.safeAdd(r,M.intDiv(a,12*Xt.NANOS_PER_HOUR))}throw new u("Unsupported unit: ".concat(t))}var s=n._date,o=n._time;return s.isAfter(this._date)&&o.isBefore(this._time)?s=s.minusDays(1):s.isBefore(this._date)&&o.isAfter(this._time)&&(s=s.plusDays(1)),this._date.until(s,t)}return t.between(this,n)}},{key:"atOffset",value:function(e){return Zt.of(this,e)}},{key:"atZone",value:function(e){return qt.of(this,e)}},{key:"toLocalDate",value:function(){return this._date}},{key:"toLocalTime",value:function(){return this._time}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,c,"other"),this._compareTo0(e)}},{key:"_compareTo0",value:function(e){var t=this._date.compareTo(e.toLocalDate());return 0===t&&(t=this._time.compareTo(e.toLocalTime())),t}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"isEqual",value:function(e){return 0===this.compareTo(e)}},{key:"equals",value:function(e){return this===e||e instanceof c&&(this._date.equals(e._date)&&this._time.equals(e._time))}},{key:"hashCode",value:function(){return this._date.hashCode()^this._time.hashCode()}},{key:"toString",value:function(){return"".concat(this._date.toString(),"T").concat(this._time.toString())}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}}],[{key:"now",value:function(e){return c._now(null==e?Qt.systemDefaultZone():e instanceof Qt?e:Qt.system(e))}},{key:"_now",value:function(e){return N(e,"clock"),c.ofInstant(e.instant(),e.zone())}},{key:"_ofEpochMillis",value:function(e,t){var n=M.floorDiv(e,1e3)+t.totalSeconds(),i=M.floorDiv(n,Xt.SECONDS_PER_DAY),a=M.floorMod(n,Xt.SECONDS_PER_DAY),r=1e6*M.floorMod(e,1e3);return new c(Kt.ofEpochDay(i),Xt.ofSecondOfDay(a,r))}},{key:"of",value:function(){return arguments.length<=2?c.ofDateAndTime.apply(this,arguments):c.ofNumbers.apply(this,arguments)}},{key:"ofNumbers",value:function(e,t,n,i,a,r,s){var o=3<arguments.length&&void 0!==i?i:0,u=4<arguments.length&&void 0!==a?a:0,l=5<arguments.length&&void 0!==r?r:0,h=6<arguments.length&&void 0!==s?s:0;return new c(Kt.of(e,t,n),Xt.of(o,u,l,h))}},{key:"ofDateAndTime",value:function(e,t){return N(e,"date"),N(t,"time"),new c(e,t)}},{key:"ofInstant",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:fe.systemDefault();N(e,"instant"),D(e,Jt,"instant"),N(n,"zone");var i=n.rules().offset(e);return c.ofEpochSecond(e.epochSecond(),e.nano(),i)}},{key:"ofEpochSecond",value:function(e,t,n){var i=0<arguments.length&&void 0!==e?e:0,a=1<arguments.length&&void 0!==t?t:0,r=2<arguments.length?n:void 0;2===arguments.length&&a instanceof Ee&&(r=a,a=0),N(r,"offset");var s=i+r.totalSeconds(),o=M.floorDiv(s,Xt.SECONDS_PER_DAY),u=M.floorMod(s,Xt.SECONDS_PER_DAY);return new c(Kt.ofEpochDay(o),Xt.ofSecondOfDay(u,a))}},{key:"from",value:function(t){if(N(t,"temporal"),t instanceof c)return t;if(t instanceof qt)return t.toLocalDateTime();try{return new c(Kt.from(t),Xt.from(t))}catch(e){throw new T("Unable to obtain LocalDateTime TemporalAccessor: ".concat(t,", type ").concat(null!=t.constructor?t.constructor.name:""))}}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_LOCAL_DATE_TIME;return N(n,"formatter"),n.parse(e,c.FROM)}}]),c}();var Xt=function(){p(h,ue);var l=S(h);function h(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;f(this,h),e=l.call(this);var r=M.safeToInt(t),s=M.safeToInt(n),o=M.safeToInt(i),u=M.safeToInt(a);return h._validate(r,s,o,u),0===s&&0===o&&0===u?(h.HOURS[r]||(e._hour=r,e._minute=s,e._second=o,e._nano=u,h.HOURS[r]=_(e)),E(e,h.HOURS[r])):(e._hour=r,e._minute=s,e._second=o,e._nano=u,e)}return y(h,[{key:"isSupported",value:function(e){return e instanceof q?e.isTimeBased():e instanceof b?e.isTimeBased():null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return N(e),m(d(h.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){return N(e,"field"),e instanceof q?this._get0(e):e.getFrom(this)}},{key:"_get0",value:function(e){switch(e){case q.NANO_OF_SECOND:return this._nano;case q.NANO_OF_DAY:return this.toNanoOfDay();case q.MICRO_OF_SECOND:return M.intDiv(this._nano,1e3);case q.MICRO_OF_DAY:return M.intDiv(this.toNanoOfDay(),1e3);case q.MILLI_OF_SECOND:return M.intDiv(this._nano,1e6);case q.MILLI_OF_DAY:return M.intDiv(this.toNanoOfDay(),1e6);case q.SECOND_OF_MINUTE:return this._second;case q.SECOND_OF_DAY:return this.toSecondOfDay();case q.MINUTE_OF_HOUR:return this._minute;case q.MINUTE_OF_DAY:return 60*this._hour+this._minute;case q.HOUR_OF_AMPM:return M.intMod(this._hour,12);case q.CLOCK_HOUR_OF_AMPM:var t=M.intMod(this._hour,12);return t%12==0?12:t;case q.HOUR_OF_DAY:return this._hour;case q.CLOCK_HOUR_OF_DAY:return 0===this._hour?24:this._hour;case q.AMPM_OF_DAY:return M.intDiv(this._hour,12)}throw new u("Unsupported field: ".concat(e))}},{key:"hour",value:function(){return this._hour}},{key:"minute",value:function(){return this._minute}},{key:"second",value:function(){return this._second}},{key:"nano",value:function(){return this._nano}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),e instanceof h?e:m(d(h.prototype),"_withAdjuster",this).call(this,e)}},{key:"_withField",value:function(e,t){if(N(e,"field"),D(e,H,"field"),e instanceof q){switch(e.checkValidValue(t),e){case q.NANO_OF_SECOND:return this.withNano(t);case q.NANO_OF_DAY:return h.ofNanoOfDay(t);case q.MICRO_OF_SECOND:return this.withNano(1e3*t);case q.MICRO_OF_DAY:return h.ofNanoOfDay(1e3*t);case q.MILLI_OF_SECOND:return this.withNano(1e6*t);case q.MILLI_OF_DAY:return h.ofNanoOfDay(1e6*t);case q.SECOND_OF_MINUTE:return this.withSecond(t);case q.SECOND_OF_DAY:return this.plusSeconds(t-this.toSecondOfDay());case q.MINUTE_OF_HOUR:return this.withMinute(t);case q.MINUTE_OF_DAY:return this.plusMinutes(t-(60*this._hour+this._minute));case q.HOUR_OF_AMPM:return this.plusHours(t-M.intMod(this._hour,12));case q.CLOCK_HOUR_OF_AMPM:return this.plusHours((12===t?0:t)-M.intMod(this._hour,12));case q.HOUR_OF_DAY:return this.withHour(t);case q.CLOCK_HOUR_OF_DAY:return this.withHour(24===t?0:t);case q.AMPM_OF_DAY:return this.plusHours(12*(t-M.intDiv(this._hour,12)))}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"withHour",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this._hour===t?this:new h(t,this._minute,this._second,this._nano)}},{key:"withMinute",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this._minute===t?this:new h(this._hour,t,this._second,this._nano)}},{key:"withSecond",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this._second===t?this:new h(this._hour,this._minute,t,this._nano)}},{key:"withNano",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this._nano===t?this:new h(this._hour,this._minute,this._second,t)}},{key:"truncatedTo",value:function(e){if(N(e,"unit"),e===b.NANOS)return this;var t=e.duration();if(t.seconds()>h.SECONDS_PER_DAY)throw new T("Unit is too large to be used for truncation");var n=t.toNanos();if(0!==M.intMod(h.NANOS_PER_DAY,n))throw new T("Unit must divide into a standard day without remainder");var i=this.toNanoOfDay();return h.ofNanoOfDay(M.intDiv(i,n)*n)}},{key:"_plusUnit",value:function(e,t){if(N(t,"unit"),t instanceof b){switch(t){case b.NANOS:return this.plusNanos(e);case b.MICROS:return this.plusNanos(1e3*M.intMod(e,h.MICROS_PER_DAY));case b.MILLIS:return this.plusNanos(1e6*M.intMod(e,h.MILLIS_PER_DAY));case b.SECONDS:return this.plusSeconds(e);case b.MINUTES:return this.plusMinutes(e);case b.HOURS:return this.plusHours(e);case b.HALF_DAYS:return this.plusHours(12*M.intMod(e,2))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusHours",value:function(e){return 0===e?this:new h(M.intMod(M.intMod(e,h.HOURS_PER_DAY)+this._hour+h.HOURS_PER_DAY,h.HOURS_PER_DAY),this._minute,this._second,this._nano)}},{key:"plusMinutes",value:function(e){if(0===e)return this;var t=this._hour*h.MINUTES_PER_HOUR+this._minute,n=M.intMod(M.intMod(e,h.MINUTES_PER_DAY)+t+h.MINUTES_PER_DAY,h.MINUTES_PER_DAY);return t===n?this:new h(M.intDiv(n,h.MINUTES_PER_HOUR),M.intMod(n,h.MINUTES_PER_HOUR),this._second,this._nano)}},{key:"plusSeconds",value:function(e){if(0===e)return this;var t=this._hour*h.SECONDS_PER_HOUR+this._minute*h.SECONDS_PER_MINUTE+this._second,n=M.intMod(M.intMod(e,h.SECONDS_PER_DAY)+t+h.SECONDS_PER_DAY,h.SECONDS_PER_DAY);return t===n?this:new h(M.intDiv(n,h.SECONDS_PER_HOUR),M.intMod(M.intDiv(n,h.SECONDS_PER_MINUTE),h.MINUTES_PER_HOUR),M.intMod(n,h.SECONDS_PER_MINUTE),this._nano)}},{key:"plusNanos",value:function(e){if(0===e)return this;var t=this.toNanoOfDay(),n=M.intMod(M.intMod(e,h.NANOS_PER_DAY)+t+h.NANOS_PER_DAY,h.NANOS_PER_DAY);return t===n?this:new h(M.intDiv(n,h.NANOS_PER_HOUR),M.intMod(M.intDiv(n,h.NANOS_PER_MINUTE),h.MINUTES_PER_HOUR),M.intMod(M.intDiv(n,h.NANOS_PER_SECOND),h.SECONDS_PER_MINUTE),M.intMod(n,h.NANOS_PER_SECOND))}},{key:"_minusUnit",value:function(e,t){return N(t,"unit"),this._plusUnit(-1*e,t)}},{key:"minusHours",value:function(e){return this.plusHours(-1*M.intMod(e,h.HOURS_PER_DAY))}},{key:"minusMinutes",value:function(e){return this.plusMinutes(-1*M.intMod(e,h.MINUTES_PER_DAY))}},{key:"minusSeconds",value:function(e){return this.plusSeconds(-1*M.intMod(e,h.SECONDS_PER_DAY))}},{key:"minusNanos",value:function(e){return this.plusNanos(-1*M.intMod(e,h.NANOS_PER_DAY))}},{key:"query",value:function(e){return N(e,"query"),e===Z.precision()?b.NANOS:e===Z.localTime()?this:e===Z.chronology()||e===Z.zoneId()||e===Z.zone()||e===Z.offset()||e===Z.localDate()?null:e.queryFrom(this)}},{key:"adjustInto",value:function(e){return e.with(h.NANO_OF_DAY,this.toNanoOfDay())}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit");var n=h.from(e);if(t instanceof b){var i=n.toNanoOfDay()-this.toNanoOfDay();switch(t){case b.NANOS:return i;case b.MICROS:return M.intDiv(i,1e3);case b.MILLIS:return M.intDiv(i,1e6);case b.SECONDS:return M.intDiv(i,h.NANOS_PER_SECOND);case b.MINUTES:return M.intDiv(i,h.NANOS_PER_MINUTE);case b.HOURS:return M.intDiv(i,h.NANOS_PER_HOUR);case b.HALF_DAYS:return M.intDiv(i,12*h.NANOS_PER_HOUR)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"atDate",value:function(e){return Gt.of(e,this)}},{key:"atOffset",value:function(e){return xt.of(this,e)}},{key:"toSecondOfDay",value:function(){var e=this._hour*h.SECONDS_PER_HOUR;return e+=this._minute*h.SECONDS_PER_MINUTE,e+=this._second}},{key:"toNanoOfDay",value:function(){var e=this._hour*h.NANOS_PER_HOUR;return e+=this._minute*h.NANOS_PER_MINUTE,e+=this._second*h.NANOS_PER_SECOND,e+=this._nano}},{key:"compareTo",value:function(e){N(e,"other"),D(e,h,"other");var t=M.compareNumbers(this._hour,e._hour);return 0===t&&0===(t=M.compareNumbers(this._minute,e._minute))&&0===(t=M.compareNumbers(this._second,e._second))&&(t=M.compareNumbers(this._nano,e._nano)),t}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"equals",value:function(e){return this===e||e instanceof h&&(this._hour===e._hour&&this._minute===e._minute&&this._second===e._second&&this._nano===e._nano)}},{key:"hashCode",value:function(){var e=this.toNanoOfDay();return M.hash(e)}},{key:"toString",value:function(){var e="",t=this._hour,n=this._minute,i=this._second,a=this._nano;return e+=t<10?"0":"",e+=t,e+=n<10?":0":":",e+=n,(0<i||0<a)&&(e+=i<10?":0":":",e+=i,0<a&&(e+=".",0===M.intMod(a,1e6)?e+="".concat(M.intDiv(a,1e6)+1e3).substring(1):0===M.intMod(a,1e3)?e+="".concat(M.intDiv(a,1e3)+1e6).substring(1):e+="".concat(a+1e9).substring(1))),e}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}}],[{key:"now",value:function(e){return h._now(null==e?Qt.systemDefaultZone():e instanceof Qt?e:Qt.system(e))}},{key:"_now",value:function(e){var t=0<arguments.length&&void 0!==e?e:Qt.systemDefaultZone();return N(t,"clock"),h.ofInstant(t.instant(),t.zone())}},{key:"ofInstant",value:function(e,t){var n=(1<arguments.length&&void 0!==t?t:fe.systemDefault()).rules().offset(e),i=M.intMod(e.epochSecond(),h.SECONDS_PER_DAY);return(i=M.intMod(i+n.totalSeconds(),h.SECONDS_PER_DAY))<0&&(i+=h.SECONDS_PER_DAY),h.ofSecondOfDay(i,e.nano())}},{key:"of",value:function(e,t,n,i){return new h(e,t,n,i)}},{key:"ofSecondOfDay",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,i=1<arguments.length&&void 0!==t?t:0;q.SECOND_OF_DAY.checkValidValue(n),q.NANO_OF_SECOND.checkValidValue(i);var a=M.intDiv(n,h.SECONDS_PER_HOUR);n-=a*h.SECONDS_PER_HOUR;var r=M.intDiv(n,h.SECONDS_PER_MINUTE);return new h(a,r,n-=r*h.SECONDS_PER_MINUTE,i)}},{key:"ofNanoOfDay",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;q.NANO_OF_DAY.checkValidValue(t);var n=M.intDiv(t,h.NANOS_PER_HOUR);t-=n*h.NANOS_PER_HOUR;var i=M.intDiv(t,h.NANOS_PER_MINUTE);t-=i*h.NANOS_PER_MINUTE;var a=M.intDiv(t,h.NANOS_PER_SECOND);return new h(n,i,a,t-=a*h.NANOS_PER_SECOND)}},{key:"from",value:function(e){N(e,"temporal");var t=e.query(Z.localTime());if(null==t)throw new T("Unable to obtain LocalTime TemporalAccessor: ".concat(e,", type ").concat(null!=e.constructor?e.constructor.name:""));return t}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_LOCAL_TIME;return N(n,"formatter"),n.parse(e,h.FROM)}},{key:"_validate",value:function(e,t,n,i){q.HOUR_OF_DAY.checkValidValue(e),q.MINUTE_OF_HOUR.checkValidValue(t),q.SECOND_OF_MINUTE.checkValidValue(n),q.NANO_OF_SECOND.checkValidValue(i)}}]),h}();Xt.HOURS_PER_DAY=24,Xt.MINUTES_PER_HOUR=60,Xt.MINUTES_PER_DAY=Xt.MINUTES_PER_HOUR*Xt.HOURS_PER_DAY,Xt.SECONDS_PER_MINUTE=60,Xt.SECONDS_PER_HOUR=Xt.SECONDS_PER_MINUTE*Xt.MINUTES_PER_HOUR,Xt.SECONDS_PER_DAY=Xt.SECONDS_PER_HOUR*Xt.HOURS_PER_DAY,Xt.MILLIS_PER_DAY=1e3*Xt.SECONDS_PER_DAY,Xt.MICROS_PER_DAY=1e6*Xt.SECONDS_PER_DAY,Xt.NANOS_PER_SECOND=1e9,Xt.NANOS_PER_MINUTE=Xt.NANOS_PER_SECOND*Xt.SECONDS_PER_MINUTE,Xt.NANOS_PER_HOUR=Xt.NANOS_PER_MINUTE*Xt.MINUTES_PER_HOUR,Xt.NANOS_PER_DAY=Xt.NANOS_PER_HOUR*Xt.HOURS_PER_DAY;var Jt=function(){p(r,ue);var i=S(r);function r(e,t){var n;return f(this,r),n=i.call(this),r._validate(e,t),n._seconds=M.safeToInt(e),n._nanos=M.safeToInt(t),n}return y(r,[{key:"isSupported",value:function(e){return e instanceof q?e===q.INSTANT_SECONDS||e===q.NANO_OF_SECOND||e===q.MICRO_OF_SECOND||e===q.MILLI_OF_SECOND:e instanceof b?e.isTimeBased()||e===b.DAYS:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return m(d(r.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){if(e instanceof q){switch(e){case q.NANO_OF_SECOND:return this._nanos;case q.MICRO_OF_SECOND:return M.intDiv(this._nanos,1e3);case q.MILLI_OF_SECOND:return M.intDiv(this._nanos,1e6);case q.INSTANT_SECONDS:return this._seconds}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"epochSecond",value:function(){return this._seconds}},{key:"nano",value:function(){return this._nanos}},{key:"_withField",value:function(e,t){if(N(e,"field"),e instanceof q){switch(e.checkValidValue(t),e){case q.MILLI_OF_SECOND:var n=1e6*t;return n!==this._nanos?r._create(this._seconds,n):this;case q.MICRO_OF_SECOND:var i=1e3*t;return i!==this._nanos?r._create(this._seconds,i):this;case q.NANO_OF_SECOND:return t!==this._nanos?r._create(this._seconds,t):this;case q.INSTANT_SECONDS:return t!==this._seconds?r._create(t,this._nanos):this}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"truncatedTo",value:function(e){if(N(e,"unit"),e===b.NANOS)return this;var t=e.duration();if(t.seconds()>Xt.SECONDS_PER_DAY)throw new T("Unit is too large to be used for truncation");var n=t.toNanos();if(0!==M.intMod(Xt.NANOS_PER_DAY,n))throw new T("Unit must divide into a standard day without remainder");var i=M.intMod(this._seconds,Xt.SECONDS_PER_DAY)*Xt.NANOS_PER_SECOND+this._nanos,a=M.intDiv(i,n)*n;return this.plusNanos(a-i)}},{key:"_plusUnit",value:function(e,t){if(N(e,"amountToAdd"),N(t,"unit"),D(t,L),t instanceof b){switch(t){case b.NANOS:return this.plusNanos(e);case b.MICROS:return this._plus(M.intDiv(e,1e6),1e3*M.intMod(e,1e6));case b.MILLIS:return this.plusMillis(e);case b.SECONDS:return this.plusSeconds(e);case b.MINUTES:return this.plusSeconds(M.safeMultiply(e,Xt.SECONDS_PER_MINUTE));case b.HOURS:return this.plusSeconds(M.safeMultiply(e,Xt.SECONDS_PER_HOUR));case b.HALF_DAYS:return this.plusSeconds(M.safeMultiply(e,Xt.SECONDS_PER_DAY/2));case b.DAYS:return this.plusSeconds(M.safeMultiply(e,Xt.SECONDS_PER_DAY))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusSeconds",value:function(e){return this._plus(e,0)}},{key:"plusMillis",value:function(e){return this._plus(M.intDiv(e,1e3),1e6*M.intMod(e,1e3))}},{key:"plusNanos",value:function(e){return this._plus(0,e)}},{key:"_plus",value:function(e,t){if(0===e&&0===t)return this;var n=this._seconds+e;n+=M.intDiv(t,Xt.NANOS_PER_SECOND);var i=this._nanos+t%Xt.NANOS_PER_SECOND;return r.ofEpochSecond(n,i)}},{key:"_minusUnit",value:function(e,t){return this._plusUnit(-1*e,t)}},{key:"minusSeconds",value:function(e){return this.plusSeconds(-1*e)}},{key:"minusMillis",value:function(e){return this.plusMillis(-1*e)}},{key:"minusNanos",value:function(e){return this.plusNanos(-1*e)}},{key:"query",value:function(e){return N(e,"query"),e===Z.precision()?b.NANOS:e===Z.localDate()||e===Z.localTime()||e===Z.chronology()||e===Z.zoneId()||e===Z.zone()||e===Z.offset()?null:e.queryFrom(this)}},{key:"adjustInto",value:function(e){return N(e,"temporal"),e.with(q.INSTANT_SECONDS,this._seconds).with(q.NANO_OF_SECOND,this._nanos)}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit");var n=r.from(e);if(t instanceof b){switch(t){case b.NANOS:return this._nanosUntil(n);case b.MICROS:return this._microsUntil(n);case b.MILLIS:return M.safeSubtract(n.toEpochMilli(),this.toEpochMilli());case b.SECONDS:return this._secondsUntil(n);case b.MINUTES:return M.intDiv(this._secondsUntil(n),Xt.SECONDS_PER_MINUTE);case b.HOURS:return M.intDiv(this._secondsUntil(n),Xt.SECONDS_PER_HOUR);case b.HALF_DAYS:return M.intDiv(this._secondsUntil(n),12*Xt.SECONDS_PER_HOUR);case b.DAYS:return M.intDiv(this._secondsUntil(n),Xt.SECONDS_PER_DAY)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"_microsUntil",value:function(e){var t=M.safeSubtract(e.epochSecond(),this.epochSecond()),n=M.safeMultiply(t,1e6);return M.safeAdd(n,M.intDiv(e.nano()-this.nano(),1e3))}},{key:"_nanosUntil",value:function(e){var t=M.safeSubtract(e.epochSecond(),this.epochSecond()),n=M.safeMultiply(t,Xt.NANOS_PER_SECOND);return M.safeAdd(n,e.nano()-this.nano())}},{key:"_secondsUntil",value:function(e){var t=M.safeSubtract(e.epochSecond(),this.epochSecond()),n=e.nano()-this.nano();return 0<t&&n<0?t--:t<0&&0<n&&t++,t}},{key:"atOffset",value:function(e){return Zt.ofInstant(this,e)}},{key:"atZone",value:function(e){return qt.ofInstant(this,e)}},{key:"toEpochMilli",value:function(){return M.safeMultiply(this._seconds,1e3)+M.intDiv(this._nanos,1e6)}},{key:"compareTo",value:function(e){N(e,"otherInstant"),D(e,r,"otherInstant");var t=M.compareNumbers(this._seconds,e._seconds);return 0!==t?t:this._nanos-e._nanos}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"equals",value:function(e){return this===e||e instanceof r&&(this.epochSecond()===e.epochSecond()&&this.nano()===e.nano())}},{key:"hashCode",value:function(){return M.hashCode(this._seconds,this._nanos)}},{key:"toString",value:function(){return Tt.ISO_INSTANT.format(this)}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"now",value:function(e){return(0<arguments.length&&void 0!==e?e:Qt.systemUTC()).instant()}},{key:"ofEpochSecond",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,i=e+M.floorDiv(n,Xt.NANOS_PER_SECOND),a=M.floorMod(n,Xt.NANOS_PER_SECOND);return r._create(i,a)}},{key:"ofEpochMilli",value:function(e){var t=M.floorDiv(e,1e3),n=M.floorMod(e,1e3);return r._create(t,1e6*n)}},{key:"from",value:function(t){try{var e=t.getLong(q.INSTANT_SECONDS),n=t.get(q.NANO_OF_SECOND);return r.ofEpochSecond(e,n)}catch(e){throw new T("Unable to obtain Instant from TemporalAccessor: ".concat(t,", type ").concat(a(t)),e)}}},{key:"parse",value:function(e){return Tt.ISO_INSTANT.parse(e,r.FROM)}},{key:"_create",value:function(e,t){return 0===e&&0===t?r.EPOCH:new r(e,t)}},{key:"_validate",value:function(e,t){if(e<r.MIN_SECONDS||r.MAX_SECONDS<e)throw new T("Instant exceeds minimum or maximum instant");if(t<0||t>Xt.NANOS_PER_SECOND)throw new T("Instant exceeds minimum or maximum instant")}}]),r}();var Qt=(y($t,[{key:"millis",value:function(){o("Clock.millis")}},{key:"instant",value:function(){o("Clock.instant")}},{key:"zone",value:function(){o("Clock.zone")}},{key:"withZone",value:function(){o("Clock.withZone")}}],[{key:"systemUTC",value:function(){return new en(Ee.UTC)}},{key:"systemDefaultZone",value:function(){return new en(fe.systemDefault())}},{key:"system",value:function(e){return new en(e)}},{key:"fixed",value:function(e,t){return new tn(e,t)}},{key:"offset",value:function(e,t){return new nn(e,t)}}]),$t);function $t(){f(this,$t)}var en=function(){p(i,Qt);var n=S(i);function i(e){var t;return f(this,i),N(e,"zone"),(t=n.call(this))._zone=e,t}return y(i,[{key:"zone",value:function(){return this._zone}},{key:"millis",value:function(){return(new Date).getTime()}},{key:"instant",value:function(){return Jt.ofEpochMilli(this.millis())}},{key:"equals",value:function(e){return e instanceof i&&this._zone.equals(e._zone)}},{key:"withZone",value:function(e){return e.equals(this._zone)?this:new i(e)}},{key:"toString",value:function(){return"SystemClock[".concat(this._zone.toString(),"]")}}]),i}(),tn=function(){p(a,Qt);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._instant=e,n._zoneId=t,n}return y(a,[{key:"instant",value:function(){return this._instant}},{key:"millis",value:function(){return this._instant.toEpochMilli()}},{key:"zone",value:function(){return this._zoneId}},{key:"toString",value:function(){return"FixedClock[]"}},{key:"equals",value:function(e){return e instanceof a&&(this._instant.equals(e._instant)&&this._zoneId.equals(e._zoneId))}},{key:"withZone",value:function(e){return e.equals(this._zoneId)?this:new a(this._instant,e)}}]),a}(),nn=function(){p(a,Qt);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._baseClock=e,n._offset=t,n}return y(a,[{key:"zone",value:function(){return this._baseClock.zone()}},{key:"withZone",value:function(e){return e.equals(this._baseClock.zone())?this:new a(this._baseClock.withZone(e),this._offset)}},{key:"millis",value:function(){return this._baseClock.millis()+this._offset.toMillis()}},{key:"instant",value:function(){return this._baseClock.instant().plus(this._offset)}},{key:"equals",value:function(e){return e instanceof a&&(this._baseClock.equals(e._baseClock)&&this._offset.equals(e._offset))}},{key:"toString",value:function(){return"OffsetClock[".concat(this._baseClock,",").concat(this._offset,"]")}}]),a}(),an=(y(rn,[{key:"instant",value:function(){return this._transition.toInstant(this._offsetBefore)}},{key:"toEpochSecond",value:function(){return this._transition.toEpochSecond(this._offsetBefore)}},{key:"dateTimeBefore",value:function(){return this._transition}},{key:"dateTimeAfter",value:function(){return this._transition.plusSeconds(this.durationSeconds())}},{key:"offsetBefore",value:function(){return this._offsetBefore}},{key:"offsetAfter",value:function(){return this._offsetAfter}},{key:"duration",value:function(){return U.ofSeconds(this.durationSeconds())}},{key:"durationSeconds",value:function(){return this._offsetAfter.totalSeconds()-this._offsetBefore.totalSeconds()}},{key:"isGap",value:function(){return this._offsetAfter.totalSeconds()>this._offsetBefore.totalSeconds()}},{key:"isOverlap",value:function(){return this._offsetAfter.totalSeconds()<this._offsetBefore.totalSeconds()}},{key:"isValidOffset",value:function(e){return!this.isGap()&&(this._offsetBefore.equals(e)||this._offsetAfter.equals(e))}},{key:"validOffsets",value:function(){return this.isGap()?[]:[this._offsetBefore,this._offsetAfter]}},{key:"compareTo",value:function(e){return this.instant().compareTo(e.instant())}},{key:"equals",value:function(e){if(e===this)return!0;if(e instanceof rn){var t=e;return this._transition.equals(t._transition)&&this._offsetBefore.equals(t.offsetBefore())&&this._offsetAfter.equals(t.offsetAfter())}return!1}},{key:"hashCode",value:function(){return this._transition.hashCode()^this._offsetBefore.hashCode()^this._offsetAfter.hashCode()>>>16}},{key:"toString",value:function(){return"Transition[".concat(this.isGap()?"Gap":"Overlap"," at ").concat(this._transition.toString()).concat(this._offsetBefore.toString()," to ").concat(this._offsetAfter,"]")}}],[{key:"of",value:function(e,t,n){return new rn(e,t,n)}}]),rn);function rn(e,t,n){if(f(this,rn),N(e,"transition"),N(t,"offsetBefore"),N(n,"offsetAfter"),t.equals(n))throw new c("Offsets must not be equal");if(0!==e.nano())throw new c("Nano-of-second must be zero");this._transition=e instanceof Gt?e:Gt.ofEpochSecond(e,0,t),this._offsetBefore=t,this._offsetAfter=n}var sn=function(){p(t,de);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"isFixedOffset",value:function(){return!1}},{key:"offsetOfInstant",value:function(e){var t=new Date(e.toEpochMilli()).getTimezoneOffset();return Ee.ofTotalMinutes(-1*t)}},{key:"offsetOfEpochMilli",value:function(e){var t=new Date(e).getTimezoneOffset();return Ee.ofTotalMinutes(-1*t)}},{key:"offsetOfLocalDateTime",value:function(e){var t=1e3*e.toEpochSecond(Ee.UTC),n=new Date(t).getTimezoneOffset(),i=new Date(t+6e4*n).getTimezoneOffset();return Ee.ofTotalMinutes(-1*i)}},{key:"validOffsets",value:function(e){return[this.offsetOfLocalDateTime(e)]}},{key:"transition",value:function(){return null}},{key:"standardOffset",value:function(e){return this.offsetOfInstant(e)}},{key:"daylightSavings",value:function(){this._throwNotSupported()}},{key:"isDaylightSavings",value:function(){this._throwNotSupported()}},{key:"isValidOffset",value:function(e,t){return this.offsetOfLocalDateTime(e).equals(t)}},{key:"nextTransition",value:function(){this._throwNotSupported()}},{key:"previousTransition",value:function(){this._throwNotSupported()}},{key:"transitions",value:function(){this._throwNotSupported()}},{key:"transitionRules",value:function(){this._throwNotSupported()}},{key:"_throwNotSupported",value:function(){throw new T("not supported operation")}},{key:"equals",value:function(e){return this===e||e instanceof t}},{key:"toString",value:function(){return"SYSTEM"}}]),t}(),on=function(){p(n,fe);var t=S(n);function n(){var e;return f(this,n),(e=t.call(this))._rules=new sn,e}return y(n,[{key:"rules",value:function(){return this._rules}},{key:"equals",value:function(e){return this===e}},{key:"id",value:function(){return"SYSTEM"}}]),n}(),un=(y(ln,null,[{key:"systemDefault",value:function(){return hn}},{key:"getAvailableZoneIds",value:function(){return ut.getAvailableZoneIds()}},{key:"of",value:function(e){if(N(e,"zoneId"),"Z"===e)return Ee.UTC;if(1===e.length)throw new T("Invalid zone: ".concat(e));if(he.startsWith(e,"+")||he.startsWith(e,"-"))return Ee.of(e);if("UTC"===e||"GMT"===e||"GMT0"===e||"UT"===e)return new ht(e,Ee.UTC.rules());if(he.startsWith(e,"UTC+")||he.startsWith(e,"GMT+")||he.startsWith(e,"UTC-")||he.startsWith(e,"GMT-")){var t=Ee.of(e.substring(3));return 0===t.totalSeconds()?new ht(e.substring(0,3),t.rules()):new ht(e.substring(0,3)+t.id(),t.rules())}if(he.startsWith(e,"UT+")||he.startsWith(e,"UT-")){var n=Ee.of(e.substring(2));return 0===n.totalSeconds()?new ht("UT",n.rules()):new ht("UT".concat(n.id()),n.rules())}return"SYSTEM"===e?fe.systemDefault():ht.ofId(e)}},{key:"ofOffset",value:function(e,t){if(N(e,"prefix"),N(t,"offset"),0===e.length)return t;if("GMT"===e||"UTC"===e||"UT"===e)return 0===t.totalSeconds()?new ht(e,t.rules()):new ht(e+t.id(),t.rules());throw new c("Invalid prefix, must be GMT, UTC or UT: ".concat(e))}},{key:"from",value:function(e){N(e,"temporal");var t=e.query(Z.zone());if(null==t)throw new T("Unable to obtain ZoneId from TemporalAccessor: ".concat(e,", type ").concat(null!=e.constructor?e.constructor.name:""));return t}}]),ln);function ln(){f(this,ln)}var hn=null;var cn=!1;cn||(cn=!0,V.MIN_VALUE=-999999,V.MAX_VALUE=999999,U.ZERO=new U(0,0),b.NANOS=new b("Nanos",U.ofNanos(1)),b.MICROS=new b("Micros",U.ofNanos(1e3)),b.MILLIS=new b("Millis",U.ofNanos(1e6)),b.SECONDS=new b("Seconds",U.ofSeconds(1)),b.MINUTES=new b("Minutes",U.ofSeconds(60)),b.HOURS=new b("Hours",U.ofSeconds(3600)),b.HALF_DAYS=new b("HalfDays",U.ofSeconds(43200)),b.DAYS=new b("Days",U.ofSeconds(86400)),b.WEEKS=new b("Weeks",U.ofSeconds(604800)),b.MONTHS=new b("Months",U.ofSeconds(2629746)),b.YEARS=new b("Years",U.ofSeconds(31556952)),b.DECADES=new b("Decades",U.ofSeconds(315569520)),b.CENTURIES=new b("Centuries",U.ofSeconds(3155695200)),b.MILLENNIA=new b("Millennia",U.ofSeconds(31556952e3)),b.ERAS=new b("Eras",U.ofSeconds(31556952*(V.MAX_VALUE+1))),b.FOREVER=new b("Forever",U.ofSeconds(M.MAX_SAFE_INTEGER,999999999)),q.NANO_OF_SECOND=new q("NanoOfSecond",b.NANOS,b.SECONDS,x.of(0,999999999)),q.NANO_OF_DAY=new q("NanoOfDay",b.NANOS,b.DAYS,x.of(0,864e11-1)),q.MICRO_OF_SECOND=new q("MicroOfSecond",b.MICROS,b.SECONDS,x.of(0,999999)),q.MICRO_OF_DAY=new q("MicroOfDay",b.MICROS,b.DAYS,x.of(0,864e8-1)),q.MILLI_OF_SECOND=new q("MilliOfSecond",b.MILLIS,b.SECONDS,x.of(0,999)),q.MILLI_OF_DAY=new q("MilliOfDay",b.MILLIS,b.DAYS,x.of(0,864e5-1)),q.SECOND_OF_MINUTE=new q("SecondOfMinute",b.SECONDS,b.MINUTES,x.of(0,59)),q.SECOND_OF_DAY=new q("SecondOfDay",b.SECONDS,b.DAYS,x.of(0,86399)),q.MINUTE_OF_HOUR=new q("MinuteOfHour",b.MINUTES,b.HOURS,x.of(0,59)),q.MINUTE_OF_DAY=new q("MinuteOfDay",b.MINUTES,b.DAYS,x.of(0,1439)),q.HOUR_OF_AMPM=new q("HourOfAmPm",b.HOURS,b.HALF_DAYS,x.of(0,11)),q.CLOCK_HOUR_OF_AMPM=new q("ClockHourOfAmPm",b.HOURS,b.HALF_DAYS,x.of(1,12)),q.HOUR_OF_DAY=new q("HourOfDay",b.HOURS,b.DAYS,x.of(0,23)),q.CLOCK_HOUR_OF_DAY=new q("ClockHourOfDay",b.HOURS,b.DAYS,x.of(1,24)),q.AMPM_OF_DAY=new q("AmPmOfDay",b.HALF_DAYS,b.DAYS,x.of(0,1)),q.DAY_OF_WEEK=new q("DayOfWeek",b.DAYS,b.WEEKS,x.of(1,7)),q.ALIGNED_DAY_OF_WEEK_IN_MONTH=new q("AlignedDayOfWeekInMonth",b.DAYS,b.WEEKS,x.of(1,7)),q.ALIGNED_DAY_OF_WEEK_IN_YEAR=new q("AlignedDayOfWeekInYear",b.DAYS,b.WEEKS,x.of(1,7)),q.DAY_OF_MONTH=new q("DayOfMonth",b.DAYS,b.MONTHS,x.of(1,28,31),"day"),q.DAY_OF_YEAR=new q("DayOfYear",b.DAYS,b.YEARS,x.of(1,365,366)),q.EPOCH_DAY=new q("EpochDay",b.DAYS,b.FOREVER,x.of(Math.floor(365.25*V.MIN_VALUE),Math.floor(365.25*V.MAX_VALUE))),q.ALIGNED_WEEK_OF_MONTH=new q("AlignedWeekOfMonth",b.WEEKS,b.MONTHS,x.of(1,4,5)),q.ALIGNED_WEEK_OF_YEAR=new q("AlignedWeekOfYear",b.WEEKS,b.YEARS,x.of(1,53)),q.MONTH_OF_YEAR=new q("MonthOfYear",b.MONTHS,b.YEARS,x.of(1,12),"month"),q.PROLEPTIC_MONTH=new q("ProlepticMonth",b.MONTHS,b.FOREVER,x.of(12*V.MIN_VALUE,12*V.MAX_VALUE+11)),q.YEAR_OF_ERA=new q("YearOfEra",b.YEARS,b.FOREVER,x.of(1,V.MAX_VALUE,V.MAX_VALUE+1)),q.YEAR=new q("Year",b.YEARS,b.FOREVER,x.of(V.MIN_VALUE,V.MAX_VALUE),"year"),q.ERA=new q("Era",b.ERAS,b.FOREVER,x.of(0,1)),q.INSTANT_SECONDS=new q("InstantSeconds",b.SECONDS,b.FOREVER,x.of(w,A)),q.OFFSET_SECONDS=new q("OffsetSeconds",b.SECONDS,b.FOREVER,x.of(-64800,64800)),function(){Xt.HOURS=[];for(var e=0;e<24;e++)Xt.of(e,0,0,0);Xt.MIN=Xt.HOURS[0],Xt.MAX=new Xt(23,59,59,999999999),Xt.MIDNIGHT=Xt.HOURS[0],Xt.NOON=Xt.HOURS[12],Xt.FROM=X("LocalTime.FROM",function(e){return Xt.from(e)})}(),Ce=new ge,Le=new Re,Pe=new Ie,Ue=new Fe,Ve=new Ye("WeekBasedYears",U.ofSeconds(31556952)),be=new Ye("QuarterYears",U.ofSeconds(7889238)),Te.DAY_OF_QUARTER=Ce,Te.QUARTER_OF_YEAR=Le,Te.WEEK_OF_WEEK_BASED_YEAR=Pe,Te.WEEK_BASED_YEAR=Ue,Te.WEEK_BASED_YEARS=Ve,Te.QUARTER_YEARS=be,Kt.prototype.isoWeekOfWeekyear=function(){return this.get(Te.WEEK_OF_WEEK_BASED_YEAR)},Kt.prototype.isoWeekyear=function(){return this.get(Te.WEEK_BASED_YEAR)},Z.ZONE_ID=X("ZONE_ID",function(e){return e.query(Z.ZONE_ID)}),Z.CHRONO=X("CHRONO",function(e){return e.query(Z.CHRONO)}),Z.PRECISION=X("PRECISION",function(e){return e.query(Z.PRECISION)}),Z.OFFSET=X("OFFSET",function(e){return e.isSupported(q.OFFSET_SECONDS)?Ee.ofTotalSeconds(e.get(q.OFFSET_SECONDS)):null}),Z.ZONE=X("ZONE",function(e){var t=e.query(Z.ZONE_ID);return null!=t?t:e.query(Z.OFFSET)}),Z.LOCAL_DATE=X("LOCAL_DATE",function(e){return e.isSupported(q.EPOCH_DAY)?Kt.ofEpochDay(e.getLong(q.EPOCH_DAY)):null}),Z.LOCAL_TIME=X("LOCAL_TIME",function(e){return e.isSupported(q.NANO_OF_DAY)?Xt.ofNanoOfDay(e.getLong(q.NANO_OF_DAY)):null}),Q.MONDAY=new Q(0,"MONDAY"),Q.TUESDAY=new Q(1,"TUESDAY"),Q.WEDNESDAY=new Q(2,"WEDNESDAY"),Q.THURSDAY=new Q(3,"THURSDAY"),Q.FRIDAY=new Q(4,"FRIDAY"),Q.SATURDAY=new Q(5,"SATURDAY"),Q.SUNDAY=new Q(6,"SUNDAY"),Q.FROM=X("DayOfWeek.FROM",function(e){return Q.from(e)}),J=[Q.MONDAY,Q.TUESDAY,Q.WEDNESDAY,Q.THURSDAY,Q.FRIDAY,Q.SATURDAY,Q.SUNDAY],Jt.MIN_SECONDS=-31619119219200,Jt.MAX_SECONDS=31494816403199,Jt.EPOCH=new Jt(0,0),Jt.MIN=Jt.ofEpochSecond(Jt.MIN_SECONDS,0),Jt.MAX=Jt.ofEpochSecond(Jt.MAX_SECONDS,999999999),Jt.FROM=X("Instant.FROM",function(e){return Jt.from(e)}),Kt.MIN=Kt.of(V.MIN_VALUE,1,1),Kt.MAX=Kt.of(V.MAX_VALUE,12,31),Kt.EPOCH_0=Kt.ofEpochDay(0),Kt.FROM=X("LocalDate.FROM",function(e){return Kt.from(e)}),Gt.MIN=Gt.of(Kt.MIN,Xt.MIN),Gt.MAX=Gt.of(Kt.MAX,Xt.MAX),Gt.FROM=X("LocalDateTime.FROM",function(e){return Gt.from(e)}),Yt.MIN_VALUE=V.MIN_VALUE,Yt.MAX_VALUE=V.MAX_VALUE,Ft=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).toFormatter(),Yt.FROM=X("Year.FROM",function(e){return Yt.from(e)}),ee.JANUARY=new ee(1,"JANUARY"),ee.FEBRUARY=new ee(2,"FEBRUARY"),ee.MARCH=new ee(3,"MARCH"),ee.APRIL=new ee(4,"APRIL"),ee.MAY=new ee(5,"MAY"),ee.JUNE=new ee(6,"JUNE"),ee.JULY=new ee(7,"JULY"),ee.AUGUST=new ee(8,"AUGUST"),ee.SEPTEMBER=new ee(9,"SEPTEMBER"),ee.OCTOBER=new ee(10,"OCTOBER"),ee.NOVEMBER=new ee(11,"NOVEMBER"),ee.DECEMBER=new ee(12,"DECEMBER"),$=[ee.JANUARY,ee.FEBRUARY,ee.MARCH,ee.APRIL,ee.MAY,ee.JUNE,ee.JULY,ee.AUGUST,ee.SEPTEMBER,ee.OCTOBER,ee.NOVEMBER,ee.DECEMBER],Rt=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendLiteral("-").appendValue(q.MONTH_OF_YEAR,2).toFormatter(),It.FROM=X("YearMonth.FROM",function(e){return It.from(e)}),Mt=(new Ot).appendLiteral("--").appendValue(q.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(q.DAY_OF_MONTH,2).toFormatter(),gt.FROM=X("MonthDay.FROM",function(e){return gt.from(e)}),ne.ofDays(0),Ee.MAX_SECONDS=18*Xt.SECONDS_PER_HOUR,Ee.UTC=Ee.ofTotalSeconds(0),Ee.MIN=Ee.ofTotalSeconds(-Ee.MAX_SECONDS),Ee.MAX=Ee.ofTotalSeconds(Ee.MAX_SECONDS),qt.FROM=X("ZonedDateTime.FROM",function(e){return qt.from(e)}),hn=new on,fe.systemDefault=un.systemDefault,fe.getAvailableZoneIds=un.getAvailableZoneIds,fe.of=un.of,fe.ofOffset=un.ofOffset,fe.from=un.from,Ee.from=un.from,fe.SYSTEM=hn,fe.UTC=Ee.ofTotalSeconds(0),Wt.INSTANCE=new Wt("IsoChronology"),Tt.ISO_LOCAL_DATE=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendLiteral("-").appendValue(q.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(q.DAY_OF_MONTH,2).toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_LOCAL_TIME=(new Ot).appendValue(q.HOUR_OF_DAY,2).appendLiteral(":").appendValue(q.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(q.SECOND_OF_MINUTE,2).optionalStart().appendFraction(q.NANO_OF_SECOND,0,9,!0).toFormatter(oe.STRICT),Tt.ISO_LOCAL_DATE_TIME=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_DATE).appendLiteral("T").append(Tt.ISO_LOCAL_TIME).toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_INSTANT=(new Ot).parseCaseInsensitive().appendInstant().toFormatter(oe.STRICT),Tt.ISO_OFFSET_DATE_TIME=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_DATE_TIME).appendOffsetId().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_ZONED_DATE_TIME=(new Ot).append(Tt.ISO_OFFSET_DATE_TIME).optionalStart().appendLiteral("[").parseCaseSensitive().appendZoneId().appendLiteral("]").toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.BASIC_ISO_DATE=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendValue(q.MONTH_OF_YEAR,2).appendValue(q.DAY_OF_MONTH,2).toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_OFFSET_DATE=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_DATE).appendOffsetId().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_OFFSET_TIME=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_TIME).appendOffsetId().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_ORDINAL_DATE=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendLiteral("-").appendValue(q.DAY_OF_YEAR).toFormatter(oe.STRICT),Tt.ISO_WEEK_DATE=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendLiteral("-W").appendValue(q.ALIGNED_WEEK_OF_YEAR).appendLiteral("-").appendValue(q.DAY_OF_WEEK).toFormatter(oe.STRICT),Tt.ISO_DATE=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_DATE).optionalStart().appendOffsetId().optionalEnd().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_TIME=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_TIME).optionalStart().appendOffsetId().optionalEnd().toFormatter(oe.STRICT),Tt.ISO_DATE_TIME=(new Ot).append(Tt.ISO_LOCAL_DATE_TIME).optionalStart().appendOffsetId().optionalEnd().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.PARSED_EXCESS_DAYS=X("PARSED_EXCESS_DAYS",function(e){return e instanceof Se?e.excessDays:ne.ZERO}),Tt.PARSED_LEAP_SECOND=X("PARSED_LEAP_SECOND",function(e){return e instanceof Se&&e.leapSecond}),$e.BASE_DATE=Kt.of(2e3,1,1),Ot.CompositePrinterParser=ze,Ot.PadPrinterParserDecorator=it,Ot.SettingsParser=rt,Ot.CharLiteralPrinterParser=st,Ot.StringLiteralPrinterParser=st,Ot.CharLiteralPrinterParser=qe,Ot.NumberPrinterParser=Je,Ot.ReducedPrinterParser=$e,Ot.FractionPrinterParser=je,Ot.OffsetIdPrinterParser=tt,Ot.ZoneIdPrinterParser=ct,Zt.MIN=Gt.MIN.atOffset(Ee.MAX),Zt.MAX=Gt.MAX.atOffset(Ee.MIN),Zt.FROM=X("OffsetDateTime.FROM",function(e){return Zt.from(e)}),xt.MIN=xt.ofNumbers(0,0,0,0,Ee.MAX),xt.MAX=xt.ofNumbers(23,59,59,999999999,Ee.MIN),xt.FROM=X("OffsetTime.FROM",function(e){return xt.from(e)}));var fn=(y(_n,[{key:"toDate",value:function(){return new Date(this.instant.toEpochMilli())}},{key:"toEpochMilli",value:function(){return this.instant.toEpochMilli()}}]),_n);function _n(e,t){var n;if(f(this,_n),e instanceof Jt)this.instant=e;else{if(e instanceof Kt)t=null==t?fe.systemDefault():t,n=e.atStartOfDay(t);else if(e instanceof Gt)t=null==t?fe.systemDefault():t,n=e.atZone(t);else{if(!(e instanceof qt))throw new c("unsupported instance for convert operation:".concat(e));n=null==t?e:e.withZoneSameInstant(t)}this.instant=n.toInstant()}}function dn(e,t){return new fn(e,t)}var vn=function(){p(a,K);var i=S(a);function a(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:fe.systemDefault();return f(this,a),(t=i.call(this))._zone=n,e instanceof Date?(t._epochMilli=e.getTime(),E(t)):"function"==typeof e.toDate&&e.toDate()instanceof Date?(t._epochMilli=e.toDate().getTime(),E(t)):(k(!1,"date must be either a javascript date or a moment"),t)}return y(a,[{key:"query",value:function(e){return N(e,"query"),e===Z.localDate()?Kt.ofInstant(Jt.ofEpochMilli(this._epochMilli),this._zone):e===Z.localTime()?Xt.ofInstant(Jt.ofEpochMilli(this._epochMilli),this._zone):e===Z.zone()?this._zone:m(d(a.prototype),"query",this).call(this,e)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){if(N(e,"field"),e instanceof q){switch(e){case q.NANO_OF_SECOND:return 1e6*M.floorMod(this._epochMilli,1e3);case q.INSTANT_SECONDS:return M.floorDiv(this._epochMilli,1e3)}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"isSupported",value:function(e){return e===q.INSTANT_SECONDS||e===q.NANO_OF_SECOND}}]),a}();function yn(e,t){return new vn(e,t)}var pn,On,En={assert:h,DateTimeBuilder:Se,DateTimeParseContext:me,DateTimePrintContext:De,MathUtil:M,StringUtil:he,StringBuilder:Dt},Sn={_:En,convert:dn,nativeJs:yn,ArithmeticException:O,DateTimeException:T,DateTimeParseException:v,IllegalArgumentException:c,IllegalStateException:r,UnsupportedTemporalTypeException:u,NullPointerException:s,Clock:Qt,DayOfWeek:Q,Duration:U,Instant:Jt,LocalDate:Kt,LocalTime:Xt,LocalDateTime:Gt,OffsetTime:xt,OffsetDateTime:Zt,Month:ee,MonthDay:gt,Period:ne,Year:Yt,YearConstants:V,YearMonth:It,ZonedDateTime:qt,ZoneOffset:Ee,ZoneId:fe,ZoneRegion:ht,ZoneOffsetTransition:an,ZoneRules:de,ZoneRulesProvider:ut,ChronoLocalDate:le,ChronoLocalDateTime:jt,ChronoZonedDateTime:Bt,IsoChronology:Wt,ChronoField:q,ChronoUnit:b,IsoFields:Te,Temporal:ue,TemporalAccessor:K,TemporalAdjuster:Ct,TemporalAdjusters:Pt,TemporalAmount:Y,TemporalField:H,TemporalQueries:Z,TemporalQuery:G,TemporalUnit:L,ValueRange:x,DateTimeFormatter:Tt,DateTimeFormatterBuilder:Ot,DecimalStyle:He,ResolverStyle:oe,SignStyle:xe,TextStyle:Be},mn=(pn=Sn,On=[],function(e){return~On.indexOf(e)||(e(pn),On.push(e)),pn});return Sn.use=mn,e.ArithmeticException=O,e.ChronoField=q,e.ChronoLocalDate=le,e.ChronoLocalDateTime=jt,e.ChronoUnit=b,e.ChronoZonedDateTime=Bt,e.Clock=Qt,e.DateTimeException=T,e.DateTimeFormatter=Tt,e.DateTimeFormatterBuilder=Ot,e.DateTimeParseException=v,e.DayOfWeek=Q,e.DecimalStyle=He,e.Duration=U,e.IllegalArgumentException=c,e.IllegalStateException=r,e.Instant=Jt,e.IsoChronology=Wt,e.IsoFields=Te,e.LocalDate=Kt,e.LocalDateTime=Gt,e.LocalTime=Xt,e.Month=ee,e.MonthDay=gt,e.NullPointerException=s,e.OffsetDateTime=Zt,e.OffsetTime=xt,e.Period=ne,e.ResolverStyle=oe,e.SignStyle=xe,e.Temporal=ue,e.TemporalAccessor=K,e.TemporalAdjuster=Ct,e.TemporalAdjusters=Pt,e.TemporalAmount=Y,e.TemporalField=H,e.TemporalQueries=Z,e.TemporalQuery=G,e.TemporalUnit=L,e.TextStyle=Be,e.UnsupportedTemporalTypeException=u,e.ValueRange=x,e.Year=Yt,e.YearConstants=V,e.YearMonth=It,e.ZoneId=fe,e.ZoneOffset=Ee,e.ZoneOffsetTransition=an,e.ZoneRegion=ht,e.ZoneRules=de,e.ZoneRulesProvider=ut,e.ZonedDateTime=qt,e._=En,e.convert=dn,e.nativeJs=yn,e.use=mn,e}({});
5
+ var JSJoda=function(e){"use strict";function t(e,t,n){var i=2<arguments.length&&void 0!==n?n:Error;function a(e){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,t&&t.apply(this,arguments),this.toString=function(){return"".concat(this.name,": ").concat(this.message)}}return(a.prototype=Object.create(i.prototype)).name=e,a.prototype.constructor=a}var T=t("DateTimeException",function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=e||this.name;null!==t&&t instanceof Error&&(n+="\n-------\nCaused by: ".concat(t.stack,"\n-------\n"));this.message=n}),v=t("DateTimeParseException",function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,a=e||this.name;a+=": ".concat(t,", at index: ").concat(n),null!==i&&i instanceof Error&&(a+="\n-------\nCaused by: ".concat(i.stack,"\n-------\n"));this.message=a,this.parsedString=function(){return t},this.errorIndex=function(){return n}}),u=t("UnsupportedTemporalTypeException",null,T),O=t("ArithmeticException"),c=t("IllegalArgumentException"),r=t("IllegalStateException"),s=t("NullPointerException");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function S(i){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=d(i);if(a){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return E(this,e)}}function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function k(e,t,n){if(!e)throw n?new n(t):new Error(t)}function N(e,t){if(null==e)throw new s("".concat(t," must not be null"));return e}function D(e,t,n){if(!(e instanceof t))throw new c("".concat(n," must be an instance of ").concat(t.name?t.name:t).concat(e&&e.constructor&&e.constructor.name?", but is ".concat(e.constructor.name):""));return e}function o(e){throw new TypeError('abstract method "'.concat(e,'" is not implemented'))}var l,h=Object.freeze({__proto__:null,assert:k,requireNonNull:N,requireInstance:D,abstractMethodFail:o}),A=9007199254740991,w=-9007199254740991,M=(y(g,null,[{key:"intDiv",value:function(e,t){var n=e/t;return n=g.roundDown(n),g.safeZero(n)}},{key:"intMod",value:function(e,t){var n=e-g.intDiv(e,t)*t;return n=g.roundDown(n),g.safeZero(n)}},{key:"roundDown",value:function(e){return e<0?Math.ceil(e):Math.floor(e)}},{key:"floorDiv",value:function(e,t){var n=Math.floor(e/t);return g.safeZero(n)}},{key:"floorMod",value:function(e,t){var n=e-g.floorDiv(e,t)*t;return g.safeZero(n)}},{key:"safeAdd",value:function(e,t){if(g.verifyInt(e),g.verifyInt(t),0===e)return g.safeZero(t);if(0===t)return g.safeZero(e);var n=g.safeToInt(e+t);if(n===e||n===t)throw new O("Invalid addition beyond MAX_SAFE_INTEGER!");return n}},{key:"safeSubtract",value:function(e,t){return g.verifyInt(e),g.verifyInt(t),0===e&&0===t?0:0===e?g.safeZero(-1*t):0===t?g.safeZero(e):g.safeToInt(e-t)}},{key:"safeMultiply",value:function(e,t){if(g.verifyInt(e),g.verifyInt(t),1===e)return g.safeZero(t);if(1===t)return g.safeZero(e);if(0===e||0===t)return 0;var n=g.safeToInt(e*t);if(n/t!==e||e===w&&-1===t||t===w&&-1===e)throw new O("Multiplication overflows: ".concat(e," * ").concat(t));return n}},{key:"parseInt",value:(l=function(e){var t=parseInt(e);return g.safeToInt(t)},R.toString=function(){return l.toString()},R)},{key:"safeToInt",value:function(e){return g.verifyInt(e),g.safeZero(e)}},{key:"verifyInt",value:function(e){if(null==e)throw new O("Invalid value: '".concat(e,"', using null or undefined as argument"));if(isNaN(e))throw new O("Invalid int value, using NaN as argument");if(e%1!=0)throw new O("Invalid value: '".concat(e,"' is a float"));if(A<e||e<w)throw new O("Calculation overflows an int: ".concat(e))}},{key:"safeZero",value:function(e){return 0===e?0:+e}},{key:"compareNumbers",value:function(e,t){return e<t?-1:t<e?1:0}},{key:"smi",value:function(e){return e>>>1&1073741824|3221225471&e}},{key:"hash",value:function(e){if(e!=e||e===1/0)return 0;for(var t=e;4294967295<e;)t^=e/=4294967295;return g.smi(t)}},{key:"hashCode",value:function(){for(var e=17,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var a=0,r=n;a<r.length;a++){var s=r[a];e=(e<<5)-e+g.hash(s)}return g.hash(e)}}]),g);function g(){f(this,g)}function R(e){return l.apply(this,arguments)}M.MAX_SAFE_INTEGER=A,M.MIN_SAFE_INTEGER=w;var I=(y(F,[{key:"equals",value:function(e){return this===e}},{key:"toString",value:function(){return this._name}},{key:"toJSON",value:function(){return this.toString()}}]),F);function F(e){f(this,F),this._name=e}var Y=(y(C,[{key:"get",value:function(e){o("get")}},{key:"units",value:function(){o("units")}},{key:"addTo",value:function(e){o("addTo")}},{key:"subtractFrom",value:function(e){o("subtractFrom")}}]),C);function C(){f(this,C)}var L=(y(P,[{key:"duration",value:function(){o("duration")}},{key:"isDurationEstimated",value:function(){o("isDurationEstimated")}},{key:"isDateBased",value:function(){o("isDateBased")}},{key:"isTimeBased",value:function(){o("isTimeBased")}},{key:"isSupportedBy",value:function(e){o("isSupportedBy")}},{key:"addTo",value:function(e,t){o("addTo")}},{key:"between",value:function(e,t){o("between")}}]),P);function P(){f(this,P)}var U=function(){p(d,Y);var i=S(d);function d(e,t){var n;return f(this,d),(n=i.call(this))._seconds=M.safeToInt(e),n._nanos=M.safeToInt(t),n}return y(d,[{key:"get",value:function(e){if(e===b.SECONDS)return this._seconds;if(e===b.NANOS)return this._nanos;throw new u("Unsupported unit: ".concat(e))}},{key:"units",value:function(){return[b.SECONDS,b.NANOS]}},{key:"isZero",value:function(){return 0===this._seconds&&0===this._nanos}},{key:"isNegative",value:function(){return this._seconds<0}},{key:"seconds",value:function(){return this._seconds}},{key:"nano",value:function(){return this._nanos}},{key:"withSeconds",value:function(e){return d._create(e,this._nanos)}},{key:"withNanos",value:function(e){return q.NANO_OF_SECOND.checkValidIntValue(e),d._create(this._seconds,e)}},{key:"plusDuration",value:function(e){return N(e,"duration"),this.plus(e.seconds(),e.nano())}},{key:"plus",value:function(e,t){return 1===arguments.length?this.plusDuration(e):2===arguments.length&&t instanceof L?this.plusAmountUnit(e,t):this.plusSecondsNanos(e,t)}},{key:"plusAmountUnit",value:function(e,t){if(N(e,"amountToAdd"),N(t,"unit"),t===b.DAYS)return this.plusSecondsNanos(M.safeMultiply(e,Xt.SECONDS_PER_DAY),0);if(t.isDurationEstimated())throw new u("Unit must not have an estimated duration");if(0===e)return this;if(t instanceof b){switch(t){case b.NANOS:return this.plusNanos(e);case b.MICROS:return this.plusSecondsNanos(1e3*M.intDiv(e,1e9),1e3*M.intMod(e,1e9));case b.MILLIS:return this.plusMillis(e);case b.SECONDS:return this.plusSeconds(e)}return this.plusSecondsNanos(M.safeMultiply(t.duration().seconds(),e),0)}var n=t.duration().multipliedBy(e);return this.plusSecondsNanos(n.seconds(),n.nano())}},{key:"plusDays",value:function(e){return this.plusSecondsNanos(M.safeMultiply(e,Xt.SECONDS_PER_DAY),0)}},{key:"plusHours",value:function(e){return this.plusSecondsNanos(M.safeMultiply(e,Xt.SECONDS_PER_HOUR),0)}},{key:"plusMinutes",value:function(e){return this.plusSecondsNanos(M.safeMultiply(e,Xt.SECONDS_PER_MINUTE),0)}},{key:"plusSeconds",value:function(e){return this.plusSecondsNanos(e,0)}},{key:"plusMillis",value:function(e){return this.plusSecondsNanos(M.intDiv(e,1e3),1e6*M.intMod(e,1e3))}},{key:"plusNanos",value:function(e){return this.plusSecondsNanos(0,e)}},{key:"plusSecondsNanos",value:function(e,t){if(N(e,"secondsToAdd"),N(t,"nanosToAdd"),0===e&&0===t)return this;var n=M.safeAdd(this._seconds,e);n=M.safeAdd(n,M.intDiv(t,Xt.NANOS_PER_SECOND)),t=M.intMod(t,Xt.NANOS_PER_SECOND);var i=M.safeAdd(this._nanos,t);return d.ofSeconds(n,i)}},{key:"minus",value:function(e,t){return 1===arguments.length?this.minusDuration(e):this.minusAmountUnit(e,t)}},{key:"minusDuration",value:function(e){N(e,"duration");var t=e.seconds(),n=e.nano();return t===w?this.plus(A,-n):this.plus(-t,-n)}},{key:"minusAmountUnit",value:function(e,t){return N(e,"amountToSubtract"),N(t,"unit"),e===w?this.plusAmountUnit(A,t):this.plusAmountUnit(-e,t)}},{key:"minusDays",value:function(e){return e===w?this.plusDays(A):this.plusDays(-e)}},{key:"minusHours",value:function(e){return e===w?this.plusHours(A):this.plusHours(-e)}},{key:"minusMinutes",value:function(e){return e===w?this.plusMinutes(A):this.plusMinutes(-e)}},{key:"minusSeconds",value:function(e){return e===w?this.plusSeconds(A):this.plusSeconds(-e)}},{key:"minusMillis",value:function(e){return e===w?this.plusMillis(A):this.plusMillis(-e)}},{key:"minusNanos",value:function(e){return e===w?this.plusNanos(A):this.plusNanos(-e)}},{key:"multipliedBy",value:function(e){if(0===e)return d.ZERO;if(1===e)return this;var t=M.safeMultiply(this._seconds,e),n=M.safeMultiply(this._nanos,e);return t+=M.intDiv(n,Xt.NANOS_PER_SECOND),n=M.intMod(n,Xt.NANOS_PER_SECOND),d.ofSeconds(t,n)}},{key:"dividedBy",value:function(e){if(0===e)throw new O("Cannot divide by zero");if(1===e)return this;var t=M.intDiv(this._seconds,e),n=M.roundDown((this._seconds/e-t)*Xt.NANOS_PER_SECOND),i=M.intDiv(this._nanos,e);return d.ofSeconds(t,i=n+i)}},{key:"negated",value:function(){return this.multipliedBy(-1)}},{key:"abs",value:function(){return this.isNegative()?this.negated():this}},{key:"addTo",value:function(e){return N(e,"temporal"),0!==this._seconds&&(e=e.plus(this._seconds,b.SECONDS)),0!==this._nanos&&(e=e.plus(this._nanos,b.NANOS)),e}},{key:"subtractFrom",value:function(e){return N(e,"temporal"),0!==this._seconds&&(e=e.minus(this._seconds,b.SECONDS)),0!==this._nanos&&(e=e.minus(this._nanos,b.NANOS)),e}},{key:"toDays",value:function(){return M.intDiv(this._seconds,Xt.SECONDS_PER_DAY)}},{key:"toHours",value:function(){return M.intDiv(this._seconds,Xt.SECONDS_PER_HOUR)}},{key:"toMinutes",value:function(){return M.intDiv(this._seconds,Xt.SECONDS_PER_MINUTE)}},{key:"toMillis",value:function(){var e=Math.round(M.safeMultiply(this._seconds,1e3));return e=M.safeAdd(e,M.intDiv(this._nanos,1e6))}},{key:"toNanos",value:function(){var e=M.safeMultiply(this._seconds,Xt.NANOS_PER_SECOND);return e=M.safeAdd(e,this._nanos)}},{key:"compareTo",value:function(e){N(e,"otherDuration"),D(e,d,"otherDuration");var t=M.compareNumbers(this._seconds,e.seconds());return 0!==t?t:this._nanos-e.nano()}},{key:"equals",value:function(e){return this===e||e instanceof d&&(this.seconds()===e.seconds()&&this.nano()===e.nano())}},{key:"toString",value:function(){if(this===d.ZERO)return"PT0S";var e,t=M.intDiv(this._seconds,Xt.SECONDS_PER_HOUR),n=M.intDiv(M.intMod(this._seconds,Xt.SECONDS_PER_HOUR),Xt.SECONDS_PER_MINUTE),i=M.intMod(this._seconds,Xt.SECONDS_PER_MINUTE),a="PT";if(0!==t&&(a+="".concat(t,"H")),0!==n&&(a+="".concat(n,"M")),0===i&&0===this._nanos&&2<a.length)return a;if(i<0&&0<this._nanos?a+=-1===i?"-0":i+1:a+=i,0<this._nanos)for(a+=".",a+=e=(e="".concat(i<0?2*Xt.NANOS_PER_SECOND-this._nanos:Xt.NANOS_PER_SECOND+this._nanos)).slice(1,e.length);"0"===a.charAt(a.length-1);)a=a.slice(0,a.length-1);return a+="S"}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"ofDays",value:function(e){return d._create(M.safeMultiply(e,Xt.SECONDS_PER_DAY),0)}},{key:"ofHours",value:function(e){return d._create(M.safeMultiply(e,Xt.SECONDS_PER_HOUR),0)}},{key:"ofMinutes",value:function(e){return d._create(M.safeMultiply(e,Xt.SECONDS_PER_MINUTE),0)}},{key:"ofSeconds",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,i=M.safeAdd(e,M.floorDiv(n,Xt.NANOS_PER_SECOND)),a=M.floorMod(n,Xt.NANOS_PER_SECOND);return d._create(i,a)}},{key:"ofMillis",value:function(e){var t=M.intDiv(e,1e3),n=M.intMod(e,1e3);return n<0&&(n+=1e3,t--),d._create(t,1e6*n)}},{key:"ofNanos",value:function(e){var t=M.intDiv(e,Xt.NANOS_PER_SECOND),n=M.intMod(e,Xt.NANOS_PER_SECOND);return n<0&&(n+=Xt.NANOS_PER_SECOND,t--),this._create(t,n)}},{key:"of",value:function(e,t){return d.ZERO.plus(e,t)}},{key:"from",value:function(t){N(t,"amount"),D(t,Y);var n=d.ZERO;return t.units().forEach(function(e){n=n.plus(t.get(e),e)}),n}},{key:"between",value:function(e,t){N(e,"startInclusive"),N(t,"endExclusive");var n=e.until(t,b.SECONDS),i=0;if(e.isSupported(q.NANO_OF_SECOND)&&t.isSupported(q.NANO_OF_SECOND))try{var a=e.getLong(q.NANO_OF_SECOND);if(i=t.getLong(q.NANO_OF_SECOND)-a,0<n&&i<0)i+=Xt.NANOS_PER_SECOND;else if(n<0&&0<i)i-=Xt.NANOS_PER_SECOND;else if(0===n&&0!==i){var r=t.with(q.NANO_OF_SECOND,a);n=e.until(r,b.SECONDS)}}catch(e){}return this.ofSeconds(n,i)}},{key:"parse",value:function(t){N(t,"text");var e=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i").exec(t);if(null!==e&&"T"===e[3]==!1){var n="-"===e[1],i=e[2],a=e[4],r=e[5],s=e[6],o=e[7];if(null!=i||null!=a||null!=r||null!=s){var u=d._parseNumber(t,i,Xt.SECONDS_PER_DAY,"days"),l=d._parseNumber(t,a,Xt.SECONDS_PER_HOUR,"hours"),h=d._parseNumber(t,r,Xt.SECONDS_PER_MINUTE,"minutes"),c=d._parseNumber(t,s,1,"seconds"),f=null!=s&&"-"===s.charAt(0),_=d._parseFraction(t,o,f?-1:1);try{return d._create(n,u,l,h,c,_)}catch(e){throw new v("Text cannot be parsed to a Duration: overflow",t,0,e)}}}throw new v("Text cannot be parsed to a Duration",t,0)}},{key:"_parseNumber",value:function(t,e,n,i){if(null==e)return 0;try{return"+"===e[0]&&(e=e.substring(1)),M.safeMultiply(parseFloat(e),n)}catch(e){throw new v("Text cannot be parsed to a Duration: ".concat(i),t,0,e)}}},{key:"_parseFraction",value:function(e,t,n){return null==t||0===t.length?0:(t="".concat(t,"000000000").substring(0,9),parseFloat(t)*n)}},{key:"_create",value:function(e,t,n,i,a,r){return arguments.length<=2?d._createSecondsNanos(e,t):d._createNegateDaysHoursMinutesSecondsNanos(e,t,n,i,a,r)}},{key:"_createNegateDaysHoursMinutesSecondsNanos",value:function(e,t,n,i,a,r){var s=M.safeAdd(t,M.safeAdd(n,M.safeAdd(i,a)));return e?d.ofSeconds(s,r).negated():d.ofSeconds(s,r)}},{key:"_createSecondsNanos",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,i=1<arguments.length&&void 0!==t?t:0;return 0===n&&0===i?d.ZERO:new d(n,i)}}]),d}();var V=function e(){f(this,e)};var b=function(){p(a,L);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._name=e,n._duration=t,n}return y(a,[{key:"duration",value:function(){return this._duration}},{key:"isDurationEstimated",value:function(){return this.isDateBased()||this===a.FOREVER}},{key:"isDateBased",value:function(){return 0<=this.compareTo(a.DAYS)&&this!==a.FOREVER}},{key:"isTimeBased",value:function(){return this.compareTo(a.DAYS)<0}},{key:"isSupportedBy",value:function(t){if(this===a.FOREVER)return!1;try{return t.plus(1,this),!0}catch(e){try{return t.plus(-1,this),!0}catch(e){return!1}}}},{key:"addTo",value:function(e,t){return e.plus(t,this)}},{key:"between",value:function(e,t){return e.until(t,this)}},{key:"toString",value:function(){return this._name}},{key:"compareTo",value:function(e){return this.duration().compareTo(e.duration())}}]),a}();var H=(y(W,[{key:"isDateBased",value:function(){o("isDateBased")}},{key:"isTimeBased",value:function(){o("isTimeBased")}},{key:"baseUnit",value:function(){o("baseUnit")}},{key:"rangeUnit",value:function(){o("rangeUnit")}},{key:"range",value:function(){o("range")}},{key:"rangeRefinedBy",value:function(e){o("rangeRefinedBy")}},{key:"getFrom",value:function(e){o("getFrom")}},{key:"adjustInto",value:function(e,t){o("adjustInto")}},{key:"isSupportedBy",value:function(e){o("isSupportedBy")}},{key:"displayName",value:function(){o("displayName")}},{key:"equals",value:function(e){o("equals")}},{key:"name",value:function(){o("name")}}]),W);function W(){f(this,W)}var x=(y(B,[{key:"isFixed",value:function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest}},{key:"minimum",value:function(){return this._minSmallest}},{key:"largestMinimum",value:function(){return this._minLargest}},{key:"maximum",value:function(){return this._maxLargest}},{key:"smallestMaximum",value:function(){return this._maxSmallest}},{key:"isValidValue",value:function(e){return this.minimum()<=e&&e<=this.maximum()}},{key:"checkValidValue",value:function(e,t){return this.isValidValue(e)?e:k(!1,null!=t?"Invalid value for ".concat(t," (valid values ").concat(this.toString(),"): ").concat(e):"Invalid value (valid values ".concat(this.toString(),"): ").concat(e),T)}},{key:"checkValidIntValue",value:function(e,t){if(!1===this.isValidIntValue(e))throw new T("Invalid int value for ".concat(t,": ").concat(e));return e}},{key:"isValidIntValue",value:function(e){return this.isIntValue()&&this.isValidValue(e)}},{key:"isIntValue",value:function(){return this.minimum()>=M.MIN_SAFE_INTEGER&&this.maximum()<=M.MAX_SAFE_INTEGER}},{key:"equals",value:function(e){return e===this||e instanceof B&&this._minSmallest===e._minSmallest&&this._minLargest===e._minLargest&&this._maxSmallest===e._maxSmallest&&this._maxLargest===e._maxLargest}},{key:"hashCode",value:function(){return M.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)}},{key:"toString",value:function(){var e=this.minimum()+(this.minimum()!==this.largestMinimum()?"/".concat(this.largestMinimum()):"");return e+=" - ",e+=this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/".concat(this.maximum()):"")}}],[{key:"of",value:function(e,t,n,i){return 2===arguments.length?new B(e,e,t,t):3===arguments.length?new B(e,e,t,n):4===arguments.length?new B(e,t,n,i):k(!1,"Invalid number of arguments ".concat(arguments.length),c)}}]),B);function B(e,t,n,i){f(this,B),k(!(t<e),"Smallest minimum value '".concat(e,"' must be less than largest minimum value '").concat(t,"'"),c),k(!(i<n),"Smallest maximum value '".concat(n,"' must be less than largest maximum value '").concat(i,"'"),c),k(!(i<t),"Minimum value '".concat(t,"' must be less than maximum value '").concat(i,"'"),c),this._minSmallest=e,this._minLargest=t,this._maxLargest=i,this._maxSmallest=n}var q=function(){p(s,H);var r=S(s);function s(e,t,n,i){var a;return f(this,s),(a=r.call(this))._name=e,a._baseUnit=t,a._rangeUnit=n,a._range=i,a}return y(s,[{key:"name",value:function(){return this._name}},{key:"baseUnit",value:function(){return this._baseUnit}},{key:"rangeUnit",value:function(){return this._rangeUnit}},{key:"range",value:function(){return this._range}},{key:"displayName",value:function(){return this.toString()}},{key:"checkValidValue",value:function(e){return this.range().checkValidValue(e,this)}},{key:"checkValidIntValue",value:function(e){return this.range().checkValidIntValue(e,this)}},{key:"isDateBased",value:function(){return this===s.DAY_OF_WEEK||this===s.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===s.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===s.DAY_OF_MONTH||this===s.DAY_OF_YEAR||this===s.EPOCH_DAY||this===s.ALIGNED_WEEK_OF_MONTH||this===s.ALIGNED_WEEK_OF_YEAR||this===s.MONTH_OF_YEAR||this===s.YEAR_OF_ERA||this===s.YEAR||this===s.ERA}},{key:"isTimeBased",value:function(){return this===s.NANO_OF_SECOND||this===s.NANO_OF_DAY||this===s.MICRO_OF_SECOND||this===s.MICRO_OF_DAY||this===s.MILLI_OF_SECOND||this===s.MILLI_OF_DAY||this===s.SECOND_OF_MINUTE||this===s.SECOND_OF_DAY||this===s.MINUTE_OF_HOUR||this===s.MINUTE_OF_DAY||this===s.HOUR_OF_AMPM||this===s.CLOCK_HOUR_OF_AMPM||this===s.HOUR_OF_DAY||this===s.CLOCK_HOUR_OF_DAY||this===s.AMPM_OF_DAY}},{key:"rangeRefinedBy",value:function(e){return e.range(this)}},{key:"getFrom",value:function(e){return e.getLong(this)}},{key:"toString",value:function(){return this.name()}},{key:"equals",value:function(e){return this===e}},{key:"adjustInto",value:function(e,t){return e.with(this,t)}},{key:"isSupportedBy",value:function(e){return e.isSupported(this)}}],[{key:"byName",value:function(e){for(var t in s)if(s[t]&&s[t]instanceof s&&s[t].name()===e)return s[t]}}]),s}();var Z=(y(z,null,[{key:"zoneId",value:function(){return z.ZONE_ID}},{key:"chronology",value:function(){return z.CHRONO}},{key:"precision",value:function(){return z.PRECISION}},{key:"zone",value:function(){return z.ZONE}},{key:"offset",value:function(){return z.OFFSET}},{key:"localDate",value:function(){return z.LOCAL_DATE}},{key:"localTime",value:function(){return z.LOCAL_TIME}}]),z);function z(){f(this,z)}var K=(y(j,[{key:"query",value:function(e){return e===Z.zoneId()||e===Z.chronology()||e===Z.precision()?null:e.queryFrom(this)}},{key:"get",value:function(e){return this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){o("getLong")}},{key:"range",value:function(e){if(e instanceof q){if(this.isSupported(e))return e.range();throw new u("Unsupported field: ".concat(e))}return e.rangeRefinedBy(this)}},{key:"isSupported",value:function(e){o("isSupported")}}]),j);function j(){f(this,j)}var G=function(){p(t,I);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"queryFrom",value:function(e){o("queryFrom")}}]),t}();function X(e,t){var n=function(){p(t,G);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return t}();return n.prototype.queryFrom=t,new n(e)}var J,Q=function(){p(a,K);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._ordinal=e,n._name=t,n}return y(a,[{key:"ordinal",value:function(){return this._ordinal}},{key:"name",value:function(){return this._name}},{key:"value",value:function(){return this._ordinal+1}},{key:"displayName",value:function(e,t){throw new c("Pattern using (localized) text not implemented yet!")}},{key:"isSupported",value:function(e){return e instanceof q?e===q.DAY_OF_WEEK:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){if(e===q.DAY_OF_WEEK)return e.range();if(e instanceof q)throw new u("Unsupported field: ".concat(e));return e.rangeRefinedBy(this)}},{key:"get",value:function(e){return e===q.DAY_OF_WEEK?this.value():this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(e===q.DAY_OF_WEEK)return this.value();if(e instanceof q)throw new u("Unsupported field: ".concat(e));return e.getFrom(this)}},{key:"plus",value:function(e){var t=M.floorMod(e,7);return J[M.floorMod(this._ordinal+(t+7),7)]}},{key:"minus",value:function(e){return this.plus(-1*M.floorMod(e,7))}},{key:"query",value:function(e){return e===Z.precision()?b.DAYS:e===Z.localDate()||e===Z.localTime()||e===Z.chronology()||e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:(k(null!=e,"query",s),e.queryFrom(this))}},{key:"adjustInto",value:function(e){return N(e,"temporal"),e.with(q.DAY_OF_WEEK,this.value())}},{key:"equals",value:function(e){return this===e}},{key:"toString",value:function(){return this._name}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,a,"other"),this._ordinal-e._ordinal}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"values",value:function(){return J.slice()}},{key:"valueOf",value:function(e){for(var t=0;t<J.length&&J[t].name()!==e;t++);return a.of(t+1)}},{key:"of",value:function(e){if(e<1||7<e)throw new T("Invalid value for DayOfWeek: ".concat(e));return J[e-1]}},{key:"from",value:function(t){if(k(null!=t,"temporal",s),t instanceof a)return t;try{return a.of(t.get(q.DAY_OF_WEEK))}catch(e){throw e instanceof T?new T("Unable to obtain DayOfWeek from TemporalAccessor: ".concat(t,", type ").concat(null!=t.constructor?t.constructor.name:""),e):e}}}]),a}();var $,ee=function(){p(a,K);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._value=M.safeToInt(e),n._name=t,n}return y(a,[{key:"value",value:function(){return this._value}},{key:"ordinal",value:function(){return this._value-1}},{key:"name",value:function(){return this._name}},{key:"displayName",value:function(e,t){throw new c("Pattern using (localized) text not implemented yet!")}},{key:"isSupported",value:function(e){return null!==e&&(e instanceof q?e===q.MONTH_OF_YEAR:null!=e&&e.isSupportedBy(this))}},{key:"get",value:function(e){return e===q.MONTH_OF_YEAR?this.value():this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(e===q.MONTH_OF_YEAR)return this.value();if(e instanceof q)throw new u("Unsupported field: ".concat(e));return e.getFrom(this)}},{key:"plus",value:function(e){var t=M.intMod(e,12)+12,n=M.intMod(this.value()+t,12);return a.of(n=0===n?12:n)}},{key:"minus",value:function(e){return this.plus(-1*M.intMod(e,12))}},{key:"length",value:function(e){switch(this){case a.FEBRUARY:return e?29:28;case a.APRIL:case a.JUNE:case a.SEPTEMBER:case a.NOVEMBER:return 30;default:return 31}}},{key:"minLength",value:function(){switch(this){case a.FEBRUARY:return 28;case a.APRIL:case a.JUNE:case a.SEPTEMBER:case a.NOVEMBER:return 30;default:return 31}}},{key:"maxLength",value:function(){switch(this){case a.FEBRUARY:return 29;case a.APRIL:case a.JUNE:case a.SEPTEMBER:case a.NOVEMBER:return 30;default:return 31}}},{key:"firstDayOfYear",value:function(e){var t=e?1:0;switch(this){case a.JANUARY:return 1;case a.FEBRUARY:return 32;case a.MARCH:return 60+t;case a.APRIL:return 91+t;case a.MAY:return 121+t;case a.JUNE:return 152+t;case a.JULY:return 182+t;case a.AUGUST:return 213+t;case a.SEPTEMBER:return 244+t;case a.OCTOBER:return 274+t;case a.NOVEMBER:return 305+t;case a.DECEMBER:default:return 335+t}}},{key:"firstMonthOfQuarter",value:function(){switch(this){case a.JANUARY:case a.FEBRUARY:case a.MARCH:return a.JANUARY;case a.APRIL:case a.MAY:case a.JUNE:return a.APRIL;case a.JULY:case a.AUGUST:case a.SEPTEMBER:return a.JULY;case a.OCTOBER:case a.NOVEMBER:case a.DECEMBER:default:return a.OCTOBER}}},{key:"query",value:function(e){return k(null!=e,"query() parameter must not be null",T),e===Z.chronology()?Wt.INSTANCE:e===Z.precision()?b.MONTHS:m(d(a.prototype),"query",this).call(this,e)}},{key:"toString",value:function(){switch(this){case a.JANUARY:return"JANUARY";case a.FEBRUARY:return"FEBRUARY";case a.MARCH:return"MARCH";case a.APRIL:return"APRIL";case a.MAY:return"MAY";case a.JUNE:return"JUNE";case a.JULY:return"JULY";case a.AUGUST:return"AUGUST";case a.SEPTEMBER:return"SEPTEMBER";case a.OCTOBER:return"OCTOBER";case a.NOVEMBER:return"NOVEMBER";case a.DECEMBER:return"DECEMBER";default:return"unknown Month, value: ".concat(this.value())}}},{key:"toJSON",value:function(){return this.toString()}},{key:"adjustInto",value:function(e){return e.with(q.MONTH_OF_YEAR,this.value())}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,a,"other"),this._value-e._value}},{key:"equals",value:function(e){return this===e}}],[{key:"valueOf",value:function(e){for(var t=0;t<$.length&&$[t].name()!==e;t++);return a.of(t+1)}},{key:"values",value:function(){return $.slice()}},{key:"of",value:function(e){return(e<1||12<e)&&k(!1,"Invalid value for MonthOfYear: ".concat(e),T),$[e-1]}},{key:"from",value:function(t){if(t instanceof a)return t;try{return a.of(t.get(q.MONTH_OF_YEAR))}catch(e){throw new T("Unable to obtain Month from TemporalAccessor: ".concat(t," of type ").concat(t&&null!=t.constructor?t.constructor.name:""),e)}}}]),a}();var te=/([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/,ne=function(){p(c,Y);var o=S(c);function c(e,t,n){var i;f(this,c),i=o.call(this);var a=M.safeToInt(e),r=M.safeToInt(t),s=M.safeToInt(n);return 0===a&&0===r&&0===s?(c.ZERO||(i._years=a,i._months=r,i._days=s,c.ZERO=_(i)),E(i,c.ZERO)):(i._years=a,i._months=r,i._days=s,i)}return y(c,[{key:"units",value:function(){return[b.YEARS,b.MONTHS,b.DAYS]}},{key:"chronology",value:function(){return Wt.INSTANCE}},{key:"get",value:function(e){if(e===b.YEARS)return this._years;if(e===b.MONTHS)return this._months;if(e===b.DAYS)return this._days;throw new u("Unsupported unit: ".concat(e))}},{key:"isZero",value:function(){return this===c.ZERO}},{key:"isNegative",value:function(){return this._years<0||this._months<0||this._days<0}},{key:"years",value:function(){return this._years}},{key:"months",value:function(){return this._months}},{key:"days",value:function(){return this._days}},{key:"withYears",value:function(e){return e===this._years?this:c.create(e,this._months,this._days)}},{key:"withMonths",value:function(e){return e===this._months?this:c.create(this._years,e,this._days)}},{key:"withDays",value:function(e){return e===this._days?this:c.create(this._years,this._months,e)}},{key:"plus",value:function(e){var t=c.from(e);return c.create(M.safeAdd(this._years,t._years),M.safeAdd(this._months,t._months),M.safeAdd(this._days,t._days))}},{key:"plusYears",value:function(e){return 0===e?this:c.create(M.safeToInt(M.safeAdd(this._years,e)),this._months,this._days)}},{key:"plusMonths",value:function(e){return 0===e?this:c.create(this._years,M.safeToInt(M.safeAdd(this._months,e)),this._days)}},{key:"plusDays",value:function(e){return 0===e?this:c.create(this._years,this._months,M.safeToInt(M.safeAdd(this._days,e)))}},{key:"minus",value:function(e){var t=c.from(e);return c.create(M.safeSubtract(this._years,t._years),M.safeSubtract(this._months,t._months),M.safeSubtract(this._days,t._days))}},{key:"minusYears",value:function(e){return this.plusYears(-1*e)}},{key:"minusMonths",value:function(e){return this.plusMonths(-1*e)}},{key:"minusDays",value:function(e){return this.plusDays(-1*e)}},{key:"multipliedBy",value:function(e){return this===c.ZERO||1===e?this:c.create(M.safeMultiply(this._years,e),M.safeMultiply(this._months,e),M.safeMultiply(this._days,e))}},{key:"negated",value:function(){return this.multipliedBy(-1)}},{key:"normalized",value:function(){var e=this.toTotalMonths(),t=M.intDiv(e,12),n=M.intMod(e,12);return t===this._years&&n===this._months?this:c.create(M.safeToInt(t),n,this._days)}},{key:"toTotalMonths",value:function(){return 12*this._years+this._months}},{key:"addTo",value:function(e){return N(e,"temporal"),0!==this._years?e=0!==this._months?e.plus(this.toTotalMonths(),b.MONTHS):e.plus(this._years,b.YEARS):0!==this._months&&(e=e.plus(this._months,b.MONTHS)),0!==this._days&&(e=e.plus(this._days,b.DAYS)),e}},{key:"subtractFrom",value:function(e){return N(e,"temporal"),0!==this._years?e=0!==this._months?e.minus(this.toTotalMonths(),b.MONTHS):e.minus(this._years,b.YEARS):0!==this._months&&(e=e.minus(this._months,b.MONTHS)),0!==this._days&&(e=e.minus(this._days,b.DAYS)),e}},{key:"equals",value:function(e){if(this===e)return!0;if(e instanceof c){var t=e;return this._years===t._years&&this._months===t._months&&this._days===t._days}return!1}},{key:"hashCode",value:function(){return M.hashCode(this._years,this._months,this._days)}},{key:"toString",value:function(){if(this===c.ZERO)return"P0D";var e="P";return 0!==this._years&&(e+="".concat(this._years,"Y")),0!==this._months&&(e+="".concat(this._months,"M")),0!==this._days&&(e+="".concat(this._days,"D")),e}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"ofYears",value:function(e){return c.create(e,0,0)}},{key:"ofMonths",value:function(e){return c.create(0,e,0)}},{key:"ofWeeks",value:function(e){return c.create(0,0,M.safeMultiply(e,7))}},{key:"ofDays",value:function(e){return c.create(0,0,e)}},{key:"of",value:function(e,t,n){return c.create(e,t,n)}},{key:"from",value:function(e){if(e instanceof c)return e;N(e,"amount");for(var t=0,n=0,i=0,a=e.units(),r=0;r<a.length;r++){var s=a[r],o=e.get(s);if(s===b.YEARS)t=M.safeToInt(o);else if(s===b.MONTHS)n=M.safeToInt(o);else{if(s!==b.DAYS)throw new T("Unit must be Years, Months or Days, but was ".concat(s));i=M.safeToInt(o)}}return c.create(t,n,i)}},{key:"between",value:function(e,t){return N(e,"startDate"),N(t,"endDate"),D(e,Kt,"startDate"),D(t,Kt,"endDate"),e.until(t)}},{key:"parse",value:function(t){N(t,"text");try{return c._parse(t)}catch(e){throw e instanceof O?new v("Text cannot be parsed to a Period",t,0,e):e}}},{key:"_parse",value:function(e){var t=te.exec(e);if(null!=t){var n="-"===t[1]?-1:1,i=t[2],a=t[3],r=t[4],s=t[5];if(null!=i||null!=a||null!=r||null!=s){var o=c._parseNumber(e,i,n),u=c._parseNumber(e,a,n),l=c._parseNumber(e,r,n),h=c._parseNumber(e,s,n);return h=M.safeAdd(h,M.safeMultiply(l,7)),c.create(o,u,h)}}throw new v("Text cannot be parsed to a Period",e,0)}},{key:"_parseNumber",value:function(e,t,n){if(null==t)return 0;var i=M.parseInt(t);return M.safeMultiply(i,n)}},{key:"create",value:function(e,t,n){return new c(e,t,n)}}]),c}();var ie=(y(ae,[{key:"getIndex",value:function(){return this._index}},{key:"setIndex",value:function(e){this._index=e}},{key:"getErrorIndex",value:function(){return this._errorIndex}},{key:"setErrorIndex",value:function(e){this._errorIndex=e}}]),ae);function ae(e){f(this,ae),this._index=e,this._errorIndex=-1}var re=(y(se,[{key:"putAll",value:function(e){for(var t in e._map)this._map[t]=e._map[t];return this}},{key:"containsKey",value:function(e){return this._map.hasOwnProperty(e.name())&&void 0!==this.get(e)}},{key:"get",value:function(e){return this._map[e.name()]}},{key:"put",value:function(e,t){return this.set(e,t)}},{key:"set",value:function(e,t){return this._map[e.name()]=t,this}},{key:"retainAll",value:function(e){for(var t={},n=0;n<e.length;n++){var i=e[n].name();t[i]=this._map[i]}return this._map=t,this}},{key:"remove",value:function(e){var t=e.name(),n=this._map[t];return this._map[t]=void 0,n}},{key:"keySet",value:function(){return this._map}},{key:"clear",value:function(){this._map={}}}]),se);function se(){f(this,se),this._map={}}var oe=function(){p(t,I);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return t}();oe.STRICT=new oe("STRICT"),oe.SMART=new oe("SMART"),oe.LENIENT=new oe("LENIENT");var ue=function(){p(t,K);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"isSupported",value:function(e){o("isSupported")}},{key:"minus",value:function(e,t){return arguments.length<2?this._minusAmount(e):this._minusUnit(e,t)}},{key:"_minusAmount",value:function(e){return N(e,"amount"),D(e,Y,"amount"),e.subtractFrom(this)}},{key:"_minusUnit",value:function(e,t){return N(e,"amountToSubtract"),N(t,"unit"),D(t,L,"unit"),this._plusUnit(-e,t)}},{key:"plus",value:function(e,t){return arguments.length<2?this._plusAmount(e):this._plusUnit(e,t)}},{key:"_plusAmount",value:function(e){return N(e,"amount"),D(e,Y,"amount"),e.addTo(this)}},{key:"_plusUnit",value:function(e,t){o("_plusUnit")}},{key:"until",value:function(e,t){o("until")}},{key:"with",value:function(e,t){return arguments.length<2?this._withAdjuster(e):this._withField(e,t)}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),k("function"==typeof e.adjustInto,"adjuster must be a TemporalAdjuster",c),e.adjustInto(this)}},{key:"_withField",value:function(e,t){o("_withField")}}]),t}(),le=function(){p(t,ue);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"isSupported",value:function(e){return e instanceof q?e.isDateBased():e instanceof b?e.isDateBased():null!=e&&e.isSupportedBy(this)}},{key:"query",value:function(e){return e===Z.chronology()?this.chronology():e===Z.precision()?b.DAYS:e===Z.localDate()?Kt.ofEpochDay(this.toEpochDay()):e===Z.localTime()||e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:m(d(t.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return e.with(q.EPOCH_DAY,this.toEpochDay())}},{key:"format",value:function(e){return N(e,"formatter"),D(e,Tt,"formatter"),e.format(this)}}]),t}(),he=(y(ce,null,[{key:"startsWith",value:function(e,t){return 0===e.indexOf(t)}},{key:"hashCode",value:function(e){var t=e.length;if(0===t)return 0;for(var n=0,i=0;i<t;i++)n=(n<<5)-n+e.charCodeAt(i),n|=0;return M.smi(n)}}]),ce);function ce(){f(this,ce)}var fe=(y(_e,[{key:"id",value:function(){o("ZoneId.id")}},{key:"rules",value:function(){o("ZoneId.rules")}},{key:"normalized",value:function(){var e=this.rules();return e.isFixedOffset()?e.offset(Jt.EPOCH):this}},{key:"equals",value:function(e){return this===e||e instanceof _e&&this.id()===e.id()}},{key:"hashCode",value:function(){return he.hashCode(this.id())}},{key:"toString",value:function(){return this.id()}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"systemDefault",value:function(){throw new T("not supported operation")}},{key:"getAvailableZoneIds",value:function(){throw new T("not supported operation")}},{key:"of",value:function(e){throw new T("not supported operation".concat(e))}},{key:"ofOffset",value:function(e,t){throw new T("not supported operation".concat(e).concat(t))}},{key:"from",value:function(e){throw new T("not supported operation".concat(e))}}]),_e);function _e(){f(this,_e)}var de=(y(ve,[{key:"isFixedOffset",value:function(){o("ZoneRules.isFixedOffset")}},{key:"offset",value:function(e){return e instanceof Jt?this.offsetOfInstant(e):this.offsetOfLocalDateTime(e)}},{key:"offsetOfInstant",value:function(e){o("ZoneRules.offsetInstant")}},{key:"offsetOfEpochMilli",value:function(e){o("ZoneRules.offsetOfEpochMilli")}},{key:"offsetOfLocalDateTime",value:function(e){o("ZoneRules.offsetLocalDateTime")}},{key:"validOffsets",value:function(e){o("ZoneRules.validOffsets")}},{key:"transition",value:function(e){o("ZoneRules.transition")}},{key:"standardOffset",value:function(e){o("ZoneRules.standardOffset")}},{key:"daylightSavings",value:function(e){o("ZoneRules.daylightSavings")}},{key:"isDaylightSavings",value:function(e){o("ZoneRules.isDaylightSavings")}},{key:"isValidOffset",value:function(e,t){o("ZoneRules.isValidOffset")}},{key:"nextTransition",value:function(e){o("ZoneRules.nextTransition")}},{key:"previousTransition",value:function(e){o("ZoneRules.previousTransition")}},{key:"transitions",value:function(){o("ZoneRules.transitions")}},{key:"transitionRules",value:function(){o("ZoneRules.transitionRules")}},{key:"toString",value:function(){o("ZoneRules.toString")}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"of",value:function(e){return N(e,"offset"),new ye(e)}}]),ve);function ve(){f(this,ve)}var ye=function(){p(i,de);var n=S(i);function i(e){var t;return f(this,i),(t=n.call(this))._offset=e,t}return y(i,[{key:"isFixedOffset",value:function(){return!0}},{key:"offsetOfInstant",value:function(){return this._offset}},{key:"offsetOfEpochMilli",value:function(){return this._offset}},{key:"offsetOfLocalDateTime",value:function(){return this._offset}},{key:"validOffsets",value:function(){return[this._offset]}},{key:"transition",value:function(){return null}},{key:"standardOffset",value:function(){return this._offset}},{key:"daylightSavings",value:function(){return U.ZERO}},{key:"isDaylightSavings",value:function(){return!1}},{key:"isValidOffset",value:function(e,t){return this._offset.equals(t)}},{key:"nextTransition",value:function(){return null}},{key:"previousTransition",value:function(){return null}},{key:"transitions",value:function(){return[]}},{key:"transitionRules",value:function(){return[]}},{key:"equals",value:function(e){return this===e||e instanceof i&&this._offset.equals(e._offset)}},{key:"toString",value:function(){return"FixedRules:".concat(this._offset.toString())}}]),i}(),pe={},Oe={},Ee=function(){p(s,fe);var n=S(s);function s(e){var t;return f(this,s),t=n.call(this),s._validateTotalSeconds(e),t._totalSeconds=M.safeToInt(e),t._rules=de.of(_(t)),t._id=s._buildId(e),t}return y(s,[{key:"totalSeconds",value:function(){return this._totalSeconds}},{key:"id",value:function(){return this._id}},{key:"rules",value:function(){return this._rules}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){if(e===q.OFFSET_SECONDS)return this._totalSeconds;if(e instanceof q)throw new T("Unsupported field: ".concat(e));return e.getFrom(this)}},{key:"query",value:function(e){return N(e,"query"),e===Z.offset()||e===Z.zone()?this:e===Z.localDate()||e===Z.localTime()||e===Z.precision()||e===Z.chronology()||e===Z.zoneId()?null:e.queryFrom(this)}},{key:"adjustInto",value:function(e){return e.with(q.OFFSET_SECONDS,this._totalSeconds)}},{key:"compareTo",value:function(e){return N(e,"other"),e._totalSeconds-this._totalSeconds}},{key:"equals",value:function(e){return this===e||e instanceof s&&this._totalSeconds===e._totalSeconds}},{key:"hashCode",value:function(){return this._totalSeconds}},{key:"toString",value:function(){return this._id}}],[{key:"_buildId",value:function(e){if(0===e)return"Z";var t=Math.abs(e),n=M.intDiv(t,Xt.SECONDS_PER_HOUR),i=M.intMod(M.intDiv(t,Xt.SECONDS_PER_MINUTE),Xt.MINUTES_PER_HOUR),a="".concat(e<0?"-":"+").concat(n<10?"0":"").concat(n).concat(i<10?":0":":").concat(i),r=M.intMod(t,Xt.SECONDS_PER_MINUTE);return 0!==r&&(a+=(r<10?":0":":")+r),a}},{key:"_validateTotalSeconds",value:function(e){if(Math.abs(e)>s.MAX_SECONDS)throw new T("Zone offset not in valid range: -18:00 to +18:00")}},{key:"_validate",value:function(e,t,n){if(e<-18||18<e)throw new T("Zone offset hours not in valid range: value ".concat(e," is not in the range -18 to 18"));if(0<e){if(t<0||n<0)throw new T("Zone offset minutes and seconds must be positive because hours is positive")}else if(e<0){if(0<t||0<n)throw new T("Zone offset minutes and seconds must be negative because hours is negative")}else if(0<t&&n<0||t<0&&0<n)throw new T("Zone offset minutes and seconds must have the same sign");if(59<Math.abs(t))throw new T("Zone offset minutes not in valid range: abs(value) ".concat(Math.abs(t)," is not in the range 0 to 59"));if(59<Math.abs(n))throw new T("Zone offset seconds not in valid range: abs(value) ".concat(Math.abs(n)," is not in the range 0 to 59"));if(18===Math.abs(e)&&(0<Math.abs(t)||0<Math.abs(n)))throw new T("Zone offset not in valid range: -18:00 to +18:00")}},{key:"of",value:function(e){N(e,"offsetId");var t,n,i,a=Oe[e];if(null!=a)return a;switch(e.length){case 2:e="".concat(e[0],"0").concat(e[1]);case 3:t=s._parseNumber(e,1,!1),i=n=0;break;case 5:t=s._parseNumber(e,1,!1),n=s._parseNumber(e,3,!1),i=0;break;case 6:t=s._parseNumber(e,1,!1),n=s._parseNumber(e,4,!0),i=0;break;case 7:t=s._parseNumber(e,1,!1),n=s._parseNumber(e,3,!1),i=s._parseNumber(e,5,!1);break;case 9:t=s._parseNumber(e,1,!1),n=s._parseNumber(e,4,!0),i=s._parseNumber(e,7,!0);break;default:throw new T("Invalid ID for ZoneOffset, invalid format: ".concat(e))}var r=e[0];if("+"!==r&&"-"!==r)throw new T("Invalid ID for ZoneOffset, plus/minus not found when expected: ".concat(e));return"-"===r?s.ofHoursMinutesSeconds(-t,-n,-i):s.ofHoursMinutesSeconds(t,n,i)}},{key:"_parseNumber",value:function(e,t,n){if(n&&":"!==e[t-1])throw new T("Invalid ID for ZoneOffset, colon not found when expected: ".concat(e));var i=e[t],a=e[t+1];if(i<"0"||"9"<i||a<"0"||"9"<a)throw new T("Invalid ID for ZoneOffset, non numeric characters found: ".concat(e));return 10*(i.charCodeAt(0)-48)+(a.charCodeAt(0)-48)}},{key:"ofHours",value:function(e){return s.ofHoursMinutesSeconds(e,0,0)}},{key:"ofHoursMinutes",value:function(e,t){return s.ofHoursMinutesSeconds(e,t,0)}},{key:"ofHoursMinutesSeconds",value:function(e,t,n){s._validate(e,t,n);var i=e*Xt.SECONDS_PER_HOUR+t*Xt.SECONDS_PER_MINUTE+n;return s.ofTotalSeconds(i)}},{key:"ofTotalMinutes",value:function(e){var t=e*Xt.SECONDS_PER_MINUTE;return s.ofTotalSeconds(t)}},{key:"ofTotalSeconds",value:function(e){if(e%(15*Xt.SECONDS_PER_MINUTE)!=0)return new s(e);var t=e,n=pe[t];return null==n&&(n=new s(e),pe[t]=n,Oe[n.id()]=n),n}}]),s}();var Se=function(){p(i,K);var t=S(i);function i(){var e;return f(this,i),(e=t.call(this)).fieldValues=new re,e.chrono=null,e.zone=null,e.date=null,e.time=null,e.leapSecond=!1,e.excessDays=null,e}return y(i,[{key:"getFieldValue0",value:function(e){return this.fieldValues.get(e)}},{key:"_addFieldValue",value:function(e,t){N(e,"field");var n=this.getFieldValue0(e);if(null!=n&&n!==t)throw new T("Conflict found: ".concat(e," ").concat(n," differs from ").concat(e," ").concat(t,": ").concat(this));return this._putFieldValue0(e,t)}},{key:"_putFieldValue0",value:function(e,t){return this.fieldValues.put(e,t),this}},{key:"resolve",value:function(e,t){return null!=t&&this.fieldValues.retainAll(t),this._mergeDate(e),this._mergeTime(e),this._resolveTimeInferZeroes(e),null!=this.excessDays&&!1===this.excessDays.isZero()&&null!=this.date&&null!=this.time&&(this.date=this.date.plus(this.excessDays),this.excessDays=ne.ZERO),this._resolveInstant(),this}},{key:"_mergeDate",value:function(e){this._checkDate(Wt.INSTANCE.resolveDate(this.fieldValues,e))}},{key:"_checkDate",value:function(e){if(null!=e)for(var t in this._addObject(e),this.fieldValues.keySet()){var n=q.byName(t);if(n&&void 0!==this.fieldValues.get(n)&&n.isDateBased()){var i=void 0;try{i=e.getLong(n)}catch(e){if(e instanceof T)continue;throw e}var a=this.fieldValues.get(n);if(i!==a)throw new T("Conflict found: Field ".concat(n," ").concat(i," differs from ").concat(n," ").concat(a," derived from ").concat(e))}}}},{key:"_mergeTime",value:function(e){if(this.fieldValues.containsKey(q.CLOCK_HOUR_OF_DAY)){var t=this.fieldValues.remove(q.CLOCK_HOUR_OF_DAY);e!==oe.LENIENT&&(e===oe.SMART&&0===t||q.CLOCK_HOUR_OF_DAY.checkValidValue(t)),this._addFieldValue(q.HOUR_OF_DAY,24===t?0:t)}if(this.fieldValues.containsKey(q.CLOCK_HOUR_OF_AMPM)){var n=this.fieldValues.remove(q.CLOCK_HOUR_OF_AMPM);e!==oe.LENIENT&&(e===oe.SMART&&0===n||q.CLOCK_HOUR_OF_AMPM.checkValidValue(n)),this._addFieldValue(q.HOUR_OF_AMPM,12===n?0:n)}if(e!==oe.LENIENT&&(this.fieldValues.containsKey(q.AMPM_OF_DAY)&&q.AMPM_OF_DAY.checkValidValue(this.fieldValues.get(q.AMPM_OF_DAY)),this.fieldValues.containsKey(q.HOUR_OF_AMPM)&&q.HOUR_OF_AMPM.checkValidValue(this.fieldValues.get(q.HOUR_OF_AMPM))),this.fieldValues.containsKey(q.AMPM_OF_DAY)&&this.fieldValues.containsKey(q.HOUR_OF_AMPM)){var i=this.fieldValues.remove(q.AMPM_OF_DAY),a=this.fieldValues.remove(q.HOUR_OF_AMPM);this._addFieldValue(q.HOUR_OF_DAY,12*i+a)}if(this.fieldValues.containsKey(q.NANO_OF_DAY)){var r=this.fieldValues.remove(q.NANO_OF_DAY);e!==oe.LENIENT&&q.NANO_OF_DAY.checkValidValue(r),this._addFieldValue(q.SECOND_OF_DAY,M.intDiv(r,1e9)),this._addFieldValue(q.NANO_OF_SECOND,M.intMod(r,1e9))}if(this.fieldValues.containsKey(q.MICRO_OF_DAY)){var s=this.fieldValues.remove(q.MICRO_OF_DAY);e!==oe.LENIENT&&q.MICRO_OF_DAY.checkValidValue(s),this._addFieldValue(q.SECOND_OF_DAY,M.intDiv(s,1e6)),this._addFieldValue(q.MICRO_OF_SECOND,M.intMod(s,1e6))}if(this.fieldValues.containsKey(q.MILLI_OF_DAY)){var o=this.fieldValues.remove(q.MILLI_OF_DAY);e!==oe.LENIENT&&q.MILLI_OF_DAY.checkValidValue(o),this._addFieldValue(q.SECOND_OF_DAY,M.intDiv(o,1e3)),this._addFieldValue(q.MILLI_OF_SECOND,M.intMod(o,1e3))}if(this.fieldValues.containsKey(q.SECOND_OF_DAY)){var u=this.fieldValues.remove(q.SECOND_OF_DAY);e!==oe.LENIENT&&q.SECOND_OF_DAY.checkValidValue(u),this._addFieldValue(q.HOUR_OF_DAY,M.intDiv(u,3600)),this._addFieldValue(q.MINUTE_OF_HOUR,M.intMod(M.intDiv(u,60),60)),this._addFieldValue(q.SECOND_OF_MINUTE,M.intMod(u,60))}if(this.fieldValues.containsKey(q.MINUTE_OF_DAY)){var l=this.fieldValues.remove(q.MINUTE_OF_DAY);e!==oe.LENIENT&&q.MINUTE_OF_DAY.checkValidValue(l),this._addFieldValue(q.HOUR_OF_DAY,M.intDiv(l,60)),this._addFieldValue(q.MINUTE_OF_HOUR,M.intMod(l,60))}if(e!==oe.LENIENT&&(this.fieldValues.containsKey(q.MILLI_OF_SECOND)&&q.MILLI_OF_SECOND.checkValidValue(this.fieldValues.get(q.MILLI_OF_SECOND)),this.fieldValues.containsKey(q.MICRO_OF_SECOND)&&q.MICRO_OF_SECOND.checkValidValue(this.fieldValues.get(q.MICRO_OF_SECOND))),this.fieldValues.containsKey(q.MILLI_OF_SECOND)&&this.fieldValues.containsKey(q.MICRO_OF_SECOND)){var h=this.fieldValues.remove(q.MILLI_OF_SECOND),c=this.fieldValues.get(q.MICRO_OF_SECOND);this._putFieldValue0(q.MICRO_OF_SECOND,1e3*h+M.intMod(c,1e3))}if(this.fieldValues.containsKey(q.MICRO_OF_SECOND)&&this.fieldValues.containsKey(q.NANO_OF_SECOND)){var f=this.fieldValues.get(q.NANO_OF_SECOND);this._putFieldValue0(q.MICRO_OF_SECOND,M.intDiv(f,1e3)),this.fieldValues.remove(q.MICRO_OF_SECOND)}if(this.fieldValues.containsKey(q.MILLI_OF_SECOND)&&this.fieldValues.containsKey(q.NANO_OF_SECOND)){var _=this.fieldValues.get(q.NANO_OF_SECOND);this._putFieldValue0(q.MILLI_OF_SECOND,M.intDiv(_,1e6)),this.fieldValues.remove(q.MILLI_OF_SECOND)}if(this.fieldValues.containsKey(q.MICRO_OF_SECOND)){var d=this.fieldValues.remove(q.MICRO_OF_SECOND);this._putFieldValue0(q.NANO_OF_SECOND,1e3*d)}else if(this.fieldValues.containsKey(q.MILLI_OF_SECOND)){var v=this.fieldValues.remove(q.MILLI_OF_SECOND);this._putFieldValue0(q.NANO_OF_SECOND,1e6*v)}}},{key:"_resolveTimeInferZeroes",value:function(e){var t=this.fieldValues.get(q.HOUR_OF_DAY),n=this.fieldValues.get(q.MINUTE_OF_HOUR),i=this.fieldValues.get(q.SECOND_OF_MINUTE),a=this.fieldValues.get(q.NANO_OF_SECOND);if(null!=t&&(null!=n||null==i&&null==a)&&(null==n||null!=i||null==a)){if(e!==oe.LENIENT){if(null!=t){e!==oe.SMART||24!==t||null!=n&&0!==n||null!=i&&0!==i||null!=a&&0!==a||(t=0,this.excessDays=ne.ofDays(1));var r=q.HOUR_OF_DAY.checkValidIntValue(t);if(null!=n){var s=q.MINUTE_OF_HOUR.checkValidIntValue(n);if(null!=i){var o=q.SECOND_OF_MINUTE.checkValidIntValue(i);if(null!=a){var u=q.NANO_OF_SECOND.checkValidIntValue(a);this._addObject(Xt.of(r,s,o,u))}else this._addObject(Xt.of(r,s,o))}else null==a&&this._addObject(Xt.of(r,s))}else null==i&&null==a&&this._addObject(Xt.of(r,0))}}else if(null!=t){var l=t;if(null!=n)if(null!=i){null==a&&(a=0);var h=M.safeMultiply(l,36e11);h=M.safeAdd(h,M.safeMultiply(n,6e10)),h=M.safeAdd(h,M.safeMultiply(i,1e9)),h=M.safeAdd(h,a);var c=M.floorDiv(h,864e11),f=M.floorMod(h,864e11);this._addObject(Xt.ofNanoOfDay(f)),this.excessDays=ne.ofDays(c)}else{var _=M.safeMultiply(l,3600);_=M.safeAdd(_,M.safeMultiply(n,60));var d=M.floorDiv(_,86400),v=M.floorMod(_,86400);this._addObject(Xt.ofSecondOfDay(v)),this.excessDays=ne.ofDays(d)}else{var y=M.safeToInt(M.floorDiv(l,24));l=M.floorMod(l,24),this._addObject(Xt.of(l,0)),this.excessDays=ne.ofDays(y)}}this.fieldValues.remove(q.HOUR_OF_DAY),this.fieldValues.remove(q.MINUTE_OF_HOUR),this.fieldValues.remove(q.SECOND_OF_MINUTE),this.fieldValues.remove(q.NANO_OF_SECOND)}}},{key:"_addObject",value:function(e){e instanceof le?this.date=e:e instanceof Xt&&(this.time=e)}},{key:"_resolveInstant",value:function(){if(null!=this.date&&null!=this.time){var e=this.fieldValues.get(q.OFFSET_SECONDS);if(null!=e){var t=Ee.ofTotalSeconds(e),n=this.date.atTime(this.time).atZone(t).getLong(q.INSTANT_SECONDS);this.fieldValues.put(q.INSTANT_SECONDS,n)}else if(null!=this.zone){var i=this.date.atTime(this.time).atZone(this.zone).getLong(q.INSTANT_SECONDS);this.fieldValues.put(q.INSTANT_SECONDS,i)}}}},{key:"build",value:function(e){return e.queryFrom(this)}},{key:"isSupported",value:function(e){return null!=e&&(this.fieldValues.containsKey(e)&&void 0!==this.fieldValues.get(e)||null!=this.date&&this.date.isSupported(e)||null!=this.time&&this.time.isSupported(e))}},{key:"getLong",value:function(e){N(e,"field");var t=this.getFieldValue0(e);if(null!=t)return t;if(null!=this.date&&this.date.isSupported(e))return this.date.getLong(e);if(null!=this.time&&this.time.isSupported(e))return this.time.getLong(e);throw new T("Field not found: ".concat(e))}},{key:"query",value:function(e){return e===Z.zoneId()?this.zone:e===Z.chronology()?this.chrono:e===Z.localDate()?null!=this.date?Kt.from(this.date):null:e===Z.localTime()?this.time:e===Z.zone()||e===Z.offset()?e.queryFrom(this):e===Z.precision()?null:e.queryFrom(this)}}],[{key:"create",value:function(e,t){var n=new i;return n._addFieldValue(e,t),n}}]),i}(),me=(y(ke,[{key:"_constructorParam",value:function(e,t,n){this._locale=e,this._symbols=t,this._overrideChronology=n}},{key:"_constructorFormatter",value:function(e){this._locale=e.locale(),this._symbols=e.decimalStyle(),this._overrideChronology=e.chronology()}},{key:"_constructorSelf",value:function(e){this._locale=e._locale,this._symbols=e._symbols,this._overrideChronology=e._overrideChronology,this._overrideZone=e._overrideZone,this._caseSensitive=e._caseSensitive,this._strict=e._strict,this._parsed=[new Ne(this)]}},{key:"copy",value:function(){return new ke(this)}},{key:"symbols",value:function(){return this._symbols}},{key:"isStrict",value:function(){return this._strict}},{key:"setStrict",value:function(e){this._strict=e}},{key:"locale",value:function(){return this._locale}},{key:"setLocale",value:function(e){this._locale=e}},{key:"startOptional",value:function(){this._parsed.push(this.currentParsed().copy())}},{key:"endOptional",value:function(e){e?this._parsed.splice(this._parsed.length-2,1):this._parsed.splice(this._parsed.length-1,1)}},{key:"isCaseSensitive",value:function(){return this._caseSensitive}},{key:"setCaseSensitive",value:function(e){this._caseSensitive=e}},{key:"subSequenceEquals",value:function(e,t,n,i,a){if(t+a>e.length||i+a>n.length)return!1;this.isCaseSensitive()||(e=e.toLowerCase(),n=n.toLowerCase());for(var r=0;r<a;r++)if(e[t+r]!==n[i+r])return!1;return!0}},{key:"charEquals",value:function(e,t){return this.isCaseSensitive()?e===t:this.charEqualsIgnoreCase(e,t)}},{key:"charEqualsIgnoreCase",value:function(e,t){return e===t||e.toLowerCase()===t.toLowerCase()}},{key:"setParsedField",value:function(e,t,n,i){var a=this.currentParsed().fieldValues,r=a.get(e);return a.set(e,t),null!=r&&r!==t?~n:i}},{key:"setParsedZone",value:function(e){N(e,"zone"),this.currentParsed().zone=e}},{key:"getParsed",value:function(e){return this.currentParsed().fieldValues.get(e)}},{key:"toParsed",value:function(){return this.currentParsed()}},{key:"currentParsed",value:function(){return this._parsed[this._parsed.length-1]}},{key:"setParsedLeapSecond",value:function(){this.currentParsed().leapSecond=!0}},{key:"getEffectiveChronology",value:function(){var e=this.currentParsed().chrono;return null==e&&null==(e=this._overrideChronology)&&(e=Wt.INSTANCE),e}}]),ke);function ke(){if(f(this,ke),1===arguments.length){if(arguments[0]instanceof ke)return void this._constructorSelf.apply(this,arguments);this._constructorFormatter.apply(this,arguments)}else this._constructorParam.apply(this,arguments);this._caseSensitive=!0,this._strict=!0,this._parsed=[new Ne(this)]}var Ne=function(){p(i,ue);var n=S(i);function i(e){var t;return f(this,i),(t=n.call(this)).chrono=null,t.zone=null,t.fieldValues=new re,t.leapSecond=!1,t.dateTimeParseContext=e,t}return y(i,[{key:"copy",value:function(){var e=new i;return e.chrono=this.chrono,e.zone=this.zone,e.fieldValues.putAll(this.fieldValues),e.leapSecond=this.leapSecond,e.dateTimeParseContext=this.dateTimeParseContext,e}},{key:"toString",value:function(){return"".concat(this.fieldValues,", ").concat(this.chrono,", ").concat(this.zone)}},{key:"isSupported",value:function(e){return this.fieldValues.containsKey(e)}},{key:"get",value:function(e){var t=this.fieldValues.get(e);return k(null!=t),t}},{key:"query",value:function(e){return e===Z.chronology()?this.chrono:e===Z.zoneId()||e===Z.zone()?this.zone:m(d(i.prototype),"query",this).call(this,e)}},{key:"toBuilder",value:function(){var e=new Se;return e.fieldValues.putAll(this.fieldValues),e.chrono=this.dateTimeParseContext.getEffectiveChronology(),null!=this.zone?e.zone=this.zone:e.zone=this.overrideZone,e.leapSecond=this.leapSecond,e.excessDays=this.excessDays,e}}]),i}(),De=(y(Ae,[{key:"symbols",value:function(){return this._symbols}},{key:"startOptional",value:function(){this._optional++}},{key:"endOptional",value:function(){this._optional--}},{key:"getValueQuery",value:function(e){var t=this._temporal.query(e);if(null==t&&0===this._optional)throw new T("Unable to extract value: ".concat(this._temporal));return t}},{key:"getValue",value:function(e){try{return this._temporal.getLong(e)}catch(e){if(e instanceof T&&0<this._optional)return null;throw e}}},{key:"temporal",value:function(){return this._temporal}},{key:"locale",value:function(){return this._locale}},{key:"setDateTime",value:function(e){this._temporal=e}},{key:"setLocale",value:function(e){this._locale=e}}],[{key:"adjust",value:function(e,t){return e}}]),Ae);function Ae(e,t,n){f(this,Ae),2===arguments.length&&t instanceof Tt?(this._temporal=Ae.adjust(e,t),this._locale=t.locale(),this._symbols=t.decimalStyle()):(this._temporal=e,this._locale=t,this._symbols=n),this._optional=0}var Te={},we=[0,90,181,273,0,91,182,274],Me=function(){p(s,H);var e=S(s);function s(){return f(this,s),e.apply(this,arguments)}return y(s,[{key:"isDateBased",value:function(){return!0}},{key:"isTimeBased",value:function(){return!1}},{key:"_isIso",value:function(){return!0}},{key:"displayName",value:function(){return this.toString()}},{key:"resolve",value:function(){return null}},{key:"name",value:function(){return this.toString()}}],[{key:"_getWeekRangeByLocalDate",value:function(e){var t=s._getWeekBasedYear(e);return x.of(1,s._getWeekRangeByYear(t))}},{key:"_getWeekRangeByYear",value:function(e){var t=Kt.of(e,1,1);return t.dayOfWeek()===Q.THURSDAY||t.dayOfWeek()===Q.WEDNESDAY&&t.isLeapYear()?53:52}},{key:"_getWeek",value:function(e){var t=e.dayOfWeek().ordinal(),n=e.dayOfYear()-1,i=3-t+n,a=i-7*M.intDiv(i,7)-3;if(a<-3&&(a+=7),n<a)return s._getWeekRangeByLocalDate(e.withDayOfYear(180).minusYears(1)).maximum();var r=M.intDiv(n-a,7)+1;return 53===r&&!1===(-3===a||-2===a&&e.isLeapYear())&&(r=1),r}},{key:"_getWeekBasedYear",value:function(e){var t=e.year(),n=e.dayOfYear();if(n<=3)n-e.dayOfWeek().ordinal()<-2&&t--;else if(363<=n){var i=e.dayOfWeek().ordinal();0<=(n=n-363-(e.isLeapYear()?1:0))-i&&t++}return t}}]),s}(),ge=function(){p(t,Me);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"toString",value:function(){return"DayOfQuarter"}},{key:"baseUnit",value:function(){return b.DAYS}},{key:"rangeUnit",value:function(){return be}},{key:"range",value:function(){return x.of(1,90,92)}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.DAY_OF_YEAR)&&e.isSupported(q.MONTH_OF_YEAR)&&e.isSupported(q.YEAR)&&this._isIso(e)}},{key:"rangeRefinedBy",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: DayOfQuarter");var t=e.getLong(Le);if(1!==t)return 2===t?x.of(1,91):3===t||4===t?x.of(1,92):this.range();var n=e.getLong(q.YEAR);return Wt.isLeapYear(n)?x.of(1,91):x.of(1,90)}},{key:"getFrom",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: DayOfQuarter");var t=e.get(q.DAY_OF_YEAR),n=e.get(q.MONTH_OF_YEAR),i=e.getLong(q.YEAR);return t-we[M.intDiv(n-1,3)+(Wt.isLeapYear(i)?4:0)]}},{key:"adjustInto",value:function(e,t){var n=this.getFrom(e);return this.range().checkValidValue(t,this),e.with(q.DAY_OF_YEAR,e.getLong(q.DAY_OF_YEAR)+(t-n))}},{key:"resolve",value:function(e,t,n){var i=e.get(q.YEAR),a=e.get(Le);if(null==i||null==a)return null;var r,s=q.YEAR.checkValidIntValue(i),o=e.get(Ce);if(n===oe.LENIENT){var u=a;r=(r=(r=Kt.of(s,1,1)).plusMonths(M.safeMultiply(M.safeSubtract(u,1),3))).plusDays(M.safeSubtract(o,1))}else{var l=Le.range().checkValidIntValue(a,Le);if(n===oe.STRICT){var h=92;1===l?h=Wt.isLeapYear(s)?91:90:2===l&&(h=91),x.of(1,h).checkValidValue(o,this)}else this.range().checkValidValue(o,this);r=Kt.of(s,3*(l-1)+1,1).plusDays(o-1)}return e.remove(this),e.remove(q.YEAR),e.remove(Le),r}}]),t}(),Re=function(){p(t,Me);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"toString",value:function(){return"QuarterOfYear"}},{key:"baseUnit",value:function(){return be}},{key:"rangeUnit",value:function(){return b.YEARS}},{key:"range",value:function(){return x.of(1,4)}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.MONTH_OF_YEAR)&&this._isIso(e)}},{key:"rangeRefinedBy",value:function(e){return this.range()}},{key:"getFrom",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: QuarterOfYear");var t=e.getLong(q.MONTH_OF_YEAR);return M.intDiv(t+2,3)}},{key:"adjustInto",value:function(e,t){var n=this.getFrom(e);return this.range().checkValidValue(t,this),e.with(q.MONTH_OF_YEAR,e.getLong(q.MONTH_OF_YEAR)+3*(t-n))}}]),t}(),Ie=function(){p(t,Me);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"toString",value:function(){return"WeekOfWeekBasedYear"}},{key:"baseUnit",value:function(){return b.WEEKS}},{key:"rangeUnit",value:function(){return Ve}},{key:"range",value:function(){return x.of(1,52,53)}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.EPOCH_DAY)&&this._isIso(e)}},{key:"rangeRefinedBy",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: WeekOfWeekBasedYear");return Me._getWeekRangeByLocalDate(Kt.from(e))}},{key:"getFrom",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: WeekOfWeekBasedYear");return Me._getWeek(Kt.from(e))}},{key:"adjustInto",value:function(e,t){return this.range().checkValidValue(t,this),e.plus(M.safeSubtract(t,this.getFrom(e)),b.WEEKS)}},{key:"resolve",value:function(e,t,n){var i=e.get(Ue),a=e.get(q.DAY_OF_WEEK);if(null==i||null==a)return null;var r,s=Ue.range().checkValidIntValue(i,Ue),o=e.get(Pe);if(n===oe.LENIENT){var u=a,l=0;7<u?(l=M.intDiv(u-1,7),u=M.intMod(u-1,7)+1):u<1&&(l=M.intDiv(u,7)-1,u=M.intMod(u,7)+7),r=Kt.of(s,1,4).plusWeeks(o-1).plusWeeks(l).with(q.DAY_OF_WEEK,u)}else{var h=q.DAY_OF_WEEK.checkValidIntValue(a);if(n===oe.STRICT){var c=Kt.of(s,1,4);Me._getWeekRangeByLocalDate(c).checkValidValue(o,this)}else this.range().checkValidValue(o,this);r=Kt.of(s,1,4).plusWeeks(o-1).with(q.DAY_OF_WEEK,h)}return e.remove(this),e.remove(Ue),e.remove(q.DAY_OF_WEEK),r}},{key:"displayName",value:function(){return"Week"}}]),t}(),Fe=function(){p(t,Me);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"toString",value:function(){return"WeekBasedYear"}},{key:"baseUnit",value:function(){return Ve}},{key:"rangeUnit",value:function(){return b.FOREVER}},{key:"range",value:function(){return q.YEAR.range()}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.EPOCH_DAY)&&this._isIso(e)}},{key:"rangeRefinedBy",value:function(e){return q.YEAR.range()}},{key:"getFrom",value:function(e){if(!1===e.isSupported(this))throw new u("Unsupported field: WeekBasedYear");return Me._getWeekBasedYear(Kt.from(e))}},{key:"adjustInto",value:function(e,t){if(!1===this.isSupportedBy(e))throw new u("Unsupported field: WeekBasedYear");var n=this.range().checkValidIntValue(t,Ue),i=Kt.from(e),a=i.get(q.DAY_OF_WEEK),r=Me._getWeek(i);53===r&&52===Me._getWeekRangeByYear(n)&&(r=52);var s=Kt.of(n,1,4),o=a-s.get(q.DAY_OF_WEEK)+7*(r-1);return s=s.plusDays(o),e.with(s)}}]),t}(),Ye=function(){p(a,L);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._name=e,n._duration=t,n}return y(a,[{key:"duration",value:function(){return this._duration}},{key:"isDurationEstimated",value:function(){return!0}},{key:"isDateBased",value:function(){return!0}},{key:"isTimeBased",value:function(){return!1}},{key:"isSupportedBy",value:function(e){return e.isSupported(q.EPOCH_DAY)}},{key:"addTo",value:function(e,t){switch(this){case Ve:var n=M.safeAdd(e.get(Ue),t);return e.with(Ue,n);case be:return e.plus(M.intDiv(t,256),b.YEARS).plus(3*M.intMod(t,256),b.MONTHS);default:throw new r("Unreachable")}}},{key:"between",value:function(e,t){switch(this){case Ve:return M.safeSubtract(t.getLong(Ue),e.getLong(Ue));case be:return M.intDiv(e.until(t,b.MONTHS),3);default:throw new r("Unreachable")}}},{key:"toString",value:function(){return name}}]),a}(),Ce=null,Le=null,Pe=null,Ue=null,Ve=null,be=null;var He=(y(We,[{key:"positiveSign",value:function(){return this._positiveSign}},{key:"withPositiveSign",value:function(e){return e===this._positiveSign?this:new We(this._zeroDigit,e,this._negativeSign,this._decimalSeparator)}},{key:"negativeSign",value:function(){return this._negativeSign}},{key:"withNegativeSign",value:function(e){return e===this._negativeSign?this:new We(this._zeroDigit,this._positiveSign,e,this._decimalSeparator)}},{key:"zeroDigit",value:function(){return this._zeroDigit}},{key:"withZeroDigit",value:function(e){return e===this._zeroDigit?this:new We(e,this._positiveSign,this._negativeSign,this._decimalSeparator)}},{key:"decimalSeparator",value:function(){return this._decimalSeparator}},{key:"withDecimalSeparator",value:function(e){return e===this._decimalSeparator?this:new We(this._zeroDigit,this._positiveSign,this._negativeSign,e)}},{key:"convertToDigit",value:function(e){var t=e.charCodeAt(0)-this._zeroDigitCharCode;return 0<=t&&t<=9?t:-1}},{key:"convertNumberToI18N",value:function(e){if("0"===this._zeroDigit)return e;for(var t=this._zeroDigitCharCode-"0".charCodeAt(0),n="",i=0;i<e.length;i++)n+=String.fromCharCode(e.charCodeAt(i)+t);return n}},{key:"equals",value:function(e){return this===e||e instanceof We&&this._zeroDigit===e._zeroDigit&&this._positiveSign===e._positiveSign&&this._negativeSign===e._negativeSign&&this._decimalSeparator===e._decimalSeparator}},{key:"hashCode",value:function(){return this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator}},{key:"toString",value:function(){return"DecimalStyle[".concat(this._zeroDigit).concat(this._positiveSign).concat(this._negativeSign).concat(this._decimalSeparator,"]")}}],[{key:"of",value:function(){throw new Error("not yet supported")}},{key:"availableLocales",value:function(){throw new Error("not yet supported")}}]),We);function We(e,t,n,i){f(this,We),this._zeroDigit=e,this._zeroDigitCharCode=e.charCodeAt(0),this._positiveSign=t,this._negativeSign=n,this._decimalSeparator=i}He.STANDARD=new He("0","+","-",".");var xe=function(){p(i,I);var e=S(i);function i(){return f(this,i),e.apply(this,arguments)}return y(i,[{key:"parse",value:function(e,t,n){switch(this){case i.NORMAL:return!e||!t;case i.ALWAYS:case i.EXCEEDS_PAD:return!0;default:return!t&&!n}}}]),i}();xe.NORMAL=new xe("NORMAL"),xe.NEVER=new xe("NEVER"),xe.ALWAYS=new xe("ALWAYS"),xe.EXCEEDS_PAD=new xe("EXCEEDS_PAD"),xe.NOT_NEGATIVE=new xe("NOT_NEGATIVE");var Be=function(){p(t,I);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"isStandalone",value:function(){switch(this){case t.FULL_STANDALONE:case t.SHORT_STANDALONE:case t.NARROW_STANDALONE:return!0;default:return!1}}},{key:"asStandalone",value:function(){switch(this){case t.FULL:return t.FULL_STANDALONE;case t.SHORT:return t.SHORT_STANDALONE;case t.NARROW:return t.NARROW_STANDALONE;default:return this}}},{key:"asNormal",value:function(){switch(this){case t.FULL_STANDALONE:return t.FULL;case t.SHORT_STANDALONE:return t.SHORT;case t.NARROW_STANDALONE:return t.NARROW;default:return this}}}]),t}();Be.FULL=new Be("FULL"),Be.FULL_STANDALONE=new Be("FULL_STANDALONE"),Be.SHORT=new Be("SHORT"),Be.SHORT_STANDALONE=new Be("SHORT_STANDALONE"),Be.NARROW=new Be("NARROW"),Be.NARROW_STANDALONE=new Be("NARROW_STANDALONE");var qe=(y(Ze,[{key:"print",value:function(e,t){return t.append(this._literal),!0}},{key:"parse",value:function(e,t,n){if(n===t.length)return~n;var i=t.charAt(n);return!1===e.charEquals(this._literal,i)?~n:n+this._literal.length}},{key:"toString",value:function(){return"'"===this._literal?"''":"'".concat(this._literal,"'")}}]),Ze);function Ze(e){if(f(this,Ze),1<e.length)throw new c('invalid literal, too long: "'.concat(e,'"'));this._literal=e}var ze=(y(Ke,[{key:"withOptional",value:function(e){return e===this._optional?this:new Ke(this._printerParsers,e)}},{key:"print",value:function(e,t){var n=t.length();this._optional&&e.startOptional();try{for(var i=0;i<this._printerParsers.length;i++)if(!1===this._printerParsers[i].print(e,t))return t.setLength(n),!0}finally{this._optional&&e.endOptional()}return!0}},{key:"parse",value:function(e,t,n){if(this._optional){e.startOptional();for(var i=n,a=0;a<this._printerParsers.length;a++)if((i=this._printerParsers[a].parse(e,t,i))<0)return e.endOptional(!1),n;return e.endOptional(!0),i}for(var r=0;r<this._printerParsers.length&&!((n=this._printerParsers[r].parse(e,t,n))<0);r++);return n}},{key:"toString",value:function(){var e="";if(null!=this._printerParsers){e+=this._optional?"[":"(";for(var t=0;t<this._printerParsers.length;t++)e+=this._printerParsers[t].toString();e+=this._optional?"]":")"}return e}}]),Ke);function Ke(e,t){f(this,Ke),this._printerParsers=e,this._optional=t}var je=(y(Ge,[{key:"print",value:function(e,t){var n=e.getValue(this.field);if(null===n)return!1;var i=e.symbols();if(0===n){if(0<this.minWidth){this.decimalPoint&&t.append(i.decimalSeparator());for(var a=0;a<this.minWidth;a++)t.append(i.zeroDigit())}}else{var r=this.convertToFraction(n,i.zeroDigit()),s=Math.min(Math.max(r.length,this.minWidth),this.maxWidth);if(0<1*(r=r.substr(0,s)))for(;r.length>this.minWidth&&"0"===r[r.length-1];)r=r.substr(0,r.length-1);var o=r;o=i.convertNumberToI18N(o),this.decimalPoint&&t.append(i.decimalSeparator()),t.append(o)}return!0}},{key:"parse",value:function(e,t,n){var i=e.isStrict()?this.minWidth:0,a=e.isStrict()?this.maxWidth:9,r=t.length;if(n===r)return 0<i?~n:n;if(this.decimalPoint){if(t[n]!==e.symbols().decimalSeparator())return 0<i?~n:n;n++}var s=n+i;if(r<s)return~n;for(var o=Math.min(n+a,r),u=0,l=n;l<o;){var h=t.charAt(l++),c=e.symbols().convertToDigit(h);if(c<0){if(l<s)return~n;l--;break}u=10*u+c}var f=l-n,_=Math.pow(10,f),d=this.convertFromFraction(u,_);return e.setParsedField(this.field,d,n,l)}},{key:"convertToFraction",value:function(e,t){var n=this.field.range();n.checkValidValue(e,this.field);for(var i=n.minimum(),a=n.maximum()-i+1,r=e-i,s=M.intDiv(1e9*r,a),o="".concat(s);o.length<9;)o=t+o;return o}},{key:"convertFromFraction",value:function(e,t){var n=this.field.range(),i=n.minimum(),a=n.maximum()-i+1;return M.intDiv(e*a,t)}},{key:"toString",value:function(){var e=this.decimalPoint?",DecimalPoint":"";return"Fraction(".concat(this.field,",").concat(this.minWidth,",").concat(this.maxWidth).concat(e,")")}}]),Ge);function Ge(e,t,n,i){if(f(this,Ge),N(e,"field"),!1===e.range().isFixed())throw new c("Field must have a fixed set of values: ".concat(e));if(t<0||9<t)throw new c("Minimum width must be from 0 to 9 inclusive but was ".concat(t));if(n<1||9<n)throw new c("Maximum width must be from 1 to 9 inclusive but was ".concat(n));if(n<t)throw new c("Maximum width must exceed or equal the minimum width but ".concat(n," < ").concat(t));this.field=e,this.minWidth=t,this.maxWidth=n,this.decimalPoint=i}var Xe=[0,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],Je=(y(Qe,[{key:"field",value:function(){return this._field}},{key:"minWidth",value:function(){return this._minWidth}},{key:"maxWidth",value:function(){return this._maxWidth}},{key:"signStyle",value:function(){return this._signStyle}},{key:"withFixedWidth",value:function(){return-1===this._subsequentWidth?this:new Qe(this._field,this._minWidth,this._maxWidth,this._signStyle,-1)}},{key:"withSubsequentWidth",value:function(e){return new Qe(this._field,this._minWidth,this._maxWidth,this._signStyle,this._subsequentWidth+e)}},{key:"_isFixedWidth",value:function(){return-1===this._subsequentWidth||0<this._subsequentWidth&&this._minWidth===this._maxWidth&&this._signStyle===xe.NOT_NEGATIVE}},{key:"print",value:function(e,t){var n=e.getValue(this._field);if(null==n)return!1;var i=this._getValue(e,n),a=e.symbols(),r="".concat(Math.abs(i));if(r.length>this._maxWidth)throw new T("Field ".concat(this._field," cannot be printed as the value ").concat(i," exceeds the maximum print width of ").concat(this._maxWidth));if(r=a.convertNumberToI18N(r),0<=i)switch(this._signStyle){case xe.EXCEEDS_PAD:this._minWidth<15&&i>=Xe[this._minWidth]&&t.append(a.positiveSign());break;case xe.ALWAYS:t.append(a.positiveSign())}else switch(this._signStyle){case xe.NORMAL:case xe.EXCEEDS_PAD:case xe.ALWAYS:t.append(a.negativeSign());break;case xe.NOT_NEGATIVE:throw new T("Field ".concat(this._field," cannot be printed as the value ").concat(i," cannot be negative according to the SignStyle"))}for(var s=0;s<this._minWidth-r.length;s++)t.append(a.zeroDigit());return t.append(r),!0}},{key:"parse",value:function(e,t,n){var i=t.length;if(n===i)return~n;k(0<=n&&n<i);var a=t.charAt(n),r=!1,s=!1;if(a===e.symbols().positiveSign()){if(!1===this._signStyle.parse(!0,e.isStrict(),this._minWidth===this._maxWidth))return~n;s=!0,n++}else if(a===e.symbols().negativeSign()){if(!1===this._signStyle.parse(!1,e.isStrict(),this._minWidth===this._maxWidth))return~n;r=!0,n++}else if(this._signStyle===xe.ALWAYS&&e.isStrict())return~n;var o=e.isStrict()||this._isFixedWidth()?this._minWidth:1,u=n+o;if(i<u)return~n;for(var l=(e.isStrict()||this._isFixedWidth()?this._maxWidth:9)+Math.max(this._subsequentWidth,0),h=0,c=n,f=0;f<2;f++){for(var _=Math.min(c+l,i);c<_;){var d=t.charAt(c++),v=e.symbols().convertToDigit(d);if(v<0){if(--c<u)return~n;break}if(15<c-n)throw new O("number text exceeds length");h=10*h+v}if(!(0<this._subsequentWidth&&0===f))break;var y=c-n;l=Math.max(o,y-this._subsequentWidth),c=n,h=0}if(r){if(0===h&&e.isStrict())return~(n-1);0!==h&&(h=-h)}else if(this._signStyle===xe.EXCEEDS_PAD&&e.isStrict()){var p=c-n;if(s){if(p<=this._minWidth)return~(n-1)}else if(p>this._minWidth)return~n}return this._setValue(e,h,n,c)}},{key:"_getValue",value:function(e,t){return t}},{key:"_setValue",value:function(e,t,n,i){return e.setParsedField(this._field,t,n,i)}},{key:"toString",value:function(){return 1===this._minWidth&&15===this._maxWidth&&this._signStyle===xe.NORMAL?"Value(".concat(this._field,")"):this._minWidth===this._maxWidth&&this._signStyle===xe.NOT_NEGATIVE?"Value(".concat(this._field,",").concat(this._minWidth,")"):"Value(".concat(this._field,",").concat(this._minWidth,",").concat(this._maxWidth,",").concat(this._signStyle,")")}}]),Qe);function Qe(e,t,n,i){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0;f(this,Qe),this._field=e,this._minWidth=t,this._maxWidth=n,this._signStyle=i,this._subsequentWidth=a}var $e=function(){p(o,Je);var s=S(o);function o(e,t,n,i,a){var r;if(f(this,o),r=s.call(this,e,t,n,xe.NOT_NEGATIVE),t<1||10<t)throw new c("The width must be from 1 to 10 inclusive but was ".concat(t));if(n<1||10<n)throw new c("The maxWidth must be from 1 to 10 inclusive but was ".concat(n));if(n<t)throw new c("The maxWidth must be greater than the width");if(null===a){if(!1===e.range().isValidValue(i))throw new c("The base value must be within the range of the field");if(i+Xe[t]>M.MAX_SAFE_INTEGER)throw new T("Unable to add printer-parser as the range exceeds the capacity of an int")}return r._baseValue=i,r._baseDate=a,r}return y(o,[{key:"_getValue",value:function(e,t){var n=Math.abs(t),i=this._baseValue;null!==this._baseDate&&(e.temporal(),i=Wt.INSTANCE.date(this._baseDate).get(this._field));return i<=t&&t<i+Xe[this._minWidth]?n%Xe[this._minWidth]:n%Xe[this._maxWidth]}},{key:"_setValue",value:function(e,t,n,i){var a=this._baseValue;null!=this._baseDate&&(a=e.getEffectiveChronology().date(this._baseDate).get(this._field));if(i-n===this._minWidth&&0<=t){var r=Xe[this._minWidth],s=a-a%r;(t=0<a?s+t:s-t)<a&&(t+=r)}return e.setParsedField(this._field,t,n,i)}},{key:"withFixedWidth",value:function(){return-1===this._subsequentWidth?this:new o(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,-1)}},{key:"withSubsequentWidth",value:function(e){return new o(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,this._subsequentWidth+e)}},{key:"isFixedWidth",value:function(e){return!1!==e.isStrict()&&m(d(o.prototype),"isFixedWidth",this).call(this,e)}},{key:"toString",value:function(){return"ReducedValue(".concat(this._field,",").concat(this._minWidth,",").concat(this._maxWidth,",").concat(null!=this._baseDate?this._baseDate:this._baseValue,")")}}]),o}(),et=["+HH","+HHmm","+HH:mm","+HHMM","+HH:MM","+HHMMss","+HH:MM:ss","+HHMMSS","+HH:MM:SS"],tt=(y(nt,[{key:"_checkPattern",value:function(e){for(var t=0;t<et.length;t++)if(et[t]===e)return t;throw new c("Invalid zone offset pattern: ".concat(e))}},{key:"print",value:function(e,t){var n=e.getValue(q.OFFSET_SECONDS);if(null==n)return!1;var i=M.safeToInt(n);if(0===i)t.append(this.noOffsetText);else{var a=Math.abs(M.intMod(M.intDiv(i,3600),100)),r=Math.abs(M.intMod(M.intDiv(i,60),60)),s=Math.abs(M.intMod(i,60)),o=t.length(),u=a;t.append(i<0?"-":"+").appendChar("".concat(M.intDiv(a,10),"0")).appendChar("".concat(M.intMod(a,10),"0")),(3<=this.type||1<=this.type&&0<r)&&(t.append(this.type%2==0?":":"").appendChar("".concat(M.intDiv(r,10),"0")).appendChar("".concat(r%10,"0")),u+=r,(7<=this.type||5<=this.type&&0<s)&&(t.append(this.type%2==0?":":"").appendChar("".concat(M.intDiv(s,10),"0")).appendChar("".concat(s%10,"0")),u+=s)),0===u&&(t.setLength(o),t.append(this.noOffsetText))}return!0}},{key:"parse",value:function(e,t,n){var i=t.length,a=this.noOffsetText.length;if(0===a){if(n===i)return e.setParsedField(q.OFFSET_SECONDS,0,n,n)}else{if(n===i)return~n;if(e.subSequenceEquals(t,n,this.noOffsetText,0,a))return e.setParsedField(q.OFFSET_SECONDS,0,n,n+a)}var r=t[n];if("+"===r||"-"===r){var s="-"===r?-1:1,o=[0,0,0,0];if(o[0]=n+1,!1===(this._parseNumber(o,1,t,!0)||this._parseNumber(o,2,t,3<=this.type)||this._parseNumber(o,3,t,!1))){var u=M.safeZero(s*(3600*o[1]+60*o[2]+o[3]));return e.setParsedField(q.OFFSET_SECONDS,u,n,o[0])}}return 0===a?e.setParsedField(q.OFFSET_SECONDS,0,n,n+a):~n}},{key:"_parseNumber",value:function(e,t,n,i){if((this.type+3)/2<t)return!1;var a=e[0];if(this.type%2==0&&1<t){if(a+1>n.length||":"!==n[a])return i;a++}if(a+2>n.length)return i;var r=n[a++],s=n[a++];if(r<"0"||"9"<r||s<"0"||"9"<s)return i;var o=10*(r.charCodeAt(0)-48)+(s.charCodeAt(0)-48);return o<0||59<o?i:(e[t]=o,e[0]=a,!1)}},{key:"toString",value:function(){var e=this.noOffsetText.replace("'","''");return"Offset(".concat(et[this.type],",'").concat(e,"')")}}]),nt);function nt(e,t){f(this,nt),N(e,"noOffsetText"),N(t,"pattern"),this.noOffsetText=e,this.type=this._checkPattern(t)}tt.INSTANCE_ID=new tt("Z","+HH:MM:ss"),tt.PATTERNS=et;var it=(y(at,[{key:"print",value:function(e,t){var n=t.length();if(!1===this._printerParser.print(e,t))return!1;var i=t.length()-n;if(i>this._padWidth)throw new T("Cannot print as output of ".concat(i," characters exceeds pad width of ").concat(this._padWidth));for(var a=0;a<this._padWidth-i;a++)t.insert(n,this._padChar);return!0}},{key:"parse",value:function(e,t,n){var i=e.isStrict(),a=e.isCaseSensitive();if(k(!(n>t.length)),k(0<=n),n===t.length)return~n;var r=n+this._padWidth;if(r>t.length){if(i)return~n;r=t.length}for(var s=n;s<r&&(a?t[s]===this._padChar:e.charEquals(t[s],this._padChar));)s++;t=t.substring(0,r);var o=this._printerParser.parse(e,t,s);return o!==r&&i?~(n+s):o}},{key:"toString",value:function(){return"Pad(".concat(this._printerParser,",").concat(this._padWidth).concat(" "===this._padChar?")":",'".concat(this._padChar,"')"))}}]),at);function at(e,t,n){f(this,at),this._printerParser=e,this._padWidth=t,this._padChar=n}var rt=function(){p(i,I);var e=S(i);function i(){return f(this,i),e.apply(this,arguments)}return y(i,[{key:"print",value:function(){return!0}},{key:"parse",value:function(e,t,n){switch(this){case i.SENSITIVE:e.setCaseSensitive(!0);break;case i.INSENSITIVE:e.setCaseSensitive(!1);break;case i.STRICT:e.setStrict(!0);break;case i.LENIENT:e.setStrict(!1)}return n}},{key:"toString",value:function(){switch(this){case i.SENSITIVE:return"ParseCaseSensitive(true)";case i.INSENSITIVE:return"ParseCaseSensitive(false)";case i.STRICT:return"ParseStrict(true)";case i.LENIENT:return"ParseStrict(false)"}}}]),i}();rt.SENSITIVE=new rt("SENSITIVE"),rt.INSENSITIVE=new rt("INSENSITIVE"),rt.STRICT=new rt("STRICT"),rt.LENIENT=new rt("LENIENT");var st=(y(ot,[{key:"print",value:function(e,t){return t.append(this._literal),!0}},{key:"parse",value:function(e,t,n){return k(!(t.length<n||n<0)),!1===e.subSequenceEquals(t,n,this._literal,0,this._literal.length)?~n:n+this._literal.length}},{key:"toString",value:function(){var e=this._literal.replace("'","''");return"'".concat(e,"'")}}]),ot);function ot(e){f(this,ot),this._literal=e}var ut=(y(lt,null,[{key:"getRules",value:function(e){throw new T("unsupported ZoneId:".concat(e))}},{key:"getAvailableZoneIds",value:function(){return[]}}]),lt);function lt(){f(this,lt)}var ht=function(){p(a,fe);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._id=e,n._rules=t,n}return y(a,[{key:"id",value:function(){return this._id}},{key:"rules",value:function(){return this._rules}}],[{key:"ofId",value:function(e){return new a(e,ut.getRules(e))}}]),a}(),ct=(y(ft,[{key:"print",value:function(e,t){var n=e.getValueQuery(this.query);return null!=n&&(t.append(n.id()),!0)}},{key:"parse",value:function(e,t,n){var i=t.length;if(i<n)return~n;if(n===i)return~n;var a=t.charAt(n);if("+"===a||"-"===a){var r=e.copy(),s=tt.INSTANCE_ID.parse(r,t,n);if(s<0)return s;var o=r.getParsed(q.OFFSET_SECONDS),u=Ee.ofTotalSeconds(o);return e.setParsedZone(u),s}if(n+2<=i){var l=t.charAt(n+1);if(e.charEquals(a,"U")&&e.charEquals(l,"T"))return n+3<=i&&e.charEquals(t.charAt(n+2),"C")?this._parsePrefixedOffset(e,t,n,n+3):this._parsePrefixedOffset(e,t,n,n+2);if(e.charEquals(a,"G")&&n+3<=i&&e.charEquals(l,"M")&&e.charEquals(t.charAt(n+2),"T"))return this._parsePrefixedOffset(e,t,n,n+3)}if("SYSTEM"===t.substr(n,6))return e.setParsedZone(fe.systemDefault()),n+6;if(e.charEquals(a,"Z"))return e.setParsedZone(Ee.UTC),n+1;var h=ut.getAvailableZoneIds();pt.size!==h.length&&(pt=_t.createTreeMap(h));for(var c=i-n,f=pt.treeMap,_=null,d=0;null!=f;){var v=t.substr(n,Math.min(f.length,c));null!=(f=f.get(v))&&f.isLeaf&&(_=v,d=f.length)}return null!=_?(e.setParsedZone(ht.ofId(_)),n+d):~n}},{key:"_parsePrefixedOffset",value:function(e,t,n,i){var a=t.substring(n,i).toUpperCase(),r=e.copy();if(i<t.length&&e.charEquals(t.charAt(i),"Z"))return e.setParsedZone(fe.ofOffset(a,Ee.UTC)),i;var s=tt.INSTANCE_ID.parse(r,t,i);if(s<0)return e.setParsedZone(fe.ofOffset(a,Ee.UTC)),i;var o=r.getParsed(q.OFFSET_SECONDS),u=Ee.ofTotalSeconds(o);return e.setParsedZone(fe.ofOffset(a,u)),s}},{key:"toString",value:function(){return this.description}}]),ft);function ft(e,t){f(this,ft),this.query=e,this.description=t}var _t=(y(dt,null,[{key:"createTreeMap",value:function(e){for(var t=e.sort(function(e,t){return e.length-t.length}),n=new vt(t[0].length,!1),i=0;i<t.length;i++)n.add(t[i]);return new dt(t.length,n)}}]),dt);function dt(e,t){f(this,dt),this.size=e,this.treeMap=t}var vt=(y(yt,[{key:"add",value:function(e){var t=e.length;if(t===this.length)this._treeMap[e]=new yt(t,!0);else if(t>this.length){var n=e.substr(0,this.length),i=this._treeMap[n];null==i&&(i=new yt(t,!1),this._treeMap[n]=i),i.add(e)}}},{key:"get",value:function(e){return this._treeMap[e]}}]),yt);function yt(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];f(this,yt),this.length=e,this.isLeaf=t,this._treeMap={}}var pt=new _t([]),Ot=(y(Et,[{key:"parseCaseSensitive",value:function(){return this._appendInternalPrinterParser(rt.SENSITIVE),this}},{key:"parseCaseInsensitive",value:function(){return this._appendInternalPrinterParser(rt.INSENSITIVE),this}},{key:"parseStrict",value:function(){return this._appendInternalPrinterParser(rt.STRICT),this}},{key:"parseLenient",value:function(){return this._appendInternalPrinterParser(rt.LENIENT),this}},{key:"appendValue",value:function(){return 1===arguments.length?this._appendValue1.apply(this,arguments):2===arguments.length?this._appendValue2.apply(this,arguments):this._appendValue4.apply(this,arguments)}},{key:"_appendValue1",value:function(e){return N(e),this._appendValuePrinterParser(new Je(e,1,15,xe.NORMAL)),this}},{key:"_appendValue2",value:function(e,t){if(N(e),t<1||15<t)throw new c("The width must be from 1 to ".concat(15," inclusive but was ").concat(t));var n=new Je(e,t,t,xe.NOT_NEGATIVE);return this._appendValuePrinterParser(n),this}},{key:"_appendValue4",value:function(e,t,n,i){if(N(e),N(i),t===n&&i===xe.NOT_NEGATIVE)return this._appendValue2(e,n);if(t<1||15<t)throw new c("The minimum width must be from 1 to ".concat(15," inclusive but was ").concat(t));if(n<1||15<n)throw new c("The minimum width must be from 1 to ".concat(15," inclusive but was ").concat(n));if(n<t)throw new c("The maximum width must exceed or equal the minimum width but ".concat(n," < ").concat(t));var a=new Je(e,t,n,i);return this._appendValuePrinterParser(a),this}},{key:"appendValueReduced",value:function(e,t,n,i){return 4===arguments.length&&i instanceof le?this._appendValueReducedFieldWidthMaxWidthBaseDate.apply(this,arguments):this._appendValueReducedFieldWidthMaxWidthBaseValue.apply(this,arguments)}},{key:"_appendValueReducedFieldWidthMaxWidthBaseValue",value:function(e,t,n,i){N(e,"field");var a=new $e(e,t,n,i,null);return this._appendValuePrinterParser(a),this}},{key:"_appendValueReducedFieldWidthMaxWidthBaseDate",value:function(e,t,n,i){N(e,"field"),N(i,"baseDate"),D(i,le,"baseDate");var a=new $e(e,t,n,0,i);return this._appendValuePrinterParser(a),this}},{key:"_appendValuePrinterParser",value:function(e){if(k(null!=e),0<=this._active._valueParserIndex&&this._active._printerParsers[this._active._valueParserIndex]instanceof Je){var t=this._active._valueParserIndex,n=this._active._printerParsers[t];e.minWidth()===e.maxWidth()&&e.signStyle()===xe.NOT_NEGATIVE?(n=n.withSubsequentWidth(e.maxWidth()),this._appendInternal(e.withFixedWidth()),this._active._valueParserIndex=t):(n=n.withFixedWidth(),this._active._valueParserIndex=this._appendInternal(e)),this._active._printerParsers[t]=n}else this._active._valueParserIndex=this._appendInternal(e);return this}},{key:"appendFraction",value:function(e,t,n,i){return this._appendInternal(new je(e,t,n,i)),this}},{key:"appendInstant",value:function(e){var t=0<arguments.length&&void 0!==e?e:-2;if(t<-2||9<t)throw new c("Invalid fractional digits: ".concat(t));return this._appendInternal(new kt(t)),this}},{key:"appendOffsetId",value:function(){return this._appendInternal(tt.INSTANCE_ID),this}},{key:"appendOffset",value:function(e,t){return this._appendInternalPrinterParser(new tt(t,e)),this}},{key:"appendZoneId",value:function(){return this._appendInternal(new ct(Z.zoneId(),"ZoneId()")),this}},{key:"appendPattern",value:function(e){return N(e,"pattern"),this._parsePattern(e),this}},{key:"appendZoneText",value:function(){throw new c("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")}},{key:"appendText",value:function(){throw new c("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")}},{key:"appendLocalizedOffset",value:function(){throw new c("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")}},{key:"appendWeekField",value:function(){throw new c("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")}},{key:"_parsePattern",value:function(e){for(var t={G:q.ERA,y:q.YEAR_OF_ERA,u:q.YEAR,Q:Te.QUARTER_OF_YEAR,q:Te.QUARTER_OF_YEAR,M:q.MONTH_OF_YEAR,L:q.MONTH_OF_YEAR,D:q.DAY_OF_YEAR,d:q.DAY_OF_MONTH,F:q.ALIGNED_DAY_OF_WEEK_IN_MONTH,E:q.DAY_OF_WEEK,c:q.DAY_OF_WEEK,e:q.DAY_OF_WEEK,a:q.AMPM_OF_DAY,H:q.HOUR_OF_DAY,k:q.CLOCK_HOUR_OF_DAY,K:q.HOUR_OF_AMPM,h:q.CLOCK_HOUR_OF_AMPM,m:q.MINUTE_OF_HOUR,s:q.SECOND_OF_MINUTE,S:q.NANO_OF_SECOND,A:q.MILLI_OF_DAY,n:q.NANO_OF_SECOND,N:q.NANO_OF_DAY},n=0;n<e.length;n++){var i=e.charAt(n);if("A"<=i&&i<="Z"||"a"<=i&&i<="z"){for(var a=n++;n<e.length&&e.charAt(n)===i;n++);var r=n-a;if("p"===i){var s=0;if(n<e.length&&("A"<=(i=e.charAt(n))&&i<="Z"||"a"<=i&&i<="z")){for(s=r,a=n++;n<e.length&&e.charAt(n)===i;n++);r=n-a}if(0===s)throw new c("Pad letter 'p' must be followed by valid pad pattern: ".concat(e));this.padNext(s)}var o=t[i];if(null!=o)this._parseField(i,r,o);else if("z"===i){if(4<r)throw new c("Too many pattern letters: ".concat(i));4===r?this.appendZoneText(Be.FULL):this.appendZoneText(Be.SHORT)}else if("V"===i){if(2!==r)throw new c("Pattern letter count must be 2: ".concat(i));this.appendZoneId()}else if("Z"===i)if(r<4)this.appendOffset("+HHMM","+0000");else if(4===r)this.appendLocalizedOffset(Be.FULL);else{if(5!==r)throw new c("Too many pattern letters: ".concat(i));this.appendOffset("+HH:MM:ss","Z")}else if("O"===i)if(1===r)this.appendLocalizedOffset(Be.SHORT);else{if(4!==r)throw new c("Pattern letter count must be 1 or 4: ".concat(i));this.appendLocalizedOffset(Be.FULL)}else if("X"===i){if(5<r)throw new c("Too many pattern letters: ".concat(i));this.appendOffset(tt.PATTERNS[r+(1===r?0:1)],"Z")}else if("x"===i){if(5<r)throw new c("Too many pattern letters: ".concat(i));var u=1===r?"+00":r%2==0?"+0000":"+00:00";this.appendOffset(tt.PATTERNS[r+(1===r?0:1)],u)}else if("W"===i){if(1<r)throw new c("Too many pattern letters: ".concat(i));this.appendWeekField("W",r)}else if("w"===i){if(2<r)throw new c("Too many pattern letters: ".concat(i));this.appendWeekField("w",r)}else{if("Y"!==i)throw new c("Unknown pattern letter: ".concat(i));this.appendWeekField("Y",r)}n--}else if("'"===i){for(var l=n++;n<e.length;n++)if("'"===e.charAt(n)){if(!(n+1<e.length&&"'"===e.charAt(n+1)))break;n++}if(n>=e.length)throw new c("Pattern ends with an incomplete string literal: ".concat(e));var h=e.substring(1+l,n);0===h.length?this.appendLiteral("'"):this.appendLiteral(h.replace("''","'"))}else if("["===i)this.optionalStart();else if("]"===i){if(null===this._active._parent)throw new c("Pattern invalid as it contains ] without previous [");this.optionalEnd()}else{if("{"===i||"}"===i||"#"===i)throw new c("Pattern includes reserved character: '".concat(i,"'"));this.appendLiteral(i)}}}},{key:"_parseField",value:function(e,t,n){switch(e){case"u":case"y":2===t?this.appendValueReduced(n,2,2,$e.BASE_DATE):t<4?this.appendValue(n,t,15,xe.NORMAL):this.appendValue(n,t,15,xe.EXCEEDS_PAD);break;case"M":case"Q":switch(t){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,Be.SHORT);break;case 4:this.appendText(n,Be.FULL);break;case 5:this.appendText(n,Be.NARROW);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"L":case"q":switch(t){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,Be.SHORT_STANDALONE);break;case 4:this.appendText(n,Be.FULL_STANDALONE);break;case 5:this.appendText(n,Be.NARROW_STANDALONE);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"e":switch(t){case 1:case 2:this.appendWeekField("e",t);break;case 3:this.appendText(n,Be.SHORT);break;case 4:this.appendText(n,Be.FULL);break;case 5:this.appendText(n,Be.NARROW);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"c":switch(t){case 1:this.appendWeekField("c",t);break;case 2:throw new c("Invalid number of pattern letters: ".concat(e));case 3:this.appendText(n,Be.SHORT_STANDALONE);break;case 4:this.appendText(n,Be.FULL_STANDALONE);break;case 5:this.appendText(n,Be.NARROW_STANDALONE);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"a":if(1!==t)throw new c("Too many pattern letters: ".concat(e));this.appendText(n,Be.SHORT);break;case"E":case"G":switch(t){case 1:case 2:case 3:this.appendText(n,Be.SHORT);break;case 4:this.appendText(n,Be.FULL);break;case 5:this.appendText(n,Be.NARROW);break;default:throw new c("Too many pattern letters: ".concat(e))}break;case"S":this.appendFraction(q.NANO_OF_SECOND,t,t,!1);break;case"F":if(1!==t)throw new c("Too many pattern letters: ".concat(e));this.appendValue(n);break;case"d":case"h":case"H":case"k":case"K":case"m":case"s":if(1===t)this.appendValue(n);else{if(2!==t)throw new c("Too many pattern letters: ".concat(e));this.appendValue(n,t)}break;case"D":if(1===t)this.appendValue(n);else{if(!(t<=3))throw new c("Too many pattern letters: ".concat(e));this.appendValue(n,t)}break;default:1===t?this.appendValue(n):this.appendValue(n,t)}}},{key:"padNext",value:function(){return 1===arguments.length?this._padNext1.apply(this,arguments):this._padNext2.apply(this,arguments)}},{key:"_padNext1",value:function(e){return this._padNext2(e," ")}},{key:"_padNext2",value:function(e,t){if(e<1)throw new c("The pad width must be at least one but was ".concat(e));return this._active._padNextWidth=e,this._active._padNextChar=t,this._active._valueParserIndex=-1,this}},{key:"optionalStart",value:function(){return this._active._valueParserIndex=-1,this._active=Et._of(this._active,!0),this}},{key:"optionalEnd",value:function(){if(null==this._active._parent)throw new r("Cannot call optionalEnd() as there was no previous call to optionalStart()");if(0<this._active._printerParsers.length){var e=new ze(this._active._printerParsers,this._active._optional);this._active=this._active._parent,this._appendInternal(e)}else this._active=this._active._parent;return this}},{key:"_appendInternal",value:function(e){return k(null!=e),0<this._active._padNextWidth&&(null!=e&&(e=new it(e,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(e),this._active._valueParserIndex=-1,this._active._printerParsers.length-1}},{key:"appendLiteral",value:function(e){return k(null!=e),0<e.length&&(1===e.length?this._appendInternalPrinterParser(new qe(e.charAt(0))):this._appendInternalPrinterParser(new st(e))),this}},{key:"_appendInternalPrinterParser",value:function(e){return k(null!=e),0<this._active._padNextWidth&&(null!=e&&(e=new it(e,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(e),this._active._valueParserIndex=-1,this._active._printerParsers.length-1}},{key:"append",value:function(e){return N(e,"formatter"),this._appendInternal(e._toPrinterParser(!1)),this}},{key:"toFormatter",value:function(e){for(var t=0<arguments.length&&void 0!==e?e:oe.SMART;null!=this._active._parent;)this.optionalEnd();var n=new ze(this._printerParsers,!1);return new Tt(n,null,He.STANDARD,t,null,null,null)}}],[{key:"_of",value:function(e,t){N(e,"parent"),N(t,"optional");var n=new Et;return n._parent=e,n._optional=t,n}}]),Et);function Et(){f(this,Et),(this._active=this)._parent=null,this._printerParsers=[],this._optional=!1,this._padNextWidth=0,this._padNextChar=null,this._valueParserIndex=-1}var St=31556952e4,mt=62167219200,kt=(y(Nt,[{key:"print",value:function(e,t){var n=e.getValue(q.INSTANT_SECONDS),i=0;if(e.temporal().isSupported(q.NANO_OF_SECOND)&&(i=e.temporal().getLong(q.NANO_OF_SECOND)),null==n)return!1;var a=n,r=q.NANO_OF_SECOND.checkValidIntValue(i);if(-mt<=a){var s=a-St+mt,o=M.floorDiv(s,St)+1,u=M.floorMod(s,St),l=Gt.ofEpochSecond(u-mt,0,Ee.UTC);0<o&&t.append("+").append(o),t.append(l),0===l.second()&&t.append(":00")}else{var h=a+mt,c=M.intDiv(h,St),f=M.intMod(h,St),_=Gt.ofEpochSecond(f-mt,0,Ee.UTC),d=t.length();t.append(_),0===_.second()&&t.append(":00"),c<0&&(-1e4===_.year()?t.replace(d,d+2,"".concat(c-1)):0===f?t.insert(d,c):t.insert(d+1,Math.abs(c)))}if(-2===this.fractionalDigits)0!==r&&(t.append("."),0===M.intMod(r,1e6)?t.append("".concat(M.intDiv(r,1e6)+1e3).substring(1)):0===M.intMod(r,1e3)?t.append("".concat(M.intDiv(r,1e3)+1e6).substring(1)):t.append("".concat(r+1e9).substring(1)));else if(0<this.fractionalDigits||-1===this.fractionalDigits&&0<r){t.append(".");for(var v=1e8,y=0;-1===this.fractionalDigits&&0<r||y<this.fractionalDigits;y++){var p=M.intDiv(r,v);t.append(p),r-=p*v,v=M.intDiv(v,10)}}return t.append("Z"),!0}},{key:"parse",value:function(e,t,n){var i=e.copy(),a=this.fractionalDigits<0?0:this.fractionalDigits,r=this.fractionalDigits<0?9:this.fractionalDigits,s=(new Ot).append(Tt.ISO_LOCAL_DATE).appendLiteral("T").appendValue(q.HOUR_OF_DAY,2).appendLiteral(":").appendValue(q.MINUTE_OF_HOUR,2).appendLiteral(":").appendValue(q.SECOND_OF_MINUTE,2).appendFraction(q.NANO_OF_SECOND,a,r,!0).appendLiteral("Z").toFormatter()._toPrinterParser(!1).parse(i,t,n);if(s<0)return s;var o,u=i.getParsed(q.YEAR),l=i.getParsed(q.MONTH_OF_YEAR),h=i.getParsed(q.DAY_OF_MONTH),c=i.getParsed(q.HOUR_OF_DAY),f=i.getParsed(q.MINUTE_OF_HOUR),_=i.getParsed(q.SECOND_OF_MINUTE),d=i.getParsed(q.NANO_OF_SECOND),v=null!=_?_:0,y=null!=d?d:0,p=M.intMod(u,1e4),O=0;24===c&&0===f&&0===v&&0===y?(c=0,O=1):23===c&&59===f&&60===v&&(e.setParsedLeapSecond(),v=59);try{o=Gt.of(p,l,h,c,f,v,0).plusDays(O).toEpochSecond(Ee.UTC),o+=M.safeMultiply(M.intDiv(u,1e4),St)}catch(e){return~n}var E=s;return E=e.setParsedField(q.INSTANT_SECONDS,o,n,E),e.setParsedField(q.NANO_OF_SECOND,y,n,E)}},{key:"toString",value:function(){return"Instant()"}}]),Nt);function Nt(e){f(this,Nt),this.fractionalDigits=e}var Dt=(y(At,[{key:"append",value:function(e){return this._str+=e,this}},{key:"appendChar",value:function(e){return this._str+=e[0],this}},{key:"insert",value:function(e,t){return this._str=this._str.slice(0,e)+t+this._str.slice(e),this}},{key:"replace",value:function(e,t,n){return this._str=this._str.slice(0,e)+n+this._str.slice(t),this}},{key:"length",value:function(){return this._str.length}},{key:"setLength",value:function(e){return this._str=this._str.slice(0,e),this}},{key:"toString",value:function(){return this._str}}]),At);function At(){f(this,At),this._str=""}var Tt=(y(wt,[{key:"locale",value:function(){return this._locale}},{key:"decimalStyle",value:function(){return this._decimalStyle}},{key:"chronology",value:function(){return this._chrono}},{key:"withChronology",value:function(e){return null!=this._chrono&&this._chrono.equals(e)?this:new wt(this._printerParser,this._locale,this._decimalStyle,this._resolverStyle,this._resolverFields,e,this._zone)}},{key:"withLocale",value:function(){return this}},{key:"withResolverStyle",value:function(e){return N(e,"resolverStyle"),e.equals(this._resolverStyle)?this:new wt(this._printerParser,this._locale,this._decimalStyle,e,this._resolverFields,this._chrono,this._zone)}},{key:"format",value:function(e){var t=new Dt(32);return this._formatTo(e,t),t.toString()}},{key:"_formatTo",value:function(e,t){N(e,"temporal"),N(t,"appendable");var n=new De(e,this);this._printerParser.print(n,t)}},{key:"parse",value:function(e,t){return 1===arguments.length?this.parse1(e):this.parse2(e,t)}},{key:"parse1",value:function(t){N(t,"text");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields)}catch(e){throw e instanceof v?e:this._createError(t,e)}}},{key:"parse2",value:function(t,e){N(t,"text"),N(e,"type");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields).build(e)}catch(e){throw e instanceof v?e:this._createError(t,e)}}},{key:"_createError",value:function(e,t){var n="";return n=64<e.length?"".concat(e.substring(0,64),"..."):e,new v("Text '".concat(n,"' could not be parsed: ").concat(t.message),e,0,t)}},{key:"_parseToBuilder",value:function(e,t){var n=null!=t?t:new ie(0),i=this._parseUnresolved0(e,n);if(null==i||0<=n.getErrorIndex()||null==t&&n.getIndex()<e.length){var a="";throw a=64<e.length?"".concat(e.substr(0,64).toString(),"..."):e,0<=n.getErrorIndex()?new v("Text '".concat(a,"' could not be parsed at index ").concat(n.getErrorIndex()),e,n.getErrorIndex()):new v("Text '".concat(a,"' could not be parsed, unparsed text found at index ").concat(n.getIndex()),e,n.getIndex())}return i.toBuilder()}},{key:"parseUnresolved",value:function(e,t){return this._parseUnresolved0(e,t)}},{key:"_parseUnresolved0",value:function(e,t){k(null!=e,"text",s),k(null!=t,"position",s);var n=new me(this),i=t.getIndex();return(i=this._printerParser.parse(n,e,i))<0?(t.setErrorIndex(~i),null):(t.setIndex(i),n.toParsed())}},{key:"_toPrinterParser",value:function(e){return this._printerParser.withOptional(e)}},{key:"toString",value:function(){var e=this._printerParser.toString();return 0===e.indexOf("[")?e:e.substring(1,e.length-1)}}],[{key:"parsedExcessDays",value:function(){return wt.PARSED_EXCESS_DAYS}},{key:"parsedLeapSecond",value:function(){return wt.PARSED_LEAP_SECOND}},{key:"ofPattern",value:function(e){return(new Ot).appendPattern(e).toFormatter()}}]),wt);function wt(e,t,n,i,a){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:Wt.INSTANCE,s=6<arguments.length?arguments[6]:void 0;f(this,wt),k(null!=e),k(null!=n),k(null!=i),this._printerParser=e,this._locale=t,this._decimalStyle=n,this._resolverStyle=i,this._resolverFields=a,this._chrono=r,this._zone=s}var Mt,gt=function(){p(a,K);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._month=M.safeToInt(e),n._day=M.safeToInt(t),n}return y(a,[{key:"monthValue",value:function(){return this._month}},{key:"month",value:function(){return ee.of(this._month)}},{key:"dayOfMonth",value:function(){return this._day}},{key:"isSupported",value:function(e){return e instanceof q?e===q.MONTH_OF_YEAR||e===q.DAY_OF_MONTH:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return e===q.MONTH_OF_YEAR?e.range():e===q.DAY_OF_MONTH?x.of(1,this.month().minLength(),this.month().maxLength()):m(d(a.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(N(e,"field"),e instanceof q){switch(e){case q.DAY_OF_MONTH:return this._day;case q.MONTH_OF_YEAR:return this._month}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"isValidYear",value:function(e){return!1==(29===this._day&&2===this._month&&!1===Yt.isLeap(e))}},{key:"withMonth",value:function(e){return this.with(ee.of(e))}},{key:"with",value:function(e){if(N(e,"month"),e.value()===this._month)return this;var t=Math.min(this._day,e.maxLength());return new a(e.value(),t)}},{key:"withDayOfMonth",value:function(e){return e===this._day?this:a.of(this._month,e)}},{key:"query",value:function(e){return N(e,"query"),D(e,G,"query"),e===Z.chronology()?Wt.INSTANCE:m(d(a.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return N(e,"temporal"),(e=e.with(q.MONTH_OF_YEAR,this._month)).with(q.DAY_OF_MONTH,Math.min(e.range(q.DAY_OF_MONTH).maximum(),this._day))}},{key:"atYear",value:function(e){return Kt.of(e,this._month,this.isValidYear(e)?this._day:28)}},{key:"compareTo",value:function(e){N(e,"other"),D(e,a,"other");var t=this._month-e.monthValue();return 0===t&&(t=this._day-e.dayOfMonth()),t}},{key:"isAfter",value:function(e){return N(e,"other"),D(e,a,"other"),0<this.compareTo(e)}},{key:"isBefore",value:function(e){return N(e,"other"),D(e,a,"other"),this.compareTo(e)<0}},{key:"equals",value:function(e){if(this===e)return!0;if(e instanceof a){var t=e;return this.monthValue()===t.monthValue()&&this.dayOfMonth()===t.dayOfMonth()}return!1}},{key:"toString",value:function(){return"--".concat(this._month<10?"0":"").concat(this._month).concat(this._day<10?"-0":"-").concat(this._day)}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),D(e,Tt,"formatter"),e.format(this)}}],[{key:"now",value:function(e){return 0===arguments.length?a.now0():1===arguments.length&&e instanceof fe?a.nowZoneId(e):a.nowClock(e)}},{key:"now0",value:function(){return this.nowClock(Qt.systemDefaultZone())}},{key:"nowZoneId",value:function(e){return N(e,"zone"),this.nowClock(Qt.system(e))}},{key:"nowClock",value:function(e){N(e,"clock");var t=Kt.now(e);return a.of(t.month(),t.dayOfMonth())}},{key:"of",value:function(e,t){return 2===arguments.length&&e instanceof ee?a.ofMonthNumber(e,t):a.ofNumberNumber(e,t)}},{key:"ofMonthNumber",value:function(e,t){if(N(e,"month"),q.DAY_OF_MONTH.checkValidValue(t),t>e.maxLength())throw new T("Illegal value for DayOfMonth field, value ".concat(t," is not valid for month ").concat(e.toString()));return new a(e.value(),t)}},{key:"ofNumberNumber",value:function(e,t){return N(e,"month"),N(t,"dayOfMonth"),a.of(ee.of(e),t)}},{key:"from",value:function(t){if(N(t,"temporal"),D(t,K,"temporal"),t instanceof a)return t;try{return a.of(t.get(q.MONTH_OF_YEAR),t.get(q.DAY_OF_MONTH))}catch(e){throw new T("Unable to obtain MonthDay from TemporalAccessor: ".concat(t,", type ").concat(t&&null!=t.constructor?t.constructor.name:""))}}},{key:"parse",value:function(e,t){return 1===arguments.length?a.parseString(e):a.parseStringFormatter(e,t)}},{key:"parseString",value:function(e){return a.parseStringFormatter(e,Mt)}},{key:"parseStringFormatter",value:function(e,t){return N(e,"text"),N(t,"formatter"),D(t,Tt,"formatter"),t.parse(e,a.FROM)}}]),a}();var Rt,It=function(){p(a,ue);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._year=M.safeToInt(e),n._month=M.safeToInt(t),n}return y(a,[{key:"isSupported",value:function(e){return 1===arguments.length&&e instanceof H?this.isSupportedField(e):this.isSupportedUnit(e)}},{key:"isSupportedField",value:function(e){return e instanceof q?e===q.YEAR||e===q.MONTH_OF_YEAR||e===q.PROLEPTIC_MONTH||e===q.YEAR_OF_ERA||e===q.ERA:null!=e&&e.isSupportedBy(this)}},{key:"isSupportedUnit",value:function(e){return e instanceof b?e===b.MONTHS||e===b.YEARS||e===b.DECADES||e===b.CENTURIES||e===b.MILLENNIA||e===b.ERAS:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return e===q.YEAR_OF_ERA?this.year()<=0?x.of(1,Yt.MAX_VALUE+1):x.of(1,Yt.MAX_VALUE):m(d(a.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return N(e,"field"),D(e,H,"field"),this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(N(e,"field"),D(e,H,"field"),e instanceof q){switch(e){case q.MONTH_OF_YEAR:return this._month;case q.PROLEPTIC_MONTH:return this._getProlepticMonth();case q.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case q.YEAR:return this._year;case q.ERA:return this._year<1?0:1}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"_getProlepticMonth",value:function(){return M.safeAdd(M.safeMultiply(this._year,12),this._month-1)}},{key:"year",value:function(){return this._year}},{key:"monthValue",value:function(){return this._month}},{key:"month",value:function(){return ee.of(this._month)}},{key:"isLeapYear",value:function(){return Wt.isLeapYear(this._year)}},{key:"isValidDay",value:function(e){return 1<=e&&e<=this.lengthOfMonth()}},{key:"lengthOfMonth",value:function(){return this.month().length(this.isLeapYear())}},{key:"lengthOfYear",value:function(){return this.isLeapYear()?366:365}},{key:"with",value:function(e,t){return 1===arguments.length?this._withAdjuster(e):this._withField(e,t)}},{key:"_withField",value:function(e,t){if(N(e,"field"),D(e,H,"field"),e instanceof q){var n=e;switch(n.checkValidValue(t),n){case q.MONTH_OF_YEAR:return this.withMonth(t);case q.PROLEPTIC_MONTH:return this.plusMonths(t-this.getLong(q.PROLEPTIC_MONTH));case q.YEAR_OF_ERA:return this.withYear(this._year<1?1-t:t);case q.YEAR:return this.withYear(t);case q.ERA:return this.getLong(q.ERA)===t?this:this.withYear(1-this._year)}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"withYear",value:function(e){return q.YEAR.checkValidValue(e),new a(e,this._month)}},{key:"withMonth",value:function(e){return q.MONTH_OF_YEAR.checkValidValue(e),new a(this._year,e)}},{key:"_plusUnit",value:function(e,t){if(N(t,"unit"),D(t,L,"unit"),t instanceof b){switch(t){case b.MONTHS:return this.plusMonths(e);case b.YEARS:return this.plusYears(e);case b.DECADES:return this.plusYears(M.safeMultiply(e,10));case b.CENTURIES:return this.plusYears(M.safeMultiply(e,100));case b.MILLENNIA:return this.plusYears(M.safeMultiply(e,1e3));case b.ERAS:return this.with(q.ERA,M.safeAdd(this.getLong(q.ERA),e))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusYears",value:function(e){if(0===e)return this;var t=q.YEAR.checkValidIntValue(this._year+e);return this.withYear(t)}},{key:"plusMonths",value:function(e){if(0===e)return this;var t=12*this._year+(this._month-1)+e;return new a(q.YEAR.checkValidIntValue(M.floorDiv(t,12)),M.floorMod(t,12)+1)}},{key:"minusYears",value:function(e){return e===M.MIN_SAFE_INTEGER?this.plusYears(M.MIN_SAFE_INTEGER).plusYears(1):this.plusYears(-e)}},{key:"minusMonths",value:function(e){return e===M.MIN_SAFE_INTEGER?this.plusMonths(Math.MAX_SAFE_INTEGER).plusMonths(1):this.plusMonths(-e)}},{key:"query",value:function(e){return N(e,"query"),D(e,G,"query"),e===Z.chronology()?Wt.INSTANCE:e===Z.precision()?b.MONTHS:e===Z.localDate()||e===Z.localTime()||e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:m(d(a.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return N(e,"temporal"),D(e,ue,"temporal"),e.with(q.PROLEPTIC_MONTH,this._getProlepticMonth())}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit"),D(e,ue,"endExclusive"),D(t,L,"unit");var n=a.from(e);if(t instanceof b){var i=n._getProlepticMonth()-this._getProlepticMonth();switch(t){case b.MONTHS:return i;case b.YEARS:return i/12;case b.DECADES:return i/120;case b.CENTURIES:return i/1200;case b.MILLENNIA:return i/12e3;case b.ERAS:return n.getLong(q.ERA)-this.getLong(q.ERA)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"atDay",value:function(e){return Kt.of(this._year,this._month,e)}},{key:"atEndOfMonth",value:function(){return Kt.of(this._year,this._month,this.lengthOfMonth())}},{key:"compareTo",value:function(e){N(e,"other"),D(e,a,"other");var t=this._year-e.year();return 0===t&&(t=this._month-e.monthValue()),t}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"equals",value:function(e){if(this===e)return!0;if(e instanceof a){var t=e;return this.year()===t.year()&&this.monthValue()===t.monthValue()}return!1}},{key:"toString",value:function(){return Rt.format(this)}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}}],[{key:"now",value:function(e){return 0===arguments.length?a.now0():1===arguments.length&&e instanceof fe?a.nowZoneId(e):a.nowClock(e)}},{key:"now0",value:function(){return a.nowClock(Qt.systemDefaultZone())}},{key:"nowZoneId",value:function(e){return a.nowClock(Qt.system(e))}},{key:"nowClock",value:function(e){var t=Kt.now(e);return a.of(t.year(),t.month())}},{key:"of",value:function(e,t){return 2===arguments.length&&t instanceof ee?a.ofNumberMonth(e,t):a.ofNumberNumber(e,t)}},{key:"ofNumberMonth",value:function(e,t){return N(t,"month"),D(t,ee,"month"),a.ofNumberNumber(e,t.value())}},{key:"ofNumberNumber",value:function(e,t){return N(e,"year"),N(t,"month"),q.YEAR.checkValidValue(e),q.MONTH_OF_YEAR.checkValidValue(t),new a(e,t)}},{key:"from",value:function(t){if(N(t,"temporal"),t instanceof a)return t;try{return a.of(t.get(q.YEAR),t.get(q.MONTH_OF_YEAR))}catch(e){throw new T("Unable to obtain YearMonth from TemporalAccessor: ".concat(t,", type ").concat(t&&null!=t.constructor?t.constructor.name:""))}}},{key:"parse",value:function(e,t){return 1===arguments.length?a.parseString(e):a.parseStringFormatter(e,t)}},{key:"parseString",value:function(e){return a.parseStringFormatter(e,Rt)}},{key:"parseStringFormatter",value:function(e,t){return N(t,"formatter"),t.parse(e,a.FROM)}}]),a}();var Ft,Yt=function(){p(a,ue);var n=S(a);function a(e){var t;return f(this,a),(t=n.call(this))._year=M.safeToInt(e),t}return y(a,[{key:"value",value:function(){return this._year}},{key:"isSupported",value:function(e){return 1===arguments.length&&e instanceof H?this.isSupportedField(e):this.isSupportedUnit(e)}},{key:"isSupportedField",value:function(e){return e instanceof q?e===q.YEAR||e===q.YEAR_OF_ERA||e===q.ERA:null!=e&&e.isSupportedBy(this)}},{key:"isSupportedUnit",value:function(e){return e instanceof b?e===b.YEARS||e===b.DECADES||e===b.CENTURIES||e===b.MILLENNIA||e===b.ERAS:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){if(this.isSupported(e))return e.range();if(e instanceof q)throw new u("Unsupported field: ".concat(e));return m(d(a.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return this.range(e).checkValidIntValue(this.getLong(e),e)}},{key:"getLong",value:function(e){if(N(e,"field"),e instanceof q){switch(e){case q.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case q.YEAR:return this._year;case q.ERA:return this._year<1?0:1}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"isLeap",value:function(){return a.isLeap(this._year)}},{key:"_withField",value:function(e,t){if(N(e,"field"),D(e,H,"field"),e instanceof q){switch(e.checkValidValue(t),e){case q.YEAR_OF_ERA:return a.of(this._year<1?1-t:t);case q.YEAR:return a.of(t);case q.ERA:return this.getLong(q.ERA)===t?this:a.of(1-this._year)}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"_plusUnit",value:function(e,t){if(N(e,"amountToAdd"),N(t,"unit"),D(t,L,"unit"),t instanceof b){switch(t){case b.YEARS:return this.plusYears(e);case b.DECADES:return this.plusYears(M.safeMultiply(e,10));case b.CENTURIES:return this.plusYears(M.safeMultiply(e,100));case b.MILLENNIA:return this.plusYears(M.safeMultiply(e,1e3));case b.ERAS:return this.with(q.ERA,M.safeAdd(this.getLong(q.ERA),e))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusYears",value:function(e){return 0===e?this:a.of(q.YEAR.checkValidIntValue(M.safeAdd(this._year,e)))}},{key:"minusYears",value:function(e){return e===M.MIN_SAFE_INTEGER?this.plusYears(M.MAX_SAFE_INTEGER).plusYears(1):this.plusYears(-e)}},{key:"adjustInto",value:function(e){return N(e,"temporal"),e.with(q.YEAR,this._year)}},{key:"isValidMonthDay",value:function(e){return null!=e&&e.isValidYear(this._year)}},{key:"length",value:function(){return this.isLeap()?366:365}},{key:"atDay",value:function(e){return Kt.ofYearDay(this._year,e)}},{key:"atMonth",value:function(e){return 1===arguments.length&&e instanceof ee?this.atMonthMonth(e):this.atMonthNumber(e)}},{key:"atMonthMonth",value:function(e){return N(e,"month"),D(e,ee,"month"),It.of(this._year,e)}},{key:"atMonthNumber",value:function(e){return N(e,"month"),It.of(this._year,e)}},{key:"atMonthDay",value:function(e){return N(e,"monthDay"),D(e,gt,"monthDay"),e.atYear(this._year)}},{key:"query",value:function(e){return N(e,"query()"),D(e,G,"query()"),e===Z.chronology()?Wt.INSTANCE:e===Z.precision()?b.YEARS:e===Z.localDate()||e===Z.localTime()||e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:m(d(a.prototype),"query",this).call(this,e)}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,a,"other"),this._year-e._year}},{key:"isAfter",value:function(e){return N(e,"other"),D(e,a,"other"),this._year>e._year}},{key:"isBefore",value:function(e){return N(e,"other"),D(e,a,"other"),this._year<e._year}},{key:"format",value:function(e){return N(e,"formatter"),D(e,Tt,"formatter"),e.format(this)}},{key:"equals",value:function(e){return this===e||e instanceof a&&this.value()===e.value()}},{key:"toString",value:function(){return"".concat(this._year)}},{key:"toJSON",value:function(){return this.toString()}},{key:"until",value:function(e,t){var n=a.from(e);if(t instanceof b){var i=n.value()-this.value();switch(t){case b.YEARS:return i;case b.DECADES:return M.intDiv(i,10);case b.CENTURIES:return M.intDiv(i,100);case b.MILLENNIA:return M.intDiv(i,1e3);case b.ERAS:return n.getLong(q.ERA)-this.getLong(q.ERA)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}}],[{key:"now",value:function(e){var t=0<arguments.length&&void 0!==e?e:void 0;return void 0===t?a.now0():t instanceof fe?a.nowZoneId(t):a.nowClock(t)}},{key:"now0",value:function(){return a.nowClock(Qt.systemDefaultZone())}},{key:"nowZoneId",value:function(e){return N(e,"zone"),D(e,fe,"zone"),a.nowClock(Qt.system(e))}},{key:"nowClock",value:function(e){N(e,"clock"),D(e,Qt,"clock");var t=Kt.now(e);return a.of(t.year())}},{key:"of",value:function(e){return N(e,"isoYear"),q.YEAR.checkValidValue(e),new a(e)}},{key:"from",value:function(t){if(N(t,"temporal"),D(t,K,"temporal"),t instanceof a)return t;try{return a.of(t.get(q.YEAR))}catch(e){throw new T("Unable to obtain Year from TemporalAccessor: ".concat(t,", type ").concat(t&&null!=t.constructor?t.constructor.name:""))}}},{key:"parse",value:function(e,t){return arguments.length<=1?a.parseText(e):a.parseTextFormatter(e,t)}},{key:"parseText",value:function(e){return N(e,"text"),a.parse(e,Ft)}},{key:"parseTextFormatter",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Ft;return N(e,"text"),N(n,"formatter"),D(n,Tt,"formatter"),n.parse(e,a.FROM)}},{key:"isLeap",value:function(e){return 0===M.intMod(e,4)&&(0!==M.intMod(e,100)||0===M.intMod(e,400))}}]),a}();var Ct=(y(Lt,[{key:"adjustInto",value:function(e){o("adjustInto")}}]),Lt);function Lt(){f(this,Lt)}var Pt=(y(Ut,null,[{key:"firstDayOfMonth",value:function(){return Vt.FIRST_DAY_OF_MONTH}},{key:"lastDayOfMonth",value:function(){return Vt.LAST_DAY_OF_MONTH}},{key:"firstDayOfNextMonth",value:function(){return Vt.FIRST_DAY_OF_NEXT_MONTH}},{key:"firstDayOfYear",value:function(){return Vt.FIRST_DAY_OF_YEAR}},{key:"lastDayOfYear",value:function(){return Vt.LAST_DAY_OF_YEAR}},{key:"firstDayOfNextYear",value:function(){return Vt.FIRST_DAY_OF_NEXT_YEAR}},{key:"firstInMonth",value:function(e){return N(e,"dayOfWeek"),new bt(1,e)}},{key:"lastInMonth",value:function(e){return N(e,"dayOfWeek"),new bt(-1,e)}},{key:"dayOfWeekInMonth",value:function(e,t){return N(t,"dayOfWeek"),new bt(e,t)}},{key:"next",value:function(e){return new Ht(2,e)}},{key:"nextOrSame",value:function(e){return new Ht(0,e)}},{key:"previous",value:function(e){return new Ht(3,e)}},{key:"previousOrSame",value:function(e){return new Ht(1,e)}}]),Ut);function Ut(){f(this,Ut)}var Vt=function(){p(i,Ct);var n=S(i);function i(e){var t;return f(this,i),(t=n.call(this))._ordinal=e,t}return y(i,[{key:"adjustInto",value:function(e){switch(this._ordinal){case 0:return e.with(q.DAY_OF_MONTH,1);case 1:return e.with(q.DAY_OF_MONTH,e.range(q.DAY_OF_MONTH).maximum());case 2:return e.with(q.DAY_OF_MONTH,1).plus(1,b.MONTHS);case 3:return e.with(q.DAY_OF_YEAR,1);case 4:return e.with(q.DAY_OF_YEAR,e.range(q.DAY_OF_YEAR).maximum());case 5:return e.with(q.DAY_OF_YEAR,1).plus(1,b.YEARS)}throw new r("Unreachable")}}]),i}();Vt.FIRST_DAY_OF_MONTH=new Vt(0),Vt.LAST_DAY_OF_MONTH=new Vt(1),Vt.FIRST_DAY_OF_NEXT_MONTH=new Vt(2),Vt.FIRST_DAY_OF_YEAR=new Vt(3),Vt.LAST_DAY_OF_YEAR=new Vt(4),Vt.FIRST_DAY_OF_NEXT_YEAR=new Vt(5);var bt=function(){p(a,Ct);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._ordinal=e,n._dowValue=t.value(),n}return y(a,[{key:"adjustInto",value:function(e){if(0<=this._ordinal){var t=e.with(q.DAY_OF_MONTH,1),n=t.get(q.DAY_OF_WEEK),i=M.intMod(this._dowValue-n+7,7);return i+=7*(this._ordinal-1),t.plus(i,b.DAYS)}var a=e.with(q.DAY_OF_MONTH,e.range(q.DAY_OF_MONTH).maximum()),r=a.get(q.DAY_OF_WEEK),s=this._dowValue-r;return s=0===s?0:0<s?s-7:s,s-=7*(-this._ordinal-1),a.plus(s,b.DAYS)}}]),a}(),Ht=function(){p(a,Ct);var i=S(a);function a(e,t){var n;return f(this,a),n=i.call(this),N(t,"dayOfWeek"),n._relative=e,n._dowValue=t.value(),n}return y(a,[{key:"adjustInto",value:function(e){var t=e.get(q.DAY_OF_WEEK);if(this._relative<2&&t===this._dowValue)return e;if(0==(1&this._relative)){var n=t-this._dowValue;return e.plus(0<=n?7-n:-n,b.DAYS)}var i=this._dowValue-t;return e.minus(0<=i?7-i:-i,b.DAYS)}}]),a}(),Wt=function(){p(t,I);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"_updateResolveMap",value:function(e,t,n){N(e,"fieldValues"),N(t,"field");var i=e.get(t);if(null!=i&&i!==n)throw new T("Invalid state, field: ".concat(t," ").concat(i," conflicts with ").concat(t," ").concat(n));e.put(t,n)}},{key:"resolveDate",value:function(e,t){if(e.containsKey(q.EPOCH_DAY))return Kt.ofEpochDay(e.remove(q.EPOCH_DAY));var n=e.remove(q.PROLEPTIC_MONTH);null!=n&&(t!==oe.LENIENT&&q.PROLEPTIC_MONTH.checkValidValue(n),this._updateResolveMap(e,q.MONTH_OF_YEAR,M.floorMod(n,12)+1),this._updateResolveMap(e,q.YEAR,M.floorDiv(n,12)));var i=e.remove(q.YEAR_OF_ERA);if(null!=i){t!==oe.LENIENT&&q.YEAR_OF_ERA.checkValidValue(i);var a=e.remove(q.ERA);if(null==a){var r=e.get(q.YEAR);t===oe.STRICT?null!=r?this._updateResolveMap(e,q.YEAR,0<r?i:M.safeSubtract(1,i)):e.put(q.YEAR_OF_ERA,i):this._updateResolveMap(e,q.YEAR,null==r||0<r?i:M.safeSubtract(1,i))}else if(1===a)this._updateResolveMap(e,q.YEAR,i);else{if(0!==a)throw new T("Invalid value for era: ".concat(a));this._updateResolveMap(e,q.YEAR,M.safeSubtract(1,i))}}else e.containsKey(q.ERA)&&q.ERA.checkValidValue(e.get(q.ERA));if(e.containsKey(q.YEAR)){if(e.containsKey(q.MONTH_OF_YEAR)&&e.containsKey(q.DAY_OF_MONTH)){var s=q.YEAR.checkValidIntValue(e.remove(q.YEAR)),o=e.remove(q.MONTH_OF_YEAR),u=e.remove(q.DAY_OF_MONTH);if(t!==oe.LENIENT)return t===oe.SMART&&(q.DAY_OF_MONTH.checkValidValue(u),4===o||6===o||9===o||11===o?u=Math.min(u,30):2===o&&(u=Math.min(u,ee.FEBRUARY.length(Yt.isLeap(s))))),Kt.of(s,o,u);var l=o-1,h=u-1;return Kt.of(s,1,1).plusMonths(l).plusDays(h)}if(e.containsKey(q.DAY_OF_YEAR)){var c=q.YEAR.checkValidIntValue(e.remove(q.YEAR));if(t===oe.LENIENT){var f=M.safeSubtract(e.remove(q.DAY_OF_YEAR),1);return Kt.ofYearDay(c,1).plusDays(f)}var _=q.DAY_OF_YEAR.checkValidIntValue(e.remove(q.DAY_OF_YEAR));return Kt.ofYearDay(c,_)}if(e.containsKey(q.ALIGNED_WEEK_OF_YEAR)){if(e.containsKey(q.ALIGNED_DAY_OF_WEEK_IN_YEAR)){var d=q.YEAR.checkValidIntValue(e.remove(q.YEAR));if(t===oe.LENIENT){var v=M.safeSubtract(e.remove(q.ALIGNED_WEEK_OF_YEAR),1),y=M.safeSubtract(e.remove(q.ALIGNED_DAY_OF_WEEK_IN_YEAR),1);return Kt.of(d,1,1).plusWeeks(v).plusDays(y)}var p=q.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(e.remove(q.ALIGNED_WEEK_OF_YEAR)),O=q.ALIGNED_DAY_OF_WEEK_IN_YEAR.checkValidIntValue(e.remove(q.ALIGNED_DAY_OF_WEEK_IN_YEAR)),E=Kt.of(d,1,1).plusDays(7*(p-1)+(O-1));if(t===oe.STRICT&&E.get(q.YEAR)!==d)throw new T("Strict mode rejected date parsed to a different year");return E}if(e.containsKey(q.DAY_OF_WEEK)){var S=q.YEAR.checkValidIntValue(e.remove(q.YEAR));if(t===oe.LENIENT){var m=M.safeSubtract(e.remove(q.ALIGNED_WEEK_OF_YEAR),1),k=M.safeSubtract(e.remove(q.DAY_OF_WEEK),1);return Kt.of(S,1,1).plusWeeks(m).plusDays(k)}var N=q.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(e.remove(q.ALIGNED_WEEK_OF_YEAR)),D=q.DAY_OF_WEEK.checkValidIntValue(e.remove(q.DAY_OF_WEEK)),A=Kt.of(S,1,1).plusWeeks(N-1).with(Pt.nextOrSame(Q.of(D)));if(t===oe.STRICT&&A.get(q.YEAR)!==S)throw new T("Strict mode rejected date parsed to a different month");return A}}}return null}},{key:"date",value:function(e){return Kt.from(e)}}],[{key:"isLeapYear",value:function(e){return 0==(3&e)&&(e%100!=0||e%400==0)}}]),t}();var xt=function(){p(r,ue);var i=S(r);function r(e,t){var n;return f(this,r),n=i.call(this),N(e,"time"),D(e,Xt,"time"),N(t,"offset"),D(t,Ee,"offset"),n._time=e,n._offset=t,n}return y(r,[{key:"adjustInto",value:function(e){return e.with(q.NANO_OF_DAY,this._time.toNanoOfDay()).with(q.OFFSET_SECONDS,this.offset().totalSeconds())}},{key:"atDate",value:function(e){return Zt.of(e,this._time,this._offset)}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this,r.FROM)}},{key:"get",value:function(e){return m(d(r.prototype),"get",this).call(this,e)}},{key:"getLong",value:function(e){return e instanceof q?e===q.OFFSET_SECONDS?this._offset.totalSeconds():this._time.getLong(e):e.getFrom(this)}},{key:"hour",value:function(){return this._time.hour()}},{key:"minute",value:function(){return this._time.minute()}},{key:"second",value:function(){return this._time.second()}},{key:"nano",value:function(){return this._time.nano()}},{key:"offset",value:function(){return this._offset}},{key:"isAfter",value:function(e){return N(e,"other"),this._toEpochNano()>e._toEpochNano()}},{key:"isBefore",value:function(e){return N(e,"other"),this._toEpochNano()<e._toEpochNano()}},{key:"isEqual",value:function(e){return N(e,"other"),this._toEpochNano()===e._toEpochNano()}},{key:"isSupported",value:function(e){return e instanceof q?e.isTimeBased()||e===q.OFFSET_SECONDS:e instanceof b?e.isTimeBased():null!=e&&e.isSupportedBy(this)}},{key:"minusHours",value:function(e){return this._withLocalTimeOffset(this._time.minusHours(e),this._offset)}},{key:"minusMinutes",value:function(e){return this._withLocalTimeOffset(this._time.minusMinutes(e),this._offset)}},{key:"minusSeconds",value:function(e){return this._withLocalTimeOffset(this._time.minusSeconds(e),this._offset)}},{key:"minusNanos",value:function(e){return this._withLocalTimeOffset(this._time.minusNanos(e),this._offset)}},{key:"_minusAmount",value:function(e){return N(e),e.subtractFrom(this)}},{key:"_minusUnit",value:function(e,t){return this.plus(-1*e,t)}},{key:"_plusAmount",value:function(e){return N(e),e.addTo(this)}},{key:"_plusUnit",value:function(e,t){return t instanceof b?this._withLocalTimeOffset(this._time.plus(e,t),this._offset):t.addTo(this,e)}},{key:"plusHours",value:function(e){return this._withLocalTimeOffset(this._time.plusHours(e),this._offset)}},{key:"plusMinutes",value:function(e){return this._withLocalTimeOffset(this._time.plusMinutes(e),this._offset)}},{key:"plusSeconds",value:function(e){return this._withLocalTimeOffset(this._time.plusSeconds(e),this._offset)}},{key:"plusNanos",value:function(e){return this._withLocalTimeOffset(this._time.plusNanos(e),this._offset)}},{key:"query",value:function(e){return N(e,"query"),e===Z.precision()?b.NANOS:e===Z.offset()||e===Z.zone()?this.offset():e===Z.localTime()?this._time:e===Z.chronology()||e===Z.localDate()||e===Z.zoneId()?null:m(d(r.prototype),"query",this).call(this,e)}},{key:"range",value:function(e){return e instanceof q?e===q.OFFSET_SECONDS?e.range():this._time.range(e):e.rangeRefinedBy(this)}},{key:"toLocalTime",value:function(){return this._time}},{key:"truncatedTo",value:function(e){return this._withLocalTimeOffset(this._time.truncatedTo(e),this._offset)}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit");var n=r.from(e);if(t instanceof b){var i=n._toEpochNano()-this._toEpochNano();switch(t){case b.NANOS:return i;case b.MICROS:return Math.floor(i/1e3);case b.MILLIS:return Math.floor(i/1e6);case b.SECONDS:return Math.floor(i/Xt.NANOS_PER_SECOND);case b.MINUTES:return Math.floor(i/Xt.NANOS_PER_MINUTE);case b.HOURS:return Math.floor(i/Xt.NANOS_PER_HOUR);case b.HALF_DAYS:return Math.floor(i/(12*Xt.NANOS_PER_HOUR))}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"withHour",value:function(e){return this._withLocalTimeOffset(this._time.withHour(e),this._offset)}},{key:"withMinute",value:function(e){return this._withLocalTimeOffset(this._time.withMinute(e),this._offset)}},{key:"withSecond",value:function(e){return this._withLocalTimeOffset(this._time.withSecond(e),this._offset)}},{key:"withNano",value:function(e){return this._withLocalTimeOffset(this._time.withNano(e),this._offset)}},{key:"withOffsetSameInstant",value:function(e){if(N(e,"offset"),e.equals(this._offset))return this;var t=e.totalSeconds()-this._offset.totalSeconds();return new r(this._time.plusSeconds(t),e)}},{key:"withOffsetSameLocal",value:function(e){return null!=e&&e.equals(this._offset)?this:new r(this._time,e)}},{key:"_toEpochNano",value:function(){return this._time.toNanoOfDay()-this._offset.totalSeconds()*Xt.NANOS_PER_SECOND}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),e instanceof Xt?this._withLocalTimeOffset(e,this._offset):e instanceof Ee?this._withLocalTimeOffset(this._time,e):e instanceof r?e:e.adjustInto(this)}},{key:"_withField",value:function(e,t){return N(e,"field"),e instanceof q?e===q.OFFSET_SECONDS?this._withLocalTimeOffset(this._time,Ee.ofTotalSeconds(e.checkValidIntValue(t))):this._withLocalTimeOffset(this._time.with(e,t),this._offset):e.adjustInto(this,t)}},{key:"_withLocalTimeOffset",value:function(e,t){return this._time===e&&this._offset.equals(t)?this:new r(e,t)}},{key:"compareTo",value:function(e){if(N(e,"other"),D(e,r,"other"),this._offset.equals(e._offset))return this._time.compareTo(e._time);var t=M.compareNumbers(this._toEpochNano(),e._toEpochNano());return 0===t?this._time.compareTo(e._time):t}},{key:"equals",value:function(e){return this===e||e instanceof r&&(this._time.equals(e._time)&&this._offset.equals(e._offset))}},{key:"hashCode",value:function(){return this._time.hashCode()^this._offset.hashCode()}},{key:"toString",value:function(){return this._time.toString()+this._offset.toString()}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"from",value:function(t){if(N(t,"temporal"),t instanceof r)return t;if(t instanceof Zt)return t.toOffsetTime();try{return new r(Xt.from(t),Ee.from(t))}catch(e){throw new T("Unable to obtain OffsetTime TemporalAccessor: ".concat(t,", type ").concat(null!=t.constructor?t.constructor.name:""))}}},{key:"now",value:function(e){return r._now(0===arguments.length?Qt.systemDefaultZone():e instanceof Qt?e:Qt.system(e))}},{key:"_now",value:function(e){N(e,"clock");var t=e.instant();return r.ofInstant(t,e.zone().rules().offset(t))}},{key:"of",value:function(){return arguments.length<=2?r.ofTimeAndOffset.apply(this,arguments):r.ofNumbers.apply(this,arguments)}},{key:"ofNumbers",value:function(e,t,n,i,a){return new r(Xt.of(e,t,n,i),a)}},{key:"ofTimeAndOffset",value:function(e,t){return new r(e,t)}},{key:"ofInstant",value:function(e,t){N(e,"instant"),D(e,Jt,"instant"),N(t,"zone"),D(t,fe,"zone");var n=t.rules().offset(e),i=e.epochSecond()%Xt.SECONDS_PER_DAY;return(i=(i+n.totalSeconds())%Xt.SECONDS_PER_DAY)<0&&(i+=Xt.SECONDS_PER_DAY),new r(Xt.ofSecondOfDay(i,e.nano()),n)}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_OFFSET_TIME;return N(n,"formatter"),n.parse(e,r.FROM)}}]),r}();var Bt=function(){p(t,ue);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"query",value:function(e){return e===Z.zoneId()||e===Z.zone()?this.zone():e===Z.chronology()?this.toLocalDate().chronology():e===Z.precision()?b.NANOS:e===Z.offset()?this.offset():e===Z.localDate()?Kt.ofEpochDay(this.toLocalDate().toEpochDay()):e===Z.localTime()?this.toLocalTime():m(d(t.prototype),"query",this).call(this,e)}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}},{key:"toInstant",value:function(){return Jt.ofEpochSecond(this.toEpochSecond(),this.toLocalTime().nano())}},{key:"toEpochSecond",value:function(){var e=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return e-=this.offset().totalSeconds()}},{key:"compareTo",value:function(e){N(e,"other");var t=M.compareNumbers(this.toEpochSecond(),e.toEpochSecond());return 0===t&&0===(t=this.toLocalTime().nano()-e.toLocalTime().nano())&&0===(t=this.toLocalDateTime().compareTo(e.toLocalDateTime()))&&(t=function(e,t){if(e<t)return-1;if(t<e)return 1;return 0}(this.zone().id(),e.zone().id())),t}},{key:"isAfter",value:function(e){N(e,"other");var t=this.toEpochSecond(),n=e.toEpochSecond();return n<t||t===n&&this.toLocalTime().nano()>e.toLocalTime().nano()}},{key:"isBefore",value:function(e){N(e,"other");var t=this.toEpochSecond(),n=e.toEpochSecond();return t<n||t===n&&this.toLocalTime().nano()<e.toLocalTime().nano()}},{key:"isEqual",value:function(e){return N(e,"other"),this.toEpochSecond()===e.toEpochSecond()&&this.toLocalTime().nano()===e.toLocalTime().nano()}},{key:"equals",value:function(e){return this===e||e instanceof t&&0===this.compareTo(e)}}]),t}();var qt=function(){p(l,Bt);var a=S(l);function l(e,t,n){var i;return f(this,l),N(e,"dateTime"),N(t,"offset"),N(n,"zone"),(i=a.call(this))._dateTime=e,i._offset=t,i._zone=n,i}return y(l,[{key:"_resolveLocal",value:function(e){return N(e,"newDateTime"),l.ofLocal(e,this._zone,this._offset)}},{key:"_resolveInstant",value:function(e){return l.ofInstant3(e,this._offset,this._zone)}},{key:"_resolveOffset",value:function(e){return!1===e.equals(this._offset)&&this._zone.rules().isValidOffset(this._dateTime,e)?new l(this._dateTime,e,this._zone):this}},{key:"isSupported",value:function(e){return e instanceof q||(e instanceof b?e.isDateBased()||e.isTimeBased():null!=e&&e.isSupportedBy(this))}},{key:"range",value:function(e){return e instanceof q?e===q.INSTANT_SECONDS||e===q.OFFSET_SECONDS?e.range():this._dateTime.range(e):e.rangeRefinedBy(this)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){if(e instanceof q){switch(e){case q.INSTANT_SECONDS:return this.toEpochSecond();case q.OFFSET_SECONDS:return this._offset.totalSeconds()}return this._dateTime.getLong(e)}return N(e,"field"),e.getFrom(this)}},{key:"offset",value:function(){return this._offset}},{key:"withEarlierOffsetAtOverlap",value:function(){var e=this._zone.rules().transition(this._dateTime);if(null!=e&&e.isOverlap()){var t=e.offsetBefore();if(!1===t.equals(this._offset))return new l(this._dateTime,t,this._zone)}return this}},{key:"withLaterOffsetAtOverlap",value:function(){var e=this._zone.rules().transition(this.toLocalDateTime());if(null!=e){var t=e.offsetAfter();if(!1===t.equals(this._offset))return new l(this._dateTime,t,this._zone)}return this}},{key:"zone",value:function(){return this._zone}},{key:"withZoneSameLocal",value:function(e){return N(e,"zone"),this._zone.equals(e)?this:l.ofLocal(this._dateTime,e,this._offset)}},{key:"withZoneSameInstant",value:function(e){return N(e,"zone"),this._zone.equals(e)?this:l._create(this._dateTime.toEpochSecond(this._offset),this._dateTime.nano(),e)}},{key:"withFixedOffsetZone",value:function(){return this._zone.equals(this._offset)?this:new l(this._dateTime,this._offset,this._offset)}},{key:"year",value:function(){return this._dateTime.year()}},{key:"monthValue",value:function(){return this._dateTime.monthValue()}},{key:"month",value:function(){return this._dateTime.month()}},{key:"dayOfMonth",value:function(){return this._dateTime.dayOfMonth()}},{key:"dayOfYear",value:function(){return this._dateTime.dayOfYear()}},{key:"dayOfWeek",value:function(){return this._dateTime.dayOfWeek()}},{key:"hour",value:function(){return this._dateTime.hour()}},{key:"minute",value:function(){return this._dateTime.minute()}},{key:"second",value:function(){return this._dateTime.second()}},{key:"nano",value:function(){return this._dateTime.nano()}},{key:"_withAdjuster",value:function(e){if(e instanceof Kt)return this._resolveLocal(Gt.of(e,this._dateTime.toLocalTime()));if(e instanceof Xt)return this._resolveLocal(Gt.of(this._dateTime.toLocalDate(),e));if(e instanceof Gt)return this._resolveLocal(e);if(e instanceof Jt){var t=e;return l._create(t.epochSecond(),t.nano(),this._zone)}return e instanceof Ee?this._resolveOffset(e):m(d(l.prototype),"_withAdjuster",this).call(this,e)}},{key:"_withField",value:function(e,t){if(e instanceof q){switch(e){case q.INSTANT_SECONDS:return l._create(t,this.nano(),this._zone);case q.OFFSET_SECONDS:var n=Ee.ofTotalSeconds(e.checkValidIntValue(t));return this._resolveOffset(n)}return this._resolveLocal(this._dateTime.with(e,t))}return e.adjustInto(this,t)}},{key:"withYear",value:function(e){return this._resolveLocal(this._dateTime.withYear(e))}},{key:"withMonth",value:function(e){return this._resolveLocal(this._dateTime.withMonth(e))}},{key:"withDayOfMonth",value:function(e){return this._resolveLocal(this._dateTime.withDayOfMonth(e))}},{key:"withDayOfYear",value:function(e){return this._resolveLocal(this._dateTime.withDayOfYear(e))}},{key:"withHour",value:function(e){return this._resolveLocal(this._dateTime.withHour(e))}},{key:"withMinute",value:function(e){return this._resolveLocal(this._dateTime.withMinute(e))}},{key:"withSecond",value:function(e){return this._resolveLocal(this._dateTime.withSecond(e))}},{key:"withNano",value:function(e){return this._resolveLocal(this._dateTime.withNano(e))}},{key:"truncatedTo",value:function(e){return this._resolveLocal(this._dateTime.truncatedTo(e))}},{key:"_plusUnit",value:function(e,t){return t instanceof b?t.isDateBased()?this._resolveLocal(this._dateTime.plus(e,t)):this._resolveInstant(this._dateTime.plus(e,t)):(N(t,"unit"),t.addTo(this,e))}},{key:"plusYears",value:function(e){return this._resolveLocal(this._dateTime.plusYears(e))}},{key:"plusMonths",value:function(e){return this._resolveLocal(this._dateTime.plusMonths(e))}},{key:"plusWeeks",value:function(e){return this._resolveLocal(this._dateTime.plusWeeks(e))}},{key:"plusDays",value:function(e){return this._resolveLocal(this._dateTime.plusDays(e))}},{key:"plusHours",value:function(e){return this._resolveInstant(this._dateTime.plusHours(e))}},{key:"plusMinutes",value:function(e){return this._resolveInstant(this._dateTime.plusMinutes(e))}},{key:"plusSeconds",value:function(e){return this._resolveInstant(this._dateTime.plusSeconds(e))}},{key:"plusNanos",value:function(e){return this._resolveInstant(this._dateTime.plusNanos(e))}},{key:"_minusUnit",value:function(e,t){return this._plusUnit(-1*e,t)}},{key:"minusYears",value:function(e){return this.plusYears(-1*e)}},{key:"minusMonths",value:function(e){return this.plusMonths(-1*e)}},{key:"minusWeeks",value:function(e){return this.plusWeeks(-1*e)}},{key:"minusDays",value:function(e){return this.plusDays(-1*e)}},{key:"minusHours",value:function(e){return this.plusHours(-1*e)}},{key:"minusMinutes",value:function(e){return this.plusMinutes(-1*e)}},{key:"minusSeconds",value:function(e){return this.plusSeconds(-1*e)}},{key:"minusNanos",value:function(e){return this.plusNanos(-1*e)}},{key:"query",value:function(e){return e===Z.localDate()?this.toLocalDate():(N(e,"query"),m(d(l.prototype),"query",this).call(this,e))}},{key:"until",value:function(e,t){var n=l.from(e);if(t instanceof b){if(n=n.withZoneSameInstant(this._zone),t.isDateBased())return this._dateTime.until(n._dateTime,t);var i=this._offset.totalSeconds()-n._offset.totalSeconds(),a=n._dateTime.plusSeconds(i);return this._dateTime.until(a,t)}return t.between(this,n)}},{key:"toLocalDateTime",value:function(){return this._dateTime}},{key:"toLocalDate",value:function(){return this._dateTime.toLocalDate()}},{key:"toLocalTime",value:function(){return this._dateTime.toLocalTime()}},{key:"toOffsetDateTime",value:function(){return Zt.of(this._dateTime,this._offset)}},{key:"equals",value:function(e){return this===e||e instanceof l&&(this._dateTime.equals(e._dateTime)&&this._offset.equals(e._offset)&&this._zone.equals(e._zone))}},{key:"hashCode",value:function(){return M.hashCode(this._dateTime.hashCode(),this._offset.hashCode(),this._zone.hashCode())}},{key:"toString",value:function(){var e=this._dateTime.toString()+this._offset.toString();return this._offset!==this._zone&&(e+="[".concat(this._zone.toString(),"]")),e}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return m(d(l.prototype),"format",this).call(this,e)}}],[{key:"now",value:function(e){var t;return t=e instanceof fe?Qt.system(e):null==e?Qt.systemDefaultZone():e,l.ofInstant(t.instant(),t.zone())}},{key:"of",value:function(e){return arguments.length<=2?l.of2.apply(this,arguments):3===arguments.length&&e instanceof Kt?l.of3.apply(this,arguments):l.of8.apply(this,arguments)}},{key:"of3",value:function(e,t,n){return l.of2(Gt.of(e,t),n)}},{key:"of2",value:function(e,t){return l.ofLocal(e,t,null)}},{key:"of8",value:function(e,t,n,i,a,r,s,o){var u=Gt.of(e,t,n,i,a,r,s);return l.ofLocal(u,o,null)}},{key:"ofLocal",value:function(e,t,n){if(N(e,"localDateTime"),N(t,"zone"),t instanceof Ee)return new l(e,t,t);var i=null,a=t.rules(),r=a.validOffsets(e);if(1===r.length)i=r[0];else if(0===r.length){var s=a.transition(e);e=e.plusSeconds(s.duration().seconds()),i=s.offsetAfter()}else i=null!=n&&r.some(function(e){return e.equals(n)})?n:N(r[0],"offset");return new l(e,i,t)}},{key:"ofInstant",value:function(){return 2===arguments.length?l.ofInstant2.apply(this,arguments):l.ofInstant3.apply(this,arguments)}},{key:"ofInstant2",value:function(e,t){return N(e,"instant"),N(t,"zone"),l._create(e.epochSecond(),e.nano(),t)}},{key:"ofInstant3",value:function(e,t,n){return N(e,"localDateTime"),N(t,"offset"),N(n,"zone"),l._create(e.toEpochSecond(t),e.nano(),n)}},{key:"_create",value:function(e,t,n){var i=n.rules(),a=Jt.ofEpochSecond(e,t),r=i.offset(a);return new l(Gt.ofEpochSecond(e,t,r),r,n)}},{key:"ofStrict",value:function(e,t,n){N(e,"localDateTime"),N(t,"offset"),N(n,"zone");var i=n.rules();if(!1!==i.isValidOffset(e,t))return new l(e,t,n);var a=i.transition(e);if(null!=a&&a.isGap())throw new T("LocalDateTime ".concat(e," does not exist in zone ").concat(n," due to a gap in the local time-line, typically caused by daylight savings"));throw new T('ZoneOffset "'.concat(t,'" is not valid for LocalDateTime "').concat(e,'" in zone "').concat(n,'"'))}},{key:"ofLenient",value:function(e,t,n){if(N(e,"localDateTime"),N(t,"offset"),N(n,"zone"),n instanceof Ee&&!1===t.equals(n))throw new c("ZoneId must match ZoneOffset");return new l(e,t,n)}},{key:"from",value:function(e){if(N(e,"temporal"),e instanceof l)return e;var t=fe.from(e);if(e.isSupported(q.INSTANT_SECONDS)){var n=l._from(e,t);if(null!=n)return n}var i=Gt.from(e);return l.of2(i,t)}},{key:"_from",value:function(e,t){try{return l.__from(e,t)}catch(e){if(!(e instanceof T))throw e}}},{key:"__from",value:function(e,t){var n=e.getLong(q.INSTANT_SECONDS),i=e.get(q.NANO_OF_SECOND);return l._create(n,i,t)}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_ZONED_DATE_TIME;return N(n,"formatter"),n.parse(e,l.FROM)}}]),l}();var Zt=function(){p(_,ue);var i=S(_);function _(e,t){var n;return f(this,_),n=i.call(this),N(e,"dateTime"),D(e,Gt,"dateTime"),N(t,"offset"),D(t,Ee,"offset"),n._dateTime=e,n._offset=t,n}return y(_,[{key:"adjustInto",value:function(e){return e.with(q.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(q.NANO_OF_DAY,this.toLocalTime().toNanoOfDay()).with(q.OFFSET_SECONDS,this.offset().totalSeconds())}},{key:"until",value:function(e,t){var n=_.from(e);return t instanceof b?(n=n.withOffsetSameInstant(this._offset),this._dateTime.until(n._dateTime,t)):t.between(this,n)}},{key:"atZoneSameInstant",value:function(e){return qt.ofInstant(this._dateTime,this._offset,e)}},{key:"atZoneSimilarLocal",value:function(e){return qt.ofLocal(this._dateTime,e,this._offset)}},{key:"query",value:function(e){return N(e,"query"),e===Z.chronology()?Wt.INSTANCE:e===Z.precision()?b.NANOS:e===Z.offset()||e===Z.zone()?this.offset():e===Z.localDate()?this.toLocalDate():e===Z.localTime()?this.toLocalTime():e===Z.zoneId()?null:m(d(_.prototype),"query",this).call(this,e)}},{key:"get",value:function(e){if(e instanceof q){switch(e){case q.INSTANT_SECONDS:throw new T("Field too large for an int: ".concat(e));case q.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.get(e)}return m(d(_.prototype),"get",this).call(this,e)}},{key:"getLong",value:function(e){if(e instanceof q){switch(e){case q.INSTANT_SECONDS:return this.toEpochSecond();case q.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.getLong(e)}return e.getFrom(this)}},{key:"offset",value:function(){return this._offset}},{key:"year",value:function(){return this._dateTime.year()}},{key:"monthValue",value:function(){return this._dateTime.monthValue()}},{key:"month",value:function(){return this._dateTime.month()}},{key:"dayOfMonth",value:function(){return this._dateTime.dayOfMonth()}},{key:"dayOfYear",value:function(){return this._dateTime.dayOfYear()}},{key:"dayOfWeek",value:function(){return this._dateTime.dayOfWeek()}},{key:"hour",value:function(){return this._dateTime.hour()}},{key:"minute",value:function(){return this._dateTime.minute()}},{key:"second",value:function(){return this._dateTime.second()}},{key:"nano",value:function(){return this._dateTime.nano()}},{key:"toLocalDateTime",value:function(){return this._dateTime}},{key:"toLocalDate",value:function(){return this._dateTime.toLocalDate()}},{key:"toLocalTime",value:function(){return this._dateTime.toLocalTime()}},{key:"toOffsetTime",value:function(){return xt.of(this._dateTime.toLocalTime(),this._offset)}},{key:"toZonedDateTime",value:function(){return qt.of(this._dateTime,this._offset)}},{key:"toInstant",value:function(){return this._dateTime.toInstant(this._offset)}},{key:"toEpochSecond",value:function(){return this._dateTime.toEpochSecond(this._offset)}},{key:"isSupported",value:function(e){return e instanceof q?e.isDateBased()||e.isTimeBased():e instanceof b?e.isDateBased()||e.isTimeBased():null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return e instanceof q?e===q.INSTANT_SECONDS||e===q.OFFSET_SECONDS?e.range():this._dateTime.range(e):e.rangeRefinedBy(this)}},{key:"_withAdjuster",value:function(e){return N(e),e instanceof Kt||e instanceof Xt||e instanceof Gt?this._withDateTimeOffset(this._dateTime.with(e),this._offset):e instanceof Jt?_.ofInstant(e,this._offset):e instanceof Ee?this._withDateTimeOffset(this._dateTime,e):e instanceof _?e:e.adjustInto(this)}},{key:"_withField",value:function(e,t){if(N(e),e instanceof q){var n=e;switch(n){case q.INSTANT_SECONDS:return _.ofInstant(Jt.ofEpochSecond(t,this.nano()),this._offset);case q.OFFSET_SECONDS:return this._withDateTimeOffset(this._dateTime,Ee.ofTotalSeconds(n.checkValidIntValue(t)))}return this._withDateTimeOffset(this._dateTime.with(e,t),this._offset)}return e.adjustInto(this,t)}},{key:"_withDateTimeOffset",value:function(e,t){return this._dateTime===e&&this._offset.equals(t)?this:new _(e,t)}},{key:"withYear",value:function(e){return this._withDateTimeOffset(this._dateTime.withYear(e),this._offset)}},{key:"withMonth",value:function(e){return this._withDateTimeOffset(this._dateTime.withMonth(e),this._offset)}},{key:"withDayOfMonth",value:function(e){return this._withDateTimeOffset(this._dateTime.withDayOfMonth(e),this._offset)}},{key:"withDayOfYear",value:function(e){return this._withDateTimeOffset(this._dateTime.withDayOfYear(e),this._offset)}},{key:"withHour",value:function(e){return this._withDateTimeOffset(this._dateTime.withHour(e),this._offset)}},{key:"withMinute",value:function(e){return this._withDateTimeOffset(this._dateTime.withMinute(e),this._offset)}},{key:"withSecond",value:function(e){return this._withDateTimeOffset(this._dateTime.withSecond(e),this._offset)}},{key:"withNano",value:function(e){return this._withDateTimeOffset(this._dateTime.withNano(e),this._offset)}},{key:"withOffsetSameLocal",value:function(e){return N(e,"offset"),this._withDateTimeOffset(this._dateTime,e)}},{key:"withOffsetSameInstant",value:function(e){if(N(e,"offset"),e.equals(this._offset))return this;var t=e.totalSeconds()-this._offset.totalSeconds();return new _(this._dateTime.plusSeconds(t),e)}},{key:"truncatedTo",value:function(e){return this._withDateTimeOffset(this._dateTime.truncatedTo(e),this._offset)}},{key:"_plusAmount",value:function(e){return N(e,"amount"),e.addTo(this)}},{key:"_plusUnit",value:function(e,t){return t instanceof b?this._withDateTimeOffset(this._dateTime.plus(e,t),this._offset):t.addTo(this,e)}},{key:"plusYears",value:function(e){return this._withDateTimeOffset(this._dateTime.plusYears(e),this._offset)}},{key:"plusMonths",value:function(e){return this._withDateTimeOffset(this._dateTime.plusMonths(e),this._offset)}},{key:"plusWeeks",value:function(e){return this._withDateTimeOffset(this._dateTime.plusWeeks(e),this._offset)}},{key:"plusDays",value:function(e){return this._withDateTimeOffset(this._dateTime.plusDays(e),this._offset)}},{key:"plusHours",value:function(e){return this._withDateTimeOffset(this._dateTime.plusHours(e),this._offset)}},{key:"plusMinutes",value:function(e){return this._withDateTimeOffset(this._dateTime.plusMinutes(e),this._offset)}},{key:"plusSeconds",value:function(e){return this._withDateTimeOffset(this._dateTime.plusSeconds(e),this._offset)}},{key:"plusNanos",value:function(e){return this._withDateTimeOffset(this._dateTime.plusNanos(e),this._offset)}},{key:"_minusAmount",value:function(e){return N(e),e.subtractFrom(this)}},{key:"_minusUnit",value:function(e,t){return this.plus(-1*e,t)}},{key:"minusYears",value:function(e){return this._withDateTimeOffset(this._dateTime.minusYears(e),this._offset)}},{key:"minusMonths",value:function(e){return this._withDateTimeOffset(this._dateTime.minusMonths(e),this._offset)}},{key:"minusWeeks",value:function(e){return this._withDateTimeOffset(this._dateTime.minusWeeks(e),this._offset)}},{key:"minusDays",value:function(e){return this._withDateTimeOffset(this._dateTime.minusDays(e),this._offset)}},{key:"minusHours",value:function(e){return this._withDateTimeOffset(this._dateTime.minusHours(e),this._offset)}},{key:"minusMinutes",value:function(e){return this._withDateTimeOffset(this._dateTime.minusMinutes(e),this._offset)}},{key:"minusSeconds",value:function(e){return this._withDateTimeOffset(this._dateTime.minusSeconds(e),this._offset)}},{key:"minusNanos",value:function(e){return this._withDateTimeOffset(this._dateTime.minusNanos(e),this._offset)}},{key:"compareTo",value:function(e){if(N(e,"other"),D(e,_,"other"),this.offset().equals(e.offset()))return this.toLocalDateTime().compareTo(e.toLocalDateTime());var t=M.compareNumbers(this.toEpochSecond(),e.toEpochSecond());return 0===t&&0===(t=this.toLocalTime().nano()-e.toLocalTime().nano())&&(t=this.toLocalDateTime().compareTo(e.toLocalDateTime())),t}},{key:"isAfter",value:function(e){N(e,"other");var t=this.toEpochSecond(),n=e.toEpochSecond();return n<t||t===n&&this.toLocalTime().nano()>e.toLocalTime().nano()}},{key:"isBefore",value:function(e){N(e,"other");var t=this.toEpochSecond(),n=e.toEpochSecond();return t<n||t===n&&this.toLocalTime().nano()<e.toLocalTime().nano()}},{key:"isEqual",value:function(e){return N(e,"other"),this.toEpochSecond()===e.toEpochSecond()&&this.toLocalTime().nano()===e.toLocalTime().nano()}},{key:"equals",value:function(e){return this===e||e instanceof _&&(this._dateTime.equals(e._dateTime)&&this._offset.equals(e._offset))}},{key:"hashCode",value:function(){return this._dateTime.hashCode()^this._offset.hashCode()}},{key:"toString",value:function(){return this._dateTime.toString()+this._offset.toString()}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}}],[{key:"from",value:function(t){if(N(t,"temporal"),t instanceof _)return t;try{var n=Ee.from(t);try{var e=Gt.from(t);return _.of(e,n)}catch(e){var i=Jt.from(t);return _.ofInstant(i,n)}}catch(e){throw new T("Unable to obtain OffsetDateTime TemporalAccessor: ".concat(t,", type ").concat(null!=t.constructor?t.constructor.name:""))}}},{key:"now",value:function(e){if(0===arguments.length)return _.now(Qt.systemDefaultZone());if(N(e,"clockOrZone"),e instanceof fe)return _.now(Qt.system(e));if(e instanceof Qt){var t=e.instant();return _.ofInstant(t,e.zone().rules().offset(t))}throw new c("clockOrZone must be an instance of ZoneId or Clock")}},{key:"of",value:function(){return arguments.length<=2?_.ofDateTime.apply(this,arguments):3===arguments.length?_.ofDateAndTime.apply(this,arguments):_.ofNumbers.apply(this,arguments)}},{key:"ofDateTime",value:function(e,t){return new _(e,t)}},{key:"ofDateAndTime",value:function(e,t,n){return new _(Gt.of(e,t),n)}},{key:"ofNumbers",value:function(e,t,n,i,a,r,s,o){var u=3<arguments.length&&void 0!==i?i:0,l=4<arguments.length&&void 0!==a?a:0,h=5<arguments.length&&void 0!==r?r:0,c=6<arguments.length&&void 0!==s?s:0,f=7<arguments.length?o:void 0;return new _(Gt.of(e,t,n,u,l,h,c),f)}},{key:"ofInstant",value:function(e,t){N(e,"instant"),N(t,"zone");var n=t.rules().offset(e);return new _(Gt.ofEpochSecond(e.epochSecond(),e.nano(),n),n)}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_OFFSET_DATE_TIME;return N(n,"formatter"),n.parse(e,_.FROM)}}]),_}();var zt=146097,Kt=function(){p(h,le);var a=S(h);function h(e,t,n){var i;return f(this,h),i=a.call(this),N(e,"year"),N(t,"month"),N(n,"dayOfMonth"),t instanceof ee&&(t=t.value()),i._year=M.safeToInt(e),i._month=M.safeToInt(t),i._day=M.safeToInt(n),h._validate(i._year,i._month,i._day),i}return y(h,[{key:"isSupported",value:function(e){return m(d(h.prototype),"isSupported",this).call(this,e)}},{key:"range",value:function(e){if(e instanceof q){if(e.isDateBased()){switch(e){case q.DAY_OF_MONTH:return x.of(1,this.lengthOfMonth());case q.DAY_OF_YEAR:return x.of(1,this.lengthOfYear());case q.ALIGNED_WEEK_OF_MONTH:return x.of(1,this.month()===ee.FEBRUARY&&!1===this.isLeapYear()?4:5);case q.YEAR_OF_ERA:return this._year<=0?x.of(1,Yt.MAX_VALUE+1):x.of(1,Yt.MAX_VALUE)}return e.range()}throw new u("Unsupported field: ".concat(e))}return e.rangeRefinedBy(this)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){return k(null!=e,"",s),e instanceof q?this._get0(e):e.getFrom(this)}},{key:"_get0",value:function(e){switch(e){case q.DAY_OF_WEEK:return this.dayOfWeek().value();case q.ALIGNED_DAY_OF_WEEK_IN_MONTH:return M.intMod(this._day-1,7)+1;case q.ALIGNED_DAY_OF_WEEK_IN_YEAR:return M.intMod(this.dayOfYear()-1,7)+1;case q.DAY_OF_MONTH:return this._day;case q.DAY_OF_YEAR:return this.dayOfYear();case q.EPOCH_DAY:return this.toEpochDay();case q.ALIGNED_WEEK_OF_MONTH:return M.intDiv(this._day-1,7)+1;case q.ALIGNED_WEEK_OF_YEAR:return M.intDiv(this.dayOfYear()-1,7)+1;case q.MONTH_OF_YEAR:return this._month;case q.PROLEPTIC_MONTH:return this._prolepticMonth();case q.YEAR_OF_ERA:return 1<=this._year?this._year:1-this._year;case q.YEAR:return this._year;case q.ERA:return 1<=this._year?1:0}throw new u("Unsupported field: ".concat(e))}},{key:"_prolepticMonth",value:function(){return 12*this._year+(this._month-1)}},{key:"chronology",value:function(){return Wt.INSTANCE}},{key:"year",value:function(){return this._year}},{key:"monthValue",value:function(){return this._month}},{key:"month",value:function(){return ee.of(this._month)}},{key:"dayOfMonth",value:function(){return this._day}},{key:"dayOfYear",value:function(){return this.month().firstDayOfYear(this.isLeapYear())+this._day-1}},{key:"dayOfWeek",value:function(){var e=M.floorMod(this.toEpochDay()+3,7);return Q.of(e+1)}},{key:"isLeapYear",value:function(){return Wt.isLeapYear(this._year)}},{key:"lengthOfMonth",value:function(){switch(this._month){case 2:return this.isLeapYear()?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}},{key:"lengthOfYear",value:function(){return this.isLeapYear()?366:365}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),e instanceof h?e:m(d(h.prototype),"_withAdjuster",this).call(this,e)}},{key:"_withField",value:function(e,t){if(k(null!=e,"field",s),e instanceof q){var n=e;switch(n.checkValidValue(t),n){case q.DAY_OF_WEEK:return this.plusDays(t-this.dayOfWeek().value());case q.ALIGNED_DAY_OF_WEEK_IN_MONTH:return this.plusDays(t-this.getLong(q.ALIGNED_DAY_OF_WEEK_IN_MONTH));case q.ALIGNED_DAY_OF_WEEK_IN_YEAR:return this.plusDays(t-this.getLong(q.ALIGNED_DAY_OF_WEEK_IN_YEAR));case q.DAY_OF_MONTH:return this.withDayOfMonth(t);case q.DAY_OF_YEAR:return this.withDayOfYear(t);case q.EPOCH_DAY:return h.ofEpochDay(t);case q.ALIGNED_WEEK_OF_MONTH:return this.plusWeeks(t-this.getLong(q.ALIGNED_WEEK_OF_MONTH));case q.ALIGNED_WEEK_OF_YEAR:return this.plusWeeks(t-this.getLong(q.ALIGNED_WEEK_OF_YEAR));case q.MONTH_OF_YEAR:return this.withMonth(t);case q.PROLEPTIC_MONTH:return this.plusMonths(t-this.getLong(q.PROLEPTIC_MONTH));case q.YEAR_OF_ERA:return this.withYear(1<=this._year?t:1-t);case q.YEAR:return this.withYear(t);case q.ERA:return this.getLong(q.ERA)===t?this:this.withYear(1-this._year)}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"withYear",value:function(e){return this._year===e?this:(q.YEAR.checkValidValue(e),h._resolvePreviousValid(e,this._month,this._day))}},{key:"withMonth",value:function(e){var t=e instanceof ee?e.value():e;return this._month===t?this:(q.MONTH_OF_YEAR.checkValidValue(t),h._resolvePreviousValid(this._year,t,this._day))}},{key:"withDayOfMonth",value:function(e){return this._day===e?this:h.of(this._year,this._month,e)}},{key:"withDayOfYear",value:function(e){return this.dayOfYear()===e?this:h.ofYearDay(this._year,e)}},{key:"_plusUnit",value:function(e,t){if(N(e,"amountToAdd"),N(t,"unit"),t instanceof b){switch(t){case b.DAYS:return this.plusDays(e);case b.WEEKS:return this.plusWeeks(e);case b.MONTHS:return this.plusMonths(e);case b.YEARS:return this.plusYears(e);case b.DECADES:return this.plusYears(M.safeMultiply(e,10));case b.CENTURIES:return this.plusYears(M.safeMultiply(e,100));case b.MILLENNIA:return this.plusYears(M.safeMultiply(e,1e3));case b.ERAS:return this.with(q.ERA,M.safeAdd(this.getLong(q.ERA),e))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusYears",value:function(e){if(0===e)return this;var t=q.YEAR.checkValidIntValue(this._year+e);return h._resolvePreviousValid(t,this._month,this._day)}},{key:"plusMonths",value:function(e){if(0===e)return this;var t=12*this._year+(this._month-1)+e,n=q.YEAR.checkValidIntValue(M.floorDiv(t,12)),i=M.floorMod(t,12)+1;return h._resolvePreviousValid(n,i,this._day)}},{key:"plusWeeks",value:function(e){return this.plusDays(M.safeMultiply(e,7))}},{key:"plusDays",value:function(e){if(0===e)return this;var t=M.safeAdd(this.toEpochDay(),e);return h.ofEpochDay(t)}},{key:"_minusUnit",value:function(e,t){return N(e,"amountToSubtract"),N(t,"unit"),this._plusUnit(-1*e,t)}},{key:"minusYears",value:function(e){return this.plusYears(-1*e)}},{key:"minusMonths",value:function(e){return this.plusMonths(-1*e)}},{key:"minusWeeks",value:function(e){return this.plusWeeks(-1*e)}},{key:"minusDays",value:function(e){return this.plusDays(-1*e)}},{key:"query",value:function(e){return N(e,"query"),e===Z.localDate()?this:m(d(h.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return m(d(h.prototype),"adjustInto",this).call(this,e)}},{key:"until",value:function(e,t){return arguments.length<2?this.until1(e):this.until2(e,t)}},{key:"until2",value:function(e,t){var n=h.from(e);if(t instanceof b){switch(t){case b.DAYS:return this.daysUntil(n);case b.WEEKS:return M.intDiv(this.daysUntil(n),7);case b.MONTHS:return this._monthsUntil(n);case b.YEARS:return M.intDiv(this._monthsUntil(n),12);case b.DECADES:return M.intDiv(this._monthsUntil(n),120);case b.CENTURIES:return M.intDiv(this._monthsUntil(n),1200);case b.MILLENNIA:return M.intDiv(this._monthsUntil(n),12e3);case b.ERAS:return n.getLong(q.ERA)-this.getLong(q.ERA)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"daysUntil",value:function(e){return e.toEpochDay()-this.toEpochDay()}},{key:"_monthsUntil",value:function(e){var t=32*this._prolepticMonth()+this.dayOfMonth(),n=32*e._prolepticMonth()+e.dayOfMonth();return M.intDiv(n-t,32)}},{key:"until1",value:function(e){var t=h.from(e),n=t._prolepticMonth()-this._prolepticMonth(),i=t._day-this._day;if(0<n&&i<0){n--;var a=this.plusMonths(n);i=t.toEpochDay()-a.toEpochDay()}else n<0&&0<i&&(n++,i-=t.lengthOfMonth());var r=M.intDiv(n,12),s=M.intMod(n,12);return ne.of(r,s,i)}},{key:"atTime",value:function(){return 1===arguments.length?this.atTime1.apply(this,arguments):this.atTime4.apply(this,arguments)}},{key:"atTime1",value:function(e){if(N(e,"time"),e instanceof Xt)return Gt.of(this,e);if(e instanceof xt)return this._atTimeOffsetTime(e);throw new c("time must be an instance of LocalTime or OffsetTime".concat(e&&e.constructor&&e.constructor.name?", but is ".concat(e.constructor.name):""))}},{key:"atTime4",value:function(e,t,n,i){var a=2<arguments.length&&void 0!==n?n:0,r=3<arguments.length&&void 0!==i?i:0;return this.atTime1(Xt.of(e,t,a,r))}},{key:"_atTimeOffsetTime",value:function(e){return Zt.of(Gt.of(this,e.toLocalTime()),e.offset())}},{key:"atStartOfDay",value:function(e){return null!=e?this._atStartOfDayWithZone(e):Gt.of(this,Xt.MIDNIGHT)}},{key:"_atStartOfDayWithZone",value:function(e){N(e,"zone");var t=this.atTime(Xt.MIDNIGHT);if(e instanceof Ee==!1){var n=e.rules().transition(t);null!=n&&n.isGap()&&(t=n.dateTimeAfter())}return qt.of(t,e)}},{key:"toEpochDay",value:function(){var e=this._year,t=this._month,n=0;return n+=365*e,0<=e?n+=M.intDiv(e+3,4)-M.intDiv(e+99,100)+M.intDiv(e+399,400):n-=M.intDiv(e,-4)-M.intDiv(e,-100)+M.intDiv(e,-400),n+=M.intDiv(367*t-362,12),n+=this.dayOfMonth()-1,2<t&&(n--,Wt.isLeapYear(e)||n--),n-719528}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,h,"other"),this._compareTo0(e)}},{key:"_compareTo0",value:function(e){var t=this._year-e._year;return 0===t&&0===(t=this._month-e._month)&&(t=this._day-e._day),t}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"isEqual",value:function(e){return 0===this.compareTo(e)}},{key:"equals",value:function(e){return this===e||e instanceof h&&0===this._compareTo0(e)}},{key:"hashCode",value:function(){var e=this._year,t=this._month,n=this._day;return M.hash(4294965248&e^(e<<11)+(t<<6)+n)}},{key:"toString",value:function(){var e=this._year,t=this._month,n=this._day;return(Math.abs(e)<1e3?e<0?"-".concat("".concat(e-1e4).slice(-4)):"".concat(e+1e4).slice(-4):9999<e?"+".concat(e):"".concat(e))+(t<10?"-0".concat(t):"-".concat(t))+(n<10?"-0".concat(n):"-".concat(n))}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),D(e,Tt,"formatter"),m(d(h.prototype),"format",this).call(this,e)}}],[{key:"now",value:function(e){var t;return t=null==e?Qt.systemDefaultZone():e instanceof fe?Qt.system(e):e,h.ofInstant(t.instant(),t.zone())}},{key:"ofInstant",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:fe.systemDefault();N(e,"instant");var i=n.rules().offset(e),a=e.epochSecond()+i.totalSeconds(),r=M.floorDiv(a,Xt.SECONDS_PER_DAY);return h.ofEpochDay(r)}},{key:"of",value:function(e,t,n){return new h(e,t,n)}},{key:"ofYearDay",value:function(e,t){q.YEAR.checkValidValue(e);var n=Wt.isLeapYear(e);366===t&&!1===n&&k(!1,"Invalid date 'DayOfYear 366' as '".concat(e,"' is not a leap year"),T);var i=ee.of(Math.floor((t-1)/31+1));i.firstDayOfYear(n)+i.length(n)-1<t&&(i=i.plus(1));var a=t-i.firstDayOfYear(n)+1;return new h(e,i.value(),a)}},{key:"ofEpochDay",value:function(e){var t,n,i,a,r;r=(0<arguments.length&&void 0!==e?e:0)+719528,(r-=60)<(t=0)&&(t=400*(n=M.intDiv(r+1,zt)-1),r+=-n*zt),(i=r-(365*(a=M.intDiv(400*r+591,zt))+M.intDiv(a,4)-M.intDiv(a,100)+M.intDiv(a,400)))<0&&(i=r-(365*--a+M.intDiv(a,4)-M.intDiv(a,100)+M.intDiv(a,400))),a+=t;var s=i,o=M.intDiv(5*s+2,153),u=(o+2)%12+1,l=s-M.intDiv(306*o+5,10)+1;return new h(a+=M.intDiv(o,10),u,l)}},{key:"from",value:function(e){N(e,"temporal");var t=e.query(Z.localDate());if(null==t)throw new T("Unable to obtain LocalDate from TemporalAccessor: ".concat(e,", type ").concat(null!=e.constructor?e.constructor.name:""));return t}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_LOCAL_DATE;return k(null!=n,"formatter",s),n.parse(e,h.FROM)}},{key:"_resolvePreviousValid",value:function(e,t,n){switch(t){case 2:n=Math.min(n,Wt.isLeapYear(e)?29:28);break;case 4:case 6:case 9:case 11:n=Math.min(n,30)}return h.of(e,t,n)}},{key:"_validate",value:function(e,t,n){var i;if(q.YEAR.checkValidValue(e),q.MONTH_OF_YEAR.checkValidValue(t),q.DAY_OF_MONTH.checkValidValue(n),28<n){switch(i=31,t){case 2:i=Wt.isLeapYear(e)?29:28;break;case 4:case 6:case 9:case 11:i=30}i<n&&k(!1,29===n?"Invalid date 'February 29' as '".concat(e,"' is not a leap year"):"Invalid date '".concat(e,"' '").concat(t,"' '").concat(n,"'"),T)}}}]),h}();var jt=function(){p(t,ue);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"chronology",value:function(){return this.toLocalDate().chronology()}},{key:"query",value:function(e){return e===Z.chronology()?this.chronology():e===Z.precision()?b.NANOS:e===Z.localDate()?Kt.ofEpochDay(this.toLocalDate().toEpochDay()):e===Z.localTime()?this.toLocalTime():e===Z.zone()||e===Z.zoneId()||e===Z.offset()?null:m(d(t.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return e.with(q.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(q.NANO_OF_DAY,this.toLocalTime().toNanoOfDay())}},{key:"toInstant",value:function(e){return D(e,Ee,"zoneId"),Jt.ofEpochSecond(this.toEpochSecond(e),this.toLocalTime().nano())}},{key:"toEpochSecond",value:function(e){N(e,"offset");var t=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return t-=e.totalSeconds(),M.safeToInt(t)}}]),t}(),Gt=function(){p(c,jt);var i=S(c);function c(e,t){var n;return f(this,c),n=i.call(this),D(e,Kt,"date"),D(t,Xt,"time"),n._date=e,n._time=t,n}return y(c,[{key:"_withDateTime",value:function(e,t){return this._date.equals(e)&&this._time.equals(t)?this:new c(e,t)}},{key:"isSupported",value:function(e){return e instanceof q?e.isDateBased()||e.isTimeBased():e instanceof b?e.isDateBased()||e.isTimeBased():null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return e instanceof q?e.isTimeBased()?this._time.range(e):this._date.range(e):e.rangeRefinedBy(this)}},{key:"get",value:function(e){return e instanceof q?e.isTimeBased()?this._time.get(e):this._date.get(e):m(d(c.prototype),"get",this).call(this,e)}},{key:"getLong",value:function(e){return N(e,"field"),e instanceof q?e.isTimeBased()?this._time.getLong(e):this._date.getLong(e):e.getFrom(this)}},{key:"year",value:function(){return this._date.year()}},{key:"monthValue",value:function(){return this._date.monthValue()}},{key:"month",value:function(){return this._date.month()}},{key:"dayOfMonth",value:function(){return this._date.dayOfMonth()}},{key:"dayOfYear",value:function(){return this._date.dayOfYear()}},{key:"dayOfWeek",value:function(){return this._date.dayOfWeek()}},{key:"hour",value:function(){return this._time.hour()}},{key:"minute",value:function(){return this._time.minute()}},{key:"second",value:function(){return this._time.second()}},{key:"nano",value:function(){return this._time.nano()}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),e instanceof Kt?this._withDateTime(e,this._time):e instanceof Xt?this._withDateTime(this._date,e):e instanceof c?e:m(d(c.prototype),"_withAdjuster",this).call(this,e)}},{key:"_withField",value:function(e,t){return N(e,"field"),e instanceof q?e.isTimeBased()?this._withDateTime(this._date,this._time.with(e,t)):this._withDateTime(this._date.with(e,t),this._time):e.adjustInto(this,t)}},{key:"withYear",value:function(e){return this._withDateTime(this._date.withYear(e),this._time)}},{key:"withMonth",value:function(e){return this._withDateTime(this._date.withMonth(e),this._time)}},{key:"withDayOfMonth",value:function(e){return this._withDateTime(this._date.withDayOfMonth(e),this._time)}},{key:"withDayOfYear",value:function(e){return this._withDateTime(this._date.withDayOfYear(e),this._time)}},{key:"withHour",value:function(e){var t=this._time.withHour(e);return this._withDateTime(this._date,t)}},{key:"withMinute",value:function(e){var t=this._time.withMinute(e);return this._withDateTime(this._date,t)}},{key:"withSecond",value:function(e){var t=this._time.withSecond(e);return this._withDateTime(this._date,t)}},{key:"withNano",value:function(e){var t=this._time.withNano(e);return this._withDateTime(this._date,t)}},{key:"truncatedTo",value:function(e){return this._withDateTime(this._date,this._time.truncatedTo(e))}},{key:"_plusUnit",value:function(e,t){if(N(t,"unit"),t instanceof b){switch(t){case b.NANOS:return this.plusNanos(e);case b.MICROS:return this.plusDays(M.intDiv(e,Xt.MICROS_PER_DAY)).plusNanos(1e3*M.intMod(e,Xt.MICROS_PER_DAY));case b.MILLIS:return this.plusDays(M.intDiv(e,Xt.MILLIS_PER_DAY)).plusNanos(1e6*M.intMod(e,Xt.MILLIS_PER_DAY));case b.SECONDS:return this.plusSeconds(e);case b.MINUTES:return this.plusMinutes(e);case b.HOURS:return this.plusHours(e);case b.HALF_DAYS:return this.plusDays(M.intDiv(e,256)).plusHours(12*M.intMod(e,256))}return this._withDateTime(this._date.plus(e,t),this._time)}return t.addTo(this,e)}},{key:"plusYears",value:function(e){var t=this._date.plusYears(e);return this._withDateTime(t,this._time)}},{key:"plusMonths",value:function(e){var t=this._date.plusMonths(e);return this._withDateTime(t,this._time)}},{key:"plusWeeks",value:function(e){var t=this._date.plusWeeks(e);return this._withDateTime(t,this._time)}},{key:"plusDays",value:function(e){var t=this._date.plusDays(e);return this._withDateTime(t,this._time)}},{key:"plusHours",value:function(e){return this._plusWithOverflow(this._date,e,0,0,0,1)}},{key:"plusMinutes",value:function(e){return this._plusWithOverflow(this._date,0,e,0,0,1)}},{key:"plusSeconds",value:function(e){return this._plusWithOverflow(this._date,0,0,e,0,1)}},{key:"plusNanos",value:function(e){return this._plusWithOverflow(this._date,0,0,0,e,1)}},{key:"_minusUnit",value:function(e,t){return N(t,"unit"),this._plusUnit(-1*e,t)}},{key:"minusYears",value:function(e){return this.plusYears(-1*e)}},{key:"minusMonths",value:function(e){return this.plusMonths(-1*e)}},{key:"minusWeeks",value:function(e){return this.plusWeeks(-1*e)}},{key:"minusDays",value:function(e){return this.plusDays(-1*e)}},{key:"minusHours",value:function(e){return this._plusWithOverflow(this._date,e,0,0,0,-1)}},{key:"minusMinutes",value:function(e){return this._plusWithOverflow(this._date,0,e,0,0,-1)}},{key:"minusSeconds",value:function(e){return this._plusWithOverflow(this._date,0,0,e,0,-1)}},{key:"minusNanos",value:function(e){return this._plusWithOverflow(this._date,0,0,0,e,-1)}},{key:"_plusWithOverflow",value:function(e,t,n,i,a,r){if(0===t&&0===n&&0===i&&0===a)return this._withDateTime(e,this._time);var s=M.intDiv(a,Xt.NANOS_PER_DAY)+M.intDiv(i,Xt.SECONDS_PER_DAY)+M.intDiv(n,Xt.MINUTES_PER_DAY)+M.intDiv(t,Xt.HOURS_PER_DAY);s*=r;var o=M.intMod(a,Xt.NANOS_PER_DAY)+M.intMod(i,Xt.SECONDS_PER_DAY)*Xt.NANOS_PER_SECOND+M.intMod(n,Xt.MINUTES_PER_DAY)*Xt.NANOS_PER_MINUTE+M.intMod(t,Xt.HOURS_PER_DAY)*Xt.NANOS_PER_HOUR,u=this._time.toNanoOfDay();o=o*r+u,s+=M.floorDiv(o,Xt.NANOS_PER_DAY);var l=M.floorMod(o,Xt.NANOS_PER_DAY),h=l===u?this._time:Xt.ofNanoOfDay(l);return this._withDateTime(e.plusDays(s),h)}},{key:"query",value:function(e){return N(e,"query"),e===Z.localDate()?this.toLocalDate():m(d(c.prototype),"query",this).call(this,e)}},{key:"adjustInto",value:function(e){return m(d(c.prototype),"adjustInto",this).call(this,e)}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit");var n=c.from(e);if(t instanceof b){if(t.isTimeBased()){var i=this._date.daysUntil(n._date),a=n._time.toNanoOfDay()-this._time.toNanoOfDay();0<i&&a<0?(i--,a+=Xt.NANOS_PER_DAY):i<0&&0<a&&(i++,a-=Xt.NANOS_PER_DAY);var r=i;switch(t){case b.NANOS:return r=M.safeMultiply(r,Xt.NANOS_PER_DAY),M.safeAdd(r,a);case b.MICROS:return r=M.safeMultiply(r,Xt.MICROS_PER_DAY),M.safeAdd(r,M.intDiv(a,1e3));case b.MILLIS:return r=M.safeMultiply(r,Xt.MILLIS_PER_DAY),M.safeAdd(r,M.intDiv(a,1e6));case b.SECONDS:return r=M.safeMultiply(r,Xt.SECONDS_PER_DAY),M.safeAdd(r,M.intDiv(a,Xt.NANOS_PER_SECOND));case b.MINUTES:return r=M.safeMultiply(r,Xt.MINUTES_PER_DAY),M.safeAdd(r,M.intDiv(a,Xt.NANOS_PER_MINUTE));case b.HOURS:return r=M.safeMultiply(r,Xt.HOURS_PER_DAY),M.safeAdd(r,M.intDiv(a,Xt.NANOS_PER_HOUR));case b.HALF_DAYS:return r=M.safeMultiply(r,2),M.safeAdd(r,M.intDiv(a,12*Xt.NANOS_PER_HOUR))}throw new u("Unsupported unit: ".concat(t))}var s=n._date,o=n._time;return s.isAfter(this._date)&&o.isBefore(this._time)?s=s.minusDays(1):s.isBefore(this._date)&&o.isAfter(this._time)&&(s=s.plusDays(1)),this._date.until(s,t)}return t.between(this,n)}},{key:"atOffset",value:function(e){return Zt.of(this,e)}},{key:"atZone",value:function(e){return qt.of(this,e)}},{key:"toLocalDate",value:function(){return this._date}},{key:"toLocalTime",value:function(){return this._time}},{key:"compareTo",value:function(e){return N(e,"other"),D(e,c,"other"),this._compareTo0(e)}},{key:"_compareTo0",value:function(e){var t=this._date.compareTo(e.toLocalDate());return 0===t&&(t=this._time.compareTo(e.toLocalTime())),t}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"isEqual",value:function(e){return 0===this.compareTo(e)}},{key:"equals",value:function(e){return this===e||e instanceof c&&(this._date.equals(e._date)&&this._time.equals(e._time))}},{key:"hashCode",value:function(){return this._date.hashCode()^this._time.hashCode()}},{key:"toString",value:function(){return"".concat(this._date.toString(),"T").concat(this._time.toString())}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}}],[{key:"now",value:function(e){return c._now(null==e?Qt.systemDefaultZone():e instanceof Qt?e:Qt.system(e))}},{key:"_now",value:function(e){return N(e,"clock"),c.ofInstant(e.instant(),e.zone())}},{key:"_ofEpochMillis",value:function(e,t){var n=M.floorDiv(e,1e3)+t.totalSeconds(),i=M.floorDiv(n,Xt.SECONDS_PER_DAY),a=M.floorMod(n,Xt.SECONDS_PER_DAY),r=1e6*M.floorMod(e,1e3);return new c(Kt.ofEpochDay(i),Xt.ofSecondOfDay(a,r))}},{key:"of",value:function(){return arguments.length<=2?c.ofDateAndTime.apply(this,arguments):c.ofNumbers.apply(this,arguments)}},{key:"ofNumbers",value:function(e,t,n,i,a,r,s){var o=3<arguments.length&&void 0!==i?i:0,u=4<arguments.length&&void 0!==a?a:0,l=5<arguments.length&&void 0!==r?r:0,h=6<arguments.length&&void 0!==s?s:0;return new c(Kt.of(e,t,n),Xt.of(o,u,l,h))}},{key:"ofDateAndTime",value:function(e,t){return N(e,"date"),N(t,"time"),new c(e,t)}},{key:"ofInstant",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:fe.systemDefault();N(e,"instant"),D(e,Jt,"instant"),N(n,"zone");var i=n.rules().offset(e);return c.ofEpochSecond(e.epochSecond(),e.nano(),i)}},{key:"ofEpochSecond",value:function(e,t,n){var i=0<arguments.length&&void 0!==e?e:0,a=1<arguments.length&&void 0!==t?t:0,r=2<arguments.length?n:void 0;2===arguments.length&&a instanceof Ee&&(r=a,a=0),N(r,"offset");var s=i+r.totalSeconds(),o=M.floorDiv(s,Xt.SECONDS_PER_DAY),u=M.floorMod(s,Xt.SECONDS_PER_DAY);return new c(Kt.ofEpochDay(o),Xt.ofSecondOfDay(u,a))}},{key:"from",value:function(t){if(N(t,"temporal"),t instanceof c)return t;if(t instanceof qt)return t.toLocalDateTime();try{return new c(Kt.from(t),Xt.from(t))}catch(e){throw new T("Unable to obtain LocalDateTime TemporalAccessor: ".concat(t,", type ").concat(null!=t.constructor?t.constructor.name:""))}}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_LOCAL_DATE_TIME;return N(n,"formatter"),n.parse(e,c.FROM)}}]),c}();var Xt=function(){p(h,ue);var l=S(h);function h(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;f(this,h),e=l.call(this);var r=M.safeToInt(t),s=M.safeToInt(n),o=M.safeToInt(i),u=M.safeToInt(a);return h._validate(r,s,o,u),0===s&&0===o&&0===u?(h.HOURS[r]||(e._hour=r,e._minute=s,e._second=o,e._nano=u,h.HOURS[r]=_(e)),E(e,h.HOURS[r])):(e._hour=r,e._minute=s,e._second=o,e._nano=u,e)}return y(h,[{key:"isSupported",value:function(e){return e instanceof q?e.isTimeBased():e instanceof b?e.isTimeBased():null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return N(e),m(d(h.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){return N(e,"field"),e instanceof q?this._get0(e):e.getFrom(this)}},{key:"_get0",value:function(e){switch(e){case q.NANO_OF_SECOND:return this._nano;case q.NANO_OF_DAY:return this.toNanoOfDay();case q.MICRO_OF_SECOND:return M.intDiv(this._nano,1e3);case q.MICRO_OF_DAY:return M.intDiv(this.toNanoOfDay(),1e3);case q.MILLI_OF_SECOND:return M.intDiv(this._nano,1e6);case q.MILLI_OF_DAY:return M.intDiv(this.toNanoOfDay(),1e6);case q.SECOND_OF_MINUTE:return this._second;case q.SECOND_OF_DAY:return this.toSecondOfDay();case q.MINUTE_OF_HOUR:return this._minute;case q.MINUTE_OF_DAY:return 60*this._hour+this._minute;case q.HOUR_OF_AMPM:return M.intMod(this._hour,12);case q.CLOCK_HOUR_OF_AMPM:var t=M.intMod(this._hour,12);return t%12==0?12:t;case q.HOUR_OF_DAY:return this._hour;case q.CLOCK_HOUR_OF_DAY:return 0===this._hour?24:this._hour;case q.AMPM_OF_DAY:return M.intDiv(this._hour,12)}throw new u("Unsupported field: ".concat(e))}},{key:"hour",value:function(){return this._hour}},{key:"minute",value:function(){return this._minute}},{key:"second",value:function(){return this._second}},{key:"nano",value:function(){return this._nano}},{key:"_withAdjuster",value:function(e){return N(e,"adjuster"),e instanceof h?e:m(d(h.prototype),"_withAdjuster",this).call(this,e)}},{key:"_withField",value:function(e,t){if(N(e,"field"),D(e,H,"field"),e instanceof q){switch(e.checkValidValue(t),e){case q.NANO_OF_SECOND:return this.withNano(t);case q.NANO_OF_DAY:return h.ofNanoOfDay(t);case q.MICRO_OF_SECOND:return this.withNano(1e3*t);case q.MICRO_OF_DAY:return h.ofNanoOfDay(1e3*t);case q.MILLI_OF_SECOND:return this.withNano(1e6*t);case q.MILLI_OF_DAY:return h.ofNanoOfDay(1e6*t);case q.SECOND_OF_MINUTE:return this.withSecond(t);case q.SECOND_OF_DAY:return this.plusSeconds(t-this.toSecondOfDay());case q.MINUTE_OF_HOUR:return this.withMinute(t);case q.MINUTE_OF_DAY:return this.plusMinutes(t-(60*this._hour+this._minute));case q.HOUR_OF_AMPM:return this.plusHours(t-M.intMod(this._hour,12));case q.CLOCK_HOUR_OF_AMPM:return this.plusHours((12===t?0:t)-M.intMod(this._hour,12));case q.HOUR_OF_DAY:return this.withHour(t);case q.CLOCK_HOUR_OF_DAY:return this.withHour(24===t?0:t);case q.AMPM_OF_DAY:return this.plusHours(12*(t-M.intDiv(this._hour,12)))}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"withHour",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this._hour===t?this:new h(t,this._minute,this._second,this._nano)}},{key:"withMinute",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this._minute===t?this:new h(this._hour,t,this._second,this._nano)}},{key:"withSecond",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this._second===t?this:new h(this._hour,this._minute,t,this._nano)}},{key:"withNano",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;return this._nano===t?this:new h(this._hour,this._minute,this._second,t)}},{key:"truncatedTo",value:function(e){if(N(e,"unit"),e===b.NANOS)return this;var t=e.duration();if(t.seconds()>h.SECONDS_PER_DAY)throw new T("Unit is too large to be used for truncation");var n=t.toNanos();if(0!==M.intMod(h.NANOS_PER_DAY,n))throw new T("Unit must divide into a standard day without remainder");var i=this.toNanoOfDay();return h.ofNanoOfDay(M.intDiv(i,n)*n)}},{key:"_plusUnit",value:function(e,t){if(N(t,"unit"),t instanceof b){switch(t){case b.NANOS:return this.plusNanos(e);case b.MICROS:return this.plusNanos(1e3*M.intMod(e,h.MICROS_PER_DAY));case b.MILLIS:return this.plusNanos(1e6*M.intMod(e,h.MILLIS_PER_DAY));case b.SECONDS:return this.plusSeconds(e);case b.MINUTES:return this.plusMinutes(e);case b.HOURS:return this.plusHours(e);case b.HALF_DAYS:return this.plusHours(12*M.intMod(e,2))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusHours",value:function(e){return 0===e?this:new h(M.intMod(M.intMod(e,h.HOURS_PER_DAY)+this._hour+h.HOURS_PER_DAY,h.HOURS_PER_DAY),this._minute,this._second,this._nano)}},{key:"plusMinutes",value:function(e){if(0===e)return this;var t=this._hour*h.MINUTES_PER_HOUR+this._minute,n=M.intMod(M.intMod(e,h.MINUTES_PER_DAY)+t+h.MINUTES_PER_DAY,h.MINUTES_PER_DAY);return t===n?this:new h(M.intDiv(n,h.MINUTES_PER_HOUR),M.intMod(n,h.MINUTES_PER_HOUR),this._second,this._nano)}},{key:"plusSeconds",value:function(e){if(0===e)return this;var t=this._hour*h.SECONDS_PER_HOUR+this._minute*h.SECONDS_PER_MINUTE+this._second,n=M.intMod(M.intMod(e,h.SECONDS_PER_DAY)+t+h.SECONDS_PER_DAY,h.SECONDS_PER_DAY);return t===n?this:new h(M.intDiv(n,h.SECONDS_PER_HOUR),M.intMod(M.intDiv(n,h.SECONDS_PER_MINUTE),h.MINUTES_PER_HOUR),M.intMod(n,h.SECONDS_PER_MINUTE),this._nano)}},{key:"plusNanos",value:function(e){if(0===e)return this;var t=this.toNanoOfDay(),n=M.intMod(M.intMod(e,h.NANOS_PER_DAY)+t+h.NANOS_PER_DAY,h.NANOS_PER_DAY);return t===n?this:new h(M.intDiv(n,h.NANOS_PER_HOUR),M.intMod(M.intDiv(n,h.NANOS_PER_MINUTE),h.MINUTES_PER_HOUR),M.intMod(M.intDiv(n,h.NANOS_PER_SECOND),h.SECONDS_PER_MINUTE),M.intMod(n,h.NANOS_PER_SECOND))}},{key:"_minusUnit",value:function(e,t){return N(t,"unit"),this._plusUnit(-1*e,t)}},{key:"minusHours",value:function(e){return this.plusHours(-1*M.intMod(e,h.HOURS_PER_DAY))}},{key:"minusMinutes",value:function(e){return this.plusMinutes(-1*M.intMod(e,h.MINUTES_PER_DAY))}},{key:"minusSeconds",value:function(e){return this.plusSeconds(-1*M.intMod(e,h.SECONDS_PER_DAY))}},{key:"minusNanos",value:function(e){return this.plusNanos(-1*M.intMod(e,h.NANOS_PER_DAY))}},{key:"query",value:function(e){return N(e,"query"),e===Z.precision()?b.NANOS:e===Z.localTime()?this:e===Z.chronology()||e===Z.zoneId()||e===Z.zone()||e===Z.offset()||e===Z.localDate()?null:e.queryFrom(this)}},{key:"adjustInto",value:function(e){return e.with(h.NANO_OF_DAY,this.toNanoOfDay())}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit");var n=h.from(e);if(t instanceof b){var i=n.toNanoOfDay()-this.toNanoOfDay();switch(t){case b.NANOS:return i;case b.MICROS:return M.intDiv(i,1e3);case b.MILLIS:return M.intDiv(i,1e6);case b.SECONDS:return M.intDiv(i,h.NANOS_PER_SECOND);case b.MINUTES:return M.intDiv(i,h.NANOS_PER_MINUTE);case b.HOURS:return M.intDiv(i,h.NANOS_PER_HOUR);case b.HALF_DAYS:return M.intDiv(i,12*h.NANOS_PER_HOUR)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"atDate",value:function(e){return Gt.of(e,this)}},{key:"atOffset",value:function(e){return xt.of(this,e)}},{key:"toSecondOfDay",value:function(){var e=this._hour*h.SECONDS_PER_HOUR;return e+=this._minute*h.SECONDS_PER_MINUTE,e+=this._second}},{key:"toNanoOfDay",value:function(){var e=this._hour*h.NANOS_PER_HOUR;return e+=this._minute*h.NANOS_PER_MINUTE,e+=this._second*h.NANOS_PER_SECOND,e+=this._nano}},{key:"compareTo",value:function(e){N(e,"other"),D(e,h,"other");var t=M.compareNumbers(this._hour,e._hour);return 0===t&&0===(t=M.compareNumbers(this._minute,e._minute))&&0===(t=M.compareNumbers(this._second,e._second))&&(t=M.compareNumbers(this._nano,e._nano)),t}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"equals",value:function(e){return this===e||e instanceof h&&(this._hour===e._hour&&this._minute===e._minute&&this._second===e._second&&this._nano===e._nano)}},{key:"hashCode",value:function(){var e=this.toNanoOfDay();return M.hash(e)}},{key:"toString",value:function(){var e="",t=this._hour,n=this._minute,i=this._second,a=this._nano;return e+=t<10?"0":"",e+=t,e+=n<10?":0":":",e+=n,(0<i||0<a)&&(e+=i<10?":0":":",e+=i,0<a&&(e+=".",0===M.intMod(a,1e6)?e+="".concat(M.intDiv(a,1e6)+1e3).substring(1):0===M.intMod(a,1e3)?e+="".concat(M.intDiv(a,1e3)+1e6).substring(1):e+="".concat(a+1e9).substring(1))),e}},{key:"toJSON",value:function(){return this.toString()}},{key:"format",value:function(e){return N(e,"formatter"),e.format(this)}}],[{key:"now",value:function(e){return h._now(null==e?Qt.systemDefaultZone():e instanceof Qt?e:Qt.system(e))}},{key:"_now",value:function(e){var t=0<arguments.length&&void 0!==e?e:Qt.systemDefaultZone();return N(t,"clock"),h.ofInstant(t.instant(),t.zone())}},{key:"ofInstant",value:function(e,t){var n=(1<arguments.length&&void 0!==t?t:fe.systemDefault()).rules().offset(e),i=M.intMod(e.epochSecond(),h.SECONDS_PER_DAY);return(i=M.intMod(i+n.totalSeconds(),h.SECONDS_PER_DAY))<0&&(i+=h.SECONDS_PER_DAY),h.ofSecondOfDay(i,e.nano())}},{key:"of",value:function(e,t,n,i){return new h(e,t,n,i)}},{key:"ofSecondOfDay",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,i=1<arguments.length&&void 0!==t?t:0;q.SECOND_OF_DAY.checkValidValue(n),q.NANO_OF_SECOND.checkValidValue(i);var a=M.intDiv(n,h.SECONDS_PER_HOUR);n-=a*h.SECONDS_PER_HOUR;var r=M.intDiv(n,h.SECONDS_PER_MINUTE);return new h(a,r,n-=r*h.SECONDS_PER_MINUTE,i)}},{key:"ofNanoOfDay",value:function(e){var t=0<arguments.length&&void 0!==e?e:0;q.NANO_OF_DAY.checkValidValue(t);var n=M.intDiv(t,h.NANOS_PER_HOUR);t-=n*h.NANOS_PER_HOUR;var i=M.intDiv(t,h.NANOS_PER_MINUTE);t-=i*h.NANOS_PER_MINUTE;var a=M.intDiv(t,h.NANOS_PER_SECOND);return new h(n,i,a,t-=a*h.NANOS_PER_SECOND)}},{key:"from",value:function(e){N(e,"temporal");var t=e.query(Z.localTime());if(null==t)throw new T("Unable to obtain LocalTime TemporalAccessor: ".concat(e,", type ").concat(null!=e.constructor?e.constructor.name:""));return t}},{key:"parse",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:Tt.ISO_LOCAL_TIME;return N(n,"formatter"),n.parse(e,h.FROM)}},{key:"_validate",value:function(e,t,n,i){q.HOUR_OF_DAY.checkValidValue(e),q.MINUTE_OF_HOUR.checkValidValue(t),q.SECOND_OF_MINUTE.checkValidValue(n),q.NANO_OF_SECOND.checkValidValue(i)}}]),h}();Xt.HOURS_PER_DAY=24,Xt.MINUTES_PER_HOUR=60,Xt.MINUTES_PER_DAY=Xt.MINUTES_PER_HOUR*Xt.HOURS_PER_DAY,Xt.SECONDS_PER_MINUTE=60,Xt.SECONDS_PER_HOUR=Xt.SECONDS_PER_MINUTE*Xt.MINUTES_PER_HOUR,Xt.SECONDS_PER_DAY=Xt.SECONDS_PER_HOUR*Xt.HOURS_PER_DAY,Xt.MILLIS_PER_DAY=1e3*Xt.SECONDS_PER_DAY,Xt.MICROS_PER_DAY=1e6*Xt.SECONDS_PER_DAY,Xt.NANOS_PER_SECOND=1e9,Xt.NANOS_PER_MINUTE=Xt.NANOS_PER_SECOND*Xt.SECONDS_PER_MINUTE,Xt.NANOS_PER_HOUR=Xt.NANOS_PER_MINUTE*Xt.MINUTES_PER_HOUR,Xt.NANOS_PER_DAY=Xt.NANOS_PER_HOUR*Xt.HOURS_PER_DAY;var Jt=function(){p(r,ue);var i=S(r);function r(e,t){var n;return f(this,r),n=i.call(this),r._validate(e,t),n._seconds=M.safeToInt(e),n._nanos=M.safeToInt(t),n}return y(r,[{key:"isSupported",value:function(e){return e instanceof q?e===q.INSTANT_SECONDS||e===q.NANO_OF_SECOND||e===q.MICRO_OF_SECOND||e===q.MILLI_OF_SECOND:e instanceof b?e.isTimeBased()||e===b.DAYS:null!=e&&e.isSupportedBy(this)}},{key:"range",value:function(e){return m(d(r.prototype),"range",this).call(this,e)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){if(e instanceof q){switch(e){case q.NANO_OF_SECOND:return this._nanos;case q.MICRO_OF_SECOND:return M.intDiv(this._nanos,1e3);case q.MILLI_OF_SECOND:return M.intDiv(this._nanos,1e6);case q.INSTANT_SECONDS:return this._seconds}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"epochSecond",value:function(){return this._seconds}},{key:"nano",value:function(){return this._nanos}},{key:"_withField",value:function(e,t){if(N(e,"field"),e instanceof q){switch(e.checkValidValue(t),e){case q.MILLI_OF_SECOND:var n=1e6*t;return n!==this._nanos?r._create(this._seconds,n):this;case q.MICRO_OF_SECOND:var i=1e3*t;return i!==this._nanos?r._create(this._seconds,i):this;case q.NANO_OF_SECOND:return t!==this._nanos?r._create(this._seconds,t):this;case q.INSTANT_SECONDS:return t!==this._seconds?r._create(t,this._nanos):this}throw new u("Unsupported field: ".concat(e))}return e.adjustInto(this,t)}},{key:"truncatedTo",value:function(e){if(N(e,"unit"),e===b.NANOS)return this;var t=e.duration();if(t.seconds()>Xt.SECONDS_PER_DAY)throw new T("Unit is too large to be used for truncation");var n=t.toNanos();if(0!==M.intMod(Xt.NANOS_PER_DAY,n))throw new T("Unit must divide into a standard day without remainder");var i=M.intMod(this._seconds,Xt.SECONDS_PER_DAY)*Xt.NANOS_PER_SECOND+this._nanos,a=M.intDiv(i,n)*n;return this.plusNanos(a-i)}},{key:"_plusUnit",value:function(e,t){if(N(e,"amountToAdd"),N(t,"unit"),D(t,L),t instanceof b){switch(t){case b.NANOS:return this.plusNanos(e);case b.MICROS:return this._plus(M.intDiv(e,1e6),1e3*M.intMod(e,1e6));case b.MILLIS:return this.plusMillis(e);case b.SECONDS:return this.plusSeconds(e);case b.MINUTES:return this.plusSeconds(M.safeMultiply(e,Xt.SECONDS_PER_MINUTE));case b.HOURS:return this.plusSeconds(M.safeMultiply(e,Xt.SECONDS_PER_HOUR));case b.HALF_DAYS:return this.plusSeconds(M.safeMultiply(e,Xt.SECONDS_PER_DAY/2));case b.DAYS:return this.plusSeconds(M.safeMultiply(e,Xt.SECONDS_PER_DAY))}throw new u("Unsupported unit: ".concat(t))}return t.addTo(this,e)}},{key:"plusSeconds",value:function(e){return this._plus(e,0)}},{key:"plusMillis",value:function(e){return this._plus(M.intDiv(e,1e3),1e6*M.intMod(e,1e3))}},{key:"plusNanos",value:function(e){return this._plus(0,e)}},{key:"_plus",value:function(e,t){if(0===e&&0===t)return this;var n=this._seconds+e;n+=M.intDiv(t,Xt.NANOS_PER_SECOND);var i=this._nanos+t%Xt.NANOS_PER_SECOND;return r.ofEpochSecond(n,i)}},{key:"_minusUnit",value:function(e,t){return this._plusUnit(-1*e,t)}},{key:"minusSeconds",value:function(e){return this.plusSeconds(-1*e)}},{key:"minusMillis",value:function(e){return this.plusMillis(-1*e)}},{key:"minusNanos",value:function(e){return this.plusNanos(-1*e)}},{key:"query",value:function(e){return N(e,"query"),e===Z.precision()?b.NANOS:e===Z.localDate()||e===Z.localTime()||e===Z.chronology()||e===Z.zoneId()||e===Z.zone()||e===Z.offset()?null:e.queryFrom(this)}},{key:"adjustInto",value:function(e){return N(e,"temporal"),e.with(q.INSTANT_SECONDS,this._seconds).with(q.NANO_OF_SECOND,this._nanos)}},{key:"until",value:function(e,t){N(e,"endExclusive"),N(t,"unit");var n=r.from(e);if(t instanceof b){switch(t){case b.NANOS:return this._nanosUntil(n);case b.MICROS:return this._microsUntil(n);case b.MILLIS:return M.safeSubtract(n.toEpochMilli(),this.toEpochMilli());case b.SECONDS:return this._secondsUntil(n);case b.MINUTES:return M.intDiv(this._secondsUntil(n),Xt.SECONDS_PER_MINUTE);case b.HOURS:return M.intDiv(this._secondsUntil(n),Xt.SECONDS_PER_HOUR);case b.HALF_DAYS:return M.intDiv(this._secondsUntil(n),12*Xt.SECONDS_PER_HOUR);case b.DAYS:return M.intDiv(this._secondsUntil(n),Xt.SECONDS_PER_DAY)}throw new u("Unsupported unit: ".concat(t))}return t.between(this,n)}},{key:"_microsUntil",value:function(e){var t=M.safeSubtract(e.epochSecond(),this.epochSecond()),n=M.safeMultiply(t,1e6);return M.safeAdd(n,M.intDiv(e.nano()-this.nano(),1e3))}},{key:"_nanosUntil",value:function(e){var t=M.safeSubtract(e.epochSecond(),this.epochSecond()),n=M.safeMultiply(t,Xt.NANOS_PER_SECOND);return M.safeAdd(n,e.nano()-this.nano())}},{key:"_secondsUntil",value:function(e){var t=M.safeSubtract(e.epochSecond(),this.epochSecond()),n=e.nano()-this.nano();return 0<t&&n<0?t--:t<0&&0<n&&t++,t}},{key:"atOffset",value:function(e){return Zt.ofInstant(this,e)}},{key:"atZone",value:function(e){return qt.ofInstant(this,e)}},{key:"toEpochMilli",value:function(){return M.safeMultiply(this._seconds,1e3)+M.intDiv(this._nanos,1e6)}},{key:"compareTo",value:function(e){N(e,"otherInstant"),D(e,r,"otherInstant");var t=M.compareNumbers(this._seconds,e._seconds);return 0!==t?t:this._nanos-e._nanos}},{key:"isAfter",value:function(e){return 0<this.compareTo(e)}},{key:"isBefore",value:function(e){return this.compareTo(e)<0}},{key:"equals",value:function(e){return this===e||e instanceof r&&(this.epochSecond()===e.epochSecond()&&this.nano()===e.nano())}},{key:"hashCode",value:function(){return M.hashCode(this._seconds,this._nanos)}},{key:"toString",value:function(){return Tt.ISO_INSTANT.format(this)}},{key:"toJSON",value:function(){return this.toString()}}],[{key:"now",value:function(e){return(0<arguments.length&&void 0!==e?e:Qt.systemUTC()).instant()}},{key:"ofEpochSecond",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,i=e+M.floorDiv(n,Xt.NANOS_PER_SECOND),a=M.floorMod(n,Xt.NANOS_PER_SECOND);return r._create(i,a)}},{key:"ofEpochMilli",value:function(e){var t=M.floorDiv(e,1e3),n=M.floorMod(e,1e3);return r._create(t,1e6*n)}},{key:"from",value:function(t){try{var e=t.getLong(q.INSTANT_SECONDS),n=t.get(q.NANO_OF_SECOND);return r.ofEpochSecond(e,n)}catch(e){throw new T("Unable to obtain Instant from TemporalAccessor: ".concat(t,", type ").concat(a(t)),e)}}},{key:"parse",value:function(e){return Tt.ISO_INSTANT.parse(e,r.FROM)}},{key:"_create",value:function(e,t){return 0===e&&0===t?r.EPOCH:new r(e,t)}},{key:"_validate",value:function(e,t){if(e<r.MIN_SECONDS||r.MAX_SECONDS<e)throw new T("Instant exceeds minimum or maximum instant");if(t<0||t>Xt.NANOS_PER_SECOND)throw new T("Instant exceeds minimum or maximum instant")}}]),r}();var Qt=(y($t,[{key:"millis",value:function(){o("Clock.millis")}},{key:"instant",value:function(){o("Clock.instant")}},{key:"zone",value:function(){o("Clock.zone")}},{key:"withZone",value:function(){o("Clock.withZone")}}],[{key:"systemUTC",value:function(){return new en(Ee.UTC)}},{key:"systemDefaultZone",value:function(){return new en(fe.systemDefault())}},{key:"system",value:function(e){return new en(e)}},{key:"fixed",value:function(e,t){return new tn(e,t)}},{key:"offset",value:function(e,t){return new nn(e,t)}}]),$t);function $t(){f(this,$t)}var en=function(){p(i,Qt);var n=S(i);function i(e){var t;return f(this,i),N(e,"zone"),(t=n.call(this))._zone=e,t}return y(i,[{key:"zone",value:function(){return this._zone}},{key:"millis",value:function(){return(new Date).getTime()}},{key:"instant",value:function(){return Jt.ofEpochMilli(this.millis())}},{key:"equals",value:function(e){return e instanceof i&&this._zone.equals(e._zone)}},{key:"withZone",value:function(e){return e.equals(this._zone)?this:new i(e)}},{key:"toString",value:function(){return"SystemClock[".concat(this._zone.toString(),"]")}}]),i}(),tn=function(){p(a,Qt);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._instant=e,n._zoneId=t,n}return y(a,[{key:"instant",value:function(){return this._instant}},{key:"millis",value:function(){return this._instant.toEpochMilli()}},{key:"zone",value:function(){return this._zoneId}},{key:"toString",value:function(){return"FixedClock[]"}},{key:"equals",value:function(e){return e instanceof a&&(this._instant.equals(e._instant)&&this._zoneId.equals(e._zoneId))}},{key:"withZone",value:function(e){return e.equals(this._zoneId)?this:new a(this._instant,e)}}]),a}(),nn=function(){p(a,Qt);var i=S(a);function a(e,t){var n;return f(this,a),(n=i.call(this))._baseClock=e,n._offset=t,n}return y(a,[{key:"zone",value:function(){return this._baseClock.zone()}},{key:"withZone",value:function(e){return e.equals(this._baseClock.zone())?this:new a(this._baseClock.withZone(e),this._offset)}},{key:"millis",value:function(){return this._baseClock.millis()+this._offset.toMillis()}},{key:"instant",value:function(){return this._baseClock.instant().plus(this._offset)}},{key:"equals",value:function(e){return e instanceof a&&(this._baseClock.equals(e._baseClock)&&this._offset.equals(e._offset))}},{key:"toString",value:function(){return"OffsetClock[".concat(this._baseClock,",").concat(this._offset,"]")}}]),a}(),an=(y(rn,[{key:"instant",value:function(){return this._transition.toInstant(this._offsetBefore)}},{key:"toEpochSecond",value:function(){return this._transition.toEpochSecond(this._offsetBefore)}},{key:"dateTimeBefore",value:function(){return this._transition}},{key:"dateTimeAfter",value:function(){return this._transition.plusSeconds(this.durationSeconds())}},{key:"offsetBefore",value:function(){return this._offsetBefore}},{key:"offsetAfter",value:function(){return this._offsetAfter}},{key:"duration",value:function(){return U.ofSeconds(this.durationSeconds())}},{key:"durationSeconds",value:function(){return this._offsetAfter.totalSeconds()-this._offsetBefore.totalSeconds()}},{key:"isGap",value:function(){return this._offsetAfter.totalSeconds()>this._offsetBefore.totalSeconds()}},{key:"isOverlap",value:function(){return this._offsetAfter.totalSeconds()<this._offsetBefore.totalSeconds()}},{key:"isValidOffset",value:function(e){return!this.isGap()&&(this._offsetBefore.equals(e)||this._offsetAfter.equals(e))}},{key:"validOffsets",value:function(){return this.isGap()?[]:[this._offsetBefore,this._offsetAfter]}},{key:"compareTo",value:function(e){return this.instant().compareTo(e.instant())}},{key:"equals",value:function(e){if(e===this)return!0;if(e instanceof rn){var t=e;return this._transition.equals(t._transition)&&this._offsetBefore.equals(t.offsetBefore())&&this._offsetAfter.equals(t.offsetAfter())}return!1}},{key:"hashCode",value:function(){return this._transition.hashCode()^this._offsetBefore.hashCode()^this._offsetAfter.hashCode()>>>16}},{key:"toString",value:function(){return"Transition[".concat(this.isGap()?"Gap":"Overlap"," at ").concat(this._transition.toString()).concat(this._offsetBefore.toString()," to ").concat(this._offsetAfter,"]")}}],[{key:"of",value:function(e,t,n){return new rn(e,t,n)}}]),rn);function rn(e,t,n){if(f(this,rn),N(e,"transition"),N(t,"offsetBefore"),N(n,"offsetAfter"),t.equals(n))throw new c("Offsets must not be equal");if(0!==e.nano())throw new c("Nano-of-second must be zero");this._transition=e instanceof Gt?e:Gt.ofEpochSecond(e,0,t),this._offsetBefore=t,this._offsetAfter=n}var sn=function(){p(t,de);var e=S(t);function t(){return f(this,t),e.apply(this,arguments)}return y(t,[{key:"isFixedOffset",value:function(){return!1}},{key:"offsetOfInstant",value:function(e){var t=new Date(e.toEpochMilli()).getTimezoneOffset();return Ee.ofTotalMinutes(-1*t)}},{key:"offsetOfEpochMilli",value:function(e){var t=new Date(e).getTimezoneOffset();return Ee.ofTotalMinutes(-1*t)}},{key:"offsetOfLocalDateTime",value:function(e){var t=1e3*e.toEpochSecond(Ee.UTC),n=new Date(t).getTimezoneOffset(),i=new Date(t+6e4*n).getTimezoneOffset();return Ee.ofTotalMinutes(-1*i)}},{key:"validOffsets",value:function(e){return[this.offsetOfLocalDateTime(e)]}},{key:"transition",value:function(){return null}},{key:"standardOffset",value:function(e){return this.offsetOfInstant(e)}},{key:"daylightSavings",value:function(){this._throwNotSupported()}},{key:"isDaylightSavings",value:function(){this._throwNotSupported()}},{key:"isValidOffset",value:function(e,t){return this.offsetOfLocalDateTime(e).equals(t)}},{key:"nextTransition",value:function(){this._throwNotSupported()}},{key:"previousTransition",value:function(){this._throwNotSupported()}},{key:"transitions",value:function(){this._throwNotSupported()}},{key:"transitionRules",value:function(){this._throwNotSupported()}},{key:"_throwNotSupported",value:function(){throw new T("not supported operation")}},{key:"equals",value:function(e){return this===e||e instanceof t}},{key:"toString",value:function(){return"SYSTEM"}}]),t}(),on=function(){p(n,fe);var t=S(n);function n(){var e;return f(this,n),(e=t.call(this))._rules=new sn,e}return y(n,[{key:"rules",value:function(){return this._rules}},{key:"equals",value:function(e){return this===e}},{key:"id",value:function(){return"SYSTEM"}}]),n}(),un=(y(ln,null,[{key:"systemDefault",value:function(){return hn}},{key:"getAvailableZoneIds",value:function(){return ut.getAvailableZoneIds()}},{key:"of",value:function(e){if(N(e,"zoneId"),"Z"===e)return Ee.UTC;if(1===e.length)throw new T("Invalid zone: ".concat(e));if(he.startsWith(e,"+")||he.startsWith(e,"-"))return Ee.of(e);if("UTC"===e||"GMT"===e||"GMT0"===e||"UT"===e)return new ht(e,Ee.UTC.rules());if(he.startsWith(e,"UTC+")||he.startsWith(e,"GMT+")||he.startsWith(e,"UTC-")||he.startsWith(e,"GMT-")){var t=Ee.of(e.substring(3));return 0===t.totalSeconds()?new ht(e.substring(0,3),t.rules()):new ht(e.substring(0,3)+t.id(),t.rules())}if(he.startsWith(e,"UT+")||he.startsWith(e,"UT-")){var n=Ee.of(e.substring(2));return 0===n.totalSeconds()?new ht("UT",n.rules()):new ht("UT".concat(n.id()),n.rules())}return"SYSTEM"===e?fe.systemDefault():ht.ofId(e)}},{key:"ofOffset",value:function(e,t){if(N(e,"prefix"),N(t,"offset"),0===e.length)return t;if("GMT"===e||"UTC"===e||"UT"===e)return 0===t.totalSeconds()?new ht(e,t.rules()):new ht(e+t.id(),t.rules());throw new c("Invalid prefix, must be GMT, UTC or UT: ".concat(e))}},{key:"from",value:function(e){N(e,"temporal");var t=e.query(Z.zone());if(null==t)throw new T("Unable to obtain ZoneId from TemporalAccessor: ".concat(e,", type ").concat(null!=e.constructor?e.constructor.name:""));return t}}]),ln);function ln(){f(this,ln)}var hn=null;var cn=!1;cn||(cn=!0,V.MIN_VALUE=-999999,V.MAX_VALUE=999999,U.ZERO=new U(0,0),b.NANOS=new b("Nanos",U.ofNanos(1)),b.MICROS=new b("Micros",U.ofNanos(1e3)),b.MILLIS=new b("Millis",U.ofNanos(1e6)),b.SECONDS=new b("Seconds",U.ofSeconds(1)),b.MINUTES=new b("Minutes",U.ofSeconds(60)),b.HOURS=new b("Hours",U.ofSeconds(3600)),b.HALF_DAYS=new b("HalfDays",U.ofSeconds(43200)),b.DAYS=new b("Days",U.ofSeconds(86400)),b.WEEKS=new b("Weeks",U.ofSeconds(604800)),b.MONTHS=new b("Months",U.ofSeconds(2629746)),b.YEARS=new b("Years",U.ofSeconds(31556952)),b.DECADES=new b("Decades",U.ofSeconds(315569520)),b.CENTURIES=new b("Centuries",U.ofSeconds(3155695200)),b.MILLENNIA=new b("Millennia",U.ofSeconds(31556952e3)),b.ERAS=new b("Eras",U.ofSeconds(31556952*(V.MAX_VALUE+1))),b.FOREVER=new b("Forever",U.ofSeconds(M.MAX_SAFE_INTEGER,999999999)),q.NANO_OF_SECOND=new q("NanoOfSecond",b.NANOS,b.SECONDS,x.of(0,999999999)),q.NANO_OF_DAY=new q("NanoOfDay",b.NANOS,b.DAYS,x.of(0,864e11-1)),q.MICRO_OF_SECOND=new q("MicroOfSecond",b.MICROS,b.SECONDS,x.of(0,999999)),q.MICRO_OF_DAY=new q("MicroOfDay",b.MICROS,b.DAYS,x.of(0,864e8-1)),q.MILLI_OF_SECOND=new q("MilliOfSecond",b.MILLIS,b.SECONDS,x.of(0,999)),q.MILLI_OF_DAY=new q("MilliOfDay",b.MILLIS,b.DAYS,x.of(0,864e5-1)),q.SECOND_OF_MINUTE=new q("SecondOfMinute",b.SECONDS,b.MINUTES,x.of(0,59)),q.SECOND_OF_DAY=new q("SecondOfDay",b.SECONDS,b.DAYS,x.of(0,86399)),q.MINUTE_OF_HOUR=new q("MinuteOfHour",b.MINUTES,b.HOURS,x.of(0,59)),q.MINUTE_OF_DAY=new q("MinuteOfDay",b.MINUTES,b.DAYS,x.of(0,1439)),q.HOUR_OF_AMPM=new q("HourOfAmPm",b.HOURS,b.HALF_DAYS,x.of(0,11)),q.CLOCK_HOUR_OF_AMPM=new q("ClockHourOfAmPm",b.HOURS,b.HALF_DAYS,x.of(1,12)),q.HOUR_OF_DAY=new q("HourOfDay",b.HOURS,b.DAYS,x.of(0,23)),q.CLOCK_HOUR_OF_DAY=new q("ClockHourOfDay",b.HOURS,b.DAYS,x.of(1,24)),q.AMPM_OF_DAY=new q("AmPmOfDay",b.HALF_DAYS,b.DAYS,x.of(0,1)),q.DAY_OF_WEEK=new q("DayOfWeek",b.DAYS,b.WEEKS,x.of(1,7)),q.ALIGNED_DAY_OF_WEEK_IN_MONTH=new q("AlignedDayOfWeekInMonth",b.DAYS,b.WEEKS,x.of(1,7)),q.ALIGNED_DAY_OF_WEEK_IN_YEAR=new q("AlignedDayOfWeekInYear",b.DAYS,b.WEEKS,x.of(1,7)),q.DAY_OF_MONTH=new q("DayOfMonth",b.DAYS,b.MONTHS,x.of(1,28,31),"day"),q.DAY_OF_YEAR=new q("DayOfYear",b.DAYS,b.YEARS,x.of(1,365,366)),q.EPOCH_DAY=new q("EpochDay",b.DAYS,b.FOREVER,x.of(Math.floor(365.25*V.MIN_VALUE),Math.floor(365.25*V.MAX_VALUE))),q.ALIGNED_WEEK_OF_MONTH=new q("AlignedWeekOfMonth",b.WEEKS,b.MONTHS,x.of(1,4,5)),q.ALIGNED_WEEK_OF_YEAR=new q("AlignedWeekOfYear",b.WEEKS,b.YEARS,x.of(1,53)),q.MONTH_OF_YEAR=new q("MonthOfYear",b.MONTHS,b.YEARS,x.of(1,12),"month"),q.PROLEPTIC_MONTH=new q("ProlepticMonth",b.MONTHS,b.FOREVER,x.of(12*V.MIN_VALUE,12*V.MAX_VALUE+11)),q.YEAR_OF_ERA=new q("YearOfEra",b.YEARS,b.FOREVER,x.of(1,V.MAX_VALUE,V.MAX_VALUE+1)),q.YEAR=new q("Year",b.YEARS,b.FOREVER,x.of(V.MIN_VALUE,V.MAX_VALUE),"year"),q.ERA=new q("Era",b.ERAS,b.FOREVER,x.of(0,1)),q.INSTANT_SECONDS=new q("InstantSeconds",b.SECONDS,b.FOREVER,x.of(w,A)),q.OFFSET_SECONDS=new q("OffsetSeconds",b.SECONDS,b.FOREVER,x.of(-64800,64800)),function(){Xt.HOURS=[];for(var e=0;e<24;e++)Xt.of(e,0,0,0);Xt.MIN=Xt.HOURS[0],Xt.MAX=new Xt(23,59,59,999999999),Xt.MIDNIGHT=Xt.HOURS[0],Xt.NOON=Xt.HOURS[12],Xt.FROM=X("LocalTime.FROM",function(e){return Xt.from(e)})}(),Ce=new ge,Le=new Re,Pe=new Ie,Ue=new Fe,Ve=new Ye("WeekBasedYears",U.ofSeconds(31556952)),be=new Ye("QuarterYears",U.ofSeconds(7889238)),Te.DAY_OF_QUARTER=Ce,Te.QUARTER_OF_YEAR=Le,Te.WEEK_OF_WEEK_BASED_YEAR=Pe,Te.WEEK_BASED_YEAR=Ue,Te.WEEK_BASED_YEARS=Ve,Te.QUARTER_YEARS=be,Kt.prototype.isoWeekOfWeekyear=function(){return this.get(Te.WEEK_OF_WEEK_BASED_YEAR)},Kt.prototype.isoWeekyear=function(){return this.get(Te.WEEK_BASED_YEAR)},Z.ZONE_ID=X("ZONE_ID",function(e){return e.query(Z.ZONE_ID)}),Z.CHRONO=X("CHRONO",function(e){return e.query(Z.CHRONO)}),Z.PRECISION=X("PRECISION",function(e){return e.query(Z.PRECISION)}),Z.OFFSET=X("OFFSET",function(e){return e.isSupported(q.OFFSET_SECONDS)?Ee.ofTotalSeconds(e.get(q.OFFSET_SECONDS)):null}),Z.ZONE=X("ZONE",function(e){var t=e.query(Z.ZONE_ID);return null!=t?t:e.query(Z.OFFSET)}),Z.LOCAL_DATE=X("LOCAL_DATE",function(e){return e.isSupported(q.EPOCH_DAY)?Kt.ofEpochDay(e.getLong(q.EPOCH_DAY)):null}),Z.LOCAL_TIME=X("LOCAL_TIME",function(e){return e.isSupported(q.NANO_OF_DAY)?Xt.ofNanoOfDay(e.getLong(q.NANO_OF_DAY)):null}),Q.MONDAY=new Q(0,"MONDAY"),Q.TUESDAY=new Q(1,"TUESDAY"),Q.WEDNESDAY=new Q(2,"WEDNESDAY"),Q.THURSDAY=new Q(3,"THURSDAY"),Q.FRIDAY=new Q(4,"FRIDAY"),Q.SATURDAY=new Q(5,"SATURDAY"),Q.SUNDAY=new Q(6,"SUNDAY"),Q.FROM=X("DayOfWeek.FROM",function(e){return Q.from(e)}),J=[Q.MONDAY,Q.TUESDAY,Q.WEDNESDAY,Q.THURSDAY,Q.FRIDAY,Q.SATURDAY,Q.SUNDAY],Jt.MIN_SECONDS=-31619119219200,Jt.MAX_SECONDS=31494816403199,Jt.EPOCH=new Jt(0,0),Jt.MIN=Jt.ofEpochSecond(Jt.MIN_SECONDS,0),Jt.MAX=Jt.ofEpochSecond(Jt.MAX_SECONDS,999999999),Jt.FROM=X("Instant.FROM",function(e){return Jt.from(e)}),Kt.MIN=Kt.of(V.MIN_VALUE,1,1),Kt.MAX=Kt.of(V.MAX_VALUE,12,31),Kt.EPOCH_0=Kt.ofEpochDay(0),Kt.FROM=X("LocalDate.FROM",function(e){return Kt.from(e)}),Gt.MIN=Gt.of(Kt.MIN,Xt.MIN),Gt.MAX=Gt.of(Kt.MAX,Xt.MAX),Gt.FROM=X("LocalDateTime.FROM",function(e){return Gt.from(e)}),Yt.MIN_VALUE=V.MIN_VALUE,Yt.MAX_VALUE=V.MAX_VALUE,Ft=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).toFormatter(),Yt.FROM=X("Year.FROM",function(e){return Yt.from(e)}),ee.JANUARY=new ee(1,"JANUARY"),ee.FEBRUARY=new ee(2,"FEBRUARY"),ee.MARCH=new ee(3,"MARCH"),ee.APRIL=new ee(4,"APRIL"),ee.MAY=new ee(5,"MAY"),ee.JUNE=new ee(6,"JUNE"),ee.JULY=new ee(7,"JULY"),ee.AUGUST=new ee(8,"AUGUST"),ee.SEPTEMBER=new ee(9,"SEPTEMBER"),ee.OCTOBER=new ee(10,"OCTOBER"),ee.NOVEMBER=new ee(11,"NOVEMBER"),ee.DECEMBER=new ee(12,"DECEMBER"),$=[ee.JANUARY,ee.FEBRUARY,ee.MARCH,ee.APRIL,ee.MAY,ee.JUNE,ee.JULY,ee.AUGUST,ee.SEPTEMBER,ee.OCTOBER,ee.NOVEMBER,ee.DECEMBER],Rt=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendLiteral("-").appendValue(q.MONTH_OF_YEAR,2).toFormatter(),It.FROM=X("YearMonth.FROM",function(e){return It.from(e)}),Mt=(new Ot).appendLiteral("--").appendValue(q.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(q.DAY_OF_MONTH,2).toFormatter(),gt.FROM=X("MonthDay.FROM",function(e){return gt.from(e)}),ne.ofDays(0),Ee.MAX_SECONDS=18*Xt.SECONDS_PER_HOUR,Ee.UTC=Ee.ofTotalSeconds(0),Ee.MIN=Ee.ofTotalSeconds(-Ee.MAX_SECONDS),Ee.MAX=Ee.ofTotalSeconds(Ee.MAX_SECONDS),qt.FROM=X("ZonedDateTime.FROM",function(e){return qt.from(e)}),hn=new on,fe.systemDefault=un.systemDefault,fe.getAvailableZoneIds=un.getAvailableZoneIds,fe.of=un.of,fe.ofOffset=un.ofOffset,fe.from=un.from,Ee.from=un.from,fe.SYSTEM=hn,fe.UTC=Ee.ofTotalSeconds(0),Wt.INSTANCE=new Wt("IsoChronology"),Tt.ISO_LOCAL_DATE=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendLiteral("-").appendValue(q.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(q.DAY_OF_MONTH,2).toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_LOCAL_TIME=(new Ot).appendValue(q.HOUR_OF_DAY,2).appendLiteral(":").appendValue(q.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(q.SECOND_OF_MINUTE,2).optionalStart().appendFraction(q.NANO_OF_SECOND,0,9,!0).toFormatter(oe.STRICT),Tt.ISO_LOCAL_DATE_TIME=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_DATE).appendLiteral("T").append(Tt.ISO_LOCAL_TIME).toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_INSTANT=(new Ot).parseCaseInsensitive().appendInstant().toFormatter(oe.STRICT),Tt.ISO_OFFSET_DATE_TIME=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_DATE_TIME).appendOffsetId().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_ZONED_DATE_TIME=(new Ot).append(Tt.ISO_OFFSET_DATE_TIME).optionalStart().appendLiteral("[").parseCaseSensitive().appendZoneId().appendLiteral("]").toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.BASIC_ISO_DATE=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendValue(q.MONTH_OF_YEAR,2).appendValue(q.DAY_OF_MONTH,2).toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_OFFSET_DATE=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_DATE).appendOffsetId().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_OFFSET_TIME=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_TIME).appendOffsetId().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_ORDINAL_DATE=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendLiteral("-").appendValue(q.DAY_OF_YEAR).toFormatter(oe.STRICT),Tt.ISO_WEEK_DATE=(new Ot).appendValue(q.YEAR,4,10,xe.EXCEEDS_PAD).appendLiteral("-W").appendValue(q.ALIGNED_WEEK_OF_YEAR).appendLiteral("-").appendValue(q.DAY_OF_WEEK).toFormatter(oe.STRICT),Tt.ISO_DATE=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_DATE).optionalStart().appendOffsetId().optionalEnd().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.ISO_TIME=(new Ot).parseCaseInsensitive().append(Tt.ISO_LOCAL_TIME).optionalStart().appendOffsetId().optionalEnd().toFormatter(oe.STRICT),Tt.ISO_DATE_TIME=(new Ot).append(Tt.ISO_LOCAL_DATE_TIME).optionalStart().appendOffsetId().optionalEnd().toFormatter(oe.STRICT).withChronology(Wt.INSTANCE),Tt.PARSED_EXCESS_DAYS=X("PARSED_EXCESS_DAYS",function(e){return e instanceof Se?e.excessDays:ne.ZERO}),Tt.PARSED_LEAP_SECOND=X("PARSED_LEAP_SECOND",function(e){return e instanceof Se&&e.leapSecond}),$e.BASE_DATE=Kt.of(2e3,1,1),Ot.CompositePrinterParser=ze,Ot.PadPrinterParserDecorator=it,Ot.SettingsParser=rt,Ot.CharLiteralPrinterParser=st,Ot.StringLiteralPrinterParser=st,Ot.CharLiteralPrinterParser=qe,Ot.NumberPrinterParser=Je,Ot.ReducedPrinterParser=$e,Ot.FractionPrinterParser=je,Ot.OffsetIdPrinterParser=tt,Ot.ZoneIdPrinterParser=ct,Zt.MIN=Gt.MIN.atOffset(Ee.MAX),Zt.MAX=Gt.MAX.atOffset(Ee.MIN),Zt.FROM=X("OffsetDateTime.FROM",function(e){return Zt.from(e)}),xt.MIN=xt.ofNumbers(0,0,0,0,Ee.MAX),xt.MAX=xt.ofNumbers(23,59,59,999999999,Ee.MIN),xt.FROM=X("OffsetTime.FROM",function(e){return xt.from(e)}));var fn=(y(_n,[{key:"toDate",value:function(){return new Date(this.instant.toEpochMilli())}},{key:"toEpochMilli",value:function(){return this.instant.toEpochMilli()}}]),_n);function _n(e,t){var n;if(f(this,_n),e instanceof Jt)this.instant=e;else{if(e instanceof Kt)t=null==t?fe.systemDefault():t,n=e.atStartOfDay(t);else if(e instanceof Gt)t=null==t?fe.systemDefault():t,n=e.atZone(t);else{if(!(e instanceof qt))throw new c("unsupported instance for convert operation:".concat(e));n=null==t?e:e.withZoneSameInstant(t)}this.instant=n.toInstant()}}function dn(e,t){return new fn(e,t)}var vn=function(){p(a,K);var i=S(a);function a(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:fe.systemDefault();return f(this,a),(t=i.call(this))._zone=n,e instanceof Date?(t._epochMilli=e.getTime(),E(t)):"function"==typeof e.toDate&&e.toDate()instanceof Date?(t._epochMilli=e.toDate().getTime(),E(t)):(k(!1,"date must be either a javascript date or a moment"),t)}return y(a,[{key:"query",value:function(e){return N(e,"query"),e===Z.localDate()?Kt.ofInstant(Jt.ofEpochMilli(this._epochMilli),this._zone):e===Z.localTime()?Xt.ofInstant(Jt.ofEpochMilli(this._epochMilli),this._zone):e===Z.zone()?this._zone:m(d(a.prototype),"query",this).call(this,e)}},{key:"get",value:function(e){return this.getLong(e)}},{key:"getLong",value:function(e){if(N(e,"field"),e instanceof q){switch(e){case q.NANO_OF_SECOND:return 1e6*M.floorMod(this._epochMilli,1e3);case q.INSTANT_SECONDS:return M.floorDiv(this._epochMilli,1e3)}throw new u("Unsupported field: ".concat(e))}return e.getFrom(this)}},{key:"isSupported",value:function(e){return e===q.INSTANT_SECONDS||e===q.NANO_OF_SECOND}}]),a}();function yn(e,t){return new vn(e,t)}var pn,On,En={assert:h,DateTimeBuilder:Se,DateTimeParseContext:me,DateTimePrintContext:De,MathUtil:M,StringUtil:he,StringBuilder:Dt},Sn={_:En,convert:dn,nativeJs:yn,ArithmeticException:O,DateTimeException:T,DateTimeParseException:v,IllegalArgumentException:c,IllegalStateException:r,UnsupportedTemporalTypeException:u,NullPointerException:s,Clock:Qt,DayOfWeek:Q,Duration:U,Instant:Jt,LocalDate:Kt,LocalTime:Xt,LocalDateTime:Gt,OffsetTime:xt,OffsetDateTime:Zt,Month:ee,MonthDay:gt,Period:ne,Year:Yt,YearConstants:V,YearMonth:It,ZonedDateTime:qt,ZoneOffset:Ee,ZoneId:fe,ZoneRegion:ht,ZoneOffsetTransition:an,ZoneRules:de,ZoneRulesProvider:ut,ChronoLocalDate:le,ChronoLocalDateTime:jt,ChronoZonedDateTime:Bt,IsoChronology:Wt,ChronoField:q,ChronoUnit:b,IsoFields:Te,Temporal:ue,TemporalAccessor:K,TemporalAdjuster:Ct,TemporalAdjusters:Pt,TemporalAmount:Y,TemporalField:H,TemporalQueries:Z,TemporalQuery:G,TemporalUnit:L,ValueRange:x,DateTimeFormatter:Tt,DateTimeFormatterBuilder:Ot,DecimalStyle:He,ResolverStyle:oe,SignStyle:xe,TextStyle:Be},mn=(pn=Sn,On=[],function(e){return~On.indexOf(e)||(e(pn),On.push(e)),pn});return Sn.use=mn,e.ArithmeticException=O,e.ChronoField=q,e.ChronoLocalDate=le,e.ChronoLocalDateTime=jt,e.ChronoUnit=b,e.ChronoZonedDateTime=Bt,e.Clock=Qt,e.DateTimeException=T,e.DateTimeFormatter=Tt,e.DateTimeFormatterBuilder=Ot,e.DateTimeParseException=v,e.DayOfWeek=Q,e.DecimalStyle=He,e.Duration=U,e.IllegalArgumentException=c,e.IllegalStateException=r,e.Instant=Jt,e.IsoChronology=Wt,e.IsoFields=Te,e.LocalDate=Kt,e.LocalDateTime=Gt,e.LocalTime=Xt,e.Month=ee,e.MonthDay=gt,e.NullPointerException=s,e.OffsetDateTime=Zt,e.OffsetTime=xt,e.Period=ne,e.ResolverStyle=oe,e.SignStyle=xe,e.Temporal=ue,e.TemporalAccessor=K,e.TemporalAdjuster=Ct,e.TemporalAdjusters=Pt,e.TemporalAmount=Y,e.TemporalField=H,e.TemporalQueries=Z,e.TemporalQuery=G,e.TemporalUnit=L,e.TextStyle=Be,e.UnsupportedTemporalTypeException=u,e.ValueRange=x,e.Year=Yt,e.YearConstants=V,e.YearMonth=It,e.ZoneId=fe,e.ZoneOffset=Ee,e.ZoneOffsetTransition=an,e.ZoneRegion=ht,e.ZoneRules=de,e.ZoneRulesProvider=ut,e.ZonedDateTime=qt,e._=En,e.convert=dn,e.nativeJs=yn,e.use=mn,e}({});