code-playpad 0.7.0 → 0.9.0
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.
- package/JAVA-COMPATIBILITY.md +12 -12
- package/README.md +104 -14
- package/dist/COMPILER-LICENSE-AUDIT.md +104 -0
- package/dist/COMPILER-NOTICES.txt +16973 -0
- package/dist/THIRD-PARTY-NOTICES.txt +102 -0
- package/dist/cdn.js +2 -2
- package/dist/compiler-license-manifest.json +198 -0
- package/dist/{config-D9w0xYhX.js → config-cwuPIQ48.js} +1 -1
- package/dist/cpp-D2TrExLz.js +1 -0
- package/dist/cpp-DakNa4ys.js +6 -0
- package/dist/dist--J_vhCIU.js +14 -0
- package/dist/{dist-B5vq9x6M.js → dist-BIgiGgKu.js} +1 -1
- package/dist/dist-BNvM_BAY.js +6 -0
- package/dist/{dist-XlpaG2JF.js → dist-BkpKCrXQ.js} +1 -1
- package/dist/{dist-BKRQwpg6.js → dist-CJxiVI4a.js} +1 -1
- package/dist/dist-CNOK8CHE.js +6 -0
- package/dist/dist-D25hs99E.js +10 -0
- package/dist/dist-D2igTc4m.js +6 -0
- package/dist/{dist-CqpVTRAq.js → dist-D7jBL3Ib.js} +9 -9
- package/dist/dist-DXjodKfp.js +6 -0
- package/dist/dist-DfFrsBkU.js +8 -0
- package/dist/dist-Vr-fb58P.js +12 -0
- package/dist/{element-DaStU7U7.js → element-BQWrbSEp.js} +7 -7
- package/dist/element.js +1 -1
- package/dist/{hints-v5iHTd1l.js → hints-CCMgezw9.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/java-DeBiVPXO.js +6 -0
- package/dist/java-Xf1xYcVv.js +1 -0
- package/dist/{java-library-bitset.generated-Duwl7F-b.js → java-library-bitset.generated-C3m-nf8F.js} +1 -1
- package/dist/{java-library-math.generated-DmUvund7.js → java-library-math.generated-BQwpn8sQ.js} +1 -1
- package/dist/{java-library-regex.generated-a8crcad3.js → java-library-regex.generated-ItYSF2aV.js} +1 -1
- package/dist/java-library-time.generated-Dl0XA7nZ.js +6 -0
- package/dist/java-library.generated-B7ib0gOX.js +6 -0
- package/dist/{javascript-CSfl5gbA.js → javascript-CTY3U1Mc.js} +4 -2
- package/dist/{javascript-CX-lsX2u.js → javascript-DkarEcEB.js} +4 -2
- package/dist/{pyodide-Crdd9em4.js → pyodide-B1U3JD9Z.js} +2 -2
- package/dist/{pyodide-CdDlM0du.js → pyodide-BGBI232i.js} +1 -1
- package/dist/react.js +1 -1
- package/dist/runtime/compiler-assets.d.ts +5 -0
- package/dist/runtime/compiler-cache.d.ts +9 -0
- package/dist/runtime/config.d.ts +11 -0
- package/dist/runtime/cpp/assets.d.ts +6 -0
- package/dist/runtime/cpp/project.d.ts +9 -0
- package/dist/runtime/cpp/worker.d.ts +1 -0
- package/dist/runtime/cpp-worker.generated.d.ts +1 -0
- package/dist/runtime/cpp.d.ts +3 -0
- package/dist/runtime/java-library-bitset.generated.d.ts +2 -2
- package/dist/runtime/java-library-math.generated.d.ts +2 -2
- package/dist/runtime/java-library-regex.generated.d.ts +2 -2
- package/dist/runtime/java-library-time.generated.d.ts +3 -3
- package/dist/runtime/java-library.generated.d.ts +3 -3
- package/dist/runtime/java-worker.generated.d.ts +3 -3
- package/dist/runtime/worker-runtime.d.ts +1 -0
- package/dist/standalone.js +9 -9
- package/dist/types.d.ts +13 -1
- package/dist/worker-runtime-DfYet3xy.js +9 -0
- package/dist/worker-runtime-Dq71SbjR.js +4 -0
- package/package.json +18 -6
- package/dist/dist-BThnYaQ5.js +0 -12
- package/dist/dist-CnC1nMtN.js +0 -6
- package/dist/dist-D0FPZcUi.js +0 -8
- package/dist/dist-DOsLUKSb.js +0 -10
- package/dist/dist-D_qJovVA.js +0 -14
- package/dist/dist-DlIO0dzi.js +0 -6
- package/dist/dist-DmrP6yta.js +0 -6
- package/dist/java-DIL6bxPF.js +0 -1
- package/dist/java-DxQWnfHu.js +0 -6
- package/dist/java-library-time.generated-mFyqZ0pg.js +0 -6
- package/dist/java-library.generated-1yFV284B.js +0 -6
- package/dist/worker-runtime-C8pmmgW9.js +0 -4
- package/dist/worker-runtime-CNPpMRo1.js +0 -9
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* code-playpad — MIT © 2026 Seung Hun Lee
|
|
3
|
-
* Bundles CodeMirror 6 and Lezer (MIT) © Marijn Haverbeke and others.
|
|
4
|
-
* Full third-party licences: THIRD-PARTY-NOTICES.txt in this package.
|
|
5
|
-
*/
|
|
6
|
-
var e={name:`java-online-compiler`,version:`0.34.1`,commit:`f3698375f3087bcbeeae3f7736746cd0c807c689`,dirty:!1,sha256:`acd14e1fdf653e291e134ed0f6e8bd4c7b8ec9ecfeaea516fca99131e2046cd3`},t='"use strict";(()=>{var Lu=Object.defineProperty;var xn=(n,e)=>{for(var t in e)Lu(n,t,{get:e[t],enumerable:!0})};var Fa={};xn(Fa,{BIG_MATH:()=>ni,BOX_CLASS:()=>yt,EnumerationIterator:()=>Qe,K:()=>h,LibFunction:()=>ye,LibObject:()=>p,REF:()=>et,bool:()=>f,boxHash:()=>zt,boxString:()=>ii,callFunctional:()=>g,callThen:()=>Jt,checkComparable:()=>Ie,classCast:()=>$a,className:()=>Oe,compareBoxes:()=>Ht,compareDoubles:()=>Fe,compareNatural:()=>ie,compareStrings:()=>Re,comparisonOf:()=>$,doubleHash:()=>Ut,elementEquals:()=>z,enumClassName:()=>Pt,equalsNeedsWork:()=>Ct,hasProgramObjects:()=>tt,hashNeedsWork:()=>ju,javaEquals:()=>T,javaHash:()=>j,known:()=>En,libraryPart:()=>Ul,longHash:()=>_t,oneCall:()=>Vn,plainEquals:()=>Kt,setKit:()=>Da,settle:()=>u,stringHash:()=>ri,stringHashOf:()=>ai,truthy:()=>I,valueString:()=>x});var h;function Da(n){h=n}var f=n=>n?1:0,ni={},et=3,I=n=>n===1,p=class{hash;constructor(e){this.hash=e}*javaString(e){return`${this.className}@${this.hash.toString(16)}`}get contentEquality(){return!1}*contentEquals(e,t){return this===t}*contentHash(e){return this.hash}"equals(Object)"(e,t){return u(this.contentEquals(e,t),f)}"hashCode()"(e){return u(this.contentHash(e))}"toString()"(e){return u(this.javaString(e),t=>new h.JString(t))}},ye=class extends p{};function g(n,e,t,i){if(e instanceof h.JLambda)return Vn(e.method,e.captured.length?[...e.captured,...i]:i);if(e instanceof h.JObject)return Vn(n.methodOf(e,t,i.length),[e,...i]);if(e instanceof ye)return e.call(n,i);throw new Error(`library: ${t} on a value that is not a function`)}var Aa=class{invoke;args;#e=!1;constructor(e,t){this.invoke=e,this.args=t}[Symbol.iterator](){return this}next(e){return this.#e?{done:!0,value:e}:(this.#e=!0,{done:!1,value:this})}};function Vn(n,e){return new Aa(n,e)}function En(n){return new ka(n)}var ka=class{#e;constructor(e){this.#e=e}[Symbol.iterator](){return this}next(){return{done:!0,value:this.#e}}};function u(n,e=t=>t){return _l(n,n.next(),e)}function _l(n,e,t){return e.done?t(e.value):new h.NativeThen(e.value.invoke,e.value.args,i=>_l(n,n.next(i),t),n,t)}function Jt(n,e,t,i,a){return e instanceof h.JLambda?new h.NativeThen(e.method,e.captured.length?[...e.captured,...i]:i,a):e instanceof h.JObject?new h.NativeThen(n.methodOf(e,t,i.length),[e,...i],a):Ma(u(g(n,e,t,i)),a)}function Ma(n,e){return n instanceof h.NativeThen?new h.NativeThen(n.invoke,n.args,t=>Ma(n.then(t),e)):n!==null&&typeof n=="object"&&Symbol.iterator in n?Ma(u(n),e):e(n)}function Oe(n){return n instanceof h.JString?"java.lang.String":n instanceof h.JBox?yt[n.kind]:n instanceof h.JArray?n.descriptor:n.className}function Pt(n){return n.replace(/\\$\\d+$/,"")}var yt={int:"java.lang.Integer",long:"java.lang.Long",double:"java.lang.Double",char:"java.lang.Character",boolean:"java.lang.Boolean",float:"java.lang.Float",byte:"java.lang.Byte",short:"java.lang.Short"};function ii(n){switch(n.kind){case"double":return h.doubleToString(n.value);case"float":return h.floatToString(n.value);case"char":return String.fromCharCode(n.value);case"boolean":return n.value?"true":"false";default:return String(n.value)}}function*x(n,e,t,i="(this Collection)"){if(e===null)return"null";if(e instanceof h.JString)return e.value;if(e instanceof h.JBox)return ii(e);if(e===t)return i;if(e instanceof h.JObject){let a=n.toStringMethod(e);if(a<0)return h.objectToString(e);let r=yield{invoke:a,args:[e]};return r==null?"null":r.value}return e instanceof h.JArray?h.objectToString(e):e instanceof p?yield*e.javaString(n):String(e)}function Ct(n,e){return e instanceof h.JObject&&n.equalsMethod(e)>=0||e instanceof p&&e.contentEquality}function Kt(n,e){return n===e?n!==null:n instanceof h.JString?e instanceof h.JString&&n.value===e.value:n instanceof h.JBox?e instanceof h.JBox&&n.kind===e.kind&&Object.is(n.value,e.value):!1}function*T(n,e,t){if(e instanceof h.JObject){let i=n.equalsMethod(e);return i<0?e===t:I(yield{invoke:i,args:[e,t]})}return e instanceof p?yield*e.contentEquals(n,Ul(n,t,["size()","get(Object)","containsKey(Object)"])):Kt(e,t)}function Ul(n,e,t){if(!(e instanceof h.JObject)||e.base===null)return e;if(e.base.opaque)return n.limitation(`comparing a ${e.className}, an AbstractList subclass, with equals inside the library`);let i=t.find(a=>n.overrideOf(e,a)>=0);return i&&n.limitation(`comparing a ${e.className}, which overrides ${i.slice(0,i.indexOf("("))}(), with equals (the JDK would call the override)`),e.base}function*z(n,e,t){return e===t||e!==null&&(yield*T(n,e,t))}function ai(n){let e=n.cachedHash;return e!==void 0?e:n.cachedHash=ri(n.value)}function ri(n){let e=0;for(let t=0;t<n.length;t++)e=Math.imul(e,31)+n.charCodeAt(t)|0;return e}var wa=new DataView(new ArrayBuffer(8));function _t(n){let e=BigInt.asUintN(64,BigInt(n));return Number(BigInt.asIntN(32,e^e>>32n))}function Ut(n){return wa.setFloat64(0,Number.isNaN(n)?NaN:n),wa.getInt32(0)^wa.getInt32(4)|0}function zt(n){switch(n.kind){case"int":case"char":case"byte":case"short":return n.value;case"float":return h.floatToIntBits(n.value);case"long":return _t(n.value);case"double":return Ut(n.value);case"boolean":return n.value?1231:1237}}function ju(n,e){return e instanceof h.JObject&&n.hashCodeMethod(e)>=0||e instanceof p&&e.contentEquality}function*j(n,e){if(e===null)return 0;if(e instanceof h.JString)return ai(e);if(e instanceof h.JBox)return zt(e);if(e instanceof h.JObject){let t=n.hashCodeMethod(e);return t<0?e.hash:yield{invoke:t,args:[e]}}return e instanceof p?yield*e.contentHash(n):e.hash}function Fe(n,e){if(n<e)return-1;if(n>e)return 1;if(n===e){if(n!==0)return 0;let a=Object.is(n,-0),r=Object.is(e,-0);return a===r?0:a?-1:1}let t=Number.isNaN(n),i=Number.isNaN(e);return t===i?0:t?1:-1}function Re(n,e){let t=Math.min(n.length,e.length);for(let i=0;i<t;i++){let a=n.charCodeAt(i)-e.charCodeAt(i);if(a!==0)return a}return n.length-e.length}function Ht(n,e){switch(n.kind){case"double":case"float":return Fe(n.value,e.value);case"char":case"byte":case"short":return n.value-e.value;case"boolean":return n.value===e.value?0:n.value?1:-1;default:return n.value<e.value?-1:n.value>e.value?1:0}}function $a(n,e,t){return n.fail("java.lang.ClassCastException",n.castMessage(e,t))}function Ba(n,e){return e instanceof h.JString?"java.lang.String":e instanceof h.JBox?yt[e.kind]:e instanceof p&&(e.className==="java.lang.StringBuilder"||e.className==="java.lang.StringBuffer")||e instanceof p&&e.naturalOrder||e instanceof h.JObject&&n.methodOf(e,"compareTo",1)>=0?e.className:null}function Ie(n,e){if(e===null)return n.limitation("ordering a null element");Ba(n,e)===null&&$a(n,e,"java.lang.Comparable")}function tt(n){return n.some(e=>e instanceof h.JObject)}var wu={"java.lang.String":"anotherString","java.lang.StringBuilder":"another","java.lang.StringBuffer":"another","java.lang.Integer":"anotherInteger","java.lang.Long":"anotherLong","java.lang.Double":"anotherDouble","java.lang.Character":"anotherCharacter","java.lang.Boolean":"b"};function $(n,e){if(e===null)return(a,r)=>a instanceof h.JObject?(Ie(n,a),Vn(n.methodOf(a,"compareTo",1),[a,r])):En(ie(n,a,r));if(e instanceof ye)return(a,r)=>e.call(n,[a,r]);let t=e instanceof h.JObject?n.methodOf(e,"compare",2):e.method,i=e instanceof h.JObject?[e]:e.captured;return(a,r)=>Vn(t,i.length?[...i,a,r]:[a,r])}function ie(n,e,t){if(e===null)return n.limitation("ordering a null element");if(e instanceof h.JObject&&n.methodOf(e,"compareTo",1)>=0)return n.limitation("Arrays.binarySearch over objects of the program\'s classes");if(Ie(n,e),e instanceof p&&e.naturalOrder)return e.naturalOrder(n,t);let i=Ba(n,e);return t===null?n.fail("java.lang.NullPointerException",`Cannot read field "value" because "${wu[i]}" is null`):(Ba(n,t)!==i&&$a(n,t,i),e instanceof h.JString?Re(e.value,t.value):e instanceof h.JBox?Ht(e,t):Re(e.text,t.text))}var Qe=class extends p{className="java.util.Enumeration$1";#e;constructor(e,t){super(e),this.#e=t}"hasNext()"(e){return this.#e["hasMoreElements()"](e)}"next()"(e){return this.#e["nextElement()"](e)}};function*St(n,e,t,i,a){let r=i-t;if(r<2)return;if(r<32){let o=yield*Hl(e,t,i,a);yield*zl(e,t,i,t+o,a);return}let l=new Pa(n,e,a),s=Au(r);do{let o=yield*Hl(e,t,i,a);if(o<s){let c=r<=s?r:s;yield*zl(e,t,t+c,t+o,a),o=c}l.pushRun(t,o),yield*l.mergeCollapse(),t+=o,r-=o}while(r!==0);yield*l.mergeForceCollapse()}function*zl(n,e,t,i,a){for(i===e&&i++;i<t;i++){let r=n[i],l=e,s=i;for(;l<s;){let o=l+s>>>1;(yield*a(r,n[o]))<0?s=o:l=o+1}for(let o=i;o>l;o--)n[o]=n[o-1];n[l]=r}}function*Hl(n,e,t,i){let a=e+1;if(a===t)return 1;if((yield*i(n[a++],n[e]))<0){for(;a<t&&(yield*i(n[a],n[a-1]))<0;)a++;for(let r=e,l=a-1;r<l;r++,l--)[n[r],n[l]]=[n[l],n[r]]}else for(;a<t&&(yield*i(n[a],n[a-1]))>=0;)a++;return a-e}function Au(n){let e=0;for(;n>=32;)e|=n&1,n>>=1;return n+e}function ge(n,e,t,i,a){if(n===t&&i>e)for(let r=a-1;r>=0;r--)t[i+r]=n[e+r];else for(let r=0;r<a;r++)t[i+r]=n[e+r]}function*Ga(n,e,t,i,a,r){let l=0,s=1;if((yield*r(n,e[t+a]))>0){let o=i-a;for(;s<o&&(yield*r(n,e[t+a+s]))>0;)l=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),l+=a,s+=a}else{let o=a+1;for(;s<o&&(yield*r(n,e[t+a-s]))<=0;)l=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o);let c=l;l=a-s,s=a-c}for(l++;l<s;){let o=l+(s-l>>>1);(yield*r(n,e[t+o]))>0?l=o+1:s=o}return s}function*Ja(n,e,t,i,a,r){let l=1,s=0;if((yield*r(n,e[t+a]))<0){let o=a+1;for(;l<o&&(yield*r(n,e[t+a-l]))<0;)s=l,l=(l<<1)+1,l<=0&&(l=o);l>o&&(l=o);let c=s;s=a-l,l=a-c}else{let o=i-a;for(;l<o&&(yield*r(n,e[t+a+l]))>=0;)s=l,l=(l<<1)+1,l<=0&&(l=o);l>o&&(l=o),s+=a,l+=a}for(s++;s<l;){let o=s+(l-s>>>1);(yield*r(n,e[t+o]))<0?l=o:s=o+1}return l}var ql="Comparison method violates its general contract!",Pa=class{#e;#t;#n;#i=7;#a=[];#r=[];#l=0;constructor(e,t,i){this.#e=e,this.#t=t,this.#n=i}pushRun(e,t){this.#a[this.#l]=e,this.#r[this.#l]=t,this.#l++}*mergeCollapse(){let e=this.#r;for(;this.#l>1;){let t=this.#l-2;if(t>0&&e[t-1]<=e[t]+e[t+1]||t>1&&e[t-2]<=e[t]+e[t-1])e[t-1]<e[t+1]&&t--;else if(t<0||e[t]>e[t+1])break;yield*this.#s(t)}}*mergeForceCollapse(){let e=this.#r;for(;this.#l>1;){let t=this.#l-2;t>0&&e[t-1]<e[t+1]&&t--,yield*this.#s(t)}}*#s(e){let t=this.#t,i=this.#a[e],a=this.#r[e],r=this.#a[e+1],l=this.#r[e+1];this.#r[e]=a+l,e===this.#l-3&&(this.#a[e+1]=this.#a[e+2],this.#r[e+1]=this.#r[e+2]),this.#l--;let s=yield*Ja(t[r],t,i,a,0,this.#n);i+=s,a-=s,a!==0&&(l=yield*Ga(t[i+a-1],t,r,l,l-1,this.#n),l!==0&&(this.#e.charge(a+l),a<=l?yield*this.#c(i,a,r,l):yield*this.#o(i,a,r,l)))}*#c(e,t,i,a){let r=this.#t,l=this.#n,s=r.slice(e,e+t),o=0,c=i,d=e;if(r[d++]=r[c++],--a===0){ge(s,o,r,d,t);return}if(t===1){ge(r,c,r,d,a),r[d+a]=s[o];return}let m=this.#i;e:for(;;){let v=0,C=0;do if((yield*l(r[c],s[o]))<0){if(r[d++]=r[c++],C++,v=0,--a===0)break e}else if(r[d++]=s[o++],v++,C=0,--t===1)break e;while((v|C)<m);do{if(v=yield*Ja(r[c],s,o,t,0,l),v!==0&&(ge(s,o,r,d,v),d+=v,o+=v,t-=v,t<=1)||(r[d++]=r[c++],--a===0)||(C=yield*Ga(s[o],r,c,a,0,l),C!==0&&(ge(r,c,r,d,C),d+=C,c+=C,a-=C,a===0))||(r[d++]=s[o++],--t===1))break e;m--}while(v>=7||C>=7);m<0&&(m=0),m+=2}this.#i=m<1?1:m,t===1?(ge(r,c,r,d,a),r[d+a]=s[o]):t===0?this.#e.fail("java.lang.IllegalArgumentException",ql):ge(s,o,r,d,t)}*#o(e,t,i,a){let r=this.#t,l=this.#n,s=r.slice(i,i+a),o=e+t-1,c=a-1,d=i+a-1;if(r[d--]=r[o--],--t===0){ge(s,0,r,d-(a-1),a);return}if(a===1){d-=t,o-=t,ge(r,o+1,r,d+1,t),r[d]=s[c];return}let m=this.#i;e:for(;;){let v=0,C=0;do if((yield*l(s[c],r[o]))<0){if(r[d--]=r[o--],v++,C=0,--t===0)break e}else if(r[d--]=s[c--],C++,v=0,--a===1)break e;while((v|C)<m);do{if(v=t-(yield*Ja(s[c],r,e,t,t-1,l)),v!==0&&(d-=v,o-=v,t-=v,ge(r,o+1,r,d+1,v),t===0)||(r[d--]=s[c--],--a===1)||(C=a-(yield*Ga(r[o],s,0,a,a-1,l)),C!==0&&(d-=C,c-=C,a-=C,ge(s,c+1,r,d+1,C),a<=1))||(r[d--]=r[o--],--t===0))break e;m--}while(v>=7||C>=7);m<0&&(m=0),m+=2}this.#i=m<1?1:m,a===1?(d-=t,o-=t,ge(r,o+1,r,d+1,t),r[d]=s[c]):a===0?this.#e.fail("java.lang.IllegalArgumentException",ql):ge(s,0,r,d-(a-1),a)}};var ku="java.lang.NullPointerException",li="java.lang.ArrayIndexOutOfBoundsException",ae=n=>n.data;function qt(n,e,t="a"){return e===null&&n.fail(ku,`Cannot read the array length because "${t}" is null`),e}function si(n,e,t,i){t>i&&n.fail("java.lang.IllegalArgumentException",`fromIndex(${t}) > toIndex(${i})`),t<0&&n.fail(li,`Array index out of range: ${t}`),i>e&&n.fail(li,`Array index out of range: ${i}`)}function Mu(n,e){switch(n){case"[D":return h.doubleToString(e);case"[F":return h.floatToString(e);case"[C":return String.fromCharCode(e);case"[Z":return e?"true":"false";default:return String(e)}}function Bu(n,e){switch(n){case"[D":return Ut(e);case"[F":return h.floatToIntBits(e);case"[J":return _t(e);case"[Z":return e?1231:1237;default:return e}}var Ge=n=>n.descriptor.length===2;function*Zl(n,e){if(e===null)return"null";let t=e,i=ae(t);n.charge(i.length);let a=[];if(Ge(t))for(let r=0;r<i.length;r++)a.push(Mu(t.descriptor,i[r]));else for(let r=0;r<i.length;r++)a.push(yield*x(n,i[r]));return`[${a.join(", ")}]`}function*Xl(n,e,t){let i=ae(e);n.charge(i.length),t.add(e);let a=[];for(let r=0;r<i.length;r++){let l=i[r];l instanceof h.JArray?Ge(l)?a.push(yield*Zl(n,l)):a.push(t.has(l)?"[...]":yield*Xl(n,l,t)):a.push(yield*x(n,l))}return t.delete(e),`[${a.join(", ")}]`}function Du(n){let e=/^\\[L(.*);$/.exec(n);return e&&e[1]!=="java.lang.Object"?e[1]:null}function $u(n,e,t){let i=Du(e.descriptor);if(i===null||t===null||typeof t!="object")return;let a=Oe(t);a!==i&&n.fail("java.lang.ArrayStoreException",a)}function Wl(n,e,t,i,a){let r=qt(n,e),l=ae(r),s=t??0,o=i??l.length;t!==null&&si(n,l.length,s,o),Ge(r)||$u(n,r,a),n.charge(o-s>>>2);for(let c=s;c<o;c++)l[c]=a}function Ka(n,e,t,i){let a=qt(n,e),r=ae(a),l=t??0,s=i??r.length;t!==null&&si(n,r.length,l,s);let o=s-l;if(o<2)return;n.charge(Math.ceil(o*Math.log2(o)));let c=a.data;if(c instanceof Int32Array||c instanceof Uint16Array||c instanceof Float64Array||c instanceof Int8Array||c instanceof Int16Array||c instanceof Float32Array){c.subarray(l,s).sort();return}if(a.descriptor==="[J"){let d=Array.prototype.slice.call(r,l,s);d.sort((m,v)=>m<v?-1:m>v?1:0),d.forEach((m,v)=>r[l+v]=m)}else{if(tt(Array.prototype.slice.call(r,l,s)))return u(St(n,r,l,s,$(n,null)),()=>{});Tn(n,r,l,s)}}function Tn(n,e,t,i){let a=e.slice(t,i);if(!(a.length<2)){n.charge(Math.ceil(a.length*Math.log2(a.length))),a.some(r=>r===null)&&n.limitation("sorting objects that include null");for(let r of a)ie(n,a[0],r);a.sort((r,l)=>ie(n,r,l)),a.forEach((r,l)=>e[t+l]=r)}}function Ql(n,e,t,i,a){if(a===null)return Ka(n,e,t,i);let r=qt(n,e),l=ae(r),s=t??0,o=i??l.length;return t!==null&&si(n,l.length,s,o),u(St(n,l,s,o,$(n,a)),()=>{})}function Yl(n,e,t,i=null,a=null){let r=qt(n,e),l=ae(r);i!==null&&si(n,l.length,i,a);let s=r.descriptor==="[D"||r.descriptor==="[F"?d=>Fe(d,t):Ge(r)?d=>d<t?-1:d>t?1:0:d=>ie(n,d,t),o=i??0,c=(a??l.length)-1;for(;o<=c;){let d=o+c>>>1,m=s(l[d]);if(n.charge(1),m<0)o=d+1;else if(m>0)c=d-1;else return d}return-(o+1)}function es(n,e,t){if(e===t)return 1;if(e===null||t===null)return 0;let i=ae(e),a=ae(t);if(i.length!==a.length)return 0;if(n.charge(i.length>>>2),Ge(e)){for(let r=0;r<i.length;r++)if(!Object.is(i[r],a[r]))return 0;return 1}return u((function*(){for(let r=0;r<i.length;r++)if(!(yield*z(n,i[r],a[r])))return!1;return!0})(),f)}function ts(n,e){if(e===null)return 0;let t=e,i=ae(t);return n.charge(i.length>>>2),u((function*(){let a=1;for(let r=0;r<i.length;r++){let l=Ge(t)?Bu(t.descriptor,i[r]):yield*j(n,i[r]);a=Math.imul(31,a)+l|0}return a})())}var Fu={"[I":"int","[J":"long","[C":"char","[D":"double","[Z":"boolean","[B":"byte","[S":"short","[F":"float"};function _a(n,e,t,i){let a=ae(e),r=Math.min(a.length-t,i);t<0&&n.fail(li,`arraycopy: source index ${t} out of bounds for ${Fu[e.descriptor]??"object array"}[${a.length}]`),r<0&&n.fail(li,`arraycopy: length ${r} is negative`),n.allocate(i),n.charge(i>>>4);let l;e.data instanceof Int32Array?l=new Int32Array(i):e.data instanceof Uint16Array?l=new Uint16Array(i):e.data instanceof Float64Array?l=new Float64Array(i):e.data instanceof Uint8Array?l=new Uint8Array(i):e.data instanceof Int8Array?l=new Int8Array(i):e.data instanceof Int16Array?l=new Int16Array(i):e.data instanceof Float32Array?l=new Float32Array(i):l=new Array(i).fill(e.kind===et?null:0);let s=l;for(let o=0;o<r;o++)s[o]=a[t+o];return new h.JArray(e.kind,l,n.hash(),e.descriptor)}function ns(n,e,t){let i=qt(n,e,"original");return t<0?n.fail("java.lang.NegativeArraySizeException",String(t)):_a(n,i,0,t)}function is(n,e,t,i){let a=qt(n,e,"original");return t>i?n.fail("java.lang.IllegalArgumentException",`${t} > ${i}`):_a(n,a,t,i-t)}var D={"Array.clone()":(n,[e])=>_a(n,e,0,ae(e).length)};for(let n of["int","long","char","double","boolean","byte","short","float","Object"]){let e=i=>`Arrays.${i}`,t=`${n}[]`;n!=="boolean"&&(D[e(`sort(${t})`)]=(i,[a])=>Ka(i,a,null,null),D[e(`sort(${t},int,int)`)]=(i,[a,r,l])=>Ka(i,a,r,l),D[e(`binarySearch(${t},${n})`)]=(i,[a,r])=>Yl(i,a,r),D[e(`binarySearch(${t},int,int,${n})`)]=(i,[a,r,l,s])=>Yl(i,a,s,r,l)),D[e(`equals(${t},${t})`)]=(i,[a,r])=>es(i,a,r),D[e(`fill(${t},${n})`)]=(i,[a,r])=>Wl(i,a,null,null,r),D[e(`fill(${t},int,int,${n})`)]=(i,[a,r,l,s])=>Wl(i,a,r,l,s),D[e(`hashCode(${t})`)]=(i,[a])=>ts(i,a),D[e(`toString(${t})`)]=(i,[a])=>u(Zl(i,a),r=>new h.JString(r)),n!=="Object"&&(D[e(`copyOf(${t},int)`)]=(i,[a,r])=>ns(i,a,r),D[e(`copyOfRange(${t},int,int)`)]=(i,[a,r,l])=>is(i,a,r,l))}D["Arrays.copyOf(T[],int)"]=(n,[e,t])=>ns(n,e,t);D["Arrays.copyOfRange(T[],int,int)"]=(n,[e,t,i])=>is(n,e,t,i);D["Arrays.sort(T[],Comparator)"]=(n,[e,t])=>Ql(n,e,null,null,t);D["Arrays.sort(T[],int,int,Comparator)"]=(n,[e,t,i,a])=>Ql(n,e,t,i,a);function*as(n,e,t){let i=ae(e),a=ae(t);if(i.length!==a.length)return!1;n.charge(i.length>>>2);for(let r=0;r<i.length;r++){let l=i[r],s=a[r];if(l!==s){if(l===null||s===null)return!1;if(l instanceof h.JArray&&s instanceof h.JArray){if(!Ge(l)&&!Ge(s)){if(!(yield*as(n,l,s)))return!1}else if(l.descriptor!==s.descriptor||es(n,l,s)!==1)return!1}else if(!(yield*z(n,l,s)))return!1}}return!0}function*rs(n,e){let t=1,i=ae(e);for(let a=0;a<i.length;a++){let r=i[a],l;r instanceof h.JArray?l=Ge(r)?ts(n,r):yield*rs(n,r):l=r===null?0:yield*j(n,r),t=Math.imul(31,t)+l|0}return t}D["Arrays.deepEquals(Object[],Object[])"]=(n,[e,t])=>e===t?f(!0):e===null||t===null?f(!1):u(as(n,e,t),f);D["Arrays.deepHashCode(Object[])"]=(n,[e])=>e===null?0:u(rs(n,e));D["Arrays.deepToString(Object[])"]=(n,[e])=>e===null?new h.JString("null"):u(Xl(n,e,new Set),t=>new h.JString(t));var X="java.util.NoSuchElementException",Le="java.util.ConcurrentModificationException",M="java.lang.NullPointerException",ls="java.lang.IndexOutOfBoundsException",Ua="java.lang.IllegalArgumentException";function*xt(n,e,t,i=0,a=e.length){if(n.charge(a-i),t===null){for(let r=i;r<a;r++)if(e[r]===null)return r}else if(Ct(n,t)){for(let r=i;r<a;r++)if(yield*T(n,t,e[r]))return r}else for(let r=i;r<a;r++)if(Kt(t,e[r]))return r;return-1}function*ss(n,e,t){n.charge(e.length);for(let i=e.length-1;i>=0;i--)if(t===null?e[i]===null:yield*T(n,t,e[i]))return i;return-1}var L=class extends p{isList=!1;isSet=!1;hashed=!1;randomAccess=!1;copyItems(e){return{items:this.elements(e,!0),unknown:null}}markUnknown(e,t){}*contains(e,t){return(yield*xt(e,this.elements(e,!1),t))>=0}*javaString(e){let t=this.elements(e,!0);if(!t.length)return"[]";e.charge(t.length);let i=[];for(let a of t)i.push(yield*x(e,a,this));return`[${i.join(", ")}]`}"size()"(){return this.size}"isEmpty()"(){return f(this.size===0)}"contains(Object)"(e,t){return u(this.contains(e,t),f)}"containsAll(Collection)"(e,t){if(t===null)return e.fail(M,\'Cannot invoke "java.util.Collection.iterator()" because "c" is null\');let i=this;return u((function*(){for(let a of t.elements(e,!1))if(!(yield*i.contains(e,a)))return!1;return!0})(),f)}"toArray()"(e){let t=this.elements(e,!0);return e.allocate(t.length),new h.JArray(et,[...t],e.hash(),"[Ljava.lang.Object;")}"toArray(T[])"(e,t){if(t===null)return e.fail(M,\'Cannot read the array length because "a" is null\');let i=t,a=this.elements(e,!0);for(let l of a)if(l!==null&&!e.storable(l,i.descriptor))return e.fail("java.lang.ArrayStoreException",`arraycopy: element type mismatch: can not cast one of the elements of java.lang.Object[] to the type of the destination array, ${i.descriptor.slice(2,-1)}`);let r=i.data;if(r.length<a.length)return e.allocate(a.length),new h.JArray(et,[...a],e.hash(),i.descriptor);for(let l=0;l<a.length;l++)r[l]=a[l];return r.length>a.length&&(r[a.length]=null),i}"toArray(IntFunction)"(e,t){if(t===null)return e.fail(M,null);let i=this;return u((function*(){let a=(yield*g(e,t,"apply",[0]))??null;return yield*it(i["toArray(T[])"](e,a))})())}get addAllNullMessage(){return\'Cannot invoke "java.util.Collection.iterator()" because "c" is null\'}"addAll(Collection)"(e,t){if(t===null)return e.fail(M,this.addAllNullMessage);if(!this.hashed)return this.addEach(e,t.elements(e,!0).slice());let{items:i,unknown:a}=t.copyItems(e);return u(it(this.addEach(e,i.slice())),r=>(a&&i.length>1&&this.markUnknown(a,i),r))}addEach(e,t){let i=!1,a=null;for(let r=0;r<t.length;r++){let l=this["add(E)"](e,t[r]);if(typeof l=="number"){i||=l===1;continue}let s=this,o=t.slice(r+1),c=l;a=(function*(){let d=(yield*c)===1,m=i||d;for(let v of o){let C=s["add(E)"](e,v);m=(typeof C=="number"?C:yield*C)===1||m}return m})();break}return a?u(a,f):f(i)}};function*Vt(n,e,t){if(t===e)return!0;if(!(t instanceof L)||!t.isList)return!1;let i=e.elements(n,!0),a=t.elements(n,!0);if(i.length!==a.length)return!1;n.charge(i.length);for(let r=0;r<i.length;r++)if(!(yield*z(n,i[r],a[r])))return!1;return!0}var se=class extends L{className="java.util.ArrayList";isList=!0;randomAccess=!0;es=[];modCount=0;get size(){return this.es.length}elements(){return this.es}get contentEquality(){return!0}*contentEquals(e,t){return yield*Vt(e,this,t)}*contentHash(e){let t=1;for(let i of this.es)t=Math.imul(31,t)+(yield*j(e,i))|0;return t}#e(e,t){(t<0||t>=this.es.length)&&e.fail(ls,`Index ${t} out of bounds for length ${this.es.length}`)}"add(E)"(e,t){return e.allocate(1),this.modCount++,this.es.push(t),1}"add(int,E)"(e,t,i){if(t<0||t>this.es.length)return e.fail(ls,`Index: ${t}, Size: ${this.es.length}`);e.allocate(1),e.charge(this.es.length-t),this.modCount++,this.es.splice(t,0,i)}"get(int)"(e,t){return this.#e(e,t),this.es[t]}"set(int,E)"(e,t,i){this.#e(e,t);let a=this.es[t];return this.es[t]=i,a}"remove(int)"(e,t){return this.#e(e,t),e.charge(this.es.length-t),this.modCount++,this.es.splice(t,1)[0]}"remove(Object)"(e,t){return u(xt(e,this.es,t),i=>i<0?0:(this.modCount++,this.es.splice(i,1),1))}"indexOf(Object)"(e,t){return u(xt(e,this.es,t))}"lastIndexOf(Object)"(e,t){return u(ss(e,this.es,t))}"clear()"(){this.modCount++,this.es.length=0}"addAll(Collection)"(e,t){if(t===null)return e.fail(M,\'Cannot invoke "java.util.Collection.toArray()" because "c" is null\');let i=t.elements(e,!0).slice();e.allocate(i.length),e.charge(i.length),this.modCount++;for(let a of i)this.es.push(a);return f(i.length>0)}"getFirst()"(e){return this.es.length?this.es[0]:e.fail(X,null)}"getLast()"(e){return this.es.length?this.es[this.es.length-1]:e.fail(X,null)}"removeFirst()"(e){return this.es.length?this["remove(int)"](e,0):e.fail(X,null)}"removeLast()"(e){return this.es.length?this["remove(int)"](e,this.es.length-1):e.fail(X,null)}"addFirst(E)"(e,t){return this["add(int,E)"](e,0,t)}"addLast(E)"(e,t){this["add(E)"](e,t)}"iterator()"(e){return new za(e.hash(),this,this.iteratorName)}"listIterator()"(e){return new oi(e.hash(),this,0)}"listIterator(int)"(e,t){let i=t,a=this.className==="java.util.Stack"||this.className==="java.util.Vector";return i<0||i>this.size?e.fail("java.lang.IndexOutOfBoundsException",a?`Index: ${i}`:`Index: ${i}, Size: ${this.size}`):new oi(e.hash(),this,i)}get iteratorName(){return"java.util.ArrayList$Itr"}"sort(Comparator)"(e,t){let i=this.modCount,a=()=>{this.modCount!==i&&e.fail(Le,null),this.modCount++};return t===null&&!tt(this.es)?(Tn(e,this.es,0,this.es.length),a()):u(St(e,this.es,0,this.es.length,$(e,t)),a)}"forEach(Consumer)"(e,t){if(t===null)return e.fail(M,null);let i=this;return u((function*(){let a=i.modCount,r=i.es.length;for(let l=0;i.modCount===a&&l<r;l++)yield*g(e,t,"accept",[i.es[l]]);i.modCount!==a&&e.fail(Le,null)})(),()=>{})}"removeIf(Predicate)"(e,t){if(t===null)return e.fail(M,null);let i=this;return u((function*(){let a=i.modCount,r=i.es.slice(),l=[];for(let o of r)l.push(I((yield*g(e,t,"test",[o]))??null));if(i.modCount!==a&&e.fail(Le,null),!l.includes(!0))return!1;let s=r.filter((o,c)=>!l[c]);return i.es.length=0,i.es.push(...s),i.modCount++,!0})(),f)}"replaceAll(UnaryOperator)"(e,t){if(t===null)return e.fail(M,null);let i=this;return u((function*(){let a=i.modCount,r=i.es.length;for(let l=0;i.modCount===a&&l<r;l++)i.es[l]=(yield*g(e,t,"apply",[i.es[l]]))??null;i.modCount!==a&&e.fail(Le,null),i.modCount++})(),()=>{})}};function*it(n){return n!==null&&typeof n=="object"&&Symbol.iterator in n?yield*n:n}var za=class extends p{className;#e;#t=0;#n=-1;#i;constructor(e,t,i){super(e),this.#e=t,this.className=i,this.#i=t.modCount}"hasNext()"(){return f(this.#t!==this.#e.size)}"next()"(e){if(this.#e.modCount!==this.#i)return e.fail(Le,null);let t=this.#t;return t>=this.#e.size?e.fail(X,null):(this.#t=t+1,this.#n=t,this.#e.es[t])}"remove()"(e){if(this.#n<0)return e.fail("java.lang.IllegalStateException",null);if(this.#e.modCount!==this.#i)return e.fail(Le,null);this.#e["remove(int)"](e,this.#n),this.#t=this.#n,this.#n=-1,this.#i=this.#e.modCount}},oi=class extends p{className;#e;#t;#n=-1;#i;constructor(e,t,i){super(e),this.#e=t,this.#t=i,this.className=`${t.className}$ListItr`,this.#i=t.modCount}#a(e){this.#e.modCount!==this.#i&&e.fail(Le,null)}"hasNext()"(){return f(this.#t<this.#e.size)}"next()"(e){this.#a(e);let t=this.#t;return t>=this.#e.size?e.fail(X,null):(this.#t=t+1,this.#n=t,this.#e.es[t])}"hasPrevious()"(){return f(this.#t>0)}"previous()"(e){this.#a(e);let t=this.#t-1;return t<0?e.fail(X,null):(this.#t=t,this.#n=t,this.#e.es[t])}"nextIndex()"(){return this.#t}"previousIndex()"(){return this.#t-1}"remove()"(e){if(this.#n<0)return e.fail("java.lang.IllegalStateException",null);this.#a(e),this.#e["remove(int)"](e,this.#n),this.#t=this.#n,this.#n=-1,this.#i=this.#e.modCount}"set(E)"(e,t){if(this.#n<0)return e.fail("java.lang.IllegalStateException",null);this.#a(e),this.#e["set(int,E)"](e,this.#n,t)}"add(E)"(e,t){this.#a(e),this.#e["add(int,E)"](e,this.#t,t),this.#t++,this.#n=-1,this.#i=this.#e.modCount}},Rn=class extends L{className="java.util.ArrayDeque";get addAllNullMessage(){return\'Cannot invoke "java.util.Collection.size()" because "c" is null\'}#e=new Array(16).fill(null);#t=0;#n=0;mods=0;"forEach(Consumer)"(e,t){if(t===null)return e.fail(M,null);let i=this;return u((function*(){let a=i.mods;for(let r of i.elements().slice())if(yield*g(e,t,"accept",[r]),i.mods!==a)return e.limitation("changing an ArrayDeque while iterating over it")})(),()=>{})}get size(){return this.#n}at(e){return this.#e[this.#t+e&this.#e.length-1]}elements(){let e=new Array(this.#n);for(let t=0;t<this.#n;t++)e[t]=this.at(t);return e}#i(){let e=this.elements();this.#e=new Array(this.#e.length*2).fill(null),e.forEach((t,i)=>this.#e[i]=t),this.#t=0}addFirst(e,t){t===null&&e.fail(M,null),e.allocate(1),this.#n===this.#e.length&&this.#i(),this.#t=this.#t-1&this.#e.length-1,this.#e[this.#t]=t,this.#n++,this.mods++}addLast(e,t){t===null&&e.fail(M,null),e.allocate(1),this.#n===this.#e.length&&this.#i(),this.#e[this.#t+this.#n&this.#e.length-1]=t,this.#n++,this.mods++}pollFirst(){if(!this.#n)return null;let e=this.#e[this.#t];return this.#e[this.#t]=null,this.#t=this.#t+1&this.#e.length-1,this.#n--,this.mods++,e}pollLast(){if(!this.#n)return null;let e=this.#t+this.#n-1&this.#e.length-1,t=this.#e[e];return this.#e[e]=null,this.#n--,this.mods++,t}removeAt(e){let t=this.elements().slice();t.splice(e,1),this.#e.fill(null),t.forEach((i,a)=>this.#e[a]=i),this.#t=0,this.#n=t.length,this.mods++}#a(e,t,i){if(t===null)return 0;let a=this.elements();return u(i?ss(e,a,t):xt(e,a,t),r=>r<0?0:(this.removeAt(r),1))}*contains(e,t){return t!==null&&(yield*xt(e,this.elements(),t))>=0}"addFirst(E)"(e,t){this.addFirst(e,t)}"addLast(E)"(e,t){this.addLast(e,t)}"offerFirst(E)"(e,t){return this.addFirst(e,t),1}"offerLast(E)"(e,t){return this.addLast(e,t),1}"add(E)"(e,t){return this.addLast(e,t),1}"offer(E)"(e,t){return this.addLast(e,t),1}"push(E)"(e,t){this.addFirst(e,t)}"pollFirst()"(){return this.pollFirst()}"pollLast()"(){return this.pollLast()}"poll()"(){return this.pollFirst()}"removeFirst()"(e){return this.#n?this.pollFirst():e.fail(X,null)}"removeLast()"(e){return this.#n?this.pollLast():e.fail(X,null)}"pop()"(e){return this["removeFirst()"](e)}"remove()"(e){return this["removeFirst()"](e)}"getFirst()"(e){return this.#n?this.at(0):e.fail(X,null)}"getLast()"(e){return this.#n?this.at(this.#n-1):e.fail(X,null)}"element()"(e){return this["getFirst()"](e)}"peekFirst()"(){return this.#n?this.at(0):null}"peek()"(){return this.#n?this.at(0):null}"peekLast()"(){return this.#n?this.at(this.#n-1):null}"removeFirstOccurrence(Object)"(e,t){return this.#a(e,t,!1)}"remove(Object)"(e,t){return this.#a(e,t,!1)}"removeLastOccurrence(Object)"(e,t){return this.#a(e,t,!0)}"clear()"(){this.#e.fill(null),this.#t=0,this.#n=0,this.mods++}"iterator()"(e){return new ui(e.hash(),this,!1)}"descendingIterator()"(e){return new ui(e.hash(),this,!0)}},ui=class extends p{className;#e;#t;#n=0;#i=-1;#a;constructor(e,t,i){super(e),this.className=i?"java.util.ArrayDeque$DescendingIterator":"java.util.ArrayDeque$DeqIterator",this.#e=t,this.#t=i,this.#a=t.mods}#r(e){this.#e.mods!==this.#a&&e.limitation("changing an ArrayDeque while iterating over it")}"hasNext()"(e){return this.#r(e),f(this.#n<this.#e.size)}"next()"(e){if(this.#r(e),this.#n>=this.#e.size)return e.fail(X,null);let t=this.#t?this.#e.size-1-this.#n:this.#n;return this.#n++,this.#i=t,this.#e.at(t)}"remove()"(e){if(this.#i<0)return e.fail("java.lang.IllegalStateException",null);this.#r(e),this.#e.removeAt(this.#i),this.#t||this.#n--,this.#i=-1,this.#a=this.#e.mods}},nt=class extends L{className="java.util.PriorityQueue";get addAllNullMessage(){return null}es=[];modCount=0;"forEach(Consumer)"(e,t){if(t===null)return e.fail(M,null);let i=this;return u((function*(){let a=i.modCount,r=i.es.slice();for(let l of r)yield*g(e,t,"accept",[l]);i.modCount!==a&&e.fail(Le,null)})(),()=>{})}comparator=null;#e=!1;#t(e,t,i,a){return a instanceof h.JObject&&(this.#e=!0),this.comparator===null&&!this.#e?i(e()):u(t(),i)}noteContents(){tt(this.es)&&(this.#e=!0)}get#n(){return this.comparator!==null||this.#e}*siftUpWith(e,t,i){this.comparator===null&&Ie(e,i);let a=$(e,this.comparator),r=this.es;for(;t>0;){let l=t-1>>>1,s=r[l];if((yield*a(i,s))>=0)break;r[t]=s,t=l}r[t]=i}*siftDownWith(e,t,i,a){this.comparator===null&&Ie(e,i);let r=$(e,this.comparator),l=this.es,s=a>>>1;for(;t<s;){let o=2*t+1,c=l[o],d=o+1;if(d<a&&(yield*r(c,l[d]))>0&&(c=l[o=d]),(yield*r(i,c))<=0)break;l[t]=c,t=o}l[t]=i}*heapifyWith(e){let t=this.es.length;e.charge(t);for(let i=(t>>>1)-1;i>=0;i--)yield*this.siftDownWith(e,i,this.es[i],t)}*removeAtWith(e,t){this.modCount++;let i=this.es.length-1;if(i===t){this.es.pop();return}let a=this.es.pop();yield*this.siftDownWith(e,t,a,i),this.es[t]===a&&(yield*this.siftUpWith(e,t,a))}get size(){return this.es.length}elements(){return this.es}siftUp(e,t,i){Ie(e,i);let a=this.es;for(;t>0;){let r=t-1>>>1,l=a[r];if(ie(e,i,l)>=0)break;a[t]=l,t=r}a[t]=i}siftDown(e,t,i,a){Ie(e,i);let r=this.es,l=a>>>1;for(;t<l;){let s=2*t+1,o=r[s],c=s+1;if(c<a&&ie(e,o,r[c])>0&&(o=r[s=c]),ie(e,i,o)<=0)break;r[t]=o,t=s}r[t]=i}heapify(e){let t=this.es.length;e.charge(t);for(let i=(t>>>1)-1;i>=0;i--)this.siftDown(e,i,this.es[i],t)}removeAt(e,t){this.modCount++;let i=this.es.length-1;if(i===t){this.es.pop();return}let a=this.es.pop();this.siftDown(e,t,a,i),this.es[t]===a&&this.siftUp(e,t,a)}"offer(E)"(e,t){if(t===null)return e.fail(M,null);e.allocate(1),e.charge(Math.log2(this.es.length+1)|0),this.modCount++,this.es.push(null);let i=this.es.length-1;return this.#t(()=>this.siftUp(e,i,t),()=>this.siftUpWith(e,i,t),()=>1,t)}"add(E)"(e,t){return this["offer(E)"](e,t)}"poll()"(e){if(!this.es.length)return null;e.charge(Math.log2(this.es.length)|0),this.modCount++;let t=this.es[0],i=this.es.pop(),a=this.es.length;return a?this.#t(()=>this.siftDown(e,0,i,a),()=>this.siftDownWith(e,0,i,a),()=>t):t}"peek()"(){return this.es.length?this.es[0]:null}"element()"(e){return this.es.length?this.es[0]:e.fail(X,null)}"remove()"(e){return this.es.length?this["poll()"](e):e.fail(X,null)}*contains(e,t){return t!==null&&(yield*xt(e,this.es,t))>=0}"remove(Object)"(e,t){if(t===null)return 0;let i=this;return u((function*(){let a=yield*xt(e,i.es,t);return a<0?!1:(i.#n?yield*i.removeAtWith(e,a):i.removeAt(e,a),!0)})(),f)}"clear()"(){this.modCount++,this.es.length=0}"iterator()"(e){return new Ha(e.hash(),this)}#i(e,t){let i=this;return u((function*(){let a=++i.modCount,r=[];for(let l of i.es.slice())(yield*t(l))||r.push(l);return i.modCount!==a&&e.fail(Le,null),r.length===i.es.length?!1:(i.es.length=0,i.es.push(...r),i.#n?yield*i.heapifyWith(e):i.heapify(e),!0)})(),f)}"removeAll(Collection)"(e,t){if(t===null)return e.fail(M,null);let i=t;return this.#i(e,a=>i.contains(e,a))}"retainAll(Collection)"(e,t){if(t===null)return e.fail(M,null);let i=t;return this.#i(e,function*(a){return!(yield*i.contains(e,a))})}"removeIf(Predicate)"(e,t){return t===null?e.fail(M,null):this.#i(e,function*(i){return I(yield*g(e,t,"test",[i]))})}heapifyAll(e){return this.#t(()=>this.heapify(e),()=>this.heapifyWith(e),()=>this)}},Ha=class extends p{className="java.util.PriorityQueue$Itr";#e;#t=0;#n;constructor(e,t){super(e),this.#e=t,this.#n=t.modCount}"hasNext()"(){return f(this.#t<this.#e.size)}"next()"(e){return this.#e.modCount!==this.#n?e.fail(Le,null):this.#t<this.#e.size?this.#e.es[this.#t++]:e.fail(X,null)}"remove()"(e){return e.limitation("Iterator.remove() on a PriorityQueue\'s iterator")}},Gu=(n,e,t)=>{e<0&&n.fail(Ua,`${t}: ${e}`)},os={"Collections.sort(List)":(n,[e])=>e===null?n.fail(M,\'Cannot invoke "java.util.List.sort(java.util.Comparator)" because "list" is null\'):e["sort(Comparator)"](n,null),"Collections.sort(List,Comparator)":(n,[e,t])=>e===null?n.fail(M,\'Cannot invoke "java.util.List.sort(java.util.Comparator)" because "list" is null\'):e["sort(Comparator)"](n,t)},ci={"ArrayList.<init>()":n=>new se(n.hash()),"ArrayList.<init>(int)":(n,[e])=>(Gu(n,e,"Illegal Capacity"),new se(n.hash())),"ArrayList.<init>(Collection)":(n,[e])=>{if(e===null)return n.fail(M,\'Cannot invoke "java.util.Collection.toArray()" because "c" is null\');let t=new se(n.hash()),i=e.elements(n,!0);return n.allocate(i.length),t.es.push(...i),t},"ArrayDeque.<init>()":n=>new Rn(n.hash()),"ArrayDeque.<init>(int)":n=>new Rn(n.hash()),"ArrayDeque.<init>(Collection)":(n,[e])=>{if(e===null)return n.fail(M,\'Cannot invoke "java.util.Collection.size()" because "c" is null\');let t=new Rn(n.hash());for(let i of e.elements(n,!0))t.addLast(n,i);return t},"PriorityQueue.<init>()":n=>new nt(n.hash()),"PriorityQueue.<init>(int)":(n,[e])=>e<1?n.fail(Ua,null):new nt(n.hash()),"PriorityQueue.<init>(Comparator)":(n,[e])=>{let t=new nt(n.hash());return t.comparator=e,t},"PriorityQueue.<init>(int,Comparator)":(n,[e,t])=>{if(e<1)return n.fail(Ua,null);let i=new nt(n.hash());return i.comparator=t,i},"PriorityQueue.<init>(Collection)":(n,[e])=>{if(e===null)return n.fail(M,\'Cannot invoke "java.util.Collection.toArray()" because "c" is null\');let t=new nt(n.hash()),i=e.elements(n,!0);return n.allocate(i.length),t.es.push(...i),t.noteContents(),e instanceof nt?(t.comparator=e.comparator,t):i.length===1&&i[0]===null?n.fail(M,null):t.heapifyAll(n)}};var tr="java.util.NoSuchElementException",en="java.util.ConcurrentModificationException",O="java.lang.NullPointerException",On="java.lang.IllegalArgumentException",Ju="java.lang.IllegalStateException",us="java.lang.UnsupportedOperationException",Pe=1<<30,cs=8,hs=6,Pu=64,Ke={identity:"iterating over or printing a HashMap or HashSet whose keys use identity hash codes (objects without hashCode(), enums): the JDK\'s order differs on every run",tree:"iterating over or printing a HashMap or HashSet after keys were removed from a bucket of colliding keys (the JDK\'s order there is not reproduced)",tie:"iterating over or printing a HashMap or HashSet with many keys whose hash codes are equal (the JDK orders them by identity hash code)",copied:"iterating over a HashMap or HashSet filled from a collection whose order differs on every JDK run (Set.of, Map.of, or keys hashed by identity)"};function nr(n,e){return e===null||e instanceof h.JString||e instanceof h.JBox?!1:e instanceof h.JObject?n.hashCodeMethod(e)<0:e instanceof p?!e.contentEquality:!0}function Ya(n,e){return e instanceof h.JObject&&n.hashCodeMethod(e)>=0||e instanceof p&&e.contentEquality}function hi(n){return n^n>>>16}function Yt(n){return n===null?0:n instanceof h.JString?hi(ai(n)):n instanceof h.JBox?hi(zt(n)):hi(n.hash)}function*Wt(n,e){return Ya(n,e)?hi(yield*j(n,e)):Yt(e)}function qa(n){let e=-1>>>Math.clz32(n-1)|0;return e<0?1:e>=Pe?Pe:e+1}function pi(n,e){let t=Math.ceil(n/Math.fround(e));return t<Pe?Math.trunc(t):Pe}var di=class{hash;key;value;next=null;htNext=null;before=null;after=null;tree=!1;prev=null;parent=null;left=null;right=null;red=!1;entry=null;constructor(e,t,i){this.hash=e,this.key=t,this.value=i}};function ds(n,e){let t=e.right;if(!t)return n;let i=e.right=t.left;i&&(i.parent=e);let a=t.parent=e.parent;return a?a.left===e?a.left=t:a.right=t:(n=t,t.red=!1),t.left=e,e.parent=t,n}function fs(n,e){let t=e.left;if(!t)return n;let i=e.left=t.right;i&&(i.parent=e);let a=t.parent=e.parent;return a?a.right===e?a.right=t:a.left=t:(n=t,t.red=!1),t.right=e,e.parent=t,n}function ms(n,e){for(e.red=!0;;){let t=e.parent;if(!t)return e.red=!1,e;let i=t.parent;if(!t.red||!i)return n;if(t===i.left){let a=i.right;a&&a.red?(a.red=!1,t.red=!1,i.red=!0,e=i):(e===t.right&&(e=t,n=ds(n,e),t=e.parent,i=t?t.parent:null),t&&(t.red=!1,i&&(i.red=!0,n=fs(n,i))))}else{let a=i.left;a&&a.red?(a.red=!1,t.red=!1,i.red=!0,e=i):(e===t.left&&(e=t,n=fs(n,e),t=e.parent,i=t?t.parent:null),t&&(t.red=!1,i&&(i.red=!0,n=ds(n,i))))}}}var bs=n=>n instanceof p&&"entryKey"in n,at=class n extends p{copyMappings(e){return{mappings:this.mappings(e,!0),unknown:null}}get contentEquality(){return!0}*javaString(e){let t=[],i=this.mappings(e,!0);e.charge(i.length);for(let a of i)t.push(`${yield*x(e,a.entryKey,this,"(this Map)")}=${yield*x(e,a.entryValue,this,"(this Map)")}`);return`{${t.join(", ")}}`}*contentEquals(e,t){if(t===this)return!0;if(!(t instanceof n)||t.size!==this.size)return!1;for(let i of this.mappings(e,!1)){let a=yield*t.lookup(e,i.entryKey);if(a===void 0||(i.entryValue===null?a!==null:!(yield*T(e,i.entryValue,a))))return!1}return!0}*contentHash(e){let t=0;for(let i of this.mappings(e,!1))t=t+((yield*j(e,i.entryKey))^(yield*j(e,i.entryValue)))|0;return t}"size()"(){return this.size}"isEmpty()"(){return f(this.size===0)}},F=class extends at{className="java.util.HashMap";table=null;#e=0;threshold=0;loadFactor=.75;modCount=0;unknown=null;linked=!1;head=null;tail=null;#t=null;#n=null;#i=null;get size(){return this.#e}initialCapacity(e,t){t<0&&e.fail(On,`Illegal initial capacity: ${t}`),this.threshold=qa(t)}capacityAndLoad(e,t,i){t<0&&e.fail(On,`Illegal initial capacity: ${t}`),i>0||e.fail(On,`Illegal load factor: ${h.floatToString(i)}`),this.loadFactor=Math.fround(i),this.threshold=qa(t)}#a(e,t){let i=this.table;if(!i)return null;for(let a=i[i.length-1&e]??null;a;a=a.next)if(a.hash===e&&(a.key===t||t!==null&&Kt(t,a.key)))return a;return null}*find(e,t,i){if(i===null||!Ct(e,i))return this.#a(t,i);let a=this.table;if(!a)return null;for(let r=a[a.length-1&t]??null;r;r=r.next)if(r.hash===t&&(r.key===i||(yield*T(e,i,r.key))))return r;return null}*getNode(e,t){return yield*this.find(e,yield*Wt(e,t),t)}*lookup(e,t){let i=yield*this.getNode(e,t);return i?i.value:void 0}#r(e,t){if(!(Ya(e,t)||t!==null&&Ct(e,t)))return this.#a(Yt(t),t)}*put(e,t,i,a=!1){let r=yield*Wt(e,t),l=yield*this.find(e,r,t);if(l){let s=l.value;return(!a||s===null)&&(l.value=i),this.accessed(l),s}return this.addNode(e,r,t,i),yield*this.afterInsertion(e),null}evictor(e){let t=this.owner;return t&&this.linked?e.overrideOf(t,"removeEldestEntry(Entry)"):-1}*afterInsertion(e){let t=this.evictor(e);if(t<0||!this.head)return;let i=this.head;(yield{invoke:t,args:[this.owner,Qt(e,i)]})===1&&(yield*this.remove(e,i.key))}*evicting(e,t){let i=this.size,a=yield*t;return this.size>i&&(yield*this.afterInsertion(e)),a}accessed(e){}addNode(e,t,i,a){e.allocate(1);let r=this.table;(!r||r.length===0)&&(r=this.resize(e));let l=r.length-1&t,s=new di(t,i,a),o=r[l]??null;if(!o)r[l]=s;else if(o.tree)this.#h(e,r,o,s);else{let c=1,d=o;for(;d.next;)d=d.next,c++;d.next=s,c>=cs&&this.#o(e,r,t)}return this.linkNew(s),this.modCount++,++this.#e>this.threshold&&this.resize(e),s}resize(e){let t=this.table,i=t?t.length:0,a=this.threshold,r=0,l=0;if(i>0){if(i>=Pe)return this.threshold=2147483647,t;r=i<<1,r<Pe&&i>=16&&(l=a<<1)}else a>0?r=a:(r=16,l=Math.trunc(Math.fround(16*this.loadFactor)));if(l===0){let o=Math.fround(r*this.loadFactor);l=r<Pe&&o<Pe?Math.trunc(o):2147483647}this.threshold=l,e.allocate(r-i);let s=new Array(r).fill(null);if(this.table=s,t){e.charge(i);for(let o=0;o<i;o++){let c=t[o];if(c)if(t[o]=null,!c.next)s[c.hash&r-1]=c;else if(c.tree)this.#d(s,o,i,c);else{let d=null,m=null,v=null,C=null;for(let k=c;k;k=k.next)(k.hash&i)===0?(m?m.next=k:d=k,m=k):(C?C.next=k:v=k,C=k);m&&(m.next=null,s[o]=d),C&&(C.next=null,s[o+i]=v)}}}return s}#l(e,t,i){if(i.hash>e)return-1;if(i.hash<e)return 1;let a=i.key;if(t instanceof h.JString&&a instanceof h.JString){let r=Re(t.value,a.value);if(r!==0)return r}else if(t instanceof h.JBox&&a instanceof h.JBox&&t.kind===a.kind){let r=Ht(t,a);if(r!==0)return r}if(t!==null&&a!==null){let r=Re(Oe(t),Oe(a));if(r!==0)return r}return this.unknown??=Ke.tie,-1}#s(e,t){let i=null;for(let a=t;a;a=a.next){if(a.left=a.right=null,!i){a.parent=null,a.red=!1,i=a;continue}for(let r=i;;){let l=this.#l(a.hash,a.key,r),s=l<=0?r.left:r.right;if(s){r=s;continue}a.parent=r,l<=0?r.left=a:r.right=a,i=ms(i,a);break}}this.#c(e,i)}#c(e,t){let i=e.length-1&t.hash,a=e[i]??null;if(t===a)return;let r=t.next,l=t.prev;r&&(r.prev=l),l&&(l.next=r),a&&(a.prev=t),t.next=a,t.prev=null,e[i]=t}#o(e,t,i){if(t.length<Pu){this.resize(e);return}let a=t[t.length-1&i]??null,r=null;for(let l=a;l;l=l.next)l.tree=!0,l.prev=r,r=l;a&&this.#s(t,a)}#h(e,t,i,a){let r=i;for(;r.parent;)r=r.parent;for(let l=r;;){let s=this.#l(a.hash,a.key,l),o=s<=0?l.left:l.right;if(o){l=o;continue}a.tree=!0;let c=l.next;a.next=c,l.next=a,a.parent=a.prev=l,c&&(c.prev=a),s<=0?l.left=a:l.right=a,this.#c(t,ms(r,a));return}}#d(e,t,i,a){let r=null,l=null,s=null,o=null,c=0,d=0;for(let m=a,v;m;m=v)v=m.next,m.next=null,(m.hash&i)===0?(m.prev=l,l?l.next=m:r=m,l=m,c++):(m.prev=o,o?o.next=m:s=m,o=m,d++);r&&(c<=hs?e[t]=Wa(r):(e[t]=r,s&&this.#s(e,r))),s&&(d<=hs?e[t+i]=Wa(s):(e[t+i]=s,r&&this.#s(e,s)))}removeNode(e){let t=this.table,i=t.length-1&e.hash;if(e.tree){let r=Wa(t[i]);t[i]=r,this.linked||(this.unknown??=Ke.tree)}let a=t[i]??null;if(a===e)t[i]=e.next;else{for(;a&&a.next!==e;)a=a.next;a&&(a.next=e.next)}this.linked&&(e.before?e.before.after=e.after:this.head=e.after,e.after?e.after.before=e.before:this.tail=e.before,e.before=e.after=null),this.modCount++,this.#e--}*remove(e,t){let i=yield*this.getNode(e,t);return i&&this.removeNode(i),i}clear(){this.modCount++,this.table&&this.#e>0&&(this.#e=0,this.table.fill(null)),this.head=this.tail=null,this.unknown=null}orderProblem(e){if(this.#e<2)return null;if(this.unknown)return this.unknown;if(this.linked)return null;for(let t of this.#u())if(nr(e,t.key))return Ke.identity;return null}#u(){let e=[];if(this.linked){for(let i=this.head;i;i=i.after)e.push(i);return e}let t=this.table;if(!t||this.#e===0)return e;for(let i of t)for(let a=i;a;a=a.next)e.push(a);return e}nodes(e,t){if(t){let i=this.orderProblem(e);i&&e.limitation(i)}return e.charge(this.#e),this.#u()}mappings(e,t){return this.nodes(e,t).map(i=>Qt(e,i))}copyMappings(e){let t=this.orderProblem(e);return{mappings:this.nodes(e,!1).map(i=>Qt(e,i)),unknown:t?Ke.copied:null}}firstFrom(e){let t=this.table;if(!t)return{node:null,index:e};for(;e<t.length;){let i=t[e++]??null;if(i)return{node:i,index:e}}return{node:null,index:e}}*putMappings(e,t){let i=t.size;if(i>0)if(this.table)for(;i>this.threshold&&this.table.length<Pe;)this.resize(e);else{let l=pi(i,this.loadFactor);l>this.threshold&&(this.threshold=qa(l))}let{mappings:a,unknown:r}=t.copyMappings(e);for(let l of a)yield*this.put(e,l.entryKey,l.entryValue);r&&i>1&&this.copiedInUnknownOrder(r,a.map(l=>l.entryKey))}copiedInUnknownOrder(e,t){if(this.linked){this.unknown??=e;return}let i=new Set(t);for(let a of this.table??[]){let r=0;for(let l=a;l;l=l.next)if(i.has(l.key)&&++r>1){this.unknown??=e;return}}}#f(e){return this.#e>this.threshold||!this.table||this.table.length===0?this.resize(e):this.table}#g(e,t,i,a,r){e.allocate(1);let l=t.length-1&i,s=t[l]??null,o=new di(i,a,r);if(s&&s.tree)this.#h(e,t,s,o);else{let c=0;for(let d=s;d;d=d.next)c++;o.next=s,t[l]=o,c>=cs-1&&this.#o(e,t,i)}this.linkNew(o),this.modCount++,this.#e++}linkNew(e){this.linked&&(e.before=this.tail,this.tail?this.tail.after=e:this.head=e,this.tail=e)}#m(e,t){this.modCount!==t&&e.fail(en,null)}#p(e,t){return t===null||!(Ya(e,t)||Ct(e,t))}"computeIfAbsent(K,Function)"(e,t,i){if(i===null)return e.fail(O,null);let a=(l,s,o,c,d)=>{let m=d??null;return this.#m(e,c),m===null?null:o?(o.value=m,this.accessed(o),m):(this.#g(e,l,s,t,m),m)};if(this.#p(e,t)&&this.evictor(e)<0){let l=Yt(t),s=this.#f(e),o=this.#a(l,t);if(o&&o.value!==null)return this.accessed(o),o.value;let c=this.modCount;return Jt(e,i,"apply",[t],d=>a(s,l,o,c,d))}let r=this;return u(r.evicting(e,(function*(){let l=yield*Wt(e,t),s=r.#f(e),o=yield*r.find(e,l,t);if(o&&o.value!==null)return r.accessed(o),o.value;let c=r.modCount;return a(s,l,o,c,yield*g(e,i,"apply",[t]))})()))}"computeIfPresent(K,BiFunction)"(e,t,i){if(i===null)return e.fail(O,null);let a=(l,s,o)=>{let c=o??null;return this.#m(e,s),c===null?(this.removeNode(l),null):(l.value=c,this.accessed(l),c)};if(this.#p(e,t)){let l=this.#a(Yt(t),t);if(!l||l.value===null)return null;let s=this.modCount;return Jt(e,i,"apply",[t,l.value],o=>a(l,s,o))}let r=this;return u((function*(){let l=yield*r.getNode(e,t);if(!l||l.value===null)return null;let s=r.modCount,o=yield*g(e,i,"apply",[t,l.value]);return r.#m(e,s),(o??null)===null&&(yield*Wt(e,t)),a(l,s,o)})())}"compute(K,BiFunction)"(e,t,i){if(i===null)return e.fail(O,null);let a=(l,s,o,c,d)=>{let m=d??null;return this.#m(e,c),o?m!==null?(o.value=m,this.accessed(o)):this.removeNode(o):m!==null&&this.#g(e,l,s,t,m),m};if(this.#p(e,t)&&this.evictor(e)<0){let l=Yt(t),s=this.#f(e),o=this.#a(l,t),c=this.modCount;return Jt(e,i,"apply",[t,o?o.value:null],d=>a(s,l,o,c,d))}let r=this;return u(r.evicting(e,(function*(){let l=yield*Wt(e,t),s=r.#f(e),o=yield*r.find(e,l,t),c=r.modCount;return a(s,l,o,c,yield*g(e,i,"apply",[t,o?o.value:null]))})()))}"merge(K,V,BiFunction)"(e,t,i,a){if(i===null||a===null)return e.fail(O,null);let r=(s,o)=>(o!==null?(s.value=o,this.accessed(s)):this.removeNode(s),o);if(this.#p(e,t)&&this.evictor(e)<0){let s=Yt(t),o=this.#f(e),c=this.#a(s,t);if(!c)return this.#g(e,o,s,t,i),i;if(c.value===null)return r(c,i);let d=this.modCount;return Jt(e,a,"apply",[c.value,i],m=>(this.#m(e,d),r(c,m??null)))}let l=this;return u(l.evicting(e,(function*(){let s=yield*Wt(e,t),o=l.#f(e),c=yield*l.find(e,s,t);if(!c)return l.#g(e,o,s,t,i),i;if(c.value===null)return r(c,i);let d=l.modCount,m=(yield*g(e,a,"apply",[c.value,i]))??null;return l.#m(e,d),r(c,m)})()))}*each(e,t){let i=this.orderProblem(e);i&&e.limitation(i);let a=this.modCount;if(this.linked)for(let r=this.head;r;r=r.after)yield*t(r);else{let r=this.table;if(this.#e>0&&r)for(let l of r)for(let s=l;s;s=s.next)yield*t(s)}this.modCount!==a&&e.fail(en,null)}"forEach(BiConsumer)"(e,t){return t===null?e.fail(O,null):u(this.each(e,function*(i){yield*g(e,t,"accept",[i.key,i.value])}),()=>{})}"replaceAll(BiFunction)"(e,t){return t===null?e.fail(O,null):u(this.each(e,function*(i){i.value=(yield*g(e,t,"apply",[i.key,i.value]))??null}),()=>{})}"get(Object)"(e,t){let i=this.#r(e,t);return i!==void 0?i?this.#v(i):null:u(this.getNode(e,t),a=>a?this.#v(a):null)}"getOrDefault(Object,V)"(e,t,i){let a=this.#r(e,t);return a!==void 0?a?this.#v(a):i:u(this.getNode(e,t),r=>r?this.#v(r):i)}#v(e){return this.accessed(e),e.value}"containsKey(Object)"(e,t){let i=this.#r(e,t);return i!==void 0?f(i!==null):u(this.getNode(e,t),a=>f(a!==null))}"containsValue(Object)"(e,t){let i=this.nodes(e,!1);return u((function*(){for(let a of i)if(a.value===t||t!==null&&(yield*T(e,t,a.value)))return!0;return!1})(),f)}"put(K,V)"(e,t,i){return u(this.put(e,t,i))}"putIfAbsent(K,V)"(e,t,i){return u(this.put(e,t,i,!0))}"remove(Object)"(e,t){return u(this.remove(e,t),i=>i?i.value:null)}"remove(Object,Object)"(e,t,i){let a=this;return u((function*(){let r=yield*a.getNode(e,t);return!r||!(yield*z(e,r.value,i))?!1:(a.removeNode(r),!0)})(),f)}"replace(K,V)"(e,t,i){return u(this.getNode(e,t),a=>{if(!a)return null;let r=a.value;return a.value=i,this.accessed(a),r})}"replace(K,V,V)"(e,t,i,a){let r=this;return u((function*(){let l=yield*r.getNode(e,t);return!l||!(yield*z(e,l.value,i))?!1:(l.value=a,r.accessed(l),!0)})(),f)}"putAll(Map)"(e,t){return t===null?e.fail(O,\'Cannot invoke "java.util.Map.size()" because "m" is null\'):u(this.putMappings(e,t),()=>{})}"clear()"(){this.clear()}"keySet()"(e){return this.#t??=new Xa(e.hash(),this)}"values()"(e){return this.#n??=new Qa(e.hash(),this)}"entrySet()"(e){return this.#i??=new er(e.hash(),this)}};function Wa(n){for(let e=n;e;e=e.next)e.tree=!1,e.prev=e.parent=e.left=e.right=null,e.red=!1;return n}var Ce=class extends F{className="java.util.LinkedHashMap";linked=!0;accessOrder=!1;"removeEldestEntry(Entry)"(){return f(!1)}accessed(e){if(!this.accessOrder||e===this.tail)return;let t=e.before,i=e.after;t?t.after=i:this.head=i,i&&(i.before=t),e.before=this.tail,e.after=null,this.tail&&(this.tail.after=e),this.tail=e,this.modCount++}},Zt=class extends F{className="java.util.Hashtable";linked=!0;buckets=new Array(11).fill(null);#e=0;#t=8;#n=.75;sized(e,t,i=.75){t<0&&e.fail(On,`Illegal Capacity: ${t}`),i>0||e.fail(On,`Illegal Load: ${h.floatToString(i)}`);let a=t===0?1:t;this.#n=Math.fround(i),this.buckets=new Array(a).fill(null),this.#t=Math.trunc(Math.min(a*this.#n,2147483640))}#i(e,t){return((e.hash^e.hash>>>16)&2147483647)%t}linkNew(e){this.#e>=this.#t&&this.#a();let t=this.buckets,i=this.#i(e,t.length),a=t[i]??null;for(let r=i-1;!a&&r>=0;r--)a=t[r]??null;e.htNext=t[i]??null,t[i]=e,this.#e++,e.after=a,e.before=a?a.before:this.tail,e.before?e.before.after=e:this.head=e,a?a.before=e:this.tail=e}#a(){let e=this.buckets,t=e.length*2+1,i=new Array(t).fill(null);this.#t=Math.trunc(Math.min(t*this.#n,2147483640));for(let r=e.length;r-- >0;)for(let l=e[r]??null;l;){let s=l;l=l.htNext;let o=this.#i(s,t);s.htNext=i[o]??null,i[o]=s}this.buckets=i;let a=null;this.head=null;for(let r=t;r-- >0;)for(let l=i[r]??null;l;l=l.htNext)l.before=a,a?a.after=l:this.head=l,a=l;a&&(a.after=null),this.tail=a}removeNode(e){let t=this.buckets,i=this.#i(e,t.length);if(t[i]===e)t[i]=e.htNext;else for(let a=t[i]??null;a;a=a.htNext)if(a.htNext===e){a.htNext=e.htNext;break}this.#e--,super.removeNode(e)}clear(){this.buckets.fill(null),this.#e=0,super.clear()}#r(){let e=[];for(let t of this.buckets)for(let i=t;i;i=i.htNext)e.push(i);return e}*put(e,t,i,a=!1){return i===null?e.fail(O,null):t===null?e.fail(O,Je):yield*super.put(e,t,i,a)}"get(Object)"(e,t){return t===null?e.fail(O,Je):super["get(Object)"](e,t)}"getOrDefault(Object,V)"(e,t,i){return t===null?e.fail(O,Je):super["getOrDefault(Object,V)"](e,t,i)}"containsKey(Object)"(e,t){return t===null?e.fail(O,Je):super["containsKey(Object)"](e,t)}"remove(Object)"(e,t){return t===null?e.fail(O,Je):super["remove(Object)"](e,t)}"containsValue(Object)"(e,t){return t===null?e.fail(O,null):super["containsValue(Object)"](e,t)}"contains(Object)"(e,t){return this["containsValue(Object)"](e,t)}"computeIfAbsent(K,Function)"(e,t,i){return i===null?e.fail(O,null):t===null?e.fail(O,Je):super["computeIfAbsent(K,Function)"](e,t,i)}"computeIfPresent(K,BiFunction)"(e,t,i){return i===null?e.fail(O,null):t===null?e.fail(O,Je):super["computeIfPresent(K,BiFunction)"](e,t,i)}"compute(K,BiFunction)"(e,t,i){return i===null?e.fail(O,null):t===null?e.fail(O,Je):super["compute(K,BiFunction)"](e,t,i)}"merge(K,V,BiFunction)"(e,t,i,a){return a===null||i===null?e.fail(O,null):t===null?e.fail(O,Je):super["merge(K,V,BiFunction)"](e,t,i,a)}"forEach(BiConsumer)"(e,t){if(t===null)return e.fail(O,null);let i=this;return u((function*(){let a=i.modCount;for(let r of i.#r())yield*g(e,t,"accept",[r.key,r.value]),i.modCount!==a&&e.fail(en,null)})(),()=>{})}"replaceAll(BiFunction)"(e,t){if(t===null)return e.fail(O,null);let i=this;return u((function*(){let a=i.modCount;for(let r of i.#r()){let l=(yield*g(e,t,"apply",[r.key,r.value]))??null;l===null&&e.fail(O,null),r.value=l,i.modCount!==a&&e.fail(en,null)}})(),()=>{})}"keys()"(e){return this.size===0?new mi(e.hash()):new fi(e.hash(),this,"key")}"elements()"(e){return this.size===0?new mi(e.hash()):new fi(e.hash(),this,"value")}},Je=\'Cannot invoke "Object.hashCode()" because "key" is null\',fi=class extends p{className="java.util.Hashtable$Enumerator";#e;#t;#n;#i=null;constructor(e,t,i){super(e),this.#e=t.buckets,this.#n=t.buckets.length,this.#t=i}"hasMoreElements()"(){for(;!this.#i&&this.#n>0;)this.#i=this.#e[--this.#n]??null;return f(this.#i!==null)}"nextElement()"(e){for(;!this.#i&&this.#n>0;)this.#i=this.#e[--this.#n]??null;let t=this.#i;return t?(this.#i=t.htNext,this.#t==="key"?t.key:t.value):e.fail(tr,"Hashtable Enumerator")}"asIterator()"(e){return new Qe(e.hash(),this)}},mi=class extends p{className="java.util.Collections$EmptyEnumeration";"hasMoreElements()"(){return f(!1)}"nextElement()"(e){return e.fail(tr,null)}"asIterator()"(e){return new Qe(e.hash(),this)}};function Qt(n,e){return e.entry??=new Za(n.hash(),e)}var Za=class extends p{className="java.util.HashMap$Node";node;constructor(e,t){super(e),this.node=t}get entryKey(){return this.node.key}get entryValue(){return this.node.value}get contentEquality(){return!0}*javaString(e){return yield*tn(e,this)}*contentEquals(e,t){return yield*Tt(e,this,t)}*contentHash(e){return yield*nn(e,this)}"getKey()"(){return this.node.key}"getValue()"(){return this.node.value}"setValue(V)"(e,t){let i=this.node.value;return this.node.value=t,i}};function*tn(n,e){return`${yield*x(n,e.entryKey,e)}=${yield*x(n,e.entryValue,e)}`}function*Tt(n,e,t){return t===e?!0:bs(t)?(yield*z(n,e.entryKey,t.entryKey))&&(yield*z(n,e.entryValue,t.entryValue)):!1}function*nn(n,e){return(yield*j(n,e.entryKey))^(yield*j(n,e.entryValue))|0}var In=class extends L{map;constructor(e,t){super(e),this.map=t}get size(){return this.map.size}#e(e,t){return this.kind==="key"?t.key:this.kind==="value"?t.value:Qt(e,t)}elements(e,t){return this.map.nodes(e,t).map(i=>this.#e(e,i))}copyItems(e){let t=this.map.orderProblem(e);return{items:this.elements(e,!1),unknown:t?Ke.copied:null}}"add(E)"(e){return e.fail(us,null)}"addAll(Collection)"(e){return e.fail(us,null)}"clear()"(){this.map.clear()}"iterator()"(e){return new gi(e,this.map,this.kind)}"forEach(Consumer)"(e,t){if(t===null)return e.fail(O,null);let i=this.kind;return u(this.map.each(e,function*(a){yield*g(e,t,"accept",[i==="key"?a.key:i==="value"?a.value:Qt(e,a)])}),()=>{})}};function*ir(n,e,t){if(t===e)return!0;if(!(t instanceof L)||!t.isSet||t.size!==e.size)return!1;for(let i of t.elements(n,!1))if(!(yield*e.contains(n,i)))return!1;return!0}function*ar(n,e){let t=0;for(let i of e.elements(n,!1))t=t+(yield*j(n,i))|0;return t}var Xa=class extends In{kind="key";isSet=!0;get className(){return this.map.linked?"java.util.LinkedHashMap$LinkedKeySet":"java.util.HashMap$KeySet"}get contentEquality(){return!0}*contentEquals(e,t){return yield*ir(e,this,t)}*contentHash(e){return yield*ar(e,this)}*contains(e,t){return(yield*this.map.getNode(e,t))!==null}"remove(Object)"(e,t){return u(this.map.remove(e,t),i=>f(i!==null))}},Qa=class extends In{kind="value";get className(){return this.map.linked?"java.util.LinkedHashMap$LinkedValues":"java.util.HashMap$Values"}*contains(e,t){for(let i of this.map.nodes(e,!1))if(t===null?i.value===null:yield*T(e,t,i.value))return!0;return!1}"remove(Object)"(e,t){let i=this.map;return u((function*(){for(let a of i.nodes(e,!0))if(t===null?a.value===null:yield*T(e,t,a.value))return i.removeNode(a),!0;return!1})(),f)}},er=class extends In{kind="entry";isSet=!0;get className(){return this.map.linked?"java.util.LinkedHashMap$LinkedEntrySet":"java.util.HashMap$EntrySet"}get contentEquality(){return!0}*contentEquals(e,t){return yield*ir(e,this,t)}*contentHash(e){return yield*ar(e,this)}*#e(e,t){if(!bs(t))return null;let i=yield*this.map.getNode(e,t.entryKey);return i&&(yield*z(e,i.value,t.entryValue))?i:null}*contains(e,t){return(yield*this.#e(e,t))!==null}"remove(Object)"(e,t){return u(this.#e(e,t),i=>(i&&this.map.removeNode(i),f(i!==null)))}},gi=class extends p{className;#e;#t;#n;#i=null;#a=0;#r;constructor(e,t,i){super(e.hash());let a=t.orderProblem(e);a&&e.limitation(a),this.#e=t,this.#t=i;let r=i==="key"?"Key":i==="value"?"Value":"Entry";this.className=t.linked?`java.util.LinkedHashMap$Linked${r}Iterator`:`java.util.HashMap$${r}Iterator`,this.#r=t.modCount,t.linked?this.#n=t.head:t.size>0?{node:this.#n,index:this.#a}=t.firstFrom(0):this.#n=null}"hasNext()"(){return f(this.#n!==null)}"next()"(e){let t=this.#n;return this.#e.modCount!==this.#r?e.fail(en,null):t?(this.#i=t,this.#e.linked?this.#n=t.after:(this.#n=t.next)===null&&({node:this.#n,index:this.#a}=this.#e.firstFrom(this.#a)),e.charge(1),this.#t==="key"?t.key:this.#t==="value"?t.value:Qt(e,t)):e.fail(tr,null)}"remove()"(e){let t=this.#i;if(!t)return e.fail(Ju,null);if(this.#e.modCount!==this.#r)return e.fail(en,null);this.#i=null,this.#e.removeNode(t),this.#r=this.#e.modCount}},Et=class extends L{className="java.util.HashSet";isSet=!0;hashed=!0;map;constructor(e,t){super(e),this.map=t}get size(){return this.map.size}elements(e,t){return this.map.nodes(e,t).map(i=>i.key)}copyItems(e){let t=this.map.orderProblem(e);return{items:this.elements(e,!1),unknown:t?Ke.copied:null}}markUnknown(e,t){this.map.copiedInUnknownOrder(e,t)}get contentEquality(){return!0}*contentEquals(e,t){return yield*ir(e,this,t)}*contentHash(e){return yield*ar(e,this)}*contains(e,t){return(yield*this.map.getNode(e,t))!==null}"contains(Object)"(e,t){return this.map["containsKey(Object)"](e,t)}"add(E)"(e,t){let i=this.map.size;return u(this.map.put(e,t,Ku),()=>f(this.map.size!==i))}"remove(Object)"(e,t){return u(this.map.remove(e,t),i=>f(i!==null))}"clear()"(){this.map.clear()}"iterator()"(e){return new gi(e,this.map,"key")}},Ku=null,Xt=class extends Et{className="java.util.LinkedHashSet"};function gs(n,e,t){let{items:i,unknown:a}=t.copyItems(n);return u(_u(e.addEach(n,i)),()=>(a&&i.length>1&&e.markUnknown(a,i),e))}var ps=\'Cannot invoke "java.util.Collection.size()" because "c" is null\',vs=\'Cannot invoke "java.util.Map.size()" because "m" is null\',an={"Hashtable.<init>()":n=>new Zt(n.hash()),"Hashtable.<init>(int)":(n,[e])=>{let t=new Zt(n.hash());return t.sized(n,e),t},"Hashtable.<init>(int,float)":(n,[e,t])=>{let i=new Zt(n.hash());return i.sized(n,e,t),i},"Hashtable.<init>(Map)":(n,[e])=>{if(e===null)return n.fail(O,\'Cannot invoke "java.util.Map.size()" because "t" is null\');let t=new Zt(n.hash());return t.sized(n,Math.max(2*e.size,11)),u(t.putMappings(n,e),()=>t)},"HashMap.<init>()":n=>new F(n.hash()),"HashMap.<init>(int)":(n,[e])=>{let t=new F(n.hash());return t.initialCapacity(n,e),t},"HashMap.<init>(Map)":(n,[e])=>{if(e===null)return n.fail(O,vs);let t=new F(n.hash());return u(t.putMappings(n,e),()=>t)},"LinkedHashMap.<init>()":n=>new Ce(n.hash()),"LinkedHashMap.<init>(int)":(n,[e])=>{let t=new Ce(n.hash());return t.initialCapacity(n,e),t},"HashMap.<init>(int,float)":(n,[e,t])=>{let i=new F(n.hash());return i.capacityAndLoad(n,e,t),i},"LinkedHashMap.<init>(int,float)":(n,[e,t])=>{let i=new Ce(n.hash());return i.capacityAndLoad(n,e,t),i},"LinkedHashMap.<init>(int,float,boolean)":(n,[e,t,i])=>{let a=new Ce(n.hash());return a.capacityAndLoad(n,e,t),a.accessOrder=i===1,a},"LinkedHashMap.<init>(Map)":(n,[e])=>{if(e===null)return n.fail(O,vs);let t=new Ce(n.hash());return u(t.putMappings(n,e),()=>t)},"HashSet.<init>()":n=>new Et(n.hash(),new F(n.hash())),"HashSet.<init>(int)":(n,[e])=>{let t=new F(n.hash());return t.initialCapacity(n,e),new Et(n.hash(),t)},"HashSet.<init>(int,float)":(n,[e,t])=>{let i=new F(n.hash());return i.capacityAndLoad(n,e,t),new Et(n.hash(),i)},"HashSet.<init>(Collection)":(n,[e])=>{if(e===null)return n.fail(O,ps);let t=new F(n.hash());return t.initialCapacity(n,pi(Math.max(e.size,12),.75)),gs(n,new Et(n.hash(),t),e)},"LinkedHashSet.<init>()":n=>new Xt(n.hash(),new Ce(n.hash())),"LinkedHashSet.<init>(int)":(n,[e])=>{let t=new Ce(n.hash());return t.initialCapacity(n,e),new Xt(n.hash(),t)},"LinkedHashSet.<init>(int,float)":(n,[e,t])=>{let i=new Ce(n.hash());return i.capacityAndLoad(n,e,t),new Xt(n.hash(),i)},"LinkedHashSet.<init>(Collection)":(n,[e])=>{if(e===null)return n.fail(O,ps);let t=new Ce(n.hash());return t.initialCapacity(n,Math.max(2*e.size,11)),gs(n,new Xt(n.hash(),t),e)}};function*_u(n){return n!==null&&typeof n=="object"&&Symbol.iterator in n?yield*n:n}var _e="java.lang.NullPointerException",vi=class extends ye{*javaString(e){return e.limitation("printing a lambda")}},je=class extends vi{samKey="compare(T,T)";call(e,t){return this.compare(e,t[0],t[1])}};function ot(n,e,t,i){return $(n,e)(t,i)}function bi(n,e,t){return $(n,null)(e,t)}var ln=class extends je{className="java.util.Comparator$$Lambda";#e;#t;constructor(e,t,i){super(e),this.#e=t,this.#t=i}*compare(e,t,i){let a=yield*g(e,this.#e,"apply",[t]),r=yield*g(e,this.#e,"apply",[i]);return this.#t!==void 0?yield*ot(e,this.#t,a,r):a===null?e.fail(_e,\'Cannot invoke "java.lang.Comparable.compareTo(Object)" because the return value of "java.util.function.Function.apply(Object)" is null\'):yield*bi(e,a,r)}},st=class extends je{className="java.util.Comparator$$Lambda";#e;#t;constructor(e,t,i){super(e),this.#e=t,this.#t=i}*compare(e,t,i){let a=yield*g(e,this.#e,this.#t,[t]),r=yield*g(e,this.#e,this.#t,[i]);return this.#t==="applyAsDouble"?Fe(a,r):a<r?-1:a>r?1:0}},rt=class extends je{className="java.util.Comparator$$Lambda";#e;#t;constructor(e,t,i){super(e),this.#e=t,this.#t=i}*compare(e,t,i){let a=yield*ot(e,this.#e,t,i);return a!==0?a:yield*ot(e,this.#t,t,i)}},lt=class extends je{className;reverse;constructor(e,t){super(e),this.reverse=t,this.className=t?"java.util.Collections$ReverseComparator":"java.util.Comparators$NaturalOrderComparator"}*javaString(e){return this.reverse?`${this.className}@${this.hash.toString(16)}`:"INSTANCE"}*compare(e,t,i){return this.reverse?i===null?e.fail(_e,\'Cannot invoke "java.lang.Comparable.compareTo(Object)" because "c2" is null\'):yield*bi(e,i,t):t===null?e.fail(_e,\'Cannot invoke "java.lang.Comparable.compareTo(Object)" because "c1" is null\'):yield*bi(e,t,i)}},rr=class extends je{className="java.lang.String$CaseInsensitiveComparator";*compare(e,t,i){if(t===null)return e.fail(_e,\'Cannot read field "value" because "s1" is null\');if(i===null)return e.fail(_e,\'Cannot read field "value" because "s2" is null\');let a=t.value,r=i.value,l=Math.min(a.length,r.length);e.charge(l>>>4);for(let s=0;s<l;s++){let o=a.charCodeAt(s),c=r.charCodeAt(s);if(o!==c){if(o>255||c>255)return e.limitation("String.CASE_INSENSITIVE_ORDER for characters outside Latin-1");if(o=Ns(o),c=Ns(c),o!==c&&(o=ys(o),c=ys(c),o!==c))return o-c}}return a.length-r.length}},Ns=n=>{let e=String.fromCharCode(n).toUpperCase();return e.length===1?e.charCodeAt(0):n},ys=n=>{let e=String.fromCharCode(n).toLowerCase();return e.length===1?e.charCodeAt(0):n},Cs=new WeakMap,Ni=class extends je{className="java.util.Collections$ReverseComparator2";inner;constructor(e,t){super(e),this.inner=t}*javaString(e){return`${this.className}@${this.hash.toString(16)}`}*compare(e,t,i){return yield*ot(e,this.inner,i,t)}},sn=class extends je{className="java.util.Comparators$NullComparator";nullFirst;inner;constructor(e,t,i){super(e),this.nullFirst=t,this.inner=i}*javaString(e){return`${this.className}@${this.hash.toString(16)}`}*compare(e,t,i){return t===null?i===null?0:this.nullFirst?-1:1:i===null?this.nullFirst?1:-1:this.inner===null?0:yield*ot(e,this.inner,t,i)}},rn=class extends je{className="java.util.Map$Entry$$Lambda";#e;#t;constructor(e,t,i){super(e),this.#e=t,this.#t=i}*compare(e,t,i){let a=s=>{if(s===null)return e.fail(_e,`Cannot invoke "java.util.Map$Entry.${this.#e?"getKey":"getValue"}()" because "c1" is null`);let o=s;return this.#e?o.entryKey:o.entryValue},r=a(t),l=a(i);return this.#t!==null?yield*ot(e,this.#t,r,l):r===null?e.fail(_e,`Cannot invoke "java.lang.Comparable.compareTo(Object)" because the return value of "java.util.Map$Entry.${this.#e?"getKey":"getValue"}()" is null`):yield*bi(e,r,l)}};function lr(n,e){return e instanceof Ni?e.inner:e instanceof lt?new lt(n.hash(),!e.reverse):e instanceof sn?new sn(n.hash(),!e.nullFirst,e.inner===null?null:lr(n,e.inner)):new Ni(n.hash(),e)}var A=(n,e)=>{e===null&&n.fail(_e,null)},Q=class extends vi{className;samKey;#e;constructor(e,t,i,a){super(e),this.className=t,this.samKey=i,this.#e=a}*call(e,t){return yield*this.#e(e,t)}},xs={"Comparator.comparing(Function)":(n,[e])=>(A(n,e),new ln(n.hash(),e)),"Comparator.comparing(Function,Comparator)":(n,[e,t])=>(A(n,e),A(n,t),new ln(n.hash(),e,t)),"Comparator.comparingInt(ToIntFunction)":(n,[e])=>(A(n,e),new st(n.hash(),e,"applyAsInt")),"Comparator.comparingLong(ToLongFunction)":(n,[e])=>(A(n,e),new st(n.hash(),e,"applyAsLong")),"Comparator.comparingDouble(ToDoubleFunction)":(n,[e])=>(A(n,e),new st(n.hash(),e,"applyAsDouble")),"Comparator.naturalOrder()":n=>new lt(n.hash(),!1),"Comparator.reverseOrder()":n=>new lt(n.hash(),!0),"Comparator.nullsFirst(Comparator)":(n,[e])=>new sn(n.hash(),!0,e),"Comparator.nullsLast(Comparator)":(n,[e])=>new sn(n.hash(),!1,e),"Collections.reverseOrder()":n=>new lt(n.hash(),!0),"String.CASE_INSENSITIVE_ORDER":n=>{let e=Cs.get(n);return e||Cs.set(n,e=new rr(n.hash())),e},"Collections.reverseOrder(Comparator)":(n,[e])=>e===null?new lt(n.hash(),!0):lr(n,e),"Entry.comparingByKey()":n=>new rn(n.hash(),!0,null),"Entry.comparingByValue()":n=>new rn(n.hash(),!1,null),"Entry.comparingByKey(Comparator)":(n,[e])=>(A(n,e),new rn(n.hash(),!0,e)),"Entry.comparingByValue(Comparator)":(n,[e])=>(A(n,e),new rn(n.hash(),!1,e)),"Function.identity()":n=>new Q(n.hash(),"java.util.function.Function$$Lambda","apply(T)",function*(e,[t]){return t}),"UnaryOperator.identity()":n=>new Q(n.hash(),"java.util.function.UnaryOperator$$Lambda","apply(T)",function*(e,[t]){return t}),"Predicate.not(Predicate)":(n,[e])=>(A(n,e),Vs(n,e)),"Predicate.isEqual(Object)":(n,[e])=>new Q(n.hash(),"java.util.function.Predicate$$Lambda","test(T)",function*(t,[i]){return f(e===null?i===null:yield*T(t,e,i))}),"BinaryOperator.minBy(Comparator)":(n,[e])=>(A(n,e),new Q(n.hash(),"java.util.function.BinaryOperator$$Lambda","apply(T,U)",function*(t,[i,a]){return(yield*ot(t,e,i,a))<=0?i:a})),"BinaryOperator.maxBy(Comparator)":(n,[e])=>(A(n,e),new Q(n.hash(),"java.util.function.BinaryOperator$$Lambda","apply(T,U)",function*(t,[i,a]){return(yield*ot(t,e,i,a))>=0?i:a}))};function Vs(n,e){return new Q(n.hash(),"java.util.function.Predicate$$Lambda","test(T)",function*(t,[i]){return f(!I(yield*g(t,e,"test",[i])))})}var H={"reversed()":(n,e)=>lr(n,e),"thenComparing(Comparator)":(n,e,[t])=>(A(n,t),new rt(n.hash(),e,t)),"thenComparing(Function)":(n,e,[t])=>(A(n,t),new rt(n.hash(),e,new ln(n.hash(),t))),"thenComparing(Function,Comparator)":(n,e,[t,i])=>(A(n,t),A(n,i),new rt(n.hash(),e,new ln(n.hash(),t,i))),"thenComparingInt(ToIntFunction)":(n,e,[t])=>(A(n,t),new rt(n.hash(),e,new st(n.hash(),t,"applyAsInt"))),"thenComparingLong(ToLongFunction)":(n,e,[t])=>(A(n,t),new rt(n.hash(),e,new st(n.hash(),t,"applyAsLong"))),"thenComparingDouble(ToDoubleFunction)":(n,e,[t])=>(A(n,t),new rt(n.hash(),e,new st(n.hash(),t,"applyAsDouble"))),"andThen(Function)":(n,e,[t])=>{A(n,t);let a=(e instanceof h.JLambda||e instanceof ye?e.samKey:null)==="apply(T,U)";return new Q(n.hash(),"java.util.function.Function$$Lambda",a?"apply(T,U)":"apply(T)",function*(r,l){let s=yield*g(r,e,"apply",l);return yield*g(r,t,"apply",[s])})},"compose(Function)":(n,e,[t])=>(A(n,t),new Q(n.hash(),"java.util.function.Function$$Lambda","apply(T)",function*(i,[a]){let r=yield*g(i,t,"apply",[a]);return yield*g(i,e,"apply",[r])})),"and(Predicate)":(n,e,[t])=>(A(n,t),new Q(n.hash(),"java.util.function.Predicate$$Lambda","test(T)",function*(i,[a]){return f(I(yield*g(i,e,"test",[a]))&&I(yield*g(i,t,"test",[a])))})),"or(Predicate)":(n,e,[t])=>(A(n,t),new Q(n.hash(),"java.util.function.Predicate$$Lambda","test(T)",function*(i,[a]){return f(I(yield*g(i,e,"test",[a]))||I(yield*g(i,t,"test",[a])))})),"negate()":(n,e)=>Vs(n,e),"andThen(Consumer)":(n,e,[t])=>(A(n,t),new Q(n.hash(),"java.util.function.Consumer$$Lambda","accept(T)",function*(i,[a]){yield*g(i,e,"accept",[a]),yield*g(i,t,"accept",[a])})),"forEach(Consumer)":(n,e,[t])=>(A(n,t),u((function*(){let i=yield*R(n,e,"iterator","iterator()",[]);for(;I(yield*R(n,i,"hasNext","hasNext()",[]));){let a=yield*R(n,i,"next","next()",[]);yield*g(n,t,"accept",[a])}})(),()=>{})),"forEachRemaining(Consumer)":(n,e,[t])=>(A(n,t),u((function*(){for(;I(yield*R(n,e,"hasNext","hasNext()",[]));){let i=yield*R(n,e,"next","next()",[]);yield*g(n,t,"accept",[i])}})(),()=>{})),"listIterator()":(n,e)=>new on(n.hash(),e,0),"listIterator(int)":(n,e,[t])=>u((function*(){let i=yield*R(n,e,"size","size()",[]),a=t,r=e.className?.startsWith("java.util.ImmutableCollections$");return a<0||a>i?n.fail("java.lang.IndexOutOfBoundsException",r?`Index: ${a} Size: ${i}`:`Index: ${a}, Size: ${i}`):new on(n.hash(),e,a)})()),"removeAll(Collection)":(n,e,[t])=>Ss(n,e,t,!0),"retainAll(Collection)":(n,e,[t])=>Ss(n,e,t,!1),"removeIf(Predicate)":(n,e,[t])=>(A(n,t),u((function*(){let i=!1,a=yield*R(n,e,"iterator","iterator()",[]);for(;I(yield*R(n,a,"hasNext","hasNext()",[]));){let r=yield*R(n,a,"next","next()",[]);I(yield*g(n,t,"test",[r]))&&(yield*R(n,a,"remove","remove()",[]),i=!0)}return i})(),f))},on=class extends p{className="java.util.AbstractList$ListItr";#e;#t;#n=-1;constructor(e,t,i){super(e),this.#e=t,this.#t=i}#i(e,t,i,a){return R(e,this.#e,t,i,a)}"hasNext()"(e){let t=this;return u((function*(){return t.#t<(yield*t.#i(e,"size","size()",[]))})(),f)}"next()"(e){let t=this;return u((function*(){if(t.#t>=(yield*t.#i(e,"size","size()",[])))return e.fail("java.util.NoSuchElementException",null);let i=yield*t.#i(e,"get","get(int)",[t.#t]);return t.#n=t.#t++,i})())}"hasPrevious()"(){return f(this.#t>0)}"previous()"(e){let t=this;return u((function*(){if(t.#t<=0)return e.fail("java.util.NoSuchElementException",null);let i=yield*t.#i(e,"get","get(int)",[t.#t-1]);return t.#n=--t.#t,i})())}"nextIndex()"(){return this.#t}"previousIndex()"(){return this.#t-1}"remove()"(e){if(this.#n<0)return e.fail("java.lang.IllegalStateException",null);let t=this;return u((function*(){yield*t.#i(e,"remove","remove(int)",[t.#n]),t.#n<t.#t&&t.#t--,t.#n=-1})(),()=>{})}"set(E)"(e,t){if(this.#n<0)return e.fail("java.lang.IllegalStateException",null);let i=this;return u((function*(){yield*i.#i(e,"set","set(int,E)",[i.#n,t])})(),()=>{})}"add(E)"(e,t){let i=this;return u((function*(){yield*i.#i(e,"add","add(int,E)",[i.#t,t]),i.#t++,i.#n=-1})(),()=>{})}};function Ss(n,e,t,i){return t===null?n.fail(_e,null):u((function*(){let a=!1,r=yield*R(n,e,"iterator","iterator()",[]);for(;I(yield*R(n,r,"hasNext","hasNext()",[]));){let l=yield*R(n,r,"next","next()",[]);I(yield*R(n,t,"contains","contains(Object)",[l]))===i&&(yield*R(n,r,"remove","remove()",[]),a=!0)}return a})(),f)}function*R(n,e,t,i,a){if(e instanceof h.JObject)return yield{invoke:n.methodOf(e,t,a.length),args:[e,...a]};if(e instanceof p){let r=Reflect.get(e,i);if(typeof r=="function"){let s=r.call(e,n,...a);return s!==null&&typeof s=="object"&&Symbol.iterator in s?yield*s:s}let l=H[i];if(l){let s=l(n,e,a);return s!==null&&typeof s=="object"&&Symbol.iterator in s?yield*s:s}}throw new Error(`library: no ${i} on ${String(e)}`)}var B="java.lang.NullPointerException",N="java.lang.UnsupportedOperationException",mr="java.lang.IllegalArgumentException",xi="java.util.NoSuchElementException",Si="java.lang.IndexOutOfBoundsException",Is="java.lang.ArrayIndexOutOfBoundsException",gr="iterating over or printing a Set.of, Set.copyOf, Map.of or Map.copyOf of objects hashed by identity (the JDK\'s order differs on every run)",Es=new WeakMap;function Uu(n){let e=Es.get(n);return e===void 0&&Es.set(n,e=Number(BigInt.asUintN(32,n.seed()))),e}function zu(n,e,t){let i=2*n.length,a=new Array(i).fill(-1);n.forEach((o,c)=>{let d=(e[c]%i+i)%i;for(;a[d]!==-1;)d=d+1===i?0:d+1;a[d]=c});let r=(t&1)===0,l=Number(BigInt(t)*BigInt(i)>>32n),s=[];for(;s.length<n.length;)l=r?l+1>=i?0:l+1:l-1<0?i-1:l-1,a[l]!==-1&&s.push(n[a[l]]);return s}function Ls(n,e,t,i,a){if(t.length<2)return t.slice();if(t.some(s=>nr(n,i(s))))return null;let r=Uu(n);if(t.length===2&&a)return(r&1)===0?[t[1],t[0]]:[t[0],t[1]];let l=new Map;for(let s of e.nodes(n,!1))l.set(s.key,s.hash^s.hash>>>16);return zu(t,t.map(s=>l.get(i(s))),r)}function*wn(n,e){let t=1;for(let i of e)t=Math.imul(31,t)+(yield*j(n,i))|0;return t}var Ot=class extends L{isList=!0;get size(){return this.items.length}elements(){return this.items}get contentEquality(){return!0}*contentEquals(e,t){return yield*Vt(e,this,t)}*contentHash(e){return yield*wn(e,this.items)}"get(int)"(e,t){return t<0||t>=this.items.length?this.outOfRange(e,t):this.items[t]}"indexOf(Object)"(e,t){return u(this.indexOf(e,t,!1))}"lastIndexOf(Object)"(e,t){return u(this.indexOf(e,t,!0))}*contains(e,t){return(yield*this.indexOf(e,t,!1))>=0}*indexOf(e,t,i){let a=this.items;e.charge(a.length);for(let r=0;r<a.length;r++){let l=i?a.length-1-r:r;if(t===null?a[l]===null:yield*T(e,t,a[l]))return l}return-1}"getFirst()"(e){return this.items.length?this.items[0]:e.fail(xi,null)}"getLast()"(e){return this.items.length?this.items[this.items.length-1]:e.fail(xi,null)}"iterator()"(e){return new It(e.hash(),this.items,`${this.className}$Itr`)}"add(E)"(e){return e.fail(N,null)}"add(int,E)"(e){return e.fail(N,null)}"remove(int)"(e){return e.fail(N,null)}"remove(Object)"(e){return e.fail(N,null)}"clear()"(e){return e.fail(N,null)}"addAll(Collection)"(e){return e.fail(N,null)}"addFirst(E)"(e){return e.fail(N,null)}"addLast(E)"(e){return e.fail(N,null)}"removeFirst()"(e){return e.fail(N,null)}"removeLast()"(e){return e.fail(N,null)}"set(int,E)"(e,t,i){return this.setAt(e,t,i)}setAt(e,t,i){return e.fail(N,null)}"sort(Comparator)"(e,t){return this.sortWith(e,t)}sortWith(e,t){return e.fail(N,null)}"removeAll(Collection)"(e,t){return this.#e(e,"removeAll(Collection)",t)}"retainAll(Collection)"(e,t){return this.#e(e,"retainAll(Collection)",t)}#e(e,t,i){return this instanceof Ue||this.className.startsWith("java.util.ImmutableCollections$")?e.fail(N,null):H[t](e,this,[i])}"removeIf(Predicate)"(e,t){return t===null?e.fail(B,null):this.className==="java.util.Collections$EmptyList"?0:this.className==="java.util.Arrays$ArrayList"||this.className==="java.util.Collections$CopiesList"?H["removeIf(Predicate)"](e,this,[t]):e.fail(N,null)}"replaceAll(UnaryOperator)"(e,t){if(t===null)return e.fail(B,null);if(this.className!=="java.util.Arrays$ArrayList")return e.fail(N,null);let i=this.items;return u((function*(){for(let a=0;a<i.length;a++)i[a]=(yield*g(e,t,"apply",[i[a]]))??null})(),()=>{})}},It=class extends p{className;#e;#t=0;constructor(e,t,i){super(e),this.#e=t,this.className=i}"hasNext()"(){return f(this.#t<this.#e.length)}"next()"(e){return this.#t>=this.#e.length?e.fail(xi,null):this.#e[this.#t++]}"remove()"(e){return e.fail(N,null)}},Ue=class extends Ot{className;items;constructor(e,t){super(e),this.items=t,this.className=t.length===1||t.length===2?"java.util.ImmutableCollections$List12":"java.util.ImmutableCollections$ListN"}outOfRange(e,t){return this.items.length===1||this.items.length===2?e.fail(Si,`Index: ${t} Size: ${this.items.length}`):e.fail(Is,`Index ${t} out of bounds for length ${this.items.length}`)}*indexOf(e,t,i){return t===null?e.fail(B,null):yield*super.indexOf(e,t,i)}"iterator()"(e){return new It(e.hash(),this.items,"java.util.ImmutableCollections$ListItr")}},or=class extends Ot{className="java.util.Arrays$ArrayList";array;constructor(e,t){super(e),this.array=t}get items(){return this.array.data}outOfRange(e,t){return e.fail(Is,`Index ${t} out of bounds for length ${this.items.length}`)}setAt(e,t,i){if(t<0||t>=this.items.length)return this.outOfRange(e,t);if(i!==null&&!e.storable(i,this.array.descriptor))return e.fail("java.lang.ArrayStoreException",e.className(i));let a=this.items[t];return this.items[t]=i,a}sortWith(e,t){return Lt(e,this.items,t,()=>{})}"iterator()"(e){return new It(e.hash(),this.items,"java.util.Arrays$ArrayItr")}};function Lt(n,e,t,i){return t===null&&!tt(e)?(Tn(n,e,0,e.length),i()):u(St(n,e,0,e.length,$(n,t)),i)}var Ln=class extends Ot{className;items;#e;constructor(e,t,i){super(e),this.#e=t,this.items=i,this.className=t==="empty"?"java.util.Collections$EmptyList":t==="singleton"?"java.util.Collections$SingletonList":"java.util.Collections$CopiesList"}outOfRange(e,t){return this.#e==="empty"?e.fail(Si,`Index: ${t}`):this.#e==="singleton"?e.fail(Si,`Index: ${t}, Size: 1`):e.fail(Si,`Index ${t} out of bounds for length ${this.items.length}`)}},we=class extends L{className;isSet=!0;#e;#t;#n;#i;constructor(e,t,i,a,r){super(e),this.#e=t,this.#t=i,this.className=a,this.#n=r,this.#i=a.startsWith("java.util.ImmutableCollections")}get size(){return this.#t.length}elements(e,t){return t&&this.#n&&this.#t.length>1&&e.limitation(gr),this.#t}copyItems(e){return{items:this.#t,unknown:this.#n&&this.#t.length>1?Ke.copied:null}}get contentEquality(){return!0}*contentEquals(e,t){if(t===this)return!0;if(!(t instanceof L)||!t.isSet||t.size!==this.size)return!1;for(let i of t.elements(e,!1))if(!(yield*this.contains(e,i)))return!1;return!0}*contentHash(e){let t=0;for(let i of this.#t)t=t+(yield*j(e,i))|0;return t}*contains(e,t){return t===null&&this.#i?this.className.endsWith("Set12")?e.fail(B,\'Cannot invoke "Object.equals(Object)" because "o" is null\'):e.fail(B,null):(yield*this.#e.getNode(e,t))!==null}"iterator()"(e){return new It(e.hash(),this.elements(e,!0),`${this.className}Iterator`)}"add(E)"(e){return e.fail(N,null)}"remove(Object)"(e){return e.fail(N,null)}"clear()"(e){return e.fail(N,null)}"addAll(Collection)"(e){return e.fail(N,null)}"removeIf(Predicate)"(e,t){return t===null?e.fail(B,null):this.#t.length===0&&!this.#i?0:e.fail(N,null)}"removeAll(Collection)"(e,t){return this.#t.length===0&&!this.#i?t===null?e.fail(B,null):0:e.fail(N,null)}"retainAll(Collection)"(e,t){return this["removeAll(Collection)"](e,t)}};function*sr(n,e,t,i,a,r){let l=new F(n.hash());r!==void 0&&l.initialCapacity(n,r);let s=[];for(let d of e){if(d===null)return n.fail(B,null);let m=l.size;if(yield*l.put(n,d,null),l.size!==m)s.push(d);else if(a)return n.fail(mr,`duplicate element: ${yield*x(n,d)}`)}let o=t||(s.length===1||s.length===2?"java.util.ImmutableCollections$Set12":"java.util.ImmutableCollections$SetN");if(!i)return new we(n.hash(),l,s,o,!1);if(r!==void 0){if(l.orderProblem(n))return new we(n.hash(),l,s,o,!0);s=l.nodes(n,!1).map(d=>d.key)}let c=Ls(n,l,s,d=>d,!0);return c?new we(n.hash(),l,c,o,!1):new we(n.hash(),l,s,o,!0)}var jn=class extends p{className="java.util.KeyValueHolder";entryKey;entryValue;constructor(e,t,i){super(e),this.entryKey=t,this.entryValue=i}get contentEquality(){return!0}*javaString(e){return yield*tn(e,this)}*contentEquals(e,t){return yield*Tt(e,this,t)}*contentHash(e){return yield*nn(e,this)}"getKey()"(){return this.entryKey}"getValue()"(){return this.entryValue}"setValue(V)"(e){return e.fail(N,"not supported")}},ut=class extends at{className;#e;#t;#n;constructor(e,t,i,a,r){super(e),this.#e=t,this.#t=i,this.className=a,this.#n=r}get size(){return this.#t.length}mappings(e,t){return t&&this.#n&&this.#t.length>1&&e.limitation(gr),this.#t}copyMappings(e){return{mappings:this.#t,unknown:this.#n&&this.#t.length>1?Ke.copied:null}}#i(e,t){if(this.className.startsWith("java.util.ImmutableCollections"))return this.className.endsWith("Map1")?e.fail(B,\'Cannot invoke "Object.equals(Object)" because "o" is null\'):t==="containsKey"?e.fail(B,null):e.fail(B,\'Cannot invoke "Object.hashCode()" because "pk" is null\')}*lookup(e,t){let i=yield*this.#e.getNode(e,t);return i?i.value:void 0}"get(Object)"(e,t){return t===null&&this.#i(e,"get"),u(this.lookup(e,t),i=>i===void 0?null:i)}"getOrDefault(Object,V)"(e,t,i){return t===null&&this.#i(e,"get"),u(this.lookup(e,t),a=>a===void 0?i:a)}"containsKey(Object)"(e,t){return t===null&&this.#i(e,"containsKey"),u(this.lookup(e,t),i=>f(i!==void 0))}"containsValue(Object)"(e,t){if(t===null&&this.className.startsWith("java.util.ImmutableCollections"))return e.fail(B,null);let i=this.#t;return u((function*(){for(let a of i)if(t!==null&&(yield*T(e,t,a.entryValue)))return!0;return!1})(),f)}"keySet()"(e){return new we(e.hash(),this.#e,this.#t.map(t=>t.entryKey),"java.util.AbstractMap$1",this.#n)}"values()"(e){return new ur(e.hash(),this.#t.map(t=>t.entryValue),this.#n)}"entrySet()"(e){let t=new F(e.hash());return u((function*(i){for(let a of i.#t)yield*t.put(e,a,null);return new we(e.hash(),t,i.#t,"java.util.ImmutableCollections$MapN$1",i.#n)})(this))}"put(K,V)"(e){return e.fail(N,null)}"putIfAbsent(K,V)"(e){return e.fail(N,null)}"remove(Object)"(e){return e.fail(N,null)}"remove(Object,Object)"(e){return e.fail(N,null)}"replace(K,V)"(e){return e.fail(N,null)}"replace(K,V,V)"(e){return e.fail(N,null)}"putAll(Map)"(e){return e.fail(N,null)}"clear()"(e){return e.fail(N,null)}"computeIfAbsent(K,Function)"(e){return e.fail(N,null)}"computeIfPresent(K,BiFunction)"(e){return e.fail(N,null)}"compute(K,BiFunction)"(e){return e.fail(N,null)}"merge(K,V,BiFunction)"(e){return e.fail(N,null)}"replaceAll(BiFunction)"(e){return e.fail(N,null)}"forEach(BiConsumer)"(e,t){if(t===null)return e.fail(B,null);let i=this.mappings(e,!0);return u((function*(){for(let a of i)yield*g(e,t,"accept",[a.entryKey,a.entryValue])})(),()=>{})}},ur=class extends L{className="java.util.AbstractMap$2";#e;#t;constructor(e,t,i){super(e),this.#e=t,this.#t=i}get size(){return this.#e.length}elements(e,t){return t&&this.#t&&this.#e.length>1&&e.limitation(gr),this.#e}"iterator()"(e){return new It(e.hash(),this.elements(e,!0),"java.util.AbstractMap$2$1")}"add(E)"(e){return e.fail(N,null)}};function*cr(n,e,t,i,a){let r=new F(n.hash()),l=[];for(let[c,d]of e){if(c===null||d===null)return n.fail(B,null);let m=r.size;if(yield*r.put(n,c,d),r.size!==m)l.push(new jn(n.hash(),c,d));else if(a)return n.fail(mr,`duplicate key: ${yield*x(n,c)}`)}let s=t||(l.length===1?"java.util.ImmutableCollections$Map1":"java.util.ImmutableCollections$MapN");if(!i||l.length<2)return new ut(n.hash(),r,l,s,i);let o=Ls(n,r,l,c=>c.entryKey,!1);return o?new ut(n.hash(),r,o,s,!1):new ut(n.hash(),r,l,s,!0)}var Se=class extends L{className;c;isList;isSet;constructor(e,t,i){super(e),this.c=t,this.className=i,this.isList=t.isList&&i.includes("List"),this.isSet=t.isSet&&i.includes("Set")}get size(){return this.c.size}elements(e,t){return this.c.elements(e,t)}copyItems(e){return this.c.copyItems(e)}*javaString(e){return yield*this.c.javaString(e)}get contentEquality(){return this.isList||this.isSet}*contentEquals(e,t){return t===this||this.contentEquality&&(yield*this.c.contentEquals(e,t))}*contentHash(e){return this.contentEquality?yield*this.c.contentHash(e):this.hash}*contains(e,t){return yield*this.c.contains(e,t)}"get(int)"(e,t){return this.c["get(int)"].call(this.c,e,t)}"indexOf(Object)"(e,t){return this.c["indexOf(Object)"].call(this.c,e,t)}"lastIndexOf(Object)"(e,t){return this.c["lastIndexOf(Object)"].call(this.c,e,t)}"getFirst()"(e){return this.c["getFirst()"].call(this.c,e)}"getLast()"(e){return this.c["getLast()"].call(this.c,e)}"iterator()"(e){let t=this.c["iterator()"](e);return new hr(e.hash(),t)}"add(E)"(e){return e.fail(N,null)}"add(int,E)"(e){return e.fail(N,null)}"set(int,E)"(e){return e.fail(N,null)}"remove(Object)"(e){return e.fail(N,null)}"remove(int)"(e){return e.fail(N,null)}"clear()"(e){return e.fail(N,null)}"addAll(Collection)"(e){return e.fail(N,null)}"sort(Comparator)"(e){return e.fail(N,null)}"addFirst(E)"(e){return e.fail(N,null)}"addLast(E)"(e){return e.fail(N,null)}"removeFirst()"(e){return e.fail(N,null)}"removeLast()"(e){return e.fail(N,null)}"removeIf(Predicate)"(e){return e.fail(N,null)}"removeAll(Collection)"(e){return e.fail(N,null)}"retainAll(Collection)"(e){return e.fail(N,null)}"replaceAll(UnaryOperator)"(e){return e.fail(N,null)}"forEach(Consumer)"(e,t){return this.c["forEach(Consumer)"]?.call(this.c,e,t)??H["forEach(Consumer)"](e,this.c,[t])}},hr=class extends p{className="java.util.Collections$UnmodifiableCollection$1";#e;constructor(e,t){super(e),this.#e=t}"hasNext()"(e){return this.#e["hasNext()"].call(this.#e,e)}"next()"(e){return this.#e["next()"].call(this.#e,e)}"remove()"(e){return e.fail(N,null)}},dr=class extends at{className="java.util.Collections$UnmodifiableMap";m;constructor(e,t){super(e),this.m=t}get size(){return this.m.size}mappings(e,t){return this.m.mappings(e,t)}copyMappings(e){return this.m.copyMappings(e)}*lookup(e,t){return yield*this.m.lookup(e,t)}#e(e,t,...i){return this.m[e].call(this.m,t,...i)}"get(Object)"(e,t){return this.#e("get(Object)",e,t)}"getOrDefault(Object,V)"(e,t,i){return this.#e("getOrDefault(Object,V)",e,t,i)}"containsKey(Object)"(e,t){return this.#e("containsKey(Object)",e,t)}"containsValue(Object)"(e,t){return this.#e("containsValue(Object)",e,t)}"keySet()"(e){return new Se(e.hash(),this.#e("keySet()",e),"java.util.Collections$UnmodifiableSet")}"values()"(e){return new Se(e.hash(),this.#e("values()",e),"java.util.Collections$UnmodifiableCollection")}"entrySet()"(e){return new Se(e.hash(),this.#e("entrySet()",e),"java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet")}"put(K,V)"(e){return e.fail(N,null)}"putIfAbsent(K,V)"(e){return e.fail(N,null)}"remove(Object)"(e){return e.fail(N,null)}"remove(Object,Object)"(e){return e.fail(N,null)}"replace(K,V)"(e){return e.fail(N,null)}"replace(K,V,V)"(e){return e.fail(N,null)}"putAll(Map)"(e){return e.fail(N,null)}"clear()"(e){return e.fail(N,null)}"computeIfAbsent(K,Function)"(e){return e.fail(N,null)}"computeIfPresent(K,BiFunction)"(e){return e.fail(N,null)}"compute(K,BiFunction)"(e){return e.fail(N,null)}"merge(K,V,BiFunction)"(e){return e.fail(N,null)}"replaceAll(BiFunction)"(e){return e.fail(N,null)}"forEach(BiConsumer)"(e,t){return this.#e("forEach(BiConsumer)",e,t)}},yi=n=>[...n.data],G=(n,e,t)=>(e===null&&n.fail(B,t),e);function*Rt(n,e,t,i){let a=e["set(int,E)"].call(e,n,t,i);return yield*Hu(a)}function fr(n,e,t){return e["get(int)"].call(e,n,t)}function*Ts(n,e,t,i){let a=$(n,i),r=0,l=e.length-1;for(;r<=l;){let s=r+l>>>1;n.charge(1);let o=yield*a(e[s],t);if(o<0)r=s+1;else if(o>0)l=s-1;else return s}return-(r+1)}var Rs=\'Cannot invoke "java.util.List.size()" because "list" is null\';function*Ci(n,e,t,i){let a=e.elements(n,!0);if(!a.length)return n.fail(xi,null);let r=a[0];t===null&&Ie(n,r);let l=$(n,t);n.charge(a.length);for(let s=1;s<a.length;s++){let o=a[s],c=t===null&&!(o instanceof h.JObject)&&!(r instanceof h.JObject)?ie(n,o,r):yield*l(o,r);i*c>0&&(r=o)}return r}var pr={"List.of(E[])":(n,[e])=>{let t=yi(e);return t.includes(null)?n.fail(B,null):(n.allocate(t.length),new Ue(n.hash(),t))},"List.copyOf(Collection)":(n,[e])=>{if(e instanceof Ue)return e;let t=[...G(n,e,\'Cannot invoke "java.util.Collection.toArray()" because "coll" is null\').elements(n,!0)];return t.includes(null)?n.fail(B,null):(n.allocate(t.length),new Ue(n.hash(),t))},"Set.of(E[])":(n,[e])=>u(sr(n,yi(e),"",!0,!0)),"Set.copyOf(Collection)":(n,[e])=>{if(e instanceof we&&e.className.startsWith("java.util.ImmutableCollections"))return e;let t=G(n,e,\'Cannot invoke "java.util.Collection.toArray()" because "coll" is null\'),{items:i}=t.copyItems(n);return u(sr(n,i,"",!0,!1,pi(Math.max(t.size,12),.75)))},"Map.entry(K,V)":(n,[e,t])=>e===null||t===null?n.fail(B,null):new jn(n.hash(),e,t),"Map.ofEntries(Entry[])":(n,[e])=>{let t=[];for(let i of yi(e)){if(i===null)return n.fail(B,null);t.push([i.entryKey,i.entryValue])}return u(cr(n,t,"",!0,!0))},"Map.copyOf(Map)":(n,[e])=>{if(e===null)return n.fail(B,null);if(e instanceof ut&&e.className.startsWith("java.util.ImmutableCollections"))return e;let{mappings:t}=e.copyMappings(n);return u(cr(n,t.map(i=>[i.entryKey,i.entryValue]),"",!0,!1))},"Arrays.asList(T[])":(n,[e])=>new or(n.hash(),e),"Collections.emptyList()":n=>new Ln(n.hash(),"empty",[]),"Collections.singletonList(T)":(n,[e])=>new Ln(n.hash(),"singleton",[e]),"Collections.nCopies(int,T)":(n,[e,t])=>e<0?n.fail(mr,`List length = ${e}`):(n.allocate(e),new Ln(n.hash(),"copies",new Array(e).fill(t))),"Collections.emptySet()":n=>u(sr(n,[],"java.util.Collections$EmptySet",!1,!1)),"Collections.singleton(T)":(n,[e])=>{let t=new F(n.hash());return u(t.put(n,e,null),()=>new we(n.hash(),t,[e],"java.util.Collections$SingletonSet",!1))},"Collections.emptyMap()":n=>new ut(n.hash(),new F(n.hash()),[],"java.util.Collections$EmptyMap",!1),"Collections.singletonMap(K,V)":(n,[e,t])=>{let i=new F(n.hash());return u(i.put(n,e,t),()=>new ut(n.hash(),i,[new jn(n.hash(),e,t)],"java.util.Collections$SingletonMap",!1))},"Collections.unmodifiableList(List)":(n,[e])=>{let t=G(n,e,null);return new Se(n.hash(),t,t.randomAccess?"java.util.Collections$UnmodifiableRandomAccessList":"java.util.Collections$UnmodifiableList")},"Collections.unmodifiableSet(Set)":(n,[e])=>new Se(n.hash(),G(n,e,null),"java.util.Collections$UnmodifiableSet"),"Collections.unmodifiableCollection(Collection)":(n,[e])=>new Se(n.hash(),G(n,e,null),"java.util.Collections$UnmodifiableCollection"),"Collections.unmodifiableMap(Map)":(n,[e])=>e===null?n.fail(B,null):new dr(n.hash(),e),"Collections.reverse(List)":(n,[e])=>{let t=G(n,e,\'Cannot invoke "java.util.List.size()" because "list" is null\');return u((function*(){let i=t.size;for(let a=0,r=i-1;a<r;a++,r--){let l=fr(n,t,a);yield*Rt(n,t,a,yield*Rt(n,t,r,l))}})(),()=>{})},"Collections.swap(List,int,int)":(n,[e,t,i])=>{let a=G(n,e,\'Cannot invoke "java.util.List.get(int)" because "l" is null\');return u((function*(){let r=fr(n,a,t);yield*Rt(n,a,t,yield*Rt(n,a,i,r))})(),()=>{})},"Collections.max(Collection)":(n,[e])=>u(Ci(n,G(n,e,\'Cannot invoke "java.util.Collection.iterator()" because "coll" is null\'),null,1)),"Collections.min(Collection)":(n,[e])=>u(Ci(n,G(n,e,\'Cannot invoke "java.util.Collection.iterator()" because "coll" is null\'),null,-1)),"Collections.max(Collection,Comparator)":(n,[e,t])=>u(Ci(n,G(n,e,\'Cannot invoke "java.util.Collection.iterator()" because "coll" is null\'),t,1)),"Collections.min(Collection,Comparator)":(n,[e,t])=>u(Ci(n,G(n,e,\'Cannot invoke "java.util.Collection.iterator()" because "coll" is null\'),t,-1)),"Collections.disjoint(Collection,Collection)":(n,[e,t])=>{let i=G(n,e,\'Cannot invoke "java.util.Collection.size()" because "c1" is null\'),a=G(n,t,\'Cannot invoke "java.util.Collection.size()" because "c2" is null\');return u((function*(){for(let r of i.elements(n,!1))if(yield*a.contains(n,r))return!1;return!0})(),f)},"Collections.binarySearch(List,T)":(n,[e,t])=>u(Ts(n,G(n,e,Rs).elements(n,!1),t,null)),"Collections.binarySearch(List,T,Comparator)":(n,[e,t,i])=>u(Ts(n,G(n,e,Rs).elements(n,!1),t,i)),"Collections.frequency(Collection,Object)":(n,[e,t])=>{let i=G(n,e,\'Cannot invoke "java.util.Collection.iterator()" because "c" is null\').elements(n,!1);return u((function*(){let a=0;n.charge(i.length);for(let r of i)(t===null?r===null:yield*T(n,t,r))&&a++;return a})())},"Collections.addAll(Collection,T[])":(n,[e,t])=>G(n,e,\'Cannot invoke "java.util.Collection.add(Object)" because "c" is null\').addEach(n,yi(t)),"Collections.fill(List,T)":(n,[e,t])=>{let i=G(n,e,\'Cannot invoke "java.util.List.size()" because "list" is null\');return u((function*(){for(let a=0;a<i.size;a++)yield*Rt(n,i,a,t)})(),()=>{})},"Collections.shuffle(List,Random)":(n,[e,t])=>Os(n,e,t),"Collections.shuffle(List)":(n,[e])=>Os(n,e,null)};for(let n=0;n<=10;n++){let e=`Map.of(${Array.from({length:n},()=>"K,V").join(",")})`;pr[e]=(t,i)=>{let a=[];for(let r=0;r<n;r++)a.push([i[2*r],i[2*r+1]]);return u(cr(t,a,"",!0,!0))}}function Os(n,e,t){let i=G(n,e,\'Cannot invoke "java.util.List.size()" because "list" is null\'),a=t??vr.make(n);return u((function*(){for(let r=i.size;r>1;r--){let l=a["nextInt(int)"](n,r),s=fr(n,i,r-1);yield*Rt(n,i,r-1,yield*Rt(n,i,l,s))}})(),()=>{})}var vr={make:()=>null};function*Hu(n){return n!==null&&typeof n=="object"&&Symbol.iterator in n?yield*n:n}var Vi="java.util.NoSuchElementException",Ei="java.util.ConcurrentModificationException",qu="java.lang.IllegalStateException",js="java.lang.IndexOutOfBoundsException",xe="java.lang.ArrayIndexOutOfBoundsException",Ti=class extends se{className="java.util.LinkedList";randomAccess=!1;get iteratorName(){return"java.util.LinkedList$ListItr"}#e(e,t){(t<0||t>=this.es.length)&&e.fail(js,`Index: ${t}, Size: ${this.es.length}`)}"get(int)"(e,t){return this.#e(e,t),this.es[t]}"set(int,E)"(e,t,i){this.#e(e,t);let a=this.es[t];return this.es[t]=i,a}"remove(int)"(e,t){return this.#e(e,t),this.modCount++,this.es.splice(t,1)[0]}"add(int,E)"(e,t,i){if(t<0||t>this.es.length)return e.fail(js,`Index: ${t}, Size: ${this.es.length}`);e.allocate(1),this.modCount++,this.es.splice(t,0,i)}"sort(Comparator)"(e,t){return Lt(e,this.es,t,()=>{})}"offer(E)"(e,t){return this["add(E)"](e,t)}"offerFirst(E)"(e,t){return this["add(int,E)"](e,0,t),1}"offerLast(E)"(e,t){return this["add(E)"](e,t)}"push(E)"(e,t){this["add(int,E)"](e,0,t)}"pop()"(e){return this["removeFirst()"](e)}"remove()"(e){return this["removeFirst()"](e)}"element()"(e){return this["getFirst()"](e)}"peek()"(){return this.es.length?this.es[0]:null}"peekFirst()"(){return this.es.length?this.es[0]:null}"peekLast()"(){return this.es.length?this.es[this.es.length-1]:null}"poll()"(e){return this.es.length?this["removeFirst()"](e):null}"pollFirst()"(e){return this.es.length?this["removeFirst()"](e):null}"pollLast()"(e){return this.es.length?this["removeLast()"](e):null}"removeFirstOccurrence(Object)"(e,t){return this["remove(Object)"](e,t)}"removeLastOccurrence(Object)"(e,t){let i=this;return u((function*(){for(let a=i.es.length-1;a>=0;a--)if(yield*z(e,t,i.es[a]))return i.modCount++,i.es.splice(a,1),!0;return!1})(),f)}"descendingIterator()"(e){return new br(e.hash(),this)}"forEach(Consumer)"(e,t){return H["forEach(Consumer)"](e,this,[t])}"removeIf(Predicate)"(e,t){return H["removeIf(Predicate)"](e,this,[t])}"replaceAll(UnaryOperator)"(e,t){if(t===null)return e.fail("java.lang.NullPointerException",null);let i=this;return u((function*(){let a=i.modCount;for(let r=0;r<i.es.length;r++){i.modCount!==a&&e.fail(Ei,null);let l=(yield*g(e,t,"apply",[i.es[r]]))??null;i.modCount!==a&&e.fail(Ei,null),i.es[r]=l}})(),()=>{})}},br=class extends p{className="java.util.LinkedList$DescendingIterator";#e;#t;#n=-1;#i;constructor(e,t){super(e),this.#e=t,this.#t=t.es.length,this.#i=t.modCount}"hasNext()"(){return f(this.#t>0)}"next()"(e){return this.#e.modCount!==this.#i?e.fail(Ei,null):this.#t<=0?e.fail(Vi,null):(this.#n=--this.#t,this.#e.es[this.#t])}"remove()"(e){if(this.#n<0)return e.fail(qu,null);if(this.#e.modCount!==this.#i)return e.fail(Ei,null);this.#e["remove(int)"](e,this.#n),this.#n=-1,this.#i=this.#e.modCount}},un=class extends se{className="java.util.Vector";capacity=10;increment=0;get iteratorName(){return"java.util.Vector$Itr"}#e(e){e>this.capacity&&(this.capacity=this.capacity+Math.max(e-this.capacity,this.increment>0?this.increment:this.capacity))}#t(e,t){t>=this.es.length&&e.fail(xe,`Array index out of range: ${t}`),t<0&&e.fail(xe,`Index ${t} out of bounds for length ${this.capacity}`)}"add(E)"(e,t){return this.#e(this.es.length+1),super["add(E)"](e,t)}"add(int,E)"(e,t,i){if(t>this.es.length)return e.fail(xe,`${t} > ${this.es.length}`);if(t<0)return e.fail(xe,`arraycopy: source index ${t} out of bounds for object array[${this.capacity}]`);this.#e(this.es.length+1),e.allocate(1),this.modCount++,this.es.splice(t,0,i)}addEach(e,t){return this.#e(this.es.length+t.length),super.addEach(e,t)}"addAll(Collection)"(e,t){return t!==null&&this.#e(this.es.length+t.size),super["addAll(Collection)"](e,t)}"get(int)"(e,t){return this.#t(e,t),this.es[t]}"set(int,E)"(e,t,i){this.#t(e,t);let a=this.es[t];return this.es[t]=i,a}"remove(int)"(e,t){return this.#t(e,t),this.modCount++,this.es.splice(t,1)[0]}"capacity()"(){return this.capacity}"firstElement()"(e){return this.es.length?this.es[0]:e.fail(Vi,null)}"lastElement()"(e){return this.es.length?this.es[this.es.length-1]:e.fail(Vi,null)}"elementAt(int)"(e,t){return t>=this.es.length?e.fail(xe,`${t} >= ${this.es.length}`):t<0?e.fail(xe,`Index ${t} out of bounds for length ${this.capacity}`):this.es[t]}"setElementAt(E,int)"(e,t,i){if(i>=this.es.length)return e.fail(xe,`${i} >= ${this.es.length}`);if(i<0)return e.fail(xe,`Index ${i} out of bounds for length ${this.capacity}`);this.es[i]=t}"insertElementAt(E,int)"(e,t,i){return this["add(int,E)"](e,i,t)}"removeElementAt(int)"(e,t){if(t>=this.es.length)return e.fail(xe,`${t} >= ${this.es.length}`);if(t<0)return e.fail(xe,`Array index out of range: ${t}`);this.modCount++,this.es.splice(t,1)}"addElement(E)"(e,t){this["add(E)"](e,t)}"removeElement(Object)"(e,t){return this["remove(Object)"](e,t)}"removeAllElements()"(){this.modCount++,this.es.length=0}"elements()"(e){return new yr(e.hash(),this)}"setSize(int)"(e,t){if(t>this.capacity&&this.#e(t),t<0)return e.fail(xe,`Index ${t} out of bounds for length ${this.capacity}`);if(this.modCount++,t>this.es.length)for(e.allocate(t-this.es.length);this.es.length<t;)this.es.push(null);else this.es.length=t}"trimToSize()"(){this.modCount++,this.es.length<this.capacity&&(this.capacity=this.es.length)}"ensureCapacity(int)"(e,t){t>0&&(this.modCount++,this.#e(t))}},Nr=class extends un{className="java.util.Stack";"push(E)"(e,t){return this["add(E)"](e,t),t}"pop()"(e){return this.es.length?(this.modCount++,this.es.pop()):e.fail("java.util.EmptyStackException",null)}"peek()"(e){return this.es.length?this.es[this.es.length-1]:e.fail("java.util.EmptyStackException",null)}"empty()"(){return f(this.es.length===0)}"search(Object)"(e,t){let i=this;return u((function*(){for(let a=i.es.length-1;a>=0;a--)if(yield*z(e,t,i.es[a]))return i.es.length-a;return-1})())}},yr=class extends p{className="java.util.Vector$1";#e;#t=0;constructor(e,t){super(e),this.#e=t}"hasMoreElements()"(){return f(this.#t<this.#e.es.length)}"nextElement()"(e){return this.#t>=this.#e.es.length?e.fail(Vi,"Vector Enumeration"):this.#e.es[this.#t++]}"asIterator()"(e){return new Qe(e.hash(),this)}},As={"LinkedList.<init>()":n=>new Ti(n.hash()),"LinkedList.<init>(Collection)":(n,[e])=>{if(e===null)return n.fail("java.lang.NullPointerException",\'Cannot invoke "java.util.Collection.toArray()" because "c" is null\');let t=new Ti(n.hash()),i=e.elements(n,!0);return n.allocate(i.length),t.es.push(...i),t},"Stack.<init>()":n=>new Nr(n.hash()),"Vector.<init>()":n=>new un(n.hash()),"Vector.<init>(int)":(n,[e])=>ws(n,e,0),"Vector.<init>(int,int)":(n,[e,t])=>ws(n,e,t),"Vector.<init>(Collection)":(n,[e])=>{if(e===null)return n.fail("java.lang.NullPointerException",\'Cannot invoke "java.util.Collection.toArray()" because "c" is null\');let t=new un(n.hash()),i=e.elements(n,!0);return n.allocate(i.length),t.es.push(...i),t.capacity=i.length,t}};function ws(n,e,t){if(e<0)return n.fail("java.lang.IllegalArgumentException",`Illegal Capacity: ${e}`);let i=new un(n.hash());return i.capacity=e,i.increment=t,i}var Ri="java.lang.UnsupportedOperationException",Wu="java.lang.IllegalStateException",Cr="java.lang.IndexOutOfBoundsException";function*oe(n,e,t,i){let a=n.overrideOf(e,t);return a<0?n.fail(Ri,null):yield{invoke:a,args:[e,...i]}}function*Yu(n,e){yield*e.openIterator(n);let t=[];for(let i=0;i!==(yield*e.size(n));i++){let a=yield*e.get(n,i);t.push(a===e.self?"(this Collection)":yield*x(n,a))}return`[${t.join(", ")}]`}function*Zu(n,e,t){yield*e.openIterator(n);for(let i=0;i!==(yield*e.size(n));i++){let a=yield*e.get(n,i);if(t===null?a===null:yield*T(n,t,a))return!0}return!1}function*Xu(n,e,t){yield*e.openListIterator(n);for(let i=0;i!==(yield*e.size(n));i++){let a=yield*e.get(n,i);if(t===null?a===null:yield*T(n,t,a))return i}return-1}function*Qu(n,e,t){for(let i=(yield*e.openAtEnd(n))-1;i>=0;i--){let a=yield*e.get(n,i);if(t===null?a===null:yield*T(n,t,a))return i}return-1}function*ec(n,e,t){if(t===e.self)return!0;let i=t instanceof L&&t.isList?t.elements(n,!0):null;if(!i)return t instanceof h.JObject&&t.base instanceof Ii?n.limitation("comparing two AbstractList subclasses with equals"):!1;yield*e.openListIterator(n);let a=0;for(;(yield*e.size(n))!==a&&a<i.length;){let r=yield*e.get(n,a),l=i[a];if(!(r===null?l===null:yield*T(n,r,l)))return!1;a++}return!((yield*e.size(n))!==a||a<i.length)}function*tc(n,e){yield*e.openIterator(n);let t=1;for(let i=0;i!==(yield*e.size(n));i++)t=31*t+(yield*j(n,yield*e.get(n,i)))|0;return t}var Oi=class extends p{opaque=!0;get contentEquality(){return!0}*javaString(e){return yield*Yu(e,this.access)}*contentEquals(e,t){return yield*ec(e,this.access,t)}*contentHash(e){return yield*tc(e,this.access)}"toString()"(e){return u(this.javaString(e),t=>new h.JString(t))}"equals(Object)"(e,t){return u(this.contentEquals(e,t),f)}"hashCode()"(e){return u(this.contentHash(e))}"isEmpty()"(e){return u(this.access.size(e),t=>f(t===0))}"contains(Object)"(e,t){return u(Zu(e,this.access,t),f)}"indexOf(Object)"(e,t){return u(Xu(e,this.access,t))}"lastIndexOf(Object)"(e,t){return u(Qu(e,this.access,t))}"forEach(Consumer)"(e,t){if(t===null)return e.fail("java.lang.NullPointerException",null);let i=this.access;return u((function*(){yield*i.openIterator(e);for(let a=0;a!==(yield*i.size(e));a++)yield*g(e,t,"accept",[yield*i.get(e,a)])})(),()=>{})}},Ii=class extends Oi{className="java.util.AbstractList";owner=null;access;constructor(e){super(e);let t=this;this.access={get self(){return t.owner},get:(i,a)=>oe(i,t.owner,"get(int)",[a]),size:i=>oe(i,t.owner,"size()",[]),*openIterator(){},*openListIterator(i){yield*t.access.size(i)},*openAtEnd(i){let a=yield*t.access.size(i);return yield*t.access.size(i),a}}}"add(E)"(e,t){let i=this.owner;return u((function*(){let a=yield*oe(e,i,"size()",[]);return yield*oe(e,i,"add(int,E)",[a,t]),1})())}"add(int,E)"(e){return e.fail(Ri,null)}"set(int,E)"(e){return e.fail(Ri,null)}"remove(int)"(e){return e.fail(Ri,null)}"iterator()"(e){return new xr(e.hash(),this.owner)}"subList(int,int)"(e,t,i){let a=this.owner;return u((function*(){let r=yield*oe(e,a,"size()",[]);return t<0?e.fail(Cr,`fromIndex = ${t}`):i>r?e.fail(Cr,`toIndex = ${i}`):t>i?e.fail("java.lang.IllegalArgumentException",`fromIndex(${t}) > toIndex(${i})`):new Sr(e.hash(),a,t,i-t)})())}},Sr=class extends Oi{className="java.util.AbstractList$SubList";access;#e;#t;#n;constructor(e,t,i,a){super(e),this.#t=t,this.#n=i,this.#e=a;let r=this,l=function*(s){yield*oe(s,t,"size()",[])};this.access={self:r,get:(s,o)=>oe(s,t,"get(int)",[i+o]),*size(){return a},openIterator:l,openListIterator:l,*openAtEnd(s){return yield*l(s),a}}}"size()"(){return this.#e}"get(int)"(e,t){return t<0||t>=this.#e?e.fail(Cr,`Index ${t} out of bounds for length ${this.#e}`):u(oe(e,this.#t,"get(int)",[this.#n+t]))}"iterator()"(e){return e.limitation("an iterator over an AbstractList subclass\'s subList")}},xr=class extends p{className="java.util.AbstractList$Itr";#e;#t=0;#n=-1;constructor(e,t){super(e),this.#e=t}"hasNext()"(e){return u(oe(e,this.#e,"size()",[]),t=>f(this.#t!==t))}"next()"(e){let t=this.#t;return u(oe(e,this.#e,"get(int)",[t]),i=>(this.#n=t,this.#t=t+1,i))}"remove()"(e){return this.#n<0?e.fail(Wu,null):u(oe(e,this.#e,"remove(int)",[this.#n]),()=>{this.#n<this.#t&&this.#t--,this.#n=-1})}"forEachRemaining(Consumer)"(e,t){let i=this;return u((function*(){for(;(yield*oe(e,i.#e,"size()",[]))!==i.#t;){let a=yield*oe(e,i.#e,"get(int)",[i.#t]);i.#n=i.#t++,yield*g(e,t,"accept",[a])}})(),()=>{})}},ks={"AbstractList.<init>()":n=>new Ii(n.hash())};var Bs="java.util.NoSuchElementException",ji="java.util.ConcurrentModificationException",re="java.lang.NullPointerException",An="java.lang.IllegalArgumentException",nc="java.lang.IllegalStateException",Tr="java.lang.UnsupportedOperationException",wi=class extends p{className="java.util.TreeMap$Entry";key;value;left=null;right=null;parent;black=!0;constructor(e,t,i,a){super(e),this.key=t,this.value=i,this.parent=a}get entryKey(){return this.key}get entryValue(){return this.value}get contentEquality(){return!0}*javaString(e){return yield*tn(e,this)}*contentEquals(e,t){return yield*Tt(e,this,t)}*contentHash(e){return yield*nn(e,this)}"getKey()"(){return this.key}"getValue()"(){return this.value}"setValue(V)"(e,t){let i=this.value;return this.value=t,i}},Vr=class extends p{className="java.util.AbstractMap$SimpleImmutableEntry";entryKey;entryValue;constructor(e,t,i){super(e),this.entryKey=t,this.entryValue=i}get contentEquality(){return!0}*javaString(e){return yield*tn(e,this)}*contentEquals(e,t){return yield*Tt(e,this,t)}*contentHash(e){return yield*nn(e,this)}"getKey()"(){return this.entryKey}"getValue()"(){return this.entryValue}"setValue(V)"(e){return e.fail(Tr,null)}};function kn(n,e,t){return e instanceof h.JBox&&t instanceof h.JBox&&e.kind===t.kind&&e.kind!=="double"&&e.kind!=="boolean"?e.value<t.value?-1:e.value>t.value?1:0:e instanceof h.JString&&t instanceof h.JString?Re(e.value,t.value):ie(n,e,t)}var ue=n=>n?n.black:!0,S=n=>n?n.parent:null,pe=n=>n?n.left:null,Ae=n=>n?n.right:null,w=(n,e)=>{n&&(n.black=e)};function Bn(n){if(!n)return null;if(n.right){let i=n.right;for(;i.left;)i=i.left;return i}let e=n.parent,t=n;for(;e&&t===e.right;)t=e,e=e.parent;return e}function Li(n){if(!n)return null;if(n.left){let i=n.left;for(;i.right;)i=i.right;return i}let e=n.parent,t=n;for(;e&&t===e.left;)t=e,e=e.parent;return e}var cn=class{root=null;size=0;modCount=0;comparator;order;constructor(e,t=null){this.comparator=e,this.order=t}#e=null;compare(e,t,i){return this.order?En(this.order(t,i)):this.comparator===null&&(t instanceof h.JString||t instanceof h.JBox)?En(kn(e,t,i)):this.comparator===null&&t===null?e.fail(re,\'Cannot invoke "java.lang.Comparable.compareTo(Object)" because "k1" is null\'):(this.#e??=$(e,this.comparator))(t,i)}#t(e){return this.comparator===null&&(e instanceof h.JString||e instanceof h.JBox)}*find(e,t){if(this.comparator===null&&t===null)return e.fail(re,null);let i=this.#t(t),a=this.root;for(;a;){let r=i?kn(e,t,a.key):yield*this.compare(e,t,a.key);if(r<0)a=a.left;else if(r>0)a=a.right;else return a}return null}*above(e,t,i){let a=this.#t(t),r=this.root,l=null;for(;r;){let s=a?kn(e,t,r.key):yield*this.compare(e,t,r.key);if(s<0||s===0&&i){if(s===0)return r;l=r,r=r.left}else r=r.right}return l}*below(e,t,i){let a=this.#t(t),r=this.root,l=null;for(;r;){let s=a?kn(e,t,r.key):yield*this.compare(e,t,r.key);if(s>0||s===0&&i){if(s===0)return r;l=r,r=r.right}else r=r.left}return l}first(){let e=this.root;if(e)for(;e.left;)e=e.left;return e}last(){let e=this.root;if(e)for(;e.right;)e=e.right;return e}*put(e,t,i,a=!1){let r=this.root;if(!r){yield*this.compare(e,t,t),e.allocate(1),this.root=new wi(e.hash(),t,i,null),this.size=1,this.modCount++;return}if(this.comparator===null&&t===null)return e.fail(re,null);let l=this.#t(t),s,o;do if(s=r,o=l?kn(e,t,r.key):yield*this.compare(e,t,r.key),o<0)r=r.left;else if(o>0)r=r.right;else{let d=r.value;return(!a||d===null)&&(r.value=i),d}while(r);e.allocate(1);let c=new wi(e.hash(),t,i,s);o<0?s.left=c:s.right=c,this.#a(c),this.size++,this.modCount++}#n(e){if(!e)return;let t=e.right;e.right=t.left,t.left&&(t.left.parent=e),t.parent=e.parent,e.parent?e.parent.left===e?e.parent.left=t:e.parent.right=t:this.root=t,t.left=e,e.parent=t}#i(e){if(!e)return;let t=e.left;e.left=t.right,t.right&&(t.right.parent=e),t.parent=e.parent,e.parent?e.parent.right===e?e.parent.right=t:e.parent.left=t:this.root=t,t.right=e,e.parent=t}#a(e){for(e.black=!1;e&&e!==this.root&&!e.parent.black;)if(S(e)===pe(S(S(e)))){let t=Ae(S(S(e)));ue(t)?(e===Ae(S(e))&&(e=S(e),this.#n(e)),w(S(e),!0),w(S(S(e)),!1),this.#i(S(S(e)))):(w(S(e),!0),w(t,!0),w(S(S(e)),!1),e=S(S(e)))}else{let t=pe(S(S(e)));ue(t)?(e===pe(S(e))&&(e=S(e),this.#i(e)),w(S(e),!0),w(S(S(e)),!1),this.#n(S(S(e)))):(w(S(e),!0),w(t,!0),w(S(S(e)),!1),e=S(S(e)))}this.root.black=!0}delete(e){if(this.modCount++,this.size--,e.left&&e.right){let i=Bn(e);e.key=i.key,e.value=i.value,e=i}let t=e.left??e.right;t?(t.parent=e.parent,e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this.root=t,e.left=e.right=e.parent=null,e.black&&this.#r(t)):e.parent?(e.black&&this.#r(e),e.parent&&(e===e.parent.left?e.parent.left=null:e===e.parent.right&&(e.parent.right=null),e.parent=null)):this.root=null}#r(e){let t=e;for(;t!==this.root&&ue(t);)if(t===pe(S(t))){let i=Ae(S(t));ue(i)||(w(i,!0),w(S(t),!1),this.#n(S(t)),i=Ae(S(t))),ue(pe(i))&&ue(Ae(i))?(w(i,!1),t=S(t)):(ue(Ae(i))&&(w(pe(i),!0),w(i,!1),this.#i(i),i=Ae(S(t))),w(i,ue(S(t))),w(S(t),!0),w(Ae(i),!0),this.#n(S(t)),t=this.root)}else{let i=pe(S(t));ue(i)||(w(i,!0),w(S(t),!1),this.#i(S(t)),i=pe(S(t))),ue(Ae(i))&&ue(pe(i))?(w(i,!1),t=S(t)):(ue(pe(i))&&(w(Ae(i),!0),w(i,!1),this.#n(i),i=pe(S(t))),w(i,ue(S(t))),w(S(t),!0),w(pe(i),!0),this.#i(S(t)),t=this.root)}w(t,!0)}clear(){this.modCount++,this.size=0,this.root=null}},ze=class n extends at{className;tree;lo;hi;descending;ctx;constructor(e,t,i,a,r,l){super(e.hash()),this.ctx=e,this.tree=t,this.lo=i,this.hi=a,this.descending=r,this.className=l??(r?"java.util.TreeMap$DescendingSubMap":"java.util.TreeMap$AscendingSubMap")}get whole(){return!this.lo&&!this.hi}*tooLow(e,t){if(!this.lo)return!1;let i=yield*this.tree.compare(e,t,this.lo.key);return i<0||i===0&&!this.lo.inclusive}*tooHigh(e,t){if(!this.hi)return!1;let i=yield*this.tree.compare(e,t,this.hi.key);return i>0||i===0&&!this.hi.inclusive}*inRange(e,t){return!(yield*this.tooLow(e,t))&&!(yield*this.tooHigh(e,t))}*absLowest(e){let t=this.lo?yield*this.tree.above(e,this.lo.key,this.lo.inclusive):this.tree.first();return!t||(yield*this.tooHigh(e,t.key))?null:t}*absHighest(e){let t=this.hi?yield*this.tree.below(e,this.hi.key,this.hi.inclusive):this.tree.last();return!t||(yield*this.tooLow(e,t.key))?null:t}*#e(e,t,i,a){if(i){if(yield*this.tooLow(e,t))return yield*this.absLowest(e);let l=yield*this.tree.above(e,t,a);return!l||(yield*this.tooHigh(e,l.key))?null:l}if(yield*this.tooHigh(e,t))return yield*this.absHighest(e);let r=yield*this.tree.below(e,t,a);return!r||(yield*this.tooLow(e,r.key))?null:r}*firstNode(e){return this.descending?yield*this.absHighest(e):yield*this.absLowest(e)}*lastNode(e){return this.descending?yield*this.absLowest(e):yield*this.absHighest(e)}*near(e,t,i,a){return yield*this.#e(e,t,i!==this.descending,a)}*#t(e){let t=yield*this.firstNode(e),i;return this.descending?i=this.lo?yield*this.tree.below(e,this.lo.key,!this.lo.inclusive):null:i=this.hi?yield*this.tree.above(e,this.hi.key,!this.hi.inclusive):null,{first:t,fence:i}}*nodes(e){let t=[],{first:i,fence:a}=yield*this.#t(e);for(let r=i;r&&r!==a;r=this.descending?Li(r):Bn(r))t.push(r);return e.charge(t.length),t}#n(e){let i=this.nodes(e).next();return i.done?i.value:e.limitation("copying a TreeMap or TreeSet view whose range the program\'s comparator decides")}*javaString(e){let t=[];for(let i of yield*this.nodes(e))t.push(`${yield*x(e,i.key,this,"(this Map)")}=${yield*x(e,i.value,this,"(this Map)")}`);return`{${t.join(", ")}}`}get size(){return this.sizeNow(this.ctx)}sizeNow(e){return this.whole?this.tree.size:this.#n(e).length}mappings(e){return this.#n(e)}*lookup(e,t){if(!this.whole&&!(yield*this.inRange(e,t)))return;let i=yield*this.tree.find(e,t);return i?i.value:void 0}iterator(e,t){return u(this.#t(e),({first:i,fence:a})=>new Er(e.hash(),this,i,a,t))}*view(e,t,i,a){let[r,l]=this.descending?[i,t]:[t,i];if(r&&!this.whole&&!(yield*this.#i(e,r)))return e.fail(An,`${this.descending?"toKey":"fromKey"} out of range`);if(l&&!this.whole&&!(yield*this.#i(e,l)))return e.fail(An,`${this.descending?"fromKey":"toKey"} out of range`);if(r??=this.lo,l??=this.hi,r&&l){if((yield*this.tree.compare(e,r.key,l.key))>0)return e.fail(An,"fromKey > toKey")}else r?yield*this.tree.compare(e,r.key,r.key):l&&(yield*this.tree.compare(e,l.key,l.key));return new n(e,this.tree,r,l,a)}*#i(e,t){if(this.lo){let i=yield*this.tree.compare(e,t.key,this.lo.key);if(i<0||i===0&&!this.lo.inclusive&&t.inclusive)return!1}if(this.hi){let i=yield*this.tree.compare(e,t.key,this.hi.key);if(i>0||i===0&&!this.hi.inclusive&&t.inclusive)return!1}return!0}"size()"(e=this.ctx){return this.whole?this.tree.size:u(this.nodes(e),t=>t.length)}"isEmpty()"(e=this.ctx){return this.whole?f(this.tree.size===0):u(this.firstNode(e),t=>f(t===null))}"get(Object)"(e,t){return u(this.lookup(e,t),i=>i===void 0?null:i)}"getOrDefault(Object,V)"(e,t,i){return u(this.lookup(e,t),a=>a===void 0?i:a)}"containsKey(Object)"(e,t){return u(this.lookup(e,t),i=>f(i!==void 0))}"containsValue(Object)"(e,t){let i=this;return u((function*(){for(let a of yield*i.nodes(e))if(t===null?a.value===null:yield*T(e,t,a.value))return!0;return!1})(),f)}*#a(e,t,i,a){if(!this.whole&&!(yield*this.inRange(e,t)))return e.fail(An,"key out of range");let r=yield*this.tree.put(e,t,i,a);return r===void 0?null:r}"put(K,V)"(e,t,i){return u(this.#a(e,t,i,!1))}"putIfAbsent(K,V)"(e,t,i){return u(this.#a(e,t,i,!0))}*removeKey(e,t){if(!this.whole&&!(yield*this.inRange(e,t)))return null;let i=yield*this.tree.find(e,t);if(!i)return null;let a=i.value;return this.tree.delete(i),{value:a}}"remove(Object)"(e,t){return u(this.removeKey(e,t),i=>i?i.value:null)}"remove(Object,Object)"(e,t,i){let a=this;return u((function*(){if(!a.whole&&!(yield*a.inRange(e,t)))return!1;let r=yield*a.tree.find(e,t);return!r||!(i===null?r.value===null:yield*T(e,i,r.value))?!1:(a.tree.delete(r),!0)})(),f)}"replace(K,V)"(e,t,i){let a=this;return u((function*(){if(!a.whole&&!(yield*a.inRange(e,t)))return null;let r=yield*a.tree.find(e,t);if(!r)return null;let l=r.value;return r.value=i,l})())}"replace(K,V,V)"(e,t,i,a){let r=this;return u((function*(){if(!r.whole&&!(yield*r.inRange(e,t)))return!1;let l=yield*r.tree.find(e,t);return!l||!(i===null?l.value===null:yield*T(e,i,l.value))?!1:(l.value=a,!0)})(),f)}"putAll(Map)"(e,t){if(t===null)return e.fail(re,\'Cannot invoke "java.util.Map.size()" because "map" is null\');let i=this;return u((function*(){for(let a of t.copyMappings(e).mappings)yield*i.#a(e,a.entryKey,a.entryValue,!1)})(),()=>{})}"clear()"(e){if(this.whole){this.tree.clear();return}return u(this.#r(e),()=>{})}*#r(e){let{first:t,fence:i}=yield*this.#t(e),a=i?i.key:void 0,r=t;for(;r&&(a===void 0||r.key!==a);){let l=this.descending?Li(r):Bn(r);!this.descending&&r.left&&r.right&&(l=r),this.tree.delete(r),r=l}}*#l(e,t){let i=this.tree,a=i.modCount,{first:r,fence:l}=yield*this.#t(e),s=l?l.key:void 0;for(let o=r;o&&(s===void 0||o.key!==s);o=this.descending?Li(o):Bn(o))yield*t(o),i.modCount!==a&&e.fail(ji,null)}"forEach(BiConsumer)"(e,t){return t===null?e.fail(re,null):u(this.#l(e,function*(i){yield*g(e,t,"accept",[i.key,i.value])}),()=>{})}"replaceAll(BiFunction)"(e,t){return t===null?e.fail(re,null):u(this.#l(e,function*(i){i.value=(yield*g(e,t,"apply",[i.key,i.value]))??null}),()=>{})}*#s(e,t,i){let a=this.tree.modCount,r=(yield*g(e,t,"apply",i))??null;return this.tree.modCount!==a&&e.fail(ji,null),r}"computeIfAbsent(K,Function)"(e,t,i){if(i===null)return e.fail(re,null);let a=this;return u((function*(){let r=a.tree.root?yield*a.#c(e,t):null;if(r&&r.value!==null)return r.value;let l=yield*a.#s(e,i,[t]);return l===null?null:(r?r.value=l:yield*a.#a(e,t,l,!1),l)})())}"computeIfPresent(K,BiFunction)"(e,t,i){if(i===null)return e.fail(re,null);let a=this;return u((function*(){let r=yield*a.#c(e,t);if(!r||r.value===null)return null;let l=yield*a.#s(e,i,[t,r.value]);return l===null?a.tree.delete(r):r.value=l,l})())}"compute(K,BiFunction)"(e,t,i){if(i===null)return e.fail(re,null);let a=this;return u((function*(){let r=a.tree.root?yield*a.#c(e,t):null,l=yield*a.#s(e,i,[t,r?r.value:null]);return r?l===null?a.tree.delete(r):r.value=l:l!==null&&(yield*a.#a(e,t,l,!1)),l})())}"merge(K,V,BiFunction)"(e,t,i,a){if(i===null||a===null)return e.fail(re,null);let r=this;return u((function*(){let l=r.tree.root?yield*r.#c(e,t):null;if(!l)return yield*r.#a(e,t,i,!1),i;let s=l.value===null?i:yield*r.#s(e,a,[l.value,i]);return s===null?r.tree.delete(l):l.value=s,s})())}*#c(e,t){return!this.whole&&!(yield*this.inRange(e,t))?e.fail(An,"key out of range"):yield*this.tree.find(e,t)}"comparator()"(e){return this.descending?e.limitation("comparator() of a descending TreeMap or TreeSet view"):this.tree.comparator}#o(e,t){return t?t.key:e.fail(Bs,null)}#h(e,t){return t?new Vr(e.hash(),t.key,t.value):null}"firstKey()"(e){return u(this.firstNode(e),t=>this.#o(e,t))}"lastKey()"(e){return u(this.lastNode(e),t=>this.#o(e,t))}"firstEntry()"(e){return u(this.firstNode(e),t=>this.#h(e,t))}"lastEntry()"(e){return u(this.lastNode(e),t=>this.#h(e,t))}#d(e,t){return u(t?this.lastNode(e):this.firstNode(e),i=>{let a=this.#h(e,i);return i&&this.tree.delete(i),a})}"pollFirstEntry()"(e){return this.#d(e,!1)}"pollLastEntry()"(e){return this.#d(e,!0)}#u(e,t,i,a){return u(this.near(e,t,i,a),r=>r?r.key:null)}#f(e,t,i,a){return u(this.near(e,t,i,a),r=>this.#h(e,r))}"ceilingKey(K)"(e,t){return this.#u(e,t,!0,!0)}"higherKey(K)"(e,t){return this.#u(e,t,!0,!1)}"floorKey(K)"(e,t){return this.#u(e,t,!1,!0)}"lowerKey(K)"(e,t){return this.#u(e,t,!1,!1)}"ceilingEntry(K)"(e,t){return this.#f(e,t,!0,!0)}"higherEntry(K)"(e,t){return this.#f(e,t,!0,!1)}"floorEntry(K)"(e,t){return this.#f(e,t,!1,!0)}"lowerEntry(K)"(e,t){return this.#f(e,t,!1,!1)}"headMap(K)"(e,t){return u(this.view(e,null,{key:t,inclusive:!1},this.descending))}"headMap(K,boolean)"(e,t,i){return u(this.view(e,null,{key:t,inclusive:i===1},this.descending))}"tailMap(K)"(e,t){return u(this.view(e,{key:t,inclusive:!0},null,this.descending))}"tailMap(K,boolean)"(e,t,i){return u(this.view(e,{key:t,inclusive:i===1},null,this.descending))}"subMap(K,K)"(e,t,i){return u(this.view(e,{key:t,inclusive:!0},{key:i,inclusive:!1},this.descending))}"subMap(K,boolean,K,boolean)"(e,t,i,a,r){return u(this.view(e,{key:t,inclusive:i===1},{key:a,inclusive:r===1},this.descending))}"descendingMap()"(e){return new n(e,this.tree,this.lo,this.hi,!this.descending)}"keySet()"(e){return new ve(e,this,"java.util.TreeMap$KeySet")}"navigableKeySet()"(e){return new ve(e,this,"java.util.TreeMap$KeySet")}"descendingKeySet()"(e){return new ve(e,new n(e,this.tree,this.lo,this.hi,!this.descending),"java.util.TreeMap$KeySet")}"values()"(e){return new Ai(e,this,"value")}"entrySet()"(e){return new Ai(e,this,"entry")}},Er=class extends p{className;#e;#t;#n;#i=null;#a;#r;constructor(e,t,i,a,r){super(e),this.#e=t,this.#t=i,this.#n=a?a.key:void 0,this.#a=t.tree.modCount,this.#r=r;let l=r==="key"?"Key":r==="value"?"Value":"Entry";this.className=t.whole&&!t.descending?`java.util.TreeMap$${l}Iterator`:`java.util.TreeMap$NavigableSubMap$SubMap${l}Iterator`}"hasNext()"(){return f(this.#t!==null&&(this.#n===void 0||this.#t.key!==this.#n))}"next()"(e){let t=this.#t;return!t||this.#n!==void 0&&t.key===this.#n?e.fail(Bs,null):this.#e.tree.modCount!==this.#a?e.fail(ji,null):(this.#t=this.#e.descending?Li(t):Bn(t),this.#i=t,e.charge(1),this.#r==="key"?t.key:this.#r==="value"?t.value:t)}"remove()"(e){let t=this.#i;if(!t)return e.fail(nc,null);if(this.#e.tree.modCount!==this.#a)return e.fail(ji,null);!this.#e.descending&&t.left&&t.right&&(this.#t=t),this.#e.tree.delete(t),this.#i=null,this.#a=this.#e.tree.modCount}},Ai=class extends L{className;map;kind;isSet;constructor(e,t,i){super(e.hash()),this.map=t,this.kind=i,this.isSet=i==="entry",this.className=i==="value"?"java.util.TreeMap$Values":t.whole?"java.util.TreeMap$EntrySet":"java.util.TreeMap$NavigableSubMap$EntrySetView"}get size(){return this.map.size}elements(e){return this.map.mappings(e).map(t=>this.kind==="value"?t.value:t)}*javaString(e){let t=[];for(let i of yield*this.map.nodes(e))t.push(yield*x(e,this.kind==="value"?i.value:i,this));return`[${t.join(", ")}]`}"size()"(e=this.map.ctx){return this.map["size()"](e)}"isEmpty()"(e=this.map.ctx){return this.map["isEmpty()"](e)}*contains(e,t){if(this.kind==="value"){for(let r of yield*this.map.nodes(e))if(t===null?r.value===null:yield*T(e,t,r.value))return!0;return!1}if(!(t instanceof p)||!("entryKey"in t))return!1;let i=t,a=yield*this.map.lookup(e,i.entryKey);return a!==void 0&&(a===null?i.entryValue===null:yield*T(e,a,i.entryValue))}get contentEquality(){return this.kind==="entry"}*contentEquals(e,t){if(t===this)return!0;if(this.kind!=="entry"||!(t instanceof L)||!t.isSet||t.size!==this.size)return!1;for(let i of t.elements(e,!1))if(!(yield*this.contains(e,i)))return!1;return!0}*contentHash(e){if(this.kind!=="entry")return this.hash;let t=0;for(let i of this.elements(e))t=t+(yield*j(e,i))|0;return t}"iterator()"(e){return this.map.iterator(e,this.kind)}"add(E)"(e){return e.fail(Tr,null)}"remove(Object)"(e,t){let i=this.map,a=this.kind;return u((function*(){for(let r of yield*i.nodes(e))if(a==="value"?t===null?r.value===null:yield*T(e,t,r.value):yield*Tt(e,r,t))return i.tree.delete(r),!0;return!1})(),f)}"clear()"(e){return this.map["clear()"](e)}},ve=class n extends L{className;isSet=!0;map;constructor(e,t,i="java.util.TreeSet"){super(e.hash()),this.map=t,this.className=i}get size(){return this.map.size}elements(e){return this.map.mappings(e).map(t=>t.key)}*javaString(e){let t=[];for(let i of yield*this.map.nodes(e))t.push(yield*x(e,i.key,this));return`[${t.join(", ")}]`}get contentEquality(){return!0}*contentEquals(e,t){if(t===this)return!0;if(!(t instanceof L)||!t.isSet||t.size!==this.size)return!1;for(let i of t.elements(e,!1))if(!(yield*this.contains(e,i)))return!1;return!0}*contentHash(e){let t=0;for(let i of this.elements(e))t=t+(yield*j(e,i))|0;return t}*contains(e,t){return(yield*this.map.lookup(e,t))!==void 0}"size()"(e=this.map.ctx){return this.map["size()"](e)}"isEmpty()"(e=this.map.ctx){return this.map["isEmpty()"](e)}"add(E)"(e,t){if(this.className!=="java.util.TreeSet")return e.fail(Tr,null);let i=this.map.tree.size;return u(Mn(this.map["put(K,V)"](e,t,null)),()=>f(this.map.tree.size!==i))}"remove(Object)"(e,t){return u(this.map.removeKey(e,t),i=>f(i!==null))}"clear()"(e){return this.map["clear()"](e)}"iterator()"(e){return this.map.iterator(e,"key")}"descendingIterator()"(e){return new ze(e,this.map.tree,this.map.lo,this.map.hi,!this.map.descending).iterator(e,"key")}"comparator()"(e){return this.map["comparator()"](e)}"first()"(e){return this.map["firstKey()"](e)}"last()"(e){return this.map["lastKey()"](e)}#e(e,t,i,a){return u(this.map.near(e,t,i,a),r=>r?r.key:null)}"ceiling(E)"(e,t){return this.#e(e,t,!0,!0)}"higher(E)"(e,t){return this.#e(e,t,!0,!1)}"floor(E)"(e,t){return this.#e(e,t,!1,!0)}"lower(E)"(e,t){return this.#e(e,t,!1,!1)}#t(e,t){return u(t?this.map.lastNode(e):this.map.firstNode(e),i=>{if(!i)return null;let a=i.key;return this.map.tree.delete(i),a})}"pollFirst()"(e){return this.#t(e,!1)}"pollLast()"(e){return this.#t(e,!0)}#n(e,t,i){return u(this.map.view(e,t,i,this.map.descending),a=>new n(e,a,this.className))}"headSet(E)"(e,t){return this.#n(e,null,{key:t,inclusive:!1})}"headSet(E,boolean)"(e,t,i){return this.#n(e,null,{key:t,inclusive:i===1})}"tailSet(E)"(e,t){return this.#n(e,{key:t,inclusive:!0},null)}"tailSet(E,boolean)"(e,t,i){return this.#n(e,{key:t,inclusive:i===1},null)}"subSet(E,E)"(e,t,i){return this.#n(e,{key:t,inclusive:!0},{key:i,inclusive:!1})}"subSet(E,boolean,E,boolean)"(e,t,i,a,r){return this.#n(e,{key:t,inclusive:i===1},{key:a,inclusive:r===1})}"descendingSet()"(e){return new n(e,new ze(e,this.map.tree,this.map.lo,this.map.hi,!this.map.descending),this.className)}};function*Mn(n){return n!==null&&typeof n=="object"&&Symbol.iterator in n?yield*n:n}var ct=(n,e)=>new ze(n,new cn(e),null,null,!1,"java.util.TreeMap"),Ms=n=>n instanceof ze?n.tree.comparator:n instanceof ve?n.map.tree.comparator:null,Ds={"TreeMap.<init>()":n=>ct(n,null),"TreeMap.<init>(Comparator)":(n,[e])=>ct(n,e),"TreeMap.<init>(Map)":(n,[e])=>{if(e===null)return n.fail(re,\'Cannot invoke "java.util.Map.size()" because "map" is null\');let t=ct(n,null);return u(Mn(t["putAll(Map)"](n,e)),()=>t)},"TreeMap.<init>(SortedMap)":(n,[e])=>{if(e===null)return n.fail(re,\'Cannot invoke "java.util.SortedMap.comparator()" because "m" is null\');let t=ct(n,Ms(e));return u(Mn(t["putAll(Map)"](n,e)),()=>t)},"TreeSet.<init>()":n=>new ve(n,ct(n,null)),"TreeSet.<init>(Comparator)":(n,[e])=>new ve(n,ct(n,e)),"TreeSet.<init>(Collection)":(n,[e])=>{if(e===null)return n.fail(re,\'Cannot invoke "java.util.Collection.size()" because "c" is null\');let t=new ve(n,ct(n,null));return u(Mn(t.addEach(n,e.copyItems(n).items)),()=>t)},"TreeSet.<init>(SortedSet)":(n,[e])=>{if(e===null)return n.fail(re,\'Cannot invoke "java.util.SortedSet.comparator()" because "s" is null\');let t=new ve(n,ct(n,Ms(e)));return u(Mn(t.addEach(n,e.elements(n,!0))),()=>t)}};var kr={};xn(kr,{BOX_METHODS:()=>Ar,LANG_STATICS:()=>qe,STRING_BUILDER_CONSTRUCTORS:()=>jr,StringBuffer:()=>fn,StringBuilder:()=>jt,StringJoiner:()=>$n,charsToString:()=>mn});var dt="java.lang.NumberFormatException",ki="java.lang.StringIndexOutOfBoundsException",Y="java.lang.NullPointerException",$s="java.lang.IndexOutOfBoundsException",Rr=n=>n===null?"null":n instanceof h.JString?n.value:n.text,Fs=\'Cannot invoke "String.length()" because "tgtStr" is null\',Gs=\'Cannot read field "value" because "tgtStr" is null\',jt=class extends p{className="java.lang.StringBuilder";text;capacity;constructor(e,t,i=t.length+16){super(e),this.text=t,this.capacity=i}#e(e){e>this.capacity&&(this.capacity=Math.max(e,this.capacity*2+2))}*javaString(){return this.text}#t(e,t,i=this.text.length+t){e.checkString(i),e.charge(t>>>4)}#n(e,t){return this.#t(e,t.length),this.#e(this.text.length+t.length),this.text+=t,this}#i(e,t){(t<0||t>=this.text.length)&&e.fail(ki,`Index ${t} out of bounds for length ${this.text.length}`)}#a(e,t,i){let a=this.text.length;(t<0||t>i||i>a)&&e.fail(ki,`Range [${t}, ${i}) out of bounds for length ${a}`)}#r(e,t,i){let a=this.text.length;return(t<0||t>a)&&e.fail(ki,`Range [${t}, ${a}) out of bounds for length ${a}`),this.#t(e,i.length+a,i.length+a),this.#e(a+i.length),this.text=this.text.slice(0,t)+i+this.text.slice(t),this}"append(Object)"(e,t){return u(x(e,t),i=>this.#n(e,i))}"append(String)"(e,t){return this.#n(e,t===null?"null":t.value)}"append(StringBuffer)"(e,t){return this.#n(e,Rr(t))}"append(CharSequence)"(e,t){return this.#n(e,Rr(t))}"append(CharSequence,int,int)"(e,t,i,a){let r=Rr(t);return i<0||i>a||a>r.length?e.fail($s,`Range [${i}, ${a}) out of bounds for length ${r.length}`):this.#n(e,r.slice(i,a))}"append(char[],int,int)"(e,t,i,a){if(t===null)return e.fail(Y,\'Cannot read the array length because "str" is null\');let r=mn(t);return i<0||a<0||i+a>r.length?e.fail($s,`Range [${i}, ${i+a}) out of bounds for length ${r.length}`):this.#n(e,r.slice(i,i+a))}"append(char[])"(e,t){return t===null?e.fail(Y,\'Cannot read the array length because "str" is null\'):this.#n(e,mn(t))}"append(boolean)"(e,t){return this.#n(e,t?"true":"false")}"append(char)"(e,t){return this.#n(e,String.fromCharCode(t))}"append(int)"(e,t){return this.#n(e,String(t))}"append(long)"(e,t){return this.#n(e,String(t))}"append(double)"(e,t){return this.#e(this.text.length+24),this.#n(e,h.doubleToString(t))}"append(float)"(e,t){return this.#e(this.text.length+15),this.#n(e,h.floatToString(t))}"insert(int,Object)"(e,t,i){return u(x(e,i),a=>this.#r(e,t,a))}"insert(int,String)"(e,t,i){return this.#r(e,t,i===null?"null":i.value)}"insert(int,char[])"(e,t,i){return i===null?e.fail(Y,\'Cannot read the array length because "str" is null\'):this.#r(e,t,mn(i))}"insert(int,boolean)"(e,t,i){return this.#r(e,t,i?"true":"false")}"insert(int,char)"(e,t,i){return this.#r(e,t,String.fromCharCode(i))}"insert(int,int)"(e,t,i){return this.#r(e,t,String(i))}"insert(int,long)"(e,t,i){return this.#r(e,t,String(i))}"insert(int,double)"(e,t,i){return this.#r(e,t,h.doubleToString(i))}"insert(int,float)"(e,t,i){return this.#r(e,t,h.floatToString(i))}"length()"(){return this.text.length}"isEmpty()"(){return f(this.text.length===0)}"charAt(int)"(e,t){return this.#i(e,t),this.text.charCodeAt(t)}"setCharAt(int,char)"(e,t,i){this.#i(e,t),this.#t(e,this.text.length,this.text.length),this.text=this.text.slice(0,t)+String.fromCharCode(i)+this.text.slice(t+1)}"setLength(int)"(e,t){if(t<0)return e.fail(ki,`String index out of range: ${t}`);t<=this.text.length?this.text=this.text.slice(0,t):(this.#t(e,t-this.text.length,t),this.#e(t),this.text+="\\0".repeat(t-this.text.length))}"deleteCharAt(int)"(e,t){return this.#i(e,t),this.#t(e,this.text.length,this.text.length),this.text=this.text.slice(0,t)+this.text.slice(t+1),this}"delete(int,int)"(e,t,i){return i=Math.min(i,this.text.length),this.#a(e,t,i),this.#t(e,this.text.length,this.text.length),this.text=this.text.slice(0,t)+this.text.slice(i),this}"replace(int,int,String)"(e,t,i,a){if(i=Math.min(i,this.text.length),this.#a(e,t,i),a===null)return e.fail(Y,\'Cannot invoke "String.length()" because "str" is null\');let r=a.value;return this.#t(e,this.text.length+r.length,this.text.length+r.length-(i-t)),this.#e(this.text.length+r.length-(i-t)),this.text=this.text.slice(0,t)+r+this.text.slice(i),this}"reverse()"(e){this.#t(e,this.text.length,this.text.length);let t=this.text.split("");t.reverse();for(let i=0;i<t.length-1;i++){let a=t[i].charCodeAt(0),r=t[i+1].charCodeAt(0);a>=56320&&a<=57343&&r>=55296&&r<=56319&&(t[i]=String.fromCharCode(r),t[i+1]=String.fromCharCode(a),i++)}return this.text=t.join(""),this}"indexOf(String)"(e,t){return t===null?e.fail(Y,Fs):(e.charge(this.text.length>>>4),this.text.indexOf(t.value))}"indexOf(String,int)"(e,t,i){return t===null?e.fail(Y,Fs):(e.charge(this.text.length>>>4),this.text.indexOf(t.value,Math.max(0,i)))}"lastIndexOf(String)"(e,t){return t===null?e.fail(Y,Gs):(e.charge(this.text.length>>>4),this.text.lastIndexOf(t.value))}"lastIndexOf(String,int)"(e,t,i){return t===null?e.fail(Y,Gs):(e.charge(this.text.length>>>4),i<0?-1:this.text.lastIndexOf(t.value,i))}"substring(int)"(e,t){return this["substring(int,int)"](e,t,this.text.length)}"substring(int,int)"(e,t,i){return this.#a(e,t,i),new h.JString(this.text.slice(t,i))}"compareTo(StringBuilder)"(e,t){return t===null?e.fail(Y,\'Cannot read field "value" because "another" is null\'):Re(this.text,t.text)}"compareTo(StringBuffer)"(e,t){return this["compareTo(StringBuilder)"](e,t)}"capacity()"(){return this.capacity}"ensureCapacity(int)"(e,t){t>0&&this.#e(t)}"trimToSize()"(){this.text.length<this.capacity&&(this.capacity=this.text.length)}},fn=class extends jt{className="java.lang.StringBuffer"},$n=class extends p{className="java.util.StringJoiner";prefix;delimiter;suffix;joined=null;emptyValue=null;constructor(e,t,i,a){super(e),this.prefix=t,this.delimiter=i,this.suffix=a}#e(){return this.joined===null&&this.emptyValue!==null?this.emptyValue:this.prefix+(this.joined??"")+this.suffix}*javaString(){return this.#e()}#t(e,t){return e.checkString((this.joined?.length??0)+this.delimiter.length+t.length),e.charge(t.length>>>4),this.joined=this.joined===null?t:this.joined+this.delimiter+t,this}"add(String)"(e,t){return this.#t(e,t===null?"null":t.value)}"merge(StringJoiner)"(e,t){if(t===null)return e.fail(Y,null);let i=t.joined;return i===null?this:this.#t(e,i)}"setEmptyValue(String)"(e,t){return t===null?e.fail(Y,"The empty value must not be null"):(this.emptyValue=t.value,this)}"length()"(){return this.#e().length}"toString()"(){return new h.JString(this.#e())}},Mi=(n,e,t)=>e===null?n.fail(Y,`The ${t} must not be null`):e.value;function mn(n){let e=n.data,t="";for(let i=0;i<e.length;i+=8192)t+=String.fromCharCode(...e.subarray(i,i+8192));return t}var jr={"StringBuilder.<init>()":n=>new jt(n.hash(),""),"StringBuilder.<init>(int)":(n,[e])=>e<0?n.fail("java.lang.NegativeArraySizeException",String(e)):new jt(n.hash(),"",e),"StringBuilder.<init>(String)":(n,[e])=>e===null?n.fail(Y,\'Cannot invoke "String.length()" because "str" is null\'):new jt(n.hash(),e.value),"StringBuffer.<init>()":n=>new fn(n.hash(),""),"StringBuffer.<init>(int)":(n,[e])=>e<0?n.fail("java.lang.NegativeArraySizeException",String(e)):new fn(n.hash(),"",e),"StringBuffer.<init>(String)":(n,[e])=>e===null?n.fail(Y,\'Cannot invoke "String.length()" because "str" is null\'):new fn(n.hash(),e.value),"StringJoiner.<init>(String)":(n,[e])=>new $n(n.hash(),"",Mi(n,e,"delimiter"),""),"StringJoiner.<init>(String,String,String)":(n,[e,t,i])=>{let a=Mi(n,t,"prefix"),r=Mi(n,e,"delimiter");return new $n(n.hash(),a,r,Mi(n,i,"suffix"))}},ic="0000000000000000002020202020000000000000000000000000000020202020a000000000000000000000000000000006060606060606060606000000000000004d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d00000000000055555555555555555555555555555555555555555555555555550000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000550000000000000000000055000000005500000000004d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d004d4d4d4d4d4d4d555555555555555555555555555555555555555555555555005555555555555555",Zs=new Uint8Array(256);for(let n=0;n<256;n++)Zs[n]=parseInt(ic.slice(n*2,n*2+2),16);var Js=1,Ps=2,Ks=4,_s=8,Us=16,zs=32,ac=64,Hs=128,rc={178:2,179:3,185:1,188:-2,189:-2,190:-2};function $i(n,e,t){if(e<0||e>255){let i=(e>>>0).toString(16).toUpperCase().padStart(4,"0");n.limitation(`Character.${t} for characters outside Latin-1 (here U+${i})`)}return e}var ee=(n,e)=>(t,[i])=>f((Zs[$i(t,i,n)]&e)!==0);function Bi(n,e,t){$i(n,e,t?"toUpperCase":"toLowerCase");let i=String.fromCharCode(e),a=t?i.toUpperCase():i.toLowerCase();return a.length===1?a.charCodeAt(0):e}function wr(n){return n>=48&&n<=57?n-48:n>=65&&n<=90?n-55:n>=97&&n<=122?n-87:-1}function qs(n,e,t){if(t<2||t>36)return-1;$i(n,e,"digit");let i=wr(e);return i<t?i:-1}function Ws(n,e){return $i(n,e,"getNumericValue"),rc[e]??wr(e)}function He(n,e,t,i){if(e===null)return n.fail(dt,"Cannot parse null string");if(t<2)return n.fail(dt,`radix ${t} less than Character.MIN_RADIX`);if(t>36)return n.fail(dt,`radix ${t} greater than Character.MAX_RADIX`);let a=e.value,r=()=>n.fail(dt,t===10?`For input string: "${a}"`:`For input string: "${a}" under radix ${t}`);a.length||r();let l=0,s=!1,o=a.charCodeAt(0);o<48&&(o===45?s=!0:o!==43&&r(),a.length===1&&r(),l=1);let c=(1n<<BigInt(i-1))-(s?0n:1n),d=BigInt(t),m=0n;for(n.charge(a.length>>>2);l<a.length;l++){let v=a.charCodeAt(l);v>255&&/\\p{Nd}/u.test(a[l])&&n.limitation("parsing digits outside Latin-1");let C=v>255?-1:wr(v);(C<0||C>=t)&&r(),m=m*d+BigInt(C),m>c&&r()}return s?-m:m}var lc=/^[+-]?(NaN|Infinity|(\\d+\\.?\\d*|\\.\\d+)([eE][+-]?\\d+)?[fFdD]?)$/,sc=/^[+-]?0[xX]/;function Di(n,e,t=!1){if(e===null)return n.fail(Y,\'Cannot invoke "String.length()" because "in" is null\');let i=e.value,a=i.replace(/^[\\0- ]+|[\\0- ]+$/g,"");if(!a.length)return n.fail(dt,"empty String");if(lc.test(a)){let r=a.replace(/[fFdD]$/,"").replace(/^\\+/,"");return t?/^-?(NaN|Infinity)$/.test(r)?Math.fround(Number(r)):h.parseDecimalFloat(r):Number(r)}if(sc.test(a)){let r=h.parseHexFloating(a,t);if(!Number.isNaN(r))return r}return(/^[+-]?([0-9.]*)/.exec(a)[1].match(/\\./g)?.length??0)>1?n.fail(dt,"multiple points"):n.fail(dt,`For input string: "${i}"`)}function ht(n,e,t,i){let a=Number(He(n,e,t,32)),r=i===8?128:32768;return a<-r||a>=r?n.fail(dt,`Value out of range. Value:"${e.value}" Radix:${t}`):a}var oc=n=>n<<24>>24,uc=n=>n<<16>>16,Lr=n=>h.normLong(BigInt.asIntN(64,n)),Dn=n=>BigInt(n);function cc(n){return Number.isNaN(n)?0:n>=2147483647?2147483647:n<=-2147483648?-2147483648:Math.trunc(n)}function hc(n){return Number.isNaN(n)?0:n>=9223372036854776e3?Lr((1n<<63n)-1n):n<=-9223372036854776e3?Lr(-(1n<<63n)):h.normLong(BigInt(Math.trunc(n)))}var Or=(n,e)=>n<e?-1:n>e?1:0;function dc(n){return n=n-(n>>>1&1431655765),n=(n&858993459)+(n>>>2&858993459),Math.imul(n+(n>>>4)&252645135,16843009)>>>24|0}function fc(n){let e=0;for(let t=0;t<32;t++)e=e<<1|n&1,n>>>=1;return e|0}var dn=n=>BigInt.asUintN(64,Dn(n)),q=n=>new h.JString(n),Ys=n=>n<2||n>36?10:n;function mc(n){let e=dn(n);return e===0n?64:64-e.toString(2).length}function gc(n){let e=dn(n);if(e===0n)return 64;let t=0;for(let i=e;(i&1n)===0n;i>>=1n)t++;return t}var Ve=(n,e)=>new h.JBox(n,e),hn=(n,e,t)=>(i,a)=>Ve(t,n[e](i,a)),qe={"Integer.<init>(int)":(n,[e])=>Ve("int",e),"Integer.<init>(String)":(n,e)=>hn(qe,"Integer.parseInt(String)","int")(n,e),"Long.<init>(long)":(n,[e])=>Ve("long",e),"Long.<init>(String)":(n,e)=>hn(qe,"Long.parseLong(String)","long")(n,e),"Double.<init>(double)":(n,[e])=>Ve("double",e),"Double.<init>(String)":(n,e)=>hn(qe,"Double.parseDouble(String)","double")(n,e),"Float.<init>(float)":(n,[e])=>Ve("float",e),"Float.<init>(double)":(n,[e])=>Ve("float",Math.fround(e)),"Float.<init>(String)":(n,e)=>hn(qe,"Float.parseFloat(String)","float")(n,e),"Byte.<init>(byte)":(n,[e])=>Ve("byte",e),"Byte.<init>(String)":(n,e)=>hn(qe,"Byte.parseByte(String)","byte")(n,e),"Short.<init>(short)":(n,[e])=>Ve("short",e),"Short.<init>(String)":(n,e)=>hn(qe,"Short.parseShort(String)","short")(n,e),"Character.<init>(char)":(n,[e])=>Ve("char",e),"Boolean.<init>(boolean)":(n,[e])=>Ve("boolean",e),"Boolean.<init>(String)":(n,[e])=>Ve("boolean",e!==null&&/^true$/i.test(e.value)?1:0),"Integer.toString(int,int)":(n,[e,t])=>q(e.toString(Ys(t))),"Integer.toHexString(int)":(n,[e])=>q((e>>>0).toString(16)),"Integer.toOctalString(int)":(n,[e])=>q((e>>>0).toString(8)),"Integer.toBinaryString(int)":(n,[e])=>q((e>>>0).toString(2)),"Integer.toString(int)":(n,[e])=>q(String(e)),"Integer.parseInt(String,int)":(n,[e,t])=>Number(He(n,e,t,32)),"Integer.parseInt(String)":(n,[e])=>Number(He(n,e,10,32)),"Integer.valueOf(String,int)":(n,[e,t])=>n.box("int",Number(He(n,e,t,32))),"Integer.valueOf(String)":(n,[e])=>n.box("int",Number(He(n,e,10,32))),"Integer.valueOf(int)":(n,[e])=>n.box("int",e),"Integer.hashCode(int)":(n,[e])=>e,"Integer.compare(int,int)":(n,[e,t])=>Or(e,t),"Integer.highestOneBit(int)":(n,[e])=>e===0?0:2147483648>>>Math.clz32(e)|0,"Integer.numberOfLeadingZeros(int)":(n,[e])=>Math.clz32(e),"Integer.numberOfTrailingZeros(int)":(n,[e])=>e===0?32:31-Math.clz32(e&-e),"Integer.bitCount(int)":(n,[e])=>dc(e),"Integer.reverse(int)":(n,[e])=>fc(e),"Integer.signum(int)":(n,[e])=>Math.sign(e),"Integer.sum(int,int)":(n,[e,t])=>e+t|0,"Integer.max(int,int)":(n,[e,t])=>Math.max(e,t),"Integer.min(int,int)":(n,[e,t])=>Math.min(e,t),"Long.toString(long,int)":(n,[e,t])=>q(Dn(e).toString(Ys(t))),"Long.toHexString(long)":(n,[e])=>q(dn(e).toString(16)),"Long.toOctalString(long)":(n,[e])=>q(dn(e).toString(8)),"Long.toBinaryString(long)":(n,[e])=>q(dn(e).toString(2)),"Long.toString(long)":(n,[e])=>q(String(e)),"Long.parseLong(String,int)":(n,[e,t])=>h.normLong(He(n,e,t,64)),"Long.parseLong(String)":(n,[e])=>h.normLong(He(n,e,10,64)),"Long.valueOf(String,int)":(n,[e,t])=>n.box("long",h.normLong(He(n,e,t,64))),"Long.valueOf(String)":(n,[e])=>n.box("long",h.normLong(He(n,e,10,64))),"Long.valueOf(long)":(n,[e])=>n.box("long",e),"Long.hashCode(long)":(n,[e])=>_t(e),"Long.compare(long,long)":(n,[e,t])=>Or(e,t),"Long.numberOfLeadingZeros(long)":(n,[e])=>mc(e),"Long.numberOfTrailingZeros(long)":(n,[e])=>gc(e),"Long.bitCount(long)":(n,[e])=>[...dn(e).toString(2)].filter(t=>t==="1").length,"Long.signum(long)":(n,[e])=>Or(e,0),"Long.sum(long,long)":(n,[e,t])=>Lr(Dn(e)+Dn(t)),"Long.max(long,long)":(n,[e,t])=>e>=t?e:t,"Long.min(long,long)":(n,[e,t])=>e<=t?e:t,"Double.toString(double)":(n,[e])=>q(h.doubleToString(e)),"Double.valueOf(String)":(n,[e])=>n.box("double",Di(n,e)),"Double.valueOf(double)":(n,[e])=>n.box("double",e),"Double.parseDouble(String)":(n,[e])=>Di(n,e),"Double.isNaN(double)":(n,[e])=>f(Number.isNaN(e)),"Double.isInfinite(double)":(n,[e])=>f(e===1/0||e===-1/0),"Double.isFinite(double)":(n,[e])=>f(Number.isFinite(e)),"Double.hashCode(double)":(n,[e])=>Ut(e),"Double.compare(double,double)":(n,[e,t])=>Fe(e,t),"Double.sum(double,double)":(n,[e,t])=>e+t,"Double.max(double,double)":(n,[e,t])=>Math.max(e,t),"Double.min(double,double)":(n,[e,t])=>Math.min(e,t),"Float.toString(float)":(n,[e])=>q(h.floatToString(e)),"Float.valueOf(String)":(n,[e])=>n.box("float",Di(n,e,!0)),"Float.valueOf(float)":(n,[e])=>n.box("float",e),"Float.parseFloat(String)":(n,[e])=>Di(n,e,!0),"Float.isNaN(float)":(n,[e])=>f(Number.isNaN(e)),"Float.isInfinite(float)":(n,[e])=>f(e===1/0||e===-1/0),"Float.isFinite(float)":(n,[e])=>f(Number.isFinite(e)),"Float.hashCode(float)":(n,[e])=>h.floatToIntBits(e),"Float.floatToIntBits(float)":(n,[e])=>h.floatToIntBits(e),"Float.floatToRawIntBits(float)":(n,[e])=>Number.isNaN(e)?2143289344:h.floatToIntBits(e),"Float.intBitsToFloat(int)":(n,[e])=>h.intBitsToFloat(e),"Float.compare(float,float)":(n,[e,t])=>Fe(e,t),"Float.sum(float,float)":(n,[e,t])=>Math.fround(e+t),"Float.max(float,float)":(n,[e,t])=>Math.max(e,t),"Float.min(float,float)":(n,[e,t])=>Math.min(e,t),"Byte.toString(byte)":(n,[e])=>q(String(e)),"Byte.valueOf(byte)":(n,[e])=>n.box("byte",e),"Byte.parseByte(String,int)":(n,[e,t])=>ht(n,e,t,8),"Byte.parseByte(String)":(n,[e])=>ht(n,e,10,8),"Byte.valueOf(String,int)":(n,[e,t])=>n.box("byte",ht(n,e,t,8)),"Byte.valueOf(String)":(n,[e])=>n.box("byte",ht(n,e,10,8)),"Byte.hashCode(byte)":(n,[e])=>e,"Byte.compare(byte,byte)":(n,[e,t])=>e-t,"Byte.toUnsignedInt(byte)":(n,[e])=>e&255,"Byte.toUnsignedLong(byte)":(n,[e])=>e&255,"Short.toString(short)":(n,[e])=>q(String(e)),"Short.valueOf(short)":(n,[e])=>n.box("short",e),"Short.parseShort(String,int)":(n,[e,t])=>ht(n,e,t,16),"Short.parseShort(String)":(n,[e])=>ht(n,e,10,16),"Short.valueOf(String,int)":(n,[e,t])=>n.box("short",ht(n,e,t,16)),"Short.valueOf(String)":(n,[e])=>n.box("short",ht(n,e,10,16)),"Short.hashCode(short)":(n,[e])=>e,"Short.compare(short,short)":(n,[e,t])=>e-t,"Short.toUnsignedInt(short)":(n,[e])=>e&65535,"Short.toUnsignedLong(short)":(n,[e])=>e&65535,"Character.valueOf(char)":(n,[e])=>n.box("char",e),"Character.hashCode(char)":(n,[e])=>e,"Character.toString(char)":(n,[e])=>q(String.fromCharCode(e)),"Character.isLowerCase(char)":ee("isLowerCase",Us),"Character.isLowerCase(int)":ee("isLowerCase",Us),"Character.isUpperCase(char)":ee("isUpperCase",_s),"Character.isUpperCase(int)":ee("isUpperCase",_s),"Character.isDigit(char)":ee("isDigit",Ps),"Character.isDigit(int)":ee("isDigit",Ps),"Character.isLetter(char)":ee("isLetter",Js),"Character.isLetter(int)":ee("isLetter",Js),"Character.isLetterOrDigit(char)":ee("isLetterOrDigit",Ks),"Character.isLetterOrDigit(int)":ee("isLetterOrDigit",Ks),"Character.isAlphabetic(int)":ee("isAlphabetic",ac),"Character.isSpaceChar(char)":ee("isSpaceChar",Hs),"Character.isSpaceChar(int)":ee("isSpaceChar",Hs),"Character.isWhitespace(char)":ee("isWhitespace",zs),"Character.isWhitespace(int)":ee("isWhitespace",zs),"Character.toLowerCase(char)":(n,[e])=>Bi(n,e,!1),"Character.toLowerCase(int)":(n,[e])=>Bi(n,e,!1),"Character.toUpperCase(char)":(n,[e])=>Bi(n,e,!0),"Character.toUpperCase(int)":(n,[e])=>Bi(n,e,!0),"Character.digit(char,int)":(n,[e,t])=>qs(n,e,t),"Character.digit(int,int)":(n,[e,t])=>qs(n,e,t),"Character.toChars(int)":(n,[e])=>{let t=e;(t<0||t>1114111)&&n.fail("java.lang.IllegalArgumentException",`Not a valid Unicode code point: 0x${(t>>>0).toString(16).toUpperCase()}`);let i=String.fromCodePoint(t);return n.allocate(i.length),new h.JArray(2,Uint16Array.from({length:i.length},(a,r)=>i.charCodeAt(r)),n.hash(),"[C")},"Character.getNumericValue(char)":(n,[e])=>Ws(n,e),"Character.getNumericValue(int)":(n,[e])=>Ws(n,e),"Character.forDigit(int,int)":(n,[e,t])=>{let i=e,a=t;return a<2||a>36||i<0||i>=a?0:i<10?48+i:87+i},"Character.compare(char,char)":(n,[e,t])=>e-t,"Boolean.parseBoolean(String)":(n,[e])=>f(e!==null&&/^true$/i.test(e.value)),"Boolean.TRUE":n=>n.box("boolean",1),"Boolean.FALSE":n=>n.box("boolean",0),"Boolean.valueOf(boolean)":(n,[e])=>n.box("boolean",e),"Boolean.valueOf(String)":(n,[e])=>n.box("boolean",f(e!==null&&/^true$/i.test(e.value))),"Boolean.toString(boolean)":(n,[e])=>q(e?"true":"false"),"Boolean.hashCode(boolean)":(n,[e])=>e?1231:1237,"Boolean.compare(boolean,boolean)":(n,[e,t])=>e===t?0:e?1:-1,"Boolean.logicalAnd(boolean,boolean)":(n,[e,t])=>f(e===1&&t===1),"Boolean.logicalOr(boolean,boolean)":(n,[e,t])=>f(e===1||t===1),"Boolean.logicalXor(boolean,boolean)":(n,[e,t])=>f(e!==t)},pc={int:"anotherInteger",long:"anotherLong",double:"anotherDouble",char:"anotherCharacter",boolean:"b",float:"anotherFloat",byte:"anotherByte",short:"anotherShort"},Ir=n=>n.kind==="double"||n.kind==="float"?cc(n.value):n.kind==="long"?Number(BigInt.asIntN(32,Dn(n.value))):n.value,Ar={"intValue()":(n,e)=>Ir(e),"longValue()":(n,e)=>e.kind==="double"||e.kind==="float"?hc(e.value):e.value,"doubleValue()":(n,e)=>Number(e.value),"floatValue()":(n,e)=>e.kind==="long"?h.l2f(e.value):Math.fround(Number(e.value)),"byteValue()":(n,e)=>oc(Ir(e)),"shortValue()":(n,e)=>uc(Ir(e)),"charValue()":(n,e)=>e.value,"booleanValue()":(n,e)=>e.value,"isNaN()":(n,e)=>f(Number.isNaN(e.value)),"isInfinite()":(n,e)=>f(e.value===1/0||e.value===-1/0),"toString()":(n,e)=>q(ii(e)),"hashCode()":(n,e)=>zt(e),"equals(Object)":(n,e,[,t])=>f(t instanceof h.JBox&&t.kind===e.kind&&Object.is(t.value,e.value)),compareTo:(n,e,[,t])=>t===null?n.fail(Y,`Cannot read field "value" because "${pc[e.kind]}" is null`):Ht(e,t)};var Mr=["int size()","boolean isEmpty()","boolean contains(Object)","boolean add(E)","boolean remove(Object)","boolean addAll(Collection<? extends E>)","boolean containsAll(Collection<?>)","void clear()","Iterator<E> iterator()","boolean equals(Object)","int hashCode()","Object[] toArray()","<T> T[] toArray(T[])","<T> T[] toArray(IntFunction<T[]>)","boolean removeIf(Predicate<? super E>)","Stream<E> parallelStream()","boolean removeAll(Collection<?>)","boolean retainAll(Collection<?>)","void forEach(Consumer<? super E>)"],Xs=["boolean offer(E)","E poll()","E peek()","E element()","E remove()"],vc=[{decl:"class Class<T>",pkg:"java.lang",members:["String getName()","String getSimpleName()","boolean isInterface()","boolean isArray()"],unsupported:"forName getTypeName getCanonicalName getPackageName getSuperclass getInterfaces getModifiers getMethods getMethod getDeclaredMethods getDeclaredMethod getFields getField getDeclaredFields getDeclaredField getConstructors getConstructor getDeclaredConstructors getDeclaredConstructor isInstance isAssignableFrom isPrimitive isEnum isRecord getEnumConstants cast newInstance getComponentType getClassLoader getResource getResourceAsStream arrayType componentType describeConstable descriptorString isAnnotation getAnnotations getAnnotation desiredAssertionStatus getNestHost isNestmateOf isHidden isSealed getRecordComponents getPermittedSubclasses getDeclaringClass getEnclosingClass isAnonymousClass isLocalClass isMemberClass isSynthetic"},{decl:"interface Comparable<T>",pkg:"java.lang",members:["int compareTo(T)"]},{decl:"interface Comparator<T>",pkg:"java.util",functional:"compare",members:["int compare(T, T)","boolean equals(Object)","Comparator<T> reversed()","Comparator<T> thenComparing(Comparator<? super T>)","<U extends Comparable> Comparator<T> thenComparing(Function<? super T, ? extends U>)","<U> Comparator<T> thenComparing(Function<? super T, ? extends U>, Comparator<? super U>)","Comparator<T> thenComparingInt(ToIntFunction<? super T>)","Comparator<T> thenComparingLong(ToLongFunction<? super T>)","Comparator<T> thenComparingDouble(ToDoubleFunction<? super T>)","static <T, U extends Comparable> Comparator<T> comparing(Function<? super T, ? extends U>)","static <T, U> Comparator<T> comparing(Function<? super T, ? extends U>, Comparator<? super U>)","static <T> Comparator<T> comparingInt(ToIntFunction<? super T>)","static <T> Comparator<T> comparingLong(ToLongFunction<? super T>)","static <T> Comparator<T> comparingDouble(ToDoubleFunction<? super T>)","static <T extends Comparable> Comparator<T> naturalOrder()","static <T extends Comparable> Comparator<T> reverseOrder()","static <T> Comparator<T> nullsFirst(Comparator<? super T>)","static <T> Comparator<T> nullsLast(Comparator<? super T>)"]},{decl:"interface Runnable",pkg:"java.lang",functional:"run",members:["void run()"]},{decl:"interface Function<T, R>",pkg:"java.util.function",functional:"apply",members:["R apply(T)","<V> Function<T, V> andThen(Function<? super R, ? extends V>)","<V> Function<V, R> compose(Function<? super V, ? extends T>)","static <T> Function<T, T> identity()"]},{decl:"interface BiFunction<T, U, R>",pkg:"java.util.function",functional:"apply",members:["R apply(T, U)","<V> BiFunction<T, U, V> andThen(Function<? super R, ? extends V>)"]},{decl:"interface UnaryOperator<T> extends Function<T, T>",pkg:"java.util.function",functional:"apply",members:["static <T> UnaryOperator<T> identity()"]},{decl:"interface BinaryOperator<T> extends BiFunction<T, T, T>",pkg:"java.util.function",functional:"apply",members:["static <T> BinaryOperator<T> minBy(Comparator<? super T>)","static <T> BinaryOperator<T> maxBy(Comparator<? super T>)"]},{decl:"interface Supplier<T>",pkg:"java.util.function",functional:"get",members:["T get()"]},{decl:"interface Consumer<T>",pkg:"java.util.function",functional:"accept",members:["void accept(T)","Consumer<T> andThen(Consumer<? super T>)"]},{decl:"interface BiConsumer<T, U>",pkg:"java.util.function",functional:"accept",members:["void accept(T, U)"],unsupported:"andThen"},{decl:"interface Predicate<T>",pkg:"java.util.function",functional:"test",members:["boolean test(T)","Predicate<T> and(Predicate<? super T>)","Predicate<T> or(Predicate<? super T>)","Predicate<T> negate()","static <T> Predicate<T> not(Predicate<? super T>)","static <T> Predicate<T> isEqual(Object)"]},{decl:"interface BiPredicate<T, U>",pkg:"java.util.function",functional:"test",members:["boolean test(T, U)"],unsupported:"and or negate"},{decl:"interface IntBinaryOperator",pkg:"java.util.function",functional:"applyAsInt",members:["int applyAsInt(int, int)"]},{decl:"interface IntUnaryOperator",pkg:"java.util.function",functional:"applyAsInt",members:["int applyAsInt(int)"],unsupported:"andThen compose identity"},{decl:"interface IntPredicate",pkg:"java.util.function",functional:"test",members:["boolean test(int)"],unsupported:"and or negate"},{decl:"interface IntFunction<R>",pkg:"java.util.function",functional:"apply",members:["R apply(int)"]},{decl:"interface IntConsumer",pkg:"java.util.function",functional:"accept",members:["void accept(int)"],unsupported:"andThen"},{decl:"interface IntSupplier",pkg:"java.util.function",functional:"getAsInt",members:["int getAsInt()"]},{decl:"interface ToIntFunction<T>",pkg:"java.util.function",functional:"applyAsInt",members:["int applyAsInt(T)"]},{decl:"interface ToLongFunction<T>",pkg:"java.util.function",functional:"applyAsLong",members:["long applyAsLong(T)"]},{decl:"interface ToDoubleFunction<T>",pkg:"java.util.function",functional:"applyAsDouble",members:["double applyAsDouble(T)"]},{decl:"interface ToIntBiFunction<T, U>",pkg:"java.util.function",functional:"applyAsInt",members:["int applyAsInt(T, U)"]},{decl:"interface LongBinaryOperator",pkg:"java.util.function",functional:"applyAsLong",members:["long applyAsLong(long, long)"]},{decl:"interface LongUnaryOperator",pkg:"java.util.function",functional:"applyAsLong",members:["long applyAsLong(long)"],unsupported:"andThen compose identity"},{decl:"interface DoubleBinaryOperator",pkg:"java.util.function",functional:"applyAsDouble",members:["double applyAsDouble(double, double)"]},{decl:"interface DoubleUnaryOperator",pkg:"java.util.function",functional:"applyAsDouble",members:["double applyAsDouble(double)"],unsupported:"andThen compose identity"},{decl:"interface BooleanSupplier",pkg:"java.util.function",functional:"getAsBoolean",members:["boolean getAsBoolean()"]},{decl:"interface ObjIntConsumer<T>",pkg:"java.util.function",functional:"accept",members:["void accept(T, int)"]},{decl:"interface Stream<T>",pkg:"java.util.stream",members:["Stream<T> parallel()","Stream<T> sequential()","boolean isParallel()","Stream<T> filter(Predicate<? super T>)","<R> Stream<R> map(Function<? super T, ? extends R>)","IntStream mapToInt(ToIntFunction<? super T>)","LongStream mapToLong(ToLongFunction<? super T>)","DoubleStream mapToDouble(ToDoubleFunction<? super T>)","<R> Stream<R> flatMap(Function<? super T, ? extends Stream<? extends R>>)","IntStream flatMapToInt(Function<? super T, ? extends IntStream>)","Stream<T> distinct()","Stream<T> sorted()","Stream<T> sorted(Comparator<? super T>)","Stream<T> peek(Consumer<? super T>)","Stream<T> limit(long)","Stream<T> skip(long)","Stream<T> takeWhile(Predicate<? super T>)","Stream<T> dropWhile(Predicate<? super T>)","void forEach(Consumer<? super T>)","void forEachOrdered(Consumer<? super T>)","Object[] toArray()","<A> A[] toArray(IntFunction<A[]>)","T reduce(T, BinaryOperator<T>)","Optional<T> reduce(BinaryOperator<T>)","<R, A> R collect(Collector<? super T, A, R>)","!<R> R collect(Supplier<R>, BiConsumer<R, ? super T>, BiConsumer<R, R>)","!<U> U reduce(U, BiFunction<U, ? super T, U>, BinaryOperator<U>)","List<T> toList()","Optional<T> min(Comparator<? super T>)","Optional<T> max(Comparator<? super T>)","long count()","boolean anyMatch(Predicate<? super T>)","boolean allMatch(Predicate<? super T>)","boolean noneMatch(Predicate<? super T>)","Optional<T> findFirst()","Optional<T> findAny()","static <T> Stream<T> of(T)","static <T> Stream<T> of(T...)","static <T> Stream<T> ofNullable(T)","static <T> Stream<T> empty()","static <T> Stream<T> iterate(T, UnaryOperator<T>)","static <T> Stream<T> iterate(T, Predicate<? super T>, UnaryOperator<T>)","static <T> Stream<T> generate(Supplier<? extends T>)","static <T> Stream<T> concat(Stream<? extends T>, Stream<? extends T>)"],unsupported:"unordered onClose close iterator spliterator mapMulti collect flatMapToLong flatMapToDouble"},{decl:"interface IntStream",pkg:"java.util.stream",members:["IntStream parallel()","IntStream sequential()","boolean isParallel()","IntStream filter(IntPredicate)","IntStream map(IntUnaryOperator)","<U> Stream<U> mapToObj(IntFunction<? extends U>)","LongStream mapToLong(IntToLongFunction)","DoubleStream mapToDouble(IntToDoubleFunction)","IntStream flatMap(IntFunction<? extends IntStream>)","IntStream distinct()","IntStream sorted()","IntStream peek(IntConsumer)","IntStream limit(long)","IntStream skip(long)","IntStream takeWhile(IntPredicate)","IntStream dropWhile(IntPredicate)","void forEach(IntConsumer)","void forEachOrdered(IntConsumer)","int[] toArray()","int reduce(int, IntBinaryOperator)","OptionalInt reduce(IntBinaryOperator)","int sum()","OptionalInt min()","OptionalInt max()","long count()","OptionalDouble average()","IntSummaryStatistics summaryStatistics()","boolean anyMatch(IntPredicate)","boolean allMatch(IntPredicate)","boolean noneMatch(IntPredicate)","OptionalInt findFirst()","OptionalInt findAny()","Stream<Integer> boxed()","static IntStream of(int...)","static IntStream empty()","LongStream asLongStream()","DoubleStream asDoubleStream()","static IntStream range(int, int)","static IntStream rangeClosed(int, int)","static IntStream iterate(int, IntUnaryOperator)","static IntStream iterate(int, IntPredicate, IntUnaryOperator)","static IntStream generate(IntSupplier)","static IntStream concat(IntStream, IntStream)"],unsupported:"unordered onClose close iterator spliterator mapMulti collect average"},{decl:"interface LongStream",pkg:"java.util.stream",members:["LongStream parallel()","LongStream sequential()","boolean isParallel()","LongStream filter(LongPredicate)","LongStream map(LongUnaryOperator)","<U> Stream<U> mapToObj(LongFunction<? extends U>)","IntStream mapToInt(LongToIntFunction)","DoubleStream mapToDouble(LongToDoubleFunction)","LongStream flatMap(LongFunction<? extends LongStream>)","LongStream distinct()","LongStream sorted()","LongStream peek(LongConsumer)","LongStream limit(long)","LongStream skip(long)","LongStream takeWhile(LongPredicate)","LongStream dropWhile(LongPredicate)","void forEach(LongConsumer)","void forEachOrdered(LongConsumer)","long[] toArray()","long reduce(long, LongBinaryOperator)","OptionalLong reduce(LongBinaryOperator)","long sum()","OptionalLong min()","OptionalLong max()","long count()","OptionalDouble average()","LongSummaryStatistics summaryStatistics()","boolean anyMatch(LongPredicate)","boolean allMatch(LongPredicate)","boolean noneMatch(LongPredicate)","OptionalLong findFirst()","OptionalLong findAny()","Stream<Long> boxed()","static LongStream of(long...)","static LongStream empty()","DoubleStream asDoubleStream()","static LongStream range(long, long)","static LongStream rangeClosed(long, long)"],unsupported:"unordered onClose close iterator spliterator mapMulti collect iterate generate concat"},{decl:"interface DoubleStream",pkg:"java.util.stream",members:["DoubleStream parallel()","DoubleStream sequential()","boolean isParallel()","DoubleStream filter(DoublePredicate)","DoubleStream map(DoubleUnaryOperator)","<U> Stream<U> mapToObj(DoubleFunction<? extends U>)","IntStream mapToInt(DoubleToIntFunction)","LongStream mapToLong(DoubleToLongFunction)","DoubleStream flatMap(DoubleFunction<? extends DoubleStream>)","DoubleStream distinct()","DoubleStream sorted()","DoubleStream peek(DoubleConsumer)","DoubleStream limit(long)","DoubleStream skip(long)","DoubleStream takeWhile(DoublePredicate)","DoubleStream dropWhile(DoublePredicate)","void forEach(DoubleConsumer)","void forEachOrdered(DoubleConsumer)","double[] toArray()","double reduce(double, DoubleBinaryOperator)","OptionalDouble reduce(DoubleBinaryOperator)","double sum()","OptionalDouble min()","OptionalDouble max()","long count()","OptionalDouble average()","DoubleSummaryStatistics summaryStatistics()","boolean anyMatch(DoublePredicate)","boolean allMatch(DoublePredicate)","boolean noneMatch(DoublePredicate)","OptionalDouble findFirst()","OptionalDouble findAny()","Stream<Double> boxed()","static DoubleStream of(double...)","static DoubleStream empty()"],unsupported:"unordered onClose close iterator spliterator mapMulti collect iterate generate concat"},{decl:"interface Collector<T, A, R>",pkg:"java.util.stream",members:[],unsupported:"supplier accumulator combiner finisher characteristics of"},{decl:"class Collectors",pkg:"java.util.stream",members:["static <T> Collector<T, ?, List<T>> toList()","static <T> Collector<T, ?, List<T>> toUnmodifiableList()","static <T> Collector<T, ?, Set<T>> toSet()","static <T, C extends Collection<T>> Collector<T, ?, C> toCollection(Supplier<C>)","static Collector<String, ?, String> joining()","static Collector<String, ?, String> joining(String)","static Collector<String, ?, String> joining(String, String, String)","static <T, K, U> Collector<T, ?, Map<K, U>> toMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>)","static <T, K, U> Collector<T, ?, Map<K, U>> toMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>, BinaryOperator<U>)","static <T, K, U, M extends Map<K, U>> Collector<T, ?, M> toMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>, BinaryOperator<U>, Supplier<M>)","static <T, K> Collector<T, ?, Map<K, List<T>>> groupingBy(Function<? super T, ? extends K>)","static <T, K, A, D> Collector<T, ?, Map<K, D>> groupingBy(Function<? super T, ? extends K>, Collector<? super T, A, D>)","static <T, K, D, A, M extends Map<K, D>> Collector<T, ?, M> groupingBy(Function<? super T, ? extends K>, Supplier<M>, Collector<? super T, A, D>)","static <T> Collector<T, ?, Map<Boolean, List<T>>> partitioningBy(Predicate<? super T>)","static <T, D, A> Collector<T, ?, Map<Boolean, D>> partitioningBy(Predicate<? super T>, Collector<? super T, A, D>)","static <T> Collector<T, ?, Long> counting()","static <T> Collector<T, ?, Integer> summingInt(ToIntFunction<? super T>)","static <T> Collector<T, ?, Long> summingLong(ToLongFunction<? super T>)","static <T> Collector<T, ?, Double> summingDouble(ToDoubleFunction<? super T>)","static <T> Collector<T, ?, Double> averagingInt(ToIntFunction<? super T>)","static <T> Collector<T, ?, Double> averagingLong(ToLongFunction<? super T>)","static <T> Collector<T, ?, Double> averagingDouble(ToDoubleFunction<? super T>)","static <T> Collector<T, ?, IntSummaryStatistics> summarizingInt(ToIntFunction<? super T>)","static <T> Collector<T, ?, LongSummaryStatistics> summarizingLong(ToLongFunction<? super T>)","static <T> Collector<T, ?, DoubleSummaryStatistics> summarizingDouble(ToDoubleFunction<? super T>)","static <T, U, A, R> Collector<T, ?, R> mapping(Function<? super T, ? extends U>, Collector<? super U, A, R>)","static <T, A, R> Collector<T, ?, R> filtering(Predicate<? super T>, Collector<? super T, A, R>)","static <T, U, A, R> Collector<T, ?, R> flatMapping(Function<? super T, ? extends Stream<? extends U>>, Collector<? super U, A, R>)","static <T, A, R, RR> Collector<T, A, RR> collectingAndThen(Collector<T, A, R>, Function<R, RR>)","static <T, R1, R2, R> Collector<T, ?, R> teeing(Collector<? super T, ?, R1>, Collector<? super T, ?, R2>, BiFunction<? super R1, ? super R2, R>)","static <T> Collector<T, ?, T> reducing(T, BinaryOperator<T>)","static <T, U> Collector<T, ?, U> reducing(U, Function<? super T, ? extends U>, BinaryOperator<U>)","static <T> Collector<T, ?, Optional<T>> reducing(BinaryOperator<T>)","static <T> Collector<T, ?, Optional<T>> minBy(Comparator<? super T>)","static <T> Collector<T, ?, Optional<T>> maxBy(Comparator<? super T>)"],unsupported:"toUnmodifiableSet toUnmodifiableMap toConcurrentMap groupingByConcurrent"},{decl:"class Optional<T>",pkg:"java.util",members:["T get()","boolean isPresent()","boolean isEmpty()","T orElse(T)","T orElseGet(Supplier<? extends T>)","T orElseThrow()","<X extends Throwable> T orElseThrow(Supplier<? extends X>)","void ifPresent(Consumer<? super T>)","void ifPresentOrElse(Consumer<? super T>, Runnable)","<U> Optional<U> map(Function<? super T, ? extends U>)","<U> Optional<U> flatMap(Function<? super T, ? extends Optional<? extends U>>)","Optional<T> filter(Predicate<? super T>)","Optional<T> or(Supplier<? extends Optional<? extends T>>)","Stream<T> stream()","static <T> Optional<T> of(T)","static <T> Optional<T> ofNullable(T)","static <T> Optional<T> empty()"]},{decl:"class OptionalInt",pkg:"java.util",members:["int getAsInt()","boolean isPresent()","boolean isEmpty()","int orElse(int)","int orElseGet(IntSupplier)","int orElseThrow()","void ifPresent(IntConsumer)","IntStream stream()","static OptionalInt of(int)","static OptionalInt empty()"],unsupported:"ifPresentOrElse"},{decl:"class IntSummaryStatistics",pkg:"java.util",members:["IntSummaryStatistics()","long getCount()","long getSum()","int getMin()","int getMax()","double getAverage()","void accept(int)"],unsupported:"combine"},{decl:"class OptionalLong",pkg:"java.util",members:["long getAsLong()","boolean isPresent()","boolean isEmpty()","long orElse(long)","long orElseGet(LongSupplier)","long orElseThrow()","void ifPresent(LongConsumer)","LongStream stream()","static OptionalLong of(long)","static OptionalLong empty()"],unsupported:"ifPresentOrElse"},{decl:"class LongSummaryStatistics",pkg:"java.util",members:["LongSummaryStatistics()","long getCount()","long getSum()","long getMin()","long getMax()","double getAverage()","void accept(long)"],unsupported:"combine"},{decl:"class OptionalDouble",pkg:"java.util",members:["double getAsDouble()","boolean isPresent()","boolean isEmpty()","double orElse(double)","double orElseGet(DoubleSupplier)","double orElseThrow()","void ifPresent(DoubleConsumer)","DoubleStream stream()","static OptionalDouble of(double)","static OptionalDouble empty()"],unsupported:"ifPresentOrElse"},{decl:"class DoubleSummaryStatistics",pkg:"java.util",members:["DoubleSummaryStatistics()","long getCount()","double getSum()","double getMin()","double getMax()","double getAverage()","void accept(double)"],unsupported:"combine"},{decl:"interface LongPredicate",pkg:"java.util.function",functional:"test",members:["boolean test(long)"]},{decl:"interface DoublePredicate",pkg:"java.util.function",functional:"test",members:["boolean test(double)"]},{decl:"interface LongConsumer",pkg:"java.util.function",functional:"accept",members:["void accept(long)"]},{decl:"interface DoubleConsumer",pkg:"java.util.function",functional:"accept",members:["void accept(double)"]},{decl:"interface LongSupplier",pkg:"java.util.function",functional:"getAsLong",members:["long getAsLong()"]},{decl:"interface DoubleSupplier",pkg:"java.util.function",functional:"getAsDouble",members:["double getAsDouble()"]},{decl:"interface LongFunction<R>",pkg:"java.util.function",functional:"apply",members:["R apply(long)"]},{decl:"interface DoubleFunction<R>",pkg:"java.util.function",functional:"apply",members:["R apply(double)"]},{decl:"interface IntToLongFunction",pkg:"java.util.function",functional:"applyAsLong",members:["long applyAsLong(int)"]},{decl:"interface IntToDoubleFunction",pkg:"java.util.function",functional:"applyAsDouble",members:["double applyAsDouble(int)"]},{decl:"interface LongToIntFunction",pkg:"java.util.function",functional:"applyAsInt",members:["int applyAsInt(long)"]},{decl:"interface LongToDoubleFunction",pkg:"java.util.function",functional:"applyAsDouble",members:["double applyAsDouble(long)"]},{decl:"interface DoubleToIntFunction",pkg:"java.util.function",functional:"applyAsInt",members:["int applyAsInt(double)"]},{decl:"interface DoubleToLongFunction",pkg:"java.util.function",functional:"applyAsLong",members:["long applyAsLong(double)"]},{decl:"interface Iterable<E>",pkg:"java.lang",members:["Iterator<E> iterator()","void forEach(Consumer<? super E>)"],unsupported:"spliterator"},{decl:"interface Iterator<E>",pkg:"java.util",members:["boolean hasNext()","E next()","void remove()","void forEachRemaining(Consumer<? super E>)"]},{decl:"interface ListIterator<E> extends Iterator<E>",pkg:"java.util",members:["boolean hasNext()","E next()","boolean hasPrevious()","E previous()","int nextIndex()","int previousIndex()","void remove()","void set(E)","void add(E)","void forEachRemaining(Consumer<? super E>)"]},{decl:"interface Collection<E> extends Iterable<E>",pkg:"java.util",members:[...Mr,"Stream<E> stream()"],unsupported:"spliterator"},{decl:"interface List<E> extends Collection<E>",pkg:"java.util",members:[...Mr,"E get(int)","E set(int, E)","void add(int, E)","E remove(int)","int indexOf(Object)","int lastIndexOf(Object)","E getFirst()","E getLast()","E removeFirst()","E removeLast()","void addFirst(E)","void addLast(E)","void sort(Comparator<? super E>)","!boolean addAll(int, Collection<? extends E>)","static <E> List<E> of(E...)","static <E> List<E> copyOf(Collection<? extends E>)","void replaceAll(UnaryOperator<E>)","List<E> subList(int, int)","ListIterator<E> listIterator()","ListIterator<E> listIterator(int)","List<E> reversed()"]},{decl:"interface Set<E> extends Collection<E>",pkg:"java.util",members:[...Mr,"static <E> Set<E> of(E...)","static <E> Set<E> copyOf(Collection<? extends E>)"]},{decl:"interface Queue<E> extends Collection<E>",pkg:"java.util",members:["boolean add(E)",...Xs]},{decl:"interface Deque<E> extends Queue<E>",pkg:"java.util",members:["void addFirst(E)","void addLast(E)","boolean offerFirst(E)","boolean offerLast(E)","E removeFirst()","E removeLast()","E pollFirst()","E pollLast()","E getFirst()","E getLast()","E peekFirst()","E peekLast()","boolean removeFirstOccurrence(Object)","boolean removeLastOccurrence(Object)","boolean add(E)",...Xs,"boolean addAll(Collection<? extends E>)","void push(E)","E pop()","boolean remove(Object)","boolean contains(Object)","int size()","Iterator<E> iterator()","Iterator<E> descendingIterator()","Deque<E> reversed()"]},{decl:"interface Map<K, V>",pkg:"java.util",members:["int size()","boolean isEmpty()","boolean containsKey(Object)","boolean containsValue(Object)","V get(Object)","V put(K, V)","V remove(Object)","void putAll(Map<? extends K, ? extends V>)","void clear()","boolean equals(Object)","int hashCode()","V getOrDefault(Object, V)","V putIfAbsent(K, V)","boolean remove(Object, Object)","boolean replace(K, V, V)","V replace(K, V)","Set<K> keySet()","Collection<V> values()","Set<Entry<K, V>> entrySet()",...Array.from({length:11},(n,e)=>`static <K, V> Map<K, V> of(${Array.from({length:e},()=>"K, V").join(", ")})`),"static <K, V> Map<K, V> ofEntries(Entry<? extends K, ? extends V>...)","static <K, V> Entry<K, V> entry(K, V)","static <K, V> Map<K, V> copyOf(Map<? extends K, ? extends V>)","void forEach(BiConsumer<? super K, ? super V>)","void replaceAll(BiFunction<? super K, ? super V, ? extends V>)","V computeIfAbsent(K, Function<? super K, ? extends V>)","V computeIfPresent(K, BiFunction<? super K, ? super V, ? extends V>)","V compute(K, BiFunction<? super K, ? super V, ? extends V>)","V merge(K, V, BiFunction<? super V, ? super V, ? extends V>)"]},{decl:"interface Entry<K, V>",pkg:"java.util",binary:"java.util.Map$Entry",members:["K getKey()","V getValue()","V setValue(V)","boolean equals(Object)","int hashCode()","static <K extends Comparable, V> Comparator<Entry<K, V>> comparingByKey()","static <K, V extends Comparable> Comparator<Entry<K, V>> comparingByValue()","static <K, V> Comparator<Entry<K, V>> comparingByKey(Comparator<? super K>)","static <K, V> Comparator<Entry<K, V>> comparingByValue(Comparator<? super V>)"],unsupported:"copyOf"},{decl:"class ArrayList<E> implements List<E>",pkg:"java.util",members:["ArrayList(int)","ArrayList()","ArrayList(Collection<? extends E>)"],unsupported:"trimToSize ensureCapacity clone"},{decl:"class HashSet<E> implements Set<E>",pkg:"java.util",members:["HashSet()","HashSet(Collection<? extends E>)","HashSet(int)","HashSet(int, float)"],unsupported:"clone newHashSet"},{decl:"class LinkedHashSet<E> extends HashSet<E>",pkg:"java.util",members:["LinkedHashSet()","LinkedHashSet(Collection<? extends E>)","LinkedHashSet(int)","LinkedHashSet(int, float)"],unsupported:"newLinkedHashSet reversed addFirst addLast getFirst getLast removeFirst removeLast"},{decl:"class LinkedList<E> implements List<E>, Deque<E>",pkg:"java.util",members:["LinkedList()","LinkedList(Collection<? extends E>)","LinkedList<E> reversed()"],unsupported:"clone spliterator"},{decl:"abstract class AbstractList<E> implements List<E>",pkg:"java.util",members:["AbstractList()","abstract(AbstractList) E get(int)","abstract(AbstractCollection) int size()"]},{decl:"class Vector<E> implements List<E>",pkg:"java.util",members:["Vector()","Vector(int)","Vector(int, int)","Vector(Collection<? extends E>)","int capacity()","E firstElement()","E lastElement()","E elementAt(int)","void setElementAt(E, int)","void insertElementAt(E, int)","void removeElementAt(int)","void addElement(E)","boolean removeElement(Object)","void removeAllElements()","Enumeration<E> elements()","void setSize(int)","void trimToSize()","void ensureCapacity(int)","!int indexOf(Object, int)","!int lastIndexOf(Object, int)"],unsupported:"copyInto clone"},{decl:"class Stack<E> extends Vector<E>",pkg:"java.util",members:["Stack()","E push(E)","E pop()","E peek()","boolean empty()","int search(Object)"]},{decl:"interface Enumeration<E>",pkg:"java.util",members:["boolean hasMoreElements()","E nextElement()","Iterator<E> asIterator()"]},{decl:"interface SortedMap<K, V> extends Map<K, V>",pkg:"java.util",members:["Comparator<K> comparator()","K firstKey()","K lastKey()","SortedMap<K, V> headMap(K)","SortedMap<K, V> tailMap(K)","SortedMap<K, V> subMap(K, K)"],unsupported:"reversed putFirst putLast sequencedKeySet sequencedValues sequencedEntrySet"},{decl:"interface NavigableMap<K, V> extends SortedMap<K, V>",pkg:"java.util",members:["Entry<K, V> lowerEntry(K)","K lowerKey(K)","Entry<K, V> floorEntry(K)","K floorKey(K)","Entry<K, V> ceilingEntry(K)","K ceilingKey(K)","Entry<K, V> higherEntry(K)","K higherKey(K)","Entry<K, V> firstEntry()","Entry<K, V> lastEntry()","Entry<K, V> pollFirstEntry()","Entry<K, V> pollLastEntry()","NavigableMap<K, V> descendingMap()","NavigableSet<K> navigableKeySet()","NavigableSet<K> descendingKeySet()","NavigableMap<K, V> headMap(K, boolean)","NavigableMap<K, V> tailMap(K, boolean)","NavigableMap<K, V> subMap(K, boolean, K, boolean)"]},{decl:"class TreeMap<K, V> implements NavigableMap<K, V>",pkg:"java.util",members:["TreeMap()","TreeMap(Comparator<? super K>)","TreeMap(Map<? extends K, ? extends V>)","TreeMap(SortedMap<K, ? extends V>)"],unsupported:"clone"},{decl:"interface SortedSet<E> extends Set<E>",pkg:"java.util",members:["Comparator<E> comparator()","E first()","E last()","SortedSet<E> headSet(E)","SortedSet<E> tailSet(E)","SortedSet<E> subSet(E, E)"],unsupported:"reversed getFirst getLast removeFirst removeLast addFirst addLast"},{decl:"interface NavigableSet<E> extends SortedSet<E>",pkg:"java.util",members:["E lower(E)","E floor(E)","E ceiling(E)","E higher(E)","E pollFirst()","E pollLast()","NavigableSet<E> descendingSet()","Iterator<E> descendingIterator()","NavigableSet<E> reversed()","NavigableSet<E> headSet(E, boolean)","NavigableSet<E> tailSet(E, boolean)","NavigableSet<E> subSet(E, boolean, E, boolean)"]},{decl:"class TreeSet<E> implements NavigableSet<E>",pkg:"java.util",members:["TreeSet()","TreeSet(Comparator<? super E>)","TreeSet(Collection<? extends E>)","TreeSet(SortedSet<E>)"],unsupported:"clone"},{decl:"class EnumMap<K, V> implements Map<K, V>",pkg:"java.util",members:["EnumMap(Class<K>)","EnumMap(EnumMap<K, ? extends V>)","EnumMap(Map<K, ? extends V>)"],unsupported:"clone"},{decl:"class EnumSet<E> implements Set<E>",pkg:"java.util",members:["static <E> EnumSet<E> noneOf(Class<E>)","static <E> EnumSet<E> allOf(Class<E>)","static <E> EnumSet<E> of(E)","static <E> EnumSet<E> of(E, E)","static <E> EnumSet<E> of(E, E, E)","static <E> EnumSet<E> of(E, E, E, E)","static <E> EnumSet<E> of(E, E, E, E, E)","static <E> EnumSet<E> of(E, E...)","static <E> EnumSet<E> range(E, E)","static <E> EnumSet<E> complementOf(EnumSet<E>)","static <E> EnumSet<E> copyOf(EnumSet<E>)","static <E> EnumSet<E> copyOf(Collection<E>)","EnumSet<E> clone()"]},{decl:"class ArrayDeque<E> implements Deque<E>",pkg:"java.util",members:["ArrayDeque()","ArrayDeque(int)","ArrayDeque(Collection<? extends E>)"],unsupported:"clone"},{decl:"class PriorityQueue<E> implements Queue<E>",pkg:"java.util",members:["PriorityQueue()","PriorityQueue(int)","PriorityQueue(Comparator<? super E>)","PriorityQueue(int, Comparator<? super E>)","PriorityQueue(Collection<? extends E>)"],unsupported:"comparator"},{decl:"class HashMap<K, V> implements Map<K, V>",pkg:"java.util",members:["HashMap(int)","HashMap()","HashMap(Map<? extends K, ? extends V>)","HashMap(int, float)"],unsupported:"clone newHashMap"},{decl:"class Dictionary<K, V>",pkg:"java.util",members:["int size()","boolean isEmpty()","Enumeration<K> keys()","Enumeration<V> elements()","V get(Object)","V put(K, V)","V remove(Object)"]},{decl:"class Hashtable<K, V> extends Dictionary<K, V> implements Map<K, V>",pkg:"java.util",members:["Hashtable()","Hashtable(int)","Hashtable(int, float)","Hashtable(Map<? extends K, ? extends V>)","boolean contains(Object)"],unsupported:"clone rehash"},{decl:"class LinkedHashMap<K, V> extends HashMap<K, V>",pkg:"java.util",members:["LinkedHashMap(int)","LinkedHashMap()","LinkedHashMap(Map<? extends K, ? extends V>)","LinkedHashMap(int, float)","LinkedHashMap(int, float, boolean)","protected boolean removeEldestEntry(Entry<K, V>)"],unsupported:"newLinkedHashMap reversed sequencedKeySet sequencedValues sequencedEntrySet firstEntry lastEntry pollFirstEntry pollLastEntry putFirst putLast"},{decl:"class Arrays",pkg:"java.util",members:["static boolean deepEquals(Object[], Object[])","static int deepHashCode(Object[])","static IntStream stream(int[])","static IntStream stream(int[], int, int)","static LongStream stream(long[])","static DoubleStream stream(double[])","static <T> Stream<T> stream(T[])","static <T> Stream<T> stream(T[], int, int)","static void sort(int[])","static void sort(int[], int, int)","static void sort(long[])","static void sort(long[], int, int)","static void sort(short[])","static void sort(short[], int, int)","static void sort(char[])","static void sort(char[], int, int)","static void sort(byte[])","static void sort(byte[], int, int)","static void sort(float[])","static void sort(float[], int, int)","static void sort(double[])","static void sort(double[], int, int)","static void sort(Object[])","static void sort(Object[], int, int)","static <T> void sort(T[], Comparator<? super T>)","static <T> void sort(T[], int, int, Comparator<? super T>)","static int binarySearch(long[], long)","static int binarySearch(long[], int, int, long)","static int binarySearch(int[], int)","static int binarySearch(int[], int, int, int)","static int binarySearch(short[], short)","static int binarySearch(short[], int, int, short)","static int binarySearch(char[], char)","static int binarySearch(char[], int, int, char)","static int binarySearch(byte[], byte)","static int binarySearch(byte[], int, int, byte)","static int binarySearch(double[], double)","static int binarySearch(double[], int, int, double)","static int binarySearch(float[], float)","static int binarySearch(float[], int, int, float)","static int binarySearch(Object[], Object)","static int binarySearch(Object[], int, int, Object)","static boolean equals(long[], long[])","static boolean equals(int[], int[])","static boolean equals(short[], short[])","static boolean equals(char[], char[])","static boolean equals(byte[], byte[])","static boolean equals(boolean[], boolean[])","static boolean equals(double[], double[])","static boolean equals(float[], float[])","static boolean equals(Object[], Object[])","static void fill(long[], long)","static void fill(long[], int, int, long)","static void fill(int[], int)","static void fill(int[], int, int, int)","static void fill(short[], short)","static void fill(short[], int, int, short)","static void fill(char[], char)","static void fill(char[], int, int, char)","static void fill(byte[], byte)","static void fill(byte[], int, int, byte)","static void fill(boolean[], boolean)","static void fill(boolean[], int, int, boolean)","static void fill(double[], double)","static void fill(double[], int, int, double)","static void fill(float[], float)","static void fill(float[], int, int, float)","static void fill(Object[], Object)","static void fill(Object[], int, int, Object)","static <T> T[] copyOf(T[], int)","static byte[] copyOf(byte[], int)","static short[] copyOf(short[], int)","static int[] copyOf(int[], int)","static long[] copyOf(long[], int)","static char[] copyOf(char[], int)","static float[] copyOf(float[], int)","static double[] copyOf(double[], int)","static boolean[] copyOf(boolean[], int)","static <T> T[] copyOfRange(T[], int, int)","static byte[] copyOfRange(byte[], int, int)","static short[] copyOfRange(short[], int, int)","static int[] copyOfRange(int[], int, int)","static long[] copyOfRange(long[], int, int)","static char[] copyOfRange(char[], int, int)","static float[] copyOfRange(float[], int, int)","static double[] copyOfRange(double[], int, int)","static boolean[] copyOfRange(boolean[], int, int)","static int hashCode(long[])","static int hashCode(int[])","static int hashCode(short[])","static int hashCode(char[])","static int hashCode(byte[])","static int hashCode(boolean[])","static int hashCode(float[])","static int hashCode(double[])","static int hashCode(Object[])","static String toString(long[])","static String toString(int[])","static String toString(short[])","static String toString(char[])","static String toString(byte[])","static String toString(boolean[])","static String toString(float[])","static String toString(double[])","static String toString(Object[])","static String deepToString(Object[])","static <T> List<T> asList(T...)"],unsupported:"stream setAll parallelSort parallelPrefix parallelSetAll mismatch compare spliterator"},{decl:"class BigInteger extends Number, Comparable<BigInteger>",pkg:"java.math",fields:["BigInteger ZERO","BigInteger ONE","BigInteger TWO","BigInteger TEN"],members:["BigInteger(String)","BigInteger(String, int)","static BigInteger valueOf(long)","BigInteger add(BigInteger)","BigInteger subtract(BigInteger)","BigInteger multiply(BigInteger)","BigInteger divide(BigInteger)","BigInteger remainder(BigInteger)","BigInteger[] divideAndRemainder(BigInteger)","BigInteger mod(BigInteger)","BigInteger pow(int)","BigInteger modPow(BigInteger, BigInteger)","BigInteger modInverse(BigInteger)","BigInteger gcd(BigInteger)","BigInteger abs()","BigInteger negate()","int signum()","int compareTo(BigInteger)","BigInteger max(BigInteger)","BigInteger min(BigInteger)","BigInteger sqrt()","byte byteValue()","short shortValue()","int intValue()","long longValue()","float floatValue()","double doubleValue()","int intValueExact()","long longValueExact()","String toString()","String toString(int)","int hashCode()","boolean equals(Object)","int bitLength()","int bitCount()","boolean testBit(int)","BigInteger setBit(int)","BigInteger clearBit(int)","BigInteger flipBit(int)","int getLowestSetBit()","BigInteger shiftLeft(int)","BigInteger shiftRight(int)","BigInteger and(BigInteger)","BigInteger or(BigInteger)","BigInteger xor(BigInteger)","BigInteger not()","BigInteger andNot(BigInteger)","boolean isProbablePrime(int)","BigInteger nextProbablePrime()"],unsupported:"probablePrime toByteArray sqrtAndRemainder shortValueExact byteValueExact parallelMultiply"},{decl:"class RoundingMode implements Comparable<RoundingMode>",pkg:"java.math",isEnum:!0,fields:["RoundingMode UP","RoundingMode DOWN","RoundingMode CEILING","RoundingMode FLOOR","RoundingMode HALF_UP","RoundingMode HALF_DOWN","RoundingMode HALF_EVEN","RoundingMode UNNECESSARY"],members:["static RoundingMode[] values()","static RoundingMode valueOf(String)","String name()","int ordinal()","int compareTo(RoundingMode)","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"getDeclaringClass describeConstable"},{decl:"class MathContext",pkg:"java.math",fields:["MathContext UNLIMITED","MathContext DECIMAL32","MathContext DECIMAL64","MathContext DECIMAL128"],members:["MathContext(int)","MathContext(int, RoundingMode)","int getPrecision()","RoundingMode getRoundingMode()","String toString()","boolean equals(Object)","int hashCode()"]},{decl:"class BigDecimal extends Number, Comparable<BigDecimal>",pkg:"java.math",fields:["BigDecimal ZERO","BigDecimal ONE","BigDecimal TWO","BigDecimal TEN"],members:["BigDecimal(String)","BigDecimal(double)","BigDecimal(int)","BigDecimal(long)","BigDecimal(BigInteger)","BigDecimal(BigInteger, int)","static BigDecimal valueOf(long)","static BigDecimal valueOf(long, int)","static BigDecimal valueOf(double)","BigDecimal add(BigDecimal)","BigDecimal subtract(BigDecimal)","BigDecimal multiply(BigDecimal)","BigDecimal divide(BigDecimal)","BigDecimal divide(BigDecimal, int, RoundingMode)","BigDecimal divide(BigDecimal, RoundingMode)","BigDecimal divide(BigDecimal, MathContext)","BigDecimal divideToIntegralValue(BigDecimal)","BigDecimal remainder(BigDecimal)","BigDecimal setScale(int, RoundingMode)","BigDecimal setScale(int)","BigDecimal round(MathContext)","BigDecimal sqrt(MathContext)","BigDecimal pow(int)","BigDecimal negate()","BigDecimal abs()","BigDecimal plus()","int signum()","int scale()","int precision()","BigInteger unscaledValue()","int compareTo(BigDecimal)","BigDecimal max(BigDecimal)","BigDecimal min(BigDecimal)","BigDecimal movePointLeft(int)","BigDecimal movePointRight(int)","BigDecimal scaleByPowerOfTen(int)","BigDecimal stripTrailingZeros()","String toString()","String toPlainString()","BigInteger toBigInteger()","BigInteger toBigIntegerExact()","byte byteValue()","short shortValue()","int intValue()","long longValue()","float floatValue()","double doubleValue()","int intValueExact()","long longValueExact()","int hashCode()","boolean equals(Object)","!BigDecimal add(BigDecimal, MathContext)","!BigDecimal subtract(BigDecimal, MathContext)","!BigDecimal multiply(BigDecimal, MathContext)","!BigDecimal pow(int, MathContext)","!BigDecimal abs(MathContext)","!BigDecimal negate(MathContext)","!BigDecimal plus(MathContext)","!BigDecimal remainder(BigDecimal, MathContext)"],unsupported:"toEngineeringString ulp divideAndRemainder byteValueExact shortValueExact"},{decl:"class Collections",pkg:"java.util",members:["static <T extends Comparable<? super T>> void sort(List<T>)","static <T> void sort(List<T>, Comparator<? super T>)","static <T> int binarySearch(List<? extends Comparable<? super T>>, T)","static boolean disjoint(Collection<?>, Collection<?>)","static <T> int binarySearch(List<? extends T>, T, Comparator<? super T>)","static void reverse(List<?>)","static void swap(List<?>, int, int)","static <T extends Object & Comparable<? super T>> T max(Collection<? extends T>)","static <T> T max(Collection<? extends T>, Comparator<? super T>)","static <T extends Object & Comparable<? super T>> T min(Collection<? extends T>)","static <T> T min(Collection<? extends T>, Comparator<? super T>)","static int frequency(Collection<?>, Object)","static <T> List<T> nCopies(int, T)","static <T> List<T> emptyList()","static <T> Set<T> emptySet()","static <K, V> Map<K, V> emptyMap()","static <T> List<T> singletonList(T)","static <T> Set<T> singleton(T)","static <K, V> Map<K, V> singletonMap(K, V)","static <T> List<T> unmodifiableList(List<? extends T>)","static <T> Set<T> unmodifiableSet(Set<? extends T>)","static <T> Collection<T> unmodifiableCollection(Collection<? extends T>)","static <K, V> Map<K, V> unmodifiableMap(Map<? extends K, ? extends V>)","static <T> boolean addAll(Collection<? super T>, T...)","static <T> void fill(List<? super T>, T)","static void shuffle(List<?>)","static void shuffle(List<?>, Random)","static <T> Comparator<T> reverseOrder()","static <T> Comparator<T> reverseOrder(Comparator<T>)"],unsupported:"copy rotate replaceAll indexOfSubList lastIndexOfSubList synchronizedList synchronizedMap checkedList emptyIterator enumeration list newSetFromMap asLifoQueue"},{decl:"class StringBuilder",pkg:"java.lang",members:["StringBuilder()","StringBuilder(int)","StringBuilder(String)","int compareTo(StringBuilder)","StringBuilder append(Object)","StringBuilder append(String)","StringBuilder append(StringBuffer)","StringBuilder append(CharSequence)","StringBuilder append(CharSequence, int, int)","StringBuilder append(char[])","StringBuilder append(char[], int, int)","StringBuilder append(boolean)","StringBuilder append(char)","StringBuilder append(int)","StringBuilder append(long)","StringBuilder append(float)","StringBuilder append(double)","StringBuilder delete(int, int)","StringBuilder deleteCharAt(int)","StringBuilder replace(int, int, String)","StringBuilder insert(int, Object)","StringBuilder insert(int, String)","StringBuilder insert(int, char[])","StringBuilder insert(int, boolean)","StringBuilder insert(int, char)","StringBuilder insert(int, int)","StringBuilder insert(int, long)","StringBuilder insert(int, float)","StringBuilder insert(int, double)","int indexOf(String)","int indexOf(String, int)","int lastIndexOf(String)","int lastIndexOf(String, int)","StringBuilder reverse()","String toString()","int length()","char charAt(int)","void setCharAt(int, char)","void setLength(int)","String substring(int)","String substring(int, int)","boolean isEmpty()","int capacity()","void ensureCapacity(int)","void trimToSize()"],unsupported:"codePointAt codePointBefore codePointCount offsetByCodePoints getChars subSequence appendCodePoint repeat chars codePoints"},{decl:"class StringBuffer",pkg:"java.lang",members:["StringBuffer()","StringBuffer(int)","StringBuffer(String)","int compareTo(StringBuffer)","StringBuffer append(Object)","StringBuffer append(String)","StringBuffer append(StringBuffer)","StringBuffer append(CharSequence)","StringBuffer append(CharSequence, int, int)","StringBuffer append(char[])","StringBuffer append(char[], int, int)","StringBuffer append(boolean)","StringBuffer append(char)","StringBuffer append(int)","StringBuffer append(long)","StringBuffer append(float)","StringBuffer append(double)","StringBuffer delete(int, int)","StringBuffer deleteCharAt(int)","StringBuffer replace(int, int, String)","StringBuffer insert(int, Object)","StringBuffer insert(int, String)","StringBuffer insert(int, char[])","StringBuffer insert(int, boolean)","StringBuffer insert(int, char)","StringBuffer insert(int, int)","StringBuffer insert(int, long)","StringBuffer insert(int, float)","StringBuffer insert(int, double)","int indexOf(String)","int indexOf(String, int)","int lastIndexOf(String)","int lastIndexOf(String, int)","StringBuffer reverse()","String toString()","int length()","char charAt(int)","void setCharAt(int, char)","void setLength(int)","String substring(int)","String substring(int, int)","boolean isEmpty()","int capacity()","void ensureCapacity(int)","void trimToSize()"],unsupported:"codePointAt codePointBefore codePointCount offsetByCodePoints getChars subSequence appendCodePoint repeat chars codePoints"},{decl:"class Number",pkg:"java.lang",members:["int intValue()","long longValue()","float floatValue()","double doubleValue()","byte byteValue()","short shortValue()"]},{decl:"class Integer extends Number",pkg:"java.lang",box:"int",members:["Integer(int)","Integer(String)","static String toString(int, int)","static String toHexString(int)","static String toOctalString(int)","static String toBinaryString(int)","static String toString(int)","static int parseInt(String, int)","static int parseInt(String)","static Integer valueOf(String, int)","static Integer valueOf(String)","static Integer valueOf(int)","byte byteValue()","short shortValue()","int intValue()","long longValue()","float floatValue()","double doubleValue()","String toString()","int hashCode()","static int hashCode(int)","boolean equals(Object)","int compareTo(Integer)","static int compare(int, int)","static int highestOneBit(int)","static int numberOfLeadingZeros(int)","static int numberOfTrailingZeros(int)","static int bitCount(int)","static int reverse(int)","static int signum(int)","static int sum(int, int)","static int max(int, int)","static int min(int, int)"],unsupported:"toUnsignedString parseUnsignedInt decode getInteger compareUnsigned toUnsignedLong divideUnsigned remainderUnsigned lowestOneBit rotateLeft rotateRight reverseBytes compress expand describeConstable resolveConstantDesc"},{decl:"class Long extends Number",pkg:"java.lang",box:"long",members:["Long(long)","Long(String)","static String toString(long, int)","static String toHexString(long)","static String toOctalString(long)","static String toBinaryString(long)","static String toString(long)","static long parseLong(String, int)","static long parseLong(String)","static Long valueOf(String, int)","static Long valueOf(String)","static Long valueOf(long)","byte byteValue()","short shortValue()","int intValue()","long longValue()","float floatValue()","double doubleValue()","String toString()","int hashCode()","static int hashCode(long)","boolean equals(Object)","int compareTo(Long)","static int compare(long, long)","static int numberOfLeadingZeros(long)","static int numberOfTrailingZeros(long)","static int bitCount(long)","static int signum(long)","static long sum(long, long)","static long max(long, long)","static long min(long, long)"],unsupported:"toUnsignedString parseUnsignedLong decode getLong compareUnsigned divideUnsigned remainderUnsigned highestOneBit lowestOneBit rotateLeft rotateRight reverse reverseBytes compress expand describeConstable resolveConstantDesc"},{decl:"class Double extends Number",pkg:"java.lang",box:"double",members:["Double(double)","Double(String)","static String toString(double)","static Double valueOf(String)","static Double valueOf(double)","static double parseDouble(String)","static boolean isNaN(double)","static boolean isInfinite(double)","static boolean isFinite(double)","boolean isNaN()","boolean isInfinite()","String toString()","byte byteValue()","short shortValue()","int intValue()","long longValue()","float floatValue()","double doubleValue()","int hashCode()","static int hashCode(double)","boolean equals(Object)","static int compare(double, double)","int compareTo(Double)","static double sum(double, double)","static double max(double, double)","static double min(double, double)"],unsupported:"toHexString doubleToLongBits doubleToRawLongBits longBitsToDouble describeConstable resolveConstantDesc"},{decl:"class Float extends Number",pkg:"java.lang",box:"float",members:["Float(float)","Float(double)","Float(String)","static String toString(float)","static Float valueOf(String)","static Float valueOf(float)","static float parseFloat(String)","static boolean isNaN(float)","static boolean isInfinite(float)","static boolean isFinite(float)","boolean isNaN()","boolean isInfinite()","String toString()","byte byteValue()","short shortValue()","int intValue()","long longValue()","float floatValue()","double doubleValue()","int hashCode()","static int hashCode(float)","boolean equals(Object)","static int floatToIntBits(float)","static int floatToRawIntBits(float)","static float intBitsToFloat(int)","int compareTo(Float)","static int compare(float, float)","static float sum(float, float)","static float max(float, float)","static float min(float, float)"],unsupported:"toHexString float16ToFloat floatToFloat16 describeConstable resolveConstantDesc"},{decl:"class Byte extends Number",pkg:"java.lang",box:"byte",members:["Byte(byte)","Byte(String)","static String toString(byte)","static Byte valueOf(byte)","static byte parseByte(String, int)","static byte parseByte(String)","static Byte valueOf(String, int)","static Byte valueOf(String)","byte byteValue()","short shortValue()","int intValue()","long longValue()","float floatValue()","double doubleValue()","String toString()","int hashCode()","static int hashCode(byte)","boolean equals(Object)","int compareTo(Byte)","static int compare(byte, byte)","static int toUnsignedInt(byte)","static long toUnsignedLong(byte)"],unsupported:"decode compareUnsigned describeConstable"},{decl:"class Short extends Number",pkg:"java.lang",box:"short",members:["Short(short)","Short(String)","static String toString(short)","static short parseShort(String, int)","static short parseShort(String)","static Short valueOf(String, int)","static Short valueOf(String)","static Short valueOf(short)","byte byteValue()","short shortValue()","int intValue()","long longValue()","float floatValue()","double doubleValue()","String toString()","int hashCode()","static int hashCode(short)","boolean equals(Object)","int compareTo(Short)","static int compare(short, short)","static int toUnsignedInt(short)","static long toUnsignedLong(short)"],unsupported:"decode compareUnsigned reverseBytes describeConstable"},{decl:"class Character",pkg:"java.lang",box:"char",members:["Character(char)","static char[] toChars(int)","static Character valueOf(char)","char charValue()","int hashCode()","static int hashCode(char)","boolean equals(Object)","String toString()","static String toString(char)","static boolean isLowerCase(char)","static boolean isLowerCase(int)","static boolean isUpperCase(char)","static boolean isUpperCase(int)","static boolean isDigit(char)","static boolean isDigit(int)","static boolean isLetter(char)","static boolean isLetter(int)","static boolean isLetterOrDigit(char)","static boolean isLetterOrDigit(int)","static boolean isAlphabetic(int)","static char toLowerCase(char)","static int toLowerCase(int)","static char toUpperCase(char)","static int toUpperCase(int)","static int digit(char, int)","static int digit(int, int)","static int getNumericValue(char)","static int getNumericValue(int)","static boolean isSpaceChar(char)","static boolean isSpaceChar(int)","static boolean isWhitespace(char)","static boolean isWhitespace(int)","static char forDigit(int, int)","int compareTo(Character)","static int compare(char, char)"],unsupported:"isValidCodePoint isBmpCodePoint isSupplementaryCodePoint isHighSurrogate isLowSurrogate isSurrogate isSurrogatePair charCount toCodePoint codePointAt codePointBefore highSurrogate lowSurrogate codePointCount offsetByCodePoints isTitleCase isDefined isIdeographic isJavaIdentifierStart isJavaIdentifierPart isUnicodeIdentifierStart isUnicodeIdentifierPart isIdentifierIgnorable isEmoji isEmojiPresentation isEmojiModifier isEmojiModifierBase isEmojiComponent isExtendedPictographic toTitleCase getType isISOControl isMirrored getDirectionality reverseBytes getName codePointOf isJavaLetter isJavaLetterOrDigit isSpace describeConstable"},{decl:"class Boolean",pkg:"java.lang",box:"boolean",fields:["Boolean TRUE","Boolean FALSE"],members:["Boolean(boolean)","Boolean(String)","static boolean parseBoolean(String)","boolean booleanValue()","static Boolean valueOf(boolean)","static Boolean valueOf(String)","static String toString(boolean)","String toString()","int hashCode()","static int hashCode(boolean)","boolean equals(Object)","int compareTo(Boolean)","static int compare(boolean, boolean)","static boolean logicalAnd(boolean, boolean)","static boolean logicalOr(boolean, boolean)","static boolean logicalXor(boolean, boolean)"],unsupported:"getBoolean describeConstable"},{decl:"class StringJoiner",pkg:"java.util",members:["StringJoiner(String)","StringJoiner(String, String, String)","StringJoiner add(String)","StringJoiner merge(StringJoiner)","StringJoiner setEmptyValue(String)","int length()","String toString()"]},{decl:"class Pattern",pkg:"java.util.regex",members:["static Pattern compile(String)","static Pattern compile(String, int)","static boolean matches(String, String)","static String quote(String)","Matcher matcher(String)","String pattern()","String toString()","int flags()","String[] split(String)","String[] split(String, int)"],unsupported:"asPredicate asMatchPredicate splitAsStream splitWithDelimiters namedGroups"},{decl:"interface MatchResult",pkg:"java.util.regex",members:["String group()","String group(int)","String group(String)","int start()","int start(int)","int start(String)","int end()","int end(int)","int end(String)","int groupCount()"],unsupported:"hasMatch namedGroups"},{decl:"class Matcher implements MatchResult",pkg:"java.util.regex",members:["boolean matches()","boolean lookingAt()","boolean find()","boolean find(int)","Matcher reset()","Matcher reset(String)","Pattern pattern()","MatchResult toMatchResult()","String replaceAll(String)","String replaceAll(Function<MatchResult, String>)","String replaceFirst(String)","Matcher appendReplacement(StringBuilder, String)","Matcher appendReplacement(StringBuffer, String)","StringBuilder appendTail(StringBuilder)","StringBuffer appendTail(StringBuffer)","Stream<MatchResult> results()"],unsupported:"region regionStart regionEnd hitEnd requireEnd usePattern useAnchoringBounds useTransparentBounds hasAnchoringBounds hasTransparentBounds quoteReplacement"},{decl:"class BitSet",pkg:"java.util",members:["BitSet()","BitSet(int)","static BitSet valueOf(long[])","!static BitSet valueOf(byte[])","boolean get(int)","BitSet get(int, int)","void set(int)","void set(int, boolean)","void set(int, int)","void set(int, int, boolean)","void clear(int)","void clear(int, int)","void clear()","void flip(int)","void flip(int, int)","int length()","int size()","boolean isEmpty()","int cardinality()","int nextSetBit(int)","int nextClearBit(int)","int previousSetBit(int)","int previousClearBit(int)","void and(BitSet)","void or(BitSet)","void xor(BitSet)","void andNot(BitSet)","boolean intersects(BitSet)","Object clone()","long[] toLongArray()","IntStream stream()","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"toByteArray"},{decl:"interface TemporalAccessor",pkg:"java.time.temporal",members:[],unsupported:"isSupported range get getLong query"},{decl:"interface Temporal extends TemporalAccessor",pkg:"java.time.temporal",members:[],unsupported:"with plus minus until isSupported"},{decl:"interface TemporalAmount",pkg:"java.time.temporal",members:[],unsupported:"get getUnits addTo subtractFrom"},{decl:"interface TemporalUnit",pkg:"java.time.temporal",members:[],unsupported:"getDuration isDurationEstimated isDateBased isTimeBased isSupportedBy addTo between"},{decl:"class DayOfWeek implements Comparable<DayOfWeek>",pkg:"java.time",isEnum:!0,fields:["DayOfWeek MONDAY","DayOfWeek TUESDAY","DayOfWeek WEDNESDAY","DayOfWeek THURSDAY","DayOfWeek FRIDAY","DayOfWeek SATURDAY","DayOfWeek SUNDAY"],members:["static DayOfWeek[] values()","static DayOfWeek valueOf(String)","static DayOfWeek of(int)","int getValue()","DayOfWeek plus(long)","DayOfWeek minus(long)","String name()","int ordinal()","int compareTo(DayOfWeek)","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"getDisplayName from getDeclaringClass describeConstable"},{decl:"class Month implements Comparable<Month>",pkg:"java.time",isEnum:!0,fields:["Month JANUARY","Month FEBRUARY","Month MARCH","Month APRIL","Month MAY","Month JUNE","Month JULY","Month AUGUST","Month SEPTEMBER","Month OCTOBER","Month NOVEMBER","Month DECEMBER"],members:["static Month[] values()","static Month valueOf(String)","static Month of(int)","int getValue()","Month plus(long)","Month minus(long)","int length(boolean)","int maxLength()","int minLength()","String name()","int ordinal()","int compareTo(Month)","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"getDisplayName from firstDayOfYear firstMonthOfQuarter getDeclaringClass describeConstable"},{decl:"class ChronoUnit implements Comparable<ChronoUnit>, TemporalUnit",pkg:"java.time.temporal",isEnum:!0,fields:["ChronoUnit NANOS","ChronoUnit MICROS","ChronoUnit MILLIS","ChronoUnit SECONDS","ChronoUnit MINUTES","ChronoUnit HOURS","ChronoUnit HALF_DAYS","ChronoUnit DAYS","ChronoUnit WEEKS","ChronoUnit MONTHS","ChronoUnit YEARS","ChronoUnit DECADES","ChronoUnit CENTURIES","ChronoUnit MILLENNIA","ChronoUnit ERAS","ChronoUnit FOREVER"],members:["static ChronoUnit[] values()","static ChronoUnit valueOf(String)","long between(Temporal, Temporal)","String name()","int ordinal()","int compareTo(ChronoUnit)","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"getDuration isDurationEstimated isDateBased isTimeBased isSupportedBy addTo getDeclaringClass describeConstable"},{decl:"class LocalDate implements Temporal, Comparable<LocalDate>",pkg:"java.time",fields:["LocalDate MIN","LocalDate MAX","LocalDate EPOCH"],members:["static LocalDate of(int, int, int)","static LocalDate of(int, Month, int)","static LocalDate ofEpochDay(long)","static LocalDate ofYearDay(int, int)","static LocalDate parse(String)","static LocalDate parse(String, DateTimeFormatter)","static LocalDate now()","int getYear()","int getMonthValue()","Month getMonth()","int getDayOfMonth()","int getDayOfYear()","DayOfWeek getDayOfWeek()","boolean isLeapYear()","int lengthOfMonth()","int lengthOfYear()","long toEpochDay()","LocalDate plusDays(long)","LocalDate minusDays(long)","LocalDate plusWeeks(long)","LocalDate minusWeeks(long)","LocalDate plusMonths(long)","LocalDate minusMonths(long)","LocalDate plusYears(long)","LocalDate minusYears(long)","LocalDate plus(TemporalAmount)","LocalDate plus(long, TemporalUnit)","LocalDate minus(TemporalAmount)","LocalDate minus(long, TemporalUnit)","LocalDate withDayOfMonth(int)","LocalDate withMonth(int)","LocalDate withYear(int)","LocalDate withDayOfYear(int)","boolean isBefore(LocalDate)","boolean isAfter(LocalDate)","boolean isEqual(LocalDate)","int compareTo(LocalDate)","long until(Temporal, TemporalUnit)","Period until(LocalDate)","String format(DateTimeFormatter)","Stream<LocalDate> datesUntil(LocalDate)","LocalDateTime atTime(int, int)","LocalDateTime atTime(int, int, int)","LocalDateTime atTime(int, int, int, int)","LocalDateTime atTime(LocalTime)","LocalDateTime atStartOfDay()","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"get getLong with range query adjustInto isSupported getChronology getEra toEpochSecond ofInstant from"},{decl:"class LocalTime implements Temporal, Comparable<LocalTime>",pkg:"java.time",fields:["LocalTime MIN","LocalTime MAX","LocalTime MIDNIGHT","LocalTime NOON"],members:["static LocalTime of(int, int)","static LocalTime of(int, int, int)","static LocalTime of(int, int, int, int)","static LocalTime ofSecondOfDay(long)","static LocalTime ofNanoOfDay(long)","static LocalTime parse(CharSequence)","static LocalTime parse(CharSequence, DateTimeFormatter)","static LocalTime now()","int getHour()","int getMinute()","int getSecond()","int getNano()","int toSecondOfDay()","long toNanoOfDay()","LocalTime plusHours(long)","LocalTime plusMinutes(long)","LocalTime plusSeconds(long)","LocalTime plusNanos(long)","LocalTime minusHours(long)","LocalTime minusMinutes(long)","LocalTime minusSeconds(long)","LocalTime minusNanos(long)","LocalTime plus(TemporalAmount)","LocalTime plus(long, TemporalUnit)","LocalTime minus(TemporalAmount)","LocalTime minus(long, TemporalUnit)","LocalTime withHour(int)","LocalTime withMinute(int)","LocalTime withSecond(int)","LocalTime withNano(int)","LocalTime truncatedTo(TemporalUnit)","boolean isBefore(LocalTime)","boolean isAfter(LocalTime)","int compareTo(LocalTime)","long until(Temporal, TemporalUnit)","LocalDateTime atDate(LocalDate)","String format(DateTimeFormatter)","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"get getLong with range query adjustInto isSupported atOffset toEpochSecond ofInstant from"},{decl:"class LocalDateTime implements Temporal, Comparable<LocalDateTime>",pkg:"java.time",fields:["LocalDateTime MIN","LocalDateTime MAX"],members:["static LocalDateTime of(int, Month, int, int, int)","static LocalDateTime of(int, Month, int, int, int, int)","static LocalDateTime of(int, Month, int, int, int, int, int)","static LocalDateTime of(int, int, int, int, int)","static LocalDateTime of(int, int, int, int, int, int)","static LocalDateTime of(int, int, int, int, int, int, int)","static LocalDateTime of(LocalDate, LocalTime)","static LocalDateTime parse(CharSequence)","static LocalDateTime parse(CharSequence, DateTimeFormatter)","static LocalDateTime now()","LocalDate toLocalDate()","LocalTime toLocalTime()","int getYear()","int getMonthValue()","Month getMonth()","int getDayOfMonth()","int getDayOfYear()","DayOfWeek getDayOfWeek()","int getHour()","int getMinute()","int getSecond()","int getNano()","LocalDateTime plusYears(long)","LocalDateTime plusMonths(long)","LocalDateTime plusWeeks(long)","LocalDateTime plusDays(long)","LocalDateTime plusHours(long)","LocalDateTime plusMinutes(long)","LocalDateTime plusSeconds(long)","LocalDateTime plusNanos(long)","LocalDateTime minusYears(long)","LocalDateTime minusMonths(long)","LocalDateTime minusWeeks(long)","LocalDateTime minusDays(long)","LocalDateTime minusHours(long)","LocalDateTime minusMinutes(long)","LocalDateTime minusSeconds(long)","LocalDateTime minusNanos(long)","LocalDateTime plus(TemporalAmount)","LocalDateTime plus(long, TemporalUnit)","LocalDateTime minus(TemporalAmount)","LocalDateTime minus(long, TemporalUnit)","LocalDateTime withYear(int)","LocalDateTime withMonth(int)","LocalDateTime withDayOfMonth(int)","LocalDateTime withDayOfYear(int)","LocalDateTime withHour(int)","LocalDateTime withMinute(int)","LocalDateTime withSecond(int)","LocalDateTime withNano(int)","LocalDateTime truncatedTo(TemporalUnit)","boolean isBefore(LocalDateTime)","boolean isAfter(LocalDateTime)","boolean isEqual(LocalDateTime)","int compareTo(LocalDateTime)","long until(Temporal, TemporalUnit)","String format(DateTimeFormatter)","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"get getLong with range query adjustInto isSupported atOffset atZone toEpochSecond toInstant ofInstant ofEpochSecond from getChronology"},{decl:"class Duration implements TemporalAmount, Comparable<Duration>",pkg:"java.time",fields:["Duration ZERO"],members:["static Duration ofDays(long)","static Duration ofHours(long)","static Duration ofMinutes(long)","static Duration ofSeconds(long)","static Duration ofSeconds(long, long)","static Duration ofMillis(long)","static Duration ofNanos(long)","static Duration of(long, TemporalUnit)","static Duration between(Temporal, Temporal)","static Duration parse(CharSequence)","long getSeconds()","int getNano()","boolean isZero()","boolean isNegative()","boolean isPositive()","Duration plus(Duration)","Duration minus(Duration)","Duration plus(long, TemporalUnit)","Duration minus(long, TemporalUnit)","Duration plusDays(long)","Duration plusHours(long)","Duration plusMinutes(long)","Duration plusSeconds(long)","Duration plusMillis(long)","Duration plusNanos(long)","Duration minusDays(long)","Duration minusHours(long)","Duration minusMinutes(long)","Duration minusSeconds(long)","Duration minusMillis(long)","Duration minusNanos(long)","Duration multipliedBy(long)","Duration dividedBy(long)","long dividedBy(Duration)","Duration negated()","Duration abs()","Duration withSeconds(long)","Duration withNanos(int)","Duration truncatedTo(TemporalUnit)","long toDays()","long toHours()","long toMinutes()","long toSeconds()","long toMillis()","long toNanos()","long toDaysPart()","int toHoursPart()","int toMinutesPart()","int toSecondsPart()","int toMillisPart()","int toNanosPart()","int compareTo(Duration)","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"from get getUnits addTo subtractFrom"},{decl:"class Period implements TemporalAmount",pkg:"java.time",fields:["Period ZERO"],members:["static Period of(int, int, int)","static Period ofDays(int)","static Period ofWeeks(int)","static Period ofMonths(int)","static Period ofYears(int)","static Period between(LocalDate, LocalDate)","int getYears()","int getMonths()","int getDays()","long toTotalMonths()","boolean isZero()","boolean isNegative()","Period normalized()","Period negated()","Period multipliedBy(int)","Period plusDays(long)","Period plusMonths(long)","Period plusYears(long)","String toString()","boolean equals(Object)","int hashCode()"],unsupported:"parse from withDays withMonths withYears minusDays minusMonths minusYears plus minus addTo subtractFrom getUnits get getChronology"},{decl:"class DateTimeFormatter",pkg:"java.time.format",fields:["DateTimeFormatter ISO_LOCAL_DATE","DateTimeFormatter ISO_DATE","DateTimeFormatter ISO_LOCAL_TIME","DateTimeFormatter ISO_LOCAL_DATE_TIME"],members:["static DateTimeFormatter ofPattern(String)","String format(TemporalAccessor)"],unsupported:"ofLocalizedDate ofLocalizedTime ofLocalizedDateTime withLocale withZone parse withResolverStyle toFormat getLocale"},{decl:"class Random",pkg:"java.util",members:["Random()","Random(long)","void setSeed(long)","int nextInt()","int nextInt(int)","int nextInt(int, int)","long nextLong()","long nextLong(long)","long nextLong(long, long)","boolean nextBoolean()","double nextDouble()","double nextDouble(double)","double nextDouble(double, double)","float nextFloat()","double nextGaussian()","!double nextGaussian(double, double)"],unsupported:"nextBytes nextExponential ints longs doubles from isDeprecated"}],bc=[{decl:"class String",pkg:"java.lang",fields:["Comparator<String> CASE_INSENSITIVE_ORDER"],members:["String()","String(String)","String(char[])","String(char[], int, int)","String(StringBuilder)","boolean equalsIgnoreCase(String)","int compareToIgnoreCase(String)","boolean startsWith(String, int)","boolean startsWith(String)","boolean endsWith(String)","int hashCode()","int indexOf(int)","int indexOf(int, int)","!int indexOf(int, int, int)","int lastIndexOf(int)","int lastIndexOf(int, int)","int indexOf(String)","int indexOf(String, int)","!int indexOf(String, int, int)","int lastIndexOf(String)","int lastIndexOf(String, int)","String substring(int)","String substring(int, int)","String concat(String)","String replace(char, char)","boolean matches(String)","boolean contains(String)","String replaceFirst(String, String)","String replaceAll(String, String)","String replace(String, String)","String[] split(String, int)","String[] split(String)","static String join(String, String...)","static String join(String, Iterable<? extends String>)","String toLowerCase()","String toUpperCase()","IntStream chars()","String trim()","String intern()","String strip()","String stripLeading()","String stripTrailing()","boolean isBlank()","String toString()","static String format(String, Object...)","String formatted(Object...)","static String valueOf(Object)","static String valueOf(char[])","static String valueOf(char[], int, int)","static String copyValueOf(char[])","static String valueOf(boolean)","static String valueOf(char)","static String valueOf(int)","static String valueOf(long)","static String valueOf(float)","static String valueOf(double)","String repeat(int)","Stream<String> lines()","String stripIndent()","String translateEscapes()","String indent(int)","int codePointAt(int)","byte[] getBytes()","!byte[] getBytes(String)","<R> R transform(Function<? super String, ? extends R>)"],unsupported:"codePoints codePointBefore codePointCount offsetByCodePoints getChars describeConstable resolveConstantDesc contentEquals regionMatches subSequence getClass wait notify notifyAll splitWithDelimiters"},{decl:"class Math",pkg:"java.lang",members:["static double sin(double)","static double cos(double)","static double tan(double)","static double asin(double)","static double acos(double)","static double atan(double)","static double toRadians(double)","static double toDegrees(double)","static double exp(double)","static double log(double)","static double log10(double)","static double cbrt(double)","static double rint(double)","static double atan2(double, double)","static double pow(double, double)","static double random()","static int addExact(int, int)","static long addExact(long, long)","static int subtractExact(int, int)","static long subtractExact(long, long)","static int multiplyExact(int, int)","static long multiplyExact(long, int)","static long multiplyExact(long, long)","static int incrementExact(int)","static long incrementExact(long)","static int decrementExact(int)","static long decrementExact(long)","static int negateExact(int)","static long negateExact(long)","static int toIntExact(long)","static int floorDiv(int, int)","static long floorDiv(long, int)","static long floorDiv(long, long)","static int floorMod(int, int)","static int floorMod(long, int)","static long floorMod(long, long)","static int ceilDiv(int, int)","static long ceilDiv(long, int)","static long ceilDiv(long, long)","static int ceilMod(int, int)","static int ceilMod(long, int)","static long ceilMod(long, long)","static int absExact(int)","static long absExact(long)","static int clamp(long, int, int)","static long clamp(long, long, long)","static double clamp(double, double, double)","static float clamp(float, float, float)","static double ulp(double)","static float ulp(float)","static double signum(double)","static float signum(float)","static double sinh(double)","static double cosh(double)","static double tanh(double)","static double hypot(double, double)","static double expm1(double)","static double log1p(double)","static double nextUp(double)","static float nextUp(float)","static double nextDown(double)","static float nextDown(float)"],unsupported:"IEEEremainder fma copySign getExponent nextAfter scalb multiplyHigh unsignedMultiplyHigh multiplyFull floorDivExact ceilDivExact divideExact"},{decl:"class System",pkg:"java.lang",members:["static long currentTimeMillis()","static long nanoTime()","static void arraycopy(Object, int, Object, int, int)","static int identityHashCode(Object)","static String lineSeparator()","static void exit(int)"],unsupported:"getProperty getProperties setProperty clearProperty getenv gc setOut setErr setIn console inheritedChannel getLogger load loadLibrary mapLibraryName runFinalization"},{decl:"class Objects",pkg:"java.util",members:["static boolean equals(Object, Object)","static int hashCode(Object)","static int hash(Object...)","static String toString(Object)","static String toString(Object, String)","static boolean isNull(Object)","static boolean nonNull(Object)","static <T> T requireNonNull(T)","static <T> T requireNonNull(T, String)","static <T> T requireNonNullElse(T, T)","static int checkIndex(int, int)","static <T> int compare(T, T, Comparator<? super T>)"],unsupported:"deepEquals requireNonNullElseGet checkFromToIndex checkFromIndexSize toIdentityString"},{decl:"class InputStream",pkg:"java.io",members:[],unsupported:"read available close skip skipNBytes mark reset markSupported readAllBytes readNBytes transferTo nullInputStream"},{decl:"class Scanner",pkg:"java.util",closeable:!0,members:["Scanner(InputStream)","Scanner(String)","void close()","boolean hasNext()","String next()","boolean hasNextBoolean()","boolean nextBoolean()","boolean hasNextInt()","!boolean hasNextInt(int)","int nextInt()","!int nextInt(int)","boolean hasNextLong()","!boolean hasNextLong(int)","long nextLong()","!long nextLong(int)","boolean hasNextDouble()","double nextDouble()","boolean hasNextFloat()","float nextFloat()","boolean hasNextByte()","!boolean hasNextByte(int)","byte nextByte()","!byte nextByte(int)","boolean hasNextBigInteger()","BigInteger nextBigInteger()","boolean hasNextBigDecimal()","BigDecimal nextBigDecimal()","boolean hasNextShort()","!boolean hasNextShort(int)","short nextShort()","!short nextShort(int)","boolean hasNextLine()","String nextLine()"],unsupported:"useDelimiter delimiter findInLine findWithinHorizon skip match useLocale locale useRadix radix reset tokens findAll ioException remove forEachRemaining"},{decl:"interface CharSequence",pkg:"java.lang",members:[],unsupported:"length charAt subSequence chars codePoints isEmpty compare"},{decl:"class OutputStream",pkg:"java.io",members:[],unsupported:"write flush close nullOutputStream"},{decl:"class Reader",pkg:"java.io",closeable:!0,members:["int read() throws IOException","int read(char[]) throws IOException","int read(char[], int, int) throws IOException","boolean ready() throws IOException","long skip(long) throws IOException","void close() throws IOException"],unsupported:"mark reset markSupported transferTo nullReader of"},{decl:"class InputStreamReader extends Reader",pkg:"java.io",members:["InputStreamReader(InputStream)","!InputStreamReader(InputStream, String)"],unsupported:"getEncoding"},{decl:"class StringReader extends Reader",pkg:"java.io",members:["StringReader(String)"]},{decl:"class BufferedReader extends Reader",pkg:"java.io",members:["BufferedReader(Reader)","BufferedReader(Reader, int)","String readLine() throws IOException","Stream<String> lines()"]},{decl:"class Writer",pkg:"java.io",closeable:!0,members:["void write(int) throws IOException","void write(char[]) throws IOException","void write(char[], int, int) throws IOException","void write(String) throws IOException","void write(String, int, int) throws IOException","Writer append(CharSequence) throws IOException","Writer append(CharSequence, int, int) throws IOException","Writer append(char) throws IOException","void flush() throws IOException","void close() throws IOException"],unsupported:"nullWriter"},{decl:"class OutputStreamWriter extends Writer",pkg:"java.io",members:["OutputStreamWriter(OutputStream)","!OutputStreamWriter(OutputStream, String)"],unsupported:"getEncoding"},{decl:"class BufferedWriter extends Writer",pkg:"java.io",members:["BufferedWriter(Writer)","BufferedWriter(Writer, int)","void newLine() throws IOException"]},{decl:"class StringWriter extends Writer",pkg:"java.io",members:["StringWriter()","StringWriter(int)","void write(int)","void write(char[], int, int)","void write(String)","void write(String, int, int)","StringWriter append(CharSequence)","StringWriter append(CharSequence, int, int)","StringWriter append(char)","void flush()","String toString()"],unsupported:"getBuffer"},{decl:"class PrintWriter extends Writer",pkg:"java.io",members:["PrintWriter(Writer)","PrintWriter(Writer, boolean)","PrintWriter(OutputStream)","PrintWriter(OutputStream, boolean)","!PrintWriter(String)",...["boolean","char","int","long","float","double","char[]","String","Object"].map(n=>`void print(${n})`),"void println()",...["boolean","char","int","long","float","double","char[]","String","Object"].map(n=>`void println(${n})`),"PrintWriter printf(String, Object...)","PrintWriter format(String, Object...)","void write(int)","void write(char[])","void write(char[], int, int)","void write(String)","void write(String, int, int)","PrintWriter append(CharSequence)","PrintWriter append(CharSequence, int, int)","PrintWriter append(char)","void flush()","void close()","boolean checkError()"]},{decl:"class StreamTokenizer",pkg:"java.io",members:["StreamTokenizer(Reader)","int nextToken() throws IOException","void pushBack()","int lineno()","String toString()","void resetSyntax()","void wordChars(int, int)","void whitespaceChars(int, int)","void ordinaryChars(int, int)","void ordinaryChar(int)","void commentChar(int)","void quoteChar(int)","void parseNumbers()","void eolIsSignificant(boolean)","void lowerCaseMode(boolean)"],unsupported:"slashStarComments slashSlashComments",instanceFields:["int ttype","double nval","String sval"]},{decl:"class StringTokenizer",pkg:"java.util",members:["StringTokenizer(String)","StringTokenizer(String, String)","StringTokenizer(String, String, boolean)","boolean hasMoreTokens()","String nextToken()","String nextToken(String)","boolean hasMoreElements()","Object nextElement()","int countTokens()"],unsupported:"asIterator"}],Nc=["boolean equals(Object)","int hashCode()","String toString()"],Qs={int:{tag:"int"},long:{tag:"long"},double:{tag:"double"},char:{tag:"char"},boolean:{tag:"boolean"},void:{tag:"void"},float:{tag:"float"},byte:{tag:"byte"},short:{tag:"short"},String:{tag:"string"},Object:{tag:"object"}},ft=class{#e;#t;#n;#i=0;varargs=!1;constructor(e,t,i){this.#e=e,this.#t=t,this.#n=i}get done(){return this.#a(),this.#i>=this.#e.length}#a(){for(;this.#e[this.#i]===" ";)this.#i++}peek(){return this.#a(),this.#e[this.#i]??""}expect(e){if(this.peek()!==e)throw new Error(`library signature: expected \'${e}\' in ${this.#e}`);this.#i++}word(){this.#a();let e=this.#i;for(;/[\\w<>]/.test(this.#e[this.#i]??"")&&this.#e[this.#i]!=="<"&&this.#e[this.#i]!==">";)this.#i++;return this.#e.slice(e,this.#i)}type(){if(this.peek()==="?"){if(this.#i++,this.peek()==="e"||this.peek()==="s"){let i=this.word()==="super";return{tag:"wildcard",bound:this.type(),isSuper:i}}return{tag:"wildcard",bound:null}}let e=this.word(),t;if(Qs[e])t=Qs[e];else if(this.#t.includes(e))t={tag:"typevar",name:e};else{let i=this.#n.get(e);if(!i)throw new Error(`library signature: unknown type ${e}`);let a=[];if(this.peek()==="<"){for(this.#i++,a.push(this.type());this.peek()===",";)this.#i++,a.push(this.type());this.expect(">")}t={tag:"library",symbol:i,args:a}}for(;this.peek()==="[";)this.#i++,this.expect("]"),t={tag:"array",element:t};return this.#e.startsWith("...",this.#i)&&(this.#i+=3,this.varargs=!0,t={tag:"array",element:t}),t}};function Fi(n,e,t){switch(n.tag){case"typevar":{let i=e.indexOf(n.name);return i>=0&&t[i]?t[i]:n}case"array":return{tag:"array",element:Fi(n.element,e,t)};case"library":return{tag:"library",symbol:n.symbol,args:n.args.map(i=>Fi(i,e,t))};case"wildcard":return n.bound?{tag:"wildcard",bound:Fi(n.bound,e,t),...n.isSuper?{isSuper:!0}:{}}:n;default:return n}}function Gi(n){switch(n.tag){case"typevar":return n.name;case"library":return n.symbol.name;case"array":return`${Gi(n.element)}[]`;case"string":return"String";case"object":return"Object";default:return n.tag}}function yc(n){let e=0,t=1,i=[];for(let a=0;a<n.length;a++){let r=n[a];if(r==="<")e++;else{if(r===">"&&--e===0)return i.push(n.slice(t,a).trim()),[n.slice(0,a+2),i];r===","&&e===1&&(i.push(n.slice(t,a).trim()),t=a+1)}}throw new Error(`library signature: unclosed type parameters in ${n}`)}function eo(n,e,t){let i=n.startsWith("!"),a=n.indexOf(" throws "),r=a>=0?n.slice(a+8).split(", ").map(bt=>Cc[bt]+"."+bt):null;a>=0&&(n=n.slice(0,a));let l=i?n.slice(1):n,s=l.startsWith("protected ");s&&(l=l.slice(10));let o=/^abstract\\((\\w+)\\) /.exec(l)?.[1];o&&(l=l.slice(l.indexOf(") ")+2));let c=l.startsWith("static "),d=c?l.slice(7):l,m=d.startsWith("<")?yc(d):null;m&&(d=d.slice(m[0].length));let v=m?m[1]:[],C=v.map(bt=>bt.split(" ")[0]),k=[...e.typeParams,...C],Xe=d.indexOf("("),Z=d.slice(0,Xe).trim(),me=Z===e.name,Gl=Z.lastIndexOf(" "),Jl=me?"<init>":Z.slice(Gl+1),Ou=me?{tag:"void"}:new ft(Z.slice(0,Gl),k,t).type(),Gt=new ft(d.slice(Xe+1,d.lastIndexOf(")")),k,t),ti=[];if(!Gt.done)for(ti.push(Gt.type());Gt.peek()===",";)Gt.expect(","),ti.push(Gt.type());let Pl=`${Jl}(${ti.map(Gi).join(",")})`,Iu=i?"":c||me?`${e.name}.${Pl}`:Pl,$e={name:Jl,params:ti,returnType:Ou,isStatic:c,native:Iu,owner:e.name};if(Gt.varargs&&($e.varargs=!0),s&&($e.isProtected=!0),o&&($e.abstractIn=o),r&&($e.throws=r),m){$e.typeParams=C;let bt=v.filter(Sn=>/^(Object & )?Comparable/.test(Sn.split(" extends ")[1]??"")).map(Sn=>Sn.split(" ")[0]);bt.length&&($e.comparableParams=bt);for(let Sn of v){let[Kl,Nt]=Sn.split(" extends ");if(Nt?.includes(" & ")){($e.typeParamShown??={})[Kl]=Nt.split(" & ").join(",");continue}!Nt||Nt==="Comparable"||Nt==="Throwable"||!Nt.includes("<")||(($e.typeParamBounds??={})[Kl]=new ft(Nt,k,t).type())}}return{method:$e,isConstructor:me}}var Cc={IOException:"java.io"},to=(n,e)=>n.name===e.name&&n.params.length===e.params.length&&n.params.every((t,i)=>Gi(t)===Gi(e.params[i]));function no(){let n=new Map,e=[...vc,...bc].map(t=>{let[,i,a,r,l=""]=/^(abstract )?(interface|class) (\\w+)(?:<([^>]*)>)?/.exec(t.decl),s={name:r,qualifiedName:t.binary??`${t.pkg}.${r}`,packageName:t.pkg,typeParams:l?l.split(",").map(o=>o.trim()):[],supertypes:[],constructors:[],methods:[],unsupported:new Set(t.unsupported?.split(" ")??[]),isInterface:a==="interface",...i?{isAbstract:!0}:{},...t.box?{box:t.box}:{},...t.functional?{functional:t.functional}:{}};return n.set(s.name,s),{spec:t,symbol:s}});for(let{spec:t,symbol:i}of e){let a=/(?:extends|implements) (.*)$/.exec(t.decl)?.[1]?.replace(" implements ",", ");if(a){let o=new ft(a,i.typeParams,n);for(i.supertypes.push(o.type());o.peek()===",";)o.expect(","),i.supertypes.push(o.type())}for(let o of t.fields??[]){let c=o.lastIndexOf(" ");(i.staticFields??={})[o.slice(c+1)]=new ft(o.slice(0,c),i.typeParams,n).type()}t.isEnum&&(i.enumConstants=(t.fields??[]).map(o=>o.slice(o.lastIndexOf(" ")+1)));for(let o of t.instanceFields??[]){let c=o.lastIndexOf(" ");(i.instanceFields??={})[o.slice(c+1)]=new ft(o.slice(0,c),i.typeParams,n).type()}(t.closeable||i.supertypes.some(o=>o.tag==="library"&&o.symbol.closeable))&&(i.closeable=!0);let r=[];for(let o of t.members){let{method:c,isConstructor:d}=eo(o,i,n);(d?i.constructors:r).push(c)}let l=[...r],s=i.unsupported;for(let o of i.supertypes)if(o.tag==="library"){for(let c of o.symbol.methods){if(c.isStatic&&o.symbol.isInterface)continue;let d=o.symbol.typeParams.map(C=>c.typeParams?.includes(C)?"":C),m=C=>Fi(C,d,o.args),v=o.args.length?{...c,params:c.params.map(m),returnType:m(c.returnType)}:c;l.some(C=>to(C,v))||l.push(i.isInterface?v:{...v,owner:i.name})}for(let c of o.symbol.unsupported)s.add(c)}if(!i.supertypes.length)for(let o of Nc){let{method:c}=eo(o,i,n);l.some(d=>to(d,c))||l.push(i.isInterface?{...c,owner:"Object"}:c)}i.methods.push(...l)}return n}var Sc=[{module:"java-library-time",file:"time.ts",exported:"TIME_NATIVES",classes:["LocalDate","LocalTime","LocalDateTime","Duration","DayOfWeek","Month","Period","DateTimeFormatter","ChronoUnit"]},{module:"java-library-math",file:"bigmath.ts",exported:"BIGMATH_NATIVES",classes:["BigInteger","BigDecimal","MathContext","RoundingMode"],natives:["nextBigInteger()","nextBigDecimal()"]},{module:"java-library-regex",file:"matcher.ts",exported:"PATTERN_STATICS",classes:["Pattern","Matcher","MatchResult"]},{module:"java-library-bitset",file:"bitset.ts",exported:"BITSET_NATIVES",classes:["BitSet"]}],io="javaOnlineCompilerLibrary";var ao="javaOnlineCompilerLibraryShared";function ro(n){let e=n.indexOf("."),t=n.indexOf("("),i=e>0&&(t<0||e<t)?n.slice(0,e):null;return Sc.find(a=>i!==null&&a.classes.includes(i)||a.natives?.includes(n))}var Wr={};xn(Wr,{STRING_METHODS:()=>Jn,STRING_STATICS:()=>qr,splitLines:()=>Wi,splitWith:()=>Vo});var uo=(n,e)=>n instanceof p&&n.className===`java.math.${e}`,Br=/%(\\d+\\$|<)?([-#+ 0,(]*)?(\\d+)?(\\.\\d+)?([tT])?([a-zA-Z%])/y;function be(n,e,t){return n.fail(`java.util.${e}`,t)}function $r(n){return n instanceof h.JString?"java.lang.String":n instanceof h.JBox?yt[n.kind]:Oe(n)}function Ee(n,e,t){return e===void 0||n.length>=e?n:t?n+" ".repeat(e-n.length):" ".repeat(e-n.length)+n}function lo(n){return n.replace(/\\B(?=(\\d{3})+(?!\\d))/g,",")}function Gr(n){if(typeof n!="number")return n;if(n===0)return{digits:"0",point:1};let[e,t]=Math.abs(n).toExponential().split("e");return{digits:e.replace(".","").replace(/0+$/,"")||"0",point:Number(t)+1}}function xc(n,e){if(n===0n)return{digits:"0",point:1};let t=(n<0n?-n:n).toString();return{digits:t.replace(/0+$/,""),point:t.length-e}}function Jr(n,e,t){let i=e+t;if(i<0)return{digits:"0",point:1};if(n.length<=i)return{digits:n,point:e};let a=n.slice(0,i).split("").map(Number);if(Number(n[i])>=5){let r=a.length-1;for(;r>=0;r--)if(a[r]===9)a[r]=0;else{a[r]++;break}r<0&&(a.unshift(1),e++)}return{digits:a.join("")||"0",point:e}}function wt(n,e){let t=Gr(n),{digits:i,point:a}=Jr(t.digits,t.point,e),r=a<=0?"0".repeat(1-a)+i:i.padEnd(a,"0"),l=Math.max(a,1),s=r.slice(0,l).replace(/^0+(?=\\d)/,"")||"0",o=r.slice(l).padEnd(e,"0").slice(0,e);return e?`${s}.${o}`:s}function Fr(n,e,t){let{digits:i,point:a}=Gr(n),r=Jr(i,1,e),l=a-1+(r.point-1),s=r.digits.padEnd(e+1,"0"),o=e?`${s[0]}.${s.slice(1,e+1)}`:s[0],c=`${l<0?"-":"+"}${String(Math.abs(l)).padStart(2,"0")}`;return`${o}${t?"E":"e"}${c}`}function so(n,e,t){let i=e===0?1:e;if(n===0||typeof n!="number"&&n.digits==="0")return wt(0,i-1);let{digits:a,point:r}=Gr(n),s=Jr(a,r,i-r).point-1;return s>=-4&&s<i?wt(n,Math.max(i-(s+1),0)):Fr(n,i-1,t)}function mt(n,e,t){for(let i of e.flags)t.includes(i)||be(n,"FormatFlagsConversionMismatchException",`Conversion = ${e.conversion}, Flags = ${i}`);(e.flags.includes("-")||e.flags.includes("0"))&&e.width===void 0&&be(n,"MissingFormatWidthException",e.text),e.flags.includes("-")&&e.flags.includes("0")&&be(n,"IllegalFormatFlagsException",`Flags = \'${e.flags}\'`),e.flags.includes("+")&&e.flags.includes(" ")&&be(n,"IllegalFormatFlagsException",`Flags = \'${e.flags}\'`)}function Dr(n,e){e.precision!==void 0&&be(n,"IllegalFormatPrecisionException",String(e.precision))}function Ji(n,e,t){let i=n.flags;if(i.includes(",")){let l=t.indexOf(".");t=l<0?lo(t):lo(t.slice(0,l))+t.slice(l)}let a="",r="";if(e?i.includes("(")?(a="(",r=")"):a="-":i.includes("+")?a="+":i.includes(" ")&&(a=" "),i.includes("0")&&n.width!==void 0){let l=n.width-a.length-r.length-t.length;l>0&&(t="0".repeat(l)+t)}return Ee(a+t+r,n.width,i.includes("-"))}function oo(n,e,t){if(t===null)return null;let i={int:32,long:64,byte:8,short:16},a=t instanceof h.JBox?i[t.kind]:void 0;return a!==void 0?{value:BigInt(t.value),bits:a}:uo(t,"BigInteger")?{value:t.v,bits:0}:be(n,"IllegalFormatConversionException",`${e.conversion} != ${$r(t)}`)}function*Vc(n,e,t){let i=e.flags.includes("-"),a=e.conversion===e.conversion.toUpperCase();switch(e.conversion.toLowerCase()){case"b":{mt(n,e,"-");let r=t===null?"false":t instanceof h.JBox&&t.kind==="boolean"?t.value?"true":"false":"true";return e.precision!==void 0&&(r=r.slice(0,e.precision)),Ee(a?r.toUpperCase():r,e.width,i)}case"h":{mt(n,e,"-");let r=t===null?"null":((yield*j(n,t))>>>0).toString(16);return e.precision!==void 0&&(r=r.slice(0,e.precision)),Ee(a?r.toUpperCase():r,e.width,i)}case"s":{mt(n,e,"-");let r=yield*x(n,t);return e.precision!==void 0&&(r=r.slice(0,e.precision)),Ee(a?r.toUpperCase():r,e.width,i)}case"c":{if(mt(n,e,"-"),Dr(n,e),t===null)return Ee(a?"NULL":"null",e.width,i);let r;if(t instanceof h.JBox&&t.kind==="char")r=t.value;else if(t instanceof h.JBox&&(t.kind==="int"||t.kind==="byte"||t.kind==="short"))r=t.value,(r<0||r>1114111)&&be(n,"IllegalFormatCodePointException",`Code point = 0x${(r>>>0).toString(16)}`);else return be(n,"IllegalFormatConversionException",`c != ${$r(t)}`);let l=String.fromCodePoint(r);return Ee(a?l.toUpperCase():l,e.width,i)}case"d":{mt(n,e,"-+ 0,("),Dr(n,e);let r=oo(n,e,t);return r?Ji(e,r.value<0n,(r.value<0n?-r.value:r.value).toString()):Ee("null",e.width,i)}case"o":case"x":{mt(n,e,"-#0"),Dr(n,e);let r=oo(n,e,t);if(!r)return Ee("null",e.width,i);let l=e.conversion.toLowerCase()==="o"?8:16,s=r.bits===0&&r.value<0n,o=(r.bits===0?s?-r.value:r.value:BigInt.asUintN(r.bits,r.value)).toString(l);return e.flags.includes("#")&&(o=(l===8?"0":"0x")+o),a&&(o=o.toUpperCase()),Ji({...e,flags:e.flags.replace("#","")},s,o)}case"e":case"f":case"g":{let r=e.conversion.toLowerCase();if(mt(n,e,r==="e"?"-#+ 0(":"-#+ 0,("),t===null)return Ee("null",e.width,i);if(uo(t,"BigDecimal")){let{u:d,scale:m}=t,v=xc(d,m),C=e.precision??6,k=r==="f"?wt(v,C):r==="e"?Fr(v,C,a):so(v,C,a);return a&&(k=k.toUpperCase()),Ji(e,d<0n,k)}if(!(t instanceof h.JBox&&(t.kind==="double"||t.kind==="float")))return be(n,"IllegalFormatConversionException",`${e.conversion} != ${$r(t)}`);let l=t.value;if(!Number.isFinite(l)){let d=Number.isNaN(l)?"NaN":l>0?e.flags.includes("+")?"+Infinity":"Infinity":e.flags.includes("(")?"(Infinity)":"-Infinity";return Ee(a?d.toUpperCase():d,e.width,i)}let s=e.precision??6,o=Math.abs(l),c=r==="f"?wt(o,s):r==="e"?Fr(o,s,a):so(o,s,a);return a&&(c=c.toUpperCase()),Ji(e,l<0||Object.is(l,-0),c)}case"a":return n.limitation("hexadecimal floating point (%a) in String.format");default:return be(n,"UnknownFormatConversionException",`Conversion = \'${e.conversion}\'`)}}function*At(n,e,t){if(e===null)return n.fail("java.lang.NullPointerException",\'Cannot invoke "String.length()" because "s" is null\');let i=e.value,a=t?.data??[],r="",l=0,s=-1,o=0;for(n.charge(i.length);o<i.length;){let c=i.indexOf("%",o);if(c<0){r+=i.slice(o);break}r+=i.slice(o,c),Br.lastIndex=c;let d=Br.exec(i);if(!d){let C=i[c+1];be(n,"UnknownFormatConversionException",`Conversion = \'${C===void 0?"%":C}\'`)}o=Br.lastIndex;let m={index:d[1],flags:d[2]??"",width:d[3]?Number(d[3]):void 0,precision:d[4]?Number(d[4].slice(1)):void 0,conversion:d[6],text:d[0]};if(d[5]&&n.limitation("date and time conversions (%t) in String.format"),m.conversion==="n"){r+=`\n`;continue}if(m.conversion==="%"){mt(n,{...m,conversion:"%"},"-"),r+=Ee("%",m.width,m.flags.includes("-"));continue}let v;m.index==="<"?v=s:m.index?v=Number(m.index.slice(0,-1))-1:v=l++,(v<0||t!==null&&v>=a.length)&&be(n,"MissingFormatArgumentException",`Format specifier \'${m.text}\'`),s=v,r+=yield*Vc(n,m,t===null?null:a[v]),n.checkString(r.length)}return r}var Ur={};xn(Ur,{PATTERN_FLAGS:()=>kt,PatternError:()=>gn,PatternLimit:()=>te,checkInput:()=>Gn,compilePattern:()=>Fn,expandReplacement:()=>_r,findAll:()=>zi,quotePattern:()=>fo});var gn=class extends Error{index;constructor(e,t){super(e),this.index=t}},te=class extends Error{},ho="\\\\n\\\\r\\\\u0085\\\\u2028\\\\u2029",co=`(?=(?:\\\\r\\\\n|[${ho}])?(?![\\\\s\\\\S]))(?!(?<=\\\\r)\\\\n)`,Ui=" \\\\t\\\\n\\\\x0B\\\\f\\\\r",Pr=" \\\\t\\\\xA0\\\\u1680\\\\u180E\\\\u2000-\\\\u200A\\\\u202F\\\\u205F\\\\u3000",Pi="\\\\n\\\\x0B\\\\f\\\\r\\\\x85\\\\u2028\\\\u2029",Ki={Lower:"a-z",Upper:"A-Z",ASCII:"\\\\x00-\\\\x7F",Alpha:"a-zA-Z",Digit:"0-9",Alnum:"a-zA-Z0-9",Punct:"!-\\\\/:-@\\\\[-`{-~",Graph:"!-~",Print:" -~",Blank:" \\\\t",Cntrl:"\\\\x00-\\\\x1F\\\\x7F",XDigit:"0-9a-fA-F",Space:Ui},Ec="\\\\^$.|?*+()[]{}";function ke(n){let e=n.charCodeAt(0);return Ec.includes(n)||n==="-"||n==="/"?"\\\\"+n:e<32||e===127?`\\\\x${e.toString(16).padStart(2,"0")}`:n}var Kr=class{#e;#t=0;groups=0;names=new Map;dotAll=!1;caseInsensitive=!1;constructor(e,t=!1,i=!1){this.#e=e,this.caseInsensitive=t,this.dotAll=i}#n(e,t=this.#t){throw new gn(e,t)}parse(){for(;;){let t=/^\\(\\?([a-zA-Z]+)\\)/.exec(this.#e.slice(this.#t));if(!t)break;for(let i of t[1])if(i==="i")this.caseInsensitive=!0;else if(i==="s")this.dotAll=!0;else{if("mxuUdc".includes(i))throw new te(`the regex flag (?${i})`);this.#n("Unknown inline modifier",this.#t+2+t[1].indexOf(i))}this.#t+=t[0].length}let e=this.#a(0);return this.#t<this.#e.length&&this.#n("Unmatched closing \')\'",this.#t-1),e}#i(e=0){return this.#e[this.#t+e]}#a(e){let t=[this.#r(e)];for(;this.#i()==="|";)this.#t++,t.push(this.#r(e));return t.join("|")}#r(e){let t="";for(;this.#t<this.#e.length;){let i=this.#i();if(i==="|")break;if(i===")"){e===0&&this.#n("Unmatched closing \')\'",this.#t-1);break}let a=this.#t,r=this.#s(e);r!==null&&(t+=r+this.#l(a))}return t}#l(e){let t="",i=this.#i();if(i==="*"||i==="+"||i==="?")t=i,this.#t++;else if(i==="{"){let r=/^\\{(\\d+)(,(\\d*))?\\}/.exec(this.#e.slice(this.#t));r||(/^\\{\\d+(,\\d*)?$/.test(this.#e.slice(this.#t))&&this.#n("Unclosed counted closure",this.#e.length),this.#n("Illegal repetition",this.#t+1)),r[3]&&Number(r[3])<Number(r[1])&&this.#n("Illegal repetition range",this.#t+r[0].length-1),t=r[0],this.#t+=r[0].length}else return"";if(this.#i()==="?")t+="?",this.#t++;else if(this.#i()==="+")throw new te("possessive quantifiers in a regex");let a=this.#i();return(a==="*"||a==="+"||a==="?")&&this.#n(`Dangling meta character \'${a}\'`,this.#t),t}#s(e){let t=this.#e[this.#t++];switch(t){case"*":case"+":case"?":this.#n(`Dangling meta character \'${t}\'`,this.#t-1);break;case"{":this.#n("Illegal repetition",this.#t);break;case".":return this.dotAll?"[\\\\s\\\\S]":`[^${ho}]`;case"^":return"^";case"$":return co;case"[":return this.#u();case"(":return this.#c(e);case"\\\\":return this.#h(!1);default:return ke(t)}return""}#c(e){let t=this.#t-1,i="(";if(this.#i()==="?"){let a=this.#e.slice(this.#t+1);if(a.startsWith(":"))i="(?:";else if(a.startsWith("="))i="(?=";else if(a.startsWith("!"))i="(?!";else if(a.startsWith("<="))i="(?<=";else if(a.startsWith("<!"))i="(?<!";else{if(a.startsWith(">"))throw new te("atomic groups (?>...) in a regex");if(a.startsWith("<")){let r=/^<([a-zA-Z][a-zA-Z0-9]*)>/.exec(a);return r||this.#n("named capturing group is missing trailing \'>\'",this.#t+1),this.groups++,this.names.set(r[1],this.groups),this.#t+=r[0].length+1,this.#o(`(?<${r[1]}>`,e,t)}else{if(/^[a-zA-Z-]/.test(a))throw new te("regex flags written inside the pattern, (?i) other than at its start");this.#n("Unknown inline modifier",this.#t+1)}}return this.#t+=i.length-1,this.#o(i,e,t)}return this.groups++,this.#o(i,e,t)}#o(e,t,i){let a=this.#a(t+1);return this.#i()!==")"&&this.#n("Unclosed group",this.#e.length),this.#t++,e+a+")"}#h(e){let t=this.#e[this.#t++];switch(t===void 0&&this.#n("Unescaped trailing backslash",this.#e.length),t){case"d":return e?"0-9":"[0-9]";case"D":return e?this.#d():"[^0-9]";case"w":return e?"a-zA-Z_0-9":"[a-zA-Z_0-9]";case"W":return e?this.#d():"[^a-zA-Z_0-9]";case"s":return e?Ui:`[${Ui}]`;case"S":return e?this.#d():`[^${Ui}]`;case"h":return e?Pr:`[${Pr}]`;case"H":return e?this.#d():`[^${Pr}]`;case"v":return e?Pi:`[${Pi}]`;case"V":return e?this.#d():`[^${Pi}]`;case"R":return e&&this.#n("Illegal/unsupported escape sequence",this.#t-1),`(?:\\\\r\\\\n|[${Pi}])`;case"b":case"B":return e&&this.#n("Illegal/unsupported escape sequence",this.#t-1),"\\\\"+t;case"A":return"^";case"z":return"(?![\\\\s\\\\S])";case"Z":return co;case"G":throw new te("\\\\G in a regex");case"t":return"\\\\t";case"n":return"\\\\n";case"r":return"\\\\r";case"f":return"\\\\f";case"a":return"\\\\x07";case"e":return"\\\\x1B";case"0":{let i=/^[0-3]?[0-7]{1,2}/.exec(this.#e.slice(this.#t));return i||this.#n("Illegal octal escape sequence",this.#t),this.#t+=i[0].length,ke(String.fromCharCode(parseInt(i[0],8)))}case"x":{let i=/^(?:[0-9a-fA-F]{2}|\\{[0-9a-fA-F]+\\})/.exec(this.#e.slice(this.#t));i||this.#n("Illegal hexadecimal escape sequence",this.#t),this.#t+=i[0].length;let a=parseInt(i[0].replace(/[{}]/g,""),16);if(a>65535)throw new te("supplementary characters in a regex");return ke(String.fromCharCode(a))}case"u":{let i=/^[0-9a-fA-F]{4}/.exec(this.#e.slice(this.#t));return i||this.#n("Illegal Unicode escape sequence",this.#t),this.#t+=4,ke(String.fromCharCode(parseInt(i[0],16)))}case"c":{let i=this.#e[this.#t++];return i===void 0&&this.#n("Illegal control escape sequence",this.#t),ke(String.fromCharCode(i.charCodeAt(0)^64))}case"Q":{let i=this.#e.indexOf("\\\\E",this.#t),a=i<0?this.#e.slice(this.#t):this.#e.slice(this.#t,i);return this.#t=i<0?this.#e.length:i+2,[...a].map(ke).join("")||(e?"":"(?:)")}case"E":return"";case"p":case"P":{let i=/^\\{(?:Is)?([A-Za-z]+)\\}/.exec(this.#e.slice(this.#t)),a=i?.[1];if(!a||!(a in Ki)){if(i)throw new te(`the regex class \\\\${t}{${i[1]}}`);this.#n("Unknown character property name {"+this.#e.slice(this.#t+1,this.#e.indexOf("}",this.#t))+"}",this.#t)}return this.#t+=i[0].length,t==="P"?e?this.#d():`[^${Ki[a]}]`:e?Ki[a]:`[${Ki[a]}]`}case"k":{let i=/^<([a-zA-Z][a-zA-Z0-9]*)>/.exec(this.#e.slice(this.#t));return i||this.#n("\\\\k is not followed by \'<\' for named capturing group",this.#t),this.names.has(i[1])||this.#n(`named capturing group <${i[1]}> does not exist`,this.#t+i[0].length-1),this.#t+=i[0].length,`\\\\k<${i[1]}>`}default:if(t>="1"&&t<="9"){e&&this.#n("Illegal/unsupported escape sequence",this.#t-1);let i=Number(t);for(;/[0-9]/.test(this.#i()??"")&&i*10+Number(this.#i())<=this.groups;)i=i*10+Number(this.#e[this.#t++]);return i>this.groups?"(?!)":`\\\\${i}(?:)`}return/[a-zA-Z]/.test(t)&&this.#n("Illegal/unsupported escape sequence",this.#t-1),ke(t)}}#d(){throw new te("negated classes such as \\\\S inside [...] in a regex")}#u(){let e=this.#t-1,t="[";this.#i()==="^"&&(t+="^",this.#t++);let i=!0;for(;;){let a=this.#i();if(a===void 0&&this.#n("Unclosed character class",this.#e.length-1),a==="]"&&!i){this.#t++;break}if(i=!1,a==="[")throw new te("nested character classes in a regex");if(a==="&"&&this.#i(1)==="&")throw new te("character class intersections (&&) in a regex");let r=this.#f();if(r.single!==null&&this.#i()==="-"&&this.#i(1)===void 0&&this.#n("Illegal character range",this.#e.length),r.single!==null&&this.#i()==="-"&&this.#i(1)!=="]"){this.#t++;let l=this.#f();l.single===null&&this.#n("Illegal character range",this.#t-1),l.single.charCodeAt(0)<r.single.charCodeAt(0)&&this.#n("Illegal character range",this.#t-1),t+=`${ke(r.single)}-${ke(l.single)}`}else t+=r.text}return t==="["?"(?!)":t==="[^"?"[\\\\s\\\\S]":t+"]"}#f(){let e=this.#e[this.#t++];if(e!=="\\\\")return{single:e,text:ke(e)};let t=this.#t,i=this.#e[this.#t],a=this.#h(!0);return i!==void 0&&"dDwWsShHvVpPQ".includes(i)?{single:null,text:a}:{single:a.startsWith("\\\\x")?String.fromCharCode(parseInt(a.slice(2),16)):a.length===2&&a[0]==="\\\\"?Tc(a[1]):a,text:a}}};function Tc(n){return{t:" ",n:`\n`,r:"\\r",f:"\\f"}[n]??n}var _i=new Map,kt={CASE_INSENSITIVE:2,LITERAL:16,DOTALL:32},Rc=511;function Fn(n,e,t=0){if(t&~Rc)return n.fail("java.lang.IllegalArgumentException",`Unknown flag 0x${(t>>>0).toString(16)}`);let i=t&~(kt.CASE_INSENSITIVE|kt.LITERAL|kt.DOTALL);if(i)return n.limitation(`the Pattern flag ${{1:"UNIX_LINES",4:"COMMENTS",8:"MULTILINE",64:"UNICODE_CASE",128:"CANON_EQ",256:"UNICODE_CHARACTER_CLASS"}[i&-i]}`);let a=`${t}:${e}`,r=_i.get(a);if(!r){try{let l=(t&kt.LITERAL)!==0,s=new Kr(l?fo(e):e,(t&kt.CASE_INSENSITIVE)!==0,(t&kt.DOTALL)!==0),o=s.parse(),c=s.caseInsensitive?"i":"";r={regex:new RegExp(o,"g"+c),source:o,flags:c,whole:new RegExp(`^(?:${o})(?![\\\\s\\\\S])`,c),groups:s.groups,names:s.names,caseInsensitive:s.caseInsensitive}}catch(l){if(!(l instanceof gn||l instanceof te))throw l;r=l}_i.size>200&&_i.clear(),_i.set(a,r)}if(r instanceof te)return n.limitation(r.message);if(r instanceof gn){let l=r.index>=0&&r.index<e.length?`\n${" ".repeat(r.index)}^`:"";return n.fail("java.util.regex.PatternSyntaxException",`${r.message} near index ${r.index}\n${e}${l}`)}return r}function fo(n){return n.includes("\\\\E")?`\\\\Q${n.split("\\\\E").join("\\\\E\\\\\\\\E\\\\Q")}\\\\E`:`\\\\Q${n}\\\\E`}function Gn(n,e,t){e.caseInsensitive&&/[^\\x00-\\x7f]/.test(t)&&n.limitation("case-insensitive regex matching of non-ASCII text"),n.charge(t.length)}function zi(n,e,t=1/0){let i=n.regex;i.lastIndex=0;let a=[];for(;a.length<t;){let r=i.exec(e);if(!r||(a.push(r),r[0]===""&&(i.lastIndex=r.index+1),i.lastIndex>e.length))break}return a}function _r(n,e,t,i){let a="";for(let r=0;r<t.length;r++){let l=t[r];if(l==="\\\\")r++,r>=t.length&&n.fail("java.lang.IllegalArgumentException","character to be escaped is missing"),a+=t[r];else if(l==="$"){r++,r>=t.length&&n.fail("java.lang.IllegalArgumentException","Illegal group reference: group index is missing");let s;if(t[r]==="{"){let o=t.indexOf("}",r),c=o<0?"":t.slice(r+1,o);(o<0||!/^[a-zA-Z][a-zA-Z0-9]*$/.test(c))&&n.fail("java.lang.IllegalArgumentException","named capturing group is missing trailing \'}\'"),e.names.has(c)||n.fail("java.lang.IllegalArgumentException",`No group with name {${c}}`),s=e.names.get(c),r=o}else{let o=t.charCodeAt(r)-48;for((o<0||o>9)&&n.fail("java.lang.IllegalArgumentException","Illegal group reference"),s=o;r+1<t.length;){let c=t.charCodeAt(r+1)-48;if(c<0||c>9||s*10+c>e.groups)break;s=s*10+c,r++}s>e.groups&&n.fail("java.lang.IndexOutOfBoundsException",`No group ${s}`)}a+=i[s]??""}else a+=l}return a}var Me="java.lang.NullPointerException",Hr="java.lang.StringIndexOutOfBoundsException",Oc=3,Ic=6,V=n=>new h.JString(n),zr=n=>n.value;function mo(n,e){return n.allocate(e.length),new h.JArray(Oc,e.map(V),n.hash(),"[Ljava.lang.String;")}var Hi=n=>n>=0&&n<=1114111;function J(n,e,t){return e===null&&n.fail(Me,t),zr(e)}function go(n,e,t,i){(t<0||t>i||i>e.length)&&n.fail(Hr,`Range [${t}, ${i}) out of bounds for length ${e.length}`)}var We=n=>/[\\t\\n\\x0B\\f\\r\\x1C-\\x1F]/.test(n)||/[\\p{Zs}\\p{Zl}\\p{Zp}]/u.test(n)&&!/[\xA0 ]/.test(n),po=n=>n.toUpperCase().length===1?n.toUpperCase():n,vo=n=>n.toLowerCase().length===1?n.toLowerCase():n;function bo(n,e){let t=Math.min(n.length,e.length);for(let i=0;i<t;i++){let a=n[i],r=e[i];if(a!==r&&(a=po(a),r=po(r),a!==r&&(a=vo(a),r=vo(r),a!==r)))return a.charCodeAt(0)-r.charCodeAt(0)}return n.length-e.length}function qi(n){let e=n.data,t="";for(let i=0;i<e.length;i+=8192)t+=String.fromCharCode(...e.subarray(i,i+8192));return t}function No(n,e,t,i){if(e===null)return n.fail(Me,\'Cannot read the array length because "value" is null\');let a=e.data.length;return(t<0||i<0||t>a-i)&&n.fail(Hr,`Range [${t}, ${t} + ${i}) out of bounds for length ${a}`),qi(e).slice(t,t+i)}function yo(n,e,t,i){return Vo(n,Fn(n,J(n,t,\'Cannot invoke "String.length()" because "regex" is null\')),e,i)}function Vo(n,e,t,i){Gn(n,e,t);let a=[],r=0,l=!1;for(let s of zi(e,t)){let o=s.index,c=o+s[0].length;if(i>0&&a.length>=i-1)break;o===0&&c===0||(l=!0,a.push(t.slice(r,o)),r=c)}if(!l)return mo(n,[t]);if(a.push(t.slice(r)),i===0)for(;a.length&&a[a.length-1]==="";)a.pop();return mo(n,a)}var Eo=\'Cannot invoke "String.isEmpty()" because "this.pattern" is null\';function Co(n,e,t,i,a){let r=Fn(n,J(n,t,Eo));a&&i===null&&n.fail(Me,"replacement"),Gn(n,r,e);let l=zi(r,e,a?1:1/0);if(!l.length)return V(e);let s=J(n,i,\'Cannot invoke "String.length()" because "replacement" is null\'),o="",c=0;for(let d of l)o+=e.slice(c,d.index)+_r(n,r,s,d),c=d.index+d[0].length,n.checkString(o.length);return V(o+e.slice(c))}var Jn={"substring(int)":(n,e,[,t])=>(go(n,e.value,t,e.value.length),V(e.value.slice(t))),"substring(int,int)":(n,e,[,t,i])=>(go(n,e.value,t,i),V(e.value.slice(t,i))),"indexOf(String)":(n,e,[,t])=>e.value.indexOf(J(n,t,\'Cannot invoke "String.coder()" because "str" is null\')),"indexOf(String,int)":(n,e,[,t,i])=>e.value.indexOf(J(n,t,\'Cannot invoke "String.length()" because "tgtStr" is null\'),Math.max(0,i)),"indexOf(int)":(n,e,[,t])=>Hi(t)?e.value.indexOf(String.fromCodePoint(t)):-1,"indexOf(int,int)":(n,e,[,t,i])=>Hi(t)?e.value.indexOf(String.fromCodePoint(t),Math.max(0,i)):-1,"lastIndexOf(String)":(n,e,[,t])=>e.value.lastIndexOf(J(n,t,\'Cannot read field "value" because "tgtStr" is null\')),"lastIndexOf(String,int)":(n,e,[,t,i])=>{let a=J(n,t,\'Cannot read field "value" because "tgtStr" is null\');return i<0?-1:e.value.lastIndexOf(a,i)},"lastIndexOf(int)":(n,e,[,t])=>Hi(t)?e.value.lastIndexOf(String.fromCodePoint(t)):-1,"lastIndexOf(int,int)":(n,e,[,t,i])=>i<0||!Hi(t)?-1:e.value.lastIndexOf(String.fromCodePoint(t),i),"contains(String)":(n,e,[,t])=>f(e.value.includes(J(n,t,\'Cannot invoke "java.lang.CharSequence.toString()" because "s" is null\'))),"startsWith(String)":(n,e,[,t])=>f(e.value.startsWith(J(n,t,\'Cannot invoke "String.length()" because "prefix" is null\'))),"startsWith(String,int)":(n,e,[,t,i])=>{let a=J(n,t,\'Cannot invoke "String.length()" because "prefix" is null\'),r=i;return f(r>=0&&r<=e.value.length-a.length&&e.value.startsWith(a,r))},"endsWith(String)":(n,e,[,t])=>f(e.value.endsWith(J(n,t,\'Cannot invoke "String.length()" because "suffix" is null\'))),"toUpperCase()":(n,e)=>V(e.value.toUpperCase()),"toLowerCase()":(n,e)=>V(e.value.toLowerCase()),"intern()":(n,e)=>n.intern(e.value),"trim()":(n,e)=>V(e.value.replace(/^[\\0- ]+|[\\0- ]+$/g,"")),"strip()":(n,e)=>{let t=0,i=e.value.length;for(;t<i&&We(e.value[t]);)t++;for(;i>t&&We(e.value[i-1]);)i--;return V(e.value.slice(t,i))},"stripLeading()":(n,e)=>{let t=0;for(;t<e.value.length&&We(e.value[t]);)t++;return V(e.value.slice(t))},"stripTrailing()":(n,e)=>{let t=e.value.length;for(;t>0&&We(e.value[t-1]);)t--;return V(e.value.slice(0,t))},"isBlank()":(n,e)=>f([...e.value].every(We)),"stripIndent()":(n,e)=>(n.charge(e.value.length),V(jc(e.value))),"translateEscapes()":(n,e)=>(n.charge(e.value.length),V(wc(n,e.value))),"indent(int)":(n,e,[,t])=>{let i=t;if(!e.value)return V("");let r=Wi(e.value).map(l=>{if(i>0)return" ".repeat(i)+l;if(i===0)return l;let s=0;for(;s<l.length&&s<-i&&We(l[s]);)s++;return l.slice(s)}).map(l=>l+`\n`).join("");return n.checkString(r.length),V(r)},"codePointAt(int)":(n,e,[,t])=>{let i=t;return(i<0||i>=e.value.length)&&n.fail(Hr,`Index ${i} out of bounds for length ${e.value.length}`),e.value.codePointAt(i)},"getBytes()":(n,e)=>{let t=new TextEncoder().encode(e.value.replace(/[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?<![\\uD800-\\uDBFF])[\\uDC00-\\uDFFF]/g,"?"));return n.allocate(t.length),new h.JArray(Ic,new Int8Array(t.buffer,t.byteOffset,t.length),n.hash(),"[B")},"transform(Function)":(n,e,[,t])=>(t===null&&n.fail(Me,\'Cannot invoke "java.util.function.Function.apply(Object)" because "f" is null\'),u(g(n,t,"apply",[e]))),"repeat(int)":(n,e,[,t])=>{let i=t;return i<0&&n.fail("java.lang.IllegalArgumentException",`count is negative: ${i}`),n.checkString(e.value.length*i),V(e.value.repeat(i))},"replace(char,char)":(n,e,[,t,i])=>V(e.value.split(String.fromCharCode(t)).join(String.fromCharCode(i))),"replace(String,String)":(n,e,[,t,i])=>{let a=J(n,t,\'Cannot invoke "java.lang.CharSequence.toString()" because "target" is null\'),r=J(n,i,\'Cannot invoke "java.lang.CharSequence.toString()" because "replacement" is null\'),l=e.value.replaceAll(a,()=>r);return n.checkString(l.length),V(l)},"equalsIgnoreCase(String)":(n,e,[,t])=>f(t!==null&&zr(t).length===e.value.length&&bo(e.value,zr(t))===0),"compareToIgnoreCase(String)":(n,e,[,t])=>bo(e.value,J(n,t,\'Cannot read field "value" because "s2" is null\')),"concat(String)":(n,e,[,t])=>V(e.value+J(n,t,\'Cannot invoke "String.isEmpty()" because "str" is null\')),"hashCode()":(n,e)=>ri(e.value),"toString()":(n,e)=>e,"split(String)":(n,e,[,t])=>yo(n,e.value,t,0),"split(String,int)":(n,e,[,t,i])=>yo(n,e.value,t,i),"replaceAll(String,String)":(n,e,[,t,i])=>Co(n,e.value,t,i,!1),"replaceFirst(String,String)":(n,e,[,t,i])=>Co(n,e.value,t,i,!0),"matches(String)":(n,e,[,t])=>{let i=Fn(n,J(n,t,Eo));return Gn(n,i,e.value),f(i.whole.test(e.value))},"compareTo(T)":(n,e,[,t])=>{let i=J(n,t,\'Cannot read field "value" because "anotherString" is null\'),a=e.value,r=Math.min(a.length,i.length);for(let l=0;l<r;l++)if(a.charCodeAt(l)!==i.charCodeAt(l))return a.charCodeAt(l)-i.charCodeAt(l);return a.length-i.length},"formatted(Object[])":(n,e,[,t])=>u(At(n,e,t),V)};function*Lc(n,e){return yield*x(n,e)}function*So(n,e,t){let i=J(n,e,\'Cannot invoke "java.lang.CharSequence.toString()" because "delimiter" is null\'),a=[];for(let r of t)a.push(r===null?"null":yield*x(n,r));return n.charge(a.length),a.join(i)}var qr={"String.valueOf(Object)":(n,[e])=>u(Lc(n,e),V),"String.valueOf(char[])":(n,[e])=>e===null?n.fail(Me,\'Cannot read the array length because "value" is null\'):V(qi(e)),"String.valueOf(char[],int,int)":(n,[e,t,i])=>V(No(n,e,t,i)),"String.copyValueOf(char[])":(n,[e])=>e===null?n.fail(Me,\'Cannot read the array length because "value" is null\'):V(qi(e)),"String.valueOf(boolean)":(n,[e])=>V(e?"true":"false"),"String.valueOf(char)":(n,[e])=>V(String.fromCharCode(e)),"String.valueOf(int)":(n,[e])=>V(String(e)),"String.valueOf(long)":(n,[e])=>V(String(e)),"String.valueOf(double)":(n,[e])=>V(h.doubleToString(e)),"String.valueOf(float)":(n,[e])=>V(h.floatToString(e)),"String.format(String,Object[])":(n,[e,t])=>u(At(n,e,t),V),"String.join(String,String[])":(n,[e,t])=>e!==null&&t===null?n.fail(Me,\'Cannot read the array length because "elements" is null\'):u(So(n,e,t.data),V),"String.join(String,Iterable)":(n,[e,t])=>e===null||t===null?n.fail(Me,null):u(So(n,e,t.elements(n,!0)),V),"String.<init>()":()=>V(""),"String.<init>(String)":(n,[e])=>V(J(n,e,\'Cannot read field "value" because "original" is null\')),"String.<init>(char[])":(n,[e])=>e===null?n.fail(Me,\'Cannot read the array length because "value" is null\'):V(qi(e)),"String.<init>(char[],int,int)":(n,[e,t,i])=>V(No(n,e,t,i)),"String.<init>(StringBuilder)":(n,[e])=>e===null?n.fail(Me,\'Cannot invoke "java.lang.AbstractStringBuilder.getValue()" because "asb" is null\'):V(e.text)};function Wi(n){if(!n)return[];let e=n.split(/\\r\\n|\\r|\\n/);return e[e.length-1]===""&&e.pop(),e}function jc(n){let e=n.split(/\\r\\n|\\r|\\n/),t=a=>[...a].every(We),i=1/0;return e.forEach((a,r)=>{if(t(a)&&r!==e.length-1)return;let l=0;for(;l<a.length&&We(a[l]);)l++;i=Math.min(i,l)}),e.map(a=>{if(t(a))return"";let r=a.length;for(;r>0&&We(a[r-1]);)r--;return a.slice(i,r)}).join(`\n`)}var xo={b:"\\b",s:" ",t:" ",n:`\n`,f:"\\f",r:"\\r",\'"\':\'"\',"\'":"\'","\\\\":"\\\\"};function wc(n,e){let t="";for(let i=0;i<e.length;i++){let a=e[i];if(a!=="\\\\"){t+=a;continue}let r=e[++i]??"\\0";if(Object.hasOwn(xo,r))t+=xo[r];else{if(r===`\n`)continue;if(r==="\\r")e[i+1]===`\n`&&i++;else if(r>="0"&&r<="7"){let l=r<="3"?3:2,s="";for(;s.length<l&&i<e.length&&e[i]>="0"&&e[i]<="7";)s+=e[i++];i--,t+=String.fromCharCode(parseInt(s,8))}else{let l=r.charCodeAt(0).toString(16).toUpperCase().padStart(4,"0");n.fail("java.lang.IllegalArgumentException",`Invalid escape sequence: \\\\${r} \\\\\\\\u${l}`)}}}return t}var Ac={I:"int",J:"long",D:"double",C:"char",Z:"boolean",B:"byte",S:"short",F:"float"};function Zr(n){if(n.startsWith("[")){let t=n.slice(1);return(t.startsWith("[")?Zr(t):t.startsWith("L")?Zr(t.slice(1,-1)):Ac[t]??t)+"[]"}return n.slice(Math.max(n.lastIndexOf("$"),n.lastIndexOf("."))+1).replace(/^\\d+/,"")}var Xr=class extends p{className="java.lang.Class";name;isInterface;constructor(e,t,i){super(e),this.name=t,this.isInterface=i}*javaString(){return`${this.isInterface?"interface":"class"} ${this.name}`}"getName()"(){return new h.JString(this.name)}"getSimpleName()"(){return new h.JString(Zr(this.name))}"isInterface()"(){return f(this.isInterface)}"isArray()"(){return f(this.name.startsWith("["))}},To=new WeakMap;function Yr(n,e,t=!1){let i=To.get(n);i||To.set(n,i=new Map);let a=i.get(e);return a||i.set(e,a=new Xr(n.hash(),e,t)),a}var Yi="java.lang.NullPointerException",Qr=class extends p{className="java.lang.Object"},Ro={"Object.<init>()":n=>new Qr(n.hash()),"Object.getClass":(n,[e])=>e instanceof h.JLambda?n.limitation("getClass() of a lambda (the JDK\'s class name has an address)"):Yr(n,Oe(e)),"Enum.getDeclaringClass":(n,[e])=>Yr(n,Pt(e.className)),"Class.literal":(n,[e,t])=>Yr(n,e.value,t===1),"Objects.equals(Object,Object)":(n,[e,t])=>u(z(n,e,t),f),"Objects.hashCode(Object)":(n,[e])=>e===null?0:u(j(n,e)),"Objects.hash(Object[])":(n,[e])=>{if(e===null)return 0;let t=e.data;return u((function*(){let i=1;for(let a of t)i=Math.imul(31,i)+(a===null?0:yield*j(n,a))|0;return i})())},"Objects.isNull(Object)":(n,[e])=>f(e===null),"Objects.nonNull(Object)":(n,[e])=>f(e!==null),"Objects.toString(Object)":(n,[e])=>u(x(n,e),t=>new h.JString(t)),"Objects.toString(Object,String)":(n,[e,t])=>e===null?t:u(x(n,e),i=>new h.JString(i)),"Objects.requireNonNull(T)":(n,[e])=>e===null?n.fail(Yi,null):e,"Objects.requireNonNull(T,String)":(n,[e,t])=>e===null?n.fail(Yi,t===null?null:t.value):e,"Objects.requireNonNullElse(T,T)":(n,[e,t])=>e!==null?e:t!==null?t:n.fail(Yi,"defaultObj"),"Objects.checkIndex(int,int)":(n,[e,t])=>{let i=e,a=t;return i<0||i>=a?n.fail("java.lang.IndexOutOfBoundsException",`Index ${i} out of bounds for length ${a}`):i},"Objects.compare(T,T,Comparator)":(n,[e,t,i])=>e===t?0:i===null?n.fail(Yi,null):u($(n,i)(e,t))};var pl={};xn(pl,{CollectorImpl:()=>W,JOptional:()=>U,JStream:()=>K,STREAM_NATIVES:()=>ml,SummaryStatistics:()=>gt,collectionStream:()=>ra,lazyIntStream:()=>Hc,lazyStream:()=>Un,stringChars:()=>gl});var _="java.lang.NullPointerException",cl="java.lang.IllegalStateException",kc="java.lang.IllegalArgumentException",Mc="java.util.NoSuchElementException",Go=n=>n,_n=()=>null;function hl(n){return{size:n.length,*push(e,t){t.begin(n.length);for(let i of n){if(t.cancelled())break;e.charge(1),yield*t.accept(i)}yield*t.end()}}}function sl(n){return{size:null,*push(e,t){for(t.begin(-1);!t.cancelled();){e.charge(1);let i=yield*n(e);if(!i)break;yield*t.accept(i.value)}yield*t.end()}}}var Bc={ref:"java.util.stream.ReferencePipeline",int:"java.util.stream.IntPipeline",long:"java.util.stream.LongPipeline",double:"java.util.stream.DoublePipeline"},K=class n extends p{className;kind;#e;#t;pipeline;#n=!1;constructor(e,t,i,a=[],r=!0,l={parallel:!1,peeked:!1}){super(e),this.kind=t,this.#e=i,this.#t=a,this.pipeline=l,this.className=`${Bc[t]}${r?"$Head":"$StatelessOp"}`}unordered(e,t){this.pipeline.parallel&&e.limitation(`${t} on a parallel stream (the JDK\'s result depends on its threads)`)}#i(e){this.#n&&e.fail(cl,"stream has already been operated upon or closed"),this.#n=!0}then(e,t,i){return this.#i(e),new n(e.hash(),t,this.#e,[...this.#t,i],!1,this.pipeline)}knownSize(){let e=this.#e().size;for(let t of this.#t)e=t.size(e);return e}*run(e,t){this.pipeline.peeked&&this.unordered(e,"peek"),this.#i(e);let i=t;for(let a=this.#t.length-1;a>=0;a--)i=this.#t[a].wrap(e,i);yield*this.#e().push(e,i)}*count(e){let t=this.knownSize();if(t!==null)return this.#i(e),t;let i=0;return yield*this.run(e,ne(function*(){i++})),i}*items(e){let t=[];return yield*this.run(e,ne(function*(i){t.push(i)})),t}};function ne(n,e=()=>!1){return{begin(){},accept:n,*end(){},cancelled:e}}function aa(n,e=Go){return{size:e,wrap(t,i){return{begin:a=>i.begin(e(a===-1?null:a)??-1),accept:a=>n(t,a,i),end:()=>i.end(),cancelled:()=>i.cancelled()}}}}var Pn=(n,e,t)=>e==="ref"?t:n.box(e,t);function Oo(n){return h.normLong(BigInt(n))}function Ye(n){return BigInt(n)}function dl(n,e,t){if(n==="long"){let r=Ye(e),l=Ye(t);return r<l?-1:r>l?1:0}let i=e,a=t;if(n==="double"){if(i<a)return-1;if(i>a)return 1;let r=Object.is(i,-0)?0:Number.isNaN(i)?2:1,l=Object.is(a,-0)?0:Number.isNaN(a)?2:1;return r-l}return i<a?-1:i>a?1:0}var Bt=class{sum=0;compensation=0;simple=0;add(e){this.simple+=e;let t=e-this.compensation,i=this.sum+t;this.compensation=i-this.sum-t,this.sum=i}get value(){let e=this.sum-this.compensation;return Number.isNaN(e)&&!Number.isFinite(this.simple)&&!Number.isNaN(this.simple)?this.simple:e}},Io={ref:"Optional",int:"OptionalInt",long:"OptionalLong",double:"OptionalDouble"},U=class n extends p{className;kind;present;value;constructor(e,t,i,a=null){super(e),this.kind=t,this.present=i,this.value=a,this.className=`java.util.${Io[t]}`}*javaString(e){let t=Io[this.kind];return this.present?`${t}[${yield*x(e,Pn(e,this.kind,this.value))}]`:`${t}.empty`}get contentEquality(){return!0}*contentEquals(e,t){return t===this?!0:!(t instanceof n)||t.kind!==this.kind?!1:!this.present||!t.present?this.present===t.present:this.kind==="ref"?yield*T(e,this.value,t.value):dl(this.kind,this.value,t.value)===0&&Object.is(this.value,t.value)===(this.kind!=="double"||Object.is(this.value,t.value))}*contentHash(e){return this.present?yield*j(e,Pn(e,this.kind,this.value)):0}#e(e){return this.present?this.value:e.fail(Mc,"No value present")}"get()"(e){return this.#e(e)}"getAsInt()"(e){return this.#e(e)}"getAsLong()"(e){return this.#e(e)}"getAsDouble()"(e){return this.#e(e)}"orElseThrow()"(e){return this.#e(e)}"orElseThrow(Supplier)"(e,t){return this.present?this.value:u((function*(){let i=yield*g(e,t,"get",[]);return i===null?e.fail(_,null):e.raise(i)})())}"isPresent()"(){return f(this.present)}"isEmpty()"(){return f(!this.present)}#t(e){return this.present?this.value:e}"orElse(T)"(e,t){return this.#t(t)}"orElse(int)"(e,t){return this.#t(t)}"orElse(long)"(e,t){return this.#t(t)}"orElse(double)"(e,t){return this.#t(t)}#n(e,t,i){return this.present?this.value:u(g(e,t,i,[]))}"orElseGet(Supplier)"(e,t){return this.#n(e,t,"get")}"orElseGet(IntSupplier)"(e,t){return this.#n(e,t,"getAsInt")}"orElseGet(LongSupplier)"(e,t){return this.#n(e,t,"getAsLong")}"orElseGet(DoubleSupplier)"(e,t){return this.#n(e,t,"getAsDouble")}#i(e,t){if(this.present)return u(g(e,t,"accept",[this.value]),()=>{})}"ifPresent(Consumer)"(e,t){return this.#i(e,t)}"ifPresent(IntConsumer)"(e,t){return this.#i(e,t)}"ifPresent(LongConsumer)"(e,t){return this.#i(e,t)}"ifPresent(DoubleConsumer)"(e,t){return this.#i(e,t)}"ifPresentOrElse(Consumer,Runnable)"(e,t,i){return this.present?this.#i(e,t):u(g(e,i,"run",[]),()=>{})}"map(Function)"(e,t){return t===null?e.fail(_,null):this.present?u(g(e,t,"apply",[this.value]),i=>new n(e.hash(),"ref",i!==null,i??null)):this}"flatMap(Function)"(e,t){return this.present?u(g(e,t,"apply",[this.value]),i=>i===null?e.fail(_,null):i):this}"filter(Predicate)"(e,t){return this.present?u(g(e,t,"test",[this.value]),i=>I(i)?this:new n(e.hash(),"ref",!1)):this}"or(Supplier)"(e,t){return this.present?this:u(g(e,t,"get",[]),i=>i===null?e.fail(_,null):i)}"stream()"(e){let t=this.present?[this.value]:[];return new K(e.hash(),this.kind,()=>hl(t))}},Zi={ref:n=>new U(n.hash(),"ref",!1),int:n=>new U(n.hash(),"int",!1),long:n=>new U(n.hash(),"long",!1),double:n=>new U(n.hash(),"double",!1)},Lo={int:"IntSummaryStatistics",long:"LongSummaryStatistics",double:"DoubleSummaryStatistics"},gt=class extends p{className;kind;count=0;sum;min;max;#e=new Bt;constructor(e,t){super(e),this.kind=t,this.className=`java.util.${Lo[t]}`,this.sum=t==="long"?0n:0,this.min=t==="int"?2147483647:t==="long"?9223372036854775807n:1/0,this.max=t==="int"?-2147483648:t==="long"?-9223372036854775808n:-1/0}add(e){if(this.count++,this.kind==="double"){let t=e;this.#e.add(t),this.min=Math.min(this.min,t),this.max=Math.max(this.max,t)}else if(this.kind==="long"){let t=Ye(e);this.sum=BigInt.asIntN(64,this.sum+t),t<this.min&&(this.min=t),t>this.max&&(this.max=t)}else{let t=e;this.sum=this.sum+t,this.min=Math.min(this.min,t),this.max=Math.max(this.max,t)}}#t(){return this.kind==="double"?this.#e.value:this.sum}#n(){return this.count?Number(this.#t())/this.count:0}*javaString(){let e=this.#n(),t=(e<0||Object.is(e,-0)?"-":"")+wt(Math.abs(e),6),i=a=>this.kind==="double"?wt(Math.abs(a),6).replace(/^/,a<0?"-":""):String(a);return`${Lo[this.kind]}{count=${this.count}, sum=${i(this.#t())}, min=${i(this.min)}, average=${t}, max=${i(this.max)}}`}"getCount()"(){return Oo(this.count)}"getSum()"(){let e=this.#t();return typeof e=="bigint"?h.normLong(e):this.kind==="int"?Oo(e):e}"getMin()"(){return typeof this.min=="bigint"?h.normLong(this.min):this.min}"getMax()"(){return typeof this.max=="bigint"?h.normLong(this.max):this.max}"getAverage()"(){return this.#n()}"accept(int)"(e,t){this.add(t)}"accept(long)"(e,t){this.add(t)}"accept(double)"(e,t){this.add(t)}},W=class extends p{className="java.util.stream.Collectors$CollectorImpl";supply;add;finish;constructor(e,t,i,a=null){super(e),this.supply=t,this.add=i,this.finish=a}*collect(e,t){let i=yield*this.supply(e);for(let a of t)yield*this.add(e,i,a);return this.finish?yield*this.finish(e,i):i}},Kn=class extends p{className="java.lang.Object";value;constructor(e,t){super(e),this.value=t}};function Be(n,e){return n===null?e.fail(_,null):n}var jo=n=>ci["ArrayList.<init>()"](n,[]),Jo=n=>an["HashSet.<init>()"](n,[]),Po=n=>an["HashMap.<init>()"](n,[]);function*Xi(n,e,t){return yield*R(n,e,"add","add(E)",[t])}function*fl(n,e){return yield*g(n,e,"get",[])}function wo(n,e,t){return new Q(n.hash(),"java.util.stream.Collectors$$Lambda",e,t)}function el(n,e,t,i){return new W(n.hash(),function*(a){return t?yield*fl(a,t):Po(a)},function*(a,r,l){let s=yield*g(a,e,"apply",[l]);if(s===null)return a.fail(_,"element cannot be mapped to a null key");let o=yield*R(a,r,"computeIfAbsent","computeIfAbsent(K,Function)",[s,wo(a,"apply(T)",function*(c){return yield*i.supply(c)})]);return yield*i.add(a,o,l)},i.finish?function*(a,r){let l=i.finish;return yield*R(a,r,"replaceAll","replaceAll(BiFunction)",[wo(a,"apply(T,U)",function*(s,[,o]){return yield*l(s,o)})]),r}:null)}function Ao(n,e,t){return new W(n.hash(),function*(i){return new Kn(i.hash(),[yield*t.supply(i),yield*t.supply(i)])},function*(i,a,r){let l=a.value,s=I(yield*g(i,e,"test",[r]))?1:0;return yield*t.add(i,l[s],r)},function*(i,a){let r=a.value,l=an["LinkedHashMap.<init>()"](i,[]);for(let[s,o]of[!1,!0].entries()){let c=t.finish?yield*t.finish(i,r[s]):r[s];yield*R(i,l,"put","put(K,V)",[i.box("boolean",o?1:0),c])}return l})}function De(n,e,t,i){return new W(n.hash(),function*(a){return new Kn(a.hash(),e())},function*(a,r,l){let s=r;s.value=yield*t(a,s.value,l)},function*(a,r){return i(a,r.value)})}function*ce(n,e,t,i){return yield*g(n,e,t,[i])}function*Dc(n,e){return yield*x(n,e)}var ol={"Collectors.toList()":n=>new W(n.hash(),function*(e){return jo(e)},Xi),"Collectors.toUnmodifiableList()":n=>new W(n.hash(),function*(e){return jo(e)},Xi,function*(e,t){let i=t.es;return i.includes(null)?e.fail(_,null):new Ue(e.hash(),i.slice())}),"Collectors.toSet()":n=>new W(n.hash(),function*(e){return Jo(e)},Xi),"Collectors.toCollection(Supplier)":(n,[e])=>new W(n.hash(),t=>fl(t,e),Xi),"Collectors.joining()":n=>tl(n,"","",""),"Collectors.joining(String)":(n,[e])=>tl(n,Qi(n,e),"",""),"Collectors.joining(String,String,String)":(n,[e,t,i])=>tl(n,Qi(n,e),Qi(n,t),Qi(n,i)),"Collectors.toMap(Function,Function)":(n,[e,t])=>al(n,e,t,null,null),"Collectors.toMap(Function,Function,BinaryOperator)":(n,[e,t,i])=>al(n,e,t,i,null),"Collectors.toMap(Function,Function,BinaryOperator,Supplier)":(n,[e,t,i,a])=>al(n,e,t,i,a),"Collectors.groupingBy(Function)":(n,[e])=>el(n,e,null,ol["Collectors.toList()"](n,[])),"Collectors.groupingBy(Function,Collector)":(n,[e,t])=>el(n,e,null,Be(t,n)),"Collectors.groupingBy(Function,Supplier,Collector)":(n,[e,t,i])=>el(n,e,t,Be(i,n)),"Collectors.partitioningBy(Predicate)":(n,[e])=>Ao(n,e,ol["Collectors.toList()"](n,[])),"Collectors.partitioningBy(Predicate,Collector)":(n,[e,t])=>Ao(n,e,Be(t,n)),"Collectors.counting()":n=>De(n,()=>0n,function*(e,t){return t+1n},(e,t)=>e.box("long",h.normLong(t))),"Collectors.summingInt(ToIntFunction)":(n,[e])=>De(n,()=>0,function*(t,i,a){return i+(yield*ce(t,e,"applyAsInt",a))|0},(t,i)=>t.box("int",i)),"Collectors.summingLong(ToLongFunction)":(n,[e])=>De(n,()=>0n,function*(t,i,a){return BigInt.asIntN(64,i+Ye(yield*ce(t,e,"applyAsLong",a)))},(t,i)=>t.box("long",h.normLong(i))),"Collectors.summingDouble(ToDoubleFunction)":(n,[e])=>De(n,()=>new Bt,function*(t,i,a){return i.add(yield*ce(t,e,"applyAsDouble",a)),i},(t,i)=>t.box("double",i.value)),"Collectors.averagingInt(ToIntFunction)":(n,[e])=>ko(n,e,"applyAsInt"),"Collectors.averagingLong(ToLongFunction)":(n,[e])=>ko(n,e,"applyAsLong"),"Collectors.averagingDouble(ToDoubleFunction)":(n,[e])=>De(n,()=>({s:new Bt,n:0}),function*(t,i,a){return i.s.add(yield*ce(t,e,"applyAsDouble",a)),i.n++,i},(t,i)=>t.box("double",i.n?i.s.value/i.n:0)),"Collectors.summarizingInt(ToIntFunction)":(n,[e])=>nl(n,e,"int","applyAsInt"),"Collectors.summarizingLong(ToLongFunction)":(n,[e])=>nl(n,e,"long","applyAsLong"),"Collectors.summarizingDouble(ToDoubleFunction)":(n,[e])=>nl(n,e,"double","applyAsDouble"),"Collectors.mapping(Function,Collector)":(n,[e,t])=>{let i=Be(t,n);return new W(n.hash(),i.supply,function*(a,r,l){return yield*i.add(a,r,yield*ce(a,e,"apply",l))},i.finish)},"Collectors.filtering(Predicate,Collector)":(n,[e,t])=>{let i=Be(t,n);return new W(n.hash(),i.supply,function*(a,r,l){I(yield*ce(a,e,"test",l))&&(yield*i.add(a,r,l))},i.finish)},"Collectors.flatMapping(Function,Collector)":(n,[e,t])=>{let i=Be(t,n);return new W(n.hash(),i.supply,function*(a,r,l){let s=yield*ce(a,e,"apply",l);if(s)for(let o of yield*s.items(a))yield*i.add(a,r,Pn(a,s.kind,o))},i.finish)},"Collectors.teeing(Collector,Collector,BiFunction)":(n,[e,t,i])=>{if(e===null)return n.fail(_,"downstream1");if(t===null)return n.fail(_,"downstream2");if(i===null)return n.fail(_,"merger");let a=Be(e,n),r=Be(t,n);return new W(n.hash(),function*(l){return new Kn(l.hash(),[yield*a.supply(l),yield*r.supply(l)])},function*(l,s,o){let[c,d]=s.value;yield*a.add(l,c,o),yield*r.add(l,d,o)},function*(l,s){let[o,c]=s.value,d=a.finish?yield*a.finish(l,o):o,m=r.finish?yield*r.finish(l,c):c;return(yield*g(l,i,"apply",[d,m]))??null})},"Collectors.collectingAndThen(Collector,Function)":(n,[e,t])=>{let i=Be(e,n);return new W(n.hash(),i.supply,i.add,function*(a,r){let l=i.finish?yield*i.finish(a,r):r;return yield*ce(a,t,"apply",l)})},"Collectors.reducing(T,BinaryOperator)":(n,[e,t])=>De(n,()=>e,function*(i,a,r){return yield*g(i,t,"apply",[a,r])},(i,a)=>a),"Collectors.reducing(U,Function,BinaryOperator)":(n,[e,t,i])=>De(n,()=>e,function*(a,r,l){return yield*g(a,i,"apply",[r,yield*ce(a,t,"apply",l)])},(a,r)=>r),"Collectors.reducing(BinaryOperator)":(n,[e])=>il(n,function*(t,i,a){return yield*g(t,e,"apply",[i,a])}),"Collectors.minBy(Comparator)":(n,[e])=>il(n,function*(t,i,a){return(yield*g(t,e,"compare",[i,a]))<=0?i:a}),"Collectors.maxBy(Comparator)":(n,[e])=>il(n,function*(t,i,a){return(yield*g(t,e,"compare",[i,a]))>=0?i:a})};function Qi(n,e){return e===null?n.fail(_,null):e.value}function tl(n,e,t,i){return De(n,()=>[],function*(a,r,l){let s=yield*Dc(a,l);return r.push(s),a.checkString(r.reduce((o,c)=>o+c.length,0)),r},(a,r)=>new h.JString(t+r.join(e)+i))}function ko(n,e,t){return De(n,()=>({sum:0n,n:0}),function*(i,a,r){let l=yield*ce(i,e,t,r);return a.sum+=BigInt(l),a.n++,a},(i,a)=>i.box("double",a.n?Number(a.sum)/a.n:0))}function nl(n,e,t,i){return new W(n.hash(),function*(a){return new gt(a.hash(),t)},function*(a,r,l){r.add(yield*ce(a,e,i,l))})}function il(n,e){return De(n,()=>({present:!1,value:null}),function*(t,i,a){return i.present?i.value=yield*e(t,i.value,a):(i.present=!0,i.value=a),i},(t,i)=>i.present&&i.value===null?t.fail(_,null):new U(t.hash(),"ref",i.present,i.value))}function al(n,e,t,i,a){return new W(n.hash(),function*(r){return a?yield*fl(r,a):Po(r)},function*(r,l,s){let o=yield*ce(r,e,"apply",s),c=yield*ce(r,t,"apply",s);if(i)return yield*R(r,l,"merge","merge(K,V,BiFunction)",[o,c,i]);if(c===null)return r.fail(_,null);let d=yield*R(r,l,"putIfAbsent","putIfAbsent(K,V)",[o,c]);if(d!==null){let m=`Duplicate key ${yield*x(r,o)} (attempted merging values ${yield*x(r,d)} and ${yield*x(r,c)})`;return r.fail(cl,m)}})}var ia={ref:{predicate:"test",unary:"apply",consumer:"accept",binary:"apply"},int:{predicate:"test",unary:"applyAsInt",consumer:"accept",binary:"applyAsInt"},long:{predicate:"test",unary:"applyAsLong",consumer:"accept",binary:"applyAsLong"},double:{predicate:"test",unary:"applyAsDouble",consumer:"accept",binary:"applyAsDouble"}};function E(n,e){return e===null?n.fail(_,null):e}function $c(n,e){return aa(function*(t,i,a){I(yield*g(t,n,e,[i]))&&(yield*a.accept(i))},_n)}function Mt(n,e,t=(i,a)=>a){return aa(function*(i,a,r){yield*r.accept(t(i,yield*g(i,n,e,[a])))})}function Fc(n){return aa(function*(e,t,i){yield*g(e,n,"accept",[t]),yield*i.accept(t)})}function rl(n){return aa(function*(e,t,i){yield*i.accept(n(e,t))})}function ll(n,e){return{size:_n,wrap(t,i){return{begin:()=>i.begin(-1),*accept(a){let r=yield*g(t,n,e,[a]);r&&(yield*r.run(t,{begin(){},accept:l=>i.accept(l),*end(){},cancelled:()=>i.cancelled()}))},end:()=>i.end(),cancelled:()=>i.cancelled()}}}}function Mo(n,e){return{size:Go,wrap(t,i){let a=[];return{begin:()=>{},*accept(r){t.allocate(1),a.push(r)},*end(){n==="ref"?yield*it(Lt(t,a,e,()=>{})):a.sort((r,l)=>dl(n,r,l)),i.begin(a.length);for(let r of a){if(i.cancelled())break;yield*i.accept(r)}yield*i.end()},cancelled:()=>!1}}}}function Gc(n){return{size:_n,wrap(e,t){let i=Jo(e);return{begin:()=>t.begin(-1),*accept(a){let r=yield*R(e,i,"add","add(E)",[Pn(e,n,a)]);I(r)&&(yield*t.accept(a))},end:()=>t.end(),cancelled:()=>t.cancelled()}}}}function Jc(n){return{size:e=>e===null?null:Math.min(e,n),wrap(e,t){let i=0;return{begin:a=>t.begin(a===-1?-1:Math.min(a,n)),*accept(a){i<n&&(i++,yield*t.accept(a))},end:()=>t.end(),cancelled:()=>i>=n||t.cancelled()}}}}function Pc(n){return{size:e=>e===null?null:Math.max(0,e-n),wrap(e,t){let i=0;return{begin:a=>t.begin(a===-1?-1:Math.max(0,a-n)),*accept(a){i<n?i++:yield*t.accept(a)},end:()=>t.end(),cancelled:()=>t.cancelled()}}}}function Kc(n){return{size:_n,wrap(e,t){let i=!0;return{begin:()=>t.begin(-1),*accept(a){i&&I(yield*g(e,n,"test",[a]))?yield*t.accept(a):i=!1},end:()=>t.end(),cancelled:()=>!i||t.cancelled()}}}}function _c(n){return{size:_n,wrap(e,t){let i=!0;return{begin:()=>t.begin(-1),*accept(a){i&&I(yield*g(e,n,"test",[a]))||(i=!1,yield*t.accept(a))},end:()=>t.end(),cancelled:()=>t.cancelled()}}}}function Bo(n,e){let t=Number(e);return t<0?n.fail(kc,String(t)):t}function Uc(){let n=K.prototype,e=(t,i)=>{n[t]=i};for(let[t,i,a,r,l]of[["Predicate","Function","Consumer","BinaryOperator","Supplier"],["IntPredicate","IntUnaryOperator","IntConsumer","IntBinaryOperator","IntSupplier"],["LongPredicate","LongUnaryOperator","LongConsumer","LongBinaryOperator","LongSupplier"],["DoublePredicate","DoubleUnaryOperator","DoubleConsumer","DoubleBinaryOperator","DoubleSupplier"]]){e(`filter(${t})`,function(o,c){return this.then(o,this.kind,$c(E(o,c),"test"))}),e(`takeWhile(${t})`,function(o,c){return this.then(o,this.kind,Kc(E(o,c)))}),e(`dropWhile(${t})`,function(o,c){return this.then(o,this.kind,_c(E(o,c)))}),e(`peek(${a})`,function(o,c){return this.pipeline.peeked=!0,this.then(o,this.kind,Fc(E(o,c)))}),e(`forEach(${a})`,function(o,c){return E(o,c),this.unordered(o,"forEach"),u(this.run(o,ne(function*(d){yield*g(o,c,"accept",[d])})),()=>{})}),e(`forEachOrdered(${a})`,function(o,c){return E(o,c),u(this.run(o,ne(function*(d){yield*g(o,c,"accept",[d])})),()=>{})});for(let[o,c,d]of[["anyMatch",!1,!0],["allMatch",!0,!1],["noneMatch",!0,!0]])e(`${o}(${t})`,function(m,v){E(m,v);let C=c,k=!1;return u(this.run(m,ne(function*(Xe){if(k)return;I(yield*g(m,v,"test",[Xe]))===d&&(k=!0,C=!c)},()=>k)),()=>f(C))});i!=="Function"&&e(`map(${i})`,function(o,c){return this.then(o,this.kind,Mt(E(o,c),ia[this.kind].unary))}),e(`reduce(${r})`,function(o,c){E(o,c);let d=this.kind,m=!1,v=null;return u(this.run(o,ne(function*(C){m?v=yield*g(o,c,ia[d].binary,[v,C]):(m=!0,v=C)})),()=>d==="ref"&&m&&v===null?o.fail(_,null):new U(o.hash(),d,m,v))});let s={Predicate:"T",IntPredicate:"int",LongPredicate:"long",DoublePredicate:"double"}[t];e(`reduce(${s},${r})`,function(o,c,d){E(o,d);let m=this.kind,v=c;return u(this.run(o,ne(function*(C){v=yield*g(o,d,ia[m].binary,[v,C])})),()=>v)})}e("distinct()",function(t){return this.then(t,this.kind,Gc(this.kind))}),e("sorted()",function(t){return this.then(t,this.kind,Mo(this.kind,null))}),e("sorted(Comparator)",function(t,i){return this.then(t,this.kind,Mo(this.kind,i))}),e("limit(long)",function(t,i){return this.then(t,this.kind,Jc(Bo(t,i)))}),e("skip(long)",function(t,i){return this.then(t,this.kind,Pc(Bo(t,i)))}),e("count()",function(t){return u(this.count(t),i=>h.normLong(BigInt(i)))}),e("boxed()",function(t){let i=this.kind;return this.then(t,"ref",rl((a,r)=>Pn(a,i,r)))}),e("findFirst()",function(t){return Do(t,this)}),e("findAny()",function(t){return this.unordered(t,"findAny"),Do(t,this)}),e("parallel()",function(){return this.pipeline.parallel=!0,this}),e("sequential()",function(){return this.pipeline.parallel=!1,this}),e("isParallel()",function(){return f(this.pipeline.parallel)}),e("toArray()",function(t){let i=this.kind;return u(this.items(t),a=>(t.allocate(a.length),i==="ref"?new h.JArray(et,a,t.hash(),"[Ljava.lang.Object;"):i==="int"?new h.JArray(0,Int32Array.from(a),t.hash(),"[I"):i==="double"?new h.JArray(5,Float64Array.from(a),t.hash(),"[D"):new h.JArray(4,a.slice(),t.hash(),"[J")))}),e("toArray(IntFunction)",function(t,i){E(t,i);let a=this;return u((function*(){let r=yield*a.items(t),l=yield*g(t,i,"apply",[r.length]);return l===null?t.fail(_,null):l.data.length!==r.length?t.fail(cl,`Begin size ${r.length} is not equal to fixed size ${l.data.length}`):(r.forEach((s,o)=>{s!==null&&!t.storable(s,l.descriptor)&&t.fail("java.lang.ArrayStoreException",t.className(s)),l.data[o]=s}),l)})())}),e("map(Function)",function(t,i){return this.then(t,"ref",Mt(E(t,i),"apply"))}),e("mapToInt(ToIntFunction)",function(t,i){return this.then(t,"int",Mt(E(t,i),"applyAsInt"))}),e("mapToLong(ToLongFunction)",function(t,i){return this.then(t,"long",Mt(E(t,i),"applyAsLong"))}),e("mapToDouble(ToDoubleFunction)",function(t,i){return this.then(t,"double",Mt(E(t,i),"applyAsDouble"))}),e("flatMap(Function)",function(t,i){return this.then(t,"ref",ll(E(t,i),"apply"))}),e("flatMapToInt(Function)",function(t,i){return this.then(t,"int",ll(E(t,i),"apply"))}),e("collect(Collector)",function(t,i){let a=Be(i,t),r=this;return u((function*(){let l=yield*a.supply(t);return yield*r.run(t,ne(function*(s){yield*a.add(t,l,s)})),a.finish?yield*a.finish(t,l):l})())}),e("toList()",function(t){return u(this.items(t),i=>new ul(t.hash(),i))}),e("min(Comparator)",function(t,i){return $o(t,this,E(t,i),-1)}),e("max(Comparator)",function(t,i){return $o(t,this,E(t,i),1)});for(let t of["int","long","double"]){let i=t==="int"?"Int":t==="long"?"Long":"Double";e(`mapToObj(${i}Function)`,function(a,r){return this.then(a,"ref",Mt(E(a,r),"apply"))}),e(`flatMap(${i}Function)`,function(a,r){return this.then(a,this.kind,ll(E(a,r),"apply"))});for(let a of["int","long","double"]){if(a===t)continue;let r=a==="int"?"Int":a==="long"?"Long":"Double";e(`mapTo${r}(${i}To${r}Function)`,function(l,s){return this.then(l,a,Mt(E(l,s),`applyAs${r}`))})}}e("asLongStream()",function(t){return this.then(t,"long",rl((i,a)=>h.normLong(BigInt(a))))}),e("asDoubleStream()",function(t){return this.then(t,"double",rl((i,a)=>Number(a)))}),e("sum()",function(t){let i=this.kind;if(i==="double"){let r=new Bt;return u(this.run(t,ne(function*(l){r.add(l)})),()=>r.value)}let a=i==="long"?0n:0;return u(this.run(t,ne(function*(r){a=i==="long"?BigInt.asIntN(64,a+Ye(r)):a+r|0})),()=>i==="long"?h.normLong(a):a)});for(let[t,i]of[["min",-1],["max",1]])e(`${t}()`,function(a){let r=this.kind,l=!1,s=null;return u(this.run(a,ne(function*(o){(!l||r==="double"&&Number.isNaN(o)||!(r==="double"&&Number.isNaN(s))&&dl(r,o,s)*i>0)&&(s=o),l=!0})),()=>new U(a.hash(),r,l,s))});e("average()",function(t){let i=this.kind,a=new Bt,r=0n,l=0;return u(this.run(t,ne(function*(s){l++,i==="double"?a.add(s):r+=BigInt(s)})),()=>new U(t.hash(),"double",l>0,l?(i==="double"?a.value:Number(r))/l:null))}),e("summaryStatistics()",function(t){let i=new gt(t.hash(),this.kind);return u(this.run(t,ne(function*(a){i.add(a)})),()=>i)})}function*zc(n,e){let t=!1,i=null;return yield*e.run(n,ne(function*(a){t||(t=!0,i=a)},()=>t)),e.kind==="ref"&&t&&i===null?n.fail(_,null):new U(n.hash(),e.kind,t,i)}function Do(n,e){return u(zc(n,e))}function $o(n,e,t,i){let a=!1,r=null;return u(e.run(n,ne(function*(l){if(!a){a=!0,r=l;return}let s=yield*g(n,t,"compare",[r,l]);(i<0?s>0:s<0)&&(r=l)})),()=>a&&r===null?n.fail(_,null):new U(n.hash(),"ref",a,r))}var ul=class extends Ue{className="java.util.ImmutableCollections$ListN";*indexOf(e,t,i){let a=this.items;for(let r=0;r<a.length;r++){let l=i?a.length-1-r:r;if(t===null?a[l]===null:yield*T(e,t,a[l]))return l}return-1}};Uc();function ea(n,e,t){let i=e>n?Number(e-n):0;return{size:i,*push(a,r){r.begin(i);for(let l=n;l<e&&!r.cancelled();l++)a.charge(1),yield*r.accept(t==="int"?Number(l):h.normLong(l));yield*r.end()}}}function ta(n,e,t,i){let a=ia[n].unary,r=!1,l=e,s=!1;return sl(function*(o){return s?null:(r&&(l=yield*g(o,t,a,[l])),r=!0,i&&!I(yield*g(o,i,"test",[l]))?(s=!0,null):{value:l})})}function Fo(n,e,t){let i=n.knownSize()!==null&&e.knownSize()!==null?n.knownSize()+e.knownSize():null;return{size:i,*push(a,r){r.begin(i??-1);let l={begin(){},accept:s=>r.accept(s),*end(){},cancelled:()=>r.cancelled()};yield*n.run(t,l),r.cancelled()||(yield*e.run(t,l)),yield*r.end()}}}function pn(n,e,t,i){if(e===null)return n.fail(_,null);let a=Array.from(e.data),r=t===null?0:t,l=i===null?a.length:i;return r<0||l>a.length||r>l?r>l?n.fail("java.lang.ArrayIndexOutOfBoundsException",`origin(${r}) > fence(${l})`):n.fail("java.lang.ArrayIndexOutOfBoundsException",`Array index out of range: ${r<0?r:l}`):a.slice(r,l)}function P(n,e,t){return new K(n.hash(),e,()=>hl(t()))}function Hc(n,e){return P(n,"int",e)}function Un(n,e){return P(n,"ref",e)}function na(n){return n===null?[]:Array.from(n.data)}var qc={"Stream.of(T)":(n,[e])=>P(n,"ref",()=>[e]),"Stream.of(T[])":(n,[e])=>P(n,"ref",()=>na(E(n,e))),"Stream.ofNullable(T)":(n,[e])=>P(n,"ref",()=>e===null?[]:[e]),"Stream.empty()":n=>P(n,"ref",()=>[]),"Stream.iterate(T,UnaryOperator)":(n,[e,t])=>new K(n.hash(),"ref",()=>ta("ref",e,E(n,t),null)),"Stream.iterate(T,Predicate,UnaryOperator)":(n,[e,t,i])=>new K(n.hash(),"ref",()=>ta("ref",e,E(n,i),E(n,t))),"Stream.generate(Supplier)":(n,[e])=>new K(n.hash(),"ref",()=>sl(function*(t){return{value:yield*g(t,e,"get",[])}})),"Stream.concat(Stream,Stream)":(n,[e,t])=>new K(n.hash(),"ref",()=>Fo(E(n,e),E(n,t),n)),"IntStream.range(int,int)":(n,[e,t])=>new K(n.hash(),"int",()=>ea(BigInt(e),BigInt(t),"int")),"IntStream.rangeClosed(int,int)":(n,[e,t])=>new K(n.hash(),"int",()=>ea(BigInt(e),BigInt(t)+1n,"int")),"IntStream.of(int[])":(n,[e])=>P(n,"int",()=>na(E(n,e))),"IntStream.empty()":n=>P(n,"int",()=>[]),"IntStream.iterate(int,IntUnaryOperator)":(n,[e,t])=>new K(n.hash(),"int",()=>ta("int",e,E(n,t),null)),"IntStream.iterate(int,IntPredicate,IntUnaryOperator)":(n,[e,t,i])=>new K(n.hash(),"int",()=>ta("int",e,E(n,i),E(n,t))),"IntStream.generate(IntSupplier)":(n,[e])=>new K(n.hash(),"int",()=>sl(function*(t){return{value:yield*g(t,e,"getAsInt",[])}})),"IntStream.concat(IntStream,IntStream)":(n,[e,t])=>new K(n.hash(),"int",()=>Fo(E(n,e),E(n,t),n)),"LongStream.range(long,long)":(n,[e,t])=>new K(n.hash(),"long",()=>ea(Ye(e),Ye(t),"long")),"LongStream.rangeClosed(long,long)":(n,[e,t])=>new K(n.hash(),"long",()=>ea(Ye(e),Ye(t)+1n,"long")),"LongStream.of(long[])":(n,[e])=>P(n,"long",()=>na(E(n,e))),"LongStream.empty()":n=>P(n,"long",()=>[]),"DoubleStream.of(double[])":(n,[e])=>P(n,"double",()=>na(E(n,e))),"DoubleStream.empty()":n=>P(n,"double",()=>[]),"Arrays.stream(int[])":(n,[e])=>P(n,"int",()=>pn(n,e,null,null)),"Arrays.stream(int[],int,int)":(n,[e,t,i])=>P(n,"int",()=>pn(n,e,t,i)),"Arrays.stream(long[])":(n,[e])=>P(n,"long",()=>pn(n,e,null,null)),"Arrays.stream(double[])":(n,[e])=>P(n,"double",()=>pn(n,e,null,null)),"Arrays.stream(T[])":(n,[e])=>P(n,"ref",()=>pn(n,e,null,null)),"Arrays.stream(T[],int,int)":(n,[e,t,i])=>P(n,"ref",()=>pn(n,e,t,i)),"Optional.of(T)":(n,[e])=>new U(n.hash(),"ref",!0,E(n,e)),"Optional.ofNullable(T)":(n,[e])=>new U(n.hash(),"ref",e!==null,e??null),"Optional.empty()":n=>Zi.ref(n),"OptionalInt.of(int)":(n,[e])=>new U(n.hash(),"int",!0,e),"OptionalInt.empty()":n=>Zi.int(n),"OptionalLong.of(long)":(n,[e])=>new U(n.hash(),"long",!0,e),"OptionalLong.empty()":n=>Zi.long(n),"OptionalDouble.of(double)":(n,[e])=>new U(n.hash(),"double",!0,e),"OptionalDouble.empty()":n=>Zi.double(n),"IntSummaryStatistics.<init>()":n=>new gt(n.hash(),"int"),"LongSummaryStatistics.<init>()":n=>new gt(n.hash(),"long"),"DoubleSummaryStatistics.<init>()":n=>new gt(n.hash(),"double"),...ol},ml=qc;function ra(n,e,t=!1){let i=e;return new K(n.hash(),"ref",()=>{let a=i.elements(n,!0);return hl(a.slice())},[],!0,{parallel:t,peeked:!1})}function gl(n,e){return P(n,"int",()=>{let t=[];for(let i=0;i<e.value.length;i++)t.push(e.value.charCodeAt(i));return t})}var Wc="java.util.ConcurrentModificationException",Yc="java.lang.UnsupportedOperationException",zn="java.util.NoSuchElementException",la="java.lang.IndexOutOfBoundsException",Zc="java.lang.IllegalArgumentException";function vl(n,e,t,i){e<0&&n.fail(la,`fromIndex = ${e}`),t>i&&n.fail(la,`toIndex = ${t}`),e>t&&n.fail(Zc,`fromIndex(${e}) > toIndex(${t})`)}function Xc(n){return n.kind==="fixed"?n.list.className.startsWith("java.util.ImmutableCollections$")?"java.util.ImmutableCollections$SubList":"java.util.AbstractList$RandomAccessSubList":n.list.className==="java.util.LinkedList"?"java.util.AbstractList$SubList":n.list.className==="java.util.Stack"?"java.util.Collections$SynchronizedRandomAccessList":"java.util.ArrayList$SubList"}var sa=class n extends L{className;isList=!0;randomAccess;root;parent;offset;length;modCount;constructor(e,t,i,a,r){super(e),this.root=t,this.parent=i,this.offset=a,this.length=r,this.modCount=this.#t(),this.className=Xc(t),this.randomAccess=this.className!=="java.util.AbstractList$SubList"}get size(){return this.length}#e(){return this.root.kind==="array"?this.root.list.es:this.root.list.items}#t(){return this.root.kind==="array"?this.root.list.modCount:0}check(e){this.#t()!==this.modCount&&e.fail(Wc,null)}#n(e){return this.root.kind!=="array"?e.fail(Yc,null):this.root.list}#i(e){let t=this.root.list;t.modCount++;for(let i=this;i;i=i.parent)i.length+=e,i.modCount=t.modCount}#a(e,t){(t<0||t>=this.length)&&e.fail(la,`Index ${t} out of bounds for length ${this.length}`)}elements(e){return this.check(e),this.#e().slice(this.offset,this.offset+this.length)}get contentEquality(){return!0}*contentEquals(e,t){return yield*Vt(e,this,t)}*contentHash(e){return yield*wn(e,this.elements(e))}"size()"(e){return e&&this.check(e),this.length}"isEmpty()"(e){return e&&this.check(e),f(this.length===0)}"get(int)"(e,t){return this.check(e),this.#a(e,t),this.#e()[this.offset+t]}"set(int,E)"(e,t,i){if(this.root.kind==="fixed")return this.#a(e,t),this.root.list.setAt(e,this.offset+t,i);this.check(e),this.#a(e,t);let a=this.#e(),r=a[this.offset+t];return a[this.offset+t]=i,r}"add(E)"(e,t){return this["add(int,E)"](e,this.length,t),1}"add(int,E)"(e,t,i){let a=this.#n(e);if(t<0||t>this.length)return e.fail(la,`Index: ${t}, Size: ${this.length}`);this.check(e),e.allocate(1),a.es.splice(this.offset+t,0,i),this.#i(1)}"remove(int)"(e,t){let i=this.#n(e);this.#a(e,t),this.check(e);let[a]=i.es.splice(this.offset+t,1);return this.#i(-1),a}"remove(Object)"(e,t){let i=this;return u((function*(){let a=yield*i.#r(e,t,!1);return a<0?!1:(i["remove(int)"](e,a),!0)})(),f)}"clear()"(e){let t=this.#n(e);this.check(e),t.es.splice(this.offset,this.length),this.#i(-this.length)}"addAll(Collection)"(e,t){let i=this.#n(e);if(t===null)return e.fail("java.lang.NullPointerException",null);let a=t.elements(e,!0).slice();return this.check(e),a.length?(e.allocate(a.length),i.es.splice(this.offset+this.length,0,...a),this.#i(a.length),1):0}*#r(e,t,i){let a=this.elements(e);for(let r=0;r<a.length;r++){let l=i?a.length-1-r:r;if(t===null?a[l]===null:yield*T(e,t,a[l]))return l}return-1}"indexOf(Object)"(e,t){return u(this.#r(e,t,!1))}"lastIndexOf(Object)"(e,t){return u(this.#r(e,t,!0))}"getFirst()"(e){return this.length?this["get(int)"](e,0):e.fail(zn,null)}"getLast()"(e){return this.length?this["get(int)"](e,this.length-1):e.fail(zn,null)}"removeFirst()"(e){return this.length?this["remove(int)"](e,0):e.fail(zn,null)}"removeLast()"(e){return this.length?this["remove(int)"](e,this.length-1):e.fail(zn,null)}"addFirst(E)"(e,t){return this["add(int,E)"](e,0,t)}"addLast(E)"(e,t){return this["add(int,E)"](e,this.length,t)}"sort(Comparator)"(e,t){let i=this.elements(e).slice(),a=this;return u((function*(){yield*it(Lt(e,i,t,()=>{}));for(let r=0;r<i.length;r++)yield*it(a["set(int,E)"](e,r,i[r]))})(),()=>{})}"replaceAll(UnaryOperator)"(e,t){if(t===null)return e.fail("java.lang.NullPointerException",null);let i=this;return u((function*(){i.check(e);for(let a=0;a<i.length;a++){let r=yield*g(e,t,"apply",[i.#e()[i.offset+a]]);yield*it(i["set(int,E)"](e,a,r))}i.check(e)})(),()=>{})}"removeIf(Predicate)"(e,t){let i=this.#n(e);if(t===null)return e.fail("java.lang.NullPointerException",null);let a=this;return u((function*(){let r=a.elements(e),l=[];for(let s of r)I(yield*g(e,t,"test",[s]))||l.push(s);return a.check(e),l.length===r.length?!1:(i.es.splice(a.offset,a.length,...l),a.#i(l.length-r.length),!0)})(),f)}"forEach(Consumer)"(e,t){if(t===null)return e.fail("java.lang.NullPointerException",null);let i=this;return u((function*(){let a=i.elements(e);for(let r of a)yield*g(e,t,"accept",[r]),i.check(e)})(),()=>{})}"iterator()"(e){return this.check(e),new bl(e.hash(),this)}"subList(int,int)"(e,t,i){return this.check(e),vl(e,t,i,this.length),new n(e.hash(),this.root,this,this.offset+t,i-t)}},bl=class extends p{className;#e;#t=0;#n=-1;constructor(e,t){super(e),this.#e=t,this.className=t.className.includes("ArrayList")?"java.util.ArrayList$SubList$1":"java.util.AbstractList$SubList$1"}"hasNext()"(){return f(this.#t!==this.#e.length)}"next()"(e){if(this.#e.check(e),this.#t>=this.#e.length)return e.fail(zn,null);let t=this.#e["get(int)"](e,this.#t);return this.#n=this.#t++,t}"remove()"(e){if(this.#n<0)return e.fail("java.lang.IllegalStateException",null);this.#e["remove(int)"](e,this.#n),this.#t=this.#n,this.#n=-1}};function Qc(){let n=(e,t)=>{e["subList(int,int)"]=t};n(se.prototype,function(e,t,i){let a=this;return vl(e,t,i,a.es.length),new sa(e.hash(),{kind:"array",list:a},null,t,i-t)}),n(Ot.prototype,function(e,t,i){let a=this;return vl(e,t,i,a.items.length),new sa(e.hash(),{kind:"fixed",list:a},null,t,i-t)}),n(Se.prototype,function(e,t,i){let a=this,r=a.c["subList(int,int)"].call(a.c,e,t,i);return new Se(e.hash(),r,a.className)})}Qc();var Ko="java.lang.IndexOutOfBoundsException",eh={"getFirst()":["getLast","getLast()"],"getLast()":["getFirst","getFirst()"],"removeFirst()":["removeLast","removeLast()"],"removeLast()":["removeFirst","removeFirst()"],"addFirst(E)":["addLast","addLast(E)"],"addLast(E)":["addFirst","addFirst(E)"],"peekFirst()":["peekLast","peekLast()"],"peekLast()":["peekFirst","peekFirst()"],"pollFirst()":["pollLast","pollLast()"],"pollLast()":["pollFirst","pollFirst()"],"offerFirst(E)":["offerLast","offerLast(E)"],"offerLast(E)":["offerFirst","offerFirst(E)"],"peek()":["peekLast","peekLast()"],"poll()":["pollLast","pollLast()"],"element()":["getLast","getLast()"],"remove()":["removeLast","removeLast()"],"pop()":["removeLast","removeLast()"],"push(E)":["addLast","addLast(E)"],"offer(E)":["offerFirst","offerFirst(E)"],"descendingIterator()":["iterator","iterator()"],"removeFirstOccurrence(Object)":["removeLastOccurrence","removeLastOccurrence(Object)"],"removeLastOccurrence(Object)":["removeFirstOccurrence","removeFirstOccurrence(Object)"]},th=["subList(int,int)","sort(Comparator)","replaceAll(UnaryOperator)"],Nl=class extends L{className;base;isList;constructor(e,t){super(e),this.base=t,this.isList=t.isList,this.className=t.isList?"java.util.ReverseOrderListView":"java.util.ReverseOrderDequeView";for(let[i,[a,r]]of Object.entries(eh))this[i]=(l,...s)=>this.#e(l,a,r,s);for(let i of th)this[i]=a=>a.limitation(`${i.slice(0,i.indexOf("("))}() on a reversed() view`)}get size(){return this.base.size}elements(e){return[...this.base.elements(e,!0)].reverse()}#e(e,t,i,a){return u(R(e,this.base,t,i,a))}#t(e,t,i){return(t<0||t>=i)&&e.fail(Ko,`Index ${t} out of bounds for length ${i}`),this.size-1-t}"reversed()"(){return this.base}"iterator()"(e){return this.isList?new on(e.hash(),this,0):this.#e(e,"descendingIterator","descendingIterator()",[])}"add(E)"(e,t){let i=this;return u((function*(){return i.isList?yield*R(e,i.base,"add","add(int,E)",[0,t]):yield*R(e,i.base,"addFirst","addFirst(E)",[t]),!0})(),f)}"get(int)"(e,t){return this.#e(e,"get","get(int)",[this.#t(e,t,this.size)])}"set(int,E)"(e,t,i){return this.#e(e,"set","set(int,E)",[this.#t(e,t,this.size),i])}"remove(int)"(e,t){return this.#e(e,"remove","remove(int)",[this.#t(e,t,this.size)])}"add(int,E)"(e,t,i){let a=t;return a<0||a>this.size?e.fail(Ko,`Index ${a} out of bounds for length ${this.size}`):this.#e(e,"add","add(int,E)",[this.size-a,i])}"indexOf(Object)"(e,t){let i=this.size;return u(R(e,this.base,"lastIndexOf","lastIndexOf(Object)",[t]),a=>a<0?-1:i-1-a)}"lastIndexOf(Object)"(e,t){let i=this.size;return u(R(e,this.base,"indexOf","indexOf(Object)",[t]),a=>a<0?-1:i-1-a)}"remove(Object)"(e,t){if(!this.isList)return this.#e(e,"removeLastOccurrence","removeLastOccurrence(Object)",[t]);let i=this;return u((function*(){let a=yield*R(e,i.base,"lastIndexOf","lastIndexOf(Object)",[t]);return a<0?!1:(yield*R(e,i.base,"remove","remove(int)",[a]),!0)})(),f)}"clear()"(e){return this.#e(e,"clear","clear()",[])}"equals(Object)"(e,t){return this.isList?u(Vt(e,this,t),f):f(t===this)}"hashCode()"(e){return this.isList?u(wn(e,this.elements(e))):this.hash}},nh=H["reversed()"];H["reversed()"]=(n,e,t)=>e instanceof L&&e.className==="java.util.TreeSet"?u(R(n,e,"descendingSet","descendingSet()",[])):e instanceof L?new Nl(n.hash(),e):nh(n,e,t);var _o="java.util.NoSuchElementException",Ne="java.util.InputMismatchException";function Uo(n){return n>=9&&n<=13||n>=28&&n<=32||n===5760||n>=8192&&n<=8202&&n!==8199||n===8232||n===8233||n===8287||n===12288}var zo=/\\r\\n|[\\n\\r\\u2028\\u2029\\u0085]/g,Ho=new WeakMap;function ua(n){let e=Ho.get(n);return e||Ho.set(n,e={reader:null,position:0,stream:null}),e}var ca="a BufferedReader or InputStreamReader";function da(n,e){let t=ua(n);return!e||t.reader===e||(t.reader==="scanner"&&n.limitation(`reading System.in through ${ca} after a Scanner was made over it (on the JDK the Scanner may already hold the input)`),t.reader==="io"&&n.limitation(`reading System.in through ${ca} after IO.readln() (on the JDK IO.readln may already hold the input)`),t.reader!==null&&n.limitation("reading System.in through a second reader (on the JDK the first one may already hold the input); make one BufferedReader and pass it where it is needed"),t.reader=e),t}var Sl=class extends p{className="java.io.BufferedInputStream"},Yo="(?:[0-9]+|[1-9][0-9]{0,2}(?:,[0-9]{3})+)",yl=new RegExp(`^[+-]?${Yo}$`),Cl=new RegExp(`^[+-]?(?:${Yo}(?:\\\\.[0-9]*)?|\\\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$`),ih=/^[+-]?(?:NaN|Infinity)$/,ah=/^[+-]?\\u221e$/,qo=/^[+-]?0[xX][0-9a-fA-F]*\\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+)?$/;function oa(n){return/[^\\P{Nd}0-9]/u.test(n)}var ha=class extends p{className="java.util.Scanner";#e;#t=0;#n=!1;constructor(e,t){super(e),this.#e=t}*javaString(e){return e.limitation("printing a Scanner")}#i(e){this.#n&&e.fail("java.lang.IllegalStateException","Scanner closed")}#a(e){let t=this.#t;for(;t<this.#e.length&&Uo(this.#e.charCodeAt(t));)t++;return e.charge(t-this.#t),t}#r(e){this.#i(e);let t=this.#a(e);if(t>=this.#e.length)return null;let i=t;for(;i<this.#e.length&&!Uo(this.#e.charCodeAt(i));)i++;return e.charge(i-t),{token:this.#e.slice(t,i),end:i}}#l(e){let t=this.#r(e);return t||(e.inputExhausted(),e.fail(_o,null))}#s(e,t,i,a){if(!yl.test(t))return oa(t)&&e.limitation(`reading "${t}" as a number (digits outside ASCII)`),null;let r=t.replace(/,/g,""),l=BigInt(r),s=(1n<<BigInt(i-1))-1n;return l>s||l<-s-1n?(a&&e.fail(Ne,`For input string: "${r}"`),null):l}#c(e,t,i=!1){return ih.test(t)?t.endsWith("NaN")?NaN:t.startsWith("-")?-1/0:1/0:Cl.test(t)?Number(t.replace(/,/g,"")):ah.test(t)?(i&&e.fail(Ne,`For input string: "${t}"`),null):qo.test(t)?h.parseHexFloating(t,!1):(oa(t)&&e.limitation(`reading "${t}" as a number (digits outside ASCII)`),null)}"close()"(){this.#n=!0}"hasNext()"(e){return f(this.#r(e)!==null)}"next()"(e){let{token:t,end:i}=this.#l(e);return this.#t=i,new h.JString(t)}"hasNextBoolean()"(e){let t=this.#r(e);return f(t!==null&&/^(?:true|false)$/i.test(t.token))}"nextBoolean()"(e){let{token:t,end:i}=this.#l(e);return/^(?:true|false)$/i.test(t)?(this.#t=i,f(t.toLowerCase()==="true")):e.fail(Ne,null)}"hasNextInt()"(e){let t=this.#r(e);return f(t!==null&&this.#s(e,t.token,32,!1)!==null)}"nextInt()"(e){let{token:t,end:i}=this.#l(e),a=this.#s(e,t,32,!0);return a===null?e.fail(Ne,null):(this.#t=i,Number(a))}"hasNextLong()"(e){let t=this.#r(e);return f(t!==null&&this.#s(e,t.token,64,!1)!==null)}"nextLong()"(e){let{token:t,end:i}=this.#l(e),a=this.#s(e,t,64,!0);return a===null?e.fail(Ne,null):(this.#t=i,h.normLong(a))}#o(e,t,i,a){let r=this.#s(e,t,32,a);if(r===null)return null;let l=i===8?128n:32768n;return r<-l||r>=l?(a&&e.fail(Ne,`Value out of range. Value:"${t.replace(/,/g,"")}" Radix:10`),null):Number(r)}"hasNextByte()"(e){let t=this.#r(e);return f(t!==null&&this.#o(e,t.token,8,!1)!==null)}"nextByte()"(e){let{token:t,end:i}=this.#l(e),a=this.#o(e,t,8,!0);return a===null?e.fail(Ne,null):(this.#t=i,a)}"hasNextShort()"(e){let t=this.#r(e);return f(t!==null&&this.#o(e,t.token,16,!1)!==null)}"nextShort()"(e){let{token:t,end:i}=this.#l(e),a=this.#o(e,t,16,!0);return a===null?e.fail(Ne,null):(this.#t=i,a)}#h(e,t,i=!1){let a=this.#c(e,t,i);return a===null||!Number.isFinite(a)?a:qo.test(t)?h.parseHexFloating(t,!0):h.parseDecimalFloat(t.replace(/,/g,"").replace(/^\\+/,""))}"hasNextFloat()"(e){let t=this.#r(e);return f(t!==null&&this.#h(e,t.token)!==null)}"nextFloat()"(e){let{token:t,end:i}=this.#l(e),a=this.#h(e,t,!0);return a===null?e.fail(Ne,null):(this.#t=i,a)}"hasNextBigInteger()"(e){let t=this.#r(e);return f(t!==null&&yl.test(t.token))}"nextBigInteger()"(e){let{token:t,end:i}=this.#l(e);return yl.test(t)?(this.#t=i,ni.integer(e,BigInt(t.replace(/,/g,"")))):(oa(t)&&e.limitation(`reading "${t}" as a number (digits outside ASCII)`),e.fail(Ne,null))}"hasNextBigDecimal()"(e){let t=this.#r(e);return f(t!==null&&Cl.test(t.token))}"nextBigDecimal()"(e){let{token:t,end:i}=this.#l(e);return Cl.test(t)?(this.#t=i,ni.decimal(e,new h.JString(t.replace(/,/g,"").replace(/^\\+/,"")))):(oa(t)&&e.limitation(`reading "${t}" as a number (digits outside ASCII)`),e.fail(Ne,null))}"hasNextDouble()"(e){let t=this.#r(e);return f(t!==null&&this.#c(e,t.token)!==null)}"nextDouble()"(e){let{token:t,end:i}=this.#l(e),a=this.#c(e,t,!0);return a===null?e.fail(Ne,null):(this.#t=i,a)}"hasNextLine()"(e){return this.#i(e),f(this.#t<this.#e.length)}"nextLine()"(e){if(this.#i(e),this.#t>=this.#e.length)return e.inputExhausted(),e.fail(_o,"No line found");zo.lastIndex=this.#t;let t=zo.exec(this.#e),i=t?t.index:this.#e.length,a=this.#e.slice(this.#t,i);return e.charge(i-this.#t),this.#t=t?i+t[0].length:i,new h.JString(a)}};function Wo(n){let e=ua(n);e.reader==="scanner"&&n.limitation("IO.readln() after a Scanner was made over System.in (on the JDK the Scanner may already hold the input)"),e.reader instanceof p&&n.limitation(`IO.readln() after ${ca} read System.in (on the JDK the reader may already hold the input)`),e.reader="io";let t=n.stdin();if(e.position>=t.length)return null;let i=/\\r\\n|[\\n\\r]/g;i.lastIndex=e.position;let a=i.exec(t),r=a?a.index:t.length,l=t.slice(e.position,r);return n.charge(r-e.position),e.position=a?r+a[0].length:r,new h.JString(l)}var Zo={"System.in":n=>{let e=ua(n);return e.stream??=new Sl(n.hash()),e.stream},"Scanner.<init>(InputStream)":(n,[e])=>{if(e===null)return n.fail("java.lang.NullPointerException",null);let t=ua(n);return t.reader==="scanner"&&n.limitation("a second Scanner over System.in (on the JDK the first one may already hold the input); make one Scanner and pass it where it is needed"),t.reader==="io"&&n.limitation("a Scanner over System.in after IO.readln() (on the JDK IO.readln may already hold the input)"),t.reader instanceof p&&n.limitation(`a Scanner over System.in after ${ca} read it (on the JDK the reader may already hold the input)`),t.reader="scanner",new ha(n.hash(),n.stdin())},"Scanner.<init>(String)":(n,[e])=>e===null?n.fail("java.lang.NullPointerException",null):new ha(n.hash(),e.value),"IO.readln()":n=>Wo(n),"IO.readln(String)":(n,[e])=>(n.print("out",e===null?"null":e.value),Wo(n))};var fe="java.lang.NullPointerException",xl="java.lang.IllegalArgumentException",rh="java.util.NoSuchElementException",lh="java.lang.IllegalStateException",vn=n=>n.fields[1],Xo=(n,e)=>vn(n)-vn(e),Hn=(n,e)=>n instanceof h.JObject&&Pt(n.className)===e;function*fa(n,e){let t=n.staticMethod(e,"values",0);return t<0?n.limitation(`EnumSet or EnumMap of ${e}, which is not an enum of the program`):(yield{invoke:t,args:[]}).data}var Dt=class extends ze{enumClass;constructor(e,t){super(e,new cn(null,Xo),null,null,!1,"java.util.EnumMap"),this.enumClass=t}*lookup(e,t){if(Hn(t,this.enumClass))return yield*super.lookup(e,t)}*removeKey(e,t){return Hn(t,this.enumClass)?yield*super.removeKey(e,t):null}"put(K,V)"(e,t,i){return t===null?e.fail(fe,\'Cannot invoke "Object.getClass()" because "key" is null\'):super["put(K,V)"](e,t,i)}"putIfAbsent(K,V)"(e,t,i){return t===null?e.fail(fe,\'Cannot invoke "Object.getClass()" because "key" is null\'):super["putIfAbsent(K,V)"](e,t,i)}},ma=class n extends ve{enumClass;constructor(e,t,i){super(e,new ze(e,new cn(null,Xo),null,null,!1,"java.util.EnumMap"),i>64?"java.util.JumboEnumSet":"java.util.RegularEnumSet"),this.enumClass=t}"add(E)"(e,t){if(t===null)return e.fail(fe,\'Cannot invoke "Object.getClass()" because "e" is null\');let i=this.map.tree.size;return u(bn(this.map["put(K,V)"](e,t,null)),()=>f(this.map.tree.size!==i))}"remove(Object)"(e,t){return Hn(t,this.enumClass)?super["remove(Object)"](e,t):0}*contains(e,t){return Hn(t,this.enumClass)?yield*super.contains(e,t):!1}"iterator()"(e){return new El(e.hash(),this,this.elements(e).slice())}"removeAll(Collection)"(e,t){if(t===null)return e.fail(fe,null);let i=t.elements(e,!1),a=!1;for(let r of i)Hn(r,this.enumClass)&&this.map.tree.size&&this["remove(Object)"](e,r)===1&&(a=!0);return f(a)}"retainAll(Collection)"(e,t){if(t===null)return e.fail(fe,null);let i=t,a=this;return u((function*(){let r=!1;for(let l of a.elements(e).slice())(yield*i.contains(e,l))||(a["remove(Object)"](e,l),r=!0);return r})(),f)}"clone()"(e){let t=new n(e,this.enumClass,0);return u(bn(t.addEach(e,this.elements(e))),()=>sh(t,this.className))}},sh=(n,e)=>Object.assign(n,{className:e}),El=class extends p{className="java.util.RegularEnumSet$EnumSetIterator";#e;#t;#n=0;#i;constructor(e,t,i){super(e),this.#e=t,this.#t=i}"hasNext()"(){return f(this.#n<this.#t.length)}"next()"(e){return this.#n>=this.#t.length?e.fail(rh,null):(this.#i=this.#t[this.#n++],this.#i)}"remove()"(e){if(this.#i===void 0)return e.fail(lh,null);this.#e["remove(Object)"](e,this.#i),this.#i=void 0}};function*bn(n){return n!==null&&typeof n=="object"&&Symbol.iterator in n?yield*n:n}function*he(n,e,t){let i=yield*fa(n,e),a=new ma(n,e,i.length);return yield*bn(a.addEach(n,t)),a}function Vl(n,e,t){return e===null?n.fail(fe,`Cannot invoke "java.lang.Class.getEnumConstantsShared()" because "${t}" is null`):e.name}function Ze(n,e){return e===null?n.fail(fe,\'Cannot invoke "Object.getClass()" because "e" is null\'):Pt(e.className)}var de=n=>u(n),Qo={"EnumMap.<init>(Class)":(n,[e])=>new Dt(n,Vl(n,e,"keyType")),"EnumMap.<init>(EnumMap)":(n,[e])=>{if(e===null)return n.fail(fe,\'Cannot read field "keyType" because "m" is null\');let t=new Dt(n,e.enumClass);return u(bn(t["putAll(Map)"](n,e)),()=>t)},"EnumMap.<init>(Map)":(n,[e])=>{if(e===null)return n.fail(fe,\'Cannot invoke "java.util.Map.isEmpty()" because "m" is null\');if(e instanceof Dt){let a=new Dt(n,e.enumClass);return u(bn(a["putAll(Map)"](n,e)),()=>a)}let t=e.mappings(n,!0).map(a=>a.entryKey);if(!t.length)return n.fail(xl,"Specified map is empty");let i=new Dt(n,Ze(n,t[0]));return u(bn(i["putAll(Map)"](n,e)),()=>i)},"EnumSet.noneOf(Class)":(n,[e])=>de(he(n,Vl(n,e,"elementType"),[])),"EnumSet.allOf(Class)":(n,[e])=>{let t=Vl(n,e,"elementType");return de((function*(){return yield*he(n,t,yield*fa(n,t))})())},"EnumSet.of(E)":(n,[e])=>de(he(n,Ze(n,e),[e])),"EnumSet.of(E,E)":(n,e)=>de(he(n,Ze(n,e[0]),e)),"EnumSet.of(E,E,E)":(n,e)=>de(he(n,Ze(n,e[0]),e)),"EnumSet.of(E,E,E,E)":(n,e)=>de(he(n,Ze(n,e[0]),e)),"EnumSet.of(E,E,E,E,E)":(n,e)=>de(he(n,Ze(n,e[0]),e)),"EnumSet.of(E,E[])":(n,[e,t])=>de(he(n,Ze(n,e),[e,...t.data])),"EnumSet.range(E,E)":(n,[e,t])=>{let i=Ze(n,e);if(t===null)return n.fail(fe,\'Cannot invoke "java.lang.Enum.ordinal()" because "to" is null\');if(vn(e)>vn(t)){let a=r=>r.fields[0].value;return n.fail(xl,`${a(e)} > ${a(t)}`)}return de((function*(){let a=yield*fa(n,i);return yield*he(n,i,a.slice(vn(e),vn(t)+1))})())},"EnumSet.complementOf(EnumSet)":(n,[e])=>{if(e===null)return n.fail(fe,\'Cannot invoke "java.util.EnumSet.clone()" because "s" is null\');let t=e;return de((function*(){let i=yield*fa(n,t.enumClass),a=new Set(t.elements(n));return yield*he(n,t.enumClass,i.filter(r=>!a.has(r)))})())},"EnumSet.copyOf(EnumSet)":(n,[e])=>e===null?n.fail(fe,\'Cannot invoke "java.util.EnumSet.clone()" because "s" is null\'):de(he(n,e.enumClass,e.elements(n))),"EnumSet.copyOf(Collection)":(n,[e])=>{if(e===null)return n.fail(fe,\'Cannot invoke "java.util.Collection.isEmpty()" because "c" is null\');if(e instanceof ma)return de(he(n,e.enumClass,e.elements(n)));let t=e.elements(n,!0);return t.length?de(he(n,Ze(n,t[0]),t)):n.fail(xl,"Collection is empty")}};var xa="java.io.IOException",Te="java.lang.NullPointerException",Va="Stream closed",ou=8192;function uu(n,e,t,i){(e<0||t<0||e+t>i||e+t<0)&&n.fail("java.lang.IndexOutOfBoundsException",`Range [${e}, ${e} + ${t}) out of bounds for length ${i}`)}function ba(n,e,t){return e===null?n.fail(Te,`Cannot read the array length because "${t}" is null`):mn(e)}function cu(n,e,t,i,a){if(e===null)return n.fail(Te,`Cannot read the array length because "${a}" is null`);let r=e.data;uu(n,t,i,r.length);let l="";for(let s=t;s<t+i;s+=8192)l+=String.fromCharCode(...r.subarray(s,Math.min(s+8192,t+i)));return l}function hu(n,e,t,i,a){if(e===null)return n.fail(Te,`Cannot invoke "String.length()" because "${a}" is null`);let r=e.value;return i<=0?"":((t<0||t+i>r.length)&&n.fail("java.lang.StringIndexOutOfBoundsException",`Range [${t}, ${t+i}) out of bounds for length ${r.length}`),r.slice(t,t+i))}function du(n,e,t,i){let a=e===null?"null":e instanceof h.JString?e.value:e.text;return(t<0||i>a.length||t>i)&&n.fail("java.lang.StringIndexOutOfBoundsException",`begin ${t}, end ${i}, length ${a.length}`),a.slice(t,i)}function fu(n){return n===null?"null":n instanceof h.JString?n.value:n.text}var Na=class extends p{className="java.io.PrintStream";stream;#e=!1;constructor(e,t){super(e),this.stream=t}write(e,t){e.streamClosed(this.stream)?this.#e=!0:e.print(this.stream,t)}flush(e){e.streamClosed(this.stream)&&(this.#e=!0)}close(e){e.closeStream(this.stream)}checkError(e){return this.flush(e),this.#e}},eu=new WeakMap;function pt(n,e){let t=eu.get(n);return t||eu.set(n,t={out:new Na(n.hash(),"out"),err:new Na(n.hash(),"err")}),t[e]}var Zn=class extends p{putChar(e,t){return this.put(e,String.fromCharCode(t&65535))}putChars(e,t){return this.put(e,t)}#e(e,t){t||e.fail(xa,Va)}"write(int)"(e,t){return this.#e(e,this.putChar(e,t))}"write(String)"(e,t){return t===null?e.fail(Te,\'Cannot invoke "String.length()" because "str" is null\'):this.#e(e,this.put(e,t.value))}"write(String,int,int)"(e,t,i,a){return this.#e(e,this.put(e,hu(e,t,i,a,"str")))}"write(char[])"(e,t){return this.#e(e,this.putChars(e,ba(e,t,"cbuf")))}"write(char[],int,int)"(e,t,i,a){return this.#e(e,this.putChars(e,cu(e,t,i,a,"cbuf")))}"append(CharSequence)"(e,t){return this.#e(e,this.put(e,fu(t))),this}"append(CharSequence,int,int)"(e,t,i,a){return this.#e(e,this.put(e,du(e,t,i,a))),this}"append(char)"(e,t){return this.#e(e,this.putChar(e,t)),this}"flush()"(e){return this.#e(e,this.flushAll(e))}"close()"(e){this.shut(e)}},oh=/^[\\x00-\\x7f]*$/,tu=8192,Xn=class extends Zn{className="java.io.OutputStreamWriter";#e;#t=512;#n="";#i=0;#a="";#r=!1;constructor(e,t){super(e),this.#e=t}#l(e){this.#n&&(this.#e.write(e,this.#n),this.#n="",this.#i=0)}put(e,t){if(this.#r)return!1;let i=t.length;if(!i)return!0;if(i*3>this.#t&&this.#t<tu&&(this.#l(e),this.#t=Math.min(tu,i*3)),this.#a&&(t=this.#a+t,this.#a=""),e.charge(t.length>>>4),oh.test(t)){let a=0;for(;a<t.length;){let r=this.#t-this.#i;if(r===0){this.#l(e);continue}let l=Math.min(r,t.length-a);this.#n+=l===t.length?t:t.slice(a,a+l),this.#i+=l,a+=l}return!0}for(let a=0;a<t.length;a++){let r=t.charCodeAt(a),l,s;if(r>=55296&&r<=56319){if(a+1===t.length){this.#a=t[a];break}let o=t.charCodeAt(a+1);o>=56320&&o<=57343?(l=t.slice(a,a+2),s=4,a++):(l="?",s=1)}else r>=56320&&r<=57343?(l="?",s=1):(l=t[a],s=r<128?1:r<2048?2:3);this.#i+s>this.#t&&this.#l(e),this.#n+=l,this.#i+=s}return!0}flushAll(e){return this.#r?!1:(this.#l(e),this.#e.flush(e),!0)}shut(e){this.#r||(this.#a&&(this.#a="",this.put(e,"?")),this.#l(e),this.#e.close(e),this.#r=!0)}get printStream(){return this.#e}},Nn=class extends Zn{className="java.io.BufferedWriter";#e;#t;#n="";#i=!1;constructor(e,t,i){super(e),this.#e=t,this.#t=i}#a(e){if(!this.#n)return!0;let t=this.#n;return this.#n="",this.#e.put(e,t)}put(e,t){if(this.#i)return!1;let i=0;for(;i<t.length;){let a=Math.min(this.#t-this.#n.length,t.length-i);if(this.#n+=a===t.length?t:t.slice(i,i+a),i+=a,this.#n.length>=this.#t&&!this.#a(e))return!1}return!0}putChar(e,t){return this.#i||this.#n.length>=this.#t&&!this.#a(e)?!1:(this.#n+=String.fromCharCode(t&65535),!0)}putChars(e,t){return this.#i?!1:t.length<this.#t?this.put(e,t):this.#a(e)&&this.#e.putChars(e,t)}flushAll(e){return this.#i?!1:this.#a(e)&&this.#e.flushAll(e)}shut(e){this.#i||(this.#a(e),this.#e.shut(e),this.#i=!0)}get sink(){return this.#e}"newLine()"(e){this.put(e,`\n`)||e.fail(xa,Va)}},ya=class extends Zn{className="java.io.StringWriter";text="";put(e,t){return e.checkString(this.text.length+t.length),this.text+=t,!0}flushAll(){return!0}shut(){}*javaString(){return this.text}"write(String)"(e,t){this.put(e,t===null?"null":t.value)}},Ca=class extends p{className="java.io.PrintWriter";#e;#t;#n;#i=!1;constructor(e,t,i,a){super(e),this.#e=t,this.#t=i,this.#n=a}#a(e,t){(!this.#e||!this.#e.put(e,t))&&(this.#i=!0)}#r(e,t){(!this.#e||!this.#e.putChar(e,t))&&(this.#i=!0)}#l(e,t){(!this.#e||!this.#e.putChars(e,t))&&(this.#i=!0)}#s(e){(!this.#e||!this.#e.flushAll(e))&&(this.#i=!0)}#c(e){this.#a(e,`\n`),this.#t&&this.#s(e)}#o(e,t){this.#a(e,t)}#h(e,t){return this.#a(e,t),this.#c(e)}"print(boolean)"(e,t){return this.#o(e,t?"true":"false")}"print(char)"(e,t){this.#r(e,t)}"print(int)"(e,t){return this.#o(e,String(t))}"print(long)"(e,t){return this.#o(e,String(t))}"print(float)"(e,t){return this.#o(e,h.floatToString(t))}"print(double)"(e,t){return this.#o(e,h.doubleToString(t))}"print(char[])"(e,t){this.#l(e,ba(e,t,"buf"))}"print(String)"(e,t){return this.#o(e,t===null?"null":t.value)}"print(Object)"(e,t){return u(x(e,t),i=>this.#o(e,i))}"println()"(e){return this.#c(e)}"println(boolean)"(e,t){return this.#h(e,t?"true":"false")}"println(char)"(e,t){return this.#r(e,t),this.#c(e)}"println(int)"(e,t){return this.#h(e,String(t))}"println(long)"(e,t){return this.#h(e,String(t))}"println(float)"(e,t){return this.#h(e,h.floatToString(t))}"println(double)"(e,t){return this.#h(e,h.doubleToString(t))}"println(char[])"(e,t){return this.#l(e,ba(e,t,"buf")),this.#c(e)}"println(String)"(e,t){return this.#h(e,t===null?"null":t.value)}"println(Object)"(e,t){return u(x(e,t),i=>this.#h(e,i))}"printf(String,Object[])"(e,t,i){return u(At(e,t,i),a=>(this.#a(e,a),this.#t&&this.#s(e),this))}"format(String,Object[])"(e,t,i){return this["printf(String,Object[])"](e,t,i)}"write(int)"(e,t){this.#r(e,t)}"write(String)"(e,t){return t===null?e.fail(Te,\'Cannot invoke "String.length()" because "s" is null\'):this.#o(e,t.value)}"write(String,int,int)"(e,t,i,a){return this.#o(e,hu(e,t,i,a,"s"))}"write(char[])"(e,t){this.#l(e,ba(e,t,"buf"))}"write(char[],int,int)"(e,t,i,a){this.#l(e,cu(e,t,i,a,"buf"))}"append(CharSequence)"(e,t){return this.#a(e,fu(t)),this}"append(CharSequence,int,int)"(e,t,i,a){return this.#a(e,du(e,t,i,a)),this}"append(char)"(e,t){return this.#r(e,t),this}"flush()"(e){this.#s(e)}"close()"(e){this.#e&&(this.#e.shut(e),this.#e=null)}"checkError()"(e){return this.#e&&this.#s(e),f(this.#i||this.#n!==null&&this.#n.checkError(e))}};function mu(n){return n instanceof Xn?n.printStream:n instanceof Nn?mu(n.sink):null}var Qn=class extends p{closed=!1;claim(e,t){}exhausted(e){}open(e){this.closed&&e.fail(xa,Va)}readChar(e,t){this.open(e),this.claim(e,t);let i=this.text(e),a=this.position(e);return a>=i.length?(this.exhausted(e),-1):(this.seek(e,a+1),i.charCodeAt(a))}"read()"(e){return this.readChar(e,this)}"read(char[])"(e,t){return t===null?e.fail(Te,\'Cannot read the array length because "cbuf" is null\'):this["read(char[],int,int)"](e,t,0,t.data.length)}"read(char[],int,int)"(e,t,i,a){if(this.open(e),t===null)return e.fail(Te,\'Cannot read the array length because "cbuf" is null\');let r=t.data;if(uu(e,i,a,r.length),a===0)return 0;this.claim(e,this);let l=this.text(e),s=this.position(e);if(s>=l.length)return this.exhausted(e),-1;let o=Math.min(a,l.length-s);for(let c=0;c<o;c++)r[i+c]=l.charCodeAt(s+c);return e.charge(o),this.seek(e,s+o),o}"ready()"(e){return this.open(e),f(this.position(e)<this.text(e).length||this.readyAtEnd)}"skip(long)"(e,t){let i=Number(t);i<0&&e.fail("java.lang.IllegalArgumentException","skip value is negative"),this.open(e),this.claim(e,this);let a=this.position(e),r=Math.min(i,this.text(e).length-a);return this.seek(e,a+r),h.normLong(BigInt(r))}"close()"(e){this.closed=!0}},jl=class extends Qn{className="java.io.InputStreamReader";readyAtEnd=!1;text(e){return e.stdin()}position(e){return da(e).position}seek(e,t){da(e).position=t}claim(e,t){da(e,t)}exhausted(e){e.inputExhausted()}},wl=class extends Qn{className="java.io.StringReader";readyAtEnd=!0;#e;#t=0;constructor(e,t){super(e),this.#e=t}text(){return this.#e}position(){return this.#t}seek(e,t){this.#t=t}},Sa=class extends Qn{className="java.io.BufferedReader";#e;constructor(e,t){super(e),this.#e=t}get readyAtEnd(){return this.#e.readyAtEnd}text(e){return this.#e.text(e)}position(e){return this.#e.position(e)}seek(e,t){this.#e.seek(e,t)}claim(e,t){this.#e.claim(e,t)}exhausted(e){this.#e.exhausted(e)}open(e){(this.closed||this.#e.closed)&&e.fail(xa,Va)}line(e){this.open(e),this.claim(e,this);let t=this.text(e),i=this.position(e);if(i>=t.length)return this.exhausted(e),null;let a=i;for(;a<t.length;){let l=t.charCodeAt(a);if(l===10||l===13)break;a++}e.charge(a-i);let r=a;return r<t.length&&(r+=t.charCodeAt(r)===13&&t.charCodeAt(r+1)===10?2:1),this.seek(e,r),t.slice(i,a)}"readLine()"(e){let t=this.line(e);return t===null?null:new h.JString(t)}"lines()"(e){return Un(e,()=>{let t=[];for(let i=this.line(e);i!==null;i=this.line(e))t.push(new h.JString(i));return e.allocate(t.length),t})}"close()"(e){this.closed=!0,this.#e.closed=!0}},uh=` \n\\r\\f`,Al=class extends p{className="java.util.StringTokenizer";#e;#t;#n;#i=0;constructor(e,t,i,a){super(e),this.#e=t,this.#t=i,this.#n=a}#a(e){return this.#t.indexOf(String.fromCharCode(e))>=0}#r(e,t){this.#t===null&&e.fail(Te,null);let i=t;if(!this.#n)for(;i<this.#e.length&&this.#a(this.#e.charCodeAt(i));)i++;return i}#l(e){let t=e;for(;t<this.#e.length&&!this.#a(this.#e.charCodeAt(t));)t++;return this.#n&&t===e&&t<this.#e.length&&t++,t}#s(e){let t=this.#r(e,this.#i);t>=this.#e.length&&e.fail("java.util.NoSuchElementException",null);let i=this.#l(t);return e.charge(i-this.#i),this.#i=i,this.#e.slice(t,i)}"hasMoreTokens()"(e){return f(this.#r(e,this.#i)<this.#e.length)}"hasMoreElements()"(e){return this["hasMoreTokens()"](e)}"nextToken()"(e){return new h.JString(this.#s(e))}"nextElement()"(e){return new h.JString(this.#s(e))}"nextToken(String)"(e,t){return t===null?e.fail(Te,null):(this.#t=t.value,new h.JString(this.#s(e)))}"countTokens()"(e){let t=0;for(let i=this.#r(e,this.#i);i<this.#e.length;i=this.#r(e,i))i=this.#l(i),t++;return e.charge(this.#e.length-this.#i),t}},Tl=1,qn=2,ga=4,Wn=8,Rl=16,pa=-1,Ol=10,nu=-2,iu=-3,Il=-4,Yn=-5,au=-6,kl=class extends p{className="java.io.StreamTokenizer";#e;#t=new Uint8Array(256);#n=Yn;#i=!1;#a=!1;#r=!1;#l=1;ttype=Il;nval=0;sval=null;constructor(e,t){super(e),this.#e=t,this.#c(97,122),this.#c(65,90),this.#c(160,255),this.#o(0,32),this.#t[47]=Rl,this.#t[34]=Wn,this.#t[39]=Wn,this.#h()}#s(e,t){return[Math.max(e,0),Math.min(t,255)]}#c(e,t){let[i,a]=this.#s(e,t);for(let r=i;r<=a;r++)this.#t[r]|=ga}#o(e,t){let[i,a]=this.#s(e,t);for(let r=i;r<=a;r++)this.#t[r]=Tl}#h(){for(let e=48;e<=57;e++)this.#t[e]|=qn;this.#t[46]|=qn,this.#t[45]|=qn}#d(e){return e<256?this.#t[e]:ga}#u(e){return this.#e.readChar(e,this.#e)}next(e){if(this.#i)return this.#i=!1,this.ttype;this.sval=null;let t=this.#n;if(t===au){if(t=this.#u(e),t<0)return this.ttype=pa;t===10&&(t=Yn)}if(t===Yn&&(t=this.#u(e)),t<0)return this.ttype=pa;this.ttype=t,this.#n=Yn;let i=this.#d(t);for(;i&Tl;){if(t===13){if(this.#l++,this.#a)return this.#n=au,this.ttype=Ol;t=this.#u(e),t===10&&(t=this.#u(e))}else{if(t===10&&(this.#l++,this.#a))return this.ttype=Ol;t=this.#u(e)}if(t<0)return this.ttype=pa;i=this.#d(t)}if(i&qn){let a=!1;if(t===45){if(t=this.#u(e),t!==46&&(t<48||t>57))return this.#n=t,this.ttype=45;a=!0}let r=0,l=0,s=0;for(;;){if(t===46&&s===0)s=1;else if(t>=48&&t<=57)r=r*10+(t-48),l+=s;else break;t=this.#u(e)}if(this.#n=t,l!==0){let o=10;for(l--;l>0;l--)o*=10;r=r/o}return this.nval=a?-r:r,this.ttype=nu}if(i&ga){let a="";do a+=String.fromCharCode(t),t=this.#u(e),i=t<0?Tl:this.#d(t);while(i&(ga|qn));return e.charge(a.length),this.#n=t,this.sval=this.#r?a.toLowerCase():a,this.ttype=iu}if(i&Wn){this.ttype=t;let a="",r=this.#u(e);for(;r>=0&&r!==this.ttype&&r!==10&&r!==13;){if(r===92){t=this.#u(e);let l=t;if(t>=48&&t<=55){t-=48;let s=this.#u(e);s>=48&&s<=55?(t=(t<<3)+(s-48),s=this.#u(e),s>=48&&s<=55&&l<=51?(t=(t<<3)+(s-48),r=this.#u(e)):r=s):r=s}else{switch(t){case 97:t=7;break;case 98:t=8;break;case 102:t=12;break;case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 118:t=11;break}r=this.#u(e)}}else t=r,r=this.#u(e);t>=0&&(a+=String.fromCharCode(t))}return e.charge(a.length),this.#n=r===this.ttype?Yn:r,this.sval=a,this.ttype}if(i&Rl){for(;(t=this.#u(e))!==10&&t!==13&&t>=0;);return this.#n=t,this.next(e)}return this.ttype=t}*javaString(){let e;switch(this.ttype){case pa:e="EOF";break;case Ol:e="EOL";break;case iu:e=this.sval??"null";break;case nu:e=`n=${h.doubleToString(this.nval)}`;break;case Il:e="NOTHING";break;default:e=this.ttype<256&&this.#t[this.ttype]&Wn?this.sval??"null":`\'${String.fromCharCode(this.ttype)}\'`}return`Token[${e}], line ${this.#l}`}"nextToken()"(e){return this.next(e)}"pushBack()"(){this.ttype!==Il&&(this.#i=!0)}"lineno()"(){return this.#l}"resetSyntax()"(){this.#t.fill(0)}"wordChars(int,int)"(e,t,i){this.#c(t,i)}"whitespaceChars(int,int)"(e,t,i){this.#o(t,i)}"ordinaryChars(int,int)"(e,t,i){let[a,r]=this.#s(t,i);for(let l=a;l<=r;l++)this.#t[l]=0}"ordinaryChar(int)"(e,t){t>=0&&t<256&&(this.#t[t]=0)}"commentChar(int)"(e,t){t>=0&&t<256&&(this.#t[t]=Rl)}"quoteChar(int)"(e,t){t>=0&&t<256&&(this.#t[t]=Wn)}"parseNumbers()"(){this.#h()}"eolIsSignificant(boolean)"(e,t){this.#a=t===1}"lowerCaseMode(boolean)"(e,t){this.#r=t===1}};function vt(n,e){return e===null?n.fail(Te,null):e}function ru(n,e){return e<=0&&n.fail("java.lang.IllegalArgumentException","Buffer size <= 0"),e}function va(n,e){return vt(n,e)}function lu(n,e,t){return new Ca(n.hash(),e,t,mu(e))}function su(n,e,t){let i=vt(n,e),a=new Nn(n.hash(),new Xn(n.hash(),i),ou);return new Ca(n.hash(),a,t,i)}function Ll(n,e,t,i){return e===null?n.fail(Te,\'Cannot invoke "String.length()" because "str" is null\'):new Al(n.hash(),e.value,t,i)}var gu={"System.out":n=>pt(n,"out"),"System.err":n=>pt(n,"err"),"PrintStream.out.flush()":n=>{pt(n,"out").flush(n)},"PrintStream.err.flush()":n=>{pt(n,"err").flush(n)},"PrintStream.out.close()":n=>{pt(n,"out").close(n)},"PrintStream.err.close()":n=>{pt(n,"err").close(n)},"PrintStream.out.checkError()":n=>f(pt(n,"out").checkError(n)),"PrintStream.err.checkError()":n=>f(pt(n,"err").checkError(n)),"InputStreamReader.<init>(InputStream)":(n,[e])=>(vt(n,e),new jl(n.hash())),"StringReader.<init>(String)":(n,[e])=>new wl(n.hash(),vt(n,e).value),"BufferedReader.<init>(Reader)":(n,[e])=>new Sa(n.hash(),vt(n,e)),"BufferedReader.<init>(Reader,int)":(n,[e,t])=>(vt(n,e),ru(n,t),new Sa(n.hash(),e)),"OutputStreamWriter.<init>(OutputStream)":(n,[e])=>new Xn(n.hash(),vt(n,e)),"BufferedWriter.<init>(Writer)":(n,[e])=>new Nn(n.hash(),va(n,e),ou),"BufferedWriter.<init>(Writer,int)":(n,[e,t])=>{let i=va(n,e);return new Nn(n.hash(),i,ru(n,t))},"StringWriter.<init>()":n=>new ya(n.hash()),"StringWriter.<init>(int)":(n,[e])=>(e<0&&n.fail("java.lang.IllegalArgumentException","Negative buffer size"),new ya(n.hash())),"PrintWriter.<init>(Writer)":(n,[e])=>lu(n,va(n,e),!1),"PrintWriter.<init>(Writer,boolean)":(n,[e,t])=>lu(n,va(n,e),t===1),"PrintWriter.<init>(OutputStream)":(n,[e])=>su(n,e,!1),"PrintWriter.<init>(OutputStream,boolean)":(n,[e,t])=>su(n,e,t===1),"StreamTokenizer.<init>(Reader)":(n,[e])=>new kl(n.hash(),vt(n,e)),"StreamTokenizer#ttype":(n,[e])=>e.ttype,"StreamTokenizer#nval":(n,[e])=>e.nval,"StreamTokenizer#sval":(n,[e])=>{let t=e.sval;return t===null?null:new h.JString(t)},"StringTokenizer.<init>(String)":(n,[e])=>Ll(n,e,uh,!1),"StringTokenizer.<init>(String,String)":(n,[e,t])=>Ll(n,e,t===null?null:t.value,!1),"StringTokenizer.<init>(String,String,boolean)":(n,[e,t,i])=>Ll(n,e,t===null?null:t.value,i===1)};var yn="java.lang.ArithmeticException",le="java.lang.IllegalArgumentException",yu=-2147483648,$l=2147483647,Cu=-(1n<<63n),ch=(1n<<63n)-1n,y=n=>BigInt(n),Ea=n=>h.normLong(BigInt.asIntN(64,n));function $t(n,e){return(e<yu||e>$l)&&n.fail(yn,"integer overflow"),e}function Ft(n,e){return(e<Cu||e>ch)&&n.fail(yn,"long overflow"),h.normLong(e)}function La(n,e,t){t===0n&&n.fail(yn,"/ by zero");let i=e/t;return e%t!==0n&&e<0n!=t<0n?i-1n:i}function Ml(n,e,t){return e-La(n,e,t)*t}function ja(n,e,t){t===0n&&n.fail(yn,"/ by zero");let i=e/t;return e%t!==0n&&e<0n==t<0n?i+1n:i}function Bl(n,e,t){return e-ja(n,e,t)*t}var Ta=new DataView(new ArrayBuffer(8));function Cn(n,e){if(Number.isNaN(n)||n===(e?1/0:-1/0))return n;if(n===0)return e?Number.MIN_VALUE:-Number.MIN_VALUE;Ta.setFloat64(0,n);let t=Ta.getBigInt64(0);return t+=n>0===e?1n:-1n,Ta.setBigInt64(0,t),Ta.getFloat64(0)}function Ra(n,e){if(Number.isNaN(n)||n===(e?1/0:-1/0))return n;if(n===0)return e?h.intBitsToFloat(1):-h.intBitsToFloat(1);let t=h.floatToIntBits(n);return h.intBitsToFloat(t+(n>0===e?1:-1))}function hh(n){if(Number.isNaN(n))return NaN;if(!Number.isFinite(n))return 1/0;let e=Math.abs(n);return e===Number.MAX_VALUE?e-Cn(e,!1):Cn(e,!0)-e}function dh(n){if(!Number.isFinite(n)||Math.abs(n)>=2**52)return n;let e=Math.floor(n),t=n-e,i=t<.5?e:t>.5?e+1:e%2===0?e:e+1;return i===0&&(n<0||Object.is(n,-0))?-0:i}var pu=new WeakMap;function Su(n){let e=pu.get(n);return e||pu.set(n,e={identity:new WeakMap}),e}var b=n=>n,xu={"Math.pow(double,double)":(n,[e,t])=>Math.pow(b(e),b(t)),"Math.exp(double)":(n,[e])=>Math.exp(b(e)),"Math.log(double)":(n,[e])=>Math.log(b(e)),"Math.log10(double)":(n,[e])=>Math.log10(b(e)),"Math.sin(double)":(n,[e])=>Math.sin(b(e)),"Math.cos(double)":(n,[e])=>Math.cos(b(e)),"Math.tan(double)":(n,[e])=>Math.tan(b(e)),"Math.asin(double)":(n,[e])=>Math.asin(b(e)),"Math.acos(double)":(n,[e])=>Math.acos(b(e)),"Math.atan(double)":(n,[e])=>Math.atan(b(e)),"Math.atan2(double,double)":(n,[e,t])=>Math.atan2(b(e),b(t)),"Math.sinh(double)":(n,[e])=>Math.sinh(b(e)),"Math.cosh(double)":(n,[e])=>Math.cosh(b(e)),"Math.tanh(double)":(n,[e])=>Math.tanh(b(e)),"Math.cbrt(double)":(n,[e])=>Math.cbrt(b(e)),"Math.hypot(double,double)":(n,[e,t])=>Math.hypot(b(e),b(t)),"Math.expm1(double)":(n,[e])=>Math.expm1(b(e)),"Math.log1p(double)":(n,[e])=>Math.log1p(b(e)),"Math.signum(double)":(n,[e])=>b(e)>0?1:b(e)<0?-1:b(e),"Math.toRadians(double)":(n,[e])=>b(e)*.017453292519943295,"Math.toDegrees(double)":(n,[e])=>b(e)*57.29577951308232,"Math.rint(double)":(n,[e])=>dh(b(e)),"Math.ulp(double)":(n,[e])=>hh(b(e)),"Math.nextUp(double)":(n,[e])=>Cn(b(e),!0),"Math.nextDown(double)":(n,[e])=>Cn(b(e),!1),"Math.signum(float)":(n,[e])=>b(e)>0?1:b(e)<0?-1:b(e),"Math.ulp(float)":(n,[e])=>{let t=Math.abs(b(e));return Number.isNaN(t)?NaN:Number.isFinite(t)?t===34028234663852886e22?t-Ra(t,!1):Ra(t,!0)-t:1/0},"Math.nextUp(float)":(n,[e])=>Ra(b(e),!0),"Math.nextDown(float)":(n,[e])=>Ra(b(e),!1),"Math.random()":n=>{let e=Su(n);return e.random??=new ei(n.hash(),n.seed()),e.random.nextDouble()},"Math.floorDiv(int,int)":(n,[e,t])=>Number(BigInt.asIntN(32,La(n,y(e),y(t)))),"Math.floorDiv(long,int)":(n,[e,t])=>Ea(La(n,y(e),y(t))),"Math.floorDiv(long,long)":(n,[e,t])=>Ea(La(n,y(e),y(t))),"Math.floorMod(int,int)":(n,[e,t])=>Number(Ml(n,y(e),y(t))),"Math.floorMod(long,int)":(n,[e,t])=>Number(Ml(n,y(e),y(t))),"Math.floorMod(long,long)":(n,[e,t])=>h.normLong(Ml(n,y(e),y(t))),"Math.ceilDiv(int,int)":(n,[e,t])=>Number(BigInt.asIntN(32,ja(n,y(e),y(t)))),"Math.ceilDiv(long,int)":(n,[e,t])=>Ea(ja(n,y(e),y(t))),"Math.ceilDiv(long,long)":(n,[e,t])=>Ea(ja(n,y(e),y(t))),"Math.ceilMod(int,int)":(n,[e,t])=>Number(Bl(n,y(e),y(t))),"Math.ceilMod(long,int)":(n,[e,t])=>Number(Bl(n,y(e),y(t))),"Math.ceilMod(long,long)":(n,[e,t])=>h.normLong(Bl(n,y(e),y(t))),"Math.addExact(int,int)":(n,[e,t])=>$t(n,b(e)+b(t)),"Math.addExact(long,long)":(n,[e,t])=>Ft(n,y(e)+y(t)),"Math.subtractExact(int,int)":(n,[e,t])=>$t(n,b(e)-b(t)),"Math.subtractExact(long,long)":(n,[e,t])=>Ft(n,y(e)-y(t)),"Math.multiplyExact(int,int)":(n,[e,t])=>$t(n,Number(y(e)*y(t))),"Math.multiplyExact(long,int)":(n,[e,t])=>Ft(n,y(e)*y(t)),"Math.multiplyExact(long,long)":(n,[e,t])=>Ft(n,y(e)*y(t)),"Math.negateExact(int)":(n,[e])=>$t(n,-b(e)),"Math.negateExact(long)":(n,[e])=>Ft(n,-y(e)),"Math.incrementExact(int)":(n,[e])=>$t(n,b(e)+1),"Math.incrementExact(long)":(n,[e])=>Ft(n,y(e)+1n),"Math.decrementExact(int)":(n,[e])=>$t(n,b(e)-1),"Math.decrementExact(long)":(n,[e])=>Ft(n,y(e)-1n),"Math.toIntExact(long)":(n,[e])=>$t(n,Number(y(e))),"Math.absExact(int)":(n,[e])=>(e===yu&&n.fail(yn,"Overflow to represent absolute value of Integer.MIN_VALUE"),Math.abs(b(e))),"Math.absExact(long)":(n,[e])=>(y(e)===Cu&&n.fail(yn,"Overflow to represent absolute value of Long.MIN_VALUE"),h.normLong(y(e)<0n?-y(e):y(e))),"Math.clamp(long,int,int)":(n,[e,t,i])=>(b(t)>b(i)&&n.fail(le,`${t} > ${i}`),Number(y(e)<y(t)?y(t):y(e)>y(i)?y(i):y(e))),"Math.clamp(long,long,long)":(n,[e,t,i])=>(y(t)>y(i)&&n.fail(le,`${t} > ${i}`),h.normLong(y(e)<y(t)?y(t):y(e)>y(i)?y(i):y(e))),"Math.clamp(double,double,double)":(n,[e,t,i])=>(Number.isNaN(b(t))&&n.fail(le,"min is NaN"),Number.isNaN(b(i))&&n.fail(le,"max is NaN"),b(t)>b(i)&&n.fail(le,`${h.doubleToString(b(t))} > ${h.doubleToString(b(i))}`),Math.min(b(i),Math.max(b(e),b(t)))),"Math.clamp(float,float,float)":(n,[e,t,i])=>(Number.isNaN(b(t))&&n.fail(le,"min is NaN"),Number.isNaN(b(i))&&n.fail(le,"max is NaN"),b(t)>b(i)&&n.fail(le,`${h.floatToString(b(t))} > ${h.floatToString(b(i))}`),Math.min(b(i),Math.max(b(e),b(t))))},fh={"[I":"int","[J":"long","[D":"double","[C":"char","[Z":"boolean"};function Oa(n){return`${fh[n.descriptor]??"object array"}[${n.data.length}]`}var mh={I:"int",J:"long",D:"double",C:"char",Z:"boolean"};function Vu(n){return n.startsWith("[")?`${Vu(n.slice(1))}[]`:n.startsWith("L")?n.slice(1,-1):mh[n]??n}var Ia=n=>Vu(n.descriptor);function Dl(n){return n instanceof h.JString?"java.lang.String":n instanceof h.JBox?yt[n.kind]:n instanceof h.JArray?n.descriptor:n.className}function gh(n,e,t,i,a,r){let l="java.lang.ArrayStoreException",s="java.lang.ArrayIndexOutOfBoundsException";if(e===null||i===null)return n.fail("java.lang.NullPointerException",null);if(!(e instanceof h.JArray))return n.fail(l,`arraycopy: source type ${Dl(e)} is not an array`);if(!(i instanceof h.JArray))return n.fail(l,`arraycopy: destination type ${Dl(i)} is not an array`);let o=Z=>Z.descriptor.length===2;if((o(e)||o(i))&&e.descriptor!==i.descriptor){let Z=me=>o(me)?Ia(me):"object array[]";return n.fail(l,`arraycopy: type mismatch: can not copy ${Z(e)} into ${Z(i)}`)}if(t<0)return n.fail(s,`arraycopy: source index ${t} out of bounds for ${Oa(e)}`);if(a<0)return n.fail(s,`arraycopy: destination index ${a} out of bounds for ${Oa(i)}`);if(r<0)return n.fail(s,`arraycopy: length ${r} is negative`);if(t+r>e.data.length)return n.fail(s,`arraycopy: last source index ${t+r} out of bounds for ${Oa(e)}`);if(a+r>i.data.length)return n.fail(s,`arraycopy: last destination index ${a+r} out of bounds for ${Oa(i)}`);let c=e.descriptor.slice(1),d=i.descriptor.slice(1),m="Ljava.lang.Object;";if(!o(e)&&c!==d&&d!==m&&c!==m)return n.fail(l,`arraycopy: type mismatch: can not copy ${Ia(e)} into ${Ia(i)}`);n.charge(r>>>2);let v=e.data,C=i.data,k=Array.prototype.slice.call(v,t,t+r),Xe=c!==d&&d!==m?d.startsWith("L")?d.slice(1,-1):d:null;for(let Z=0;Z<k.length;Z++){let me=k[Z];if(Xe&&me!==null&&typeof me=="object"&&Dl(me)!==Xe)return n.fail(l,`arraycopy: element type mismatch: can not cast one of the elements of ${Ia(e)} to the type of the destination array, ${Xe}`);C[a+Z]=me}}var Eu={"System.currentTimeMillis()":()=>h.normLong(BigInt(Date.now())),"System.nanoTime()":()=>h.normLong(BigInt(Math.round(globalThis.performance.now()*1e6))),"System.exit(int)":(n,[e])=>n.exit(e),"System.lineSeparator()":()=>new h.JString(`\n`),"System.identityHashCode(Object)":(n,[e])=>{if(e===null)return 0;if(typeof e=="object"&&"hash"in e)return e.hash;let t=Su(n).identity,i=t.get(e);return i===void 0&&t.set(e,i=n.hash()),i},"System.arraycopy(Object,int,Object,int,int)":(n,[e,t,i,a,r])=>gh(n,e,t,i,a,r),"PrintStream.out.printf(String,Object[])":(n,[e,t])=>vu(n,"out",e,t),"PrintStream.err.printf(String,Object[])":(n,[e,t])=>vu(n,"err",e,t)};function vu(n,e,t,i){return u(At(n,t,i),a=>{n.print(e,a)})}var bu=0x5deece66dn,Nu=(1n<<48n)-1n,ei=class extends p{className="java.util.Random";#e=0n;#t=null;constructor(e,t){super(e),this.setSeed(t)}setSeed(e){this.#e=(BigInt.asIntN(64,e)^bu)&Nu,this.#t=null}next(e){return this.#e=this.#e*bu+0xbn&Nu,Number(BigInt.asIntN(32,this.#e>>BigInt(48-e)))}nextInt(){return this.next(32)}nextBounded(e){let t=this.next(31),i=e-1;if((e&i)===0)return Number(BigInt(e)*BigInt(t)>>31n);for(let a=t;a-(t=a%e)+i>$l;a=this.next(31));return t}nextLong(){return BigInt.asIntN(64,(BigInt(this.next(32))<<32n)+BigInt(this.next(32)))}nextDouble(){return Number((BigInt(this.next(26))<<27n)+BigInt(this.next(27)))*2**-53}nextGaussian(){if(this.#t!==null){let r=this.#t;return this.#t=null,r}let e,t,i;do e=2*this.nextDouble()-1,t=2*this.nextDouble()-1,i=e*e+t*t;while(i>=1||i===0);let a=Math.sqrt(-2*Math.log(i)/i);return this.#t=t*a,e*a}nextIntBetween(e,t){let i=this.nextInt(),a=t-e|0,r=a-1|0;if(a>0&&(a&r)===0)return(i&r)+e|0;if(a>0){for(let l=i>>>1;l+r-(i=l%a)>$l;l=this.nextInt()>>>1);return i+e|0}for(;i<e||i>=t;)i=this.nextInt();return i}nextLongBetween(e,t){let i=this.nextLong(),a=BigInt.asIntN(64,t-e),r=a-1n;if(a>0n&&(a&r)===0n)return BigInt.asIntN(64,(i&r)+e);if(a>0n){for(let l=BigInt.asUintN(64,i)>>1n;BigInt.asIntN(64,l+r-(i=l%a))<0n;l=BigInt.asUintN(64,this.nextLong())>>1n);return BigInt.asIntN(64,i+e)}for(;i<e||i>=t;)i=this.nextLong();return i}"nextInt()"(){return this.nextInt()}"nextInt(int)"(e,t){return b(t)<=0?e.fail(le,"bound must be positive"):this.nextBounded(b(t))}"nextInt(int,int)"(e,t,i){return b(t)>=b(i)?e.fail(le,"bound must be greater than origin"):this.nextIntBetween(b(t),b(i))}"nextLong()"(){return h.normLong(this.nextLong())}"nextLong(long)"(e,t){return y(t)<=0n?e.fail(le,"bound must be positive"):h.normLong(this.nextLongBetween(0n,y(t)))}"nextLong(long,long)"(e,t,i){return y(t)>=y(i)?e.fail(le,"bound must be greater than origin"):h.normLong(this.nextLongBetween(y(t),y(i)))}"nextDouble()"(){return this.nextDouble()}"nextDouble(double)"(e,t){let i=b(t);if(!(i>0&&Number.isFinite(i)))return e.fail(le,"bound must be finite and positive");let a=this.nextDouble()*i;return a<i?a:Cn(i,!1)}"nextDouble(double,double)"(e,t,i){let a=b(t),r=b(i);if(!(a<r&&Number.isFinite(r-a)))return e.fail(le,"bound must be greater than origin");let l=this.nextDouble()*(r-a)+a;return l<r?l:Cn(r,!1)}"nextBoolean()"(){return f(this.next(1)!==0)}"nextFloat()"(){return this.next(24)/(1<<24)}"nextGaussian()"(){return this.nextGaussian()}"setSeed(long)"(e,t){this.setSeed(y(t))}},Fl={"Random.<init>()":n=>new ei(n.hash(),n.seed()),"Random.<init>(long)":(n,[e])=>new ei(n.hash(),y(e))};H["stream()"]=(n,e)=>ra(n,e);H["parallelStream()"]=(n,e)=>ra(n,e,!0);Jn["chars()"]=(n,e)=>gl(n,e);Jn["lines()"]=(n,e)=>Un(n,()=>Wi(e.value).map(t=>new h.JString(t)));function ph(n){let e=Ar[n.startsWith("compareTo(")?"compareTo":n],t=Jn[n],i=n.slice(0,n.indexOf("(")),a=n.endsWith("()")?0:n.split(",").length,r=(l,s)=>{let o=s[0];if(o instanceof h.JObject&&o.base!==null){let d=n==="toString()"?l.toStringMethod(o):n==="hashCode()"?l.hashCodeMethod(o):n==="equals(Object)"?l.equalsMethod(o):l.overrideOf(o,n);return d<0?r(l,[o.base,...s.slice(1)]):(function*(){return yield{invoke:d,args:s}})()}if(o instanceof p&&!(o instanceof ye)){let d=o[n];if(typeof d=="function")switch(s.length){case 1:return d.call(o,l);case 2:return d.call(o,l,s[1]);case 3:return d.call(o,l,s[1],s[2]);case 4:return d.call(o,l,s[1],s[2],s[3]);default:return d.call(o,l,...s.slice(1))}}if(o instanceof h.JObject){let d=l.methodOf(o,i,a);if(d<0){let m=H[n];if(m)return m(l,o,s.slice(1));throw new Error(`library: ${o.className} has no ${n}`)}return(function*(){return yield{invoke:d,args:s}})()}if(o instanceof h.JString){if(!t)throw new Error(`library: no ${n} on a String`);return t(l,o,s)}if(o instanceof h.JLambda)return vh(n,l,o,s);if(o instanceof h.JBox){if(!e)throw new Error(`library: no ${n} on a boxed value`);return e(l,o,s)}if(o instanceof ye&&n===o.samKey)return u(o.call(l,s.slice(1)));let c=Reflect.get(o,n);if(typeof c!="function"&&o.opaque)return l.limitation(`${n.slice(0,n.indexOf("("))}() of an AbstractList subclass`);if(typeof c!="function"){let d=H[n];if(d)return d(l,o,s.slice(1));throw new Error(`library: ${o.className} has no ${n}`)}return c.call(o,l,...s.slice(1))};return r}function vh(n,e,t,i){if(n===t.samKey)return(function*(){return yield{invoke:t.method,args:[...t.captured,...i.slice(1)]}})();let a=H[n];if(a)return a(e,t,i.slice(1));switch(n){case"equals(Object)":return t===i[1]?1:0;case"hashCode()":return t.hash;default:return e.limitation(`${n} on a lambda`)}}function*bh(n,e){return e instanceof h.JLambda?n.limitation("printing a lambda"):yield*e.javaString(n)}var Nh=[[/^java\\.util\\.(ImmutableCollections\\$List(12|N)|Arrays\\$ArrayList|Collections\\$(EmptyList|SingletonList|CopiesList|UnmodifiableRandomAccessList|UnmodifiableList))$/,"java.util.List"],[/^java\\.util\\.(ImmutableCollections\\$Set(12|N)|ImmutableCollections\\$MapN\\$1|Collections\\$(EmptySet|SingletonSet|UnmodifiableSet|UnmodifiableMap\\$UnmodifiableEntrySet)|HashMap\\$(KeySet|EntrySet)|LinkedHashMap\\$Linked(KeySet|EntrySet)|AbstractMap\\$1)$/,"java.util.Set"],[/^java\\.util\\.(HashMap\\$Values|LinkedHashMap\\$LinkedValues|AbstractMap\\$2|Collections\\$UnmodifiableCollection)$/,"java.util.Collection"],[/^java\\.util\\.(ImmutableCollections\\$Map(1|N)|Collections\\$(EmptyMap|SingletonMap|UnmodifiableMap))$/,"java.util.Map"],[/^java\\.util\\.(HashMap\\$Node|KeyValueHolder|TreeMap\\$Entry|AbstractMap\\$SimpleImmutableEntry)$/,"java.util.Map$Entry"],[/^java\\.util\\.TreeMap\\$(AscendingSubMap|DescendingSubMap)$/,"java.util.NavigableMap"],[/^java\\.util\\.TreeMap\\$KeySet$/,"java.util.NavigableSet"],[/^java\\.util\\.TreeMap\\$(EntrySet|NavigableSubMap\\$EntrySetView)$/,"java.util.Set"],[/^java\\.util\\.TreeMap\\$Values$/,"java.util.Collection"],[/^java\\.util\\.(Regular|Jumbo)EnumSet$/,"java.util.EnumSet"],[/^java\\.io\\.PrintStream$/,"java.io.OutputStream"],[/(Iterator|Itr|\\$1|\\$2\\$1)$/,"java.util.Iterator"]];function yh(n,e){for(let[t,i]of Nh)if(t.test(n))return[n,...e.get(i)];return[n,"java.lang.Object"]}var Tu=n=>{Da(n),Object.setPrototypeOf(p.prototype,n.JLibObject.prototype);let e=no(),t=new Map,i=(r,l)=>{l.add(r.qualifiedName);for(let s of r.supertypes)s.tag==="library"&&i(s.symbol,l)};for(let r of e.values()){let l=new Set;i(r,l),l.add("java.lang.Object"),t.set(r.qualifiedName,[...l])}let a={...ci,...an,...pr,...xs,...Ds,...As,...os,...jr,...ks,...qe,...D,...qr,...xu,...Eu,...Fl,...Zo,...Ro,...ml,...Qo,...gu};for(let r of e.values())for(let l of[...r.methods,...r.constructors])if(!(!l.native||a[l.native])){if(l.isStatic||l.name==="<init>"){if(ro(l.native))continue;throw new Error(`library: no native for ${l.native}`)}a[l.native]=ph(l.native)}return vr.make=r=>Fl["Random.<init>()"](r,[]),a["Iterable.iterator"]=a["iterator()"],a["Iterator.hasNext"]=a["hasNext()"],a["Iterator.next"]=a["next()"],{classes:e,natives:a,toString:(r,l)=>bh(r,l),typesOf:r=>t.get(r)??yh(r,t),newList:(r,l)=>{let s=new se(r.hash());return r.allocate(l.length),s.es.push(...l),s},listItems:r=>r instanceof se?r.es:null}};var Ru=globalThis;Ru[ao]={common:Fa,lang:kr,regex:Ur,streams:pl,strings:Wr};Ru[io]=Tu;})();\n';export{e as JAVA_LIBRARY,t as JAVA_LIBRARY_SOURCE};
|