@blackglory/structures 0.10.14 → 0.10.16
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/README.md +21 -0
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +1398 -12170
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +1401 -12169
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +1398 -12170
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +1401 -12169
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/array.d.ts +4 -0
- package/lib/es2015/array.js +24 -0
- package/lib/es2015/array.js.map +1 -0
- package/lib/es2015/bit-set.js +1 -1
- package/lib/es2015/bit-set.js.map +1 -1
- package/lib/es2015/index.d.ts +1 -0
- package/lib/es2015/index.js +1 -0
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2018/array.d.ts +4 -0
- package/lib/es2018/array.js +24 -0
- package/lib/es2018/array.js.map +1 -0
- package/lib/es2018/bit-set.js +1 -1
- package/lib/es2018/index.d.ts +1 -0
- package/lib/es2018/index.js +1 -0
- package/lib/es2018/index.js.map +1 -1
- package/package.json +6 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Structures={})}(this,(function(t){"use strict";class e{constructor(t){this.value=t}get[Symbol.toStringTag](){return this.constructor.name}set(t){this.value=t}get(){return this.value}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={},o={};function i(t){return Array.isArray(t)}o.isntEmptyArray=o.isEmptyArray=o.isntArray=o.isArray=void 0,o.isArray=i,o.isntArray=function(t){return!i(t)},o.isEmptyArray=function(t){return 0===t.length},o.isntEmptyArray=function(t){return 0!==t.length};var a={},s={};function c(t){return null===t}s.isntNull=s.isNull=void 0,s.isNull=c,s.isntNull=function(t){return!c(t)};var u={};function l(t){return void 0===t}u.isntUndefined=u.isUndefined=void 0,u.isUndefined=l,u.isntUndefined=function(t){return!l(t)};var f={};function y(t){return"function"==typeof t}f.isntFunction=f.isFunction=void 0,f.isFunction=y,f.isntFunction=function(t){return!y(t)},a.isntAsyncIterable=a.isAsyncIterable=void 0;const d=s,v=u,h=f;function p(t){return(0,d.isntNull)(t)&&(0,v.isntUndefined)(t)&&(0,h.isFunction)(t[Symbol.asyncIterator])}a.isAsyncIterable=p,a.isntAsyncIterable=function(t){return!p(t)};var m={};function b(t){return"bigint"==typeof t}m.isntBigInt=m.isBigInt=void 0,m.isBigInt=b,m.isntBigInt=function(t){return!b(t)};var g={};function w(t){return"boolean"==typeof t}g.isntBoolean=g.isBoolean=void 0,g.isBoolean=w,g.isntBoolean=function(t){return!w(t)};var A={},I={};function S(t){return"string"==typeof t}I.isntString=I.isString=void 0,I.isString=S,I.isntString=function(t){return!S(t)},A.isntChar=A.isChar=void 0;const T=I;function x(t){return(0,T.isString)(t)&&1===t.length}A.isChar=x,A.isntChar=function(t){return!x(t)};var E={};function _(t){return t instanceof Date}E.isntDate=E.isDate=void 0,E.isDate=_,E.isntDate=function(t){return!_(t)};var O={};O.inEnum=void 0,O.inEnum=function(t,e){return Object.values(e).includes(t)};var j={};function N(t){return t instanceof Error}j.isntError=j.isError=void 0,j.isError=N,j.isntError=function(t){return!N(t)};var k={};function P(t){return!t}k.isntFalsy=k.isFalsy=void 0,k.isFalsy=P,k.isntFalsy=function(t){return!P(t)};var B={};B.isntIterable=B.isIterable=void 0;const q=s,C=u,R=f;function z(t){return(0,q.isntNull)(t)&&(0,C.isntUndefined)(t)&&(0,R.isFunction)(t[Symbol.iterator])}B.isIterable=z,B.isntIterable=function(t){return!z(t)};var U={},M={};function D(t){return"number"==typeof t}function F(t){return Number.isNaN(t)}M.isntNaN=M.isNaN=M.isNegativeInfinity=M.isPositiveInfinity=M.isFinite=M.isntNumber=M.isNumber=void 0,M.isNumber=D,M.isntNumber=function(t){return!D(t)},M.isFinite=function(t){return Number.isFinite(t)},M.isPositiveInfinity=function(t){return t===1/0},M.isNegativeInfinity=function(t){return t===-1/0},M.isNaN=F,M.isntNaN=function(t){return!F(t)};var J={},V="object"==typeof n&&n&&n.Object===Object&&n,L="object"==typeof self&&self&&self.Object===Object&&self,K=(V||L||Function("return this")()).Symbol,W=K,Y=Object.prototype,H=Y.hasOwnProperty,$=Y.toString,Q=W?W.toStringTag:void 0;var X=function(t){var e=H.call(t,Q),n=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var o=$.call(t);return r&&(e?t[Q]=n:delete t[Q]),o},G=Object.prototype.toString;var Z=X,tt=function(t){return G.call(t)},et=K?K.toStringTag:void 0;var nt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":et&&et in Object(t)?Z(t):tt(t)};var rt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var ot=nt,it=rt,at=function(t){return null!=t&&"object"==typeof t},st=Function.prototype,ct=Object.prototype,ut=st.toString,lt=ct.hasOwnProperty,ft=ut.call(Object);var yt=function(t){if(!at(t)||"[object Object]"!=ot(t))return!1;var e=it(t);if(null===e)return!0;var n=lt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==ft},dt=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};J.isntEmptyObject=J.isEmptyObject=J.isntPlainObject=J.isPlainObject=J.isntObject=J.isObject=void 0;const vt=dt(yt);function ht(t){return null!==t&&"object"==typeof t}function pt(t){return(0,vt.default)(t)}J.isObject=ht,J.isntObject=function(t){return!ht(t)},J.isPlainObject=pt,J.isntPlainObject=function(t){return!pt(t)},J.isEmptyObject=function(t){return 0===Object.keys(t).length},J.isntEmptyObject=function(t){return 0!==Object.keys(t).length},U.isntJsonable=U.isJsonable=U.isntJson=U.isJson=void 0;const mt=s,bt=g,gt=I,wt=M,At=o,It=J;function St(t){return(0,mt.isNull)(t)||(0,bt.isBoolean)(t)||(0,gt.isString)(t)||(0,wt.isNumber)(t)||(0,At.isArray)(t)&&t.every(St)||(0,It.isPlainObject)(t)&&Object.values(t).every(St)}U.isJson=St,U.isntJson=function(t){return!St(t)},U.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},U.isntJsonable=function t(e){return!t()};var Tt={};Tt.isPromiseLike=Tt.isntPromiseLike=Tt.isntPromise=Tt.isPromise=void 0;const xt=J,Et=f;function _t(t){return t instanceof Promise}function Ot(t){return(0,xt.isObject)(t)&&(0,Et.isFunction)(t.then)}Tt.isPromise=_t,Tt.isntPromise=function(t){return!_t(t)},Tt.isntPromiseLike=function(t){return!Ot(t)},Tt.isPromiseLike=Ot;var jt={};jt.isAbsoluteURL=void 0,jt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var Nt={};function kt(t){return t instanceof RegExp}Nt.isntRegExp=Nt.isRegExp=void 0,Nt.isRegExp=kt,Nt.isntRegExp=function(t){return!kt(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(o,t),r(a,t),r(m,t),r(g,t),r(A,t),r(E,t),r(O,t),r(j,t),r(k,t),r(f,t),r(B,t),r(U,t),r(s,t),r(M,t),r(J,t),r(Tt,t),r(I,t),r(u,t),r(jt,t),r(Nt,t)}(r);class Pt{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(t,e){this.map.has(t)||this.map.set(t,new Set);return this.map.get(t).add(n),()=>{if(!this.map.has(t))return;const e=this.map.get(t);e.delete(n),0===e.size&&this.map.delete(t)};function n(...t){e(...t)}}once(t,e){const n=this.on(t,((...t)=>{e(...t),n()}));return n}emit(t,...e){this.map.has(t)&&this.map.get(t).forEach((t=>t(...e)))}}class Bt{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.set(this.hash(t),e),this}has(t){return this.map.has(this.hash(t))}get(t){return this.map.get(this.hash(t))}delete(t){return this.map.delete(this.hash(t))}clear(){this.map.clear()}}class qt{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(t){return this.map.set(this.hash(t),t),this}delete(t){return this.map.delete(this.hash(t))}has(t){return this.map.has(this.hash(t))}clear(){this.map.clear()}values(){return this.map.values()}}class Ct{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...t){this.items.push(...t)}dequeue(){return this.items.shift()}remove(t){let e;for(;(e=this.items.indexOf(t))>=0;)this.items.splice(e,1)}}var Rt={},zt={},Ut={},Mt={},Dt={},Ft={},Jt={};Jt.go=void 0,Jt.go=function(t){return t()},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Jt,t)}(Ft);var Vt={},Lt={},Kt={},Wt={},Yt={},Ht={},$t={CustomError:void 0};class Qt extends Error{get name(){return this.constructor.name}}$t.CustomError=Qt;var Xt={ExpectedError:void 0};const Gt=$t;class Zt extends Gt.CustomError{}Xt.ExpectedError=Zt;var te={AssertionError:void 0};const ee=$t;class ne extends ee.CustomError{}te.AssertionError=ne;var re={};re.normalize=void 0,re.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var oe={refute:void 0};const ie=Xt;oe.refute=function(t,e){if(t)throw new ie.ExpectedError(e)};var ae={assert:void 0};const se=te;ae.assert=function(t,e){if(!t)throw new se.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r($t,t),r(Xt,t),r(te,t),r(re,t),r(oe,t),r(ae,t)}(Ht),Yt.chunkAsync=void 0;const ce=Ft,ue=Ht;Yt.chunkAsync=function(t,e){return(0,ue.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,ue.assert)(e>0,"The parameter size must be greater than 0"),(0,ce.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var le={},fe={},ye={};function de(t){return Array.isArray(t)}ye.isntEmptyArray=ye.isEmptyArray=ye.isntArray=ye.isArray=void 0,ye.isArray=de,ye.isntArray=function(t){return!de(t)},ye.isEmptyArray=function(t){return 0===t.length},ye.isntEmptyArray=function(t){return 0!==t.length};var ve={},he={};function pe(t){return null===t}he.isntNull=he.isNull=void 0,he.isNull=pe,he.isntNull=function(t){return!pe(t)};var me={};function be(t){return void 0===t}me.isntUndefined=me.isUndefined=void 0,me.isUndefined=be,me.isntUndefined=function(t){return!be(t)},ve.isntAsyncIterable=ve.isAsyncIterable=void 0;const ge=he,we=me;function Ae(t){return(0,ge.isntNull)(t)&&(0,we.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}ve.isAsyncIterable=Ae,ve.isntAsyncIterable=function(t){return!Ae(t)};var Ie={};function Se(t){return"bigint"==typeof t}Ie.isntBigInt=Ie.isBigInt=void 0,Ie.isBigInt=Se,Ie.isntBigInt=function(t){return!Se(t)};var Te={};function xe(t){return"boolean"==typeof t}Te.isntBoolean=Te.isBoolean=void 0,Te.isBoolean=xe,Te.isntBoolean=function(t){return!xe(t)};var Ee={},_e={};function Oe(t){return"string"==typeof t}_e.isntString=_e.isString=void 0,_e.isString=Oe,_e.isntString=function(t){return!Oe(t)},Ee.isntChar=Ee.isChar=void 0;const je=_e;function Ne(t){return(0,je.isString)(t)&&1===t.length}Ee.isChar=Ne,Ee.isntChar=function(t){return!Ne(t)};var ke={};function Pe(t){return t instanceof Date}ke.isntDate=ke.isDate=void 0,ke.isDate=Pe,ke.isntDate=function(t){return!Pe(t)};var Be={};Be.inEnum=void 0,Be.inEnum=function(t,e){return Object.values(e).includes(t)};var qe={};function Ce(t){return t instanceof Error}qe.isntError=qe.isError=void 0,qe.isError=Ce,qe.isntError=function(t){return!Ce(t)};var Re={};function ze(t){return!t}Re.isntFalsy=Re.isFalsy=void 0,Re.isFalsy=ze,Re.isntFalsy=function(t){return!ze(t)};var Ue={};function Me(t){return"function"==typeof t}Ue.isntFunction=Ue.isFunction=void 0,Ue.isFunction=Me,Ue.isntFunction=function(t){return!Me(t)};var De={};De.isntIterable=De.isIterable=void 0;const Fe=he,Je=me;function Ve(t){return(0,Fe.isntNull)(t)&&(0,Je.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}De.isIterable=Ve,De.isntIterable=function(t){return!Ve(t)};var Le={},Ke={};var We=Function.prototype,Ye=Object.prototype,He=We.toString,$e=Ye.hasOwnProperty,Qe=He.call(Object),Xe=Ye.toString,Ge=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var Ze=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=Xe.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=Ge(t);if(null===e)return!0;var n=$e.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&He.call(n)==Qe},tn=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Ke.isntEmptyObject=Ke.isEmptyObject=Ke.isntPlainObject=Ke.isPlainObject=Ke.isntObject=Ke.isObject=void 0;const en=tn(Ze);function nn(t){return null!==t&&"object"==typeof t}function rn(t){return(0,en.default)(t)}Ke.isObject=nn,Ke.isntObject=function(t){return!nn(t)},Ke.isPlainObject=rn,Ke.isntPlainObject=function(t){return!rn(t)},Ke.isEmptyObject=function(t){return 0===Object.keys(t).length},Ke.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var on={};function an(t){return"number"==typeof t}on.isntNumber=on.isNumber=void 0,on.isNumber=an,on.isntNumber=function(t){return!an(t)},Le.isntJsonRpcError=Le.isJsonRpcError=Le.isntJsonRpcSuccess=Le.isJsonRpcSuccess=Le.isntJsonRpcRequest=Le.isJsonRpcRequest=Le.isntJsonRpcNotification=Le.isJsonRpcNotification=void 0;const sn=ye,cn=Ke,un=_e,ln=on,fn=me;function yn(t){return(0,un.isString)(t)||(0,ln.isNumber)(t)}function dn(t){return(0,sn.isArray)(t)||(0,cn.isObject)(t)}function vn(t){return(0,cn.isPlainObject)(t)&&(0,un.isString)(t.jsonrpc)&&(0,un.isString)(t.method)&&(0,fn.isUndefined)(t.id)&&dn(t.params)}function hn(t){return(0,cn.isPlainObject)(t)&&(0,un.isString)(t.jsonrpc)&&(0,un.isString)(t.method)&&yn(t.id)&&dn(t.params)}function pn(t){return(0,cn.isPlainObject)(t)&&(0,un.isString)(t.jsonrpc)&&(0,un.isString)(t.id)&&"result"in t}function mn(t){return(0,cn.isPlainObject)(t)&&(0,un.isString)(t.jsonrpc)&&yn(t.id)&&function(t){return(0,cn.isPlainObject)(t)&&(0,ln.isNumber)(t.code)&&(0,un.isString)(t.message)&&((0,fn.isUndefined)(t.data)||(0,cn.isObject)(t.data))}(t.error)}Le.isJsonRpcNotification=vn,Le.isntJsonRpcNotification=function(t){return!vn(t)},Le.isJsonRpcRequest=hn,Le.isntJsonRpcRequest=function(t){return!hn(t)},Le.isJsonRpcSuccess=pn,Le.isntJsonRpcSuccess=function(t){return!pn(t)},Le.isJsonRpcError=mn,Le.isntJsonRpcError=function(t){return!mn(t)};var bn={};bn.isntJson=bn.isJson=void 0,bn.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},bn.isntJson=function t(e){return!t()};var gn={};gn.isAbsoluteURL=void 0,gn.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(ye,t),r(ve,t),r(Ie,t),r(Te,t),r(Ee,t),r(ke,t),r(Be,t),r(qe,t),r(Re,t),r(Ue,t),r(De,t),r(Le,t),r(bn,t),r(he,t),r(on,t),r(Ke,t),r(_e,t),r(me,t),r(gn,t)}(fe),le.chunkByAsync=void 0;const wn=fe;le.chunkByAsync=function(t,e){return(0,wn.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var An={};An.chunkBy=void 0,An.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var In={chunk:void 0};const Sn=Ft,Tn=Ht;In.chunk=function(t,e){return(0,Tn.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Tn.assert)(e>0,"The parameter size must be greater than 0"),(0,Sn.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var xn={concatAsync:void 0};const En=fe,_n=Ft;xn.concatAsync=function(t,...e){return(0,_n.go)((async function*(){for(const n of[t,...e])if((0,En.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var On={concat:void 0};const jn=Ft;On.concat=function(t,...e){return(0,jn.go)((function*(){for(const n of[t,...e])yield*n}))};var Nn={},kn={};kn.copyIterable=kn.copyAsyncIterable=void 0,kn.copyAsyncIterable=async function*(t){for await(const e of t)yield e},kn.copyIterable=function*(t){for(const e of t)yield e},Nn.dropAsync=void 0;const Pn=Ft,Bn=kn,qn=Ht;Nn.dropAsync=function(t,e){return(0,qn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Bn.copyAsyncIterable)(t):(0,Pn.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Cn={dropRightAsync:void 0};const Rn=Ft,zn=kn,Un=Ht;Cn.dropRightAsync=function(t,e){return(0,Un.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Un.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,zn.copyAsyncIterable)(t):(0,Rn.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var Mn={dropRight:void 0};const Dn=Ft,Fn=kn,Jn=Ht;Mn.dropRight=function(t,e){return(0,Jn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Jn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Fn.copyIterable)(t):(0,Dn.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Vn={dropUntilAsync:void 0};const Ln=fe;Vn.dropUntilAsync=function(t,e){return(0,Ln.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Kn={};Kn.dropUntil=void 0,Kn.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Wn={drop:void 0};const Yn=Ft,Hn=kn,$n=Ht;Wn.drop=function(t,e){return(0,$n.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,$n.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Hn.copyIterable)(t):(0,Yn.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Qn={filterAsync:void 0};const Xn=fe;Qn.filterAsync=function(t,e){return(0,Xn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var Gn={};Gn.filter=void 0,Gn.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Zn={},tr={},er={flattenByAsync:void 0};const nr=fe;function rr(t){return(0,nr.isIterable)(t)&&(0,nr.isntChar)(t)}er.flattenByAsync=function(t,e){return(0,nr.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)rr(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)rr(o)&&await e(o,r)?yield*n(o,r+1):yield o}},tr.flattenDeepAsync=void 0;const or=er,ir=Ht;tr.flattenDeepAsync=function(t,e=1/0){return(0,ir.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ir.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,or.flattenByAsync)(t,((t,n)=>n<=e))},Zn.flattenAsync=void 0;const ar=tr;Zn.flattenAsync=function(t){return(0,ar.flattenDeepAsync)(t,1)};var sr={flattenBy:void 0};const cr=fe;sr.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,cr.isIterable)(o=i)&&(0,cr.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var ur={flattenDeep:void 0};const lr=sr,fr=Ht;ur.flattenDeep=function(t,e=1/0){return(0,fr.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,fr.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,lr.flattenBy)(t,((t,n)=>n<=e))};var yr={flatten:void 0};const dr=ur;yr.flatten=function(t){return(0,dr.flattenDeep)(t,1)};var vr={mapAsync:void 0};const hr=fe;vr.mapAsync=function(t,e){return(0,hr.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var pr={};pr.map=void 0,pr.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var mr={repeatAsync:void 0};const br=Ft,gr=Ht;mr.repeatAsync=function(t,e){return(0,gr.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,gr.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,br.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var wr={repeat:void 0};const Ar=Ft,Ir=Ht;wr.repeat=function(t,e){return(0,Ir.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Ir.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Ar.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Sr={sliceAsync:void 0};const Tr=Ft,xr=Ht;Sr.sliceAsync=function(t,e,n=1/0){return(0,xr.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,xr.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,xr.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,xr.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Tr.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Er={slice:void 0};const _r=Ft,Or=Ht;Er.slice=function(t,e,n=1/0){return(0,Or.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Or.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Or.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Or.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,_r.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var jr={};jr.splitAsync=void 0,jr.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Nr={splitByAsync:void 0};const kr=fe;Nr.splitByAsync=function(t,e){return(0,kr.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var Pr={};Pr.splitBy=void 0,Pr.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Br={};Br.split=void 0,Br.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var qr={takeAsync:void 0};const Cr=Ft,Rr=Ht;qr.takeAsync=function(t,e){return(0,Rr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Rr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Cr.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var zr={takeRightAsync:void 0};const Ur=Ft,Mr=Ht;zr.takeRightAsync=function(t,e){return(0,Mr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ur.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Dr={takeRight:void 0};const Fr=Ft,Jr=Ht;Dr.takeRight=function(t,e){return(0,Jr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Jr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Fr.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Vr={takeUntilAsync:void 0};const Lr=fe;Vr.takeUntilAsync=function(t,e){return(0,Lr.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var Kr={};Kr.takeUntil=void 0,Kr.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Wr={take:void 0};const Yr=Ft,Hr=Ht;Wr.take=function(t,e){return(0,Hr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Hr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Yr.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var $r={tapAsync:void 0};const Qr=fe;$r.tapAsync=function(t,e){return(0,Qr.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var Xr={};Xr.tap=void 0,Xr.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Gr={};Gr.toAsyncIterable=void 0,Gr.toAsyncIterable=async function*(t){for(const e of t)yield e};var Zr={};Zr.transformAsync=void 0,Zr.transformAsync=async function*(t,e){yield*e(t)};var to={};to.transform=void 0,to.transform=function*(t,e){yield*e(t)};var eo={};eo.uniqAsync=void 0,eo.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var no={uniqByAsync:void 0};const ro=fe;no.uniqByAsync=function(t,e){return(0,ro.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var oo={};oo.uniqBy=void 0,oo.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var io={};io.uniq=void 0,io.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var ao={zipAsync:void 0};const so=fe;var co;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(co||(co={})),ao.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,so.isAsyncIterable)(t)?[co.Async,t[Symbol.asyncIterator]()]:[co.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===co.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===co.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var uo={};uo.zip=void 0,uo.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Yt,t),r(le,t),r(An,t),r(In,t),r(xn,t),r(On,t),r(Nn,t),r(Cn,t),r(Mn,t),r(Vn,t),r(Kn,t),r(Wn,t),r(Qn,t),r(Gn,t),r(Zn,t),r(er,t),r(sr,t),r(tr,t),r(ur,t),r(yr,t),r(vr,t),r(pr,t),r(mr,t),r(wr,t),r(Sr,t),r(Er,t),r(jr,t),r(Nr,t),r(Pr,t),r(Br,t),r(qr,t),r(zr,t),r(Dr,t),r(Vr,t),r(Kr,t),r(Wr,t),r($r,t),r(Xr,t),r(Gr,t),r(Zr,t),r(to,t),r(eo,t),r(no,t),r(oo,t),r(io,t),r(ao,t),r(uo,t)}(Wt);var lo={},fo={};fo.consume=void 0,fo.consume=function(t,e){return e(t)};var yo={eachAsync:void 0};const vo=fe;yo.eachAsync=function(t,e){return(0,vo.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var ho={};ho.each=void 0,ho.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var po={everyAsync:void 0};const mo=fe;po.everyAsync=function(t,e){return(0,mo.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var bo={};bo.every=void 0,bo.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var go={findAsync:void 0};const wo=fe;go.findAsync=function(t,e){return(0,wo.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var Ao={};Ao.find=void 0,Ao.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Io={};Io.firstAsync=void 0,Io.firstAsync=async function(t){for await(const e of t)return e};var So={};So.first=void 0,So.first=function(t){for(const e of t)return e};var To={};To.includesAsync=void 0,To.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var xo={};xo.includes=void 0,xo.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Eo={};Eo.matchAsync=void 0,Eo.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var _o={};_o.match=void 0,_o.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Oo={reduceAsync:void 0};const jo=fe;Oo.reduceAsync=function(t,e,n){return(0,jo.isUndefined)(n)?function(t,e){return(0,jo.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,jo.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var No={reduce:void 0};const ko=fe;No.reduce=function(t,e,n){return(0,ko.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var Po={someAsync:void 0};const Bo=fe;Po.someAsync=function(t,e){return(0,Bo.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var qo={};qo.some=void 0,qo.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Co={};Co.lastAsync=void 0,Co.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Ro={};Ro.last=void 0,Ro.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var zo={toArrayAsync:void 0};const Uo=fo;zo.toArrayAsync=function(t){return(0,Uo.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Mo={toArray:void 0};const Do=fo;Mo.toArray=function(t){return(0,Do.consume)(t,(t=>Array.from(t)))};var Fo={toSetAsync:void 0};const Jo=fo;Fo.toSetAsync=function(t){return(0,Jo.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Vo={toSet:void 0};const Lo=fo;Vo.toSet=function(t){return(0,Lo.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(fo,t),r(yo,t),r(ho,t),r(po,t),r(bo,t),r(go,t),r(Ao,t),r(Io,t),r(So,t),r(To,t),r(xo,t),r(Eo,t),r(_o,t),r(Oo,t),r(No,t),r(Po,t),r(qo,t),r(Co,t),r(Ro,t),r(zo,t),r(Mo,t),r(Fo,t),r(Vo,t)}(lo),function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Wt,t),r(lo,t)}(Kt);var Ko={},Wo={};Wo.traverseErrorPrototypeChain=void 0,Wo.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Ko.getErrorNames=void 0;const Yo=fe,Ho=Wo;Ko.getErrorNames=function*(t){var e;if((0,Yo.isError)(t))for(const n of(0,Ho.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var $o={isSerializableError:void 0};const Qo=fe;$o.isSerializableError=function(t){return(0,Qo.isObject)(t)&&(0,Qo.isString)(t.name)&&(0,Qo.isString)(t.message)&&((0,Qo.isString)(t.stack)||(0,Qo.isNull)(t.stack))&&(0,Qo.isArray)(t.ancestors)&&t.ancestors.every(Qo.isString)},Lt.CustomError=void 0;const Xo=Kt,Go=Ko,Zo=fe,ti=$o;class ei extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Xo.first)((0,Go.getErrorNames)(this)))&&void 0!==t?t:ei.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Zo.isError)(t)||(0,ti.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Go.getErrorNames)(this.prototype)].reverse(),r=(0,Xo.toArray)((0,Go.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Lt.CustomError=ei;var ni={AssertionError:void 0};const ri=Lt;class oi extends ri.CustomError{}ni.AssertionError=oi;var ii={normalize:void 0};const ai=Ko,si=Kt;ii.normalize=function(t){var e;const[n,...r]=(0,si.toArray)((0,ai.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var ci={},ui={},li={};li.pass=void 0,li.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(li,t)}(ui),ci.hydrate=void 0;const fi=ui;function yi(t,e){const n=function(){(0,fi.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}ci.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=yi(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var di={assert:void 0};const vi=ni;di.assert=function(t,e){if(!t)throw new vi.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Lt,t),r(ni,t),r($o,t),r(ii,t),r(ci,t),r(di,t),r(Ko,t),r(Wo,t)}(Vt),Dt.chunkAsync=void 0;const hi=Ft,pi=Vt;Dt.chunkAsync=function(t,e){return(0,pi.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,pi.assert)(e>0,"The parameter size must be greater than 0"),(0,hi.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var mi={chunkByAsync:void 0};const bi=fe;mi.chunkByAsync=function(t,e){return(0,bi.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var gi={};gi.chunkBy=void 0,gi.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var wi={chunk:void 0};const Ai=Ft,Ii=Vt;wi.chunk=function(t,e){return(0,Ii.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Ii.assert)(e>0,"The parameter size must be greater than 0"),(0,Ai.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Si={concatAsync:void 0};const Ti=fe,xi=Ft;Si.concatAsync=function(t,...e){return(0,xi.go)((async function*(){for(const n of[t,...e])if((0,Ti.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Ei={concat:void 0};const _i=Ft;Ei.concat=function(t,...e){return(0,_i.go)((function*(){for(const n of[t,...e])yield*n}))};var Oi={},ji={};ji.copyIterable=ji.copyAsyncIterable=void 0,ji.copyAsyncIterable=async function*(t){for await(const e of t)yield e},ji.copyIterable=function*(t){for(const e of t)yield e},Oi.dropAsync=void 0;const Ni=Ft,ki=ji,Pi=Vt;Oi.dropAsync=function(t,e){return(0,Pi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Pi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ki.copyAsyncIterable)(t):(0,Ni.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Bi={dropRightAsync:void 0};const qi=Ft,Ci=ji,Ri=Vt;Bi.dropRightAsync=function(t,e){return(0,Ri.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ri.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ci.copyAsyncIterable)(t):(0,qi.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var zi={dropRight:void 0};const Ui=Ft,Mi=ji,Di=Vt;zi.dropRight=function(t,e){return(0,Di.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Di.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Mi.copyIterable)(t):(0,Ui.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Fi={dropUntilAsync:void 0};const Ji=fe;Fi.dropUntilAsync=function(t,e){return(0,Ji.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Vi={};Vi.dropUntil=void 0,Vi.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Li={drop:void 0};const Ki=Ft,Wi=ji,Yi=Vt;Li.drop=function(t,e){return(0,Yi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Yi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Wi.copyIterable)(t):(0,Ki.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Hi={filterAsync:void 0};const $i=fe;Hi.filterAsync=function(t,e){return(0,$i.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var Qi={};Qi.filter=void 0,Qi.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Xi={},Gi={},Zi={flattenByAsync:void 0};const ta=fe;function ea(t){return(0,ta.isIterable)(t)&&(0,ta.isntChar)(t)}Zi.flattenByAsync=function(t,e){return(0,ta.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)ea(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)ea(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Gi.flattenDeepAsync=void 0;const na=Zi,ra=Vt;Gi.flattenDeepAsync=function(t,e=1/0){return(0,ra.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ra.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,na.flattenByAsync)(t,((t,n)=>n<=e))},Xi.flattenAsync=void 0;const oa=Gi;Xi.flattenAsync=function(t){return(0,oa.flattenDeepAsync)(t,1)};var ia={flattenBy:void 0};const aa=fe;ia.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,aa.isIterable)(o=i)&&(0,aa.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var sa={flattenDeep:void 0};const ca=ia,ua=Vt;sa.flattenDeep=function(t,e=1/0){return(0,ua.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ua.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ca.flattenBy)(t,((t,n)=>n<=e))};var la={flatten:void 0};const fa=sa;la.flatten=function(t){return(0,fa.flattenDeep)(t,1)};var ya={mapAsync:void 0};const da=fe;ya.mapAsync=function(t,e){return(0,da.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var va={};va.map=void 0,va.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var ha={repeatAsync:void 0};const pa=Ft,ma=Vt;ha.repeatAsync=function(t,e){return(0,ma.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,ma.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,pa.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var ba={repeat:void 0};const ga=Ft,wa=Vt;ba.repeat=function(t,e){return(0,wa.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,wa.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,ga.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Aa={sliceAsync:void 0};const Ia=Ft,Sa=Vt;Aa.sliceAsync=function(t,e,n=1/0){return(0,Sa.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Sa.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Sa.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Sa.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Ia.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ta={slice:void 0};const xa=Ft,Ea=Vt;Ta.slice=function(t,e,n=1/0){return(0,Ea.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Ea.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Ea.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Ea.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,xa.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var _a={};_a.splitAsync=void 0,_a.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Oa={splitByAsync:void 0};const ja=fe;Oa.splitByAsync=function(t,e){return(0,ja.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var Na={};Na.splitBy=void 0,Na.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var ka={};ka.split=void 0,ka.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Pa={takeAsync:void 0};const Ba=Ft,qa=Vt;Pa.takeAsync=function(t,e){return(0,qa.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qa.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ba.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Ca={takeRightAsync:void 0};const Ra=Ft,za=Vt;Ca.takeRightAsync=function(t,e){return(0,za.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,za.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ra.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Ua={takeRight:void 0};const Ma=Ft,Da=Vt;Ua.takeRight=function(t,e){return(0,Da.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Da.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ma.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Fa={takeUntilAsync:void 0};const Ja=fe;Fa.takeUntilAsync=function(t,e){return(0,Ja.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var Va={};Va.takeUntil=void 0,Va.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var La={take:void 0};const Ka=Ft,Wa=Vt;La.take=function(t,e){return(0,Wa.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Wa.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ka.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Ya={tapAsync:void 0};const Ha=fe;Ya.tapAsync=function(t,e){return(0,Ha.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var $a={};$a.tap=void 0,$a.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Qa={};Qa.toAsyncIterable=void 0,Qa.toAsyncIterable=async function*(t){for(const e of t)yield e};var Xa={};Xa.transformAsync=void 0,Xa.transformAsync=async function*(t,e){yield*e(t)};var Ga={};Ga.transform=void 0,Ga.transform=function*(t,e){yield*e(t)};var Za={};Za.uniqAsync=void 0,Za.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var ts={uniqByAsync:void 0};const es=fe;ts.uniqByAsync=function(t,e){return(0,es.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var ns={};ns.uniqBy=void 0,ns.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var rs={};rs.uniq=void 0,rs.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var os={zipAsync:void 0};const is=fe;var as;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(as||(as={})),os.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,is.isAsyncIterable)(t)?[as.Async,t[Symbol.asyncIterator]()]:[as.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===as.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===as.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var ss={};ss.zip=void 0,ss.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Dt,t),r(mi,t),r(gi,t),r(wi,t),r(Si,t),r(Ei,t),r(Oi,t),r(Bi,t),r(zi,t),r(Fi,t),r(Vi,t),r(Li,t),r(Hi,t),r(Qi,t),r(Xi,t),r(Zi,t),r(ia,t),r(Gi,t),r(sa,t),r(la,t),r(ya,t),r(va,t),r(ha,t),r(ba,t),r(Aa,t),r(Ta,t),r(_a,t),r(Oa,t),r(Na,t),r(ka,t),r(Pa,t),r(Ca,t),r(Ua,t),r(Fa,t),r(Va,t),r(La,t),r(Ya,t),r($a,t),r(Qa,t),r(Xa,t),r(Ga,t),r(Za,t),r(ts,t),r(ns,t),r(rs,t),r(os,t),r(ss,t)}(Mt);var cs={},us={};us.consume=void 0,us.consume=function(t,e){return e(t)};var ls={eachAsync:void 0};const fs=fe;ls.eachAsync=function(t,e){return(0,fs.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var ys={};ys.each=void 0,ys.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var ds={everyAsync:void 0};const vs=fe;ds.everyAsync=function(t,e){return(0,vs.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var hs={};hs.every=void 0,hs.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var ps={findAsync:void 0};const ms=fe;ps.findAsync=function(t,e){return(0,ms.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var bs={};bs.find=void 0,bs.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var gs={};gs.firstAsync=void 0,gs.firstAsync=async function(t){for await(const e of t)return e};var ws={};ws.first=void 0,ws.first=function(t){for(const e of t)return e};var As={};As.includesAsync=void 0,As.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Is={};Is.includes=void 0,Is.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Ss={};Ss.matchAsync=void 0,Ss.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Ts={};Ts.match=void 0,Ts.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var xs={reduceAsync:void 0};const Es=fe;xs.reduceAsync=function(t,e,n){return(0,Es.isUndefined)(n)?function(t,e){return(0,Es.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Es.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var _s={reduce:void 0};const Os=fe;_s.reduce=function(t,e,n){return(0,Os.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var js={someAsync:void 0};const Ns=fe;js.someAsync=function(t,e){return(0,Ns.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var ks={};ks.some=void 0,ks.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Ps={};Ps.lastAsync=void 0,Ps.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Bs={};Bs.last=void 0,Bs.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var qs={toArrayAsync:void 0};const Cs=us;qs.toArrayAsync=function(t){return(0,Cs.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Rs={toArray:void 0};const zs=us;Rs.toArray=function(t){return(0,zs.consume)(t,(t=>Array.from(t)))};var Us={toSetAsync:void 0};const Ms=us;Us.toSetAsync=function(t){return(0,Ms.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Ds={toSet:void 0};const Fs=us;Ds.toSet=function(t){return(0,Fs.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(us,t),r(ls,t),r(ys,t),r(ds,t),r(hs,t),r(ps,t),r(bs,t),r(gs,t),r(ws,t),r(As,t),r(Is,t),r(Ss,t),r(Ts,t),r(xs,t),r(_s,t),r(js,t),r(ks,t),r(Ps,t),r(Bs,t),r(qs,t),r(Rs,t),r(Us,t),r(Ds,t)}(cs),function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Mt,t),r(cs,t)}(Ut);var Js={},Vs={};Vs.traverseErrorPrototypeChain=void 0,Vs.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Js.getErrorNames=void 0;const Ls=fe,Ks=Vs;Js.getErrorNames=function*(t){var e;if((0,Ls.isError)(t))for(const n of(0,Ks.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Ws={isSerializableError:void 0};const Ys=fe;Ws.isSerializableError=function(t){return(0,Ys.isObject)(t)&&(0,Ys.isString)(t.name)&&(0,Ys.isString)(t.message)&&((0,Ys.isString)(t.stack)||(0,Ys.isNull)(t.stack))&&(0,Ys.isArray)(t.ancestors)&&t.ancestors.every(Ys.isString)},zt.CustomError=void 0;const Hs=Ut,$s=Js,Qs=fe,Xs=Ws;class Gs extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Hs.first)((0,$s.getErrorNames)(this)))&&void 0!==t?t:Gs.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Qs.isError)(t)||(0,Xs.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,$s.getErrorNames)(this.prototype)].reverse(),r=(0,Hs.toArray)((0,$s.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}zt.CustomError=Gs;var Zs={AssertionError:void 0};const tc=zt;class ec extends tc.CustomError{}Zs.AssertionError=ec;var nc={normalize:void 0};const rc=Js,oc=Ut;nc.normalize=function(t){var e;const[n,...r]=(0,oc.toArray)((0,rc.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var ic={},ac={},sc={};sc.pass=void 0,sc.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(sc,t)}(ac),ic.hydrate=void 0;const cc=ac;function uc(t,e){const n=function(){(0,cc.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}ic.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=uc(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var lc={assert:void 0};const fc=Zs;lc.assert=function(t,e){if(!t)throw new fc.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(zt,t),r(Zs,t),r(Ws,t),r(nc,t),r(ic,t),r(lc,t),r(Js,t),r(Vs,t)}(Rt);var yc={},dc={},vc={},hc={},pc={};pc.go=void 0,pc.go=function(t){return t()};var mc={};mc.goMicrotask=void 0,mc.goMicrotask=function(t){return new Promise(((e,n)=>{queueMicrotask((async()=>{try{e(await t())}catch(t){n(t)}}))}))};var bc={},gc={},wc={},Ac={},Ic={};Ic.random=void 0,Ic.random=function(t,e){return Math.random()*(e-t)+t};var Sc={};Sc.randomInt=void 0,Sc.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var Tc={};Tc.randomIntInclusive=void 0,Tc.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Ic,t),r(Sc,t),r(Tc,t)}(Ac),wc.calculateExponentialBackoffTimeout=void 0;const xc=Ac;wc.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**e*t,n);return o?(0,xc.randomIntInclusive)(0,i):i};var Ec={};Ec.setTimeout=void 0,Ec.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var _c={setSchedule:void 0};const Oc=Ec;_c.setSchedule=function(t,e){const n=t-Date.now();return(0,Oc.setTimeout)(n,e)};var jc={};jc.setInterval=void 0,jc.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var Nc={setImmediate:void 0};const kc=Ec;Nc.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,kc.setTimeout)(0,t)};var Pc={setTimeoutLoop:void 0};const Bc=Ec;Pc.setTimeoutLoop=function(t,e){let n=!1,r=(0,Bc.setTimeout)(t,(async function o(){await e(),n||(r=(0,Bc.setTimeout)(t,o))}));return()=>{n=!0,r()}};var qc={setDynamicTimeoutLoop:void 0};const Cc=Ec;qc.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,Cc.setTimeout)(t,(async function o(){const i=Date.now();await e();const a=Date.now()-i;n||(r=(0,Cc.setTimeout)(Math.max(t-a,0),o))}));return()=>{n=!0,r()}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(wc,t),r(Ec,t),r(_c,t),r(jc,t),r(Nc,t),r(Pc,t),r(qc,t)}(gc),bc.goMacrotask=void 0;const Rc=gc;bc.goMacrotask=function(t){return new Promise(((e,n)=>{(0,Rc.setImmediate)((async()=>{try{e(await t())}catch(t){n(t)}}))}))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(pc,t),r(mc,t),r(bc,t)}(hc);var zc={},Uc={},Mc={},Dc={},Fc={},Jc={},Vc={};Vc.go=void 0,Vc.go=function(t){return t()},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Vc,t)}(Jc);var Lc={},Kc={},Wc={},Yc={},Hc={},$c={},Qc={};Qc.go=void 0,Qc.go=function(t){return t()},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Qc,t)}($c);var Xc={},Gc={},Zc={},tu={},eu={},nu={},ru={CustomError:void 0};class ou extends Error{get name(){return this.constructor.name}}ru.CustomError=ou;var iu={ExpectedError:void 0};const au=ru;class su extends au.CustomError{}iu.ExpectedError=su;var cu={AssertionError:void 0};const uu=ru;class lu extends uu.CustomError{}cu.AssertionError=lu;var fu={};fu.normalize=void 0,fu.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var yu={refute:void 0};const du=iu;yu.refute=function(t,e){if(t)throw new du.ExpectedError(e)};var vu={assert:void 0};const hu=cu;vu.assert=function(t,e){if(!t)throw new hu.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(ru,t),r(iu,t),r(cu,t),r(fu,t),r(yu,t),r(vu,t)}(nu),eu.chunkAsync=void 0;const pu=$c,mu=nu;eu.chunkAsync=function(t,e){return(0,mu.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,mu.assert)(e>0,"The parameter size must be greater than 0"),(0,pu.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var bu={},gu={},wu={};function Au(t){return Array.isArray(t)}wu.isntEmptyArray=wu.isEmptyArray=wu.isntArray=wu.isArray=void 0,wu.isArray=Au,wu.isntArray=function(t){return!Au(t)},wu.isEmptyArray=function(t){return 0===t.length},wu.isntEmptyArray=function(t){return 0!==t.length};var Iu={},Su={};function Tu(t){return null===t}Su.isntNull=Su.isNull=void 0,Su.isNull=Tu,Su.isntNull=function(t){return!Tu(t)};var xu={};function Eu(t){return void 0===t}xu.isntUndefined=xu.isUndefined=void 0,xu.isUndefined=Eu,xu.isntUndefined=function(t){return!Eu(t)},Iu.isntAsyncIterable=Iu.isAsyncIterable=void 0;const _u=Su,Ou=xu;function ju(t){return(0,_u.isntNull)(t)&&(0,Ou.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}Iu.isAsyncIterable=ju,Iu.isntAsyncIterable=function(t){return!ju(t)};var Nu={};function ku(t){return"bigint"==typeof t}Nu.isntBigInt=Nu.isBigInt=void 0,Nu.isBigInt=ku,Nu.isntBigInt=function(t){return!ku(t)};var Pu={};function Bu(t){return"boolean"==typeof t}Pu.isntBoolean=Pu.isBoolean=void 0,Pu.isBoolean=Bu,Pu.isntBoolean=function(t){return!Bu(t)};var qu={},Cu={};function Ru(t){return"string"==typeof t}Cu.isntString=Cu.isString=void 0,Cu.isString=Ru,Cu.isntString=function(t){return!Ru(t)},qu.isntChar=qu.isChar=void 0;const zu=Cu;function Uu(t){return(0,zu.isString)(t)&&1===t.length}qu.isChar=Uu,qu.isntChar=function(t){return!Uu(t)};var Mu={};function Du(t){return t instanceof Date}Mu.isntDate=Mu.isDate=void 0,Mu.isDate=Du,Mu.isntDate=function(t){return!Du(t)};var Fu={};Fu.inEnum=void 0,Fu.inEnum=function(t,e){return Object.values(e).includes(t)};var Ju={};function Vu(t){return t instanceof Error}Ju.isntError=Ju.isError=void 0,Ju.isError=Vu,Ju.isntError=function(t){return!Vu(t)};var Lu={};function Ku(t){return!t}Lu.isntFalsy=Lu.isFalsy=void 0,Lu.isFalsy=Ku,Lu.isntFalsy=function(t){return!Ku(t)};var Wu={};function Yu(t){return"function"==typeof t}Wu.isntFunction=Wu.isFunction=void 0,Wu.isFunction=Yu,Wu.isntFunction=function(t){return!Yu(t)};var Hu={};Hu.isntIterable=Hu.isIterable=void 0;const $u=Su,Qu=xu;function Xu(t){return(0,$u.isntNull)(t)&&(0,Qu.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}Hu.isIterable=Xu,Hu.isntIterable=function(t){return!Xu(t)};var Gu={},Zu={},tl=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Zu.isntEmptyObject=Zu.isEmptyObject=Zu.isntPlainObject=Zu.isPlainObject=Zu.isntObject=Zu.isObject=void 0;const el=tl(Ze);function nl(t){return null!==t&&"object"==typeof t}function rl(t){return(0,el.default)(t)}Zu.isObject=nl,Zu.isntObject=function(t){return!nl(t)},Zu.isPlainObject=rl,Zu.isntPlainObject=function(t){return!rl(t)},Zu.isEmptyObject=function(t){return 0===Object.keys(t).length},Zu.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var ol={};function il(t){return"number"==typeof t}ol.isntNumber=ol.isNumber=void 0,ol.isNumber=il,ol.isntNumber=function(t){return!il(t)},Gu.isntJsonRpcError=Gu.isJsonRpcError=Gu.isntJsonRpcSuccess=Gu.isJsonRpcSuccess=Gu.isntJsonRpcRequest=Gu.isJsonRpcRequest=Gu.isntJsonRpcNotification=Gu.isJsonRpcNotification=void 0;const al=wu,sl=Zu,cl=Cu,ul=ol,ll=xu;function fl(t){return(0,cl.isString)(t)||(0,ul.isNumber)(t)}function yl(t){return(0,al.isArray)(t)||(0,sl.isObject)(t)}function dl(t){return(0,sl.isPlainObject)(t)&&(0,cl.isString)(t.jsonrpc)&&(0,cl.isString)(t.method)&&(0,ll.isUndefined)(t.id)&&yl(t.params)}function vl(t){return(0,sl.isPlainObject)(t)&&(0,cl.isString)(t.jsonrpc)&&(0,cl.isString)(t.method)&&fl(t.id)&&yl(t.params)}function hl(t){return(0,sl.isPlainObject)(t)&&(0,cl.isString)(t.jsonrpc)&&(0,cl.isString)(t.id)&&"result"in t}function pl(t){return(0,sl.isPlainObject)(t)&&(0,cl.isString)(t.jsonrpc)&&fl(t.id)&&function(t){return(0,sl.isPlainObject)(t)&&(0,ul.isNumber)(t.code)&&(0,cl.isString)(t.message)&&((0,ll.isUndefined)(t.data)||(0,sl.isObject)(t.data))}(t.error)}Gu.isJsonRpcNotification=dl,Gu.isntJsonRpcNotification=function(t){return!dl(t)},Gu.isJsonRpcRequest=vl,Gu.isntJsonRpcRequest=function(t){return!vl(t)},Gu.isJsonRpcSuccess=hl,Gu.isntJsonRpcSuccess=function(t){return!hl(t)},Gu.isJsonRpcError=pl,Gu.isntJsonRpcError=function(t){return!pl(t)};var ml={};ml.isntJson=ml.isJson=void 0,ml.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},ml.isntJson=function t(e){return!t()};var bl={};bl.isAbsoluteURL=void 0,bl.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(wu,t),r(Iu,t),r(Nu,t),r(Pu,t),r(qu,t),r(Mu,t),r(Fu,t),r(Ju,t),r(Lu,t),r(Wu,t),r(Hu,t),r(Gu,t),r(ml,t),r(Su,t),r(ol,t),r(Zu,t),r(Cu,t),r(xu,t),r(bl,t)}(gu),bu.chunkByAsync=void 0;const gl=gu;bu.chunkByAsync=function(t,e){return(0,gl.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var wl={};wl.chunkBy=void 0,wl.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Al={chunk:void 0};const Il=$c,Sl=nu;Al.chunk=function(t,e){return(0,Sl.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Sl.assert)(e>0,"The parameter size must be greater than 0"),(0,Il.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Tl={concatAsync:void 0};const xl=gu,El=$c;Tl.concatAsync=function(t,...e){return(0,El.go)((async function*(){for(const n of[t,...e])if((0,xl.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var _l={concat:void 0};const Ol=$c;_l.concat=function(t,...e){return(0,Ol.go)((function*(){for(const n of[t,...e])yield*n}))};var jl={},Nl={};Nl.copyIterable=Nl.copyAsyncIterable=void 0,Nl.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Nl.copyIterable=function*(t){for(const e of t)yield e},jl.dropAsync=void 0;const kl=$c,Pl=Nl,Bl=nu;jl.dropAsync=function(t,e){return(0,Bl.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Bl.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Pl.copyAsyncIterable)(t):(0,kl.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var ql={dropRightAsync:void 0};const Cl=$c,Rl=Nl,zl=nu;ql.dropRightAsync=function(t,e){return(0,zl.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,zl.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Rl.copyAsyncIterable)(t):(0,Cl.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var Ul={dropRight:void 0};const Ml=$c,Dl=Nl,Fl=nu;Ul.dropRight=function(t,e){return(0,Fl.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Fl.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Dl.copyIterable)(t):(0,Ml.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Jl={dropUntilAsync:void 0};const Vl=gu;Jl.dropUntilAsync=function(t,e){return(0,Vl.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Ll={};Ll.dropUntil=void 0,Ll.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Kl={drop:void 0};const Wl=$c,Yl=Nl,Hl=nu;Kl.drop=function(t,e){return(0,Hl.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Hl.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Yl.copyIterable)(t):(0,Wl.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var $l={filterAsync:void 0};const Ql=gu;$l.filterAsync=function(t,e){return(0,Ql.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var Xl={};Xl.filter=void 0,Xl.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Gl={},Zl={},tf={flattenByAsync:void 0};const ef=gu;function nf(t){return(0,ef.isIterable)(t)&&(0,ef.isntChar)(t)}tf.flattenByAsync=function(t,e){return(0,ef.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)nf(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)nf(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Zl.flattenDeepAsync=void 0;const rf=tf,of=nu;Zl.flattenDeepAsync=function(t,e=1/0){return(0,of.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,of.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,rf.flattenByAsync)(t,((t,n)=>n<=e))},Gl.flattenAsync=void 0;const af=Zl;Gl.flattenAsync=function(t){return(0,af.flattenDeepAsync)(t,1)};var sf={flattenBy:void 0};const cf=gu;sf.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,cf.isIterable)(o=i)&&(0,cf.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var uf={flattenDeep:void 0};const lf=sf,ff=nu;uf.flattenDeep=function(t,e=1/0){return(0,ff.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ff.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,lf.flattenBy)(t,((t,n)=>n<=e))};var yf={flatten:void 0};const df=uf;yf.flatten=function(t){return(0,df.flattenDeep)(t,1)};var vf={mapAsync:void 0};const hf=gu;vf.mapAsync=function(t,e){return(0,hf.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var pf={};pf.map=void 0,pf.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var mf={repeatAsync:void 0};const bf=$c,gf=nu;mf.repeatAsync=function(t,e){return(0,gf.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,gf.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,bf.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var wf={repeat:void 0};const Af=$c,If=nu;wf.repeat=function(t,e){return(0,If.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,If.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Af.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Sf={sliceAsync:void 0};const Tf=$c,xf=nu;Sf.sliceAsync=function(t,e,n=1/0){return(0,xf.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,xf.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,xf.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,xf.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Tf.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ef={slice:void 0};const _f=$c,Of=nu;Ef.slice=function(t,e,n=1/0){return(0,Of.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Of.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Of.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Of.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,_f.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var jf={};jf.splitAsync=void 0,jf.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Nf={splitByAsync:void 0};const kf=gu;Nf.splitByAsync=function(t,e){return(0,kf.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var Pf={};Pf.splitBy=void 0,Pf.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Bf={};Bf.split=void 0,Bf.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var qf={takeAsync:void 0};const Cf=$c,Rf=nu;qf.takeAsync=function(t,e){return(0,Rf.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Rf.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Cf.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var zf={takeRightAsync:void 0};const Uf=$c,Mf=nu;zf.takeRightAsync=function(t,e){return(0,Mf.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mf.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Uf.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Df={takeRight:void 0};const Ff=$c,Jf=nu;Df.takeRight=function(t,e){return(0,Jf.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Jf.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ff.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Vf={takeUntilAsync:void 0};const Lf=gu;Vf.takeUntilAsync=function(t,e){return(0,Lf.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var Kf={};Kf.takeUntil=void 0,Kf.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Wf={take:void 0};const Yf=$c,Hf=nu;Wf.take=function(t,e){return(0,Hf.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Hf.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Yf.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var $f={tapAsync:void 0};const Qf=gu;$f.tapAsync=function(t,e){return(0,Qf.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var Xf={};Xf.tap=void 0,Xf.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Gf={};Gf.toAsyncIterable=void 0,Gf.toAsyncIterable=async function*(t){for(const e of t)yield e};var Zf={};Zf.transformAsync=void 0,Zf.transformAsync=async function*(t,e){yield*e(t)};var ty={};ty.transform=void 0,ty.transform=function*(t,e){yield*e(t)};var ey={};ey.uniqAsync=void 0,ey.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var ny={uniqByAsync:void 0};const ry=gu;ny.uniqByAsync=function(t,e){return(0,ry.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var oy={};oy.uniqBy=void 0,oy.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var iy={};iy.uniq=void 0,iy.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var ay={zipAsync:void 0};const sy=gu;var cy;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(cy||(cy={})),ay.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,sy.isAsyncIterable)(t)?[cy.Async,t[Symbol.asyncIterator]()]:[cy.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===cy.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===cy.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var uy={};uy.zip=void 0,uy.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(eu,t),r(bu,t),r(wl,t),r(Al,t),r(Tl,t),r(_l,t),r(jl,t),r(ql,t),r(Ul,t),r(Jl,t),r(Ll,t),r(Kl,t),r($l,t),r(Xl,t),r(Gl,t),r(tf,t),r(sf,t),r(Zl,t),r(uf,t),r(yf,t),r(vf,t),r(pf,t),r(mf,t),r(wf,t),r(Sf,t),r(Ef,t),r(jf,t),r(Nf,t),r(Pf,t),r(Bf,t),r(qf,t),r(zf,t),r(Df,t),r(Vf,t),r(Kf,t),r(Wf,t),r($f,t),r(Xf,t),r(Gf,t),r(Zf,t),r(ty,t),r(ey,t),r(ny,t),r(oy,t),r(iy,t),r(ay,t),r(uy,t)}(tu);var ly={},fy={};fy.consume=void 0,fy.consume=function(t,e){return e(t)};var yy={eachAsync:void 0};const dy=gu;yy.eachAsync=function(t,e){return(0,dy.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var vy={};vy.each=void 0,vy.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var hy={everyAsync:void 0};const py=gu;hy.everyAsync=function(t,e){return(0,py.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var my={};my.every=void 0,my.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var by={findAsync:void 0};const gy=gu;by.findAsync=function(t,e){return(0,gy.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var wy={};wy.find=void 0,wy.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Ay={};Ay.firstAsync=void 0,Ay.firstAsync=async function(t){for await(const e of t)return e};var Iy={};Iy.first=void 0,Iy.first=function(t){for(const e of t)return e};var Sy={};Sy.includesAsync=void 0,Sy.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Ty={};Ty.includes=void 0,Ty.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var xy={};xy.matchAsync=void 0,xy.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Ey={};Ey.match=void 0,Ey.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var _y={reduceAsync:void 0};const Oy=gu;_y.reduceAsync=function(t,e,n){return(0,Oy.isUndefined)(n)?function(t,e){return(0,Oy.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Oy.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var jy={reduce:void 0};const Ny=gu;jy.reduce=function(t,e,n){return(0,Ny.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var ky={someAsync:void 0};const Py=gu;ky.someAsync=function(t,e){return(0,Py.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var By={};By.some=void 0,By.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var qy={};qy.lastAsync=void 0,qy.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Cy={};Cy.last=void 0,Cy.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var Ry={toArrayAsync:void 0};const zy=fy;Ry.toArrayAsync=function(t){return(0,zy.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Uy={toArray:void 0};const My=fy;Uy.toArray=function(t){return(0,My.consume)(t,(t=>Array.from(t)))};var Dy={toSetAsync:void 0};const Fy=fy;Dy.toSetAsync=function(t){return(0,Fy.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Jy={toSet:void 0};const Vy=fy;Jy.toSet=function(t){return(0,Vy.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(fy,t),r(yy,t),r(vy,t),r(hy,t),r(my,t),r(by,t),r(wy,t),r(Ay,t),r(Iy,t),r(Sy,t),r(Ty,t),r(xy,t),r(Ey,t),r(_y,t),r(jy,t),r(ky,t),r(By,t),r(qy,t),r(Cy,t),r(Ry,t),r(Uy,t),r(Dy,t),r(Jy,t)}(ly),function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(tu,t),r(ly,t)}(Zc);var Ly={},Ky={};Ky.traverseErrorPrototypeChain=void 0,Ky.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Ly.getErrorNames=void 0;const Wy=gu,Yy=Ky;Ly.getErrorNames=function*(t){var e;if((0,Wy.isError)(t))for(const n of(0,Yy.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Hy={isSerializableError:void 0};const $y=gu;Hy.isSerializableError=function(t){return(0,$y.isObject)(t)&&(0,$y.isString)(t.name)&&(0,$y.isString)(t.message)&&((0,$y.isString)(t.stack)||(0,$y.isNull)(t.stack))&&(0,$y.isArray)(t.ancestors)&&t.ancestors.every($y.isString)},Gc.CustomError=void 0;const Qy=Zc,Xy=Ly,Gy=gu,Zy=Hy;class td extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Qy.first)((0,Xy.getErrorNames)(this)))&&void 0!==t?t:td.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Gy.isError)(t)||(0,Zy.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Xy.getErrorNames)(this.prototype)].reverse(),r=(0,Qy.toArray)((0,Xy.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Gc.CustomError=td;var ed={AssertionError:void 0};const nd=Gc;class rd extends nd.CustomError{}ed.AssertionError=rd;var od={normalize:void 0};const id=Ly,ad=Zc;od.normalize=function(t){var e;const[n,...r]=(0,ad.toArray)((0,id.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var sd={},cd={},ud={};ud.pass=void 0,ud.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(ud,t)}(cd),sd.hydrate=void 0;const ld=cd;function fd(t,e){const n=function(){(0,ld.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}sd.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=fd(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var yd={assert:void 0};const dd=ed;yd.assert=function(t,e){if(!t)throw new dd.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Gc,t),r(ed,t),r(Hy,t),r(od,t),r(sd,t),r(yd,t),r(Ly,t),r(Ky,t)}(Xc),Hc.chunkAsync=void 0;const vd=$c,hd=Xc;Hc.chunkAsync=function(t,e){return(0,hd.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,hd.assert)(e>0,"The parameter size must be greater than 0"),(0,vd.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var pd={chunkByAsync:void 0};const md=gu;pd.chunkByAsync=function(t,e){return(0,md.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var bd={};bd.chunkBy=void 0,bd.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var gd={chunk:void 0};const wd=$c,Ad=Xc;gd.chunk=function(t,e){return(0,Ad.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Ad.assert)(e>0,"The parameter size must be greater than 0"),(0,wd.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Id={concatAsync:void 0};const Sd=gu,Td=$c;Id.concatAsync=function(t,...e){return(0,Td.go)((async function*(){for(const n of[t,...e])if((0,Sd.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var xd={concat:void 0};const Ed=$c;xd.concat=function(t,...e){return(0,Ed.go)((function*(){for(const n of[t,...e])yield*n}))};var _d={},Od={};Od.copyIterable=Od.copyAsyncIterable=void 0,Od.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Od.copyIterable=function*(t){for(const e of t)yield e},_d.dropAsync=void 0;const jd=$c,Nd=Od,kd=Xc;_d.dropAsync=function(t,e){return(0,kd.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,kd.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Nd.copyAsyncIterable)(t):(0,jd.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Pd={dropRightAsync:void 0};const Bd=$c,qd=Od,Cd=Xc;Pd.dropRightAsync=function(t,e){return(0,Cd.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Cd.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,qd.copyAsyncIterable)(t):(0,Bd.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var Rd={dropRight:void 0};const zd=$c,Ud=Od,Md=Xc;Rd.dropRight=function(t,e){return(0,Md.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Md.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ud.copyIterable)(t):(0,zd.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Dd={dropUntilAsync:void 0};const Fd=gu;Dd.dropUntilAsync=function(t,e){return(0,Fd.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Jd={};Jd.dropUntil=void 0,Jd.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Vd={drop:void 0};const Ld=$c,Kd=Od,Wd=Xc;Vd.drop=function(t,e){return(0,Wd.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Wd.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Kd.copyIterable)(t):(0,Ld.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Yd={filterAsync:void 0};const Hd=gu;Yd.filterAsync=function(t,e){return(0,Hd.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var $d={};$d.filter=void 0,$d.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Qd={},Xd={},Gd={flattenByAsync:void 0};const Zd=gu;function tv(t){return(0,Zd.isIterable)(t)&&(0,Zd.isntChar)(t)}Gd.flattenByAsync=function(t,e){return(0,Zd.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)tv(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)tv(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Xd.flattenDeepAsync=void 0;const ev=Gd,nv=Xc;Xd.flattenDeepAsync=function(t,e=1/0){return(0,nv.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,nv.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ev.flattenByAsync)(t,((t,n)=>n<=e))},Qd.flattenAsync=void 0;const rv=Xd;Qd.flattenAsync=function(t){return(0,rv.flattenDeepAsync)(t,1)};var ov={flattenBy:void 0};const iv=gu;ov.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,iv.isIterable)(o=i)&&(0,iv.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var av={flattenDeep:void 0};const sv=ov,cv=Xc;av.flattenDeep=function(t,e=1/0){return(0,cv.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,cv.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,sv.flattenBy)(t,((t,n)=>n<=e))};var uv={flatten:void 0};const lv=av;uv.flatten=function(t){return(0,lv.flattenDeep)(t,1)};var fv={mapAsync:void 0};const yv=gu;fv.mapAsync=function(t,e){return(0,yv.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var dv={};dv.map=void 0,dv.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var vv={repeatAsync:void 0};const hv=$c,pv=Xc;vv.repeatAsync=function(t,e){return(0,pv.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,pv.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,hv.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var mv={repeat:void 0};const bv=$c,gv=Xc;mv.repeat=function(t,e){return(0,gv.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,gv.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,bv.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var wv={sliceAsync:void 0};const Av=$c,Iv=Xc;wv.sliceAsync=function(t,e,n=1/0){return(0,Iv.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Iv.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Iv.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Iv.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Av.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Sv={slice:void 0};const Tv=$c,xv=Xc;Sv.slice=function(t,e,n=1/0){return(0,xv.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,xv.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,xv.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,xv.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Tv.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ev={};Ev.splitAsync=void 0,Ev.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var _v={splitByAsync:void 0};const Ov=gu;_v.splitByAsync=function(t,e){return(0,Ov.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var jv={};jv.splitBy=void 0,jv.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Nv={};Nv.split=void 0,Nv.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var kv={takeAsync:void 0};const Pv=$c,Bv=Xc;kv.takeAsync=function(t,e){return(0,Bv.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Bv.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Pv.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var qv={takeRightAsync:void 0};const Cv=$c,Rv=Xc;qv.takeRightAsync=function(t,e){return(0,Rv.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Rv.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Cv.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var zv={takeRight:void 0};const Uv=$c,Mv=Xc;zv.takeRight=function(t,e){return(0,Mv.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mv.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Uv.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Dv={takeUntilAsync:void 0};const Fv=gu;Dv.takeUntilAsync=function(t,e){return(0,Fv.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var Jv={};Jv.takeUntil=void 0,Jv.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Vv={take:void 0};const Lv=$c,Kv=Xc;Vv.take=function(t,e){return(0,Kv.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Kv.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Lv.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Wv={tapAsync:void 0};const Yv=gu;Wv.tapAsync=function(t,e){return(0,Yv.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var Hv={};Hv.tap=void 0,Hv.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var $v={};$v.toAsyncIterable=void 0,$v.toAsyncIterable=async function*(t){for(const e of t)yield e};var Qv={};Qv.transformAsync=void 0,Qv.transformAsync=async function*(t,e){yield*e(t)};var Xv={};Xv.transform=void 0,Xv.transform=function*(t,e){yield*e(t)};var Gv={};Gv.uniqAsync=void 0,Gv.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Zv={uniqByAsync:void 0};const th=gu;Zv.uniqByAsync=function(t,e){return(0,th.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var eh={};eh.uniqBy=void 0,eh.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var nh={};nh.uniq=void 0,nh.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var rh={zipAsync:void 0};const oh=gu;var ih;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(ih||(ih={})),rh.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,oh.isAsyncIterable)(t)?[ih.Async,t[Symbol.asyncIterator]()]:[ih.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===ih.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===ih.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var ah={};ah.zip=void 0,ah.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Hc,t),r(pd,t),r(bd,t),r(gd,t),r(Id,t),r(xd,t),r(_d,t),r(Pd,t),r(Rd,t),r(Dd,t),r(Jd,t),r(Vd,t),r(Yd,t),r($d,t),r(Qd,t),r(Gd,t),r(ov,t),r(Xd,t),r(av,t),r(uv,t),r(fv,t),r(dv,t),r(vv,t),r(mv,t),r(wv,t),r(Sv,t),r(Ev,t),r(_v,t),r(jv,t),r(Nv,t),r(kv,t),r(qv,t),r(zv,t),r(Dv,t),r(Jv,t),r(Vv,t),r(Wv,t),r(Hv,t),r($v,t),r(Qv,t),r(Xv,t),r(Gv,t),r(Zv,t),r(eh,t),r(nh,t),r(rh,t),r(ah,t)}(Yc);var sh={},ch={};ch.consume=void 0,ch.consume=function(t,e){return e(t)};var uh={eachAsync:void 0};const lh=gu;uh.eachAsync=function(t,e){return(0,lh.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var fh={};fh.each=void 0,fh.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var yh={everyAsync:void 0};const dh=gu;yh.everyAsync=function(t,e){return(0,dh.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var vh={};vh.every=void 0,vh.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var hh={findAsync:void 0};const ph=gu;hh.findAsync=function(t,e){return(0,ph.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var mh={};mh.find=void 0,mh.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var bh={};bh.firstAsync=void 0,bh.firstAsync=async function(t){for await(const e of t)return e};var gh={};gh.first=void 0,gh.first=function(t){for(const e of t)return e};var wh={};wh.includesAsync=void 0,wh.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Ah={};Ah.includes=void 0,Ah.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Ih={};Ih.matchAsync=void 0,Ih.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Sh={};Sh.match=void 0,Sh.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Th={reduceAsync:void 0};const xh=gu;Th.reduceAsync=function(t,e,n){return(0,xh.isUndefined)(n)?function(t,e){return(0,xh.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,xh.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var Eh={reduce:void 0};const _h=gu;Eh.reduce=function(t,e,n){return(0,_h.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var Oh={someAsync:void 0};const jh=gu;Oh.someAsync=function(t,e){return(0,jh.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var Nh={};Nh.some=void 0,Nh.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var kh={};kh.lastAsync=void 0,kh.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Ph={};Ph.last=void 0,Ph.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var Bh={toArrayAsync:void 0};const qh=ch;Bh.toArrayAsync=function(t){return(0,qh.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Ch={toArray:void 0};const Rh=ch;Ch.toArray=function(t){return(0,Rh.consume)(t,(t=>Array.from(t)))};var zh={toSetAsync:void 0};const Uh=ch;zh.toSetAsync=function(t){return(0,Uh.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Mh={toSet:void 0};const Dh=ch;Mh.toSet=function(t){return(0,Dh.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(ch,t),r(uh,t),r(fh,t),r(yh,t),r(vh,t),r(hh,t),r(mh,t),r(bh,t),r(gh,t),r(wh,t),r(Ah,t),r(Ih,t),r(Sh,t),r(Th,t),r(Eh,t),r(Oh,t),r(Nh,t),r(kh,t),r(Ph,t),r(Bh,t),r(Ch,t),r(zh,t),r(Mh,t)}(sh),function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Yc,t),r(sh,t)}(Wc);var Fh={},Jh={},Vh={};function Lh(t){return Array.isArray(t)}Vh.isntEmptyArray=Vh.isEmptyArray=Vh.isntArray=Vh.isArray=void 0,Vh.isArray=Lh,Vh.isntArray=function(t){return!Lh(t)},Vh.isEmptyArray=function(t){return 0===t.length},Vh.isntEmptyArray=function(t){return 0!==t.length};var Kh={},Wh={};function Yh(t){return null===t}Wh.isntNull=Wh.isNull=void 0,Wh.isNull=Yh,Wh.isntNull=function(t){return!Yh(t)};var Hh={};function $h(t){return void 0===t}Hh.isntUndefined=Hh.isUndefined=void 0,Hh.isUndefined=$h,Hh.isntUndefined=function(t){return!$h(t)};var Qh={};function Xh(t){return"function"==typeof t}Qh.isntFunction=Qh.isFunction=void 0,Qh.isFunction=Xh,Qh.isntFunction=function(t){return!Xh(t)},Kh.isntAsyncIterable=Kh.isAsyncIterable=void 0;const Gh=Wh,Zh=Hh,tp=Qh;function ep(t){return(0,Gh.isntNull)(t)&&(0,Zh.isntUndefined)(t)&&(0,tp.isFunction)(t[Symbol.asyncIterator])}Kh.isAsyncIterable=ep,Kh.isntAsyncIterable=function(t){return!ep(t)};var np={};function rp(t){return"bigint"==typeof t}np.isntBigInt=np.isBigInt=void 0,np.isBigInt=rp,np.isntBigInt=function(t){return!rp(t)};var op={};function ip(t){return"boolean"==typeof t}op.isntBoolean=op.isBoolean=void 0,op.isBoolean=ip,op.isntBoolean=function(t){return!ip(t)};var ap={},sp={};function cp(t){return"string"==typeof t}sp.isntString=sp.isString=void 0,sp.isString=cp,sp.isntString=function(t){return!cp(t)},ap.isntChar=ap.isChar=void 0;const up=sp;function lp(t){return(0,up.isString)(t)&&1===t.length}ap.isChar=lp,ap.isntChar=function(t){return!lp(t)};var fp={};function yp(t){return t instanceof Date}fp.isntDate=fp.isDate=void 0,fp.isDate=yp,fp.isntDate=function(t){return!yp(t)};var dp={};dp.inEnum=void 0,dp.inEnum=function(t,e){return Object.values(e).includes(t)};var vp={};function hp(t){return t instanceof Error}vp.isntError=vp.isError=void 0,vp.isError=hp,vp.isntError=function(t){return!hp(t)};var pp={};function mp(t){return!t}pp.isntFalsy=pp.isFalsy=void 0,pp.isFalsy=mp,pp.isntFalsy=function(t){return!mp(t)};var bp={};bp.isntIterable=bp.isIterable=void 0;const gp=Wh,wp=Hh,Ap=Qh;function Ip(t){return(0,gp.isntNull)(t)&&(0,wp.isntUndefined)(t)&&(0,Ap.isFunction)(t[Symbol.iterator])}bp.isIterable=Ip,bp.isntIterable=function(t){return!Ip(t)};var Sp={},Tp={};function xp(t){return"number"==typeof t}function Ep(t){return Number.isNaN(t)}Tp.isntNaN=Tp.isNaN=Tp.isNegativeInfinity=Tp.isPositiveInfinity=Tp.isFinite=Tp.isntNumber=Tp.isNumber=void 0,Tp.isNumber=xp,Tp.isntNumber=function(t){return!xp(t)},Tp.isFinite=function(t){return Number.isFinite(t)},Tp.isPositiveInfinity=function(t){return t===1/0},Tp.isNegativeInfinity=function(t){return t===-1/0},Tp.isNaN=Ep,Tp.isntNaN=function(t){return!Ep(t)};var _p={},Op=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};_p.isntEmptyObject=_p.isEmptyObject=_p.isntPlainObject=_p.isPlainObject=_p.isntObject=_p.isObject=void 0;const jp=Op(yt);function Np(t){return null!==t&&"object"==typeof t}function kp(t){return(0,jp.default)(t)}_p.isObject=Np,_p.isntObject=function(t){return!Np(t)},_p.isPlainObject=kp,_p.isntPlainObject=function(t){return!kp(t)},_p.isEmptyObject=function(t){return 0===Object.keys(t).length},_p.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Sp.isntJsonable=Sp.isJsonable=Sp.isntJson=Sp.isJson=void 0;const Pp=Wh,Bp=op,qp=sp,Cp=Tp,Rp=Vh,zp=_p;function Up(t){return(0,Pp.isNull)(t)||(0,Bp.isBoolean)(t)||(0,qp.isString)(t)||(0,Cp.isNumber)(t)||(0,Rp.isArray)(t)&&t.every(Up)||(0,zp.isPlainObject)(t)&&Object.values(t).every(Up)}Sp.isJson=Up,Sp.isntJson=function(t){return!Up(t)},Sp.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Sp.isntJsonable=function t(e){return!t()};var Mp={};Mp.isPromiseLike=Mp.isntPromiseLike=Mp.isntPromise=Mp.isPromise=void 0;const Dp=_p,Fp=Qh;function Jp(t){return t instanceof Promise}function Vp(t){return(0,Dp.isObject)(t)&&(0,Fp.isFunction)(t.then)}Mp.isPromise=Jp,Mp.isntPromise=function(t){return!Jp(t)},Mp.isntPromiseLike=function(t){return!Vp(t)},Mp.isPromiseLike=Vp;var Lp={};Lp.isAbsoluteURL=void 0,Lp.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Vh,t),r(Kh,t),r(np,t),r(op,t),r(ap,t),r(fp,t),r(dp,t),r(vp,t),r(pp,t),r(Qh,t),r(bp,t),r(Sp,t),r(Wh,t),r(Tp,t),r(_p,t),r(Mp,t),r(sp,t),r(Hh,t),r(Lp,t)}(Jh);var Kp={};Kp.traverseErrorPrototypeChain=void 0,Kp.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Fh.getErrorNames=void 0;const Wp=Jh,Yp=Kp;Fh.getErrorNames=function*(t){var e;if((0,Wp.isError)(t))for(const n of(0,Yp.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Hp={isSerializableError:void 0};const $p=Jh;Hp.isSerializableError=function(t){return(0,$p.isObject)(t)&&(0,$p.isString)(t.name)&&(0,$p.isString)(t.message)&&((0,$p.isString)(t.stack)||(0,$p.isNull)(t.stack))&&(0,$p.isArray)(t.ancestors)&&t.ancestors.every($p.isString)},Kc.CustomError=void 0;const Qp=Wc,Xp=Fh,Gp=Jh,Zp=Hp;class tm extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Qp.first)((0,Xp.getErrorNames)(this)))&&void 0!==t?t:tm.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Gp.isError)(t)||(0,Zp.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Xp.getErrorNames)(this.prototype)].reverse(),r=(0,Qp.toArray)((0,Xp.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Kc.CustomError=tm;var em={AssertionError:void 0};const nm=Kc;class rm extends nm.CustomError{}em.AssertionError=rm;var om={normalize:void 0};const im=Fh,am=Wc;om.normalize=function(t){var e;const[n,...r]=(0,am.toArray)((0,im.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var sm={hydrate:void 0};const cm=ac;function um(t,e){const n=function(){(0,cm.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}sm.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=um(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var lm={assert:void 0};const fm=em;lm.assert=function(t,e){if(!t)throw new fm.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Kc,t),r(em,t),r(Hp,t),r(om,t),r(sm,t),r(lm,t),r(Fh,t),r(Kp,t)}(Lc),Fc.chunkAsync=void 0;const ym=Jc,dm=Lc;Fc.chunkAsync=function(t,e){return(0,dm.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,dm.assert)(e>0,"The parameter size must be greater than 0"),(0,ym.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var vm={chunkByAsync:void 0};const hm=Jh;vm.chunkByAsync=function(t,e){return(0,hm.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var pm={};pm.chunkBy=void 0,pm.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var mm={chunk:void 0};const bm=Jc,gm=Lc;mm.chunk=function(t,e){return(0,gm.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,gm.assert)(e>0,"The parameter size must be greater than 0"),(0,bm.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var wm={concatAsync:void 0};const Am=Jh,Im=Jc;wm.concatAsync=function(t,...e){return(0,Im.go)((async function*(){for(const n of[t,...e])if((0,Am.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Sm={concat:void 0};const Tm=Jc;Sm.concat=function(t,...e){return(0,Tm.go)((function*(){for(const n of[t,...e])yield*n}))};var xm={},Em={};Em.copyIterable=Em.copyAsyncIterable=void 0,Em.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Em.copyIterable=function*(t){for(const e of t)yield e},xm.dropAsync=void 0;const _m=Jc,Om=Em,jm=Lc;xm.dropAsync=function(t,e){return(0,jm.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,jm.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Om.copyAsyncIterable)(t):(0,_m.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Nm={dropRightAsync:void 0};const km=Jc,Pm=Em,Bm=Lc;Nm.dropRightAsync=function(t,e){return(0,Bm.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Bm.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Pm.copyAsyncIterable)(t):(0,km.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var qm={dropRight:void 0};const Cm=Jc,Rm=Em,zm=Lc;qm.dropRight=function(t,e){return(0,zm.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,zm.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Rm.copyIterable)(t):(0,Cm.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Um={dropUntilAsync:void 0};const Mm=Jh;Um.dropUntilAsync=function(t,e){return(0,Mm.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Dm={};Dm.dropUntil=void 0,Dm.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Fm={drop:void 0};const Jm=Jc,Vm=Em,Lm=Lc;Fm.drop=function(t,e){return(0,Lm.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Lm.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Vm.copyIterable)(t):(0,Jm.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Km={filterAsync:void 0};const Wm=Jh;Km.filterAsync=function(t,e){return(0,Wm.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var Ym={};Ym.filter=void 0,Ym.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Hm={},$m={},Qm={flattenByAsync:void 0};const Xm=Jh;function Gm(t){return(0,Xm.isIterable)(t)&&(0,Xm.isntChar)(t)}Qm.flattenByAsync=function(t,e){return(0,Xm.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)Gm(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)Gm(o)&&await e(o,r)?yield*n(o,r+1):yield o}},$m.flattenDeepAsync=void 0;const Zm=Qm,tb=Lc;$m.flattenDeepAsync=function(t,e=1/0){return(0,tb.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,tb.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Zm.flattenByAsync)(t,((t,n)=>n<=e))},Hm.flattenAsync=void 0;const eb=$m;Hm.flattenAsync=function(t){return(0,eb.flattenDeepAsync)(t,1)};var nb={flattenBy:void 0};const rb=Jh;nb.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,rb.isIterable)(o=i)&&(0,rb.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var ob={flattenDeep:void 0};const ib=nb,ab=Lc;ob.flattenDeep=function(t,e=1/0){return(0,ab.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ab.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ib.flattenBy)(t,((t,n)=>n<=e))};var sb={flatten:void 0};const cb=ob;sb.flatten=function(t){return(0,cb.flattenDeep)(t,1)};var ub={mapAsync:void 0};const lb=Jh;ub.mapAsync=function(t,e){return(0,lb.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var fb={};fb.map=void 0,fb.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var yb={repeatAsync:void 0};const db=Jc,vb=Lc;yb.repeatAsync=function(t,e){return(0,vb.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,vb.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,db.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var hb={repeat:void 0};const pb=Jc,mb=Lc;hb.repeat=function(t,e){return(0,mb.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,mb.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,pb.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var bb={sliceAsync:void 0};const gb=Jc,wb=Lc;bb.sliceAsync=function(t,e,n=1/0){return(0,wb.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,wb.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,wb.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,wb.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,gb.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ab={slice:void 0};const Ib=Jc,Sb=Lc;Ab.slice=function(t,e,n=1/0){return(0,Sb.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Sb.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Sb.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Sb.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Ib.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Tb={};Tb.splitAsync=void 0,Tb.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var xb={splitByAsync:void 0};const Eb=Jh;xb.splitByAsync=function(t,e){return(0,Eb.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var _b={};_b.splitBy=void 0,_b.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Ob={};Ob.split=void 0,Ob.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var jb={takeAsync:void 0};const Nb=Jc,kb=Lc;jb.takeAsync=function(t,e){return(0,kb.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,kb.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Nb.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Pb={takeRightAsync:void 0};const Bb=Jc,qb=Lc;Pb.takeRightAsync=function(t,e){return(0,qb.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qb.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Bb.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Cb={takeRight:void 0};const Rb=Jc,zb=Lc;Cb.takeRight=function(t,e){return(0,zb.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,zb.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Rb.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Ub={takeUntilAsync:void 0};const Mb=Jh;Ub.takeUntilAsync=function(t,e){return(0,Mb.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var Db={};Db.takeUntil=void 0,Db.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Fb={take:void 0};const Jb=Jc,Vb=Lc;Fb.take=function(t,e){return(0,Vb.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Vb.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Jb.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Lb={tapAsync:void 0};const Kb=Jh;Lb.tapAsync=function(t,e){return(0,Kb.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var Wb={};Wb.tap=void 0,Wb.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Yb={};Yb.toAsyncIterable=void 0,Yb.toAsyncIterable=async function*(t){for(const e of t)yield e};var Hb={};Hb.transformAsync=void 0,Hb.transformAsync=async function*(t,e){yield*e(t)};var $b={};$b.transform=void 0,$b.transform=function*(t,e){yield*e(t)};var Qb={};Qb.uniqAsync=void 0,Qb.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Xb={uniqByAsync:void 0};const Gb=Jh;Xb.uniqByAsync=function(t,e){return(0,Gb.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var Zb={};Zb.uniqBy=void 0,Zb.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var tg={};tg.uniq=void 0,tg.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var eg={zipAsync:void 0};const ng=Jh;var rg;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(rg||(rg={})),eg.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,ng.isAsyncIterable)(t)?[rg.Async,t[Symbol.asyncIterator]()]:[rg.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===rg.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===rg.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var og={};og.zip=void 0,og.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Fc,t),r(vm,t),r(pm,t),r(mm,t),r(wm,t),r(Sm,t),r(xm,t),r(Nm,t),r(qm,t),r(Um,t),r(Dm,t),r(Fm,t),r(Km,t),r(Ym,t),r(Hm,t),r(Qm,t),r(nb,t),r($m,t),r(ob,t),r(sb,t),r(ub,t),r(fb,t),r(yb,t),r(hb,t),r(bb,t),r(Ab,t),r(Tb,t),r(xb,t),r(_b,t),r(Ob,t),r(jb,t),r(Pb,t),r(Cb,t),r(Ub,t),r(Db,t),r(Fb,t),r(Lb,t),r(Wb,t),r(Yb,t),r(Hb,t),r($b,t),r(Qb,t),r(Xb,t),r(Zb,t),r(tg,t),r(eg,t),r(og,t)}(Dc);var ig={},ag={};ag.consume=void 0,ag.consume=function(t,e){return e(t)};var sg={eachAsync:void 0};const cg=Jh;sg.eachAsync=function(t,e){return(0,cg.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var ug={};ug.each=void 0,ug.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var lg={everyAsync:void 0};const fg=Jh;lg.everyAsync=function(t,e){return(0,fg.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var yg={};yg.every=void 0,yg.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var dg={findAsync:void 0};const vg=Jh;dg.findAsync=function(t,e){return(0,vg.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var hg={};hg.find=void 0,hg.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var pg={};pg.firstAsync=void 0,pg.firstAsync=async function(t){for await(const e of t)return e};var mg={};mg.first=void 0,mg.first=function(t){for(const e of t)return e};var bg={};bg.includesAsync=void 0,bg.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var gg={};gg.includes=void 0,gg.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var wg={};wg.matchAsync=void 0,wg.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Ag={};Ag.match=void 0,Ag.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Ig={reduceAsync:void 0};const Sg=Jh;Ig.reduceAsync=function(t,e,n){return(0,Sg.isUndefined)(n)?function(t,e){return(0,Sg.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Sg.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var Tg={reduce:void 0};const xg=Jh;Tg.reduce=function(t,e,n){return(0,xg.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var Eg={someAsync:void 0};const _g=Jh;Eg.someAsync=function(t,e){return(0,_g.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var Og={};Og.some=void 0,Og.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var jg={};jg.lastAsync=void 0,jg.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Ng={};Ng.last=void 0,Ng.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var kg={toArrayAsync:void 0};const Pg=ag;kg.toArrayAsync=function(t){return(0,Pg.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Bg={toArray:void 0};const qg=ag;Bg.toArray=function(t){return(0,qg.consume)(t,(t=>Array.from(t)))};var Cg={toSetAsync:void 0};const Rg=ag;Cg.toSetAsync=function(t){return(0,Rg.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var zg={toSet:void 0};const Ug=ag;zg.toSet=function(t){return(0,Ug.consume)(t,(t=>new Set(t)))};var Mg={};Mg.count=void 0,Mg.count=function(t){let e=0;for(const n of t)e++;return e};var Dg={};Dg.countAsync=void 0,Dg.countAsync=async function(t){let e=0;for await(const n of t)e++;return e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(ag,t),r(sg,t),r(ug,t),r(lg,t),r(yg,t),r(dg,t),r(hg,t),r(pg,t),r(mg,t),r(bg,t),r(gg,t),r(wg,t),r(Ag,t),r(Ig,t),r(Tg,t),r(Eg,t),r(Og,t),r(jg,t),r(Ng,t),r(kg,t),r(Bg,t),r(Cg,t),r(zg,t),r(Mg,t),r(Dg,t)}(ig),function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Dc,t),r(ig,t)}(Mc);var Fg={},Jg={},Vg={};function Lg(t){return Array.isArray(t)}Vg.isntEmptyArray=Vg.isEmptyArray=Vg.isntArray=Vg.isArray=void 0,Vg.isArray=Lg,Vg.isntArray=function(t){return!Lg(t)},Vg.isEmptyArray=function(t){return 0===t.length},Vg.isntEmptyArray=function(t){return 0!==t.length};var Kg={},Wg={};function Yg(t){return null===t}Wg.isntNull=Wg.isNull=void 0,Wg.isNull=Yg,Wg.isntNull=function(t){return!Yg(t)};var Hg={};function $g(t){return void 0===t}Hg.isntUndefined=Hg.isUndefined=void 0,Hg.isUndefined=$g,Hg.isntUndefined=function(t){return!$g(t)};var Qg={};function Xg(t){return"function"==typeof t}Qg.isntFunction=Qg.isFunction=void 0,Qg.isFunction=Xg,Qg.isntFunction=function(t){return!Xg(t)},Kg.isntAsyncIterable=Kg.isAsyncIterable=void 0;const Gg=Wg,Zg=Hg,tw=Qg;function ew(t){return(0,Gg.isntNull)(t)&&(0,Zg.isntUndefined)(t)&&(0,tw.isFunction)(t[Symbol.asyncIterator])}Kg.isAsyncIterable=ew,Kg.isntAsyncIterable=function(t){return!ew(t)};var nw={};function rw(t){return"bigint"==typeof t}nw.isntBigInt=nw.isBigInt=void 0,nw.isBigInt=rw,nw.isntBigInt=function(t){return!rw(t)};var ow={};function iw(t){return"boolean"==typeof t}ow.isntBoolean=ow.isBoolean=void 0,ow.isBoolean=iw,ow.isntBoolean=function(t){return!iw(t)};var aw={},sw={};function cw(t){return"string"==typeof t}sw.isntString=sw.isString=void 0,sw.isString=cw,sw.isntString=function(t){return!cw(t)},aw.isntChar=aw.isChar=void 0;const uw=sw;function lw(t){return(0,uw.isString)(t)&&1===t.length}aw.isChar=lw,aw.isntChar=function(t){return!lw(t)};var fw={};function yw(t){return t instanceof Date}fw.isntDate=fw.isDate=void 0,fw.isDate=yw,fw.isntDate=function(t){return!yw(t)};var dw={};dw.inEnum=void 0,dw.inEnum=function(t,e){return Object.values(e).includes(t)};var vw={};function hw(t){return t instanceof Error}vw.isntError=vw.isError=void 0,vw.isError=hw,vw.isntError=function(t){return!hw(t)};var pw={};function mw(t){return!t}pw.isntFalsy=pw.isFalsy=void 0,pw.isFalsy=mw,pw.isntFalsy=function(t){return!mw(t)};var bw={};bw.isntIterable=bw.isIterable=void 0;const gw=Wg,ww=Hg,Aw=Qg;function Iw(t){return(0,gw.isntNull)(t)&&(0,ww.isntUndefined)(t)&&(0,Aw.isFunction)(t[Symbol.iterator])}bw.isIterable=Iw,bw.isntIterable=function(t){return!Iw(t)};var Sw={},Tw={};function xw(t){return"number"==typeof t}function Ew(t){return Number.isNaN(t)}Tw.isntNaN=Tw.isNaN=Tw.isNegativeInfinity=Tw.isPositiveInfinity=Tw.isFinite=Tw.isntNumber=Tw.isNumber=void 0,Tw.isNumber=xw,Tw.isntNumber=function(t){return!xw(t)},Tw.isFinite=function(t){return Number.isFinite(t)},Tw.isPositiveInfinity=function(t){return t===1/0},Tw.isNegativeInfinity=function(t){return t===-1/0},Tw.isNaN=Ew,Tw.isntNaN=function(t){return!Ew(t)};var _w={},Ow=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};_w.isntEmptyObject=_w.isEmptyObject=_w.isntPlainObject=_w.isPlainObject=_w.isntObject=_w.isObject=void 0;const jw=Ow(yt);function Nw(t){return null!==t&&"object"==typeof t}function kw(t){return(0,jw.default)(t)}_w.isObject=Nw,_w.isntObject=function(t){return!Nw(t)},_w.isPlainObject=kw,_w.isntPlainObject=function(t){return!kw(t)},_w.isEmptyObject=function(t){return 0===Object.keys(t).length},_w.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Sw.isntJsonable=Sw.isJsonable=Sw.isntJson=Sw.isJson=void 0;const Pw=Wg,Bw=ow,qw=sw,Cw=Tw,Rw=Vg,zw=_w;function Uw(t){return(0,Pw.isNull)(t)||(0,Bw.isBoolean)(t)||(0,qw.isString)(t)||(0,Cw.isNumber)(t)||(0,Rw.isArray)(t)&&t.every(Uw)||(0,zw.isPlainObject)(t)&&Object.values(t).every(Uw)}Sw.isJson=Uw,Sw.isntJson=function(t){return!Uw(t)},Sw.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Sw.isntJsonable=function t(e){return!t()};var Mw={};Mw.isPromiseLike=Mw.isntPromiseLike=Mw.isntPromise=Mw.isPromise=void 0;const Dw=_w,Fw=Qg;function Jw(t){return t instanceof Promise}function Vw(t){return(0,Dw.isObject)(t)&&(0,Fw.isFunction)(t.then)}Mw.isPromise=Jw,Mw.isntPromise=function(t){return!Jw(t)},Mw.isntPromiseLike=function(t){return!Vw(t)},Mw.isPromiseLike=Vw;var Lw={};Lw.isAbsoluteURL=void 0,Lw.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Vg,t),r(Kg,t),r(nw,t),r(ow,t),r(aw,t),r(fw,t),r(dw,t),r(vw,t),r(pw,t),r(Qg,t),r(bw,t),r(Sw,t),r(Wg,t),r(Tw,t),r(_w,t),r(Mw,t),r(sw,t),r(Hg,t),r(Lw,t)}(Jg);var Kw={};Kw.traverseErrorPrototypeChain=void 0,Kw.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Fg.getErrorNames=void 0;const Ww=Jg,Yw=Kw;Fg.getErrorNames=function*(t){var e;if((0,Ww.isError)(t))for(const n of(0,Yw.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Hw={isSerializableError:void 0};const $w=Jg;Hw.isSerializableError=function(t){return(0,$w.isObject)(t)&&(0,$w.isString)(t.name)&&(0,$w.isString)(t.message)&&((0,$w.isString)(t.stack)||(0,$w.isNull)(t.stack))&&(0,$w.isArray)(t.ancestors)&&t.ancestors.every($w.isString)},Uc.CustomError=void 0;const Qw=Mc,Xw=Fg,Gw=Jg,Zw=Hw;class tA extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Qw.first)((0,Xw.getErrorNames)(this)))&&void 0!==t?t:tA.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Gw.isError)(t)||(0,Zw.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Xw.getErrorNames)(this.prototype)].reverse(),r=(0,Qw.toArray)((0,Xw.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Uc.CustomError=tA;var eA={AssertionError:void 0};const nA=Uc;class rA extends nA.CustomError{}eA.AssertionError=rA;var oA={normalize:void 0};const iA=Fg,aA=Mc;oA.normalize=function(t){var e;const[n,...r]=(0,aA.toArray)((0,iA.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var sA={hydrate:void 0};const cA=ac;function uA(t,e){const n=function(){(0,cA.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}sA.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=uA(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var lA={assert:void 0};const fA=eA;lA.assert=function(t,e){if(!t)throw new fA.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Uc,t),r(eA,t),r(Hw,t),r(oA,t),r(sA,t),r(lA,t),r(Fg,t),r(Kw,t)}(zc),vc.chunkAsync=void 0;const yA=hc,dA=zc;vc.chunkAsync=function(t,e){return(0,dA.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,dA.assert)(e>0,"The parameter size must be greater than 0"),(0,yA.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var vA={chunkByAsync:void 0};const hA=Jg;vA.chunkByAsync=function(t,e){return(0,hA.isAsyncIterable)(t)?async function*(t,e){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t,e):async function*(t,e){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t,e)};var pA={};pA.chunkBy=void 0,pA.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var mA={chunk:void 0};const bA=hc,gA=zc;mA.chunk=function(t,e){return(0,gA.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,gA.assert)(e>0,"The parameter size must be greater than 0"),(0,bA.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var wA={concatAsync:void 0};const AA=Jg,IA=hc;wA.concatAsync=function(t,...e){return(0,IA.go)((async function*(){for(const n of[t,...e])if((0,AA.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var SA={concat:void 0};const TA=hc;SA.concat=function(t,...e){return(0,TA.go)((function*(){for(const n of[t,...e])yield*n}))};var xA={},EA={};EA.copyIterable=EA.copyAsyncIterable=void 0,EA.copyAsyncIterable=async function*(t){for await(const e of t)yield e},EA.copyIterable=function*(t){for(const e of t)yield e},xA.dropAsync=void 0;const _A=hc,OA=EA,jA=zc;xA.dropAsync=function(t,e){return(0,jA.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,jA.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,OA.copyAsyncIterable)(t):(0,_A.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var NA={dropRightAsync:void 0};const kA=hc,PA=EA,BA=zc;NA.dropRightAsync=function(t,e){return(0,BA.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,BA.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,PA.copyAsyncIterable)(t):(0,kA.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var qA={dropRight:void 0};const CA=hc,RA=EA,zA=zc;qA.dropRight=function(t,e){return(0,zA.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,zA.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,RA.copyIterable)(t):(0,CA.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var UA={dropUntilAsync:void 0};const MA=Jg;UA.dropUntilAsync=function(t,e){return(0,MA.isAsyncIterable)(t)?async function*(t,e){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t,e):async function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t,e)};var DA={};DA.dropUntil=void 0,DA.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var FA={drop:void 0};const JA=hc,VA=EA,LA=zc;FA.drop=function(t,e){return(0,LA.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,LA.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,VA.copyIterable)(t):(0,JA.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var KA={filterAsync:void 0};const WA=Jg;KA.filterAsync=function(t,e){return(0,WA.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t,e):async function*(t,e){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t,e)};var YA={};YA.filter=void 0,YA.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var HA={},$A={},QA={flattenByAsync:void 0};const XA=Jg;async function*GA(t,e,n){for(const r of t)ZA(r)&&await e(r,n)?yield*GA(r,e,n+1):yield r}function ZA(t){return(0,XA.isIterable)(t)&&(0,XA.isntChar)(t)}QA.flattenByAsync=function(t,e){return(0,XA.isAsyncIterable)(t)?async function*(t,e){const n=1;for await(const r of t)ZA(r)&&await e(r,n)?yield*GA(r,e,n+1):yield r}(t,e):function(t,e){return GA(t,e,1)}(t,e)},$A.flattenDeepAsync=void 0;const tI=QA,eI=zc;$A.flattenDeepAsync=function(t,e=1/0){return(0,eI.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,eI.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,tI.flattenByAsync)(t,((t,n)=>n<=e))},HA.flattenAsync=void 0;const nI=$A;HA.flattenAsync=function(t){return(0,nI.flattenDeepAsync)(t,1)};var rI={flattenBy:void 0};const oI=Jg;function*iI(t,e,n){for(const o of t)(0,oI.isIterable)(r=o)&&(0,oI.isntChar)(r)&&e(o,n)?yield*iI(o,e,n+1):yield o;var r}rI.flattenBy=function(t,e){return iI(t,e,1)};var aI={flattenDeep:void 0};const sI=rI,cI=zc;aI.flattenDeep=function(t,e=1/0){return(0,cI.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,cI.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,sI.flattenBy)(t,((t,n)=>n<=e))};var uI={flatten:void 0};const lI=aI;uI.flatten=function(t){return(0,lI.flattenDeep)(t,1)};var fI={mapAsync:void 0};const yI=Jg;fI.mapAsync=function(t,e){return(0,yI.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)yield await e(r,n),n++}(t,e):async function*(t,e){let n=0;for(const r of t)yield await e(r,n),n++}(t,e)};var dI={};dI.map=void 0,dI.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var vI={repeatAsync:void 0};const hI=hc,pI=zc;vI.repeatAsync=function(t,e){return(0,pI.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,pI.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,hI.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var mI={repeat:void 0};const bI=hc,gI=zc;mI.repeat=function(t,e){return(0,gI.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,gI.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,bI.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var wI={sliceAsync:void 0};const AI=hc,II=zc;wI.sliceAsync=function(t,e,n=1/0){return(0,II.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,II.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,II.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,II.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,AI.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var SI={slice:void 0};const TI=hc,xI=zc;SI.slice=function(t,e,n=1/0){return(0,xI.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,xI.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,xI.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,xI.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,TI.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var EI={};EI.splitAsync=void 0,EI.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var _I={splitByAsync:void 0};const OI=Jg;_I.splitByAsync=function(t,e){return(0,OI.isAsyncIterable)(t)?async function*(t,e){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t,e):async function*(t,e){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t,e)};var jI={};jI.splitBy=void 0,jI.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var NI={};NI.split=void 0,NI.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var kI={takeAsync:void 0};const PI=hc,BI=zc;kI.takeAsync=function(t,e){return(0,BI.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,BI.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,PI.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var qI={takeRightAsync:void 0};const CI=hc,RI=zc;qI.takeRightAsync=function(t,e){return(0,RI.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,RI.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,CI.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var zI={takeRight:void 0};const UI=hc,MI=zc;zI.takeRight=function(t,e){return(0,MI.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,MI.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,UI.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var DI={takeUntilAsync:void 0};const FI=Jg;DI.takeUntilAsync=function(t,e){return(0,FI.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t,e):async function*(t,e){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t,e)};var JI={};JI.takeUntil=void 0,JI.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var VI={take:void 0};const LI=hc,KI=zc;VI.take=function(t,e){return(0,KI.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,KI.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,LI.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var WI={tapAsync:void 0};const YI=Jg;WI.tapAsync=function(t,e){return(0,YI.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t,e):async function*(t,e){let n=0;for(const r of t)await e(r,n),yield r,n++}(t,e)};var HI={};HI.tap=void 0,HI.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var $I={};$I.toAsyncIterable=void 0,$I.toAsyncIterable=async function*(t){for(const e of t)yield e};var QI={};QI.transformAsync=void 0,QI.transformAsync=async function*(t,e){yield*e(t)};var XI={};XI.transform=void 0,XI.transform=function*(t,e){yield*e(t)};var GI={};GI.uniqAsync=void 0,GI.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var ZI={uniqByAsync:void 0};const tS=Jg;ZI.uniqByAsync=function(t,e){return(0,tS.isAsyncIterable)(t)?async function*(t,e){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t,e):async function*(t,e){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t,e)};var eS={};eS.uniqBy=void 0,eS.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var nS={};nS.uniq=void 0,nS.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var rS={zipAsync:void 0};const oS=Jg;var iS;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(iS||(iS={})),rS.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,oS.isAsyncIterable)(t)?[iS.Async,t[Symbol.asyncIterator]()]:[iS.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===iS.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===iS.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var aS={};aS.zip=void 0,aS.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(vc,t),r(vA,t),r(pA,t),r(mA,t),r(wA,t),r(SA,t),r(xA,t),r(NA,t),r(qA,t),r(UA,t),r(DA,t),r(FA,t),r(KA,t),r(YA,t),r(HA,t),r(QA,t),r(rI,t),r($A,t),r(aI,t),r(uI,t),r(fI,t),r(dI,t),r(vI,t),r(mI,t),r(wI,t),r(SI,t),r(EI,t),r(_I,t),r(jI,t),r(NI,t),r(kI,t),r(qI,t),r(zI,t),r(DI,t),r(JI,t),r(VI,t),r(WI,t),r(HI,t),r($I,t),r(QI,t),r(XI,t),r(GI,t),r(ZI,t),r(eS,t),r(nS,t),r(rS,t),r(aS,t)}(dc);var sS={},cS={};cS.consume=void 0,cS.consume=function(t,e){return e(t)};var uS={eachAsync:void 0};const lS=Jg;uS.eachAsync=function(t,e){return(0,lS.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t)await e(r,n),n++}(t,e):async function(t,e){let n=0;for(const r of t)await e(r,n),n++}(t,e)};var fS={};fS.each=void 0,fS.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var yS={everyAsync:void 0};const dS=Jg;yS.everyAsync=function(t,e){return(0,dS.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t,e):async function(t,e){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t,e)};var vS={};vS.every=void 0,vS.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var hS={findAsync:void 0};const pS=Jg;hS.findAsync=function(t,e){return(0,pS.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t,e):async function(t,e){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t,e)};var mS={};mS.find=void 0,mS.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var bS={};bS.firstAsync=void 0,bS.firstAsync=async function(t){for await(const e of t)return e};var gS={};gS.first=void 0,gS.first=function(t){for(const e of t)return e};var wS={};wS.includesAsync=void 0,wS.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var AS={};AS.includes=void 0,AS.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var IS={};IS.matchAsync=void 0,IS.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var SS={};SS.match=void 0,SS.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var TS={reduceAsync:void 0};const xS=Jg;TS.reduceAsync=function(t,e,n){return(0,xS.isUndefined)(n)?function(t,e){return(0,xS.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,xS.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var ES={reduce:void 0};const _S=Jg;ES.reduce=function(t,e,n){return(0,_S.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var OS={someAsync:void 0};const jS=Jg;OS.someAsync=function(t,e){return(0,jS.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t,e):async function(t,e){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t,e)};var NS={};NS.some=void 0,NS.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var kS={};kS.lastAsync=void 0,kS.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var PS={};PS.last=void 0,PS.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var BS={toArrayAsync:void 0};const qS=cS;BS.toArrayAsync=function(t){return(0,qS.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var CS={toArray:void 0};const RS=cS;CS.toArray=function(t){return(0,RS.consume)(t,(t=>Array.from(t)))};var zS={toSetAsync:void 0};const US=cS;zS.toSetAsync=function(t){return(0,US.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var MS={toSet:void 0};const DS=cS;MS.toSet=function(t){return(0,DS.consume)(t,(t=>new Set(t)))};var FS={};FS.count=void 0,FS.count=function(t){let e=0;for(const n of t)e++;return e};var JS={};JS.countAsync=void 0,JS.countAsync=async function(t){let e=0;for await(const n of t)e++;return e};var VS={groupBy:void 0};const LS=fS;VS.groupBy=function(t,e){const n=new Map;return(0,LS.each)(t,((t,r)=>{const o=e(t,r);n.has(o)||n.set(o,[]),n.get(o).push(t)})),n};var KS={groupByAsync:void 0};const WS=uS;KS.groupByAsync=async function(t,e){const n=new Map;return await(0,WS.eachAsync)(t,(async(t,r)=>{const o=await e(t,r);n.has(o)||n.set(o,[]),n.get(o).push(t)})),n},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(cS,t),r(uS,t),r(fS,t),r(yS,t),r(vS,t),r(hS,t),r(mS,t),r(bS,t),r(gS,t),r(wS,t),r(AS,t),r(IS,t),r(SS,t),r(TS,t),r(ES,t),r(OS,t),r(NS,t),r(kS,t),r(PS,t),r(BS,t),r(CS,t),r(zS,t),r(MS,t),r(FS,t),r(JS,t),r(VS,t),r(KS,t)}(sS),function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(dc,t),r(sS,t)}(yc);class YS{constructor(t){this.map=new Map,Rt.assert(Number.isInteger(t),"The parameter limit must be an integer"),Rt.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.has(t)?this.updateItem(t,e):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e)),this}has(t){return this.map.has(t)}get(t){if(!this.has(t))return;const e=this.map.get(t);return this.updateItem(t,e),e}delete(t){return this.map.delete(t)}clear(){this.map.clear()}updateItem(t,e){this.map.delete(t),this.map.set(t,e)}getColdestKey(){return yc.first(this.map.keys())}}class HS{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return this.map.has(t)}get(t){return this.map.get(t)}delete(t){const e=this.map.delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;this.map.clear(),null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=gc.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}}class $S{constructor(t){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],Rt.assert(Number.isInteger(t),"The parameter limit must be an integer"),Rt.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return this.map.has(t)}get(t){if(this.has(t)){const e=this.map.get(t);return this.updateItem(t,e),e}}delete(t){const e=this.map.delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;this.map.clear(),null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){this.map.delete(t),this.map.set(t,e)}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=gc.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return yc.first(this.map.keys())}}class QS{constructor(t){this.value=t,this.children=new Map}}class XS{constructor(){this.root=new QS}get[Symbol.toStringTag](){return this.constructor.name}*entries(){yield*function*t(e,n){for(const[o,i]of e.children){const e=[...n,o];r.isntUndefined(i.value)&&(yield[e,i.value]),yield*t(i,e)}}(this.root,[])}keys(){return yc.map(this.entries(),(([t])=>t))}values(){return yc.map(this.entries(),(([t,e])=>e))}set(t,e){let n=this.root;for(const e of t)n.children.has(e)||n.children.set(e,new QS),n=n.children.get(e);return n.value=e,this}has(t){let e=this.root;for(const n of t){if(!e.children.has(n))return!1;e=e.children.get(n)}return void 0!==e.value}get(t){let e=this.root;for(const n of t){if(!e.children.has(n))return;e=e.children.get(n)}return e.value}delete(t){const e=[];let n=this.root;for(const r of t){if(!n.children.has(r))return!1;e.push(n),n=n.children.get(r)}if(delete n.value,0===n.children.size)for(const[n,r]of yc.toArray(yc.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class GS{constructor(t,e){this.schema=t,this._state=e}get[Symbol.toStringTag](){return this.constructor.name}get state(){return this._state}matches(t){return this._state===t}can(t){return t in this.schema[this.state]}send(t){if(!this.can(t))throw new ZS(this.state,t);this._state=this.schema[this.state][t]}}class ZS extends Rt.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Structures={})}(this,(function(t){"use strict";class e{constructor(t){this.value=t}get[Symbol.toStringTag](){return this.constructor.name}set(t){this.value=t}get(){return this.value}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={},i={};function o(t){return Array.isArray(t)}i.isntEmptyArray=i.isEmptyArray=i.isntArray=i.isArray=void 0,i.isArray=o,i.isntArray=function(t){return!o(t)},i.isEmptyArray=function(t){return 0===t.length},i.isntEmptyArray=function(t){return 0!==t.length};var s={},a={};function u(t){return null===t}a.isntNull=a.isNull=void 0,a.isNull=u,a.isntNull=function(t){return!u(t)};var c={};function l(t){return void 0===t}c.isntUndefined=c.isUndefined=void 0,c.isUndefined=l,c.isntUndefined=function(t){return!l(t)};var h={};function f(t){return"function"==typeof t}h.isntFunction=h.isFunction=void 0,h.isFunction=f,h.isntFunction=function(t){return!f(t)},s.isntAsyncIterable=s.isAsyncIterable=void 0;const d=a,y=c,p=h;function v(t){return(0,d.isntNull)(t)&&(0,y.isntUndefined)(t)&&(0,p.isFunction)(t[Symbol.asyncIterator])}s.isAsyncIterable=v,s.isntAsyncIterable=function(t){return!v(t)};var m={};function b(t){return"bigint"==typeof t}m.isntBigInt=m.isBigInt=void 0,m.isBigInt=b,m.isntBigInt=function(t){return!b(t)};var g={};function x(t){return"boolean"==typeof t}g.isntBoolean=g.isBoolean=void 0,g.isBoolean=x,g.isntBoolean=function(t){return!x(t)};var w={},T={};function _(t){return"string"==typeof t}T.isntString=T.isString=void 0,T.isString=_,T.isntString=function(t){return!_(t)},w.isntChar=w.isChar=void 0;const S=T;function A(t){return(0,S.isString)(t)&&1===t.length}w.isChar=A,w.isntChar=function(t){return!A(t)};var I={};function E(t){return t instanceof Date}I.isntDate=I.isDate=void 0,I.isDate=E,I.isntDate=function(t){return!E(t)};var O={};O.inEnum=void 0,O.inEnum=function(t,e){return Object.values(e).includes(t)};var P={};function j(t){return t instanceof Error}P.isntError=P.isError=void 0,P.isError=j,P.isntError=function(t){return!j(t)};var k={};function M(t){return!t}k.isntFalsy=k.isFalsy=void 0,k.isFalsy=M,k.isntFalsy=function(t){return!M(t)};var N={};N.isntIterable=N.isIterable=void 0;const B=a,C=c,F=h;function z(t){return(0,B.isntNull)(t)&&(0,C.isntUndefined)(t)&&(0,F.isFunction)(t[Symbol.iterator])}N.isIterable=z,N.isntIterable=function(t){return!z(t)};var q={},D={};function V(t){return"number"==typeof t}function U(t){return Number.isNaN(t)}D.isntNaN=D.isNaN=D.isNegativeInfinity=D.isPositiveInfinity=D.isFinite=D.isntNumber=D.isNumber=void 0,D.isNumber=V,D.isntNumber=function(t){return!V(t)},D.isFinite=function(t){return Number.isFinite(t)},D.isPositiveInfinity=function(t){return t===1/0},D.isNegativeInfinity=function(t){return t===-1/0},D.isNaN=U,D.isntNaN=function(t){return!U(t)};var R={},L="object"==typeof n&&n&&n.Object===Object&&n,K="object"==typeof self&&self&&self.Object===Object&&self,J=(L||K||Function("return this")()).Symbol,W=J,Y=Object.prototype,H=Y.hasOwnProperty,$=Y.toString,Q=W?W.toStringTag:void 0;var X=function(t){var e=H.call(t,Q),n=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var i=$.call(t);return r&&(e?t[Q]=n:delete t[Q]),i},G=Object.prototype.toString;var Z=X,tt=function(t){return G.call(t)},et=J?J.toStringTag:void 0;var nt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":et&&et in Object(t)?Z(t):tt(t)};var rt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var it=nt,ot=rt,st=function(t){return null!=t&&"object"==typeof t},at=Function.prototype,ut=Object.prototype,ct=at.toString,lt=ut.hasOwnProperty,ht=ct.call(Object);var ft=function(t){if(!st(t)||"[object Object]"!=it(t))return!1;var e=ot(t);if(null===e)return!0;var n=lt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==ht},dt=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};R.isntEmptyObject=R.isEmptyObject=R.isntPlainObject=R.isPlainObject=R.isntObject=R.isObject=void 0;const yt=dt(ft);function pt(t){return null!==t&&"object"==typeof t}function vt(t){return(0,yt.default)(t)}R.isObject=pt,R.isntObject=function(t){return!pt(t)},R.isPlainObject=vt,R.isntPlainObject=function(t){return!vt(t)},R.isEmptyObject=function(t){return 0===Object.keys(t).length},R.isntEmptyObject=function(t){return 0!==Object.keys(t).length},q.isntJsonable=q.isJsonable=q.isntJson=q.isJson=void 0;const mt=a,bt=g,gt=T,xt=D,wt=i,Tt=R;function _t(t){return(0,mt.isNull)(t)||(0,bt.isBoolean)(t)||(0,gt.isString)(t)||(0,xt.isNumber)(t)||(0,wt.isArray)(t)&&t.every(_t)||(0,Tt.isPlainObject)(t)&&Object.values(t).every(_t)}q.isJson=_t,q.isntJson=function(t){return!_t(t)},q.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},q.isntJsonable=function t(e){return!t()};var St={};St.isPromiseLike=St.isntPromiseLike=St.isntPromise=St.isPromise=void 0;const At=R,It=h;function Et(t){return t instanceof Promise}function Ot(t){return(0,At.isObject)(t)&&(0,It.isFunction)(t.then)}St.isPromise=Et,St.isntPromise=function(t){return!Et(t)},St.isntPromiseLike=function(t){return!Ot(t)},St.isPromiseLike=Ot;var Pt={};Pt.isAbsoluteURL=void 0,Pt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var jt={};function kt(t){return t instanceof RegExp}jt.isntRegExp=jt.isRegExp=void 0,jt.isRegExp=kt,jt.isntRegExp=function(t){return!kt(t)};var Mt={};function Nt(t){return"symbol"==typeof t}Mt.isntSymbol=Mt.isSymbol=void 0,Mt.isSymbol=Nt,Mt.isntSymbol=function(t){return!Nt(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(i,t),r(s,t),r(m,t),r(g,t),r(w,t),r(I,t),r(O,t),r(P,t),r(k,t),r(h,t),r(N,t),r(q,t),r(a,t),r(D,t),r(R,t),r(St,t),r(T,t),r(c,t),r(Pt,t),r(jt,t),r(Mt,t)}(r);class Bt{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(t,e){this.map.has(t)||this.map.set(t,new Set);return this.map.get(t).add(n),()=>{if(!this.map.has(t))return;const e=this.map.get(t);e.delete(n),0===e.size&&this.map.delete(t)};function n(...t){e(...t)}}once(t,e){const n=this.on(t,((...t)=>{e(...t),n()}));return n}emit(t,...e){this.map.has(t)&&this.map.get(t).forEach((t=>t(...e)))}}class Ct{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.set(this.hash(t),e),this}has(t){return this.map.has(this.hash(t))}get(t){return this.map.get(this.hash(t))}delete(t){return this.map.delete(this.hash(t))}clear(){this.map.clear()}}class Ft{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(t){return this.map.set(this.hash(t),t),this}delete(t){return this.map.delete(this.hash(t))}has(t){return this.map.has(this.hash(t))}clear(){this.map.clear()}values(){return this.map.values()}}class zt{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...t){this.items.push(...t)}dequeue(){return this.items.shift()}remove(t){let e;for(;(e=this.items.indexOf(t))>=0;)this.items.splice(e,1)}}var qt={},Dt={},Vt={},Ut={},Rt={},Lt={},Kt={};Kt.go=void 0,Kt.go=function(t){return t()};var Jt={};Jt.goMicrotask=void 0,Jt.goMicrotask=function(t){return new Promise(((e,n)=>{queueMicrotask((async()=>{try{e(await t())}catch(t){n(t)}}))}))};var Wt={},Yt={},Ht={},$t={},Qt={};Qt.random=void 0,Qt.random=function(t,e){return Math.random()*(e-t)+t};var Xt={};Xt.randomInt=void 0,Xt.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var Gt={};Gt.randomIntInclusive=void 0,Gt.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Qt,t),r(Xt,t),r(Gt,t)}($t),Ht.calculateExponentialBackoffTimeout=void 0;const Zt=$t;Ht.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:i=!0}){const o=Math.min(r**e*t,n);return i?(0,Zt.randomIntInclusive)(0,o):o};var te={};te.setTimeout=void 0,te.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var ee={setSchedule:void 0};const ne=te;ee.setSchedule=function(t,e){const n=t-Date.now();return(0,ne.setTimeout)(n,e)};var re={};re.setInterval=void 0,re.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var ie={setImmediate:void 0};const oe=te;ie.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,oe.setTimeout)(0,t)};var se={setTimeoutLoop:void 0};const ae=te;se.setTimeoutLoop=function(t,e){let n=!1,r=(0,ae.setTimeout)(t,(async function i(){await e(),n||(r=(0,ae.setTimeout)(t,i))}));return()=>{n=!0,r()}};var ue={setDynamicTimeoutLoop:void 0};const ce=te;ue.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,ce.setTimeout)(t,(async function i(){const o=Date.now();await e();const s=Date.now()-o;n||(r=(0,ce.setTimeout)(Math.max(t-s,0),i))}));return()=>{n=!0,r()}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Ht,t),r(te,t),r(ee,t),r(re,t),r(ie,t),r(se,t),r(ue,t)}(Yt),Wt.goMacrotask=void 0;const le=Yt;var he;Wt.goMacrotask=function(t){return new Promise(((e,n)=>{(0,le.setImmediate)((async()=>{try{e(await t())}catch(t){n(t)}}))}))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Kt,t),r(Jt,t),r(Wt,t)}(Lt);var fe={},de={},ye={};function pe(t){return Array.isArray(t)}ye.isntEmptyArray=ye.isEmptyArray=ye.isntArray=ye.isArray=void 0,ye.isArray=pe,ye.isntArray=function(t){return!pe(t)},ye.isEmptyArray=function(t){return 0===t.length},ye.isntEmptyArray=function(t){return 0!==t.length};var ve={},me={};function be(t){return null===t}me.isntNull=me.isNull=void 0,me.isNull=be,me.isntNull=function(t){return!be(t)};var ge={};function xe(t){return void 0===t}ge.isntUndefined=ge.isUndefined=void 0,ge.isUndefined=xe,ge.isntUndefined=function(t){return!xe(t)};var we={};function Te(t){return"function"==typeof t}we.isntFunction=we.isFunction=void 0,we.isFunction=Te,we.isntFunction=function(t){return!Te(t)},ve.isntAsyncIterable=ve.isAsyncIterable=void 0;const _e=me,Se=ge,Ae=we;function Ie(t){return(0,_e.isntNull)(t)&&(0,Se.isntUndefined)(t)&&(0,Ae.isFunction)(t[Symbol.asyncIterator])}ve.isAsyncIterable=Ie,ve.isntAsyncIterable=function(t){return!Ie(t)};var Ee={};function Oe(t){return"bigint"==typeof t}Ee.isntBigInt=Ee.isBigInt=void 0,Ee.isBigInt=Oe,Ee.isntBigInt=function(t){return!Oe(t)};var Pe={};function je(t){return"boolean"==typeof t}Pe.isntBoolean=Pe.isBoolean=void 0,Pe.isBoolean=je,Pe.isntBoolean=function(t){return!je(t)};var ke={},Me={};function Ne(t){return"string"==typeof t}Me.isntString=Me.isString=void 0,Me.isString=Ne,Me.isntString=function(t){return!Ne(t)},ke.isntChar=ke.isChar=void 0;const Be=Me;function Ce(t){return(0,Be.isString)(t)&&1===t.length}ke.isChar=Ce,ke.isntChar=function(t){return!Ce(t)};var Fe={};function ze(t){return t instanceof Date}Fe.isntDate=Fe.isDate=void 0,Fe.isDate=ze,Fe.isntDate=function(t){return!ze(t)};var qe={};qe.inEnum=void 0,qe.inEnum=function(t,e){return Object.values(e).includes(t)};var De={};function Ve(t){return t instanceof Error}De.isntError=De.isError=void 0,De.isError=Ve,De.isntError=function(t){return!Ve(t)};var Ue={};function Re(t){return!t}Ue.isntFalsy=Ue.isFalsy=void 0,Ue.isFalsy=Re,Ue.isntFalsy=function(t){return!Re(t)};var Le={};Le.isntIterable=Le.isIterable=void 0;const Ke=me,Je=ge,We=we;function Ye(t){return(0,Ke.isntNull)(t)&&(0,Je.isntUndefined)(t)&&(0,We.isFunction)(t[Symbol.iterator])}Le.isIterable=Ye,Le.isntIterable=function(t){return!Ye(t)};var He={},$e={};function Qe(t){return"number"==typeof t}function Xe(t){return Number.isNaN(t)}$e.isntNaN=$e.isNaN=$e.isNegativeInfinity=$e.isPositiveInfinity=$e.isFinite=$e.isntNumber=$e.isNumber=void 0,$e.isNumber=Qe,$e.isntNumber=function(t){return!Qe(t)},$e.isFinite=function(t){return Number.isFinite(t)},$e.isPositiveInfinity=function(t){return t===1/0},$e.isNegativeInfinity=function(t){return t===-1/0},$e.isNaN=Xe,$e.isntNaN=function(t){return!Xe(t)};var Ge={},Ze=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Ge.isntEmptyObject=Ge.isEmptyObject=Ge.isntPlainObject=Ge.isPlainObject=Ge.isntObject=Ge.isObject=void 0;const tn=Ze(ft);function en(t){return null!==t&&"object"==typeof t}function nn(t){return(0,tn.default)(t)}Ge.isObject=en,Ge.isntObject=function(t){return!en(t)},Ge.isPlainObject=nn,Ge.isntPlainObject=function(t){return!nn(t)},Ge.isEmptyObject=function(t){return 0===Object.keys(t).length},Ge.isntEmptyObject=function(t){return 0!==Object.keys(t).length},He.isntJsonable=He.isJsonable=He.isntJson=He.isJson=void 0;const rn=me,on=Pe,sn=Me,an=$e,un=ye,cn=Ge;function ln(t){return(0,rn.isNull)(t)||(0,on.isBoolean)(t)||(0,sn.isString)(t)||(0,an.isNumber)(t)||(0,un.isArray)(t)&&t.every(ln)||(0,cn.isPlainObject)(t)&&Object.values(t).every(ln)}He.isJson=ln,He.isntJson=function(t){return!ln(t)},He.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},He.isntJsonable=function t(e){return!t()};var hn={};hn.isPromiseLike=hn.isntPromiseLike=hn.isntPromise=hn.isPromise=void 0;const fn=Ge,dn=we;function yn(t){return t instanceof Promise}function pn(t){return(0,fn.isObject)(t)&&(0,dn.isFunction)(t.then)}hn.isPromise=yn,hn.isntPromise=function(t){return!yn(t)},hn.isntPromiseLike=function(t){return!pn(t)},hn.isPromiseLike=pn;var vn={};vn.isAbsoluteURL=void 0,vn.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var mn={};function bn(t){return t instanceof RegExp}mn.isntRegExp=mn.isRegExp=void 0,mn.isRegExp=bn,mn.isntRegExp=function(t){return!bn(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(ye,t),r(ve,t),r(Ee,t),r(Pe,t),r(ke,t),r(Fe,t),r(qe,t),r(De,t),r(Ue,t),r(we,t),r(Le,t),r(He,t),r(me,t),r($e,t),r(Ge,t),r(hn,t),r(Me,t),r(ge,t),r(vn,t),r(mn,t)}(de),fe.chunkByAsync=void 0;const gn=de;fe.chunkByAsync=function(t,e){return(0,gn.isAsyncIterable)(t)?async function*(t,e){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t,e):async function*(t,e){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t,e)};var xn={};xn.chunkBy=void 0,xn.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var wn,Tn={};var _n={concatAsync:void 0};const Sn=de,An=Lt;_n.concatAsync=function(t,...e){return(0,An.go)((async function*(){for(const n of[t,...e])if((0,Sn.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var In={concat:void 0};const En=Lt;In.concat=function(t,...e){return(0,En.go)((function*(){for(const n of[t,...e])yield*n}))};var On,Pn={},jn={};jn.copyIterable=jn.copyAsyncIterable=void 0,jn.copyAsyncIterable=async function*(t){for await(const e of t)yield e},jn.copyIterable=function*(t){for(const e of t)yield e};var kn,Mn={};var Nn,Bn={};var Cn={dropUntilAsync:void 0};const Fn=de;Cn.dropUntilAsync=function(t,e){return(0,Fn.isAsyncIterable)(t)?async function*(t,e){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t,e):async function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t,e)};var zn={};zn.dropUntil=void 0,zn.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var qn,Dn={};var Vn={filterAsync:void 0};const Un=de;Vn.filterAsync=function(t,e){return(0,Un.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t,e):async function*(t,e){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t,e)};var Rn={};Rn.filter=void 0,Rn.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Ln={},Kn={},Jn={flattenByAsync:void 0};const Wn=de;async function*Yn(t,e,n){for(const r of t)Hn(r)&&await e(r,n)?yield*Yn(r,e,n+1):yield r}function Hn(t){return(0,Wn.isIterable)(t)&&(0,Wn.isntChar)(t)}var $n,Qn;function Xn(){if($n)return Kn;$n=1,Kn.flattenDeepAsync=void 0;const t=Jn,e=uo();return Kn.flattenDeepAsync=function(n,r=1/0){return(0,e.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,e.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenByAsync)(n,((t,e)=>e<=r))},Kn}Jn.flattenByAsync=function(t,e){return(0,Wn.isAsyncIterable)(t)?async function*(t,e){const n=1;for await(const r of t)Hn(r)&&await e(r,n)?yield*Yn(r,e,n+1):yield r}(t,e):function(t,e){return Yn(t,e,1)}(t,e)};var Gn={flattenBy:void 0};const Zn=de;function*tr(t,e,n){for(const i of t)(0,Zn.isIterable)(r=i)&&(0,Zn.isntChar)(r)&&e(i,n)?yield*tr(i,e,n+1):yield i;var r}Gn.flattenBy=function(t,e){return tr(t,e,1)};var er,nr={};function rr(){if(er)return nr;er=1,nr.flattenDeep=void 0;const t=Gn,e=uo();return nr.flattenDeep=function(n,r=1/0){return(0,e.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,e.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenBy)(n,((t,e)=>e<=r))},nr}var ir,or={};var sr={mapAsync:void 0};const ar=de;sr.mapAsync=function(t,e){return(0,ar.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)yield await e(r,n),n++}(t,e):async function*(t,e){let n=0;for(const r of t)yield await e(r,n),n++}(t,e)};var ur={};ur.map=void 0,ur.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var cr,lr={};function hr(){if(cr)return lr;cr=1,lr.repeatAsync=void 0;const t=Lt,e=uo();return lr.repeatAsync=function(n,r){return(0,e.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,e.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((async function*(){const t=[];if(r>0){for await(const e of n)yield e,t.push(e);r--}for(;r>0;)yield*t,r--}))},lr}var fr,dr={};function yr(){if(fr)return dr;fr=1,dr.repeat=void 0;const t=Lt,e=uo();return dr.repeat=function(n,r){return(0,e.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,e.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((function*(){const t=[];if(r>0){for(const e of n)yield e,t.push(e);r--}for(;r>0;)yield*t,r--}))},dr}var pr,vr={};var mr,br={};var gr={};gr.splitAsync=void 0,gr.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var xr={splitByAsync:void 0};const wr=de;xr.splitByAsync=function(t,e){return(0,wr.isAsyncIterable)(t)?async function*(t,e){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t,e):async function*(t,e){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t,e)};var Tr={};Tr.splitBy=void 0,Tr.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var _r={};_r.split=void 0,_r.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Sr,Ar={};var Ir,Er={};var Or,Pr={};var jr={takeUntilAsync:void 0};const kr=de;jr.takeUntilAsync=function(t,e){return(0,kr.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t,e):async function*(t,e){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t,e)};var Mr={};Mr.takeUntil=void 0,Mr.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Nr,Br={};var Cr={tapAsync:void 0};const Fr=de;Cr.tapAsync=function(t,e){return(0,Fr.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t,e):async function*(t,e){let n=0;for(const r of t)await e(r,n),yield r,n++}(t,e)};var zr={};zr.tap=void 0,zr.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var qr={};qr.toAsyncIterable=void 0,qr.toAsyncIterable=async function*(t){for(const e of t)yield e};var Dr={};Dr.transformAsync=void 0,Dr.transformAsync=async function*(t,e){yield*e(t)};var Vr={};Vr.transform=void 0,Vr.transform=function*(t,e){yield*e(t)};var Ur={};Ur.uniqAsync=void 0,Ur.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Rr={uniqByAsync:void 0};const Lr=de;Rr.uniqByAsync=function(t,e){return(0,Lr.isAsyncIterable)(t)?async function*(t,e){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t,e):async function*(t,e){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t,e)};var Kr={};Kr.uniqBy=void 0,Kr.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var Jr={};Jr.uniq=void 0,Jr.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var Wr={zipAsync:void 0};const Yr=de;var Hr;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Hr||(Hr={})),Wr.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,s=t.map((t=>(0,Yr.isAsyncIterable)(t)?[Hr.Async,t[Symbol.asyncIterator]()]:[Hr.Sync,t[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=s[e];let i;if(i=n===Hr.Async?await r.next():r.next(),i.done)return void(a[e]=!0);t[e]=i.value}yield t}}finally{const t=s.filter(((t,e)=>!a[e]));for(const[o,s]of t)o===Hr.Async?await(null===(n=(e=s).return)||void 0===n?void 0:n.call(e)):null===(i=(r=s).return)||void 0===i||i.call(r)}}(t,...e)};var $r,Qr={};function Xr(){return $r||($r=1,function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(function(){if(he)return Rt;he=1,Rt.chunkAsync=void 0;const t=Lt,e=uo();return Rt.chunkAsync=function(n,r){return(0,e.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,e.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((async function*(){let t=[];for await(const e of n)t.push(e),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},Rt}(),t),r(fe,t),r(xn,t),r(function(){if(wn)return Tn;wn=1,Tn.chunk=void 0;const t=Lt,e=uo();return Tn.chunk=function(n,r){return(0,e.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,e.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((function*(){let t=[];for(const e of n)t.push(e),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},Tn}(),t),r(_n,t),r(In,t),r(function(){if(On)return Pn;On=1,Pn.dropAsync=void 0;const t=Lt,e=jn,n=uo();return Pn.dropAsync=function(r,i){return(0,n.assert)(Number.isInteger(i),"The parameter count must be an integer"),(0,n.assert)(i>=0,"The parameter count must be greater than or equal to 0"),0===i?(0,e.copyAsyncIterable)(r):(0,t.go)((async function*(){var t;const e=r[Symbol.asyncIterator]();let n;try{let r;for(;({value:r,done:n}=await e.next()),!(n||i<=0);)i--;for(;!n;)yield r,({value:r,done:n}=await e.next())}finally{n||await(null===(t=e.return)||void 0===t?void 0:t.call(e))}}))},Pn}(),t),r(function(){if(kn)return Mn;kn=1,Mn.dropRightAsync=void 0;const t=Lt,e=jn,n=uo();return Mn.dropRightAsync=function(r,i){return(0,n.assert)(Number.isInteger(i),"The parameter count must be an integer"),(0,n.assert)(i>=0,"The parameter count must be greater than or equal to 0"),0===i?(0,e.copyAsyncIterable)(r):(0,t.go)((async function*(){const t=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(r)).slice(0,-i);for(const e of t)yield e}))},Mn}(),t),r(function(){if(Nn)return Bn;Nn=1,Bn.dropRight=void 0;const t=Lt,e=jn,n=uo();return Bn.dropRight=function(r,i){return(0,n.assert)(Number.isInteger(i),"The parameter count must be an integer"),(0,n.assert)(i>=0,"The parameter count must be greater than or equal to 0"),0===i?(0,e.copyIterable)(r):(0,t.go)((function*(){const t=Array.from(r);yield*t.slice(0,-i)}))},Bn}(),t),r(Cn,t),r(zn,t),r(function(){if(qn)return Dn;qn=1,Dn.drop=void 0;const t=Lt,e=jn,n=uo();return Dn.drop=function(r,i){return(0,n.assert)(Number.isInteger(i),"The parameter count must be an integer"),(0,n.assert)(i>=0,"The parameter count must be greater than or equal to 0"),0===i?(0,e.copyIterable)(r):(0,t.go)((function*(){var t;const e=r[Symbol.iterator]();let n;try{let r;for(;({value:r,done:n}=e.next()),!(n||i<=0);)i--;for(;!n;)yield r,({value:r,done:n}=e.next())}finally{n||null===(t=e.return)||void 0===t||t.call(e)}}))},Dn}(),t),r(Vn,t),r(Rn,t),r(function(){if(Qn)return Ln;Qn=1,Ln.flattenAsync=void 0;const t=Xn();return Ln.flattenAsync=function(e){return(0,t.flattenDeepAsync)(e,1)},Ln}(),t),r(Jn,t),r(Gn,t),r(Xn(),t),r(rr(),t),r(function(){if(ir)return or;ir=1,or.flatten=void 0;const t=rr();return or.flatten=function(e){return(0,t.flattenDeep)(e,1)},or}(),t),r(sr,t),r(ur,t),r(hr(),t),r(yr(),t),r(function(){if(pr)return vr;pr=1,vr.sliceAsync=void 0;const t=Lt,e=uo();return vr.sliceAsync=function(n,r,i=1/0){return(0,e.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,e.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,e.assert)(Number.isInteger(i),"The parameter end must be an integer"),(0,e.assert)(i>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((async function*(){let t=0;for await(const e of n){if(t>=i)break;t>=r&&(yield e),t++}}))},vr}(),t),r(function(){if(mr)return br;mr=1,br.slice=void 0;const t=Lt,e=uo();return br.slice=function(n,r,i=1/0){return(0,e.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,e.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,e.assert)(Number.isInteger(i),"The parameter end must be an integer"),(0,e.assert)(i>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((function*(){let t=0;for(const e of n){if(t>=i)break;t>=r&&(yield e),t++}}))},br}(),t),r(gr,t),r(xr,t),r(Tr,t),r(_r,t),r(function(){if(Sr)return Ar;Sr=1,Ar.takeAsync=void 0;const t=Lt,e=uo();return Ar.takeAsync=function(n,r){return(0,e.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,e.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){if(0!==r)for await(const t of n)if(yield t,0==--r)break}))},Ar}(),t),r(function(){if(Ir)return Er;Ir=1,Er.takeRightAsync=void 0;const t=Lt,e=uo();return Er.takeRightAsync=function(n,r){return(0,e.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,e.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){var t;const e=n[Symbol.asyncIterator]();let i;try{const n=[];let o;for(;({value:o,done:i}=await e.next()),!i;)n.push(o),n.length>r&&n.shift();yield*n}finally{i||await(null===(t=e.return)||void 0===t?void 0:t.call(e))}}))},Er}(),t),r(function(){if(Or)return Pr;Or=1,Pr.takeRight=void 0;const t=Lt,e=uo();return Pr.takeRight=function(n,r){return(0,e.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,e.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){var t;const e=n[Symbol.iterator]();let i;try{const n=[];let o;for(;({value:o,done:i}=e.next()),!i;)n.push(o),n.length>r&&n.shift();yield*n}finally{i||null===(t=e.return)||void 0===t||t.call(e)}}))},Pr}(),t),r(jr,t),r(Mr,t),r(function(){if(Nr)return Br;Nr=1,Br.take=void 0;const t=Lt,e=uo();return Br.take=function(n,r){return(0,e.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,e.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){if(0!==r)for(const t of n)if(yield t,0==--r)break}))},Br}(),t),r(Cr,t),r(zr,t),r(qr,t),r(Dr,t),r(Vr,t),r(Ur,t),r(Rr,t),r(Kr,t),r(Jr,t),r(Wr,t),r(Qr,t)}(Ut)),Ut}Qr.zip=void 0,Qr.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)};var Gr={},Zr={};Zr.consume=void 0,Zr.consume=function(t,e){return e(t)};var ti={eachAsync:void 0};const ei=de;ti.eachAsync=function(t,e){return(0,ei.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t)await e(r,n),n++}(t,e):async function(t,e){let n=0;for(const r of t)await e(r,n),n++}(t,e)};var ni={};ni.each=void 0,ni.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var ri={everyAsync:void 0};const ii=de;ri.everyAsync=function(t,e){return(0,ii.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t,e):async function(t,e){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t,e)};var oi={};oi.every=void 0,oi.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var si={findAsync:void 0};const ai=de;si.findAsync=function(t,e){return(0,ai.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t,e):async function(t,e){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t,e)};var ui={};ui.find=void 0,ui.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var ci={};ci.firstAsync=void 0,ci.firstAsync=async function(t){for await(const e of t)return e};var li={};li.first=void 0,li.first=function(t){for(const e of t)return e};var hi={};hi.includesAsync=void 0,hi.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var fi={};fi.includes=void 0,fi.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var di={};di.matchAsync=void 0,di.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var yi={};yi.match=void 0,yi.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var pi={reduceAsync:void 0};const vi=de;pi.reduceAsync=function(t,e,n){return(0,vi.isUndefined)(n)?function(t,e){return(0,vi.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,s=await o(r),a=1;for(;({value:t,done:i}=await r.next()),!i;)s=await e(s,t,a++);return s}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=await e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,vi.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var mi={reduce:void 0};const bi=de;mi.reduce=function(t,e,n){return(0,bi.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var gi={someAsync:void 0};const xi=de;gi.someAsync=function(t,e){return(0,xi.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t,e):async function(t,e){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t,e)};var wi={};wi.some=void 0,wi.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Ti={};Ti.lastAsync=void 0,Ti.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var _i={};_i.last=void 0,_i.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var Si={toArrayAsync:void 0};const Ai=Zr;Si.toArrayAsync=function(t){return(0,Ai.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Ii={toArray:void 0};const Ei=Zr;Ii.toArray=function(t){return(0,Ei.consume)(t,(t=>Array.from(t)))};var Oi={toSetAsync:void 0};const Pi=Zr;Oi.toSetAsync=function(t){return(0,Pi.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var ji={toSet:void 0};const ki=Zr;ji.toSet=function(t){return(0,ki.consume)(t,(t=>new Set(t)))};var Mi={};Mi.count=void 0,Mi.count=function(t){let e=0;for(const n of t)e++;return e};var Ni={};Ni.countAsync=void 0,Ni.countAsync=async function(t){let e=0;for await(const n of t)e++;return e};var Bi={groupBy:void 0};const Ci=ni;Bi.groupBy=function(t,e){const n=new Map;return(0,Ci.each)(t,((t,r)=>{const i=e(t,r);n.has(i)||n.set(i,[]),n.get(i).push(t)})),n};var Fi={groupByAsync:void 0};const zi=ti;var qi;function Di(){return qi||(qi=1,function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Xr(),t),r(Gr,t)}(Vt)),Vt}Fi.groupByAsync=async function(t,e){const n=new Map;return await(0,zi.eachAsync)(t,(async(t,r)=>{const i=await e(t,r);n.has(i)||n.set(i,[]),n.get(i).push(t)})),n},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Zr,t),r(ti,t),r(ni,t),r(ri,t),r(oi,t),r(si,t),r(ui,t),r(ci,t),r(li,t),r(hi,t),r(fi,t),r(di,t),r(yi,t),r(pi,t),r(mi,t),r(gi,t),r(wi,t),r(Ti,t),r(_i,t),r(Si,t),r(Ii,t),r(Oi,t),r(ji,t),r(Mi,t),r(Ni,t),r(Bi,t),r(Fi,t)}(Gr);var Vi={},Ui={};Ui.traverseErrorPrototypeChain=void 0,Ui.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Vi.getErrorNames=void 0;const Ri=r,Li=Ui;Vi.getErrorNames=function*(t){var e;if((0,Ri.isError)(t))for(const n of(0,Li.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Ki={isSerializableError:void 0};const Ji=r;var Wi;function Yi(){if(Wi)return Dt;Wi=1,Dt.CustomError=void 0;const t=Di(),e=Vi,n=r,i=Ki;class o extends Error{get name(){var n,r;return null!==(r=null!==(n=(0,t.first)((0,e.getErrorNames)(this)))&&void 0!==n?n:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](r){var o;if((0,n.isError)(r)||(0,i.isSerializableError)(r)){const n=[null!==(o=this.prototype.constructor.name)&&void 0!==o?o:this.name,...(0,e.getErrorNames)(this.prototype)].reverse(),i=(0,t.toArray)((0,e.getErrorNames)(r)).reverse();return n.every(((t,e)=>t===i[e]))}return!1}}return Dt.CustomError=o,Dt}Ki.isSerializableError=function(t){return(0,Ji.isObject)(t)&&(0,Ji.isString)(t.name)&&(0,Ji.isString)(t.message)&&((0,Ji.isString)(t.stack)||(0,Ji.isNull)(t.stack))&&(0,Ji.isArray)(t.ancestors)&&t.ancestors.every(Ji.isString)};var Hi,$i={};function Qi(){if(Hi)return $i;Hi=1,$i.AssertionError=void 0;const t=Yi();class e extends t.CustomError{}return $i.AssertionError=e,$i}var Xi,Gi={};var Zi={},to={},eo={};eo.pass=void 0,eo.pass=function(){};var no={};no.passAsync=void 0,no.passAsync=async function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(eo,t),r(no,t)}(to),Zi.hydrate=void 0;const ro=to;function io(t,e){const n=function(){(0,ro.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}Zi.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=io(r,t);const i=new r;return i.name=t.name,i.message=t.message,i.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,i};var oo,so,ao={};function uo(){return so||(so=1,function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Yi(),t),r(Qi(),t),r(Ki,t),r(function(){if(Xi)return Gi;Xi=1,Gi.normalize=void 0;const t=Vi,e=Di();return Gi.normalize=function(n){var r;const[i,...o]=(0,e.toArray)((0,t.getErrorNames)(n));return{name:i,ancestors:o,message:n.message,stack:null!==(r=n.stack)&&void 0!==r?r:null}},Gi}(),t),r(Zi,t),r(function(){if(oo)return ao;oo=1,ao.assert=void 0;const t=Qi();return ao.assert=function(e,n){if(!e)throw new t.AssertionError(n)},ao}(),t),r(Vi,t),r(Ui,t)}(qt)),qt}var co=uo(),lo=Di();class ho{constructor(t){this.map=new Map,co.assert(Number.isInteger(t),"The parameter limit must be an integer"),co.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.has(t)?this.updateItem(t,e):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e)),this}has(t){return this.map.has(t)}get(t){if(!this.has(t))return;const e=this.map.get(t);return this.updateItem(t,e),e}delete(t){return this.map.delete(t)}clear(){this.map.clear()}updateItem(t,e){this.map.delete(t),this.map.set(t,e)}getColdestKey(){return lo.first(this.map.keys())}}class fo{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return this.map.has(t)}get(t){return this.map.get(t)}delete(t){const e=this.map.delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;this.map.clear(),null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Yt.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}}class yo{constructor(t){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],co.assert(Number.isInteger(t),"The parameter limit must be an integer"),co.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return this.map.has(t)}get(t){if(this.has(t)){const e=this.map.get(t);return this.updateItem(t,e),e}}delete(t){const e=this.map.delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;this.map.clear(),null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){this.map.delete(t),this.map.set(t,e)}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Yt.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return lo.first(this.map.keys())}}class po{constructor(t){this.value=t,this.children=new Map}}class vo{constructor(){this.root=new po}get[Symbol.toStringTag](){return this.constructor.name}*entries(){yield*function*t(e,n){for(const[i,o]of e.children){const e=[...n,i];r.isntUndefined(o.value)&&(yield[e,o.value]),yield*t(o,e)}}(this.root,[])}keys(){return lo.map(this.entries(),(([t])=>t))}values(){return lo.map(this.entries(),(([t,e])=>e))}set(t,e){let n=this.root;for(const e of t)n.children.has(e)||n.children.set(e,new po),n=n.children.get(e);return n.value=e,this}has(t){let e=this.root;for(const n of t){if(!e.children.has(n))return!1;e=e.children.get(n)}return void 0!==e.value}get(t){let e=this.root;for(const n of t){if(!e.children.has(n))return;e=e.children.get(n)}return e.value}delete(t){const e=[];let n=this.root;for(const r of t){if(!n.children.has(r))return!1;e.push(n),n=n.children.get(r)}if(delete n.value,0===n.children.size)for(const[n,r]of lo.toArray(lo.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class mo{constructor(t,e){this.schema=t,this._state=e}get[Symbol.toStringTag](){return this.constructor.name}get state(){return this._state}matches(t){return this._state===t}can(t){return t in this.schema[this.state]}send(t){if(!this.can(t))throw new bo(this.state,t);this._state=this.schema[this.state][t]}}class bo extends co.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var tT=function(t,e){return(tT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function eT(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}tT(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function nT(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function rT(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function oT(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function iT(t){return"function"==typeof t}function aT(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var sT=aT((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function cT(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var uT=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=nT(i),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else i.remove(this);var c=this.initialTeardown;if(iT(c))try{c()}catch(t){o=t instanceof sT?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var l=nT(u),f=l.next();!f.done;f=l.next()){var y=f.value;try{yT(y)}catch(t){o=null!=o?o:[],t instanceof sT?o=oT(oT([],rT(o)),rT(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new sT(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)yT(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&cT(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&cT(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),lT=uT.EMPTY;function fT(t){return t instanceof uT||t&&"closed"in t&&iT(t.remove)&&iT(t.add)&&iT(t.unsubscribe)}function yT(t){iT(t)?t():t.unsubscribe()}var dT={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vT=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,oT([t,e],rT(n)))};function hT(){}function pT(t){t()}var mT=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,fT(e)&&e.add(n)):n.destination=ST,n}return eT(e,t),e.create=function(t,e,n){return new AT(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(uT),bT=Function.prototype.bind;function gT(t,e){return bT.call(t,e)}var wT=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){IT(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){IT(t)}else IT(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){IT(t)}},t}(),AT=function(t){function e(e,n,r){var o,i,a=t.call(this)||this;iT(e)||!e?o={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&dT.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},o={next:e.next&&gT(e.next,i),error:e.error&&gT(e.error,i),complete:e.complete&&gT(e.complete,i)}):o=e;return a.destination=new wT(o),a}return eT(e,t),e}(mT);function IT(t){var e;e=t,vT((function(){throw e}))}var ST={closed:!0,next:hT,error:function(t){throw t},complete:hT},TT="function"==typeof Symbol&&Symbol.observable||"@@observable";function xT(t){return t}function ET(t){return 0===t.length?xT:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var _T=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,o=this,i=(r=t)&&r instanceof mT||function(t){return t&&iT(t.next)&&iT(t.error)&&iT(t.complete)}(r)&&fT(r)?t:new AT(t,e,n);return pT((function(){var t=o,e=t.operator,n=t.source;i.add(e?e.call(i,n):n?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=OT(e))((function(e,r){var o=new AT({next:function(e){try{t(e)}catch(t){r(t),o.unsubscribe()}},error:r,complete:e});n.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[TT]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ET(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=OT(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function OT(t){var e;return null!==(e=null!=t?t:dT.Promise)&&void 0!==e?e:Promise}function jT(t){return iT(null==t?void 0:t.lift)}function NT(t,e,n,r,o){return new kT(t,e,n,r,o)}var kT=function(t){function e(e,n,r,o,i,a){var s=t.call(this,e)||this;return s.onFinalize=i,s.shouldUnsubscribe=a,s._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,s._error=o?function(t){try{o(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,s}return eT(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(mT);function PT(){return t=function(t,e){var n=null;t._refCount++;var r=NT(e,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,o=n;n=null,!r||o&&r!==o||r.unsubscribe(),e.unsubscribe()}}));t.subscribe(r),r.closed||(n=t.connect())},function(e){if(jT(e))return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")};var t}!function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,jT(e)&&(r.lift=e.lift),r}eT(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new uT;var n=this.getSubject();e.add(this.source.subscribe(NT(n,void 0,(function(){t._teardown(),n.complete()}),(function(e){t._teardown(),n.error(e)}),(function(){return t._teardown()})))),e.closed&&(this._connection=null,e=uT.EMPTY)}return e},e.prototype.refCount=function(){return PT()(this)}}(_T);var BT,qT,CT={now:function(){return(CT.delegate||performance).now()},delegate:void 0},RT={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e((function(e){n=void 0,t(e)}));return new uT((function(){return null==n?void 0:n(r)}))},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=RT.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,oT([],rT(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,oT([],rT(t)))},delegate:void 0};qT=RT.schedule,new _T((function(t){var e=new uT,n=BT||CT,r=n.now(),o=function(i){var a=n.now();t.next({timestamp:BT?a:i,elapsed:a-r}),t.closed||e.add(qT(o))};return e.add(qT(o)),e}));var zT=aT((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),UT=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return eT(e,t),e.prototype.lift=function(t){var e=new MT(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new zT},e.prototype.next=function(t){var e=this;pT((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=nT(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;pT((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;pT((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=this,r=n.hasError,o=n.isStopped,i=n.observers;return r||o?lT:(this.currentObservers=null,i.push(t),new uT((function(){e.currentObservers=null,cT(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,o=e.isStopped;n?t.error(r):o&&t.complete()},e.prototype.asObservable=function(){var t=new _T;return t.source=this,t},e.create=function(t,e){return new MT(t,e)},e}(_T),MT=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return eT(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:lT},e}(UT);!function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}eT(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(UT);var DT={now:function(){return(DT.delegate||Date).now()},delegate:void 0};!function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=DT);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=n,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,n),o}eT(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,o=n._buffer,i=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(o.push(e),!i&&o.push(a.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var a=n.now(),s=0,c=1;c<r.length&&r[c]<=a;c+=2)s=c;s&&r.splice(0,s+1)}}}(UT),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}eT(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,o=e._value,i=e.thrownError,a=e.isStopped,s=e._isComplete;n?t.error(i):(a||s)&&(r&&t.next(o),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(UT);var FT,JT=function(t){function e(e,n){return t.call(this)||this}return eT(e,t),e.prototype.schedule=function(t,e){return this},e}(uT),VT=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,oT([t,e],rT(n)))},LT=function(t){return clearInterval(t)},KT=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return eT(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),VT(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;LT(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,cT(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(JT),WT=1,YT={};function HT(t){return t in YT&&(delete YT[t],!0)}var $T=function(t){var e=WT++;return YT[e]=!0,FT||(FT=Promise.resolve()),FT.then((function(){return HT(e)&&t()})),e},QT=function(t){HT(t)},XT={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=XT.delegate;return((null==n?void 0:n.setImmediate)||$T).apply(void 0,oT([],rT(t)))},clearImmediate:function(t){return QT(t)},delegate:void 0},GT=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return eT(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=XT.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(XT.clearImmediate(n),e._scheduled=void 0)},e}(KT),ZT=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=DT.now,t}(),tx=function(t){function e(e,n){void 0===n&&(n=ZT.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return eT(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(ZT);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eT(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(tx))(GT),new tx(KT);var ex=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return eT(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(KT);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eT(e,t),e}(tx))(ex);var nx=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return eT(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=RT.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(RT.cancelAnimationFrame(n),e._scheduled=void 0)},e}(KT);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eT(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(tx))(nx),function(t){function e(e,n){void 0===e&&(e=ox),void 0===n&&(n=1/0);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}eT(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(tx);var rx,ox=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var o=t.call(this,e,n)||this;return o.scheduler=e,o.work=n,o.index=r,o.active=!0,o.index=e.index=r,o}return eT(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var o=new e(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return uT.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(KT);new _T((function(t){return t.complete()})),function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(rx||(rx={})),aT((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),aT((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),aT((function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})),aT((function(t){return function(e){t(this),this.name="SequenceError",this.message=e}})),aT((function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}})),new _T(hT);class ix extends GS{constructor(){super(...arguments),this.stateChanges=new UT}get[Symbol.toStringTag](){return this.constructor.name}observeStateChanges(){return this.stateChanges}send(t){const e=this.state;super.send(t);const n=this.state;this.stateChanges.next({event:t,oldState:e,newState:n}),r.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}}class ax{constructor(t=[]){this.indexToValue=[];const e=[];if(t.length>0)for(const[n,r]of t.entries())e[r]=n;this.valueToIndex=e}get[Symbol.toStringTag](){return this.constructor.name}[Symbol.iterator](){return this.indexToValue[Symbol.iterator]()}values(){return this.indexToValue[Symbol.iterator]()}has(t){return t in this.valueToIndex}add(t){if(!this.has(t)){const e=this.indexToValue.length;this.indexToValue.push(t),this.valueToIndex[t]=e}}delete(t){if(this.has(t)){const e=this.indexToValue.pop();if(t===e)delete this.valueToIndex[t];else{const n=this.valueToIndex[t];this.indexToValue[n]=e,this.valueToIndex[e]=n,delete this.valueToIndex[t]}return!0}return!1}}class sx{constructor(){this.keyToIndex=[],this.indexToKey=[],this.indexToValue=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.indexToKey.length}get internalArray(){return this.indexToValue}*entries(){for(let t=0;t<this.indexToKey.length;t++)yield[this.indexToKey[t],this.indexToValue[t]]}keys(){return this.indexToKey.values()}values(){return this.indexToValue.values()}getInternalIndexOfKey(t){return this.keyToIndex[t]}has(t){return t in this.keyToIndex}get(t){if(this.has(t)){const e=this.keyToIndex[t];return this.indexToValue[e]}}set(t,e){if(this.has(t)){const n=this.keyToIndex[t];this.indexToValue[n]=e}else{const n=this.indexToKey.length;this.indexToKey.push(t),this.indexToValue.push(e),this.keyToIndex[t]=n}}delete(t){if(this.has(t)){const e=this.indexToKey.pop(),n=this.indexToValue.pop();if(t===e)delete this.keyToIndex[t];else{const r=this.keyToIndex[t];this.indexToKey[r]=e,this.indexToValue[r]=n,this.keyToIndex[e]=r,delete this.keyToIndex[t]}}}}class cx{constructor(t){this.keyToIndex=[],this.indexToKey=[],Rt.assert(0===t.length,"array should be empty"),this.indexToValue=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.indexToKey.length}get internalTypedArray(){return this.indexToValue.internalTypedArray}*entries(){for(let t=0;t<this.indexToKey.length;t++)yield[this.indexToKey[t],this.indexToValue.internalTypedArray[t]]}keys(){return this.indexToKey.values()}*values(){for(let t=0;t<this.indexToKey.length;t++)yield this.indexToValue.internalTypedArray[t]}getInternalIndexOfKey(t){return this.keyToIndex[t]}has(t){const e=this.keyToIndex[t];return this.indexToKey[e]===t}get(t){const e=this.keyToIndex[t];return this.indexToKey[e]===t?this.indexToValue.internalTypedArray[e]:void 0}set(t,e){const n=this.keyToIndex[t];if(this.indexToKey[n]===t)this.indexToValue.internalTypedArray[n]=e;else{const n=this.indexToKey.length;this.indexToKey.push(t),this.indexToValue.push(e),this.keyToIndex[t]=n}}delete(t){const e=this.keyToIndex[t];if(this.indexToKey[e]===t){const n=this.indexToKey.pop(),r=this.indexToValue.pop();t!==n&&(this.indexToKey[e]=n,this.indexToValue.internalTypedArray[e]=r,this.keyToIndex[n]=e)}}}class ux{constructor(t){const e=[];if(t.length>0)for(const[n,r]of t.internalTypedArray.entries())e[r]=n;this.indexToValue=t,this.valueToIndex=e}get[Symbol.toStringTag](){return this.constructor.name}[Symbol.iterator](){return this.values()}*values(){for(let t=0;t<this.indexToValue.length;t++)yield this.indexToValue.internalTypedArray[t]}has(t){const e=this.valueToIndex[t];return this.indexToValue.internalTypedArray[e]===t}add(t){if(!this.has(t)){const e=this.indexToValue.length;this.indexToValue.push(t),this.valueToIndex[t]=e}}delete(t){const e=this.valueToIndex[t];if(this.indexToValue.internalTypedArray[e]===t){const n=this.indexToValue.pop();return t!==n&&(this.indexToValue.internalTypedArray[e]=n,this.valueToIndex[n]=e),!0}return!1}}class lx{constructor(t,{capacity:e=0,growthFactor:n=1.5}={}){this.typedArrayConstructor=t,this._length=0,Rt.assert(Number.isInteger(e),"capacity must be an integer"),Rt.assert(e>=0,"capacity must be greater than or equal to 0"),Rt.assert(n>=1,"growthFactory must be greater than or equal to 1"),this.array=new t(e),this.growthFactor=n}get internalTypedArray(){return this.array}get[Symbol.toStringTag](){return this.constructor.name}get capacity(){return this.array.length}get length(){return this._length}set(t,e){if(t>=this.capacity){const e=fx(this.capacity,t+1,this.growthFactor);this.resize(e)}t>=this._length&&(this._length=t+1),this.array[t]=e}get(t){return t<this._length?this.array[t]:void 0}push(...t){const e=this._length+t.length;if(e>this.capacity){const t=fx(this.capacity,e,this.growthFactor);this.resize(t)}for(const e of t)this.array[this._length++]=e}pop(){if(this._length>0){const t=this.array[this._length-1];this._length--;const e=fx(this.capacity,this.length,this.growthFactor);return this.resize(e),t}}sort(t){const e=this.capacity;this.resize(this.length),this.array.sort(t),this.resize(e)}resize(t){if(this.array.length!==t)if(this.array.length<t){const e=new this.typedArrayConstructor(t);e.set(this.array),this.array=e}else if(this.array.length>t){const e=new this.typedArrayConstructor(t);for(let n=t;n--;)e[n]=this.array[n];this.array=e}}}function fx(t,e,n){if(1===n)return e;if(t===e)return e;if(t<e){let r=Math.max(t,1);for(;r<e;)r*=n;return Math.floor(r)}if(0===e)return 0;{let r=t;for(;;){const t=r/n;if(t<e)break;r=t}return Math.floor(r)}}class yx{constructor(t){this.value=t,this.previous=null,this.next=null,this.up=null,this.down=null}}class dx{constructor(t){this.compare=t,this.head=new yx(null),this.tail=new yx(null),this.height=0,this._size=0,this.head.next=this.tail,this.tail.previous=this.head}get size(){return this._size}*elements(){let t=this.head;for(;t.down;)t=t.down;for(;t.next&&r.isntNull(t.next.value);)t=t.next,yield t}dumpList(){const t=[];let e=this.head;do{t.push([]);let n=e;do{t[t.length-1].push(n.value),n=n.next}while(n)}while(e=e.down);return t}delete(t){let e=this.findNode(t);for(;e;)e.previous.next=e.next,e.next.previous=e.previous,e=e.down;this._size--}has(t){return r.isntNull(this.findNode(t))}findNode(t){let e=this.head;for(;;){for(;e.next&&r.isntNull(e.next.value);){const n=this.compare(e.next.value,t);if(0===n)return e.next;if(!(n<0))break;e=e.next}if(!e.down)return null;e=e.down}}add(t){let e=this.findPreviousNode(t);if(e.next&&r.isntNull(e.next.value)&&0===this.compare(e.next.value,t))return;let n=new yx(t);e.next&&(n.next=e.next,e.next.previous=n),e.next=n,n.previous=e;let o=0;for(;Math.random()<.5;){if(o===this.height){const t=new yx(null),e=new yx(null);t.next=e,t.down=this.head,e.previous=t,e.down=this.tail,this.head.up=t,this.tail.up=e,this.head=t,this.tail=e,this.height++}for(;!e.up;)e=e.previous;e=e.up;const r=new yx(t);e.next&&(r.next=e.next,e.next.previous=r),e.next=r,r.previous=e,r.down=n,n.up=r,n=r,o++}this._size++}findPreviousNode(t){let e=this.head;for(;;){for(;e.next&&r.isntNull(e.next.value);){if(this.compare(e.next.value,t)>=0)break;e=e.next}if(!e.down)return e;e=e.down}}}class vx{constructor(t){this.skipList=new dx(t)}get[Symbol.toStringTag](){return this.constructor.name}[Symbol.iterator](){return this.values()}values(){return yc.map(this.skipList.elements(),(t=>t.value))}has(t){return this.skipList.has(t)}add(t){this.skipList.add(t)}delete(t){this.skipList.delete(t)}}class hx{constructor(t=8){this.bitsPerElement=t,this.array=[],this.length=0}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.length}[Symbol.iterator](){return this.values()}*values(){if(this.length>0){const t=Math.ceil(this.length/this.bitsPerElement),e=this.bitsPerElement-(t*this.bitsPerElement-this.length),n=t-1;for(let t=0;t<n;t++){const e=this.array[t];for(let n=0;n<this.bitsPerElement;n++){const r=this.getMask(n);(e&r)===r&&(yield t*this.bitsPerElement+n)}}const r=this.array[t-1];for(let t=0;t<e;t++){const e=this.getMask(t);(r&e)===e&&(yield n*this.bitsPerElement+t)}}}_dumpBinaryStrings(){const t=[];for(let e=0;e<this.array.length;e++){const n=this.array[e].toString(2);n.length<this.bitsPerElement?t.push("0".repeat(this.bitsPerElement-n.length)+n):t.push(n)}return t}has(t){var e;const[n,r]=this.getPosition(t);return((null!==(e=this.array[n])&&void 0!==e?e:0)&r)===r}add(t){var e;Rt.assert(t>=0,"value must be greater than or equal to 0"),t>=this.length&&(this.length=t+1);const[n,r]=this.getPosition(t);this.array[n]=(null!==(e=this.array[n])&&void 0!==e?e:0)|r}delete(t){var e;const[n,r]=this.getPosition(t),o=null!==(e=this.array[n])&&void 0!==e?e:0;return this.array[n]=o&~r,(o&r)===r}clear(){for(let t=this.array.length;t--;)this.array[t]=0}getPosition(t){const e=t%this.bitsPerElement;return[(t-e)/this.bitsPerElement,this.getMask(e)]}getMask(t){return 2**t}}class px{constructor(t){this.array=t,this.bitsPerElement=8*this.array.internalTypedArray.BYTES_PER_ELEMENT,this.length=0}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.length}[Symbol.iterator](){return this.values()}*values(){if(this.length>0){const t=Math.ceil(this.length/this.bitsPerElement),e=this.bitsPerElement-(t*this.bitsPerElement-this.length),n=t-1;for(let t=0;t<n;t++){const e=this.array.internalTypedArray[t];for(let n=0;n<this.bitsPerElement;n++){const r=this.getMask(n);(e&r)===r&&(yield t*this.bitsPerElement+n)}}const r=this.array.internalTypedArray[t-1];for(let t=0;t<e;t++){const e=this.getMask(t);(r&e)===e&&(yield n*this.bitsPerElement+t)}}}_dumpBinaryStrings(){const t=[];for(let e=0;e<this.array.length;e++){const n=this.array.internalTypedArray[e].toString(2);n.length<this.bitsPerElement?t.push("0".repeat(this.bitsPerElement-n.length)+n):t.push(n)}return t}has(t){var e;const[n,r]=this.getPosition(t);return((null!==(e=this.array.get(n))&&void 0!==e?e:0)&r)===r}add(t){var e;Rt.assert(t>=0,"value must be greater than or equal to 0"),t>=this.length&&(this.length=t+1);const[n,r]=this.getPosition(t);this.array.set(n,(null!==(e=this.array.get(n))&&void 0!==e?e:0)|r)}delete(t){var e;const[n,r]=this.getPosition(t),o=null!==(e=this.array.get(n))&&void 0!==e?e:0;return this.array.set(n,o&~r),(o&r)===r}clear(){for(let t=this.array.length;t--;)this.array.set(t,0)}getPosition(t){const e=t%this.bitsPerElement;return[(t-e)/this.bitsPerElement,this.getMask(e)]}getMask(t){return 2**t}}t.BadEventError=ZS,t.BitSet=hx,t.Box=e,t.DynamicTypedArray=lx,t.Emitter=Pt,t.ExpirableMap=HS,t.FiniteStateMachine=GS,t.HashMap=Bt,t.HashSet=qt,t.LRUMap=YS,t.ObservableFiniteStateMachine=ix,t.Queue=Ct,t.SortedSet=vx,t.SparseMap=sx,t.SparseSet=ax,t.TLRUMap=$S,t.TrieMap=XS,t.TypedBitSet=px,t.TypedSparseMap=cx,t.TypedSparseSet=ux,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return r.isNull(n)?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var go=function(t,e){return(go=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function xo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}go(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function wo(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function To(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function _o(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function So(t){return"function"==typeof t}function Ao(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Io=Ao((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Eo(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Oo=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=wo(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(So(u))try{u()}catch(t){i=t instanceof Io?t.errors:[t]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var l=wo(c),h=l.next();!h.done;h=l.next()){var f=h.value;try{ko(f)}catch(t){i=null!=i?i:[],t instanceof Io?i=_o(_o([],To(i)),To(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Io(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)ko(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Eo(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&Eo(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Po=Oo.EMPTY;function jo(t){return t instanceof Oo||t&&"closed"in t&&So(t.remove)&&So(t.add)&&So(t.unsubscribe)}function ko(t){So(t)?t():t.unsubscribe()}var Mo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},No=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,_o([t,e],To(n)))};function Bo(){}function Co(t){t()}var Fo=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,jo(e)&&e.add(n)):n.destination=Ro,n}return xo(e,t),e.create=function(t,e,n){return new Vo(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Oo),zo=Function.prototype.bind;function qo(t,e){return zo.call(t,e)}var Do=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Uo(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Uo(t)}else Uo(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Uo(t)}},t}(),Vo=function(t){function e(e,n,r){var i,o,s=t.call(this)||this;So(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Mo.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&qo(e.next,o),error:e.error&&qo(e.error,o),complete:e.complete&&qo(e.complete,o)}):i=e;return s.destination=new Do(i),s}return xo(e,t),e}(Fo);function Uo(t){var e;e=t,No((function(){throw e}))}var Ro={closed:!0,next:Bo,error:function(t){throw t},complete:Bo},Lo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ko(t){return t}function Jo(t){return 0===t.length?Ko:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Wo=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof Fo||function(t){return t&&So(t.next)&&So(t.error)&&So(t.complete)}(r)&&jo(r)?t:new Vo(t,e,n);return Co((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=Yo(e))((function(e,r){var i=new Vo({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Lo]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Jo(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Yo(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function Yo(t){var e;return null!==(e=null!=t?t:Mo.Promise)&&void 0!==e?e:Promise}function Ho(t){return So(null==t?void 0:t.lift)}function $o(t,e,n,r,i){return new Qo(t,e,n,r,i)}var Qo=function(t){function e(e,n,r,i,o,s){var a=t.call(this,e)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,a._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,a._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,a}return xo(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(Fo);function Xo(){return t=function(t,e){var n=null;t._refCount++;var r=$o(e,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),e.unsubscribe()}}));t.subscribe(r),r.closed||(n=t.connect())},function(e){if(Ho(e))return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")};var t}!function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Ho(e)&&(r.lift=e.lift),r}xo(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new Oo;var n=this.getSubject();e.add(this.source.subscribe($o(n,void 0,(function(){t._teardown(),n.complete()}),(function(e){t._teardown(),n.error(e)}),(function(){return t._teardown()})))),e.closed&&(this._connection=null,e=Oo.EMPTY)}return e},e.prototype.refCount=function(){return Xo()(this)}}(Wo);var Go,Zo,ts={now:function(){return(ts.delegate||performance).now()},delegate:void 0},es={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e((function(e){n=void 0,t(e)}));return new Oo((function(){return null==n?void 0:n(r)}))},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=es.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,_o([],To(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,_o([],To(t)))},delegate:void 0};Zo=es.schedule,new Wo((function(t){var e=new Oo,n=Go||ts,r=n.now(),i=function(o){var s=n.now();t.next({timestamp:Go?s:o,elapsed:s-r}),t.closed||e.add(Zo(i))};return e.add(Zo(i)),e}));var ns=Ao((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),rs=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return xo(e,t),e.prototype.lift=function(t){var e=new is(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new ns},e.prototype.next=function(t){var e=this;Co((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=wo(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;Co((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Co((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?Po:(this.currentObservers=null,o.push(t),new Oo((function(){e.currentObservers=null,Eo(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new Wo;return t.source=this,t},e.create=function(t,e){return new is(t,e)},e}(Wo),is=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return xo(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:Po},e}(rs);!function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}xo(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(rs);var os={now:function(){return(os.delegate||Date).now()},delegate:void 0};!function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=os);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}xo(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}}}(rs),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}xo(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,i=e._value,o=e.thrownError,s=e.isStopped,a=e._isComplete;n?t.error(o):(s||a)&&(r&&t.next(i),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(rs);var ss,as=function(t){function e(e,n){return t.call(this)||this}return xo(e,t),e.prototype.schedule=function(t,e){return this},e}(Oo),us=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,_o([t,e],To(n)))},cs=function(t){return clearInterval(t)},ls=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return xo(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),us(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;cs(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Eo(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(as),hs=1,fs={};function ds(t){return t in fs&&(delete fs[t],!0)}var ys=function(t){var e=hs++;return fs[e]=!0,ss||(ss=Promise.resolve()),ss.then((function(){return ds(e)&&t()})),e},ps=function(t){ds(t)},vs={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=vs.delegate;return((null==n?void 0:n.setImmediate)||ys).apply(void 0,_o([],To(t)))},clearImmediate:function(t){return ps(t)},delegate:void 0},ms=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return xo(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=vs.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(vs.clearImmediate(n),e._scheduled=void 0)},e}(ls),bs=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=os.now,t}(),gs=function(t){function e(e,n){void 0===n&&(n=bs.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return xo(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(bs);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xo(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(gs))(ms),new gs(ls);var xs=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return xo(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(ls);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xo(e,t),e}(gs))(xs);var ws=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return xo(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=es.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(es.cancelAnimationFrame(n),e._scheduled=void 0)},e}(ls);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xo(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(gs))(ws),function(t){function e(e,n){void 0===e&&(e=_s),void 0===n&&(n=1/0);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}xo(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(gs);var Ts,_s=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return xo(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return Oo.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(ls);new Wo((function(t){return t.complete()})),function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(Ts||(Ts={})),Ao((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),Ao((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),Ao((function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})),Ao((function(t){return function(e){t(this),this.name="SequenceError",this.message=e}})),Ao((function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}})),new Wo(Bo);class Ss extends mo{constructor(){super(...arguments),this.stateChanges=new rs}get[Symbol.toStringTag](){return this.constructor.name}observeStateChanges(){return this.stateChanges}send(t){const e=this.state;super.send(t);const n=this.state;this.stateChanges.next({event:t,oldState:e,newState:n}),r.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}}class As{constructor(t=[]){this.indexToValue=[];const e=[];if(t.length>0)for(const[n,r]of t.entries())e[r]=n;this.valueToIndex=e}get[Symbol.toStringTag](){return this.constructor.name}[Symbol.iterator](){return this.indexToValue[Symbol.iterator]()}values(){return this.indexToValue[Symbol.iterator]()}has(t){return t in this.valueToIndex}add(t){if(!this.has(t)){const e=this.indexToValue.length;this.indexToValue.push(t),this.valueToIndex[t]=e}}delete(t){if(this.has(t)){const e=this.indexToValue.pop();if(t===e)delete this.valueToIndex[t];else{const n=this.valueToIndex[t];this.indexToValue[n]=e,this.valueToIndex[e]=n,delete this.valueToIndex[t]}return!0}return!1}}class Is{constructor(){this.keyToIndex=[],this.indexToKey=[],this.indexToValue=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.indexToKey.length}get internalArray(){return this.indexToValue}*entries(){for(let t=0;t<this.indexToKey.length;t++)yield[this.indexToKey[t],this.indexToValue[t]]}keys(){return this.indexToKey.values()}values(){return this.indexToValue.values()}getInternalIndexOfKey(t){return this.keyToIndex[t]}has(t){return t in this.keyToIndex}get(t){if(this.has(t)){const e=this.keyToIndex[t];return this.indexToValue[e]}}set(t,e){if(this.has(t)){const n=this.keyToIndex[t];this.indexToValue[n]=e}else{const n=this.indexToKey.length;this.indexToKey.push(t),this.indexToValue.push(e),this.keyToIndex[t]=n}}delete(t){if(this.has(t)){const e=this.indexToKey.pop(),n=this.indexToValue.pop();if(t===e)delete this.keyToIndex[t];else{const r=this.keyToIndex[t];this.indexToKey[r]=e,this.indexToValue[r]=n,this.keyToIndex[e]=r,delete this.keyToIndex[t]}}}}class Es{constructor(t){this.keyToIndex=[],this.indexToKey=[],co.assert(0===t.length,"array should be empty"),this.indexToValue=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.indexToKey.length}get internalTypedArray(){return this.indexToValue.internalTypedArray}*entries(){for(let t=0;t<this.indexToKey.length;t++)yield[this.indexToKey[t],this.indexToValue.internalTypedArray[t]]}keys(){return this.indexToKey.values()}*values(){for(let t=0;t<this.indexToKey.length;t++)yield this.indexToValue.internalTypedArray[t]}getInternalIndexOfKey(t){return this.keyToIndex[t]}has(t){const e=this.keyToIndex[t];return this.indexToKey[e]===t}get(t){const e=this.keyToIndex[t];return this.indexToKey[e]===t?this.indexToValue.internalTypedArray[e]:void 0}set(t,e){const n=this.keyToIndex[t];if(this.indexToKey[n]===t)this.indexToValue.internalTypedArray[n]=e;else{const n=this.indexToKey.length;this.indexToKey.push(t),this.indexToValue.push(e),this.keyToIndex[t]=n}}delete(t){const e=this.keyToIndex[t];if(this.indexToKey[e]===t){const n=this.indexToKey.pop(),r=this.indexToValue.pop();t!==n&&(this.indexToKey[e]=n,this.indexToValue.internalTypedArray[e]=r,this.keyToIndex[n]=e)}}}class Os{constructor(t){const e=[];if(t.length>0)for(const[n,r]of t.internalTypedArray.entries())e[r]=n;this.indexToValue=t,this.valueToIndex=e}get[Symbol.toStringTag](){return this.constructor.name}[Symbol.iterator](){return this.values()}*values(){for(let t=0;t<this.indexToValue.length;t++)yield this.indexToValue.internalTypedArray[t]}has(t){const e=this.valueToIndex[t];return this.indexToValue.internalTypedArray[e]===t}add(t){if(!this.has(t)){const e=this.indexToValue.length;this.indexToValue.push(t),this.valueToIndex[t]=e}}delete(t){const e=this.valueToIndex[t];if(this.indexToValue.internalTypedArray[e]===t){const n=this.indexToValue.pop();return t!==n&&(this.indexToValue.internalTypedArray[e]=n,this.valueToIndex[n]=e),!0}return!1}}class Ps{constructor(t,{capacity:e=0,growthFactor:n=1.5}={}){this.typedArrayConstructor=t,this._length=0,co.assert(Number.isInteger(e),"capacity must be an integer"),co.assert(e>=0,"capacity must be greater than or equal to 0"),co.assert(n>=1,"growthFactory must be greater than or equal to 1"),this.array=new t(e),this.growthFactor=n}get internalTypedArray(){return this.array}get[Symbol.toStringTag](){return this.constructor.name}get capacity(){return this.array.length}get length(){return this._length}set(t,e){if(t>=this.capacity){const e=js(this.capacity,t+1,this.growthFactor);this.resize(e)}t>=this._length&&(this._length=t+1),this.array[t]=e}get(t){return t<this._length?this.array[t]:void 0}push(...t){const e=this._length+t.length;if(e>this.capacity){const t=js(this.capacity,e,this.growthFactor);this.resize(t)}for(const e of t)this.array[this._length++]=e}pop(){if(this._length>0){const t=this.array[this._length-1];this._length--;const e=js(this.capacity,this.length,this.growthFactor);return this.resize(e),t}}sort(t){const e=this.capacity;this.resize(this.length),this.array.sort(t),this.resize(e)}resize(t){if(this.array.length!==t)if(this.array.length<t){const e=new this.typedArrayConstructor(t);e.set(this.array),this.array=e}else if(this.array.length>t){const e=new this.typedArrayConstructor(t);for(let n=t;n--;)e[n]=this.array[n];this.array=e}}}function js(t,e,n){if(1===n)return e;if(t===e)return e;if(t<e){let r=Math.max(t,1);for(;r<e;)r*=n;return Math.floor(r)}if(0===e)return 0;{let r=t;for(;;){const t=r/n;if(t<e)break;r=t}return Math.floor(r)}}class ks{constructor(t){this.value=t,this.previous=null,this.next=null,this.up=null,this.down=null}}class Ms{constructor(t){this.compare=t,this.head=new ks(null),this.tail=new ks(null),this.height=0,this._size=0,this.head.next=this.tail,this.tail.previous=this.head}get size(){return this._size}*elements(){let t=this.head;for(;t.down;)t=t.down;for(;t.next&&r.isntNull(t.next.value);)t=t.next,yield t}dumpList(){const t=[];let e=this.head;do{t.push([]);let n=e;do{t[t.length-1].push(n.value),n=n.next}while(n)}while(e=e.down);return t}delete(t){let e=this.findNode(t);for(;e;)e.previous.next=e.next,e.next.previous=e.previous,e=e.down;this._size--}has(t){return r.isntNull(this.findNode(t))}findNode(t){let e=this.head;for(;;){for(;e.next&&r.isntNull(e.next.value);){const n=this.compare(e.next.value,t);if(0===n)return e.next;if(!(n<0))break;e=e.next}if(!e.down)return null;e=e.down}}add(t){let e=this.findPreviousNode(t);if(e.next&&r.isntNull(e.next.value)&&0===this.compare(e.next.value,t))return;let n=new ks(t);e.next&&(n.next=e.next,e.next.previous=n),e.next=n,n.previous=e;let i=0;for(;Math.random()<.5;){if(i===this.height){const t=new ks(null),e=new ks(null);t.next=e,t.down=this.head,e.previous=t,e.down=this.tail,this.head.up=t,this.tail.up=e,this.head=t,this.tail=e,this.height++}for(;!e.up;)e=e.previous;e=e.up;const r=new ks(t);e.next&&(r.next=e.next,e.next.previous=r),e.next=r,r.previous=e,r.down=n,n.up=r,n=r,i++}this._size++}findPreviousNode(t){let e=this.head;for(;;){for(;e.next&&r.isntNull(e.next.value);){if(this.compare(e.next.value,t)>=0)break;e=e.next}if(!e.down)return e;e=e.down}}}class Ns{constructor(t){this.skipList=new Ms(t)}get[Symbol.toStringTag](){return this.constructor.name}[Symbol.iterator](){return this.values()}values(){return lo.map(this.skipList.elements(),(t=>t.value))}has(t){return this.skipList.has(t)}add(t){this.skipList.add(t)}delete(t){this.skipList.delete(t)}}class Bs{constructor(t=8){this.bitsPerElement=t,this.array=[],this.length=0}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.length}[Symbol.iterator](){return this.values()}*values(){if(this.length>0){const t=Math.ceil(this.length/this.bitsPerElement),e=this.bitsPerElement-(t*this.bitsPerElement-this.length),n=t-1;for(let t=0;t<n;t++){const e=this.array[t];for(let n=0;n<this.bitsPerElement;n++){const r=this.getMask(n);(e&r)===r&&(yield t*this.bitsPerElement+n)}}const r=this.array[t-1];for(let t=0;t<e;t++){const e=this.getMask(t);(r&e)===e&&(yield n*this.bitsPerElement+t)}}}_dumpBinaryStrings(){const t=[];for(let e=0;e<this.array.length;e++){const n=this.array[e].toString(2);n.length<this.bitsPerElement?t.push("0".repeat(this.bitsPerElement-n.length)+n):t.push(n)}return t}has(t){var e;const[n,r]=this.getPosition(t);return((null!==(e=this.array[n])&&void 0!==e?e:0)&r)===r}add(t){var e;co.assert(t>=0,"value must be greater than or equal to 0"),t>=this.length&&(this.length=t+1);const[n,r]=this.getPosition(t);this.array[n]=(null!==(e=this.array[n])&&void 0!==e?e:0)|r}delete(t){var e;const[n,r]=this.getPosition(t),i=null!==(e=this.array[n])&&void 0!==e?e:0;return this.array[n]=i&~r,(i&r)===r}clear(){for(let t=this.array.length;t--;)this.array[t]=0}getPosition(t){const e=t%this.bitsPerElement;return[(t-e)/this.bitsPerElement,this.getMask(e)]}getMask(t){return 1<<t}}class Cs{constructor(t){this.array=t,this.bitsPerElement=8*this.array.internalTypedArray.BYTES_PER_ELEMENT,this.length=0}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.length}[Symbol.iterator](){return this.values()}*values(){if(this.length>0){const t=Math.ceil(this.length/this.bitsPerElement),e=this.bitsPerElement-(t*this.bitsPerElement-this.length),n=t-1;for(let t=0;t<n;t++){const e=this.array.internalTypedArray[t];for(let n=0;n<this.bitsPerElement;n++){const r=this.getMask(n);(e&r)===r&&(yield t*this.bitsPerElement+n)}}const r=this.array.internalTypedArray[t-1];for(let t=0;t<e;t++){const e=this.getMask(t);(r&e)===e&&(yield n*this.bitsPerElement+t)}}}_dumpBinaryStrings(){const t=[];for(let e=0;e<this.array.length;e++){const n=this.array.internalTypedArray[e].toString(2);n.length<this.bitsPerElement?t.push("0".repeat(this.bitsPerElement-n.length)+n):t.push(n)}return t}has(t){var e;const[n,r]=this.getPosition(t);return((null!==(e=this.array.get(n))&&void 0!==e?e:0)&r)===r}add(t){var e;co.assert(t>=0,"value must be greater than or equal to 0"),t>=this.length&&(this.length=t+1);const[n,r]=this.getPosition(t);this.array.set(n,(null!==(e=this.array.get(n))&&void 0!==e?e:0)|r)}delete(t){var e;const[n,r]=this.getPosition(t),i=null!==(e=this.array.get(n))&&void 0!==e?e:0;return this.array.set(n,i&~r),(i&r)===r}clear(){for(let t=this.array.length;t--;)this.array.set(t,0)}getPosition(t){const e=t%this.bitsPerElement;return[(t-e)/this.bitsPerElement,this.getMask(e)]}getMask(t){return 2**t}}t.BadEventError=bo,t.BitSet=Bs,t.Box=e,t.DynamicTypedArray=Ps,t.Emitter=Bt,t.ExpirableMap=fo,t.FiniteStateMachine=mo,t.HashMap=Ct,t.HashSet=Ft,t.LRUMap=ho,t.ObservableFiniteStateMachine=Ss,t.Queue=zt,t.SortedSet=Ns,t.SparseMap=Is,t.SparseSet=As,t.TLRUMap=yo,t.TrieMap=vo,t.TypedBitSet=Cs,t.TypedSparseMap=Es,t.TypedSparseSet=Os,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return r.isNull(n)?[e]:[e,...t(n)]},t.sliceArrayLeft=function(t,e){return t.slice(0,e)},t.sliceArrayRight=function(t,e){const n=t.length-e;return t.slice(n>=0?n:0)},t.truncateArrayLeft=function(t,e){t.length>e&&(t.length=e)},t.truncateArrayRight=function(t,e){const n=t.length-e;t.splice(0,n)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=index.umd.min.js.map
|