diff --git a/demo/src/jsMain/kotlin/App.kt b/demo/src/jsMain/kotlin/App.kt index eb636a2..2e49424 100644 --- a/demo/src/jsMain/kotlin/App.kt +++ b/demo/src/jsMain/kotlin/App.kt @@ -3,6 +3,7 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.sizeIn @@ -65,9 +66,11 @@ internal fun App() { } ) { padding -> Column( - modifier = Modifier.padding(padding) - .padding(horizontal = 32.dp).padding(bottom = 32.dp) + modifier = Modifier + .fillMaxWidth() .verticalScroll(rememberScrollState()) + .padding(padding) + .padding(horizontal = 32.dp).padding(bottom = 32.dp) ) { Row(verticalAlignment = Alignment.CenterVertically) { Text( @@ -204,6 +207,12 @@ private fun FileSizeDemo(selectedLanguageCode: String) { if (it.length < 16) { myFile = it } + }, + isError = myFile.toLongOrNull() == null, + supportingText = if (myFile.toLongOrNull() == null) { + { Text("Invalid number") } + } else { + null } ) Text( @@ -224,11 +233,12 @@ private fun FileSizeDemo(selectedLanguageCode: String) { TextField( modifier = Modifier.sizeIn(minWidth = 20.dp), value = decimals, - onValueChange = { - val updatedDecimals = it.toIntOrNull() - if (updatedDecimals != null && updatedDecimals < 10) { - decimals = it - } + onValueChange = { decimals = it }, + isError = decimals.toIntOrNull() == null, + supportingText = if (decimals.toIntOrNull() == null) { + { Text("Invalid number") } + } else { + null } ) } @@ -277,6 +287,12 @@ private fun AbbreviationDemo(selectedLanguageCode: String) { if (it.length < 16) { myNumber = it } + }, + isError = myNumber.toLongOrNull() == null, + supportingText = if (myNumber.toLongOrNull() == null) { + { Text("Invalid number") } + } else { + null } ) } @@ -293,11 +309,12 @@ private fun AbbreviationDemo(selectedLanguageCode: String) { TextField( modifier = Modifier.sizeIn(minWidth = 20.dp), value = decimals, - onValueChange = { - val updatedDecimals = it.toIntOrNull() - if (updatedDecimals != null && updatedDecimals < 10) { - decimals = it - } + onValueChange = { decimals = it }, + isError = decimals.toIntOrNull() == null, + supportingText = if (decimals.toIntOrNull() == null) { + { Text("Invalid number") } + } else { + null } ) } @@ -392,7 +409,10 @@ private fun DateTimeField(instant: Instant, onUpdate: (Instant) -> Unit) { error = true } }, - isError = error + isError = error, + supportingText = if (error) { + { Text("Invalid date format. Please use ISO-8601 ;-)") } + } else null ) } diff --git a/docs/composeApp.js b/docs/composeApp.js index f91789e..26f91d3 100644 --- a/docs/composeApp.js +++ b/docs/composeApp.js @@ -1,3 +1,3 @@ /*! For license information please see composeApp.js.LICENSE.txt */ -!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.demo=t():n.demo=t()}(this,(()=>(()=>{var n={135:(n,t,i)=>{"use strict";function e(n,t,i){function e(n){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=n,t&&t.apply(this,arguments),this.toString=function(){return this.name+": "+this.message}}return void 0===i&&(i=Error),e.prototype=Object.create(i.prototype),e.prototype.name=n,e.prototype.constructor=e,e}i.r(t),i.d(t,{ArithmeticException:()=>_,ChronoField:()=>C,ChronoLocalDate:()=>H,ChronoLocalDateTime:()=>ht,ChronoUnit:()=>z,ChronoZonedDateTime:()=>rt,Clock:()=>vt,DateTimeException:()=>r,DateTimeFormatter:()=>Gn,DateTimeFormatterBuilder:()=>Bn,DateTimeParseException:()=>s,DayOfWeek:()=>O,DecimalStyle:()=>pn,Duration:()=>q,IllegalArgumentException:()=>a,IllegalStateException:()=>o,Instant:()=>dt,IsoChronology:()=>it,IsoFields:()=>sn,LocalDate:()=>ot,LocalDateTime:()=>ct,LocalTime:()=>lt,Month:()=>N,MonthDay:()=>Kn,NullPointerException:()=>h,OffsetDateTime:()=>ut,OffsetTime:()=>et,Period:()=>P,ResolverStyle:()=>U,SignStyle:()=>$n,Temporal:()=>V,TemporalAccessor:()=>E,TemporalAdjuster:()=>B,TemporalAdjusters:()=>Jn,TemporalAmount:()=>y,TemporalField:()=>S,TemporalQueries:()=>A,TemporalQuery:()=>T,TemporalUnit:()=>k,TextStyle:()=>gn,UnsupportedTemporalTypeException:()=>u,ValueRange:()=>j,Year:()=>Xn,YearConstants:()=>x,YearMonth:()=>Zn,ZoneId:()=>G,ZoneOffset:()=>Q,ZoneOffsetTransition:()=>pt,ZoneRegion:()=>Nn,ZoneRules:()=>K,ZoneRulesProvider:()=>On,ZonedDateTime:()=>st,_:()=>Et,convert:()=>zt,nativeJs:()=>jt,use:()=>Mt});var r=e("DateTimeException",(function(n,t){void 0===t&&(t=null);var i=n||this.name;null!==t&&t instanceof Error&&(i+="\n-------\nCaused by: "+t.stack+"\n-------\n"),this.message=i})),s=e("DateTimeParseException",(function(n,t,i,e){void 0===t&&(t=""),void 0===i&&(i=0),void 0===e&&(e=null);var r=n||this.name;r+=": "+t+", at index: "+i,null!==e&&e instanceof Error&&(r+="\n-------\nCaused by: "+e.stack+"\n-------\n"),this.message=r,this.parsedString=function(){return t},this.errorIndex=function(){return i}})),u=e("UnsupportedTemporalTypeException",null,r),_=e("ArithmeticException"),a=e("IllegalArgumentException"),o=e("IllegalStateException"),h=e("NullPointerException");function c(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}function l(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function f(n,t,i){if(!n)throw i?new i(t):new Error(t)}function d(n,t){if(null==n)throw new h(t+" must not be null");return n}function v(n,t,i){if(!(n instanceof t))throw new a(i+" must be an instance of "+(t.name?t.name:t)+(n&&n.constructor&&n.constructor.name?", but is "+n.constructor.name:""));return n}function w(n){throw new TypeError('abstract method "'+n+'" is not implemented')}var b=Object.freeze({__proto__:null,assert:f,requireNonNull:d,requireInstance:v,abstractMethodFail:w}),m=9007199254740991,p=-9007199254740991,$=function(){function n(){}return n.intDiv=function(t,i){var e=t/i;return e=n.roundDown(e),n.safeZero(e)},n.intMod=function(t,i){var e=t-n.intDiv(t,i)*i;return e=n.roundDown(e),n.safeZero(e)},n.roundDown=function(n){return n<0?Math.ceil(n):Math.floor(n)},n.floorDiv=function(t,i){var e=Math.floor(t/i);return n.safeZero(e)},n.floorMod=function(t,i){var e=t-n.floorDiv(t,i)*i;return n.safeZero(e)},n.safeAdd=function(t,i){if(n.verifyInt(t),n.verifyInt(i),0===t)return n.safeZero(i);if(0===i)return n.safeZero(t);var e=n.safeToInt(t+i);if(e===t||e===i)throw new _("Invalid addition beyond MAX_SAFE_INTEGER!");return e},n.safeSubtract=function(t,i){return n.verifyInt(t),n.verifyInt(i),0===t&&0===i?0:0===t?n.safeZero(-1*i):0===i?n.safeZero(t):n.safeToInt(t-i)},n.safeMultiply=function(t,i){if(n.verifyInt(t),n.verifyInt(i),1===t)return n.safeZero(i);if(1===i)return n.safeZero(t);if(0===t||0===i)return 0;var e=n.safeToInt(t*i);if(e/i!==t||t===p&&-1===i||i===p&&-1===t)throw new _("Multiplication overflows: "+t+" * "+i);return e},n.parseInt=function(n){function t(t){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}((function(t){var i=parseInt(t);return n.safeToInt(i)})),n.safeToInt=function(t){return n.verifyInt(t),n.safeZero(t)},n.verifyInt=function(n){if(null==n)throw new _("Invalid value: '"+n+"', using null or undefined as argument");if(isNaN(n))throw new _("Invalid int value, using NaN as argument");if(n%1!=0)throw new _("Invalid value: '"+n+"' is a float");if(n>m||n
t?1:0},n.smi=function(n){return n>>>1&1073741824|3221225471&n},n.hash=function(t){if(t!=t||t===1/0)return 0;for(var i=t;t>4294967295;)i^=t/=4294967295;return n.smi(i)},n.hashCode=function(){for(var t=17,i=arguments.length,e=new Array(i),r=0;r0&&e<0)e+=lt.NANOS_PER_SECOND;else if(i<0&&e>0)e-=lt.NANOS_PER_SECOND;else if(0===i&&0!==e){var s=t.with(C.NANO_OF_SECOND,r);i=n.until(s,z.SECONDS)}}catch(n){}return this.ofSeconds(i,e)},t.parse=function(n){d(n,"text");var i=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i").exec(n);if(null!==i&&"T"===i[3]==0){var e="-"===i[1],r=i[2],u=i[4],_=i[5],a=i[6],o=i[7];if(null!=r||null!=u||null!=_||null!=a){var h=t._parseNumber(n,r,lt.SECONDS_PER_DAY,"days"),c=t._parseNumber(n,u,lt.SECONDS_PER_HOUR,"hours"),l=t._parseNumber(n,_,lt.SECONDS_PER_MINUTE,"minutes"),f=t._parseNumber(n,a,1,"seconds"),v=null!=a&&"-"===a.charAt(0),w=t._parseFraction(n,o,v?-1:1);try{return t._create(e,h,c,l,f,w)}catch(t){throw new s("Text cannot be parsed to a Duration: overflow",n,0,t)}}}throw new s("Text cannot be parsed to a Duration",n,0)},t._parseNumber=function(n,t,i,e){if(null==t)return 0;try{return"+"===t[0]&&(t=t.substring(1)),$.safeMultiply(parseFloat(t),i)}catch(t){throw new s("Text cannot be parsed to a Duration: "+e,n,0,t)}},t._parseFraction=function(n,t,i){return null==t||0===t.length?0:(t=(t+"000000000").substring(0,9),parseFloat(t)*i)},t._create=function(){return arguments.length<=2?t._createSecondsNanos(arguments[0],arguments[1]):t._createNegateDaysHoursMinutesSecondsNanos(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},t._createNegateDaysHoursMinutesSecondsNanos=function(n,i,e,r,s,u){var _=$.safeAdd(i,$.safeAdd(e,$.safeAdd(r,s)));return n?t.ofSeconds(_,u).negated():t.ofSeconds(_,u)},t._createSecondsNanos=function(n,i){return void 0===n&&(n=0),void 0===i&&(i=0),0===n&&0===i?t.ZERO:new t(n,i)};var i=t.prototype;return i.get=function(n){if(n===z.SECONDS)return this._seconds;if(n===z.NANOS)return this._nanos;throw new u("Unsupported unit: "+n)},i.units=function(){return[z.SECONDS,z.NANOS]},i.isZero=function(){return 0===this._seconds&&0===this._nanos},i.isNegative=function(){return this._seconds<0},i.seconds=function(){return this._seconds},i.nano=function(){return this._nanos},i.withSeconds=function(n){return t._create(n,this._nanos)},i.withNanos=function(n){return C.NANO_OF_SECOND.checkValidIntValue(n),t._create(this._seconds,n)},i.plusDuration=function(n){return d(n,"duration"),this.plus(n.seconds(),n.nano())},i.plus=function(n,t){return 1===arguments.length?this.plusDuration(n):2===arguments.length&&t instanceof k?this.plusAmountUnit(n,t):this.plusSecondsNanos(n,t)},i.plusAmountUnit=function(n,t){if(d(n,"amountToAdd"),d(t,"unit"),t===z.DAYS)return this.plusSecondsNanos($.safeMultiply(n,lt.SECONDS_PER_DAY),0);if(t.isDurationEstimated())throw new u("Unit must not have an estimated duration");if(0===n)return this;if(t instanceof z){switch(t){case z.NANOS:return this.plusNanos(n);case z.MICROS:return this.plusSecondsNanos(1e3*$.intDiv(n,1e9),1e3*$.intMod(n,1e9));case z.MILLIS:return this.plusMillis(n);case z.SECONDS:return this.plusSeconds(n)}return this.plusSecondsNanos($.safeMultiply(t.duration().seconds(),n),0)}var i=t.duration().multipliedBy(n);return this.plusSecondsNanos(i.seconds(),i.nano())},i.plusDays=function(n){return this.plusSecondsNanos($.safeMultiply(n,lt.SECONDS_PER_DAY),0)},i.plusHours=function(n){return this.plusSecondsNanos($.safeMultiply(n,lt.SECONDS_PER_HOUR),0)},i.plusMinutes=function(n){return this.plusSecondsNanos($.safeMultiply(n,lt.SECONDS_PER_MINUTE),0)},i.plusSeconds=function(n){return this.plusSecondsNanos(n,0)},i.plusMillis=function(n){return this.plusSecondsNanos($.intDiv(n,1e3),1e6*$.intMod(n,1e3))},i.plusNanos=function(n){return this.plusSecondsNanos(0,n)},i.plusSecondsNanos=function(n,i){if(d(n,"secondsToAdd"),d(i,"nanosToAdd"),0===n&&0===i)return this;var e=$.safeAdd(this._seconds,n);e=$.safeAdd(e,$.intDiv(i,lt.NANOS_PER_SECOND)),i=$.intMod(i,lt.NANOS_PER_SECOND);var r=$.safeAdd(this._nanos,i);return t.ofSeconds(e,r)},i.minus=function(n,t){return 1===arguments.length?this.minusDuration(n):this.minusAmountUnit(n,t)},i.minusDuration=function(n){d(n,"duration");var t=n.seconds(),i=n.nano();return t===p?this.plus(m,-i):this.plus(-t,-i)},i.minusAmountUnit=function(n,t){return d(n,"amountToSubtract"),d(t,"unit"),n===p?this.plusAmountUnit(m,t):this.plusAmountUnit(-n,t)},i.minusDays=function(n){return n===p?this.plusDays(m):this.plusDays(-n)},i.minusHours=function(n){return n===p?this.plusHours(m):this.plusHours(-n)},i.minusMinutes=function(n){return n===p?this.plusMinutes(m):this.plusMinutes(-n)},i.minusSeconds=function(n){return n===p?this.plusSeconds(m):this.plusSeconds(-n)},i.minusMillis=function(n){return n===p?this.plusMillis(m):this.plusMillis(-n)},i.minusNanos=function(n){return n===p?this.plusNanos(m):this.plusNanos(-n)},i.multipliedBy=function(n){if(0===n)return t.ZERO;if(1===n)return this;var i=$.safeMultiply(this._seconds,n),e=$.safeMultiply(this._nanos,n);return i+=$.intDiv(e,lt.NANOS_PER_SECOND),e=$.intMod(e,lt.NANOS_PER_SECOND),t.ofSeconds(i,e)},i.dividedBy=function(n){if(0===n)throw new _("Cannot divide by zero");if(1===n)return this;var i=$.intDiv(this._seconds,n),e=$.roundDown((this._seconds/n-i)*lt.NANOS_PER_SECOND),r=$.intDiv(this._nanos,n);return r=e+r,t.ofSeconds(i,r)},i.negated=function(){return this.multipliedBy(-1)},i.abs=function(){return this.isNegative()?this.negated():this},i.addTo=function(n){return d(n,"temporal"),0!==this._seconds&&(n=n.plus(this._seconds,z.SECONDS)),0!==this._nanos&&(n=n.plus(this._nanos,z.NANOS)),n},i.subtractFrom=function(n){return d(n,"temporal"),0!==this._seconds&&(n=n.minus(this._seconds,z.SECONDS)),0!==this._nanos&&(n=n.minus(this._nanos,z.NANOS)),n},i.toDays=function(){return $.intDiv(this._seconds,lt.SECONDS_PER_DAY)},i.toHours=function(){return $.intDiv(this._seconds,lt.SECONDS_PER_HOUR)},i.toMinutes=function(){return $.intDiv(this._seconds,lt.SECONDS_PER_MINUTE)},i.toMillis=function(){var n=Math.round($.safeMultiply(this._seconds,1e3));return $.safeAdd(n,$.intDiv(this._nanos,1e6))},i.toNanos=function(){var n=$.safeMultiply(this._seconds,lt.NANOS_PER_SECOND);return $.safeAdd(n,this._nanos)},i.compareTo=function(n){d(n,"otherDuration"),v(n,t,"otherDuration");var i=$.compareNumbers(this._seconds,n.seconds());return 0!==i?i:this._nanos-n.nano()},i.equals=function(n){return this===n||n instanceof t&&this.seconds()===n.seconds()&&this.nano()===n.nano()},i.toString=function(){if(this===t.ZERO)return"PT0S";var n,i=$.intDiv(this._seconds,lt.SECONDS_PER_HOUR),e=$.intDiv($.intMod(this._seconds,lt.SECONDS_PER_HOUR),lt.SECONDS_PER_MINUTE),r=$.intMod(this._seconds,lt.SECONDS_PER_MINUTE),s="PT";if(0!==i&&(s+=i+"H"),0!==e&&(s+=e+"M"),0===r&&0===this._nanos&&s.length>2)return s;if(r<0&&this._nanos>0?s+=-1===r?"-0":r+1:s+=r,this._nanos>0)for(s+=".",s+=n=(n=r<0?""+(2*lt.NANOS_PER_SECOND-this._nanos):""+(lt.NANOS_PER_SECOND+this._nanos)).slice(1,n.length);"0"===s.charAt(s.length-1);)s=s.slice(0,s.length-1);return s+"S"},i.toJSON=function(){return this.toString()},t}(y),x=function(){},z=function(n){function t(t,i){var e;return(e=n.call(this)||this)._name=t,e._duration=i,e}c(t,n);var i=t.prototype;return i.duration=function(){return this._duration},i.isDurationEstimated=function(){return this.isDateBased()||this===t.FOREVER},i.isDateBased=function(){return this.compareTo(t.DAYS)>=0&&this!==t.FOREVER},i.isTimeBased=function(){return this.compareTo(t.DAYS)<0},i.isSupportedBy=function(n){if(this===t.FOREVER)return!1;try{return n.plus(1,this),!0}catch(t){try{return n.plus(-1,this),!0}catch(n){return!1}}},i.addTo=function(n,t){return n.plus(t,this)},i.between=function(n,t){return n.until(t,this)},i.toString=function(){return this._name},i.compareTo=function(n){return this.duration().compareTo(n.duration())},t}(k),S=function(){function n(){}var t=n.prototype;return t.isDateBased=function(){w("isDateBased")},t.isTimeBased=function(){w("isTimeBased")},t.baseUnit=function(){w("baseUnit")},t.rangeUnit=function(){w("rangeUnit")},t.range=function(){w("range")},t.rangeRefinedBy=function(n){w("rangeRefinedBy")},t.getFrom=function(n){w("getFrom")},t.adjustInto=function(n,t){w("adjustInto")},t.isSupportedBy=function(n){w("isSupportedBy")},t.displayName=function(){w("displayName")},t.equals=function(n){w("equals")},t.name=function(){w("name")},n}(),j=function(){function n(n,t,i,e){f(!(n>t),"Smallest minimum value '"+n+"' must be less than largest minimum value '"+t+"'",a),f(!(i>e),"Smallest maximum value '"+i+"' must be less than largest maximum value '"+e+"'",a),f(!(t>e),"Minimum value '"+t+"' must be less than maximum value '"+e+"'",a),this._minSmallest=n,this._minLargest=t,this._maxLargest=e,this._maxSmallest=i}var t=n.prototype;return t.isFixed=function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest},t.minimum=function(){return this._minSmallest},t.largestMinimum=function(){return this._minLargest},t.maximum=function(){return this._maxLargest},t.smallestMaximum=function(){return this._maxSmallest},t.isValidValue=function(n){return this.minimum()<=n&&n<=this.maximum()},t.checkValidValue=function(n,t){return this.isValidValue(n)?n:f(!1,null!=t?"Invalid value for "+t+" (valid values "+this.toString()+"): "+n:"Invalid value (valid values "+this.toString()+"): "+n,r)},t.checkValidIntValue=function(n,t){if(!1===this.isValidIntValue(n))throw new r("Invalid int value for "+t+": "+n);return n},t.isValidIntValue=function(n){return this.isIntValue()&&this.isValidValue(n)},t.isIntValue=function(){return this.minimum()>=$.MIN_SAFE_INTEGER&&this.maximum()<=$.MAX_SAFE_INTEGER},t.equals=function(t){return t===this||t instanceof n&&this._minSmallest===t._minSmallest&&this._minLargest===t._minLargest&&this._maxSmallest===t._maxSmallest&&this._maxLargest===t._maxLargest},t.hashCode=function(){return $.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)},t.toString=function(){var n=this.minimum()+(this.minimum()!==this.largestMinimum()?"/"+this.largestMinimum():"");return(n+=" - ")+(this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/"+this.maximum():""))},n.of=function(){return 2===arguments.length?new n(arguments[0],arguments[0],arguments[1],arguments[1]):3===arguments.length?new n(arguments[0],arguments[0],arguments[1],arguments[2]):4===arguments.length?new n(arguments[0],arguments[1],arguments[2],arguments[3]):f(!1,"Invalid number of arguments "+arguments.length,a)},n}(),C=function(n){function t(t,i,e,r){var s;return(s=n.call(this)||this)._name=t,s._baseUnit=i,s._rangeUnit=e,s._range=r,s}c(t,n),t.byName=function(n){for(var i in t)if(t[i]&&t[i]instanceof t&&t[i].name()===n)return t[i]};var i=t.prototype;return i.name=function(){return this._name},i.baseUnit=function(){return this._baseUnit},i.rangeUnit=function(){return this._rangeUnit},i.range=function(){return this._range},i.displayName=function(){return this.toString()},i.checkValidValue=function(n){return this.range().checkValidValue(n,this)},i.checkValidIntValue=function(n){return this.range().checkValidIntValue(n,this)},i.isDateBased=function(){return this===t.DAY_OF_WEEK||this===t.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===t.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===t.DAY_OF_MONTH||this===t.DAY_OF_YEAR||this===t.EPOCH_DAY||this===t.ALIGNED_WEEK_OF_MONTH||this===t.ALIGNED_WEEK_OF_YEAR||this===t.MONTH_OF_YEAR||this===t.YEAR_OF_ERA||this===t.YEAR||this===t.ERA},i.isTimeBased=function(){return this===t.NANO_OF_SECOND||this===t.NANO_OF_DAY||this===t.MICRO_OF_SECOND||this===t.MICRO_OF_DAY||this===t.MILLI_OF_SECOND||this===t.MILLI_OF_DAY||this===t.SECOND_OF_MINUTE||this===t.SECOND_OF_DAY||this===t.MINUTE_OF_HOUR||this===t.MINUTE_OF_DAY||this===t.HOUR_OF_AMPM||this===t.CLOCK_HOUR_OF_AMPM||this===t.HOUR_OF_DAY||this===t.CLOCK_HOUR_OF_DAY||this===t.AMPM_OF_DAY},i.rangeRefinedBy=function(n){return n.range(this)},i.getFrom=function(n){return n.getLong(this)},i.toString=function(){return this.name()},i.equals=function(n){return this===n},i.adjustInto=function(n,t){return n.with(this,t)},i.isSupportedBy=function(n){return n.isSupported(this)},t}(S),A=function(){function n(){}return n.zoneId=function(){return n.ZONE_ID},n.chronology=function(){return n.CHRONO},n.precision=function(){return n.PRECISION},n.zone=function(){return n.ZONE},n.offset=function(){return n.OFFSET},n.localDate=function(){return n.LOCAL_DATE},n.localTime=function(){return n.LOCAL_TIME},n}(),E=function(){function n(){}var t=n.prototype;return t.query=function(n){return n===A.zoneId()||n===A.chronology()||n===A.precision()?null:n.queryFrom(this)},t.get=function(n){return this.range(n).checkValidIntValue(this.getLong(n),n)},t.range=function(n){if(n instanceof C){if(this.isSupported(n))return n.range();throw new u("Unsupported field: "+n)}return n.rangeRefinedBy(this)},n}(),T=function(n){function t(){return n.apply(this,arguments)||this}return c(t,n),t.prototype.queryFrom=function(n){w("queryFrom")},t}(g);function M(n,t){var i=function(n){function t(){return n.apply(this,arguments)||this}return c(t,n),t}(T);return i.prototype.queryFrom=t,new i(n)}var L,D,O=function(n){function t(t,i){var e;return(e=n.call(this)||this)._ordinal=t,e._name=i,e}c(t,n);var i=t.prototype;return i.ordinal=function(){return this._ordinal},i.name=function(){return this._name},t.values=function(){return L.slice()},t.valueOf=function(n){for(var i=0;i=363){var e=n.dayOfWeek().ordinal();(i=i-363-(n.isLeapYear()?1:0))-e>=0&&t++}return t},i.displayName=function(){return this.toString()},i.resolve=function(){return null},i.name=function(){return this.toString()},t}(S),an=function(n){function t(){return n.apply(this,arguments)||this}c(t,n);var i=t.prototype;return i.toString=function(){return"DayOfQuarter"},i.baseUnit=function(){return z.DAYS},i.rangeUnit=function(){return mn},i.range=function(){return j.of(1,90,92)},i.isSupportedBy=function(n){return n.isSupported(C.DAY_OF_YEAR)&&n.isSupported(C.MONTH_OF_YEAR)&&n.isSupported(C.YEAR)&&this._isIso(n)},i.rangeRefinedBy=function(n){if(!1===n.isSupported(this))throw new u("Unsupported field: DayOfQuarter");var t=n.getLong(dn);if(1===t){var i=n.getLong(C.YEAR);return it.isLeapYear(i)?j.of(1,91):j.of(1,90)}return 2===t?j.of(1,91):3===t||4===t?j.of(1,92):this.range()},i.getFrom=function(n){if(!1===n.isSupported(this))throw new u("Unsupported field: DayOfQuarter");var t=n.get(C.DAY_OF_YEAR),i=n.get(C.MONTH_OF_YEAR),e=n.getLong(C.YEAR);return t-un[$.intDiv(i-1,3)+(it.isLeapYear(e)?4:0)]},i.adjustInto=function(n,t){var i=this.getFrom(n);return this.range().checkValidValue(t,this),n.with(C.DAY_OF_YEAR,n.getLong(C.DAY_OF_YEAR)+(t-i))},i.resolve=function(n,t,i){var e=n.get(C.YEAR),r=n.get(dn);if(null==e||null==r)return null;var s,u=C.YEAR.checkValidIntValue(e),_=n.get(fn);if(i===U.LENIENT){var a=r;s=(s=(s=ot.of(u,1,1)).plusMonths($.safeMultiply($.safeSubtract(a,1),3))).plusDays($.safeSubtract(_,1))}else{var o=dn.range().checkValidIntValue(r,dn);if(i===U.STRICT){var h=92;1===o?h=it.isLeapYear(u)?91:90:2===o&&(h=91),j.of(1,h).checkValidValue(_,this)}else this.range().checkValidValue(_,this);s=ot.of(u,3*(o-1)+1,1).plusDays(_-1)}return n.remove(this),n.remove(C.YEAR),n.remove(dn),s},t}(_n),on=function(n){function t(){return n.apply(this,arguments)||this}c(t,n);var i=t.prototype;return i.toString=function(){return"QuarterOfYear"},i.baseUnit=function(){return mn},i.rangeUnit=function(){return z.YEARS},i.range=function(){return j.of(1,4)},i.isSupportedBy=function(n){return n.isSupported(C.MONTH_OF_YEAR)&&this._isIso(n)},i.rangeRefinedBy=function(n){return this.range()},i.getFrom=function(n){if(!1===n.isSupported(this))throw new u("Unsupported field: QuarterOfYear");var t=n.getLong(C.MONTH_OF_YEAR);return $.intDiv(t+2,3)},i.adjustInto=function(n,t){var i=this.getFrom(n);return this.range().checkValidValue(t,this),n.with(C.MONTH_OF_YEAR,n.getLong(C.MONTH_OF_YEAR)+3*(t-i))},t}(_n),hn=function(n){function t(){return n.apply(this,arguments)||this}c(t,n);var i=t.prototype;return i.toString=function(){return"WeekOfWeekBasedYear"},i.baseUnit=function(){return z.WEEKS},i.rangeUnit=function(){return bn},i.range=function(){return j.of(1,52,53)},i.isSupportedBy=function(n){return n.isSupported(C.EPOCH_DAY)&&this._isIso(n)},i.rangeRefinedBy=function(n){if(!1===n.isSupported(this))throw new u("Unsupported field: WeekOfWeekBasedYear");return _n._getWeekRangeByLocalDate(ot.from(n))},i.getFrom=function(n){if(!1===n.isSupported(this))throw new u("Unsupported field: WeekOfWeekBasedYear");return _n._getWeek(ot.from(n))},i.adjustInto=function(n,t){return this.range().checkValidValue(t,this),n.plus($.safeSubtract(t,this.getFrom(n)),z.WEEKS)},i.resolve=function(n,t,i){var e=n.get(wn),r=n.get(C.DAY_OF_WEEK);if(null==e||null==r)return null;var s,u=wn.range().checkValidIntValue(e,wn),_=n.get(vn);if(i===U.LENIENT){var a=r,o=0;a>7?(o=$.intDiv(a-1,7),a=$.intMod(a-1,7)+1):a<1&&(o=$.intDiv(a,7)-1,a=$.intMod(a,7)+7),s=ot.of(u,1,4).plusWeeks(_-1).plusWeeks(o).with(C.DAY_OF_WEEK,a)}else{var h=C.DAY_OF_WEEK.checkValidIntValue(r);if(i===U.STRICT){var c=ot.of(u,1,4);_n._getWeekRangeByLocalDate(c).checkValidValue(_,this)}else this.range().checkValidValue(_,this);s=ot.of(u,1,4).plusWeeks(_-1).with(C.DAY_OF_WEEK,h)}return n.remove(this),n.remove(wn),n.remove(C.DAY_OF_WEEK),s},i.displayName=function(){return"Week"},t}(_n),cn=function(n){function t(){return n.apply(this,arguments)||this}c(t,n);var i=t.prototype;return i.toString=function(){return"WeekBasedYear"},i.baseUnit=function(){return bn},i.rangeUnit=function(){return z.FOREVER},i.range=function(){return C.YEAR.range()},i.isSupportedBy=function(n){return n.isSupported(C.EPOCH_DAY)&&this._isIso(n)},i.rangeRefinedBy=function(n){return C.YEAR.range()},i.getFrom=function(n){if(!1===n.isSupported(this))throw new u("Unsupported field: WeekBasedYear");return _n._getWeekBasedYear(ot.from(n))},i.adjustInto=function(n,t){if(!1===this.isSupportedBy(n))throw new u("Unsupported field: WeekBasedYear");var i=this.range().checkValidIntValue(t,wn),e=ot.from(n),r=e.get(C.DAY_OF_WEEK),s=_n._getWeek(e);53===s&&52===_n._getWeekRangeByYear(i)&&(s=52);var _=ot.of(i,1,4),a=r-_.get(C.DAY_OF_WEEK)+7*(s-1);return _=_.plusDays(a),n.with(_)},t}(_n),ln=function(n){function t(t,i){var e;return(e=n.call(this)||this)._name=t,e._duration=i,e}c(t,n);var i=t.prototype;return i.duration=function(){return this._duration},i.isDurationEstimated=function(){return!0},i.isDateBased=function(){return!0},i.isTimeBased=function(){return!1},i.isSupportedBy=function(n){return n.isSupported(C.EPOCH_DAY)},i.addTo=function(n,t){switch(this){case bn:var i=$.safeAdd(n.get(wn),t);return n.with(wn,i);case mn:return n.plus($.intDiv(t,256),z.YEARS).plus(3*$.intMod(t,256),z.MONTHS);default:throw new o("Unreachable")}},i.between=function(n,t){switch(this){case bn:return $.safeSubtract(t.getLong(wn),n.getLong(wn));case mn:return $.intDiv(n.until(t,z.MONTHS),3);default:throw new o("Unreachable")}},i.toString=function(){return name},t}(k),fn=null,dn=null,vn=null,wn=null,bn=null,mn=null,pn=function(){function n(n,t,i,e){this._zeroDigit=n,this._zeroDigitCharCode=n.charCodeAt(0),this._positiveSign=t,this._negativeSign=i,this._decimalSeparator=e}var t=n.prototype;return t.positiveSign=function(){return this._positiveSign},t.withPositiveSign=function(t){return t===this._positiveSign?this:new n(this._zeroDigit,t,this._negativeSign,this._decimalSeparator)},t.negativeSign=function(){return this._negativeSign},t.withNegativeSign=function(t){return t===this._negativeSign?this:new n(this._zeroDigit,this._positiveSign,t,this._decimalSeparator)},t.zeroDigit=function(){return this._zeroDigit},t.withZeroDigit=function(t){return t===this._zeroDigit?this:new n(t,this._positiveSign,this._negativeSign,this._decimalSeparator)},t.decimalSeparator=function(){return this._decimalSeparator},t.withDecimalSeparator=function(t){return t===this._decimalSeparator?this:new n(this._zeroDigit,this._positiveSign,this._negativeSign,t)},t.convertToDigit=function(n){var t=n.charCodeAt(0)-this._zeroDigitCharCode;return t>=0&&t<=9?t:-1},t.convertNumberToI18N=function(n){if("0"===this._zeroDigit)return n;for(var t=this._zeroDigitCharCode-"0".charCodeAt(0),i="",e=0;et.length||i<0)),!1===n.subSequenceEquals(t,i,this._literal,0,this._literal.length)?~i:i+this._literal.length},t.toString=function(){return"'"+this._literal.replace("'","''")+"'"},n}(),On=function(){function n(){}return n.getRules=function(n){throw new r("unsupported ZoneId:"+n)},n.getAvailableZoneIds=function(){return[]},n}(),Nn=function(n){function t(t,i){var e;return(e=n.call(this)||this)._id=t,e._rules=i,e}c(t,n),t.ofId=function(n){return new t(n,On.getRules(n))};var i=t.prototype;return i.id=function(){return this._id},i.rules=function(){return this._rules},t}(G),In=function(){function n(n,t){this.query=n,this.description=t}var t=n.prototype;return t.print=function(n,t){var i=n.getValueQuery(this.query);return null!=i&&(t.append(i.id()),!0)},t.parse=function(n,t,i){var e=t.length;if(i>e)return~i;if(i===e)return~i;var r=t.charAt(i);if("+"===r||"-"===r){var s=n.copy(),u=Cn.INSTANCE_ID.parse(s,t,i);if(u<0)return u;var _=s.getParsed(C.OFFSET_SECONDS),a=Q.ofTotalSeconds(_);return n.setParsedZone(a),u}if(e>=i+2){var o=t.charAt(i+1);if(n.charEquals(r,"U")&&n.charEquals(o,"T"))return e>=i+3&&n.charEquals(t.charAt(i+2),"C")?this._parsePrefixedOffset(n,t,i,i+3):this._parsePrefixedOffset(n,t,i,i+2);if(n.charEquals(r,"G")&&e>=i+3&&n.charEquals(o,"M")&&n.charEquals(t.charAt(i+2),"T"))return this._parsePrefixedOffset(n,t,i,i+3)}if("SYSTEM"===t.substr(i,6))return n.setParsedZone(G.systemDefault()),i+6;if(n.charEquals(r,"Z"))return n.setParsedZone(Q.UTC),i+1;var h=On.getAvailableZoneIds();Fn.size!==h.length&&(Fn=Pn.createTreeMap(h));for(var c=e-i,l=Fn.treeMap,f=null,d=0;null!=l;){var v=t.substr(i,Math.min(l.length,c));null!=(l=l.get(v))&&l.isLeaf&&(f=v,d=l.length)}return null!=f?(n.setParsedZone(Nn.ofId(f)),i+d):~i},t._parsePrefixedOffset=function(n,t,i,e){var r=t.substring(i,e).toUpperCase(),s=n.copy();if(e>3].ub((7&o)<<3).wb(new T(255,0)).y6(new T(128,0))<0){var h=e[o],c=S(h,Yn()),l=c^c<<16,f=_n(n,l>>>7|0),d=M(127&l),v=n.nh_1,w=f>>3,b=(7&f)<<3;v[w]=v[w].wb(new T(255,0).tb(b).sb()).xb(d.tb(b));var m=n.qh_1,p=((f-Nn()|0)&m)+(Nn()&m)|0,$=p>>3,g=(7&p)<<3;v[$]=v[$].wb(new T(255,0).tb(g).sb()).xb(d.tb(g)),u[f]=h,_[f]=r[o]}}while(a>3].ub((7&q)<<3).wb(new T(255,0)).equals(Jn())?1:0,y.xh_1=k-g|0;var x=p,z=M(s),j=n.nh_1,C=x>>3,A=(7&x)<<3;j[C]=j[C].wb(new T(255,0).tb(A).sb()).xb(z.tb(A));var E=n.qh_1,I=((x-Nn()|0)&E)+(Nn()&E)|0,P=I>>3,R=(7&I)<<3;return j[P]=j[P].wb(new T(255,0).tb(R).sb()).xb(z.tb(R)),~p}function _n(n,t){for(var i=n.qh_1,e=t&i,r=0;;){var s=n.nh_1,u=e>>3,_=(7&e)<<3,a=s[u].vb(_).xb(s[u+1|0].tb(64-_|0).wb(M(_).a7().ub(63))),o=a.wb(a.sb().tb(7)).wb(Vn());if(!o.equals(new T(0,0)))return(e+(L(o)>>3)|0)&i;e=(e+(r=r+Un()|0)|0)&i}}function an(n){if(n=n===I?Ln():n,on.call(this),this.xh_1=0,!(n>=0))throw R(P("Capacity must be a positive value."));sn(this,Dn(n))}function on(){this.nh_1=Mn(),this.oh_1=vn(),this.ph_1=vn(),this.qh_1=0,this.rh_1=0}function hn(n,t){var i;if(t>0){var e=On(t);i=Math.max(7,e)}else i=0;var r=i;n.fi_1=r,function(n,t){var i,e=n;if(0===t)i=Mn();else{var r=(-8&(7+((t+1|0)+Nn()|0)|0))>>3,s=C(r);A(s,In()),i=s}e.ci_1=i;var u=n.ci_1,_=Pn(),a=t>>3,o=(7&t)<<3;u[a]=u[a].wb(new T(255,0).tb(o).sb()).xb(_.tb(o)),function(n){n.mi_1=Rn(n.yh())-n.gi_1|0}(n)}(n,r),n.di_1=new Int32Array(r),n.ei_1=W(Array(r),null)}function cn(n,t){var i=S(t,Yn()),e=i^i<<16,r=e>>>7|0,s=127&e,u=n.fi_1,_=r&u,a=0;n:for(;;){for(var o=n.ci_1,h=_>>3,c=(7&_)<<3,l=o[h].vb(c).xb(o[h+1|0].tb(64-c|0).wb(M(c).a7().ub(63))),f=Xn().ha(M(s)),d=l.yb(f),v=d.ob(Xn()).wb(d.sb()).wb(Vn());!v.equals(new T(0,0));){var w=(_+(L(v)>>3)|0)&u;if(n.di_1[w]===t)return w;var b=v;v=b.wb(b.ob(new T(1,0)))}if(!l.wb(l.sb().tb(6)).wb(Vn()).equals(new T(0,0)))break n;_=(_+(a=a+Un()|0)|0)&u}var m,p=ln(n,r);if(0===n.mi_1){var $=p;m=!n.ci_1[$>>3].ub((7&$)<<3).wb(new T(255,0)).equals(Fn())}else m=!1;m&&(function(n){if(n.fi_1>Un()){var t=n.gi_1,i=D(M(t)),e=D(new T(32,0)),r=D(O(i).ha(O(e))),s=n.fi_1,u=D(M(s)),_=D(new T(25,0)),a=D(O(u).ha(O(_)));N(O(r),O(a))}!function(n,t){var i=n.ci_1,e=n.di_1,r=n.ei_1,s=n.fi_1;hn(n,t);var u=n.di_1,_=n.ei_1,a=0;if(a>3].ub((7&o)<<3).wb(new T(255,0)).y6(new T(128,0))<0){var h=e[o],c=S(h,Yn()),l=c^c<<16,f=ln(n,l>>>7|0),d=M(127&l),v=n.ci_1,w=f>>3,b=(7&f)<<3;v[w]=v[w].wb(new T(255,0).tb(b).sb()).xb(d.tb(b));var m=n.fi_1,p=((f-Nn()|0)&m)+(Nn()&m)|0,$=p>>3,g=(7&p)<<3;v[$]=v[$].wb(new T(255,0).tb(g).sb()).xb(d.tb(g)),u[f]=h,_[f]=r[o]}}while(a>3].ub((7&q)<<3).wb(new T(255,0)).equals(Jn())?1:0,y.mi_1=k-g|0;var x=p,z=M(s),j=n.ci_1,C=x>>3,A=(7&x)<<3;j[C]=j[C].wb(new T(255,0).tb(A).sb()).xb(z.tb(A));var E=n.fi_1,I=((x-Nn()|0)&E)+(Nn()&E)|0,P=I>>3,R=(7&I)<<3;return j[P]=j[P].wb(new T(255,0).tb(R).sb()).xb(z.tb(R)),p}function ln(n,t){for(var i=n.fi_1,e=t&i,r=0;;){var s=n.ci_1,u=e>>3,_=(7&e)<<3,a=s[u].vb(_).xb(s[u+1|0].tb(64-_|0).wb(M(_).a7().ub(63))),o=a.wb(a.sb().tb(7)).wb(Vn());if(!o.equals(new T(0,0)))return(e+(L(o)>>3)|0)&i;e=(e+(r=r+Un()|0)|0)&i}}function fn(n){if(n=n===I?Ln():n,dn.call(this),this.mi_1=0,!(n>=0))throw R(P("Capacity must be a positive value."));hn(this,Dn(n))}function dn(){this.ci_1=Mn(),this.di_1=vn(),this.ei_1=_t(),this.fi_1=0,this.gi_1=0}function vn(){return r||(r=!0,new mn(0),e=new Int32Array(0)),e}function wn(){this.pi_1=Mn(),this.qi_1=vn(),this.ri_1=0,this.si_1=0}function bn(n,t){var i;if(t>0){var e=On(t);i=Math.max(7,e)}else i=0;var r=i;n.ri_1=r,function(n,t){var i,e=n;if(0===t)i=Mn();else{var r=(-8&(7+((t+1|0)+Nn()|0)|0))>>3,s=C(r);A(s,In()),i=s}e.pi_1=i;var u=n.pi_1,_=Pn(),a=t>>3,o=(7&t)<<3;u[a]=u[a].wb(new T(255,0).tb(o).sb()).xb(_.tb(o)),function(n){n.zi_1=Rn(n.yh())-n.si_1|0}(n)}(n,r),n.qi_1=new Int32Array(r)}function mn(n){if(n=n===I?Ln():n,wn.call(this),this.zi_1=0,!(n>=0))throw R(P("Capacity must be a positive value."));bn(this,Dn(n))}function pn(){return u||(u=!0,new qn(0),s=C(0)),s}function $n(){this.aj_1=Mn(),this.bj_1=pn(),this.cj_1=0,this.dj_1=0}function gn(n,t){var i;if(t>0){var e=On(t);i=Math.max(7,e)}else i=0;var r=i;n.cj_1=r,function(n,t){var i,e=n;if(0===t)i=Mn();else{var r=(-8&(7+((t+1|0)+Nn()|0)|0))>>3,s=C(r);A(s,In()),i=s}e.aj_1=i;var u=n.aj_1,_=Pn(),a=t>>3,o=(7&t)<<3;u[a]=u[a].wb(new T(255,0).tb(o).sb()).xb(_.tb(o)),function(n){n.kj_1=Rn(n.yh())-n.dj_1|0}(n)}(n,r),n.bj_1=C(r)}function yn(n,t){var i=S(t.hashCode(),Yn()),e=i^i<<16,r=e>>>7|0,s=127&e,u=n.cj_1,_=r&u,a=0;n:for(;;){for(var o=n.aj_1,h=_>>3,c=(7&_)<<3,l=o[h].vb(c).xb(o[h+1|0].tb(64-c|0).wb(M(c).a7().ub(63))),f=Xn().ha(M(s)),d=l.yb(f),v=d.ob(Xn()).wb(d.sb()).wb(Vn());!v.equals(new T(0,0));){var w=(_+(L(v)>>3)|0)&u;if(n.bj_1[w].equals(t))return w;var b=v;v=b.wb(b.ob(new T(1,0)))}if(!l.wb(l.sb().tb(6)).wb(Vn()).equals(new T(0,0)))break n;_=(_+(a=a+Un()|0)|0)&u}var m,p=kn(n,r);if(0===n.kj_1){var $=p;m=!n.aj_1[$>>3].ub((7&$)<<3).wb(new T(255,0)).equals(Fn())}else m=!1;m&&(function(n){if(n.cj_1>Un()){var t=n.dj_1,i=D(M(t)),e=D(new T(32,0)),r=D(O(i).ha(O(e))),s=n.cj_1,u=D(M(s)),_=D(new T(25,0)),a=D(O(u).ha(O(_)));N(O(r),O(a))}!function(n,t){var i=n.aj_1,e=n.bj_1,r=n.cj_1;gn(n,t);var s=n.bj_1,u=0;if(u>3].ub((7&o)<<3).wb(new T(255,0)).y6(new T(128,0))<0){var h=e[o],c=null==h?null:K(h),l=S(null==c?0:c,Yn()),f=l^l<<16,d=Cn(n,f>>>7|0),v=M(127&f),w=n.nj_1,b=d>>3,m=(7&d)<<3;w[b]=w[b].wb(new T(255,0).tb(m).sb()).xb(v.tb(m));var p=n.qj_1,$=((d-Nn()|0)&p)+(Nn()&p)|0,g=$>>3,y=(7&$)<<3;w[g]=w[g].wb(new T(255,0).tb(y).sb()).xb(v.tb(y)),u[d]=h,_[d]=r[o]}}while(a>3].ub((7&x)<<3).wb(new T(255,0)).equals(Jn())?1:0,k.xj_1=q-y|0;var z=$,j=M(u),C=n.nj_1,A=z>>3,E=(7&z)<<3;C[A]=C[A].wb(new T(255,0).tb(E).sb()).xb(j.tb(E));var I=n.qj_1,P=((z-Nn()|0)&I)+(Nn()&I)|0,R=P>>3,F=(7&P)<<3;return C[R]=C[R].wb(new T(255,0).tb(F).sb()).xb(j.tb(F)),~$}function Cn(n,t){for(var i=n.qj_1,e=t&i,r=0;;){var s=n.nj_1,u=e>>3,_=(7&e)<<3,a=s[u].vb(_).xb(s[u+1|0].tb(64-_|0).wb(M(_).a7().ub(63))),o=a.wb(a.sb().tb(7)).wb(Vn());if(!o.equals(new T(0,0)))return(e+(L(o)>>3)|0)&i;e=(e+(r=r+Un()|0)|0)&i}}function An(n){if(n=n===I?Ln():n,En.call(this),this.xj_1=0,!(n>=0))throw R(P("Capacity must be a positive value."));Sn(this,Dn(n))}function En(){this.nj_1=Mn(),this.oj_1=_t(),this.pj_1=vn(),this.qj_1=0,this.rj_1=0}function Tn(){h||(h=!0,o=new An(0))}function Mn(){return nt(),c}function Ln(){return l}function Dn(n){return nt(),7===n?8:n+((n-1|0)/7|0)|0}function On(n){return nt(),n>0?-1>>>j(n)|0:0}function Nn(){return f}function In(){return d}function Pn(){return v}function Rn(n){return nt(),7===n?6:n-(n/8|0)|0}function Fn(){return w}function Un(){return b}function Bn(n){return nt(),0===n?6:S(n,2)+1|0}function Vn(){return m}function Yn(){return p}function Hn(n,t){var i;if(t>0){var e=On(t);i=Math.max(7,e)}else i=0;var r=i;n.hk_1=r,function(n,t){var i,e=n;if(0===t)i=Mn();else{var r=C((-8&(7+(7+(t+1|0)|0)|0))>>3);A(r,new T(-2139062144,-2139062144)),i=r}e.ek_1=i;var s=n.ek_1,u=new T(255,0),_=t>>3,a=(7&t)<<3;s[_]=s[_].wb(new T(255,0).tb(a).sb()).xb(u.tb(a)),Wn(n)}(n,r),n.fk_1=W(Array(r),null),n.gk_1=W(Array(r),null)}function Wn(n){n.ok_1=Rn(n.yh())-n.ik_1|0}function Gn(n,t){for(var i=n.hk_1,e=t&i,r=0;;){var s=n.ek_1,u=e>>3,_=(7&e)<<3,a=s[u].vb(_).xb(s[u+1|0].tb(64-_|0).wb(M(_).a7().ub(63))),o=a.wb(a.sb().tb(7)).wb(new T(-2139062144,-2139062144));if(!o.equals(new T(0,0)))return(e+(L(o)>>3)|0)&i;e=(e+(r=r+8|0)|0)&i}}function Kn(n){if(n.hk_1>8){var t=n.ik_1,i=D(M(t)),e=D(new T(32,0)),r=D(O(i).ha(O(e))),s=n.hk_1,u=D(M(s)),_=D(new T(25,0)),a=D(O(u).ha(O(_)));N(O(r),O(a))}!function(n,t){var i=n.ek_1,e=n.fk_1,r=n.gk_1,s=n.hk_1;Hn(n,t);var u=n.fk_1,_=n.gk_1,a=0;if(a>3].ub((7&o)<<3).wb(new T(255,0)).y6(new T(128,0))<0){var h=e[o],c=null==h?null:K(h),l=S(null==c?0:c,-862048943),f=l^l<<16,d=Gn(n,f>>>7|0),v=M(127&f),w=n.ek_1,b=d>>3,m=(7&d)<<3;w[b]=w[b].wb(new T(255,0).tb(m).sb()).xb(v.tb(m));var p=n.hk_1,$=((d-7|0)&p)+(7&p)|0,g=$>>3,y=(7&$)<<3;w[g]=w[g].wb(new T(255,0).tb(y).sb()).xb(v.tb(y)),u[d]=h,_[d]=r[o]}}while(a=0))throw R(P("Capacity must be a positive value."));Hn(this,Dn(n))}function Xn(){return $}function Jn(){return g}function Qn(){this.ek_1=Mn(),this.fk_1=_t(),this.gk_1=_t(),this.hk_1=0,this.ik_1=0}function nt(){y||(y=!0,c=J([new T(-2139062017,-2139062144),new T(-1,-1)]),new Zn(0))}function tt(){this.sk_1=Mn(),this.tk_1=_t(),this.uk_1=0,this.vk_1=0}function it(n,t){var i;if(t>0){var e=On(t);i=Math.max(7,e)}else i=0;var r=i;n.uk_1=r,function(n,t){var i,e=n;if(0===t)i=Mn();else{var r=(-8&(7+((t+1|0)+Nn()|0)|0))>>3,s=C(r);A(s,In()),i=s}e.sk_1=i;var u=n.sk_1,_=Pn(),a=t>>3,o=(7&t)<<3;u[a]=u[a].wb(new T(255,0).tb(o).sb()).xb(_.tb(o)),et(n)}(n,r),n.tk_1=W(Array(r),null)}function et(n){n.cl_1=Rn(n.yh())-n.vk_1|0}function rt(n,t){var i=null==t?null:K(t),e=S(null==i?0:i,Yn()),r=e^e<<16,s=r>>>7|0,u=127&r,_=n.uk_1,a=s&_,o=0;n:for(;;){for(var h=n.sk_1,c=a>>3,l=(7&a)<<3,f=h[c].vb(l).xb(h[c+1|0].tb(64-l|0).wb(M(l).a7().ub(63))),d=Xn().ha(M(u)),v=f.yb(d),w=v.ob(Xn()).wb(v.sb()).wb(Vn());!w.equals(new T(0,0));){var b=(a+(L(w)>>3)|0)&_;if(Z(n.tk_1[b],t))return b;var m=w;w=m.wb(m.ob(new T(1,0)))}if(!f.wb(f.sb().tb(6)).wb(Vn()).equals(new T(0,0)))break n;a=(a+(o=o+Un()|0)|0)&_}var p,$=st(n,s);if(0===n.cl_1){var g=$;p=!n.sk_1[g>>3].ub((7&g)<<3).wb(new T(255,0)).equals(Fn())}else p=!1;p&&(function(n){if(n.uk_1>Un()){var t=n.vk_1,i=D(M(t)),e=D(new T(32,0)),r=D(O(i).ha(O(e))),s=n.uk_1,u=D(M(s)),_=D(new T(25,0)),a=D(O(u).ha(O(_)));N(O(r),O(a))}!function(n,t){var i=n.sk_1,e=n.tk_1,r=n.uk_1;it(n,t);var s=n.tk_1,u=0;if(un.p86_1.n(u))&&(e=!0,i.k87(u,nn(i.n(u),n.o86_1.n(u),n.p86_1.n(u))))}while(r>15),A=o;S=null!=h&&A instanceof Ci&&!J(A.a89_1,h)?Ai(A.y88_1,A.z88_1,h):A;var E=$n(S,f,0);f.q1h(728531669),fn(f,"CC(remember):AnimateAsState.kt#9igjgp");var T,M=f.g1v();if(M===pn().f1o_1){gn();var L=yn(-1);f.m1v(L),T=L}else T=M;var D=null==T||null!=T?T:hn();f.s1h();var O,N,I=D;kn((O=I,N=n,function(){return O.u13(N),X}),f,0),qn(I,function(n,t,i,e,r){var s=new pi(n,t,i,e,r),u=function(n,t){return s.f1c(n,t)};return u.$arity=1,u}(I,j,E,C,null),f,72);var P=y.s2(),R=null==P?j.v88():P;return vn()&&mn(),f.s1h(),R}function bi(n,t,i,e,r){this.j89_1=n,this.k89_1=t,this.l89_1=i,this.m89_1=e,en.call(this,r)}function mi(n,t,i,e,r){var s=new bi(n,t,i,e,r),u=function(n,t){return s.f1c(n,t)};return u.$arity=1,u}function pi(n,t,i,e,r){this.w89_1=n,this.x89_1=t,this.y89_1=i,this.z89_1=e,en.call(this,r)}function $i(){m||(m=!0,Ai(),b=Ai(Q,Q,new bn((wn(),gs(),St(.1)))),Ai(Q,Q,new Mn((Tn(),gs(),Lt(.5,.5)))),Ai(Q,Q,new Dn((Ln(),gs(),Nt(.5,.5)))),Ai(Q,Q,(On(),gs(),gs(),W)),Ai(Q,Q,(gs(),1)),Ai(Q,Q,new In((Nn(),gs(),Ft(1,1)))),Ai(Q,Q,new Rn((Pn(),gs(),Vt(1,1)))))}function gi(){return p}function yi(n,t,i,e,r){return function(n,t,i,e,r,s){return r=r===Q?null:r,ki.call(s,n.c8a(t),t,i,e,r),s}(n,t,i,e,r,Fn(rn(ki)))}function ki(n,t,i,e,r){r=r===Q?null:r,this.d8a_1=n,this.e8a_1=t,this.f8a_1=i,this.g8a_1=e,this.h8a_1=this.e8a_1.j87()(this.f8a_1),this.i8a_1=this.e8a_1.j87()(this.g8a_1);var s=null==r?null:ee(r);this.j8a_1=null==s?ie(this.e8a_1.j87()(this.f8a_1)):s,this.k8a_1=this.d8a_1.m8a(this.h8a_1,this.i8a_1,this.j8a_1),this.l8a_1=this.d8a_1.n8a(this.h8a_1,this.i8a_1,this.j8a_1)}function qi(n,t,i,e){return function(n,t,i,e,r){return xi.call(r,n.c8a(t),t,i,e),r}(n,t,i,e,Fn(rn(xi)))}function xi(n,t,i,e){this.w8a_1=n,this.x8a_1=t,this.y8a_1=i,this.z8a_1=this.x8a_1.j87()(this.y8a_1),this.a8b_1=ee(e),this.c8b_1=this.x8a_1.l87()(this.w8a_1.f8b(this.z8a_1,e)),this.e8b_1=!1,this.d8b_1=this.w8a_1.g8b(this.z8a_1,e),this.b8b_1=ee(this.w8a_1.h8b(this.d8b_1,this.z8a_1,e));var r=0,s=this.b8b_1.m();if(r1?function(n,t,i,e,r){var s,u=n.x8c(),_=t.x8c(),a=(u*i-e)/(u-_),o=i-a,h=r/o,c=Math.abs(h),l=Math.log(c)/u,f=r/a,d=Math.abs(f),v=Math.log(d)/_,w=dt(l)?dt(v)?Math.max(l,v):l:v,b=o*u/(-a*_),m=Math.log(b)/(_-u);if(vt(m)||m<=0)s=-r;else if(m>0&&-function(n,t,i,e,r){var s=t*i,u=r*i;return n*Math.exp(s)+e*Math.exp(u)}(o,u,m,a,_)=0?u:_}return e},rn(hs).p8a=function(){return!0},rn(hs).r8a=function(n,t,i,e){return this.y8k_1.r8a(as(this,n),t,i,os(this,n,t,e,i))},rn(hs).v8a=function(n,t,i,e){return this.y8k_1.v8a(as(this,n),t,i,os(this,n,t,e,i))},rn(hs).m8a=function(n,t,i){return Wt(),new tn(-1,2147483647)},rn(vs).d8l=function(){return this.f8l_1},rn(vs).c8l=function(){return this.g8l_1},rn(vs).r8a=function(n,t,i,e){var r=bs(this,n.ga(gi())).ac();if(this.e8l_1.w2(r))return Gt(this.e8l_1,r).me_1;if(r>=this.f8l_1)return i;if(r<=0)return t;for(var s=0,u=t,_=i,a=this.f8l_1,o=le(),h=this.e8l_1.o2().o();h.d1();){var c=h.f1(),l=c.r2(),f=c.s2();r>l&&l>=s?(s=l,u=f.me_1,o=f.ne_1):r