l-element-components
Version:
24 lines • 3.17 MB
JavaScript
(function(pe,Ye){typeof exports=="object"&&typeof module<"u"?module.exports=Ye(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ye):(pe=typeof globalThis<"u"?globalThis:pe||self,pe.index=Ye(pe.Vue))})(this,function(pe){"use strict";/**
* @license
* MIT License
*
* Copyright (c) 2014-present, Lee Byron and other contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var Ye="delete",he=5,Fe=1<<he,Ae=Fe-1,ce={};function gr(){return{value:!1}}function Ue(w){w&&(w.value=!0)}function Sr(){}function mt(w){return w.size===void 0&&(w.size=w.__iterate(hn)),w.size}function nt(w,x){if(typeof x!="number"){var L=x>>>0;if(""+L!==x||L===4294967295)return NaN;x=L}return x<0?mt(w)+x:x}function hn(){return!0}function kt(w,x,L){return(w===0&&!fn(w)||L!==void 0&&w<=-L)&&(x===void 0||L!==void 0&&x>=L)}function gt(w,x){return dn(w,x,0)}function Vt(w,x){return dn(w,x,x)}function dn(w,x,L){return w===void 0?L:fn(w)?x===1/0?x:Math.max(0,x+w)|0:x===void 0||x===w?w:Math.min(x,w)|0}function fn(w){return w<0||w===0&&1/w===-1/0}var mn="@@__IMMUTABLE_ITERABLE__@@";function Re(w){return!!(w&&w[mn])}var gn="@@__IMMUTABLE_KEYED__@@";function me(w){return!!(w&&w[gn])}var Sn="@@__IMMUTABLE_INDEXED__@@";function Ie(w){return!!(w&&w[Sn])}function tr(w){return me(w)||Ie(w)}var Ce=function(x){return Re(x)?x:Le(x)},Oe=function(w){function x(L){return me(L)?L:at(L)}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x}(Ce),lt=function(w){function x(L){return Ie(L)?L:Be(L)}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x}(Ce),St=function(w){function x(L){return Re(L)&&!tr(L)?L:bt(L)}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x}(Ce);Ce.Keyed=Oe,Ce.Indexed=lt,Ce.Set=St;var yn="@@__IMMUTABLE_SEQ__@@";function rr(w){return!!(w&&w[yn])}var vn="@@__IMMUTABLE_RECORD__@@";function _t(w){return!!(w&&w[vn])}function Je(w){return Re(w)||_t(w)}var yt="@@__IMMUTABLE_ORDERED__@@";function He(w){return!!(w&&w[yt])}var Rt=0,qe=1,De=2,yr=typeof Symbol=="function"&&Symbol.iterator,bn="@@iterator",nr=yr||bn,$e=function(x){this.next=x};$e.prototype.toString=function(){return"[Iterator]"},$e.KEYS=Rt,$e.VALUES=qe,$e.ENTRIES=De,$e.prototype.inspect=$e.prototype.toSource=function(){return this.toString()},$e.prototype[nr]=function(){return this};function ge(w,x,L,k){var M=w===0?x:w===1?L:[x,L];return k?k.value=M:k={value:M,done:!1},k}function Me(){return{value:void 0,done:!0}}function vr(w){return Array.isArray(w)?!0:!!ar(w)}function Cn(w){return w&&typeof w.next=="function"}function br(w){var x=ar(w);return x&&x.call(w)}function ar(w){var x=w&&(yr&&w[yr]||w[bn]);if(typeof x=="function")return x}function Na(w){var x=ar(w);return x&&x===w.entries}function Fa(w){var x=ar(w);return x&&x===w.keys}var vt=Object.prototype.hasOwnProperty;function Cr(w){return Array.isArray(w)||typeof w=="string"?!0:w&&typeof w=="object"&&Number.isInteger(w.length)&&w.length>=0&&(w.length===0?Object.keys(w).length===1:w.hasOwnProperty(w.length-1))}var Le=function(w){function x(L){return L==null?wr():Je(L)?L.toSeq():Pa(L)}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.toSeq=function(){return this},x.prototype.toString=function(){return this.__toString("Seq {","}")},x.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},x.prototype.__iterate=function(k,M){var P=this._cache;if(P){for(var U=P.length,B=0;B!==U;){var j=P[M?U-++B:B++];if(k(j[1],j[0],this)===!1)break}return B}return this.__iterateUncached(k,M)},x.prototype.__iterator=function(k,M){var P=this._cache;if(P){var U=P.length,B=0;return new $e(function(){if(B===U)return Me();var j=P[M?U-++B:B++];return ge(k,j[0],j[1])})}return this.__iteratorUncached(k,M)},x}(Ce),at=function(w){function x(L){return L==null?wr().toKeyedSeq():Re(L)?me(L)?L.toSeq():L.fromEntrySeq():_t(L)?L.toSeq():Er(L)}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.toKeyedSeq=function(){return this},x}(Le),Be=function(w){function x(L){return L==null?wr():Re(L)?me(L)?L.entrySeq():L.toIndexedSeq():_t(L)?L.toSeq().entrySeq():wn(L)}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.of=function(){return x(arguments)},x.prototype.toIndexedSeq=function(){return this},x.prototype.toString=function(){return this.__toString("Seq [","]")},x}(Le),bt=function(w){function x(L){return(Re(L)&&!tr(L)?L:Be(L)).toSetSeq()}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.of=function(){return x(arguments)},x.prototype.toSetSeq=function(){return this},x}(Le);Le.isSeq=rr,Le.Keyed=at,Le.Set=bt,Le.Indexed=Be,Le.prototype[yn]=!0;var ut=function(w){function x(L){this._array=L,this.size=L.length}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.get=function(k,M){return this.has(k)?this._array[nt(this,k)]:M},x.prototype.__iterate=function(k,M){for(var P=this._array,U=P.length,B=0;B!==U;){var j=M?U-++B:B++;if(k(P[j],j,this)===!1)break}return B},x.prototype.__iterator=function(k,M){var P=this._array,U=P.length,B=0;return new $e(function(){if(B===U)return Me();var j=M?U-++B:B++;return ge(k,j,P[j])})},x}(Be),xr=function(w){function x(L){var k=Object.keys(L).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(L):[]);this._object=L,this._keys=k,this.size=k.length}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.get=function(k,M){return M!==void 0&&!this.has(k)?M:this._object[k]},x.prototype.has=function(k){return vt.call(this._object,k)},x.prototype.__iterate=function(k,M){for(var P=this._object,U=this._keys,B=U.length,j=0;j!==B;){var Q=U[M?B-++j:j++];if(k(P[Q],Q,this)===!1)break}return j},x.prototype.__iterator=function(k,M){var P=this._object,U=this._keys,B=U.length,j=0;return new $e(function(){if(j===B)return Me();var Q=U[M?B-++j:j++];return ge(k,Q,P[Q])})},x}(at);xr.prototype[yt]=!0;var Ta=function(w){function x(L){this._collection=L,this.size=L.length||L.size}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.__iterateUncached=function(k,M){if(M)return this.cacheResult().__iterate(k,M);var P=this._collection,U=br(P),B=0;if(Cn(U))for(var j;!(j=U.next()).done&&k(j.value,B++,this)!==!1;);return B},x.prototype.__iteratorUncached=function(k,M){if(M)return this.cacheResult().__iterator(k,M);var P=this._collection,U=br(P);if(!Cn(U))return new $e(Me);var B=0;return new $e(function(){var j=U.next();return j.done?j:ge(k,B++,j.value)})},x}(Be),xn;function wr(){return xn||(xn=new ut([]))}function Er(w){var x=Ar(w);if(x)return x.fromEntrySeq();if(typeof w=="object")return new xr(w);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+w)}function wn(w){var x=Ar(w);if(x)return x;throw new TypeError("Expected Array or collection object of values: "+w)}function Pa(w){var x=Ar(w);if(x)return Na(w)?x.fromEntrySeq():Fa(w)?x.toSetSeq():x;if(typeof w=="object")return new xr(w);throw new TypeError("Expected Array or collection object of values, or keyed object: "+w)}function Ar(w){return Cr(w)?new ut(w):vr(w)?new Ta(w):void 0}var En="@@__IMMUTABLE_MAP__@@";function sr(w){return!!(w&&w[En])}function Ir(w){return sr(w)&&He(w)}function Mr(w){return!!(w&&typeof w.equals=="function"&&typeof w.hashCode=="function")}function xe(w,x){if(w===x||w!==w&&x!==x)return!0;if(!w||!x)return!1;if(typeof w.valueOf=="function"&&typeof x.valueOf=="function"){if(w=w.valueOf(),x=x.valueOf(),w===x||w!==w&&x!==x)return!0;if(!w||!x)return!1}return!!(Mr(w)&&Mr(x)&&w.equals(x))}var Nt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(x,L){x|=0,L|=0;var k=x&65535,M=L&65535;return k*M+((x>>>16)*M+k*(L>>>16)<<16>>>0)|0};function ir(w){return w>>>1&1073741824|w&3221225471}var Ua=Object.prototype.valueOf;function Ne(w){if(w==null)return An(w);if(typeof w.hashCode=="function")return ir(w.hashCode(w));var x=Ha(w);if(x==null)return An(x);switch(typeof x){case"boolean":return x?1108378657:1108378656;case"number":return Oa(x);case"string":return x.length>qa?Ja(x):Lr(x);case"object":case"function":return Ba(x);case"symbol":return Da(x);default:if(typeof x.toString=="function")return Lr(x.toString());throw new Error("Value type "+typeof x+" cannot be hashed.")}}function An(w){return w===null?1108378658:1108378659}function Oa(w){if(w!==w||w===1/0)return 0;var x=w|0;for(x!==w&&(x^=w*4294967295);w>4294967295;)w/=4294967295,x^=w;return ir(x)}function Ja(w){var x=Fr[w];return x===void 0&&(x=Lr(w),Nr===ja&&(Nr=0,Fr={}),Nr++,Fr[w]=x),x}function Lr(w){for(var x=0,L=0;L<w.length;L++)x=31*x+w.charCodeAt(L)|0;return ir(x)}function Da(w){var x=kn[w];return x!==void 0||(x=Ln(),kn[w]=x),x}function Ba(w){var x;if(kr&&(x=Vr.get(w),x!==void 0)||(x=w[ct],x!==void 0)||!Mn&&(x=w.propertyIsEnumerable&&w.propertyIsEnumerable[ct],x!==void 0||(x=za(w),x!==void 0)))return x;if(x=Ln(),kr)Vr.set(w,x);else{if(In!==void 0&&In(w)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Mn)Object.defineProperty(w,ct,{enumerable:!1,configurable:!1,writable:!1,value:x});else if(w.propertyIsEnumerable!==void 0&&w.propertyIsEnumerable===w.constructor.prototype.propertyIsEnumerable)w.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},w.propertyIsEnumerable[ct]=x;else if(w.nodeType!==void 0)w[ct]=x;else throw new Error("Unable to set a non-enumerable property on object.")}return x}var In=Object.isExtensible,Mn=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function za(w){if(w&&w.nodeType>0)switch(w.nodeType){case 1:return w.uniqueID;case 9:return w.documentElement&&w.documentElement.uniqueID}}function Ha(w){return w.valueOf!==Ua&&typeof w.valueOf=="function"?w.valueOf(w):w}function Ln(){var w=++Rr;return Rr&1073741824&&(Rr=0),w}var kr=typeof WeakMap=="function",Vr;kr&&(Vr=new WeakMap);var kn=Object.create(null),Rr=0,ct="__immutablehash__";typeof Symbol=="function"&&(ct=Symbol(ct));var qa=16,ja=255,Nr=0,Fr={},or=function(w){function x(L,k){this._iter=L,this._useKeys=k,this.size=L.size}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.get=function(k,M){return this._iter.get(k,M)},x.prototype.has=function(k){return this._iter.has(k)},x.prototype.valueSeq=function(){return this._iter.valueSeq()},x.prototype.reverse=function(){var k=this,M=Tr(this,!0);return this._useKeys||(M.valueSeq=function(){return k._iter.toSeq().reverse()}),M},x.prototype.map=function(k,M){var P=this,U=Tn(this,k,M);return this._useKeys||(U.valueSeq=function(){return P._iter.toSeq().map(k,M)}),U},x.prototype.__iterate=function(k,M){var P=this;return this._iter.__iterate(function(U,B){return k(U,B,P)},M)},x.prototype.__iterator=function(k,M){return this._iter.__iterator(k,M)},x}(at);or.prototype[yt]=!0;var Vn=function(w){function x(L){this._iter=L,this.size=L.size}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.includes=function(k){return this._iter.includes(k)},x.prototype.__iterate=function(k,M){var P=this,U=0;return M&&mt(this),this._iter.__iterate(function(B){return k(B,M?P.size-++U:U++,P)},M)},x.prototype.__iterator=function(k,M){var P=this,U=this._iter.__iterator(qe,M),B=0;return M&&mt(this),new $e(function(){var j=U.next();return j.done?j:ge(k,M?P.size-++B:B++,j.value,j)})},x}(Be),Rn=function(w){function x(L){this._iter=L,this.size=L.size}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.has=function(k){return this._iter.includes(k)},x.prototype.__iterate=function(k,M){var P=this;return this._iter.__iterate(function(U){return k(U,U,P)},M)},x.prototype.__iterator=function(k,M){var P=this._iter.__iterator(qe,M);return new $e(function(){var U=P.next();return U.done?U:ge(k,U.value,U.value,U)})},x}(bt),Nn=function(w){function x(L){this._iter=L,this.size=L.size}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.entrySeq=function(){return this._iter.toSeq()},x.prototype.__iterate=function(k,M){var P=this;return this._iter.__iterate(function(U){if(U){Dn(U);var B=Re(U);return k(B?U.get(1):U[1],B?U.get(0):U[0],P)}},M)},x.prototype.__iterator=function(k,M){var P=this._iter.__iterator(qe,M);return new $e(function(){for(;;){var U=P.next();if(U.done)return U;var B=U.value;if(B){Dn(B);var j=Re(B);return ge(k,j?B.get(0):B[0],j?B.get(1):B[1],U)}}})},x}(at);Vn.prototype.cacheResult=or.prototype.cacheResult=Rn.prototype.cacheResult=Nn.prototype.cacheResult=Or;function Fn(w){var x=Ke(w);return x._iter=w,x.size=w.size,x.flip=function(){return w},x.reverse=function(){var L=w.reverse.apply(this);return L.flip=function(){return w.reverse()},L},x.has=function(L){return w.includes(L)},x.includes=function(L){return w.has(L)},x.cacheResult=Or,x.__iterateUncached=function(L,k){var M=this;return w.__iterate(function(P,U){return L(U,P,M)!==!1},k)},x.__iteratorUncached=function(L,k){if(L===De){var M=w.__iterator(L,k);return new $e(function(){var P=M.next();if(!P.done){var U=P.value[0];P.value[0]=P.value[1],P.value[1]=U}return P})}return w.__iterator(L===qe?Rt:qe,k)},x}function Tn(w,x,L){var k=Ke(w);return k.size=w.size,k.has=function(M){return w.has(M)},k.get=function(M,P){var U=w.get(M,ce);return U===ce?P:x.call(L,U,M,w)},k.__iterateUncached=function(M,P){var U=this;return w.__iterate(function(B,j,Q){return M(x.call(L,B,j,Q),j,U)!==!1},P)},k.__iteratorUncached=function(M,P){var U=w.__iterator(De,P);return new $e(function(){var B=U.next();if(B.done)return B;var j=B.value,Q=j[0];return ge(M,Q,x.call(L,j[1],Q,w),B)})},k}function Tr(w,x){var L=this,k=Ke(w);return k._iter=w,k.size=w.size,k.reverse=function(){return w},w.flip&&(k.flip=function(){var M=Fn(w);return M.reverse=function(){return w.flip()},M}),k.get=function(M,P){return w.get(x?M:-1-M,P)},k.has=function(M){return w.has(x?M:-1-M)},k.includes=function(M){return w.includes(M)},k.cacheResult=Or,k.__iterate=function(M,P){var U=this,B=0;return P&&mt(w),w.__iterate(function(j,Q){return M(j,x?Q:P?U.size-++B:B++,U)},!P)},k.__iterator=function(M,P){var U=0;P&&mt(w);var B=w.__iterator(De,!P);return new $e(function(){var j=B.next();if(j.done)return j;var Q=j.value;return ge(M,x?Q[0]:P?L.size-++U:U++,Q[1],j)})},k}function Pn(w,x,L,k){var M=Ke(w);return k&&(M.has=function(P){var U=w.get(P,ce);return U!==ce&&!!x.call(L,U,P,w)},M.get=function(P,U){var B=w.get(P,ce);return B!==ce&&x.call(L,B,P,w)?B:U}),M.__iterateUncached=function(P,U){var B=this,j=0;return w.__iterate(function(Q,G,Y){if(x.call(L,Q,G,Y))return j++,P(Q,k?G:j-1,B)},U),j},M.__iteratorUncached=function(P,U){var B=w.__iterator(De,U),j=0;return new $e(function(){for(;;){var Q=B.next();if(Q.done)return Q;var G=Q.value,Y=G[0],ne=G[1];if(x.call(L,ne,Y,w))return ge(P,k?Y:j++,ne,Q)}})},M}function Wa(w,x,L){var k=pt().asMutable();return w.__iterate(function(M,P){k.update(x.call(L,M,P,w),0,function(U){return U+1})}),k.asImmutable()}function Ka(w,x,L){var k=me(w),M=(He(w)?Ze():pt()).asMutable();w.__iterate(function(U,B){M.update(x.call(L,U,B,w),function(j){return j=j||[],j.push(k?[B,U]:U),j})});var P=Ur(w);return M.map(function(U){return de(w,P(U))}).asImmutable()}function Qa(w,x,L){var k=me(w),M=[[],[]];w.__iterate(function(U,B){M[x.call(L,U,B,w)?1:0].push(k?[B,U]:U)});var P=Ur(w);return M.map(function(U){return de(w,P(U))})}function Pr(w,x,L,k){var M=w.size;if(kt(x,L,M))return w;if(typeof M>"u"&&(x<0||L<0))return Pr(w.toSeq().cacheResult(),x,L,k);var P=gt(x,M),U=Vt(L,M),B=U-P,j;B===B&&(j=B<0?0:B);var Q=Ke(w);return Q.size=j===0?j:w.size&&j||void 0,!k&&rr(w)&&j>=0&&(Q.get=function(G,Y){return G=nt(this,G),G>=0&&G<j?w.get(G+P,Y):Y}),Q.__iterateUncached=function(G,Y){var ne=this;if(j===0)return 0;if(Y)return this.cacheResult().__iterate(G,Y);var oe=0,ie=!0,ue=0;return w.__iterate(function(Ve,ze){if(!(ie&&(ie=oe++<P)))return ue++,G(Ve,k?ze:ue-1,ne)!==!1&&ue!==j}),ue},Q.__iteratorUncached=function(G,Y){if(j!==0&&Y)return this.cacheResult().__iterator(G,Y);if(j===0)return new $e(Me);var ne=w.__iterator(G,Y),oe=0,ie=0;return new $e(function(){for(;oe++<P;)ne.next();if(++ie>j)return Me();var ue=ne.next();return k||G===qe||ue.done?ue:G===Rt?ge(G,ie-1,void 0,ue):ge(G,ie-1,ue.value[1],ue)})},Q}function Ga(w,x,L){var k=Ke(w);return k.__iterateUncached=function(M,P){var U=this;if(P)return this.cacheResult().__iterate(M,P);var B=0;return w.__iterate(function(j,Q,G){return x.call(L,j,Q,G)&&++B&&M(j,Q,U)}),B},k.__iteratorUncached=function(M,P){var U=this;if(P)return this.cacheResult().__iterator(M,P);var B=w.__iterator(De,P),j=!0;return new $e(function(){if(!j)return Me();var Q=B.next();if(Q.done)return Q;var G=Q.value,Y=G[0],ne=G[1];return x.call(L,ne,Y,U)?M===De?Q:ge(M,Y,ne,Q):(j=!1,Me())})},k}function Un(w,x,L,k){var M=Ke(w);return M.__iterateUncached=function(P,U){var B=this;if(U)return this.cacheResult().__iterate(P,U);var j=!0,Q=0;return w.__iterate(function(G,Y,ne){if(!(j&&(j=x.call(L,G,Y,ne))))return Q++,P(G,k?Y:Q-1,B)}),Q},M.__iteratorUncached=function(P,U){var B=this;if(U)return this.cacheResult().__iterator(P,U);var j=w.__iterator(De,U),Q=!0,G=0;return new $e(function(){var Y,ne,oe;do{if(Y=j.next(),Y.done)return k||P===qe?Y:P===Rt?ge(P,G++,void 0,Y):ge(P,G++,Y.value[1],Y);var ie=Y.value;ne=ie[0],oe=ie[1],Q&&(Q=x.call(L,oe,ne,B))}while(Q);return P===De?Y:ge(P,ne,oe,Y)})},M}function Za(w,x){var L=me(w),k=[w].concat(x).map(function(U){return Re(U)?L&&(U=Oe(U)):U=L?Er(U):wn(Array.isArray(U)?U:[U]),U}).filter(function(U){return U.size!==0});if(k.length===0)return w;if(k.length===1){var M=k[0];if(M===w||L&&me(M)||Ie(w)&&Ie(M))return M}var P=new ut(k);return L?P=P.toKeyedSeq():Ie(w)||(P=P.toSetSeq()),P=P.flatten(!0),P.size=k.reduce(function(U,B){if(U!==void 0){var j=B.size;if(j!==void 0)return U+j}},0),P}function On(w,x,L){var k=Ke(w);return k.__iterateUncached=function(M,P){if(P)return this.cacheResult().__iterate(M,P);var U=0,B=!1;function j(Q,G){Q.__iterate(function(Y,ne){return(!x||G<x)&&Re(Y)?j(Y,G+1):(U++,M(Y,L?ne:U-1,k)===!1&&(B=!0)),!B},P)}return j(w,0),U},k.__iteratorUncached=function(M,P){if(P)return this.cacheResult().__iterator(M,P);var U=w.__iterator(M,P),B=[],j=0;return new $e(function(){for(;U;){var Q=U.next();if(Q.done!==!1){U=B.pop();continue}var G=Q.value;if(M===De&&(G=G[1]),(!x||B.length<x)&&Re(G))B.push(U),U=G.__iterator(M,P);else return L?Q:ge(M,j++,G,Q)}return Me()})},k}function Xa(w,x,L){var k=Ur(w);return w.toSeq().map(function(M,P){return k(x.call(L,M,P,w))}).flatten(!0)}function Ya(w,x){var L=Ke(w);return L.size=w.size&&w.size*2-1,L.__iterateUncached=function(k,M){var P=this,U=0;return w.__iterate(function(B){return(!U||k(x,U++,P)!==!1)&&k(B,U++,P)!==!1},M),U},L.__iteratorUncached=function(k,M){var P=w.__iterator(qe,M),U=0,B;return new $e(function(){return(!B||U%2)&&(B=P.next(),B.done)?B:U%2?ge(k,U++,x):ge(k,U++,B.value,B)})},L}function Ct(w,x,L){x||(x=Bn);var k=me(w),M=0,P=w.toSeq().map(function(U,B){return[B,U,M++,L?L(U,B,w):U]}).valueSeq().toArray();return P.sort(function(U,B){return x(U[3],B[3])||U[2]-B[2]}).forEach(k?function(U,B){P[B].length=2}:function(U,B){P[B]=U[1]}),k?at(P):Ie(w)?Be(P):bt(P)}function lr(w,x,L){if(x||(x=Bn),L){var k=w.toSeq().map(function(M,P){return[M,L(M,P,w)]}).reduce(function(M,P){return Jn(x,M[1],P[1])?P:M});return k&&k[0]}return w.reduce(function(M,P){return Jn(x,M,P)?P:M})}function Jn(w,x,L){var k=w(L,x);return k===0&&L!==x&&(L==null||L!==L)||k>0}function _r(w,x,L,k){var M=Ke(w),P=new ut(L).map(function(U){return U.size});return M.size=k?P.max():P.min(),M.__iterate=function(U,B){for(var j=this.__iterator(qe,B),Q,G=0;!(Q=j.next()).done&&U(Q.value,G++,this)!==!1;);return G},M.__iteratorUncached=function(U,B){var j=L.map(function(Y){return Y=Ce(Y),br(B?Y.reverse():Y)}),Q=0,G=!1;return new $e(function(){var Y;return G||(Y=j.map(function(ne){return ne.next()}),G=k?Y.every(function(ne){return ne.done}):Y.some(function(ne){return ne.done})),G?Me():ge(U,Q++,x.apply(null,Y.map(function(ne){return ne.value})))})},M}function de(w,x){return w===x?w:rr(w)?x:w.constructor(x)}function Dn(w){if(w!==Object(w))throw new TypeError("Expected [K, V] tuple: "+w)}function Ur(w){return me(w)?Oe:Ie(w)?lt:St}function Ke(w){return Object.create((me(w)?at:Ie(w)?Be:bt).prototype)}function Or(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Le.prototype.cacheResult.call(this)}function Bn(w,x){return w===void 0&&x===void 0?0:w===void 0?1:x===void 0?-1:w>x?1:w<x?-1:0}function Qe(w,x){x=x||0;for(var L=Math.max(0,w.length-x),k=new Array(L),M=0;M<L;M++)k[M]=w[M+x];return k}function Ft(w,x){if(!w)throw new Error(x)}function Te(w){Ft(w!==1/0,"Cannot perform this action with an infinite size.")}function zn(w){if(Cr(w)&&typeof w!="string")return w;if(He(w))return w.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+w)}var es=Object.prototype.toString;function Jr(w){if(!w||typeof w!="object"||es.call(w)!=="[object Object]")return!1;var x=Object.getPrototypeOf(w);if(x===null)return!0;for(var L=x,k=Object.getPrototypeOf(x);k!==null;)L=k,k=Object.getPrototypeOf(L);return L===x}function st(w){return typeof w=="object"&&(Je(w)||Array.isArray(w)||Jr(w))}function Tt(w){try{return typeof w=="string"?JSON.stringify(w):String(w)}catch{return JSON.stringify(w)}}function Hn(w,x){return Je(w)?w.has(x):st(w)&&vt.call(w,x)}function Dr(w,x,L){return Je(w)?w.get(x,L):Hn(w,x)?typeof w.get=="function"?w.get(x):w[x]:L}function ur(w){if(Array.isArray(w))return Qe(w);var x={};for(var L in w)vt.call(w,L)&&(x[L]=w[L]);return x}function qn(w,x){if(!st(w))throw new TypeError("Cannot update non-data-structure value: "+w);if(Je(w)){if(!w.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+w);return w.remove(x)}if(!vt.call(w,x))return w;var L=ur(w);return Array.isArray(L)?L.splice(x,1):delete L[x],L}function jn(w,x,L){if(!st(w))throw new TypeError("Cannot update non-data-structure value: "+w);if(Je(w)){if(!w.set)throw new TypeError("Cannot update immutable value without .set() method: "+w);return w.set(x,L)}if(vt.call(w,x)&&L===w[x])return w;var k=ur(w);return k[x]=L,k}function $t(w,x,L,k){k||(k=L,L=void 0);var M=Wn(Je(w),w,zn(x),0,L,k);return M===ce?L:M}function Wn(w,x,L,k,M,P){var U=x===ce;if(k===L.length){var B=U?M:x,j=P(B);return j===B?x:j}if(!U&&!st(x))throw new TypeError("Cannot update within non-data-structure value in path ["+L.slice(0,k).map(Tt)+"]: "+x);var Q=L[k],G=U?ce:Dr(x,Q,ce),Y=Wn(G===ce?w:Je(G),G,L,k+1,M,P);return Y===G?x:Y===ce?qn(x,Q):jn(U?w?Ge():{}:x,Q,Y)}function Kn(w,x,L){return $t(w,x,ce,function(){return L})}function Br(w,x){return Kn(this,w,x)}function Qn(w,x){return $t(w,x,function(){return ce})}function zr(w){return Qn(this,w)}function Hr(w,x,L,k){return $t(w,[x],L,k)}function qr(w,x,L){return arguments.length===1?w(this):Hr(this,w,x,L)}function jr(w,x,L){return $t(this,w,x,L)}function Gn(){for(var w=[],x=arguments.length;x--;)w[x]=arguments[x];return Xn(this,w)}function Zn(w){for(var x=[],L=arguments.length-1;L-- >0;)x[L]=arguments[L+1];if(typeof w!="function")throw new TypeError("Invalid merger function: "+w);return Xn(this,x,w)}function Xn(w,x,L){for(var k=[],M=0;M<x.length;M++){var P=Oe(x[M]);P.size!==0&&k.push(P)}return k.length===0?w:w.toSeq().size===0&&!w.__ownerID&&k.length===1?w.constructor(k[0]):w.withMutations(function(U){for(var B=L?function(Q,G){Hr(U,G,ce,function(Y){return Y===ce?Q:L(Y,Q,G)})}:function(Q,G){U.set(G,Q)},j=0;j<k.length;j++)k[j].forEach(B)})}function ts(w){for(var x=[],L=arguments.length-1;L-- >0;)x[L]=arguments[L+1];return Ut(w,x)}function rs(w,x){for(var L=[],k=arguments.length-2;k-- >0;)L[k]=arguments[k+2];return Ut(x,L,w)}function ns(w){for(var x=[],L=arguments.length-1;L-- >0;)x[L]=arguments[L+1];return Pt(w,x)}function as(w,x){for(var L=[],k=arguments.length-2;k-- >0;)L[k]=arguments[k+2];return Pt(x,L,w)}function Pt(w,x,L){return Ut(w,x,ss(L))}function Ut(w,x,L){if(!st(w))throw new TypeError("Cannot merge into non-data-structure value: "+w);if(Je(w))return typeof L=="function"&&w.mergeWith?w.mergeWith.apply(w,[L].concat(x)):w.merge?w.merge.apply(w,x):w.concat.apply(w,x);for(var k=Array.isArray(w),M=w,P=k?lt:Oe,U=k?function(j){M===w&&(M=ur(M)),M.push(j)}:function(j,Q){var G=vt.call(M,Q),Y=G&&L?L(M[Q],j,Q):j;(!G||Y!==M[Q])&&(M===w&&(M=ur(M)),M[Q]=Y)},B=0;B<x.length;B++)P(x[B]).forEach(U);return M}function ss(w){function x(L,k,M){return st(L)&&st(k)&&is(L,k)?Ut(L,[k],x):w?w(L,k,M):k}return x}function is(w,x){var L=Le(w),k=Le(x);return Ie(L)===Ie(k)&&me(L)===me(k)}function Yn(){for(var w=[],x=arguments.length;x--;)w[x]=arguments[x];return Pt(this,w)}function ea(w){for(var x=[],L=arguments.length-1;L-- >0;)x[L]=arguments[L+1];return Pt(this,x,w)}function Wr(w){for(var x=[],L=arguments.length-1;L-- >0;)x[L]=arguments[L+1];return $t(this,w,Ge(),function(k){return Ut(k,x)})}function Kr(w){for(var x=[],L=arguments.length-1;L-- >0;)x[L]=arguments[L+1];return $t(this,w,Ge(),function(k){return Pt(k,x)})}function Ot(w){var x=this.asMutable();return w(x),x.wasAltered()?x.__ensureOwner(this.__ownerID):this}function Jt(){return this.__ownerID?this:this.__ensureOwner(new Sr)}function Dt(){return this.__ensureOwner()}function Qr(){return this.__altered}var pt=function(w){function x(L){return L==null?Ge():sr(L)&&!He(L)?L:Ge().withMutations(function(k){var M=w(L);Te(M.size),M.forEach(function(P,U){return k.set(U,P)})})}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.toString=function(){return this.__toString("Map {","}")},x.prototype.get=function(k,M){return this._root?this._root.get(0,void 0,k,M):M},x.prototype.set=function(k,M){return na(this,k,M)},x.prototype.remove=function(k){return na(this,k,ce)},x.prototype.deleteAll=function(k){var M=Ce(k);return M.size===0?this:this.withMutations(function(P){M.forEach(function(U){return P.remove(U)})})},x.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ge()},x.prototype.sort=function(k){return Ze(Ct(this,k))},x.prototype.sortBy=function(k,M){return Ze(Ct(this,M,k))},x.prototype.map=function(k,M){var P=this;return this.withMutations(function(U){U.forEach(function(B,j){U.set(j,k.call(M,B,j,P))})})},x.prototype.__iterator=function(k,M){return new os(this,k,M)},x.prototype.__iterate=function(k,M){var P=this,U=0;return this._root&&this._root.iterate(function(B){return U++,k(B[1],B[0],P)},M),U},x.prototype.__ensureOwner=function(k){return k===this.__ownerID?this:k?Zr(this.size,this._root,k,this.__hash):this.size===0?Ge():(this.__ownerID=k,this.__altered=!1,this)},x}(Oe);pt.isMap=sr;var Se=pt.prototype;Se[En]=!0,Se[Ye]=Se.remove,Se.removeAll=Se.deleteAll,Se.setIn=Br,Se.removeIn=Se.deleteIn=zr,Se.update=qr,Se.updateIn=jr,Se.merge=Se.concat=Gn,Se.mergeWith=Zn,Se.mergeDeep=Yn,Se.mergeDeepWith=ea,Se.mergeIn=Wr,Se.mergeDeepIn=Kr,Se.withMutations=Ot,Se.wasAltered=Qr,Se.asImmutable=Dt,Se["@@transducer/init"]=Se.asMutable=Jt,Se["@@transducer/step"]=function(w,x){return w.set(x[0],x[1])},Se["@@transducer/result"]=function(w){return w.asImmutable()};var Bt=function(x,L){this.ownerID=x,this.entries=L};Bt.prototype.get=function(x,L,k,M){for(var P=this.entries,U=0,B=P.length;U<B;U++)if(xe(k,P[U][0]))return P[U][1];return M},Bt.prototype.update=function(x,L,k,M,P,U,B){for(var j=P===ce,Q=this.entries,G=0,Y=Q.length;G<Y&&!xe(M,Q[G][0]);G++);var ne=G<Y;if(ne?Q[G][1]===P:j)return this;if(Ue(B),(j||!ne)&&Ue(U),!(j&&Q.length===1)){if(!ne&&!j&&Q.length>=ps)return ls(x,Q,M,P);var oe=x&&x===this.ownerID,ie=oe?Q:Qe(Q);return ne?j?G===Y-1?ie.pop():ie[G]=ie.pop():ie[G]=[M,P]:ie.push([M,P]),oe?(this.entries=ie,this):new Bt(x,ie)}};var xt=function(x,L,k){this.ownerID=x,this.bitmap=L,this.nodes=k};xt.prototype.get=function(x,L,k,M){L===void 0&&(L=Ne(k));var P=1<<((x===0?L:L>>>x)&Ae),U=this.bitmap;return U&P?this.nodes[sa(U&P-1)].get(x+he,L,k,M):M},xt.prototype.update=function(x,L,k,M,P,U,B){k===void 0&&(k=Ne(M));var j=(L===0?k:k>>>L)&Ae,Q=1<<j,G=this.bitmap,Y=(G&Q)!==0;if(!Y&&P===ce)return this;var ne=sa(G&Q-1),oe=this.nodes,ie=Y?oe[ne]:void 0,ue=Xr(ie,x,L+he,k,M,P,U,B);if(ue===ie)return this;if(!Y&&ue&&oe.length>=hs)return us(x,oe,G,j,ue);if(Y&&!ue&&oe.length===2&&aa(oe[ne^1]))return oe[ne^1];if(Y&&ue&&oe.length===1&&aa(ue))return ue;var Ve=x&&x===this.ownerID,ze=Y?ue?G:G^Q:G|Q,tt=Y?ue?ia(oe,ne,ue,Ve):$s(oe,ne,Ve):cs(oe,ne,ue,Ve);return Ve?(this.bitmap=ze,this.nodes=tt,this):new xt(x,ze,tt)};var zt=function(x,L,k){this.ownerID=x,this.count=L,this.nodes=k};zt.prototype.get=function(x,L,k,M){L===void 0&&(L=Ne(k));var P=(x===0?L:L>>>x)&Ae,U=this.nodes[P];return U?U.get(x+he,L,k,M):M},zt.prototype.update=function(x,L,k,M,P,U,B){k===void 0&&(k=Ne(M));var j=(L===0?k:k>>>L)&Ae,Q=P===ce,G=this.nodes,Y=G[j];if(Q&&!Y)return this;var ne=Xr(Y,x,L+he,k,M,P,U,B);if(ne===Y)return this;var oe=this.count;if(!Y)oe++;else if(!ne&&(oe--,oe<ds))return _s(x,G,oe,j);var ie=x&&x===this.ownerID,ue=ia(G,j,ne,ie);return ie?(this.count=oe,this.nodes=ue,this):new zt(x,oe,ue)};var wt=function(x,L,k){this.ownerID=x,this.keyHash=L,this.entries=k};wt.prototype.get=function(x,L,k,M){for(var P=this.entries,U=0,B=P.length;U<B;U++)if(xe(k,P[U][0]))return P[U][1];return M},wt.prototype.update=function(x,L,k,M,P,U,B){k===void 0&&(k=Ne(M));var j=P===ce;if(k!==this.keyHash)return j?this:(Ue(B),Ue(U),Yr(this,x,L,k,[M,P]));for(var Q=this.entries,G=0,Y=Q.length;G<Y&&!xe(M,Q[G][0]);G++);var ne=G<Y;if(ne?Q[G][1]===P:j)return this;if(Ue(B),(j||!ne)&&Ue(U),j&&Y===2)return new et(x,this.keyHash,Q[G^1]);var oe=x&&x===this.ownerID,ie=oe?Q:Qe(Q);return ne?j?G===Y-1?ie.pop():ie[G]=ie.pop():ie[G]=[M,P]:ie.push([M,P]),oe?(this.entries=ie,this):new wt(x,this.keyHash,ie)};var et=function(x,L,k){this.ownerID=x,this.keyHash=L,this.entry=k};et.prototype.get=function(x,L,k,M){return xe(k,this.entry[0])?this.entry[1]:M},et.prototype.update=function(x,L,k,M,P,U,B){var j=P===ce,Q=xe(M,this.entry[0]);if(Q?P===this.entry[1]:j)return this;if(Ue(B),j){Ue(U);return}return Q?x&&x===this.ownerID?(this.entry[1]=P,this):new et(x,this.keyHash,[M,P]):(Ue(U),Yr(this,x,L,Ne(M),[M,P]))},Bt.prototype.iterate=wt.prototype.iterate=function(w,x){for(var L=this.entries,k=0,M=L.length-1;k<=M;k++)if(w(L[x?M-k:k])===!1)return!1},xt.prototype.iterate=zt.prototype.iterate=function(w,x){for(var L=this.nodes,k=0,M=L.length-1;k<=M;k++){var P=L[x?M-k:k];if(P&&P.iterate(w,x)===!1)return!1}},et.prototype.iterate=function(w,x){return w(this.entry)};var os=function(w){function x(L,k,M){this._type=k,this._reverse=M,this._stack=L._root&&ta(L._root)}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.prototype.next=function(){for(var k=this._type,M=this._stack;M;){var P=M.node,U=M.index++,B=void 0;if(P.entry){if(U===0)return Gr(k,P.entry)}else if(P.entries){if(B=P.entries.length-1,U<=B)return Gr(k,P.entries[this._reverse?B-U:U])}else if(B=P.nodes.length-1,U<=B){var j=P.nodes[this._reverse?B-U:U];if(j){if(j.entry)return Gr(k,j.entry);M=this._stack=ta(j,M)}continue}M=this._stack=this._stack.__prev}return Me()},x}($e);function Gr(w,x){return ge(w,x[0],x[1])}function ta(w,x){return{node:w,index:0,__prev:x}}function Zr(w,x,L,k){var M=Object.create(Se);return M.size=w,M._root=x,M.__ownerID=L,M.__hash=k,M.__altered=!1,M}var ra;function Ge(){return ra||(ra=Zr(0))}function na(w,x,L){var k,M;if(w._root){var P=gr(),U=gr();if(k=Xr(w._root,w.__ownerID,0,void 0,x,L,P,U),!U.value)return w;M=w.size+(P.value?L===ce?-1:1:0)}else{if(L===ce)return w;M=1,k=new Bt(w.__ownerID,[[x,L]])}return w.__ownerID?(w.size=M,w._root=k,w.__hash=void 0,w.__altered=!0,w):k?Zr(M,k):Ge()}function Xr(w,x,L,k,M,P,U,B){return w?w.update(x,L,k,M,P,U,B):P===ce?w:(Ue(B),Ue(U),new et(x,k,[M,P]))}function aa(w){return w.constructor===et||w.constructor===wt}function Yr(w,x,L,k,M){if(w.keyHash===k)return new wt(x,k,[w.entry,M]);var P=(L===0?w.keyHash:w.keyHash>>>L)&Ae,U=(L===0?k:k>>>L)&Ae,B,j=P===U?[Yr(w,x,L+he,k,M)]:(B=new et(x,k,M),P<U?[w,B]:[B,w]);return new xt(x,1<<P|1<<U,j)}function ls(w,x,L,k){w||(w=new Sr);for(var M=new et(w,Ne(L),[L,k]),P=0;P<x.length;P++){var U=x[P];M=M.update(w,0,void 0,U[0],U[1])}return M}function _s(w,x,L,k){for(var M=0,P=0,U=new Array(L),B=0,j=1,Q=x.length;B<Q;B++,j<<=1){var G=x[B];G!==void 0&&B!==k&&(M|=j,U[P++]=G)}return new xt(w,M,U)}function us(w,x,L,k,M){for(var P=0,U=new Array(Fe),B=0;L!==0;B++,L>>>=1)U[B]=L&1?x[P++]:void 0;return U[k]=M,new zt(w,P+1,U)}function sa(w){return w-=w>>1&1431655765,w=(w&858993459)+(w>>2&858993459),w=w+(w>>4)&252645135,w+=w>>8,w+=w>>16,w&127}function ia(w,x,L,k){var M=k?w:Qe(w);return M[x]=L,M}function cs(w,x,L,k){var M=w.length+1;if(k&&x+1===M)return w[x]=L,w;for(var P=new Array(M),U=0,B=0;B<M;B++)B===x?(P[B]=L,U=-1):P[B]=w[B+U];return P}function $s(w,x,L){var k=w.length-1;if(L&&x===k)return w.pop(),w;for(var M=new Array(k),P=0,U=0;U<k;U++)U===x&&(P=1),M[U]=w[U+P];return M}var ps=Fe/4,hs=Fe/2,ds=Fe/4,oa="@@__IMMUTABLE_LIST__@@";function en(w){return!!(w&&w[oa])}var Ht=function(w){function x(L){var k=cr();if(L==null)return k;if(en(L))return L;var M=w(L),P=M.size;return P===0?k:(Te(P),P>0&&P<Fe?jt(0,P,he,null,new it(M.toArray())):k.withMutations(function(U){U.setSize(P),M.forEach(function(B,j){return U.set(j,B)})}))}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.of=function(){return this(arguments)},x.prototype.toString=function(){return this.__toString("List [","]")},x.prototype.get=function(k,M){if(k=nt(this,k),k>=0&&k<this.size){k+=this._origin;var P=_a(this,k);return P&&P.array[k&Ae]}return M},x.prototype.set=function(k,M){return fs(this,k,M)},x.prototype.remove=function(k){return this.has(k)?k===0?this.shift():k===this.size-1?this.pop():this.splice(k,1):this},x.prototype.insert=function(k,M){return this.splice(k,0,M)},x.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=he,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):cr()},x.prototype.push=function(){var k=arguments,M=this.size;return this.withMutations(function(P){ot(P,0,M+k.length);for(var U=0;U<k.length;U++)P.set(M+U,k[U])})},x.prototype.pop=function(){return ot(this,0,-1)},x.prototype.unshift=function(){var k=arguments;return this.withMutations(function(M){ot(M,-k.length);for(var P=0;P<k.length;P++)M.set(P,k[P])})},x.prototype.shift=function(){return ot(this,1)},x.prototype.concat=function(){for(var k=arguments,M=[],P=0;P<arguments.length;P++){var U=k[P],B=w(typeof U!="string"&&vr(U)?U:[U]);B.size!==0&&M.push(B)}return M.length===0?this:this.size===0&&!this.__ownerID&&M.length===1?this.constructor(M[0]):this.withMutations(function(j){M.forEach(function(Q){return Q.forEach(function(G){return j.push(G)})})})},x.prototype.setSize=function(k){return ot(this,0,k)},x.prototype.map=function(k,M){var P=this;return this.withMutations(function(U){for(var B=0;B<P.size;B++)U.set(B,k.call(M,U.get(B),B,P))})},x.prototype.slice=function(k,M){var P=this.size;return kt(k,M,P)?this:ot(this,gt(k,P),Vt(M,P))},x.prototype.__iterator=function(k,M){var P=M?this.size:0,U=la(this,M);return new $e(function(){var B=U();return B===qt?Me():ge(k,M?--P:P++,B)})},x.prototype.__iterate=function(k,M){for(var P=M?this.size:0,U=la(this,M),B;(B=U())!==qt&&k(B,M?--P:P++,this)!==!1;);return P},x.prototype.__ensureOwner=function(k){return k===this.__ownerID?this:k?jt(this._origin,this._capacity,this._level,this._root,this._tail,k,this.__hash):this.size===0?cr():(this.__ownerID=k,this.__altered=!1,this)},x}(lt);Ht.isList=en;var ye=Ht.prototype;ye[oa]=!0,ye[Ye]=ye.remove,ye.merge=ye.concat,ye.setIn=Br,ye.deleteIn=ye.removeIn=zr,ye.update=qr,ye.updateIn=jr,ye.mergeIn=Wr,ye.mergeDeepIn=Kr,ye.withMutations=Ot,ye.wasAltered=Qr,ye.asImmutable=Dt,ye["@@transducer/init"]=ye.asMutable=Jt,ye["@@transducer/step"]=function(w,x){return w.push(x)},ye["@@transducer/result"]=function(w){return w.asImmutable()};var it=function(x,L){this.array=x,this.ownerID=L};it.prototype.removeBefore=function(x,L,k){if(!(k&(1<<L+he)-1)||this.array.length===0)return this;var M=k>>>L&Ae;if(M>=this.array.length)return new it([],x);var P=M===0,U;if(L>0){var B=this.array[M];if(U=B&&B.removeBefore(x,L-he,k),U===B&&P)return this}if(P&&!U)return this;var j=Et(this,x);if(!P)for(var Q=0;Q<M;Q++)j.array[Q]=void 0;return U&&(j.array[M]=U),j},it.prototype.removeAfter=function(x,L,k){if(k===(L?1<<L+he:Fe)||this.array.length===0)return this;var M=k-1>>>L&Ae;if(M>=this.array.length)return this;var P;if(L>0){var U=this.array[M];if(P=U&&U.removeAfter(x,L-he,k),P===U&&M===this.array.length-1)return this}var B=Et(this,x);return B.array.splice(M+1),P&&(B.array[M]=P),B};var qt={};function la(w,x){var L=w._origin,k=w._capacity,M=Wt(k),P=w._tail;return U(w._root,w._level,0);function U(Q,G,Y){return G===0?B(Q,Y):j(Q,G,Y)}function B(Q,G){var Y=G===M?P&&P.array:Q&&Q.array,ne=G>L?0:L-G,oe=k-G;return oe>Fe&&(oe=Fe),function(){if(ne===oe)return qt;var ie=x?--oe:ne++;return Y&&Y[ie]}}function j(Q,G,Y){var ne,oe=Q&&Q.array,ie=Y>L?0:L-Y>>G,ue=(k-Y>>G)+1;return ue>Fe&&(ue=Fe),function(){for(;;){if(ne){var Ve=ne();if(Ve!==qt)return Ve;ne=null}if(ie===ue)return qt;var ze=x?--ue:ie++;ne=U(oe&&oe[ze],G-he,Y+(ze<<G))}}}}function jt(w,x,L,k,M,P,U){var B=Object.create(ye);return B.size=x-w,B._origin=w,B._capacity=x,B._level=L,B._root=k,B._tail=M,B.__ownerID=P,B.__hash=U,B.__altered=!1,B}function cr(){return jt(0,0,he)}function fs(w,x,L){if(x=nt(w,x),x!==x)return w;if(x>=w.size||x<0)return w.withMutations(function(U){x<0?ot(U,x).set(0,L):ot(U,0,x+1).set(x,L)});x+=w._origin;var k=w._tail,M=w._root,P=gr();return x>=Wt(w._capacity)?k=tn(k,w.__ownerID,0,x,L,P):M=tn(M,w.__ownerID,w._level,x,L,P),P.value?w.__ownerID?(w._root=M,w._tail=k,w.__hash=void 0,w.__altered=!0,w):jt(w._origin,w._capacity,w._level,M,k):w}function tn(w,x,L,k,M,P){var U=k>>>L&Ae,B=w&&U<w.array.length;if(!B&&M===void 0)return w;var j;if(L>0){var Q=w&&w.array[U],G=tn(Q,x,L-he,k,M,P);return G===Q?w:(j=Et(w,x),j.array[U]=G,j)}return B&&w.array[U]===M?w:(P&&Ue(P),j=Et(w,x),M===void 0&&U===j.array.length-1?j.array.pop():j.array[U]=M,j)}function Et(w,x){return x&&w&&x===w.ownerID?w:new it(w?w.array.slice():[],x)}function _a(w,x){if(x>=Wt(w._capacity))return w._tail;if(x<1<<w._level+he){for(var L=w._root,k=w._level;L&&k>0;)L=L.array[x>>>k&Ae],k-=he;return L}}function ot(w,x,L){x!==void 0&&(x|=0),L!==void 0&&(L|=0);var k=w.__ownerID||new Sr,M=w._origin,P=w._capacity,U=M+x,B=L===void 0?P:L<0?P+L:M+L;if(U===M&&B===P)return w;if(U>=B)return w.clear();for(var j=w._level,Q=w._root,G=0;U+G<0;)Q=new it(Q&&Q.array.length?[void 0,Q]:[],k),j+=he,G+=1<<j;G&&(U+=G,M+=G,B+=G,P+=G);for(var Y=Wt(P),ne=Wt(B);ne>=1<<j+he;)Q=new it(Q&&Q.array.length?[Q]:[],k),j+=he;var oe=w._tail,ie=ne<Y?_a(w,B-1):ne>Y?new it([],k):oe;if(oe&&ne>Y&&U<P&&oe.array.length){Q=Et(Q,k);for(var ue=Q,Ve=j;Ve>he;Ve-=he){var ze=Y>>>Ve&Ae;ue=ue.array[ze]=Et(ue.array[ze],k)}ue.array[Y>>>he&Ae]=oe}if(B<P&&(ie=ie&&ie.removeAfter(k,0,B)),U>=ne)U-=ne,B-=ne,j=he,Q=null,ie=ie&&ie.removeBefore(k,0,U);else if(U>M||ne<Y){for(G=0;Q;){var tt=U>>>j&Ae;if(tt!==ne>>>j&Ae)break;tt&&(G+=(1<<j)*tt),j-=he,Q=Q.array[tt]}Q&&U>M&&(Q=Q.removeBefore(k,j,U-G)),Q&&ne<Y&&(Q=Q.removeAfter(k,j,ne-G)),G&&(U-=G,B-=G)}return w.__ownerID?(w.size=B-U,w._origin=U,w._capacity=B,w._level=j,w._root=Q,w._tail=ie,w.__hash=void 0,w.__altered=!0,w):jt(U,B,j,Q,ie)}function Wt(w){return w<Fe?0:w-1>>>he<<he}var Ze=function(w){function x(L){return L==null?Kt():Ir(L)?L:Kt().withMutations(function(k){var M=Oe(L);Te(M.size),M.forEach(function(P,U){return k.set(U,P)})})}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.of=function(){return this(arguments)},x.prototype.toString=function(){return this.__toString("OrderedMap {","}")},x.prototype.get=function(k,M){var P=this._map.get(k);return P!==void 0?this._list.get(P)[1]:M},x.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Kt()},x.prototype.set=function(k,M){return ca(this,k,M)},x.prototype.remove=function(k){return ca(this,k,ce)},x.prototype.__iterate=function(k,M){var P=this;return this._list.__iterate(function(U){return U&&k(U[1],U[0],P)},M)},x.prototype.__iterator=function(k,M){return this._list.fromEntrySeq().__iterator(k,M)},x.prototype.__ensureOwner=function(k){if(k===this.__ownerID)return this;var M=this._map.__ensureOwner(k),P=this._list.__ensureOwner(k);return k?rn(M,P,k,this.__hash):this.size===0?Kt():(this.__ownerID=k,this.__altered=!1,this._map=M,this._list=P,this)},x}(pt);Ze.isOrderedMap=Ir,Ze.prototype[yt]=!0,Ze.prototype[Ye]=Ze.prototype.remove;function rn(w,x,L,k){var M=Object.create(Ze.prototype);return M.size=w?w.size:0,M._map=w,M._list=x,M.__ownerID=L,M.__hash=k,M.__altered=!1,M}var ua;function Kt(){return ua||(ua=rn(Ge(),cr()))}function ca(w,x,L){var k=w._map,M=w._list,P=k.get(x),U=P!==void 0,B,j;if(L===ce){if(!U)return w;M.size>=Fe&&M.size>=k.size*2?(j=M.filter(function(Q,G){return Q!==void 0&&P!==G}),B=j.toKeyedSeq().map(function(Q){return Q[0]}).flip().toMap(),w.__ownerID&&(B.__ownerID=j.__ownerID=w.__ownerID)):(B=k.remove(x),j=P===M.size-1?M.pop():M.set(P,void 0))}else if(U){if(L===M.get(P)[1])return w;B=k,j=M.set(P,[x,L])}else B=k.set(x,M.size),j=M.set(M.size,[x,L]);return w.__ownerID?(w.size=B.size,w._map=B,w._list=j,w.__hash=void 0,w.__altered=!0,w):rn(B,j)}var $a="@@__IMMUTABLE_STACK__@@";function $r(w){return!!(w&&w[$a])}var pr=function(w){function x(L){return L==null?hr():$r(L)?L:hr().pushAll(L)}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.of=function(){return this(arguments)},x.prototype.toString=function(){return this.__toString("Stack [","]")},x.prototype.get=function(k,M){var P=this._head;for(k=nt(this,k);P&&k--;)P=P.next;return P?P.value:M},x.prototype.peek=function(){return this._head&&this._head.value},x.prototype.push=function(){var k=arguments;if(arguments.length===0)return this;for(var M=this.size+arguments.length,P=this._head,U=arguments.length-1;U>=0;U--)P={value:k[U],next:P};return this.__ownerID?(this.size=M,this._head=P,this.__hash=void 0,this.__altered=!0,this):Qt(M,P)},x.prototype.pushAll=function(k){if(k=w(k),k.size===0)return this;if(this.size===0&&$r(k))return k;Te(k.size);var M=this.size,P=this._head;return k.__iterate(function(U){M++,P={value:U,next:P}},!0),this.__ownerID?(this.size=M,this._head=P,this.__hash=void 0,this.__altered=!0,this):Qt(M,P)},x.prototype.pop=function(){return this.slice(1)},x.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):hr()},x.prototype.slice=function(k,M){if(kt(k,M,this.size))return this;var P=gt(k,this.size),U=Vt(M,this.size);if(U!==this.size)return w.prototype.slice.call(this,k,M);for(var B=this.size-P,j=this._head;P--;)j=j.next;return this.__ownerID?(this.size=B,this._head=j,this.__hash=void 0,this.__altered=!0,this):Qt(B,j)},x.prototype.__ensureOwner=function(k){return k===this.__ownerID?this:k?Qt(this.size,this._head,k,this.__hash):this.size===0?hr():(this.__ownerID=k,this.__altered=!1,this)},x.prototype.__iterate=function(k,M){var P=this;if(M)return new ut(this.toArray()).__iterate(function(j,Q){return k(j,Q,P)},M);for(var U=0,B=this._head;B&&k(B.value,U++,this)!==!1;)B=B.next;return U},x.prototype.__iterator=function(k,M){if(M)return new ut(this.toArray()).__iterator(k,M);var P=0,U=this._head;return new $e(function(){if(U){var B=U.value;return U=U.next,ge(k,P++,B)}return Me()})},x}(lt);pr.isStack=$r;var ke=pr.prototype;ke[$a]=!0,ke.shift=ke.pop,ke.unshift=ke.push,ke.unshiftAll=ke.pushAll,ke.withMutations=Ot,ke.wasAltered=Qr,ke.asImmutable=Dt,ke["@@transducer/init"]=ke.asMutable=Jt,ke["@@transducer/step"]=function(w,x){return w.unshift(x)},ke["@@transducer/result"]=function(w){return w.asImmutable()};function Qt(w,x,L,k){var M=Object.create(ke);return M.size=w,M._head=x,M.__ownerID=L,M.__hash=k,M.__altered=!1,M}var pa;function hr(){return pa||(pa=Qt(0))}var ha="@@__IMMUTABLE_SET__@@";function dr(w){return!!(w&&w[ha])}function nn(w){return dr(w)&&He(w)}function an(w,x){if(w===x)return!0;if(!Re(x)||w.size!==void 0&&x.size!==void 0&&w.size!==x.size||w.__hash!==void 0&&x.__hash!==void 0&&w.__hash!==x.__hash||me(w)!==me(x)||Ie(w)!==Ie(x)||He(w)!==He(x))return!1;if(w.size===0&&x.size===0)return!0;var L=!tr(w);if(He(w)){var k=w.entries();return x.every(function(j,Q){var G=k.next().value;return G&&xe(G[1],j)&&(L||xe(G[0],Q))})&&k.next().done}var M=!1;if(w.size===void 0)if(x.size===void 0)typeof w.cacheResult=="function"&&w.cacheResult();else{M=!0;var P=w;w=x,x=P}var U=!0,B=x.__iterate(function(j,Q){if(L?!w.has(j):M?!xe(j,w.get(Q,ce)):!xe(w.get(Q,ce),j))return U=!1,!1});return U&&w.size===B}function ht(w,x){var L=function(k){w.prototype[k]=x[k]};return Object.keys(x).forEach(L),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(x).forEach(L),w}function fr(w){if(!w||typeof w!="object")return w;if(!Re(w)){if(!st(w))return w;w=Le(w)}if(me(w)){var x={};return w.__iterate(function(k,M){x[M]=fr(k)}),x}var L=[];return w.__iterate(function(k){L.push(fr(k))}),L}var Gt=function(w){function x(L){return L==null?Zt():dr(L)&&!He(L)?L:Zt().withMutations(function(k){var M=w(L);Te(M.size),M.forEach(function(P){return k.add(P)})})}return w&&(x.__proto__=w),x.prototype=Object.create(w&&w.prototype),x.prototype.constructor=x,x.of=function(){return this(arguments)},x.fromKeys=function(k){return this(Oe(k).keySeq())},x.intersect=function(k){return k=Ce(k).toArray(),k.length?we.intersect.apply(x(k.pop()),k):Zt()},x.union=function(k){return k=Ce(k).toArray(),k.length?we.union.apply(x(k.pop()),k):Zt()},x.prototype.toString=function(){return this.__toString("Set {","}")},x.prototype.has=function(k){return this._map.has(k)},x.prototype.add=function(k){return mr(this,this._map.set(k,k))},x.prototype.remove=function(k){return mr(this,this._map.remove(k))},x.prototype.clear=function(){return mr(this,this._map.clear())},x.prototype.map=function(k,M){var P=this,U=!1,B=mr(this,this._map.mapEntries(function(j){var Q=j[1],G=k.call(M,Q,Q,P);return G!==Q&&(U=!0),[G,G]},M));return U?B:this},x.prototype.union=function(){for(var k=[],M=arguments.length;M--;)k[M]=arguments[M];return k=k.filter(function(P){return P.size!==0}),k.length===0?this:this.size===0&&!this.__ownerID&&k.length===1?this.constructor(k[0]):this.withMutations(function(P){for(var U=0;U<k.length;U++)typeof k[U]=="string"?P.add(k[U]):w(k[U]).forEach(function(B){return P.add(B)})})},x.prototype.intersect=function(){for(var k=[],M=arguments.length;M--;)k[M]=arguments[M];if(k.length===0)return this;k=k.map(function(U){return w(U)});var P=[];return this.forEach(function(U){k.every(function(B){return B.includes(U)})||P.push(U)}),this.withMutations(function(U){P.forEach(function(B){U.remove(B)})})},x.prototype.subtract=function(){for(var k=[],M=arguments.length;M--;)k[M]=arguments[M];if(k.length===0)return this;k=k.map(function(U){return w(U)});var P=[];return this.forEach(function(U){k.some(function(B){return B.includes(U)})&&P.push(U)}),this.withMutations(function(U){P.forEach(function(B){U.remove(B)})})},x.prototype.sort=function(k){return Mt(Ct(this,k))},x.prototype.sortBy=function(k,M){return Mt(Ct(this,M,k))},x.prototype.wasAltered=function(){return this._map.wasAltered()},x.prototype.__iterate=function(k,M){var P=this;return this._map.__iterate(function(U){return k(U,U,P)},M)},x.prototype.__iterator=function(k,M){return this._map.__iterator(k,M)},x.prototype.__ensureOwner=function(k){if(k===this.__ownerID)return this;var M=this._map.__ensureOwner(k);return k?this.__make(M,k):this.size===0?this.__empty():(this.__ownerID=k,this._map=M,this)},x}(St);Gt.isSet=dr;var we=Gt.prototype;we[ha]=!0,we[Ye]=we.remove,we.merge=we.concat=we.union,we.withMutations=Ot,we.asImmutable=Dt,we["@@transducer/init"]=we.asMutable=Jt,we["@@transducer/step"]=function(w,x){return w.add(x)},we["@@transducer/result"]=function(w){return w.asImmutable()},we.__empty=Zt,we.__make=da;function mr(w,x){return w.__ownerID?(w.size=x.size,w._map=x,w):x===w._map?w:x.size===0?w.__empty():w.__make(x)}function da(w,x){var L=Object.create(we);return L.size=w?w.size:0,L._map=w,L.__ownerID=x,L}var fa;function Zt(){return fa||(fa=da(Ge()))}var ma=function(w){function x(L,k,M){if(M===void 0&&(M=1),!(this instanceof x))return new x(L,k,M);if(Ft(M!==0,"Cannot step a Range by 0"),Ft(L!==void 0,"You must define a start value when using Range"),Ft(k!==void 0,"You must define an end value when using Range"),M=Math.abs(M),k<L&&(M=-M),this._start=L,this._end=k,thi