davis-components 0.3.22 → 0.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";const Ln=require("./main-BIpLT2ZY.cjs");var Br={exports:{}},xe;function Dn(){return xe||(xe=1,function(tn,kn){(function(B,S){tn.exports=S()})(Ln.commonjsGlobal,function(){var B=Array.prototype.slice;function S(t,r){r&&(t.prototype=Object.create(r.prototype)),t.prototype.constructor=t}function q(t){return D(t)?t:L(t)}S(P,q);function P(t){return T(t)?t:b(t)}S(tt,q);function tt(t){return G(t)?t:O(t)}S($,q);function $(t){return D(t)&&!ir(t)?t:ot(t)}function D(t){return!!(t&&t[Yr])}function T(t){return!!(t&&t[Jr])}function G(t){return!!(t&&t[Hr])}function ir(t){return T(t)||G(t)}function nt(t){return!!(t&&t[St])}q.isIterable=D,q.isKeyed=T,q.isIndexed=G,q.isAssociative=ir,q.isOrdered=nt,q.Keyed=P,q.Indexed=tt,q.Set=$;var Yr="@@__IMMUTABLE_ITERABLE__@@",Jr="@@__IMMUTABLE_KEYED__@@",Hr="@@__IMMUTABLE_INDEXED__@@",St="@@__IMMUTABLE_ORDERED__@@",Rt="delete",I=5,X=1<<I,C=X-1,l={},rn={value:!1},Vr={value:!1};function or(t){return t.value=!1,t}function Z(t){t&&(t.value=!0)}function ur(){}function _t(t,r){r=r||0;for(var e=Math.max(0,t.length-r),n=new Array(e),i=0;i<e;i++)n[i]=t[i+r];return n}function sr(t){return t.size===void 0&&(t.size=t.__iterate(Gr)),t.size}function pt(t,r){if(typeof r!="number"){var e=r>>>0;if(""+e!==r||e===4294967295)return NaN;r=e}return r<0?sr(t)+r:r}function Gr(){return!0}function Nt(t,r,e){return(t===0||e!==void 0&&t<=-e)&&(r===void 0||e!==void 0&&r>=e)}function gt(t,r){return Xr(t,r,0)}function Lt(t,r){return Xr(t,r,r)}function Xr(t,r,e){return t===void 0?e:t<0?Math.max(0,r+t):r===void 0?t:Math.min(r,t)}var Dt=0,Q=1,it=2,ar=typeof Symbol=="function"&&Symbol.iterator,Zr="@@iterator",fr=ar||Zr;function m(t){this.next=t}m.prototype.toString=function(){return"[Iterator]"},m.KEYS=Dt,m.VALUES=Q,m.ENTRIES=it,m.prototype.inspect=m.prototype.toSource=function(){return this.toString()},m.prototype[fr]=function(){return this};function w(t,r,e,n){var i=t===0?r:t===1?e:[r,e];return n?n.value=i:n={value:i,done:!1},n}function j(){return{value:void 0,done:!0}}function Qr(t){return!!br(t)}function Jt(t){return t&&typeof t.next=="function"}function kt(t){var r=br(t);return r&&r.call(t)}function br(t){var r=t&&(ar&&t[ar]||t[Zr]);if(typeof r=="function")return r}function xr(t){return t&&typeof t.length=="number"}S(L,q);function L(t){return t==null?Ht():D(t)?t.toSeq():en(t)}L.of=function(){return L(arguments)},L.prototype.toSeq=function(){return this},L.prototype.toString=function(){return this.__toString("Seq {","}")},L.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},L.prototype.__iterate=function(t,r){return ie(this,t,r,!0)},L.prototype.__iterator=function(t,r){return oe(this,t,r,!0)},S(b,L);function b(t){return t==null?Ht().toKeyedSeq():D(t)?T(t)?t.toSeq():t.fromEntrySeq():ee(t)}b.prototype.toKeyedSeq=function(){return this},S(O,L);function O(t){return t==null?Ht():D(t)?T(t)?t.entrySeq():t.toIndexedSeq():cr(t)}O.of=function(){return O(arguments)},O.prototype.toIndexedSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq [","]")},O.prototype.__iterate=function(t,r){return ie(this,t,r,!1)},O.prototype.__iterator=function(t,r){return oe(this,t,r,!1)},S(ot,L);function ot(t){return(t==null?Ht():D(t)?T(t)?t.entrySeq():t:cr(t)).toSetSeq()}ot.of=function(){return ot(arguments)},ot.prototype.toSetSeq=function(){return this},L.isSeq=hr,L.Keyed=b,L.Set=ot,L.Indexed=O;var te="@@__IMMUTABLE_SEQ__@@";L.prototype[te]=!0,S(ut,O);function ut(t){this._array=t,this.size=t.length}ut.prototype.get=function(t,r){return this.has(t)?this._array[pt(this,t)]:r},ut.prototype.__iterate=function(t,r){for(var e=this._array,n=e.length-1,i=0;i<=n;i++)if(t(e[r?n-i:i],i,this)===!1)return i+1;return i},ut.prototype.__iterator=function(t,r){var e=this._array,n=e.length-1,i=0;return new m(function(){return i>n?j():w(t,i,e[r?n-i++:i++])})},S(vt,b);function vt(t){var r=Object.keys(t);this._object=t,this._keys=r,this.size=r.length}vt.prototype.get=function(t,r){return r!==void 0&&!this.has(t)?r:this._object[t]},vt.prototype.has=function(t){return this._object.hasOwnProperty(t)},vt.prototype.__iterate=function(t,r){for(var e=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[r?i-o:o];if(t(e[u],u,this)===!1)return o+1}return o},vt.prototype.__iterator=function(t,r){var e=this._object,n=this._keys,i=n.length-1,o=0;return new m(function(){var u=n[r?i-o:o];return o++>i?j():w(t,u,e[u])})},vt.prototype[St]=!0,S(Kt,O);function Kt(t){this._iterable=t,this.size=t.length||t.size}Kt.prototype.__iterateUncached=function(t,r){if(r)return this.cacheResult().__iterate(t,r);var e=this._iterable,n=kt(e),i=0;if(Jt(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},Kt.prototype.__iteratorUncached=function(t,r){if(r)return this.cacheResult().__iterator(t,r);var e=this._iterable,n=kt(e);if(!Jt(n))return new m(j);var i=0;return new m(function(){var o=n.next();return o.done?o:w(t,i++,o.value)})},S(Ut,O);function Ut(t){this._iterator=t,this._iteratorCache=[]}Ut.prototype.__iterateUncached=function(t,r){if(r)return this.cacheResult().__iterate(t,r);for(var e=this._iterator,n=this._iteratorCache,i=0;i<n.length;)if(t(n[i],i++,this)===!1)return i;for(var o;!(o=e.next()).done;){var u=o.value;if(n[i]=u,t(u,i++,this)===!1)break}return i},Ut.prototype.__iteratorUncached=function(t,r){if(r)return this.cacheResult().__iterator(t,r);var e=this._iterator,n=this._iteratorCache,i=0;return new m(function(){if(i>=n.length){var o=e.next();if(o.done)return o;n[i]=o.value}return w(t,i,n[i++])})};function hr(t){return!!(t&&t[te])}var re;function Ht(){return re||(re=new ut([]))}function ee(t){var r=Array.isArray(t)?new ut(t).fromEntrySeq():Jt(t)?new Ut(t).fromEntrySeq():Qr(t)?new Kt(t).fromEntrySeq():typeof t=="object"?new vt(t):void 0;if(!r)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return r}function cr(t){var r=ne(t);if(!r)throw new TypeError("Expected Array or iterable object of values: "+t);return r}function en(t){var r=ne(t)||typeof t=="object"&&new vt(t);if(!r)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return r}function ne(t){return xr(t)?new ut(t):Jt(t)?new Ut(t):Qr(t)?new Kt(t):void 0}function ie(t,r,e,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[e?o-u:u];if(r(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(r,e)}function oe(t,r,e,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new m(function(){var s=i[e?o-u:u];return u++>o?j():w(r,n?s[0]:u-1,s[1])})}return t.__iteratorUncached(r,e)}function _r(t,r){return r?pr(r,t,"",{"":t}):vr(t)}function pr(t,r,e,n){return Array.isArray(r)?t.call(n,e,O(r).map(function(i,o){return pr(t,i,o,r)})):ue(r)?t.call(n,e,b(r).map(function(i,o){return pr(t,i,o,r)})):r}function vr(t){return Array.isArray(t)?O(t).map(vr).toList():ue(t)?b(t).map(vr).toMap():t}function ue(t){return t&&(t.constructor===Object||t.constructor===void 0)}function R(t,r){if(t===r||t!==t&&r!==r)return!0;if(!t||!r)return!1;if(typeof t.valueOf=="function"&&typeof r.valueOf=="function"){if(t=t.valueOf(),r=r.valueOf(),t===r||t!==t&&r!==r)return!0;if(!t||!r)return!1}return!!(typeof t.equals=="function"&&typeof r.equals=="function"&&t.equals(r))}function yr(t,r){if(t===r)return!0;if(!D(r)||t.size!==void 0&&r.size!==void 0&&t.size!==r.size||t.__hash!==void 0&&r.__hash!==void 0&&t.__hash!==r.__hash||T(t)!==T(r)||G(t)!==G(r)||nt(t)!==nt(r))return!1;if(t.size===0&&r.size===0)return!0;var e=!ir(t);if(nt(t)){var n=t.entries();return r.every(function(a,f){var h=n.next().value;return h&&R(h[1],a)&&(e||R(h[0],f))})&&n.next().done}var i=!1;if(t.size===void 0)if(r.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{i=!0;var o=t;t=r,r=o}var u=!0,s=r.__iterate(function(a,f){if(e?!t.has(a):i?!R(a,t.get(f,l)):!R(t.get(f,l),a))return u=!1,!1});return u&&t.size===s}S(U,O);function U(t,r){if(!(this instanceof U))return new U(t,r);if(this._value=t,this.size=r===void 0?1/0:Math.max(0,r),this.size===0){if(lr)return lr;lr=this}}U.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},U.prototype.get=function(t,r){return this.has(t)?this._value:r},U.prototype.includes=function(t){return R(this._value,t)},U.prototype.slice=function(t,r){var e=this.size;return Nt(t,r,e)?this:new U(this._value,Lt(r,e)-gt(t,e))},U.prototype.reverse=function(){return this},U.prototype.indexOf=function(t){return R(this._value,t)?0:-1},U.prototype.lastIndexOf=function(t){return R(this._value,t)?this.size:-1},U.prototype.__iterate=function(t,r){for(var e=0;e<this.size;e++)if(t(this._value,e,this)===!1)return e+1;return e},U.prototype.__iterator=function(t,r){var e=this,n=0;return new m(function(){return n<e.size?w(t,n++,e._value):j()})},U.prototype.equals=function(t){return t instanceof U?R(this._value,t._value):yr(t)};var lr;function Vt(t,r){if(!t)throw new Error(r)}S(k,O);function k(t,r,e){if(!(this instanceof k))return new k(t,r,e);if(Vt(e!==0,"Cannot step a Range by 0"),t=t||0,r===void 0&&(r=1/0),e=e===void 0?1:Math.abs(e),r<t&&(e=-e),this._start=t,this._end=r,this._step=e,this.size=Math.max(0,Math.ceil((r-t)/e-1)+1),this.size===0){if(dr)return dr;dr=this}}k.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},k.prototype.get=function(t,r){return this.has(t)?this._start+pt(this,t)*this._step:r},k.prototype.includes=function(t){var r=(t-this._start)/this._step;return r>=0&&r<this.size&&r===Math.floor(r)},k.prototype.slice=function(t,r){return Nt(t,r,this.size)?this:(t=gt(t,this.size),r=Lt(r,this.size),r<=t?new k(0,0):new k(this.get(t,this._end),this.get(r,this._end),this._step))},k.prototype.indexOf=function(t){var r=t-this._start;if(r%this._step===0){var e=r/this._step;if(e>=0&&e<this.size)return e}return-1},k.prototype.lastIndexOf=function(t){return this.indexOf(t)},k.prototype.__iterate=function(t,r){for(var e=this.size-1,n=this._step,i=r?this._start+e*n:this._start,o=0;o<=e;o++){if(t(i,o,this)===!1)return o+1;i+=r?-n:n}return o},k.prototype.__iterator=function(t,r){var e=this.size-1,n=this._step,i=r?this._start+e*n:this._start,o=0;return new m(function(){var u=i;return i+=r?-n:n,o>e?j():w(t,o++,u)})},k.prototype.equals=function(t){return t instanceof k?this._start===t._start&&this._end===t._end&&this._step===t._step:yr(this,t)};var dr;S(yt,q);function yt(){throw TypeError("Abstract")}S(Pt,yt);function Pt(){}S(wt,yt);function wt(){}S(Gt,yt);function Gt(){}yt.Keyed=Pt,yt.Indexed=wt,yt.Set=Gt;var Ct=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(r,e){r=r|0,e=e|0;var n=r&65535,i=e&65535;return n*i+((r>>>16)*i+n*(e>>>16)<<16>>>0)|0};function mr(t){return t>>>1&1073741824|t&3221225471}function Y(t){if(t===!1||t===null||t===void 0||typeof t.valueOf=="function"&&(t=t.valueOf(),t===!1||t===null||t===void 0))return 0;if(t===!0)return 1;var r=typeof t;if(r==="number"){if(t!==t||t===1/0)return 0;var e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)t/=4294967295,e^=t;return mr(e)}if(r==="string")return t.length>sn?nn(t):Sr(t);if(typeof t.hashCode=="function")return t.hashCode();if(r==="object")return on(t);if(typeof t.toString=="function")return Sr(t.toString());throw new Error("Value type "+r+" cannot be hashed.")}function nn(t){var r=zr[t];return r===void 0&&(r=Sr(t),Er===an&&(Er=0,zr={}),Er++,zr[t]=r),r}function Sr(t){for(var r=0,e=0;e<t.length;e++)r=31*r+t.charCodeAt(e)|0;return mr(r)}function on(t){var r;if(gr&&(r=wr.get(t),r!==void 0)||(r=t[mt],r!==void 0)||!ae&&(r=t.propertyIsEnumerable&&t.propertyIsEnumerable[mt],r!==void 0||(r=un(t),r!==void 0)))return r;if(r=++Ir,Ir&1073741824&&(Ir=0),gr)wr.set(t,r);else{if(se!==void 0&&se(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(ae)Object.defineProperty(t,mt,{enumerable:!1,configurable:!1,writable:!1,value:r});else if(t.propertyIsEnumerable!==void 0&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[mt]=r;else if(t.nodeType!==void 0)t[mt]=r;else throw new Error("Unable to set a non-enumerable property on object.")}return r}var se=Object.isExtensible,ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function un(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var gr=typeof WeakMap=="function",wr;gr&&(wr=new WeakMap);var Ir=0,mt="__immutablehash__";typeof Symbol=="function"&&(mt=Symbol(mt));var sn=16,an=255,Er=0,zr={};function J(t){Vt(t!==1/0,"Cannot perform this action with an infinite size.")}S(d,Pt);function d(t){return t==null?rt():Mr(t)&&!nt(t)?t:rt().withMutations(function(r){var e=P(t);J(e.size),e.forEach(function(n,i){return r.set(i,n)})})}d.of=function(){var t=B.call(arguments,0);return rt().withMutations(function(r){for(var e=0;e<t.length;e+=2){if(e+1>=t.length)throw new Error("Missing value for key: "+t[e]);r.set(t[e],t[e+1])}})},d.prototype.toString=function(){return this.__toString("Map {","}")},d.prototype.get=function(t,r){return this._root?this._root.get(0,void 0,t,r):r},d.prototype.set=function(t,r){return _e(this,t,r)},d.prototype.setIn=function(t,r){return this.updateIn(t,l,function(){return r})},d.prototype.remove=function(t){return _e(this,t,l)},d.prototype.deleteIn=function(t){return this.updateIn(t,function(){return l})},d.prototype.update=function(t,r,e){return arguments.length===1?t(this):this.updateIn([t],r,e)},d.prototype.updateIn=function(t,r,e){e||(e=r,r=void 0);var n=de(this,Ce(t),r,e);return n===l?void 0:n},d.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},d.prototype.merge=function(){return Xt(this,void 0,arguments)},d.prototype.mergeWith=function(t){var r=B.call(arguments,1);return Xt(this,t,r)},d.prototype.mergeIn=function(t){var r=B.call(arguments,1);return this.updateIn(t,rt(),function(e){return typeof e.merge=="function"?e.merge.apply(e,r):r[r.length-1]})},d.prototype.mergeDeep=function(){return Xt(this,ve,arguments)},d.prototype.mergeDeepWith=function(t){var r=B.call(arguments,1);return Xt(this,ye(t),r)},d.prototype.mergeDeepIn=function(t){var r=B.call(arguments,1);return this.updateIn(t,rt(),function(e){return typeof e.mergeDeep=="function"?e.mergeDeep.apply(e,r):r[r.length-1]})},d.prototype.sort=function(t){return A(At(this,t))},d.prototype.sortBy=function(t,r){return A(At(this,r,t))},d.prototype.withMutations=function(t){var r=this.asMutable();return t(r),r.wasAltered()?r.__ensureOwner(this.__ownerID):this},d.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new ur)},d.prototype.asImmutable=function(){return this.__ensureOwner()},d.prototype.wasAltered=function(){return this.__altered},d.prototype.__iterator=function(t,r){return new qr(this,t,r)},d.prototype.__iterate=function(t,r){var e=this,n=0;return this._root&&this._root.iterate(function(i){return n++,t(i[1],i[0],e)},r),n},d.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ar(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)};function Mr(t){return!!(t&&t[fe])}d.isMap=Mr;var fe="@@__IMMUTABLE_MAP__@@",y=d.prototype;y[fe]=!0,y[Rt]=y.remove,y.removeIn=y.deleteIn;function Ft(t,r){this.ownerID=t,this.entries=r}Ft.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(R(e,i[o][0]))return i[o][1];return n},Ft.prototype.update=function(t,r,e,n,i,o,u){for(var s=i===l,a=this.entries,f=0,h=a.length;f<h&&!R(n,a[f][0]);f++);var c=f<h;if(c?a[f][1]===i:s)return this;if(Z(u),(s||!c)&&Z(o),!(s&&a.length===1)){if(!c&&!s&&a.length>=vn)return fn(t,a,n,i);var _=t&&t===this.ownerID,p=_?a:_t(a);return c?s?f===h-1?p.pop():p[f]=p.pop():p[f]=[n,i]:p.push([n,i]),_?(this.entries=p,this):new Ft(t,p)}};function It(t,r,e){this.ownerID=t,this.bitmap=r,this.nodes=e}It.prototype.get=function(t,r,e,n){r===void 0&&(r=Y(e));var i=1<<((t===0?r:r>>>t)&C),o=this.bitmap;return o&i?this.nodes[me(o&i-1)].get(t+I,r,e,n):n},It.prototype.update=function(t,r,e,n,i,o,u){e===void 0&&(e=Y(n));var s=(r===0?e:e>>>r)&C,a=1<<s,f=this.bitmap,h=(f&a)!==0;if(!h&&i===l)return this;var c=me(f&a-1),_=this.nodes,p=h?_[c]:void 0,v=Tr(p,t,r+I,e,n,i,o,u);if(v===p)return this;if(!h&&v&&_.length>=yn)return cn(t,_,f,s,v);if(h&&!v&&_.length===2&&pe(_[c^1]))return _[c^1];if(h&&v&&_.length===1&&pe(v))return v;var M=t&&t===this.ownerID,et=h?v?f:f^a:f|a,ht=h?v?Se(_,c,v,M):pn(_,c,M):_n(_,c,v,M);return M?(this.bitmap=et,this.nodes=ht,this):new It(t,et,ht)};function Wt(t,r,e){this.ownerID=t,this.count=r,this.nodes=e}Wt.prototype.get=function(t,r,e,n){r===void 0&&(r=Y(e));var i=(t===0?r:r>>>t)&C,o=this.nodes[i];return o?o.get(t+I,r,e,n):n},Wt.prototype.update=function(t,r,e,n,i,o,u){e===void 0&&(e=Y(n));var s=(r===0?e:e>>>r)&C,a=i===l,f=this.nodes,h=f[s];if(a&&!h)return this;var c=Tr(h,t,r+I,e,n,i,o,u);if(c===h)return this;var _=this.count;if(!h)_++;else if(!c&&(_--,_<ln))return hn(t,f,_,s);var p=t&&t===this.ownerID,v=Se(f,s,c,p);return p?(this.count=_,this.nodes=v,this):new Wt(t,_,v)};function Et(t,r,e){this.ownerID=t,this.keyHash=r,this.entries=e}Et.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(R(e,i[o][0]))return i[o][1];return n},Et.prototype.update=function(t,r,e,n,i,o,u){e===void 0&&(e=Y(n));var s=i===l;if(e!==this.keyHash)return s?this:(Z(u),Z(o),Rr(this,t,r,e,[n,i]));for(var a=this.entries,f=0,h=a.length;f<h&&!R(n,a[f][0]);f++);var c=f<h;if(c?a[f][1]===i:s)return this;if(Z(u),(s||!c)&&Z(o),s&&h===2)return new ct(t,this.keyHash,a[f^1]);var _=t&&t===this.ownerID,p=_?a:_t(a);return c?s?f===h-1?p.pop():p[f]=p.pop():p[f]=[n,i]:p.push([n,i]),_?(this.entries=p,this):new Et(t,this.keyHash,p)};function ct(t,r,e){this.ownerID=t,this.keyHash=r,this.entry=e}ct.prototype.get=function(t,r,e,n){return R(e,this.entry[0])?this.entry[1]:n},ct.prototype.update=function(t,r,e,n,i,o,u){var s=i===l,a=R(n,this.entry[0]);if(a?i===this.entry[1]:s)return this;if(Z(u),s){Z(o);return}return a?t&&t===this.ownerID?(this.entry[1]=i,this):new ct(t,this.keyHash,[n,i]):(Z(o),Rr(this,t,r,Y(n),[n,i]))},Ft.prototype.iterate=Et.prototype.iterate=function(t,r){for(var e=this.entries,n=0,i=e.length-1;n<=i;n++)if(t(e[r?i-n:n])===!1)return!1},It.prototype.iterate=Wt.prototype.iterate=function(t,r){for(var e=this.nodes,n=0,i=e.length-1;n<=i;n++){var o=e[r?i-n:n];if(o&&o.iterate(t,r)===!1)return!1}},ct.prototype.iterate=function(t,r){return t(this.entry)},S(qr,m);function qr(t,r,e){this._type=r,this._reverse=e,this._stack=t._root&&he(t._root)}qr.prototype.next=function(){for(var t=this._type,r=this._stack;r;){var e=r.node,n=r.index++,i;if(e.entry){if(n===0)return Or(t,e.entry)}else if(e.entries){if(i=e.entries.length-1,n<=i)return Or(t,e.entries[this._reverse?i-n:n])}else if(i=e.nodes.length-1,n<=i){var o=e.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Or(t,o.entry);r=this._stack=he(o,r)}continue}r=this._stack=this._stack.__prev}return j()};function Or(t,r){return w(t,r[0],r[1])}function he(t,r){return{node:t,index:0,__prev:r}}function Ar(t,r,e,n){var i=Object.create(y);return i.size=t,i._root=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}var ce;function rt(){return ce||(ce=Ar(0))}function _e(t,r,e){var n,i;if(t._root){var o=or(rn),u=or(Vr);if(n=Tr(t._root,t.__ownerID,0,void 0,r,e,o,u),!u.value)return t;i=t.size+(o.value?e===l?-1:1:0)}else{if(e===l)return t;i=1,n=new Ft(t.__ownerID,[[r,e]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Ar(i,n):rt()}function Tr(t,r,e,n,i,o,u,s){return t?t.update(r,e,n,i,o,u,s):o===l?t:(Z(s),Z(u),new ct(r,n,[i,o]))}function pe(t){return t.constructor===ct||t.constructor===Et}function Rr(t,r,e,n,i){if(t.keyHash===n)return new Et(r,n,[t.entry,i]);var o=(e===0?t.keyHash:t.keyHash>>>e)&C,u=(e===0?n:n>>>e)&C,s,a=o===u?[Rr(t,r,e+I,n,i)]:(s=new ct(r,n,i),o<u?[t,s]:[s,t]);return new It(r,1<<o|1<<u,a)}function fn(t,r,e,n){t||(t=new ur);for(var i=new ct(t,Y(e),[e,n]),o=0;o<r.length;o++){var u=r[o];i=i.update(t,0,void 0,u[0],u[1])}return i}function hn(t,r,e,n){for(var i=0,o=0,u=new Array(e),s=0,a=1,f=r.length;s<f;s++,a<<=1){var h=r[s];h!==void 0&&s!==n&&(i|=a,u[o++]=h)}return new It(t,i,u)}function cn(t,r,e,n,i){for(var o=0,u=new Array(X),s=0;e!==0;s++,e>>>=1)u[s]=e&1?r[o++]:void 0;return u[n]=i,new Wt(t,o+1,u)}function Xt(t,r,e){for(var n=[],i=0;i<e.length;i++){var o=e[i],u=P(o);D(o)||(u=u.map(function(s){return _r(s)})),n.push(u)}return le(t,r,n)}function ve(t,r,e){return t&&t.mergeDeep&&D(r)?t.mergeDeep(r):R(t,r)?t:r}function ye(t){return function(r,e,n){if(r&&r.mergeDeepWith&&D(e))return r.mergeDeepWith(t,e);var i=t(r,e,n);return R(r,i)?r:i}}function le(t,r,e){return e=e.filter(function(n){return n.size!==0}),e.length===0?t:t.size===0&&!t.__ownerID&&e.length===1?t.constructor(e[0]):t.withMutations(function(n){for(var i=r?function(u,s){n.update(s,l,function(a){return a===l?u:r(a,u,s)})}:function(u,s){n.set(s,u)},o=0;o<e.length;o++)e[o].forEach(i)})}function de(t,r,e,n){var i=t===l,o=r.next();if(o.done){var u=i?e:t,s=n(u);return s===u?t:s}Vt(i||t&&t.set,"invalid keyPath");var a=o.value,f=i?l:t.get(a,l),h=de(f,r,e,n);return h===f?t:h===l?t.remove(a):(i?rt():t).set(a,h)}function me(t){return t=t-(t>>1&1431655765),t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t=t+(t>>8),t=t+(t>>16),t&127}function Se(t,r,e,n){var i=n?t:_t(t);return i[r]=e,i}function _n(t,r,e,n){var i=t.length+1;if(n&&r+1===i)return t[r]=e,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===r?(o[s]=e,u=-1):o[s]=t[s+u];return o}function pn(t,r,e){var n=t.length-1;if(e&&r===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===r&&(o=1),i[u]=t[u+o];return i}var vn=X/4,yn=X/2,ln=X/4;S(E,wt);function E(t){var r=Nr();if(t==null)return r;if(ge(t))return t;var e=tt(t),n=e.size;return n===0?r:(J(n),n>0&&n<X?jt(0,n,I,null,new lt(e.toArray())):r.withMutations(function(i){i.setSize(n),e.forEach(function(o,u){return i.set(u,o)})}))}E.of=function(){return this(arguments)},E.prototype.toString=function(){return this.__toString("List [","]")},E.prototype.get=function(t,r){if(t=pt(this,t),t>=0&&t<this.size){t+=this._origin;var e=ze(this,t);return e&&e.array[t&C]}return r},E.prototype.set=function(t,r){return dn(this,t,r)},E.prototype.remove=function(t){return this.has(t)?t===0?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},E.prototype.insert=function(t,r){return this.splice(t,0,r)},E.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=I,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Nr()},E.prototype.push=function(){var t=arguments,r=this.size;return this.withMutations(function(e){dt(e,0,r+t.length);for(var n=0;n<t.length;n++)e.set(r+n,t[n])})},E.prototype.pop=function(){return dt(this,0,-1)},E.prototype.unshift=function(){var t=arguments;return this.withMutations(function(r){dt(r,-t.length);for(var e=0;e<t.length;e++)r.set(e,t[e])})},E.prototype.shift=function(){return dt(this,1)},E.prototype.merge=function(){return Zt(this,void 0,arguments)},E.prototype.mergeWith=function(t){var r=B.call(arguments,1);return Zt(this,t,r)},E.prototype.mergeDeep=function(){return Zt(this,ve,arguments)},E.prototype.mergeDeepWith=function(t){var r=B.call(arguments,1);return Zt(this,ye(t),r)},E.prototype.setSize=function(t){return dt(this,0,t)},E.prototype.slice=function(t,r){var e=this.size;return Nt(t,r,e)?this:dt(this,gt(t,e),Lt(r,e))},E.prototype.__iterator=function(t,r){var e=0,n=Ie(this,r);return new m(function(){var i=n();return i===$t?j():w(t,e++,i)})},E.prototype.__iterate=function(t,r){for(var e=0,n=Ie(this,r),i;(i=n())!==$t&&t(i,e++,this)!==!1;);return e},E.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?jt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)};function ge(t){return!!(t&&t[we])}E.isList=ge;var we="@@__IMMUTABLE_LIST__@@",F=E.prototype;F[we]=!0,F[Rt]=F.remove,F.setIn=y.setIn,F.deleteIn=F.removeIn=y.removeIn,F.update=y.update,F.updateIn=y.updateIn,F.mergeIn=y.mergeIn,F.mergeDeepIn=y.mergeDeepIn,F.withMutations=y.withMutations,F.asMutable=y.asMutable,F.asImmutable=y.asImmutable,F.wasAltered=y.wasAltered;function lt(t,r){this.array=t,this.ownerID=r}lt.prototype.removeBefore=function(t,r,e){if(e===r?1<<r:this.array.length===0)return this;var n=e>>>r&C;if(n>=this.array.length)return new lt([],t);var i=n===0,o;if(r>0){var u=this.array[n];if(o=u&&u.removeBefore(t,r-I,e),o===u&&i)return this}if(i&&!o)return this;var s=zt(this,t);if(!i)for(var a=0;a<n;a++)s.array[a]=void 0;return o&&(s.array[n]=o),s},lt.prototype.removeAfter=function(t,r,e){if(e===(r?1<<r:0)||this.array.length===0)return this;var n=e-1>>>r&C;if(n>=this.array.length)return this;var i;if(r>0){var o=this.array[n];if(i=o&&o.removeAfter(t,r-I,e),i===o&&n===this.array.length-1)return this}var u=zt(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var $t={};function Ie(t,r){var e=t._origin,n=t._capacity,i=Bt(n),o=t._tail;return u(t._root,t._level,0);function u(f,h,c){return h===0?s(f,c):a(f,h,c)}function s(f,h){var c=h===i?o&&o.array:f&&f.array,_=h>e?0:e-h,p=n-h;return p>X&&(p=X),function(){if(_===p)return $t;var v=r?--p:_++;return c&&c[v]}}function a(f,h,c){var _,p=f&&f.array,v=c>e?0:e-c>>h,M=(n-c>>h)+1;return M>X&&(M=X),function(){do{if(_){var et=_();if(et!==$t)return et;_=null}if(v===M)return $t;var ht=r?--M:v++;_=u(p&&p[ht],h-I,c+(ht<<h))}while(!0)}}}function jt(t,r,e,n,i,o,u){var s=Object.create(F);return s.size=r-t,s._origin=t,s._capacity=r,s._level=e,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}var Ee;function Nr(){return Ee||(Ee=jt(0,0,I))}function dn(t,r,e){if(r=pt(t,r),r!==r)return t;if(r>=t.size||r<0)return t.withMutations(function(u){r<0?dt(u,r).set(0,e):dt(u,0,r+1).set(r,e)});r+=t._origin;var n=t._tail,i=t._root,o=or(Vr);return r>=Bt(t._capacity)?n=Lr(n,t.__ownerID,0,r,e,o):i=Lr(i,t.__ownerID,t._level,r,e,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):jt(t._origin,t._capacity,t._level,i,n):t}function Lr(t,r,e,n,i,o){var u=n>>>e&C,s=t&&u<t.array.length;if(!s&&i===void 0)return t;var a;if(e>0){var f=t&&t.array[u],h=Lr(f,r,e-I,n,i,o);return h===f?t:(a=zt(t,r),a.array[u]=h,a)}return s&&t.array[u]===i?t:(Z(o),a=zt(t,r),i===void 0&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function zt(t,r){return r&&t&&r===t.ownerID?t:new lt(t?t.array.slice():[],r)}function ze(t,r){if(r>=Bt(t._capacity))return t._tail;if(r<1<<t._level+I){for(var e=t._root,n=t._level;e&&n>0;)e=e.array[r>>>n&C],n-=I;return e}}function dt(t,r,e){r!==void 0&&(r=r|0),e!==void 0&&(e=e|0);var n=t.__ownerID||new ur,i=t._origin,o=t._capacity,u=i+r,s=e===void 0?o:e<0?o+e:i+e;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,f=t._root,h=0;u+h<0;)f=new lt(f&&f.array.length?[void 0,f]:[],n),a+=I,h+=1<<a;h&&(u+=h,i+=h,s+=h,o+=h);for(var c=Bt(o),_=Bt(s);_>=1<<a+I;)f=new lt(f&&f.array.length?[f]:[],n),a+=I;var p=t._tail,v=_<c?ze(t,s-1):_>c?new lt([],n):p;if(p&&_>c&&u<o&&p.array.length){f=zt(f,n);for(var M=f,et=a;et>I;et-=I){var ht=c>>>et&C;M=M.array[ht]=zt(M.array[ht],n)}M.array[c>>>I&C]=p}if(s<o&&(v=v&&v.removeAfter(n,0,s)),u>=_)u-=_,s-=_,a=I,f=null,v=v&&v.removeBefore(n,0,u);else if(u>i||_<c){for(h=0;f;){var nr=u>>>a&C;if(nr!==_>>>a&C)break;nr&&(h+=(1<<a)*nr),a-=I,f=f.array[nr]}f&&u>i&&(f=f.removeBefore(n,a,u-h)),f&&_<c&&(f=f.removeAfter(n,a,_-h)),h&&(u-=h,s-=h)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=f,t._tail=v,t.__hash=void 0,t.__altered=!0,t):jt(u,s,a,f,v)}function Zt(t,r,e){for(var n=[],i=0,o=0;o<e.length;o++){var u=e[o],s=tt(u);s.size>i&&(i=s.size),D(u)||(s=s.map(function(a){return _r(a)})),n.push(s)}return i>t.size&&(t=t.setSize(i)),le(t,r,n)}function Bt(t){return t<X?0:t-1>>>I<<I}S(A,d);function A(t){return t==null?Qt():Me(t)?t:Qt().withMutations(function(r){var e=P(t);J(e.size),e.forEach(function(n,i){return r.set(i,n)})})}A.of=function(){return this(arguments)},A.prototype.toString=function(){return this.__toString("OrderedMap {","}")},A.prototype.get=function(t,r){var e=this._map.get(t);return e!==void 0?this._list.get(e)[1]:r},A.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Qt()},A.prototype.set=function(t,r){return Oe(this,t,r)},A.prototype.remove=function(t){return Oe(this,t,l)},A.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},A.prototype.__iterate=function(t,r){var e=this;return this._list.__iterate(function(n){return n&&t(n[1],n[0],e)},r)},A.prototype.__iterator=function(t,r){return this._list.fromEntrySeq().__iterator(t,r)},A.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._map.__ensureOwner(t),e=this._list.__ensureOwner(t);return t?Dr(r,e,t,this.__hash):(this.__ownerID=t,this._map=r,this._list=e,this)};function Me(t){return Mr(t)&&nt(t)}A.isOrderedMap=Me,A.prototype[St]=!0,A.prototype[Rt]=A.prototype.remove;function Dr(t,r,e,n){var i=Object.create(A.prototype);return i.size=t?t.size:0,i._map=t,i._list=r,i.__ownerID=e,i.__hash=n,i}var qe;function Qt(){return qe||(qe=Dr(rt(),Nr()))}function Oe(t,r,e){var n=t._map,i=t._list,o=n.get(r),u=o!==void 0,s,a;if(e===l){if(!u)return t;i.size>=X&&i.size>=n.size*2?(a=i.filter(function(f,h){return f!==void 0&&o!==h}),s=a.toKeyedSeq().map(function(f){return f[0]}).flip().toMap(),t.__ownerID&&(s.__ownerID=a.__ownerID=t.__ownerID)):(s=n.remove(r),a=o===i.size-1?i.pop():i.set(o,void 0))}else if(u){if(e===i.get(o)[1])return t;s=n,a=i.set(o,[r,e])}else s=n.set(r,i.size),a=i.set(i.size,[r,e]);return t.__ownerID?(t.size=s.size,t._map=s,t._list=a,t.__hash=void 0,t):Dr(s,a)}S(x,b);function x(t,r){this._iter=t,this._useKeys=r,this.size=t.size}x.prototype.get=function(t,r){return this._iter.get(t,r)},x.prototype.has=function(t){return this._iter.has(t)},x.prototype.valueSeq=function(){return this._iter.valueSeq()},x.prototype.reverse=function(){var t=this,r=kr(this,!0);return this._useKeys||(r.valueSeq=function(){return t._iter.toSeq().reverse()}),r},x.prototype.map=function(t,r){var e=this,n=Te(this,t,r);return this._useKeys||(n.valueSeq=function(){return e._iter.toSeq().map(t,r)}),n},x.prototype.__iterate=function(t,r){var e=this,n;return this._iter.__iterate(this._useKeys?function(i,o){return t(i,o,e)}:(n=r?Ke(this):0,function(i){return t(i,r?--n:n++,e)}),r)},x.prototype.__iterator=function(t,r){if(this._useKeys)return this._iter.__iterator(t,r);var e=this._iter.__iterator(Q,r),n=r?Ke(this):0;return new m(function(){var i=e.next();return i.done?i:w(t,r?--n:n++,i.value,i)})},x.prototype[St]=!0,S(Mt,O);function Mt(t){this._iter=t,this.size=t.size}Mt.prototype.includes=function(t){return this._iter.includes(t)},Mt.prototype.__iterate=function(t,r){var e=this,n=0;return this._iter.__iterate(function(i){return t(i,n++,e)},r)},Mt.prototype.__iterator=function(t,r){var e=this._iter.__iterator(Q,r),n=0;return new m(function(){var i=e.next();return i.done?i:w(t,n++,i.value,i)})},S(qt,ot);function qt(t){this._iter=t,this.size=t.size}qt.prototype.has=function(t){return this._iter.includes(t)},qt.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate(function(n){return t(n,n,e)},r)},qt.prototype.__iterator=function(t,r){var e=this._iter.__iterator(Q,r);return new m(function(){var n=e.next();return n.done?n:w(t,n.value,n.value,n)})},S(Ot,b);function Ot(t){this._iter=t,this.size=t.size}Ot.prototype.entrySeq=function(){return this._iter.toSeq()},Ot.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate(function(n){if(n){ke(n);var i=D(n);return t(i?n.get(1):n[1],i?n.get(0):n[0],e)}},r)},Ot.prototype.__iterator=function(t,r){var e=this._iter.__iterator(Q,r);return new m(function(){for(;;){var n=e.next();if(n.done)return n;var i=n.value;if(i){ke(i);var o=D(i);return w(t,o?i.get(0):i[0],o?i.get(1):i[1],n)}}})},Mt.prototype.cacheResult=x.prototype.cacheResult=qt.prototype.cacheResult=Ot.prototype.cacheResult=Pr;function Ae(t){var r=st(t);return r._iter=t,r.size=t.size,r.flip=function(){return t},r.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},r.has=function(e){return t.includes(e)},r.includes=function(e){return t.has(e)},r.cacheResult=Pr,r.__iterateUncached=function(e,n){var i=this;return t.__iterate(function(o,u){return e(u,o,i)!==!1},n)},r.__iteratorUncached=function(e,n){if(e===it){var i=t.__iterator(e,n);return new m(function(){var o=i.next();if(!o.done){var u=o.value[0];o.value[0]=o.value[1],o.value[1]=u}return o})}return t.__iterator(e===Q?Dt:Q,n)},r}function Te(t,r,e){var n=st(t);return n.size=t.size,n.has=function(i){return t.has(i)},n.get=function(i,o){var u=t.get(i,l);return u===l?o:r.call(e,u,i,t)},n.__iterateUncached=function(i,o){var u=this;return t.__iterate(function(s,a,f){return i(r.call(e,s,a,f),a,u)!==!1},o)},n.__iteratorUncached=function(i,o){var u=t.__iterator(it,o);return new m(function(){var s=u.next();if(s.done)return s;var a=s.value,f=a[0];return w(i,f,r.call(e,a[1],f,t),s)})},n}function kr(t,r){var e=st(t);return e._iter=t,e.size=t.size,e.reverse=function(){return t},t.flip&&(e.flip=function(){var n=Ae(t);return n.reverse=function(){return t.flip()},n}),e.get=function(n,i){return t.get(r?n:-1-n,i)},e.has=function(n){return t.has(r?n:-1-n)},e.includes=function(n){return t.includes(n)},e.cacheResult=Pr,e.__iterate=function(n,i){var o=this;return t.__iterate(function(u,s){return n(u,s,o)},!i)},e.__iterator=function(n,i){return t.__iterator(n,!i)},e}function Re(t,r,e,n){var i=st(t);return n&&(i.has=function(o){var u=t.get(o,l);return u!==l&&!!r.call(e,u,o,t)},i.get=function(o,u){var s=t.get(o,l);return s!==l&&r.call(e,s,o,t)?s:u}),i.__iterateUncached=function(o,u){var s=this,a=0;return t.__iterate(function(f,h,c){if(r.call(e,f,h,c))return a++,o(f,n?h:a-1,s)},u),a},i.__iteratorUncached=function(o,u){var s=t.__iterator(it,u),a=0;return new m(function(){for(;;){var f=s.next();if(f.done)return f;var h=f.value,c=h[0],_=h[1];if(r.call(e,_,c,t))return w(o,n?c:a++,_,f)}})},i}function mn(t,r,e){var n=d().asMutable();return t.__iterate(function(i,o){n.update(r.call(e,i,o,t),0,function(u){return u+1})}),n.asImmutable()}function Sn(t,r,e){var n=T(t),i=(nt(t)?A():d()).asMutable();t.__iterate(function(u,s){i.update(r.call(e,u,s,t),function(a){return a=a||[],a.push(n?[s,u]:u),a})});var o=Ue(t);return i.map(function(u){return g(t,o(u))})}function Kr(t,r,e,n){var i=t.size;if(r!==void 0&&(r=r|0),e!==void 0&&(e===1/0?e=i:e=e|0),Nt(r,e,i))return t;var o=gt(r,i),u=Lt(e,i);if(o!==o||u!==u)return Kr(t.toSeq().cacheResult(),r,e,n);var s=u-o,a;s===s&&(a=s<0?0:s);var f=st(t);return f.size=a===0?a:t.size&&a||void 0,!n&&hr(t)&&a>=0&&(f.get=function(h,c){return h=pt(this,h),h>=0&&h<a?t.get(h+o,c):c}),f.__iterateUncached=function(h,c){var _=this;if(a===0)return 0;if(c)return this.cacheResult().__iterate(h,c);var p=0,v=!0,M=0;return t.__iterate(function(et,ht){if(!(v&&(v=p++<o)))return M++,h(et,n?ht:M-1,_)!==!1&&M!==a}),M},f.__iteratorUncached=function(h,c){if(a!==0&&c)return this.cacheResult().__iterator(h,c);var _=a!==0&&t.__iterator(h,c),p=0,v=0;return new m(function(){for(;p++<o;)_.next();if(++v>a)return j();var M=_.next();return n||h===Q?M:h===Dt?w(h,v-1,void 0,M):w(h,v-1,M.value[1],M)})},f}function gn(t,r,e){var n=st(t);return n.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=0;return t.__iterate(function(a,f,h){return r.call(e,a,f,h)&&++s&&i(a,f,u)}),s},n.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(it,o),a=!0;return new m(function(){if(!a)return j();var f=s.next();if(f.done)return f;var h=f.value,c=h[0],_=h[1];return r.call(e,_,c,u)?i===it?f:w(i,c,_,f):(a=!1,j())})},n}function Ne(t,r,e,n){var i=st(t);return i.__iterateUncached=function(o,u){var s=this;if(u)return this.cacheResult().__iterate(o,u);var a=!0,f=0;return t.__iterate(function(h,c,_){if(!(a&&(a=r.call(e,h,c,_))))return f++,o(h,n?c:f-1,s)}),f},i.__iteratorUncached=function(o,u){var s=this;if(u)return this.cacheResult().__iterator(o,u);var a=t.__iterator(it,u),f=!0,h=0;return new m(function(){var c,_,p;do{if(c=a.next(),c.done)return n||o===Q?c:o===Dt?w(o,h++,void 0,c):w(o,h++,c.value[1],c);var v=c.value;_=v[0],p=v[1],f&&(f=r.call(e,p,_,s))}while(f);return o===it?c:w(o,_,p,c)})},i}function wn(t,r){var e=T(t),n=[t].concat(r).map(function(u){return D(u)?e&&(u=P(u)):u=e?ee(u):cr(Array.isArray(u)?u:[u]),u}).filter(function(u){return u.size!==0});if(n.length===0)return t;if(n.length===1){var i=n[0];if(i===t||e&&T(i)||G(t)&&G(i))return i}var o=new ut(n);return e?o=o.toKeyedSeq():G(t)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=n.reduce(function(u,s){if(u!==void 0){var a=s.size;if(a!==void 0)return u+a}},0),o}function Le(t,r,e){var n=st(t);return n.__iterateUncached=function(i,o){var u=0,s=!1;function a(f,h){var c=this;f.__iterate(function(_,p){return(!r||h<r)&&D(_)?a(_,h+1):i(_,e?p:u++,c)===!1&&(s=!0),!s},o)}return a(t,0),u},n.__iteratorUncached=function(i,o){var u=t.__iterator(i,o),s=[],a=0;return new m(function(){for(;u;){var f=u.next();if(f.done!==!1){u=s.pop();continue}var h=f.value;if(i===it&&(h=h[1]),(!r||s.length<r)&&D(h))s.push(u),u=h.__iterator(i,o);else return e?f:w(i,a++,h,f)}return j()})},n}function In(t,r,e){var n=Ue(t);return t.toSeq().map(function(i,o){return n(r.call(e,i,o,t))}).flatten(!0)}function En(t,r){var e=st(t);return e.size=t.size&&t.size*2-1,e.__iterateUncached=function(n,i){var o=this,u=0;return t.__iterate(function(s,a){return(!u||n(r,u++,o)!==!1)&&n(s,u++,o)!==!1},i),u},e.__iteratorUncached=function(n,i){var o=t.__iterator(Q,i),u=0,s;return new m(function(){return(!s||u%2)&&(s=o.next(),s.done)?s:u%2?w(n,u++,r):w(n,u++,s.value,s)})},e}function At(t,r,e){r||(r=Pe);var n=T(t),i=0,o=t.toSeq().map(function(u,s){return[s,u,i++,e?e(u,s,t):u]}).toArray();return o.sort(function(u,s){return r(u[3],s[3])||u[2]-s[2]}).forEach(n?function(u,s){o[s].length=2}:function(u,s){o[s]=u[1]}),n?b(o):G(t)?O(o):ot(o)}function bt(t,r,e){if(r||(r=Pe),e){var n=t.toSeq().map(function(i,o){return[i,e(i,o,t)]}).reduce(function(i,o){return De(r,i[1],o[1])?o:i});return n&&n[0]}else return t.reduce(function(i,o){return De(r,i,o)?o:i})}function De(t,r,e){var n=t(e,r);return n===0&&e!==r&&(e==null||e!==e)||n>0}function Ur(t,r,e){var n=st(t);return n.size=new ut(e).map(function(i){return i.size}).min(),n.__iterate=function(i,o){for(var u=this.__iterator(Q,o),s,a=0;!(s=u.next()).done&&i(s.value,a++,this)!==!1;);return a},n.__iteratorUncached=function(i,o){var u=e.map(function(f){return f=q(f),kt(o?f.reverse():f)}),s=0,a=!1;return new m(function(){var f;return a||(f=u.map(function(h){return h.next()}),a=f.some(function(h){return h.done})),a?j():w(i,s++,r.apply(null,f.map(function(h){return h.value})))})},n}function g(t,r){return hr(t)?r:t.constructor(r)}function ke(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ke(t){return J(t.size),sr(t)}function Ue(t){return T(t)?P:G(t)?tt:$}function st(t){return Object.create((T(t)?b:G(t)?O:ot).prototype)}function Pr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):L.prototype.cacheResult.call(this)}function Pe(t,r){return t>r?1:t<r?-1:0}function Ce(t){var r=kt(t);if(!r){if(!xr(t))throw new TypeError("Expected iterable or array-like: "+t);r=kt(q(t))}return r}S(H,Pt);function H(t,r){var e,n=function(u){if(u instanceof n)return u;if(!(this instanceof n))return new n(u);if(!e){e=!0;var s=Object.keys(t);zn(i,s),i.size=s.length,i._name=r,i._keys=s,i._defaultValues=t}this._map=d(u)},i=n.prototype=Object.create(K);return i.constructor=n,n}H.prototype.toString=function(){return this.__toString(Fe(this)+" {","}")},H.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},H.prototype.get=function(t,r){if(!this.has(t))return r;var e=this._defaultValues[t];return this._map?this._map.get(t,e):e},H.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=xt(this,rt()))},H.prototype.set=function(t,r){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Fe(this));if(this._map&&!this._map.has(t)){var e=this._defaultValues[t];if(r===e)return this}var n=this._map&&this._map.set(t,r);return this.__ownerID||n===this._map?this:xt(this,n)},H.prototype.remove=function(t){if(!this.has(t))return this;var r=this._map&&this._map.remove(t);return this.__ownerID||r===this._map?this:xt(this,r)},H.prototype.wasAltered=function(){return this._map.wasAltered()},H.prototype.__iterator=function(t,r){var e=this;return P(this._defaultValues).map(function(n,i){return e.get(i)}).__iterator(t,r)},H.prototype.__iterate=function(t,r){var e=this;return P(this._defaultValues).map(function(n,i){return e.get(i)}).__iterate(t,r)},H.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._map&&this._map.__ensureOwner(t);return t?xt(this,r,t):(this.__ownerID=t,this._map=r,this)};var K=H.prototype;K[Rt]=K.remove,K.deleteIn=K.removeIn=y.removeIn,K.merge=y.merge,K.mergeWith=y.mergeWith,K.mergeIn=y.mergeIn,K.mergeDeep=y.mergeDeep,K.mergeDeepWith=y.mergeDeepWith,K.mergeDeepIn=y.mergeDeepIn,K.setIn=y.setIn,K.update=y.update,K.updateIn=y.updateIn,K.withMutations=y.withMutations,K.asMutable=y.asMutable,K.asImmutable=y.asImmutable;function xt(t,r,e){var n=Object.create(Object.getPrototypeOf(t));return n._map=r,n.__ownerID=e,n}function Fe(t){return t._name||t.constructor.name||"Record"}function zn(t,r){try{r.forEach(Mn.bind(void 0,t))}catch{}}function Mn(t,r){Object.defineProperty(t,r,{get:function(){return this.get(r)},set:function(e){Vt(this.__ownerID,"Cannot set on an immutable record."),this.set(r,e)}})}S(z,Gt);function z(t){return t==null?Wr():Cr(t)&&!nt(t)?t:Wr().withMutations(function(r){var e=$(t);J(e.size),e.forEach(function(n){return r.add(n)})})}z.of=function(){return this(arguments)},z.fromKeys=function(t){return this(P(t).keySeq())},z.prototype.toString=function(){return this.__toString("Set {","}")},z.prototype.has=function(t){return this._map.has(t)},z.prototype.add=function(t){return Fr(this,this._map.set(t,!0))},z.prototype.remove=function(t){return Fr(this,this._map.remove(t))},z.prototype.clear=function(){return Fr(this,this._map.clear())},z.prototype.union=function(){var t=B.call(arguments,0);return t=t.filter(function(r){return r.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(r){for(var e=0;e<t.length;e++)$(t[e]).forEach(function(n){return r.add(n)})})},z.prototype.intersect=function(){var t=B.call(arguments,0);if(t.length===0)return this;t=t.map(function(e){return $(e)});var r=this;return this.withMutations(function(e){r.forEach(function(n){t.every(function(i){return i.includes(n)})||e.remove(n)})})},z.prototype.subtract=function(){var t=B.call(arguments,0);if(t.length===0)return this;t=t.map(function(e){return $(e)});var r=this;return this.withMutations(function(e){r.forEach(function(n){t.some(function(i){return i.includes(n)})&&e.remove(n)})})},z.prototype.merge=function(){return this.union.apply(this,arguments)},z.prototype.mergeWith=function(t){var r=B.call(arguments,1);return this.union.apply(this,r)},z.prototype.sort=function(t){return at(At(this,t))},z.prototype.sortBy=function(t,r){return at(At(this,r,t))},z.prototype.wasAltered=function(){return this._map.wasAltered()},z.prototype.__iterate=function(t,r){var e=this;return this._map.__iterate(function(n,i){return t(i,i,e)},r)},z.prototype.__iterator=function(t,r){return this._map.map(function(e,n){return n}).__iterator(t,r)},z.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._map.__ensureOwner(t);return t?this.__make(r,t):(this.__ownerID=t,this._map=r,this)};function Cr(t){return!!(t&&t[We])}z.isSet=Cr;var We="@@__IMMUTABLE_SET__@@",V=z.prototype;V[We]=!0,V[Rt]=V.remove,V.mergeDeep=V.merge,V.mergeDeepWith=V.mergeWith,V.withMutations=y.withMutations,V.asMutable=y.asMutable,V.asImmutable=y.asImmutable,V.__empty=Wr,V.__make=$e;function Fr(t,r){return t.__ownerID?(t.size=r.size,t._map=r,t):r===t._map?t:r.size===0?t.__empty():t.__make(r)}function $e(t,r){var e=Object.create(V);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}var je;function Wr(){return je||(je=$e(rt()))}S(at,z);function at(t){return t==null?$r():Be(t)?t:$r().withMutations(function(r){var e=$(t);J(e.size),e.forEach(function(n){return r.add(n)})})}at.of=function(){return this(arguments)},at.fromKeys=function(t){return this(P(t).keySeq())},at.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Be(t){return Cr(t)&&nt(t)}at.isOrderedSet=Be;var tr=at.prototype;tr[St]=!0,tr.__empty=$r,tr.__make=Ye;function Ye(t,r){var e=Object.create(tr);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}var Je;function $r(){return Je||(Je=Ye(Qt()))}S(N,wt);function N(t){return t==null?jr():He(t)?t:jr().unshiftAll(t)}N.of=function(){return this(arguments)},N.prototype.toString=function(){return this.__toString("Stack [","]")},N.prototype.get=function(t,r){var e=this._head;for(t=pt(this,t);e&&t--;)e=e.next;return e?e.value:r},N.prototype.peek=function(){return this._head&&this._head.value},N.prototype.push=function(){if(arguments.length===0)return this;for(var t=this.size+arguments.length,r=this._head,e=arguments.length-1;e>=0;e--)r={value:arguments[e],next:r};return this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):Yt(t,r)},N.prototype.pushAll=function(t){if(t=tt(t),t.size===0)return this;J(t.size);var r=this.size,e=this._head;return t.reverse().forEach(function(n){r++,e={value:n,next:e}}),this.__ownerID?(this.size=r,this._head=e,this.__hash=void 0,this.__altered=!0,this):Yt(r,e)},N.prototype.pop=function(){return this.slice(1)},N.prototype.unshift=function(){return this.push.apply(this,arguments)},N.prototype.unshiftAll=function(t){return this.pushAll(t)},N.prototype.shift=function(){return this.pop.apply(this,arguments)},N.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):jr()},N.prototype.slice=function(t,r){if(Nt(t,r,this.size))return this;var e=gt(t,this.size),n=Lt(r,this.size);if(n!==this.size)return wt.prototype.slice.call(this,t,r);for(var i=this.size-e,o=this._head;e--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Yt(i,o)},N.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Yt(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},N.prototype.__iterate=function(t,r){if(r)return this.reverse().__iterate(t);for(var e=0,n=this._head;n&&t(n.value,e++,this)!==!1;)n=n.next;return e},N.prototype.__iterator=function(t,r){if(r)return this.reverse().__iterator(t);var e=0,n=this._head;return new m(function(){if(n){var i=n.value;return n=n.next,w(t,e++,i)}return j()})};function He(t){return!!(t&&t[Ve])}N.isStack=He;var Ve="@@__IMMUTABLE_STACK__@@",Tt=N.prototype;Tt[Ve]=!0,Tt.withMutations=y.withMutations,Tt.asMutable=y.asMutable,Tt.asImmutable=y.asImmutable,Tt.wasAltered=y.wasAltered;function Yt(t,r,e,n){var i=Object.create(Tt);return i.size=t,i._head=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}var Ge;function jr(){return Ge||(Ge=Yt(0))}function ft(t,r){var e=function(n){t.prototype[n]=r[n]};return Object.keys(r).forEach(e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(r).forEach(e),t}q.Iterator=m,ft(q,{toArray:function(){J(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(r,e){t[e]=r}),t},toIndexedSeq:function(){return new Mt(this)},toJS:function(){return this.toSeq().map(function(t){return t&&typeof t.toJS=="function"?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&typeof t.toJSON=="function"?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new x(this,!0)},toMap:function(){return d(this.toKeyedSeq())},toObject:function(){J(this.size);var t={};return this.__iterate(function(r,e){t[e]=r}),t},toOrderedMap:function(){return A(this.toKeyedSeq())},toOrderedSet:function(){return at(T(this)?this.valueSeq():this)},toSet:function(){return z(T(this)?this.valueSeq():this)},toSetSeq:function(){return new qt(this)},toSeq:function(){return G(this)?this.toIndexedSeq():T(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return N(T(this)?this.valueSeq():this)},toList:function(){return E(T(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,r){return this.size===0?t+r:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+r},concat:function(){var t=B.call(arguments,0);return g(this,wn(this,t))},includes:function(t){return this.some(function(r){return R(r,t)})},entries:function(){return this.__iterator(it)},every:function(t,r){J(this.size);var e=!0;return this.__iterate(function(n,i,o){if(!t.call(r,n,i,o))return e=!1,!1}),e},filter:function(t,r){return g(this,Re(this,t,r,!0))},find:function(t,r,e){var n=this.findEntry(t,r);return n?n[1]:e},forEach:function(t,r){return J(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){J(this.size),t=t!==void 0?""+t:",";var r="",e=!0;return this.__iterate(function(n){e?e=!1:r+=t,r+=n!=null?n.toString():""}),r},keys:function(){return this.__iterator(Dt)},map:function(t,r){return g(this,Te(this,t,r))},reduce:function(t,r,e){J(this.size);var n,i;return arguments.length<2?i=!0:n=r,this.__iterate(function(o,u,s){i?(i=!1,n=o):n=t.call(e,n,o,u,s)}),n},reduceRight:function(t,r,e){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return g(this,kr(this,!0))},slice:function(t,r){return g(this,Kr(this,t,r,!0))},some:function(t,r){return!this.every(er(t),r)},sort:function(t){return g(this,At(this,t))},values:function(){return this.__iterator(Q)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,r){return sr(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return mn(this,t,r)},equals:function(t){return yr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new ut(t._cache);var r=t.toSeq().map(On).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(er(t),r)},findEntry:function(t,r,e){var n=e;return this.__iterate(function(i,o,u){if(t.call(r,i,o,u))return n=[o,i],!1}),n},findKey:function(t,r){var e=this.findEntry(t,r);return e&&e[0]},findLast:function(t,r,e){return this.toKeyedSeq().reverse().find(t,r,e)},findLastEntry:function(t,r,e){return this.toKeyedSeq().reverse().findEntry(t,r,e)},findLastKey:function(t,r){return this.toKeyedSeq().reverse().findKey(t,r)},first:function(){return this.find(Gr)},flatMap:function(t,r){return g(this,In(this,t,r))},flatten:function(t){return g(this,Le(this,t,!0))},fromEntrySeq:function(){return new Ot(this)},get:function(t,r){return this.find(function(e,n){return R(n,t)},void 0,r)},getIn:function(t,r){for(var e=this,n=Ce(t),i;!(i=n.next()).done;){var o=i.value;if(e=e&&e.get?e.get(o,l):l,e===l)return r}return e},groupBy:function(t,r){return Sn(this,t,r)},has:function(t){return this.get(t,l)!==l},hasIn:function(t){return this.getIn(t,l)!==l},isSubset:function(t){return t=typeof t.includes=="function"?t:q(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:q(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return R(r,t)})},keySeq:function(){return this.toSeq().map(qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return bt(this,t)},maxBy:function(t,r){return bt(this,r,t)},min:function(t){return bt(this,t?Xe(t):Qe)},minBy:function(t,r){return bt(this,r?Xe(r):Qe,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return g(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,r){return g(this,Ne(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(er(t),r)},sortBy:function(t,r){return g(this,At(this,r,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return g(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,r){return g(this,gn(this,t,r))},takeUntil:function(t,r){return this.takeWhile(er(t),r)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Tn(this))}});var W=q.prototype;W[Yr]=!0,W[fr]=W.values,W.__toJS=W.toArray,W.__toStringMapper=Ze,W.inspect=W.toSource=function(){return this.toString()},W.chain=W.flatMap,W.contains=W.includes,ft(P,{flip:function(){return g(this,Ae(this))},mapEntries:function(t,r){var e=this,n=0;return g(this,this.toSeq().map(function(i,o){return t.call(r,[o,i],n++,e)}).fromEntrySeq())},mapKeys:function(t,r){var e=this;return g(this,this.toSeq().flip().map(function(n,i){return t.call(r,n,i,e)}).flip())}});var rr=P.prototype;rr[Jr]=!0,rr[fr]=W.entries,rr.__toJS=W.toObject,rr.__toStringMapper=function(t,r){return JSON.stringify(r)+": "+Ze(t)},ft(tt,{toKeyedSeq:function(){return new x(this,!1)},filter:function(t,r){return g(this,Re(this,t,r,!1))},findIndex:function(t,r){var e=this.findEntry(t,r);return e?e[0]:-1},indexOf:function(t){var r=this.keyOf(t);return r===void 0?-1:r},lastIndexOf:function(t){var r=this.lastKeyOf(t);return r===void 0?-1:r},reverse:function(){return g(this,kr(this,!1))},slice:function(t,r){return g(this,Kr(this,t,r,!1))},splice:function(t,r){var e=arguments.length;if(r=Math.max(r|0,0),e===0||e===2&&!r)return this;t=gt(t,t<0?this.count():this.size);var n=this.slice(0,t);return g(this,e===1?n:n.concat(_t(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){var e=this.findLastEntry(t,r);return e?e[0]:-1},first:function(){return this.get(0)},flatten:function(t){return g(this,Le(this,t,!1))},get:function(t,r){return t=pt(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?r:this.find(function(e,n){return n===t},void 0,r)},has:function(t){return t=pt(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return g(this,En(this,t))},interleave:function(){var t=[this].concat(_t(arguments)),r=Ur(this.toSeq(),O.of,t),e=r.flatten(!0);return r.size&&(e.size=r.size*t.length),g(this,e)},keySeq:function(){return k(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,r){return g(this,Ne(this,t,r,!1))},zip:function(){var t=[this].concat(_t(arguments));return g(this,Ur(this,An,t))},zipWith:function(t){var r=_t(arguments);return r[0]=this,g(this,Ur(this,t,r))}}),tt.prototype[Hr]=!0,tt.prototype[St]=!0,ft($,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),$.prototype.has=W.includes,$.prototype.contains=$.prototype.includes,ft(b,P.prototype),ft(O,tt.prototype),ft(ot,$.prototype),ft(Pt,P.prototype),ft(wt,tt.prototype),ft(Gt,$.prototype);function qn(t,r){return r}function On(t,r){return[r,t]}function er(t){return function(){return!t.apply(this,arguments)}}function Xe(t){return function(){return-t.apply(this,arguments)}}function Ze(t){return typeof t=="string"?JSON.stringify(t):String(t)}function An(){return _t(arguments)}function Qe(t,r){return t<r?1:t>r?-1:0}function Tn(t){if(t.size===1/0)return 0;var r=nt(t),e=T(t),n=r?1:0,i=t.__iterate(e?r?function(o,u){n=31*n+be(Y(o),Y(u))|0}:function(o,u){n=n+be(Y(o),Y(u))|0}:r?function(o){n=31*n+Y(o)|0}:function(o){n=n+Y(o)|0});return Rn(i,n)}function Rn(t,r){return r=Ct(r,3432918353),r=Ct(r<<15|r>>>-15,461845907),r=Ct(r<<13|r>>>-13,5),r=(r+3864292196|0)^t,r=Ct(r^r>>>16,2246822507),r=Ct(r^r>>>13,3266489909),r=mr(r^r>>>16),r}function be(t,r){return t^r+2654435769+(t<<6)+(t>>2)|0}var Nn={Iterable:q,Seq:L,Collection:yt,Map:d,OrderedMap:A,List:E,Stack:N,Set:z,OrderedSet:at,Record:H,Range:k,Repeat:U,is:R,fromJS:_r};return Nn})}(Br)),Br.exports}exports.requireImmutable=Dn;
1
+ "use strict";const Ln=require("./main-CdN2XIgD.cjs");var Br={exports:{}},xe;function Dn(){return xe||(xe=1,function(tn,kn){(function(B,S){tn.exports=S()})(Ln.commonjsGlobal,function(){var B=Array.prototype.slice;function S(t,r){r&&(t.prototype=Object.create(r.prototype)),t.prototype.constructor=t}function q(t){return D(t)?t:L(t)}S(P,q);function P(t){return T(t)?t:b(t)}S(tt,q);function tt(t){return G(t)?t:O(t)}S($,q);function $(t){return D(t)&&!ir(t)?t:ot(t)}function D(t){return!!(t&&t[Yr])}function T(t){return!!(t&&t[Jr])}function G(t){return!!(t&&t[Hr])}function ir(t){return T(t)||G(t)}function nt(t){return!!(t&&t[St])}q.isIterable=D,q.isKeyed=T,q.isIndexed=G,q.isAssociative=ir,q.isOrdered=nt,q.Keyed=P,q.Indexed=tt,q.Set=$;var Yr="@@__IMMUTABLE_ITERABLE__@@",Jr="@@__IMMUTABLE_KEYED__@@",Hr="@@__IMMUTABLE_INDEXED__@@",St="@@__IMMUTABLE_ORDERED__@@",Rt="delete",I=5,X=1<<I,C=X-1,l={},rn={value:!1},Vr={value:!1};function or(t){return t.value=!1,t}function Z(t){t&&(t.value=!0)}function ur(){}function _t(t,r){r=r||0;for(var e=Math.max(0,t.length-r),n=new Array(e),i=0;i<e;i++)n[i]=t[i+r];return n}function sr(t){return t.size===void 0&&(t.size=t.__iterate(Gr)),t.size}function pt(t,r){if(typeof r!="number"){var e=r>>>0;if(""+e!==r||e===4294967295)return NaN;r=e}return r<0?sr(t)+r:r}function Gr(){return!0}function Nt(t,r,e){return(t===0||e!==void 0&&t<=-e)&&(r===void 0||e!==void 0&&r>=e)}function gt(t,r){return Xr(t,r,0)}function Lt(t,r){return Xr(t,r,r)}function Xr(t,r,e){return t===void 0?e:t<0?Math.max(0,r+t):r===void 0?t:Math.min(r,t)}var Dt=0,Q=1,it=2,ar=typeof Symbol=="function"&&Symbol.iterator,Zr="@@iterator",fr=ar||Zr;function m(t){this.next=t}m.prototype.toString=function(){return"[Iterator]"},m.KEYS=Dt,m.VALUES=Q,m.ENTRIES=it,m.prototype.inspect=m.prototype.toSource=function(){return this.toString()},m.prototype[fr]=function(){return this};function w(t,r,e,n){var i=t===0?r:t===1?e:[r,e];return n?n.value=i:n={value:i,done:!1},n}function j(){return{value:void 0,done:!0}}function Qr(t){return!!br(t)}function Jt(t){return t&&typeof t.next=="function"}function kt(t){var r=br(t);return r&&r.call(t)}function br(t){var r=t&&(ar&&t[ar]||t[Zr]);if(typeof r=="function")return r}function xr(t){return t&&typeof t.length=="number"}S(L,q);function L(t){return t==null?Ht():D(t)?t.toSeq():en(t)}L.of=function(){return L(arguments)},L.prototype.toSeq=function(){return this},L.prototype.toString=function(){return this.__toString("Seq {","}")},L.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},L.prototype.__iterate=function(t,r){return ie(this,t,r,!0)},L.prototype.__iterator=function(t,r){return oe(this,t,r,!0)},S(b,L);function b(t){return t==null?Ht().toKeyedSeq():D(t)?T(t)?t.toSeq():t.fromEntrySeq():ee(t)}b.prototype.toKeyedSeq=function(){return this},S(O,L);function O(t){return t==null?Ht():D(t)?T(t)?t.entrySeq():t.toIndexedSeq():cr(t)}O.of=function(){return O(arguments)},O.prototype.toIndexedSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq [","]")},O.prototype.__iterate=function(t,r){return ie(this,t,r,!1)},O.prototype.__iterator=function(t,r){return oe(this,t,r,!1)},S(ot,L);function ot(t){return(t==null?Ht():D(t)?T(t)?t.entrySeq():t:cr(t)).toSetSeq()}ot.of=function(){return ot(arguments)},ot.prototype.toSetSeq=function(){return this},L.isSeq=hr,L.Keyed=b,L.Set=ot,L.Indexed=O;var te="@@__IMMUTABLE_SEQ__@@";L.prototype[te]=!0,S(ut,O);function ut(t){this._array=t,this.size=t.length}ut.prototype.get=function(t,r){return this.has(t)?this._array[pt(this,t)]:r},ut.prototype.__iterate=function(t,r){for(var e=this._array,n=e.length-1,i=0;i<=n;i++)if(t(e[r?n-i:i],i,this)===!1)return i+1;return i},ut.prototype.__iterator=function(t,r){var e=this._array,n=e.length-1,i=0;return new m(function(){return i>n?j():w(t,i,e[r?n-i++:i++])})},S(vt,b);function vt(t){var r=Object.keys(t);this._object=t,this._keys=r,this.size=r.length}vt.prototype.get=function(t,r){return r!==void 0&&!this.has(t)?r:this._object[t]},vt.prototype.has=function(t){return this._object.hasOwnProperty(t)},vt.prototype.__iterate=function(t,r){for(var e=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[r?i-o:o];if(t(e[u],u,this)===!1)return o+1}return o},vt.prototype.__iterator=function(t,r){var e=this._object,n=this._keys,i=n.length-1,o=0;return new m(function(){var u=n[r?i-o:o];return o++>i?j():w(t,u,e[u])})},vt.prototype[St]=!0,S(Kt,O);function Kt(t){this._iterable=t,this.size=t.length||t.size}Kt.prototype.__iterateUncached=function(t,r){if(r)return this.cacheResult().__iterate(t,r);var e=this._iterable,n=kt(e),i=0;if(Jt(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},Kt.prototype.__iteratorUncached=function(t,r){if(r)return this.cacheResult().__iterator(t,r);var e=this._iterable,n=kt(e);if(!Jt(n))return new m(j);var i=0;return new m(function(){var o=n.next();return o.done?o:w(t,i++,o.value)})},S(Ut,O);function Ut(t){this._iterator=t,this._iteratorCache=[]}Ut.prototype.__iterateUncached=function(t,r){if(r)return this.cacheResult().__iterate(t,r);for(var e=this._iterator,n=this._iteratorCache,i=0;i<n.length;)if(t(n[i],i++,this)===!1)return i;for(var o;!(o=e.next()).done;){var u=o.value;if(n[i]=u,t(u,i++,this)===!1)break}return i},Ut.prototype.__iteratorUncached=function(t,r){if(r)return this.cacheResult().__iterator(t,r);var e=this._iterator,n=this._iteratorCache,i=0;return new m(function(){if(i>=n.length){var o=e.next();if(o.done)return o;n[i]=o.value}return w(t,i,n[i++])})};function hr(t){return!!(t&&t[te])}var re;function Ht(){return re||(re=new ut([]))}function ee(t){var r=Array.isArray(t)?new ut(t).fromEntrySeq():Jt(t)?new Ut(t).fromEntrySeq():Qr(t)?new Kt(t).fromEntrySeq():typeof t=="object"?new vt(t):void 0;if(!r)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return r}function cr(t){var r=ne(t);if(!r)throw new TypeError("Expected Array or iterable object of values: "+t);return r}function en(t){var r=ne(t)||typeof t=="object"&&new vt(t);if(!r)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return r}function ne(t){return xr(t)?new ut(t):Jt(t)?new Ut(t):Qr(t)?new Kt(t):void 0}function ie(t,r,e,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[e?o-u:u];if(r(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(r,e)}function oe(t,r,e,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new m(function(){var s=i[e?o-u:u];return u++>o?j():w(r,n?s[0]:u-1,s[1])})}return t.__iteratorUncached(r,e)}function _r(t,r){return r?pr(r,t,"",{"":t}):vr(t)}function pr(t,r,e,n){return Array.isArray(r)?t.call(n,e,O(r).map(function(i,o){return pr(t,i,o,r)})):ue(r)?t.call(n,e,b(r).map(function(i,o){return pr(t,i,o,r)})):r}function vr(t){return Array.isArray(t)?O(t).map(vr).toList():ue(t)?b(t).map(vr).toMap():t}function ue(t){return t&&(t.constructor===Object||t.constructor===void 0)}function R(t,r){if(t===r||t!==t&&r!==r)return!0;if(!t||!r)return!1;if(typeof t.valueOf=="function"&&typeof r.valueOf=="function"){if(t=t.valueOf(),r=r.valueOf(),t===r||t!==t&&r!==r)return!0;if(!t||!r)return!1}return!!(typeof t.equals=="function"&&typeof r.equals=="function"&&t.equals(r))}function yr(t,r){if(t===r)return!0;if(!D(r)||t.size!==void 0&&r.size!==void 0&&t.size!==r.size||t.__hash!==void 0&&r.__hash!==void 0&&t.__hash!==r.__hash||T(t)!==T(r)||G(t)!==G(r)||nt(t)!==nt(r))return!1;if(t.size===0&&r.size===0)return!0;var e=!ir(t);if(nt(t)){var n=t.entries();return r.every(function(a,f){var h=n.next().value;return h&&R(h[1],a)&&(e||R(h[0],f))})&&n.next().done}var i=!1;if(t.size===void 0)if(r.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{i=!0;var o=t;t=r,r=o}var u=!0,s=r.__iterate(function(a,f){if(e?!t.has(a):i?!R(a,t.get(f,l)):!R(t.get(f,l),a))return u=!1,!1});return u&&t.size===s}S(U,O);function U(t,r){if(!(this instanceof U))return new U(t,r);if(this._value=t,this.size=r===void 0?1/0:Math.max(0,r),this.size===0){if(lr)return lr;lr=this}}U.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},U.prototype.get=function(t,r){return this.has(t)?this._value:r},U.prototype.includes=function(t){return R(this._value,t)},U.prototype.slice=function(t,r){var e=this.size;return Nt(t,r,e)?this:new U(this._value,Lt(r,e)-gt(t,e))},U.prototype.reverse=function(){return this},U.prototype.indexOf=function(t){return R(this._value,t)?0:-1},U.prototype.lastIndexOf=function(t){return R(this._value,t)?this.size:-1},U.prototype.__iterate=function(t,r){for(var e=0;e<this.size;e++)if(t(this._value,e,this)===!1)return e+1;return e},U.prototype.__iterator=function(t,r){var e=this,n=0;return new m(function(){return n<e.size?w(t,n++,e._value):j()})},U.prototype.equals=function(t){return t instanceof U?R(this._value,t._value):yr(t)};var lr;function Vt(t,r){if(!t)throw new Error(r)}S(k,O);function k(t,r,e){if(!(this instanceof k))return new k(t,r,e);if(Vt(e!==0,"Cannot step a Range by 0"),t=t||0,r===void 0&&(r=1/0),e=e===void 0?1:Math.abs(e),r<t&&(e=-e),this._start=t,this._end=r,this._step=e,this.size=Math.max(0,Math.ceil((r-t)/e-1)+1),this.size===0){if(dr)return dr;dr=this}}k.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},k.prototype.get=function(t,r){return this.has(t)?this._start+pt(this,t)*this._step:r},k.prototype.includes=function(t){var r=(t-this._start)/this._step;return r>=0&&r<this.size&&r===Math.floor(r)},k.prototype.slice=function(t,r){return Nt(t,r,this.size)?this:(t=gt(t,this.size),r=Lt(r,this.size),r<=t?new k(0,0):new k(this.get(t,this._end),this.get(r,this._end),this._step))},k.prototype.indexOf=function(t){var r=t-this._start;if(r%this._step===0){var e=r/this._step;if(e>=0&&e<this.size)return e}return-1},k.prototype.lastIndexOf=function(t){return this.indexOf(t)},k.prototype.__iterate=function(t,r){for(var e=this.size-1,n=this._step,i=r?this._start+e*n:this._start,o=0;o<=e;o++){if(t(i,o,this)===!1)return o+1;i+=r?-n:n}return o},k.prototype.__iterator=function(t,r){var e=this.size-1,n=this._step,i=r?this._start+e*n:this._start,o=0;return new m(function(){var u=i;return i+=r?-n:n,o>e?j():w(t,o++,u)})},k.prototype.equals=function(t){return t instanceof k?this._start===t._start&&this._end===t._end&&this._step===t._step:yr(this,t)};var dr;S(yt,q);function yt(){throw TypeError("Abstract")}S(Pt,yt);function Pt(){}S(wt,yt);function wt(){}S(Gt,yt);function Gt(){}yt.Keyed=Pt,yt.Indexed=wt,yt.Set=Gt;var Ct=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(r,e){r=r|0,e=e|0;var n=r&65535,i=e&65535;return n*i+((r>>>16)*i+n*(e>>>16)<<16>>>0)|0};function mr(t){return t>>>1&1073741824|t&3221225471}function Y(t){if(t===!1||t===null||t===void 0||typeof t.valueOf=="function"&&(t=t.valueOf(),t===!1||t===null||t===void 0))return 0;if(t===!0)return 1;var r=typeof t;if(r==="number"){if(t!==t||t===1/0)return 0;var e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)t/=4294967295,e^=t;return mr(e)}if(r==="string")return t.length>sn?nn(t):Sr(t);if(typeof t.hashCode=="function")return t.hashCode();if(r==="object")return on(t);if(typeof t.toString=="function")return Sr(t.toString());throw new Error("Value type "+r+" cannot be hashed.")}function nn(t){var r=zr[t];return r===void 0&&(r=Sr(t),Er===an&&(Er=0,zr={}),Er++,zr[t]=r),r}function Sr(t){for(var r=0,e=0;e<t.length;e++)r=31*r+t.charCodeAt(e)|0;return mr(r)}function on(t){var r;if(gr&&(r=wr.get(t),r!==void 0)||(r=t[mt],r!==void 0)||!ae&&(r=t.propertyIsEnumerable&&t.propertyIsEnumerable[mt],r!==void 0||(r=un(t),r!==void 0)))return r;if(r=++Ir,Ir&1073741824&&(Ir=0),gr)wr.set(t,r);else{if(se!==void 0&&se(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(ae)Object.defineProperty(t,mt,{enumerable:!1,configurable:!1,writable:!1,value:r});else if(t.propertyIsEnumerable!==void 0&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[mt]=r;else if(t.nodeType!==void 0)t[mt]=r;else throw new Error("Unable to set a non-enumerable property on object.")}return r}var se=Object.isExtensible,ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function un(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var gr=typeof WeakMap=="function",wr;gr&&(wr=new WeakMap);var Ir=0,mt="__immutablehash__";typeof Symbol=="function"&&(mt=Symbol(mt));var sn=16,an=255,Er=0,zr={};function J(t){Vt(t!==1/0,"Cannot perform this action with an infinite size.")}S(d,Pt);function d(t){return t==null?rt():Mr(t)&&!nt(t)?t:rt().withMutations(function(r){var e=P(t);J(e.size),e.forEach(function(n,i){return r.set(i,n)})})}d.of=function(){var t=B.call(arguments,0);return rt().withMutations(function(r){for(var e=0;e<t.length;e+=2){if(e+1>=t.length)throw new Error("Missing value for key: "+t[e]);r.set(t[e],t[e+1])}})},d.prototype.toString=function(){return this.__toString("Map {","}")},d.prototype.get=function(t,r){return this._root?this._root.get(0,void 0,t,r):r},d.prototype.set=function(t,r){return _e(this,t,r)},d.prototype.setIn=function(t,r){return this.updateIn(t,l,function(){return r})},d.prototype.remove=function(t){return _e(this,t,l)},d.prototype.deleteIn=function(t){return this.updateIn(t,function(){return l})},d.prototype.update=function(t,r,e){return arguments.length===1?t(this):this.updateIn([t],r,e)},d.prototype.updateIn=function(t,r,e){e||(e=r,r=void 0);var n=de(this,Ce(t),r,e);return n===l?void 0:n},d.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},d.prototype.merge=function(){return Xt(this,void 0,arguments)},d.prototype.mergeWith=function(t){var r=B.call(arguments,1);return Xt(this,t,r)},d.prototype.mergeIn=function(t){var r=B.call(arguments,1);return this.updateIn(t,rt(),function(e){return typeof e.merge=="function"?e.merge.apply(e,r):r[r.length-1]})},d.prototype.mergeDeep=function(){return Xt(this,ve,arguments)},d.prototype.mergeDeepWith=function(t){var r=B.call(arguments,1);return Xt(this,ye(t),r)},d.prototype.mergeDeepIn=function(t){var r=B.call(arguments,1);return this.updateIn(t,rt(),function(e){return typeof e.mergeDeep=="function"?e.mergeDeep.apply(e,r):r[r.length-1]})},d.prototype.sort=function(t){return A(At(this,t))},d.prototype.sortBy=function(t,r){return A(At(this,r,t))},d.prototype.withMutations=function(t){var r=this.asMutable();return t(r),r.wasAltered()?r.__ensureOwner(this.__ownerID):this},d.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new ur)},d.prototype.asImmutable=function(){return this.__ensureOwner()},d.prototype.wasAltered=function(){return this.__altered},d.prototype.__iterator=function(t,r){return new qr(this,t,r)},d.prototype.__iterate=function(t,r){var e=this,n=0;return this._root&&this._root.iterate(function(i){return n++,t(i[1],i[0],e)},r),n},d.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ar(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)};function Mr(t){return!!(t&&t[fe])}d.isMap=Mr;var fe="@@__IMMUTABLE_MAP__@@",y=d.prototype;y[fe]=!0,y[Rt]=y.remove,y.removeIn=y.deleteIn;function Ft(t,r){this.ownerID=t,this.entries=r}Ft.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(R(e,i[o][0]))return i[o][1];return n},Ft.prototype.update=function(t,r,e,n,i,o,u){for(var s=i===l,a=this.entries,f=0,h=a.length;f<h&&!R(n,a[f][0]);f++);var c=f<h;if(c?a[f][1]===i:s)return this;if(Z(u),(s||!c)&&Z(o),!(s&&a.length===1)){if(!c&&!s&&a.length>=vn)return fn(t,a,n,i);var _=t&&t===this.ownerID,p=_?a:_t(a);return c?s?f===h-1?p.pop():p[f]=p.pop():p[f]=[n,i]:p.push([n,i]),_?(this.entries=p,this):new Ft(t,p)}};function It(t,r,e){this.ownerID=t,this.bitmap=r,this.nodes=e}It.prototype.get=function(t,r,e,n){r===void 0&&(r=Y(e));var i=1<<((t===0?r:r>>>t)&C),o=this.bitmap;return o&i?this.nodes[me(o&i-1)].get(t+I,r,e,n):n},It.prototype.update=function(t,r,e,n,i,o,u){e===void 0&&(e=Y(n));var s=(r===0?e:e>>>r)&C,a=1<<s,f=this.bitmap,h=(f&a)!==0;if(!h&&i===l)return this;var c=me(f&a-1),_=this.nodes,p=h?_[c]:void 0,v=Tr(p,t,r+I,e,n,i,o,u);if(v===p)return this;if(!h&&v&&_.length>=yn)return cn(t,_,f,s,v);if(h&&!v&&_.length===2&&pe(_[c^1]))return _[c^1];if(h&&v&&_.length===1&&pe(v))return v;var M=t&&t===this.ownerID,et=h?v?f:f^a:f|a,ht=h?v?Se(_,c,v,M):pn(_,c,M):_n(_,c,v,M);return M?(this.bitmap=et,this.nodes=ht,this):new It(t,et,ht)};function Wt(t,r,e){this.ownerID=t,this.count=r,this.nodes=e}Wt.prototype.get=function(t,r,e,n){r===void 0&&(r=Y(e));var i=(t===0?r:r>>>t)&C,o=this.nodes[i];return o?o.get(t+I,r,e,n):n},Wt.prototype.update=function(t,r,e,n,i,o,u){e===void 0&&(e=Y(n));var s=(r===0?e:e>>>r)&C,a=i===l,f=this.nodes,h=f[s];if(a&&!h)return this;var c=Tr(h,t,r+I,e,n,i,o,u);if(c===h)return this;var _=this.count;if(!h)_++;else if(!c&&(_--,_<ln))return hn(t,f,_,s);var p=t&&t===this.ownerID,v=Se(f,s,c,p);return p?(this.count=_,this.nodes=v,this):new Wt(t,_,v)};function Et(t,r,e){this.ownerID=t,this.keyHash=r,this.entries=e}Et.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(R(e,i[o][0]))return i[o][1];return n},Et.prototype.update=function(t,r,e,n,i,o,u){e===void 0&&(e=Y(n));var s=i===l;if(e!==this.keyHash)return s?this:(Z(u),Z(o),Rr(this,t,r,e,[n,i]));for(var a=this.entries,f=0,h=a.length;f<h&&!R(n,a[f][0]);f++);var c=f<h;if(c?a[f][1]===i:s)return this;if(Z(u),(s||!c)&&Z(o),s&&h===2)return new ct(t,this.keyHash,a[f^1]);var _=t&&t===this.ownerID,p=_?a:_t(a);return c?s?f===h-1?p.pop():p[f]=p.pop():p[f]=[n,i]:p.push([n,i]),_?(this.entries=p,this):new Et(t,this.keyHash,p)};function ct(t,r,e){this.ownerID=t,this.keyHash=r,this.entry=e}ct.prototype.get=function(t,r,e,n){return R(e,this.entry[0])?this.entry[1]:n},ct.prototype.update=function(t,r,e,n,i,o,u){var s=i===l,a=R(n,this.entry[0]);if(a?i===this.entry[1]:s)return this;if(Z(u),s){Z(o);return}return a?t&&t===this.ownerID?(this.entry[1]=i,this):new ct(t,this.keyHash,[n,i]):(Z(o),Rr(this,t,r,Y(n),[n,i]))},Ft.prototype.iterate=Et.prototype.iterate=function(t,r){for(var e=this.entries,n=0,i=e.length-1;n<=i;n++)if(t(e[r?i-n:n])===!1)return!1},It.prototype.iterate=Wt.prototype.iterate=function(t,r){for(var e=this.nodes,n=0,i=e.length-1;n<=i;n++){var o=e[r?i-n:n];if(o&&o.iterate(t,r)===!1)return!1}},ct.prototype.iterate=function(t,r){return t(this.entry)},S(qr,m);function qr(t,r,e){this._type=r,this._reverse=e,this._stack=t._root&&he(t._root)}qr.prototype.next=function(){for(var t=this._type,r=this._stack;r;){var e=r.node,n=r.index++,i;if(e.entry){if(n===0)return Or(t,e.entry)}else if(e.entries){if(i=e.entries.length-1,n<=i)return Or(t,e.entries[this._reverse?i-n:n])}else if(i=e.nodes.length-1,n<=i){var o=e.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Or(t,o.entry);r=this._stack=he(o,r)}continue}r=this._stack=this._stack.__prev}return j()};function Or(t,r){return w(t,r[0],r[1])}function he(t,r){return{node:t,index:0,__prev:r}}function Ar(t,r,e,n){var i=Object.create(y);return i.size=t,i._root=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}var ce;function rt(){return ce||(ce=Ar(0))}function _e(t,r,e){var n,i;if(t._root){var o=or(rn),u=or(Vr);if(n=Tr(t._root,t.__ownerID,0,void 0,r,e,o,u),!u.value)return t;i=t.size+(o.value?e===l?-1:1:0)}else{if(e===l)return t;i=1,n=new Ft(t.__ownerID,[[r,e]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Ar(i,n):rt()}function Tr(t,r,e,n,i,o,u,s){return t?t.update(r,e,n,i,o,u,s):o===l?t:(Z(s),Z(u),new ct(r,n,[i,o]))}function pe(t){return t.constructor===ct||t.constructor===Et}function Rr(t,r,e,n,i){if(t.keyHash===n)return new Et(r,n,[t.entry,i]);var o=(e===0?t.keyHash:t.keyHash>>>e)&C,u=(e===0?n:n>>>e)&C,s,a=o===u?[Rr(t,r,e+I,n,i)]:(s=new ct(r,n,i),o<u?[t,s]:[s,t]);return new It(r,1<<o|1<<u,a)}function fn(t,r,e,n){t||(t=new ur);for(var i=new ct(t,Y(e),[e,n]),o=0;o<r.length;o++){var u=r[o];i=i.update(t,0,void 0,u[0],u[1])}return i}function hn(t,r,e,n){for(var i=0,o=0,u=new Array(e),s=0,a=1,f=r.length;s<f;s++,a<<=1){var h=r[s];h!==void 0&&s!==n&&(i|=a,u[o++]=h)}return new It(t,i,u)}function cn(t,r,e,n,i){for(var o=0,u=new Array(X),s=0;e!==0;s++,e>>>=1)u[s]=e&1?r[o++]:void 0;return u[n]=i,new Wt(t,o+1,u)}function Xt(t,r,e){for(var n=[],i=0;i<e.length;i++){var o=e[i],u=P(o);D(o)||(u=u.map(function(s){return _r(s)})),n.push(u)}return le(t,r,n)}function ve(t,r,e){return t&&t.mergeDeep&&D(r)?t.mergeDeep(r):R(t,r)?t:r}function ye(t){return function(r,e,n){if(r&&r.mergeDeepWith&&D(e))return r.mergeDeepWith(t,e);var i=t(r,e,n);return R(r,i)?r:i}}function le(t,r,e){return e=e.filter(function(n){return n.size!==0}),e.length===0?t:t.size===0&&!t.__ownerID&&e.length===1?t.constructor(e[0]):t.withMutations(function(n){for(var i=r?function(u,s){n.update(s,l,function(a){return a===l?u:r(a,u,s)})}:function(u,s){n.set(s,u)},o=0;o<e.length;o++)e[o].forEach(i)})}function de(t,r,e,n){var i=t===l,o=r.next();if(o.done){var u=i?e:t,s=n(u);return s===u?t:s}Vt(i||t&&t.set,"invalid keyPath");var a=o.value,f=i?l:t.get(a,l),h=de(f,r,e,n);return h===f?t:h===l?t.remove(a):(i?rt():t).set(a,h)}function me(t){return t=t-(t>>1&1431655765),t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t=t+(t>>8),t=t+(t>>16),t&127}function Se(t,r,e,n){var i=n?t:_t(t);return i[r]=e,i}function _n(t,r,e,n){var i=t.length+1;if(n&&r+1===i)return t[r]=e,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===r?(o[s]=e,u=-1):o[s]=t[s+u];return o}function pn(t,r,e){var n=t.length-1;if(e&&r===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===r&&(o=1),i[u]=t[u+o];return i}var vn=X/4,yn=X/2,ln=X/4;S(E,wt);function E(t){var r=Nr();if(t==null)return r;if(ge(t))return t;var e=tt(t),n=e.size;return n===0?r:(J(n),n>0&&n<X?jt(0,n,I,null,new lt(e.toArray())):r.withMutations(function(i){i.setSize(n),e.forEach(function(o,u){return i.set(u,o)})}))}E.of=function(){return this(arguments)},E.prototype.toString=function(){return this.__toString("List [","]")},E.prototype.get=function(t,r){if(t=pt(this,t),t>=0&&t<this.size){t+=this._origin;var e=ze(this,t);return e&&e.array[t&C]}return r},E.prototype.set=function(t,r){return dn(this,t,r)},E.prototype.remove=function(t){return this.has(t)?t===0?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},E.prototype.insert=function(t,r){return this.splice(t,0,r)},E.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=I,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Nr()},E.prototype.push=function(){var t=arguments,r=this.size;return this.withMutations(function(e){dt(e,0,r+t.length);for(var n=0;n<t.length;n++)e.set(r+n,t[n])})},E.prototype.pop=function(){return dt(this,0,-1)},E.prototype.unshift=function(){var t=arguments;return this.withMutations(function(r){dt(r,-t.length);for(var e=0;e<t.length;e++)r.set(e,t[e])})},E.prototype.shift=function(){return dt(this,1)},E.prototype.merge=function(){return Zt(this,void 0,arguments)},E.prototype.mergeWith=function(t){var r=B.call(arguments,1);return Zt(this,t,r)},E.prototype.mergeDeep=function(){return Zt(this,ve,arguments)},E.prototype.mergeDeepWith=function(t){var r=B.call(arguments,1);return Zt(this,ye(t),r)},E.prototype.setSize=function(t){return dt(this,0,t)},E.prototype.slice=function(t,r){var e=this.size;return Nt(t,r,e)?this:dt(this,gt(t,e),Lt(r,e))},E.prototype.__iterator=function(t,r){var e=0,n=Ie(this,r);return new m(function(){var i=n();return i===$t?j():w(t,e++,i)})},E.prototype.__iterate=function(t,r){for(var e=0,n=Ie(this,r),i;(i=n())!==$t&&t(i,e++,this)!==!1;);return e},E.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?jt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)};function ge(t){return!!(t&&t[we])}E.isList=ge;var we="@@__IMMUTABLE_LIST__@@",F=E.prototype;F[we]=!0,F[Rt]=F.remove,F.setIn=y.setIn,F.deleteIn=F.removeIn=y.removeIn,F.update=y.update,F.updateIn=y.updateIn,F.mergeIn=y.mergeIn,F.mergeDeepIn=y.mergeDeepIn,F.withMutations=y.withMutations,F.asMutable=y.asMutable,F.asImmutable=y.asImmutable,F.wasAltered=y.wasAltered;function lt(t,r){this.array=t,this.ownerID=r}lt.prototype.removeBefore=function(t,r,e){if(e===r?1<<r:this.array.length===0)return this;var n=e>>>r&C;if(n>=this.array.length)return new lt([],t);var i=n===0,o;if(r>0){var u=this.array[n];if(o=u&&u.removeBefore(t,r-I,e),o===u&&i)return this}if(i&&!o)return this;var s=zt(this,t);if(!i)for(var a=0;a<n;a++)s.array[a]=void 0;return o&&(s.array[n]=o),s},lt.prototype.removeAfter=function(t,r,e){if(e===(r?1<<r:0)||this.array.length===0)return this;var n=e-1>>>r&C;if(n>=this.array.length)return this;var i;if(r>0){var o=this.array[n];if(i=o&&o.removeAfter(t,r-I,e),i===o&&n===this.array.length-1)return this}var u=zt(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var $t={};function Ie(t,r){var e=t._origin,n=t._capacity,i=Bt(n),o=t._tail;return u(t._root,t._level,0);function u(f,h,c){return h===0?s(f,c):a(f,h,c)}function s(f,h){var c=h===i?o&&o.array:f&&f.array,_=h>e?0:e-h,p=n-h;return p>X&&(p=X),function(){if(_===p)return $t;var v=r?--p:_++;return c&&c[v]}}function a(f,h,c){var _,p=f&&f.array,v=c>e?0:e-c>>h,M=(n-c>>h)+1;return M>X&&(M=X),function(){do{if(_){var et=_();if(et!==$t)return et;_=null}if(v===M)return $t;var ht=r?--M:v++;_=u(p&&p[ht],h-I,c+(ht<<h))}while(!0)}}}function jt(t,r,e,n,i,o,u){var s=Object.create(F);return s.size=r-t,s._origin=t,s._capacity=r,s._level=e,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}var Ee;function Nr(){return Ee||(Ee=jt(0,0,I))}function dn(t,r,e){if(r=pt(t,r),r!==r)return t;if(r>=t.size||r<0)return t.withMutations(function(u){r<0?dt(u,r).set(0,e):dt(u,0,r+1).set(r,e)});r+=t._origin;var n=t._tail,i=t._root,o=or(Vr);return r>=Bt(t._capacity)?n=Lr(n,t.__ownerID,0,r,e,o):i=Lr(i,t.__ownerID,t._level,r,e,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):jt(t._origin,t._capacity,t._level,i,n):t}function Lr(t,r,e,n,i,o){var u=n>>>e&C,s=t&&u<t.array.length;if(!s&&i===void 0)return t;var a;if(e>0){var f=t&&t.array[u],h=Lr(f,r,e-I,n,i,o);return h===f?t:(a=zt(t,r),a.array[u]=h,a)}return s&&t.array[u]===i?t:(Z(o),a=zt(t,r),i===void 0&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function zt(t,r){return r&&t&&r===t.ownerID?t:new lt(t?t.array.slice():[],r)}function ze(t,r){if(r>=Bt(t._capacity))return t._tail;if(r<1<<t._level+I){for(var e=t._root,n=t._level;e&&n>0;)e=e.array[r>>>n&C],n-=I;return e}}function dt(t,r,e){r!==void 0&&(r=r|0),e!==void 0&&(e=e|0);var n=t.__ownerID||new ur,i=t._origin,o=t._capacity,u=i+r,s=e===void 0?o:e<0?o+e:i+e;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,f=t._root,h=0;u+h<0;)f=new lt(f&&f.array.length?[void 0,f]:[],n),a+=I,h+=1<<a;h&&(u+=h,i+=h,s+=h,o+=h);for(var c=Bt(o),_=Bt(s);_>=1<<a+I;)f=new lt(f&&f.array.length?[f]:[],n),a+=I;var p=t._tail,v=_<c?ze(t,s-1):_>c?new lt([],n):p;if(p&&_>c&&u<o&&p.array.length){f=zt(f,n);for(var M=f,et=a;et>I;et-=I){var ht=c>>>et&C;M=M.array[ht]=zt(M.array[ht],n)}M.array[c>>>I&C]=p}if(s<o&&(v=v&&v.removeAfter(n,0,s)),u>=_)u-=_,s-=_,a=I,f=null,v=v&&v.removeBefore(n,0,u);else if(u>i||_<c){for(h=0;f;){var nr=u>>>a&C;if(nr!==_>>>a&C)break;nr&&(h+=(1<<a)*nr),a-=I,f=f.array[nr]}f&&u>i&&(f=f.removeBefore(n,a,u-h)),f&&_<c&&(f=f.removeAfter(n,a,_-h)),h&&(u-=h,s-=h)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=f,t._tail=v,t.__hash=void 0,t.__altered=!0,t):jt(u,s,a,f,v)}function Zt(t,r,e){for(var n=[],i=0,o=0;o<e.length;o++){var u=e[o],s=tt(u);s.size>i&&(i=s.size),D(u)||(s=s.map(function(a){return _r(a)})),n.push(s)}return i>t.size&&(t=t.setSize(i)),le(t,r,n)}function Bt(t){return t<X?0:t-1>>>I<<I}S(A,d);function A(t){return t==null?Qt():Me(t)?t:Qt().withMutations(function(r){var e=P(t);J(e.size),e.forEach(function(n,i){return r.set(i,n)})})}A.of=function(){return this(arguments)},A.prototype.toString=function(){return this.__toString("OrderedMap {","}")},A.prototype.get=function(t,r){var e=this._map.get(t);return e!==void 0?this._list.get(e)[1]:r},A.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Qt()},A.prototype.set=function(t,r){return Oe(this,t,r)},A.prototype.remove=function(t){return Oe(this,t,l)},A.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},A.prototype.__iterate=function(t,r){var e=this;return this._list.__iterate(function(n){return n&&t(n[1],n[0],e)},r)},A.prototype.__iterator=function(t,r){return this._list.fromEntrySeq().__iterator(t,r)},A.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._map.__ensureOwner(t),e=this._list.__ensureOwner(t);return t?Dr(r,e,t,this.__hash):(this.__ownerID=t,this._map=r,this._list=e,this)};function Me(t){return Mr(t)&&nt(t)}A.isOrderedMap=Me,A.prototype[St]=!0,A.prototype[Rt]=A.prototype.remove;function Dr(t,r,e,n){var i=Object.create(A.prototype);return i.size=t?t.size:0,i._map=t,i._list=r,i.__ownerID=e,i.__hash=n,i}var qe;function Qt(){return qe||(qe=Dr(rt(),Nr()))}function Oe(t,r,e){var n=t._map,i=t._list,o=n.get(r),u=o!==void 0,s,a;if(e===l){if(!u)return t;i.size>=X&&i.size>=n.size*2?(a=i.filter(function(f,h){return f!==void 0&&o!==h}),s=a.toKeyedSeq().map(function(f){return f[0]}).flip().toMap(),t.__ownerID&&(s.__ownerID=a.__ownerID=t.__ownerID)):(s=n.remove(r),a=o===i.size-1?i.pop():i.set(o,void 0))}else if(u){if(e===i.get(o)[1])return t;s=n,a=i.set(o,[r,e])}else s=n.set(r,i.size),a=i.set(i.size,[r,e]);return t.__ownerID?(t.size=s.size,t._map=s,t._list=a,t.__hash=void 0,t):Dr(s,a)}S(x,b);function x(t,r){this._iter=t,this._useKeys=r,this.size=t.size}x.prototype.get=function(t,r){return this._iter.get(t,r)},x.prototype.has=function(t){return this._iter.has(t)},x.prototype.valueSeq=function(){return this._iter.valueSeq()},x.prototype.reverse=function(){var t=this,r=kr(this,!0);return this._useKeys||(r.valueSeq=function(){return t._iter.toSeq().reverse()}),r},x.prototype.map=function(t,r){var e=this,n=Te(this,t,r);return this._useKeys||(n.valueSeq=function(){return e._iter.toSeq().map(t,r)}),n},x.prototype.__iterate=function(t,r){var e=this,n;return this._iter.__iterate(this._useKeys?function(i,o){return t(i,o,e)}:(n=r?Ke(this):0,function(i){return t(i,r?--n:n++,e)}),r)},x.prototype.__iterator=function(t,r){if(this._useKeys)return this._iter.__iterator(t,r);var e=this._iter.__iterator(Q,r),n=r?Ke(this):0;return new m(function(){var i=e.next();return i.done?i:w(t,r?--n:n++,i.value,i)})},x.prototype[St]=!0,S(Mt,O);function Mt(t){this._iter=t,this.size=t.size}Mt.prototype.includes=function(t){return this._iter.includes(t)},Mt.prototype.__iterate=function(t,r){var e=this,n=0;return this._iter.__iterate(function(i){return t(i,n++,e)},r)},Mt.prototype.__iterator=function(t,r){var e=this._iter.__iterator(Q,r),n=0;return new m(function(){var i=e.next();return i.done?i:w(t,n++,i.value,i)})},S(qt,ot);function qt(t){this._iter=t,this.size=t.size}qt.prototype.has=function(t){return this._iter.includes(t)},qt.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate(function(n){return t(n,n,e)},r)},qt.prototype.__iterator=function(t,r){var e=this._iter.__iterator(Q,r);return new m(function(){var n=e.next();return n.done?n:w(t,n.value,n.value,n)})},S(Ot,b);function Ot(t){this._iter=t,this.size=t.size}Ot.prototype.entrySeq=function(){return this._iter.toSeq()},Ot.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate(function(n){if(n){ke(n);var i=D(n);return t(i?n.get(1):n[1],i?n.get(0):n[0],e)}},r)},Ot.prototype.__iterator=function(t,r){var e=this._iter.__iterator(Q,r);return new m(function(){for(;;){var n=e.next();if(n.done)return n;var i=n.value;if(i){ke(i);var o=D(i);return w(t,o?i.get(0):i[0],o?i.get(1):i[1],n)}}})},Mt.prototype.cacheResult=x.prototype.cacheResult=qt.prototype.cacheResult=Ot.prototype.cacheResult=Pr;function Ae(t){var r=st(t);return r._iter=t,r.size=t.size,r.flip=function(){return t},r.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},r.has=function(e){return t.includes(e)},r.includes=function(e){return t.has(e)},r.cacheResult=Pr,r.__iterateUncached=function(e,n){var i=this;return t.__iterate(function(o,u){return e(u,o,i)!==!1},n)},r.__iteratorUncached=function(e,n){if(e===it){var i=t.__iterator(e,n);return new m(function(){var o=i.next();if(!o.done){var u=o.value[0];o.value[0]=o.value[1],o.value[1]=u}return o})}return t.__iterator(e===Q?Dt:Q,n)},r}function Te(t,r,e){var n=st(t);return n.size=t.size,n.has=function(i){return t.has(i)},n.get=function(i,o){var u=t.get(i,l);return u===l?o:r.call(e,u,i,t)},n.__iterateUncached=function(i,o){var u=this;return t.__iterate(function(s,a,f){return i(r.call(e,s,a,f),a,u)!==!1},o)},n.__iteratorUncached=function(i,o){var u=t.__iterator(it,o);return new m(function(){var s=u.next();if(s.done)return s;var a=s.value,f=a[0];return w(i,f,r.call(e,a[1],f,t),s)})},n}function kr(t,r){var e=st(t);return e._iter=t,e.size=t.size,e.reverse=function(){return t},t.flip&&(e.flip=function(){var n=Ae(t);return n.reverse=function(){return t.flip()},n}),e.get=function(n,i){return t.get(r?n:-1-n,i)},e.has=function(n){return t.has(r?n:-1-n)},e.includes=function(n){return t.includes(n)},e.cacheResult=Pr,e.__iterate=function(n,i){var o=this;return t.__iterate(function(u,s){return n(u,s,o)},!i)},e.__iterator=function(n,i){return t.__iterator(n,!i)},e}function Re(t,r,e,n){var i=st(t);return n&&(i.has=function(o){var u=t.get(o,l);return u!==l&&!!r.call(e,u,o,t)},i.get=function(o,u){var s=t.get(o,l);return s!==l&&r.call(e,s,o,t)?s:u}),i.__iterateUncached=function(o,u){var s=this,a=0;return t.__iterate(function(f,h,c){if(r.call(e,f,h,c))return a++,o(f,n?h:a-1,s)},u),a},i.__iteratorUncached=function(o,u){var s=t.__iterator(it,u),a=0;return new m(function(){for(;;){var f=s.next();if(f.done)return f;var h=f.value,c=h[0],_=h[1];if(r.call(e,_,c,t))return w(o,n?c:a++,_,f)}})},i}function mn(t,r,e){var n=d().asMutable();return t.__iterate(function(i,o){n.update(r.call(e,i,o,t),0,function(u){return u+1})}),n.asImmutable()}function Sn(t,r,e){var n=T(t),i=(nt(t)?A():d()).asMutable();t.__iterate(function(u,s){i.update(r.call(e,u,s,t),function(a){return a=a||[],a.push(n?[s,u]:u),a})});var o=Ue(t);return i.map(function(u){return g(t,o(u))})}function Kr(t,r,e,n){var i=t.size;if(r!==void 0&&(r=r|0),e!==void 0&&(e===1/0?e=i:e=e|0),Nt(r,e,i))return t;var o=gt(r,i),u=Lt(e,i);if(o!==o||u!==u)return Kr(t.toSeq().cacheResult(),r,e,n);var s=u-o,a;s===s&&(a=s<0?0:s);var f=st(t);return f.size=a===0?a:t.size&&a||void 0,!n&&hr(t)&&a>=0&&(f.get=function(h,c){return h=pt(this,h),h>=0&&h<a?t.get(h+o,c):c}),f.__iterateUncached=function(h,c){var _=this;if(a===0)return 0;if(c)return this.cacheResult().__iterate(h,c);var p=0,v=!0,M=0;return t.__iterate(function(et,ht){if(!(v&&(v=p++<o)))return M++,h(et,n?ht:M-1,_)!==!1&&M!==a}),M},f.__iteratorUncached=function(h,c){if(a!==0&&c)return this.cacheResult().__iterator(h,c);var _=a!==0&&t.__iterator(h,c),p=0,v=0;return new m(function(){for(;p++<o;)_.next();if(++v>a)return j();var M=_.next();return n||h===Q?M:h===Dt?w(h,v-1,void 0,M):w(h,v-1,M.value[1],M)})},f}function gn(t,r,e){var n=st(t);return n.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=0;return t.__iterate(function(a,f,h){return r.call(e,a,f,h)&&++s&&i(a,f,u)}),s},n.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(it,o),a=!0;return new m(function(){if(!a)return j();var f=s.next();if(f.done)return f;var h=f.value,c=h[0],_=h[1];return r.call(e,_,c,u)?i===it?f:w(i,c,_,f):(a=!1,j())})},n}function Ne(t,r,e,n){var i=st(t);return i.__iterateUncached=function(o,u){var s=this;if(u)return this.cacheResult().__iterate(o,u);var a=!0,f=0;return t.__iterate(function(h,c,_){if(!(a&&(a=r.call(e,h,c,_))))return f++,o(h,n?c:f-1,s)}),f},i.__iteratorUncached=function(o,u){var s=this;if(u)return this.cacheResult().__iterator(o,u);var a=t.__iterator(it,u),f=!0,h=0;return new m(function(){var c,_,p;do{if(c=a.next(),c.done)return n||o===Q?c:o===Dt?w(o,h++,void 0,c):w(o,h++,c.value[1],c);var v=c.value;_=v[0],p=v[1],f&&(f=r.call(e,p,_,s))}while(f);return o===it?c:w(o,_,p,c)})},i}function wn(t,r){var e=T(t),n=[t].concat(r).map(function(u){return D(u)?e&&(u=P(u)):u=e?ee(u):cr(Array.isArray(u)?u:[u]),u}).filter(function(u){return u.size!==0});if(n.length===0)return t;if(n.length===1){var i=n[0];if(i===t||e&&T(i)||G(t)&&G(i))return i}var o=new ut(n);return e?o=o.toKeyedSeq():G(t)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=n.reduce(function(u,s){if(u!==void 0){var a=s.size;if(a!==void 0)return u+a}},0),o}function Le(t,r,e){var n=st(t);return n.__iterateUncached=function(i,o){var u=0,s=!1;function a(f,h){var c=this;f.__iterate(function(_,p){return(!r||h<r)&&D(_)?a(_,h+1):i(_,e?p:u++,c)===!1&&(s=!0),!s},o)}return a(t,0),u},n.__iteratorUncached=function(i,o){var u=t.__iterator(i,o),s=[],a=0;return new m(function(){for(;u;){var f=u.next();if(f.done!==!1){u=s.pop();continue}var h=f.value;if(i===it&&(h=h[1]),(!r||s.length<r)&&D(h))s.push(u),u=h.__iterator(i,o);else return e?f:w(i,a++,h,f)}return j()})},n}function In(t,r,e){var n=Ue(t);return t.toSeq().map(function(i,o){return n(r.call(e,i,o,t))}).flatten(!0)}function En(t,r){var e=st(t);return e.size=t.size&&t.size*2-1,e.__iterateUncached=function(n,i){var o=this,u=0;return t.__iterate(function(s,a){return(!u||n(r,u++,o)!==!1)&&n(s,u++,o)!==!1},i),u},e.__iteratorUncached=function(n,i){var o=t.__iterator(Q,i),u=0,s;return new m(function(){return(!s||u%2)&&(s=o.next(),s.done)?s:u%2?w(n,u++,r):w(n,u++,s.value,s)})},e}function At(t,r,e){r||(r=Pe);var n=T(t),i=0,o=t.toSeq().map(function(u,s){return[s,u,i++,e?e(u,s,t):u]}).toArray();return o.sort(function(u,s){return r(u[3],s[3])||u[2]-s[2]}).forEach(n?function(u,s){o[s].length=2}:function(u,s){o[s]=u[1]}),n?b(o):G(t)?O(o):ot(o)}function bt(t,r,e){if(r||(r=Pe),e){var n=t.toSeq().map(function(i,o){return[i,e(i,o,t)]}).reduce(function(i,o){return De(r,i[1],o[1])?o:i});return n&&n[0]}else return t.reduce(function(i,o){return De(r,i,o)?o:i})}function De(t,r,e){var n=t(e,r);return n===0&&e!==r&&(e==null||e!==e)||n>0}function Ur(t,r,e){var n=st(t);return n.size=new ut(e).map(function(i){return i.size}).min(),n.__iterate=function(i,o){for(var u=this.__iterator(Q,o),s,a=0;!(s=u.next()).done&&i(s.value,a++,this)!==!1;);return a},n.__iteratorUncached=function(i,o){var u=e.map(function(f){return f=q(f),kt(o?f.reverse():f)}),s=0,a=!1;return new m(function(){var f;return a||(f=u.map(function(h){return h.next()}),a=f.some(function(h){return h.done})),a?j():w(i,s++,r.apply(null,f.map(function(h){return h.value})))})},n}function g(t,r){return hr(t)?r:t.constructor(r)}function ke(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ke(t){return J(t.size),sr(t)}function Ue(t){return T(t)?P:G(t)?tt:$}function st(t){return Object.create((T(t)?b:G(t)?O:ot).prototype)}function Pr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):L.prototype.cacheResult.call(this)}function Pe(t,r){return t>r?1:t<r?-1:0}function Ce(t){var r=kt(t);if(!r){if(!xr(t))throw new TypeError("Expected iterable or array-like: "+t);r=kt(q(t))}return r}S(H,Pt);function H(t,r){var e,n=function(u){if(u instanceof n)return u;if(!(this instanceof n))return new n(u);if(!e){e=!0;var s=Object.keys(t);zn(i,s),i.size=s.length,i._name=r,i._keys=s,i._defaultValues=t}this._map=d(u)},i=n.prototype=Object.create(K);return i.constructor=n,n}H.prototype.toString=function(){return this.__toString(Fe(this)+" {","}")},H.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},H.prototype.get=function(t,r){if(!this.has(t))return r;var e=this._defaultValues[t];return this._map?this._map.get(t,e):e},H.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=xt(this,rt()))},H.prototype.set=function(t,r){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Fe(this));if(this._map&&!this._map.has(t)){var e=this._defaultValues[t];if(r===e)return this}var n=this._map&&this._map.set(t,r);return this.__ownerID||n===this._map?this:xt(this,n)},H.prototype.remove=function(t){if(!this.has(t))return this;var r=this._map&&this._map.remove(t);return this.__ownerID||r===this._map?this:xt(this,r)},H.prototype.wasAltered=function(){return this._map.wasAltered()},H.prototype.__iterator=function(t,r){var e=this;return P(this._defaultValues).map(function(n,i){return e.get(i)}).__iterator(t,r)},H.prototype.__iterate=function(t,r){var e=this;return P(this._defaultValues).map(function(n,i){return e.get(i)}).__iterate(t,r)},H.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._map&&this._map.__ensureOwner(t);return t?xt(this,r,t):(this.__ownerID=t,this._map=r,this)};var K=H.prototype;K[Rt]=K.remove,K.deleteIn=K.removeIn=y.removeIn,K.merge=y.merge,K.mergeWith=y.mergeWith,K.mergeIn=y.mergeIn,K.mergeDeep=y.mergeDeep,K.mergeDeepWith=y.mergeDeepWith,K.mergeDeepIn=y.mergeDeepIn,K.setIn=y.setIn,K.update=y.update,K.updateIn=y.updateIn,K.withMutations=y.withMutations,K.asMutable=y.asMutable,K.asImmutable=y.asImmutable;function xt(t,r,e){var n=Object.create(Object.getPrototypeOf(t));return n._map=r,n.__ownerID=e,n}function Fe(t){return t._name||t.constructor.name||"Record"}function zn(t,r){try{r.forEach(Mn.bind(void 0,t))}catch{}}function Mn(t,r){Object.defineProperty(t,r,{get:function(){return this.get(r)},set:function(e){Vt(this.__ownerID,"Cannot set on an immutable record."),this.set(r,e)}})}S(z,Gt);function z(t){return t==null?Wr():Cr(t)&&!nt(t)?t:Wr().withMutations(function(r){var e=$(t);J(e.size),e.forEach(function(n){return r.add(n)})})}z.of=function(){return this(arguments)},z.fromKeys=function(t){return this(P(t).keySeq())},z.prototype.toString=function(){return this.__toString("Set {","}")},z.prototype.has=function(t){return this._map.has(t)},z.prototype.add=function(t){return Fr(this,this._map.set(t,!0))},z.prototype.remove=function(t){return Fr(this,this._map.remove(t))},z.prototype.clear=function(){return Fr(this,this._map.clear())},z.prototype.union=function(){var t=B.call(arguments,0);return t=t.filter(function(r){return r.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(r){for(var e=0;e<t.length;e++)$(t[e]).forEach(function(n){return r.add(n)})})},z.prototype.intersect=function(){var t=B.call(arguments,0);if(t.length===0)return this;t=t.map(function(e){return $(e)});var r=this;return this.withMutations(function(e){r.forEach(function(n){t.every(function(i){return i.includes(n)})||e.remove(n)})})},z.prototype.subtract=function(){var t=B.call(arguments,0);if(t.length===0)return this;t=t.map(function(e){return $(e)});var r=this;return this.withMutations(function(e){r.forEach(function(n){t.some(function(i){return i.includes(n)})&&e.remove(n)})})},z.prototype.merge=function(){return this.union.apply(this,arguments)},z.prototype.mergeWith=function(t){var r=B.call(arguments,1);return this.union.apply(this,r)},z.prototype.sort=function(t){return at(At(this,t))},z.prototype.sortBy=function(t,r){return at(At(this,r,t))},z.prototype.wasAltered=function(){return this._map.wasAltered()},z.prototype.__iterate=function(t,r){var e=this;return this._map.__iterate(function(n,i){return t(i,i,e)},r)},z.prototype.__iterator=function(t,r){return this._map.map(function(e,n){return n}).__iterator(t,r)},z.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._map.__ensureOwner(t);return t?this.__make(r,t):(this.__ownerID=t,this._map=r,this)};function Cr(t){return!!(t&&t[We])}z.isSet=Cr;var We="@@__IMMUTABLE_SET__@@",V=z.prototype;V[We]=!0,V[Rt]=V.remove,V.mergeDeep=V.merge,V.mergeDeepWith=V.mergeWith,V.withMutations=y.withMutations,V.asMutable=y.asMutable,V.asImmutable=y.asImmutable,V.__empty=Wr,V.__make=$e;function Fr(t,r){return t.__ownerID?(t.size=r.size,t._map=r,t):r===t._map?t:r.size===0?t.__empty():t.__make(r)}function $e(t,r){var e=Object.create(V);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}var je;function Wr(){return je||(je=$e(rt()))}S(at,z);function at(t){return t==null?$r():Be(t)?t:$r().withMutations(function(r){var e=$(t);J(e.size),e.forEach(function(n){return r.add(n)})})}at.of=function(){return this(arguments)},at.fromKeys=function(t){return this(P(t).keySeq())},at.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Be(t){return Cr(t)&&nt(t)}at.isOrderedSet=Be;var tr=at.prototype;tr[St]=!0,tr.__empty=$r,tr.__make=Ye;function Ye(t,r){var e=Object.create(tr);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}var Je;function $r(){return Je||(Je=Ye(Qt()))}S(N,wt);function N(t){return t==null?jr():He(t)?t:jr().unshiftAll(t)}N.of=function(){return this(arguments)},N.prototype.toString=function(){return this.__toString("Stack [","]")},N.prototype.get=function(t,r){var e=this._head;for(t=pt(this,t);e&&t--;)e=e.next;return e?e.value:r},N.prototype.peek=function(){return this._head&&this._head.value},N.prototype.push=function(){if(arguments.length===0)return this;for(var t=this.size+arguments.length,r=this._head,e=arguments.length-1;e>=0;e--)r={value:arguments[e],next:r};return this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):Yt(t,r)},N.prototype.pushAll=function(t){if(t=tt(t),t.size===0)return this;J(t.size);var r=this.size,e=this._head;return t.reverse().forEach(function(n){r++,e={value:n,next:e}}),this.__ownerID?(this.size=r,this._head=e,this.__hash=void 0,this.__altered=!0,this):Yt(r,e)},N.prototype.pop=function(){return this.slice(1)},N.prototype.unshift=function(){return this.push.apply(this,arguments)},N.prototype.unshiftAll=function(t){return this.pushAll(t)},N.prototype.shift=function(){return this.pop.apply(this,arguments)},N.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):jr()},N.prototype.slice=function(t,r){if(Nt(t,r,this.size))return this;var e=gt(t,this.size),n=Lt(r,this.size);if(n!==this.size)return wt.prototype.slice.call(this,t,r);for(var i=this.size-e,o=this._head;e--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Yt(i,o)},N.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Yt(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},N.prototype.__iterate=function(t,r){if(r)return this.reverse().__iterate(t);for(var e=0,n=this._head;n&&t(n.value,e++,this)!==!1;)n=n.next;return e},N.prototype.__iterator=function(t,r){if(r)return this.reverse().__iterator(t);var e=0,n=this._head;return new m(function(){if(n){var i=n.value;return n=n.next,w(t,e++,i)}return j()})};function He(t){return!!(t&&t[Ve])}N.isStack=He;var Ve="@@__IMMUTABLE_STACK__@@",Tt=N.prototype;Tt[Ve]=!0,Tt.withMutations=y.withMutations,Tt.asMutable=y.asMutable,Tt.asImmutable=y.asImmutable,Tt.wasAltered=y.wasAltered;function Yt(t,r,e,n){var i=Object.create(Tt);return i.size=t,i._head=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}var Ge;function jr(){return Ge||(Ge=Yt(0))}function ft(t,r){var e=function(n){t.prototype[n]=r[n]};return Object.keys(r).forEach(e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(r).forEach(e),t}q.Iterator=m,ft(q,{toArray:function(){J(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(r,e){t[e]=r}),t},toIndexedSeq:function(){return new Mt(this)},toJS:function(){return this.toSeq().map(function(t){return t&&typeof t.toJS=="function"?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&typeof t.toJSON=="function"?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new x(this,!0)},toMap:function(){return d(this.toKeyedSeq())},toObject:function(){J(this.size);var t={};return this.__iterate(function(r,e){t[e]=r}),t},toOrderedMap:function(){return A(this.toKeyedSeq())},toOrderedSet:function(){return at(T(this)?this.valueSeq():this)},toSet:function(){return z(T(this)?this.valueSeq():this)},toSetSeq:function(){return new qt(this)},toSeq:function(){return G(this)?this.toIndexedSeq():T(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return N(T(this)?this.valueSeq():this)},toList:function(){return E(T(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,r){return this.size===0?t+r:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+r},concat:function(){var t=B.call(arguments,0);return g(this,wn(this,t))},includes:function(t){return this.some(function(r){return R(r,t)})},entries:function(){return this.__iterator(it)},every:function(t,r){J(this.size);var e=!0;return this.__iterate(function(n,i,o){if(!t.call(r,n,i,o))return e=!1,!1}),e},filter:function(t,r){return g(this,Re(this,t,r,!0))},find:function(t,r,e){var n=this.findEntry(t,r);return n?n[1]:e},forEach:function(t,r){return J(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){J(this.size),t=t!==void 0?""+t:",";var r="",e=!0;return this.__iterate(function(n){e?e=!1:r+=t,r+=n!=null?n.toString():""}),r},keys:function(){return this.__iterator(Dt)},map:function(t,r){return g(this,Te(this,t,r))},reduce:function(t,r,e){J(this.size);var n,i;return arguments.length<2?i=!0:n=r,this.__iterate(function(o,u,s){i?(i=!1,n=o):n=t.call(e,n,o,u,s)}),n},reduceRight:function(t,r,e){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return g(this,kr(this,!0))},slice:function(t,r){return g(this,Kr(this,t,r,!0))},some:function(t,r){return!this.every(er(t),r)},sort:function(t){return g(this,At(this,t))},values:function(){return this.__iterator(Q)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,r){return sr(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return mn(this,t,r)},equals:function(t){return yr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new ut(t._cache);var r=t.toSeq().map(On).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(er(t),r)},findEntry:function(t,r,e){var n=e;return this.__iterate(function(i,o,u){if(t.call(r,i,o,u))return n=[o,i],!1}),n},findKey:function(t,r){var e=this.findEntry(t,r);return e&&e[0]},findLast:function(t,r,e){return this.toKeyedSeq().reverse().find(t,r,e)},findLastEntry:function(t,r,e){return this.toKeyedSeq().reverse().findEntry(t,r,e)},findLastKey:function(t,r){return this.toKeyedSeq().reverse().findKey(t,r)},first:function(){return this.find(Gr)},flatMap:function(t,r){return g(this,In(this,t,r))},flatten:function(t){return g(this,Le(this,t,!0))},fromEntrySeq:function(){return new Ot(this)},get:function(t,r){return this.find(function(e,n){return R(n,t)},void 0,r)},getIn:function(t,r){for(var e=this,n=Ce(t),i;!(i=n.next()).done;){var o=i.value;if(e=e&&e.get?e.get(o,l):l,e===l)return r}return e},groupBy:function(t,r){return Sn(this,t,r)},has:function(t){return this.get(t,l)!==l},hasIn:function(t){return this.getIn(t,l)!==l},isSubset:function(t){return t=typeof t.includes=="function"?t:q(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:q(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return R(r,t)})},keySeq:function(){return this.toSeq().map(qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return bt(this,t)},maxBy:function(t,r){return bt(this,r,t)},min:function(t){return bt(this,t?Xe(t):Qe)},minBy:function(t,r){return bt(this,r?Xe(r):Qe,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return g(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,r){return g(this,Ne(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(er(t),r)},sortBy:function(t,r){return g(this,At(this,r,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return g(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,r){return g(this,gn(this,t,r))},takeUntil:function(t,r){return this.takeWhile(er(t),r)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Tn(this))}});var W=q.prototype;W[Yr]=!0,W[fr]=W.values,W.__toJS=W.toArray,W.__toStringMapper=Ze,W.inspect=W.toSource=function(){return this.toString()},W.chain=W.flatMap,W.contains=W.includes,ft(P,{flip:function(){return g(this,Ae(this))},mapEntries:function(t,r){var e=this,n=0;return g(this,this.toSeq().map(function(i,o){return t.call(r,[o,i],n++,e)}).fromEntrySeq())},mapKeys:function(t,r){var e=this;return g(this,this.toSeq().flip().map(function(n,i){return t.call(r,n,i,e)}).flip())}});var rr=P.prototype;rr[Jr]=!0,rr[fr]=W.entries,rr.__toJS=W.toObject,rr.__toStringMapper=function(t,r){return JSON.stringify(r)+": "+Ze(t)},ft(tt,{toKeyedSeq:function(){return new x(this,!1)},filter:function(t,r){return g(this,Re(this,t,r,!1))},findIndex:function(t,r){var e=this.findEntry(t,r);return e?e[0]:-1},indexOf:function(t){var r=this.keyOf(t);return r===void 0?-1:r},lastIndexOf:function(t){var r=this.lastKeyOf(t);return r===void 0?-1:r},reverse:function(){return g(this,kr(this,!1))},slice:function(t,r){return g(this,Kr(this,t,r,!1))},splice:function(t,r){var e=arguments.length;if(r=Math.max(r|0,0),e===0||e===2&&!r)return this;t=gt(t,t<0?this.count():this.size);var n=this.slice(0,t);return g(this,e===1?n:n.concat(_t(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){var e=this.findLastEntry(t,r);return e?e[0]:-1},first:function(){return this.get(0)},flatten:function(t){return g(this,Le(this,t,!1))},get:function(t,r){return t=pt(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?r:this.find(function(e,n){return n===t},void 0,r)},has:function(t){return t=pt(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return g(this,En(this,t))},interleave:function(){var t=[this].concat(_t(arguments)),r=Ur(this.toSeq(),O.of,t),e=r.flatten(!0);return r.size&&(e.size=r.size*t.length),g(this,e)},keySeq:function(){return k(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,r){return g(this,Ne(this,t,r,!1))},zip:function(){var t=[this].concat(_t(arguments));return g(this,Ur(this,An,t))},zipWith:function(t){var r=_t(arguments);return r[0]=this,g(this,Ur(this,t,r))}}),tt.prototype[Hr]=!0,tt.prototype[St]=!0,ft($,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),$.prototype.has=W.includes,$.prototype.contains=$.prototype.includes,ft(b,P.prototype),ft(O,tt.prototype),ft(ot,$.prototype),ft(Pt,P.prototype),ft(wt,tt.prototype),ft(Gt,$.prototype);function qn(t,r){return r}function On(t,r){return[r,t]}function er(t){return function(){return!t.apply(this,arguments)}}function Xe(t){return function(){return-t.apply(this,arguments)}}function Ze(t){return typeof t=="string"?JSON.stringify(t):String(t)}function An(){return _t(arguments)}function Qe(t,r){return t<r?1:t>r?-1:0}function Tn(t){if(t.size===1/0)return 0;var r=nt(t),e=T(t),n=r?1:0,i=t.__iterate(e?r?function(o,u){n=31*n+be(Y(o),Y(u))|0}:function(o,u){n=n+be(Y(o),Y(u))|0}:r?function(o){n=31*n+Y(o)|0}:function(o){n=n+Y(o)|0});return Rn(i,n)}function Rn(t,r){return r=Ct(r,3432918353),r=Ct(r<<15|r>>>-15,461845907),r=Ct(r<<13|r>>>-13,5),r=(r+3864292196|0)^t,r=Ct(r^r>>>16,2246822507),r=Ct(r^r>>>13,3266489909),r=mr(r^r>>>16),r}function be(t,r){return t^r+2654435769+(t<<6)+(t>>2)|0}var Nn={Iterable:q,Seq:L,Collection:yt,Map:d,OrderedMap:A,List:E,Stack:N,Set:z,OrderedSet:at,Record:H,Range:k,Repeat:U,is:R,fromJS:_r};return Nn})}(Br)),Br.exports}exports.requireImmutable=Dn;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Te=require("./immutable-DdXXqq64.cjs");require("./Draft-Bj28OnIx.cjs");function Oe(e){return Ie(e)||we(e)||Se()}function Se(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function we(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ie(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function X(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X(r,!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(e,t){return ke(e)||Re(e,t)||Ae()}function Ae(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Re(e,t){var r=[],n=!0,l=!1,a=void 0;try{for(var i=e[Symbol.iterator](),o;!(n=(o=i.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){l=!0,a=u}finally{try{!n&&i.return!=null&&i.return()}finally{if(l)throw a}}return r}function ke(e){if(Array.isArray(e))return e}function me(e,t){if(e==null)return t;for(var r=De(t,2),n=r[0],l=r[1],a=Z({},n),i=Oe(l),o=0,u=Object.keys(e);o<u.length;o++){var s=u[o];if(n.hasOwnProperty(s)){var h=n[s];a[s]=Z({},h,{},e[s])}else a[s]=e[s],i.push(s)}return[a,i]}var J={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};function M(e){if(e==null)return e;for(var t={},r=!1,n=0,l=Object.keys(e);n<l.length;n++){var a=l[n],i=a;J.hasOwnProperty(a)&&(i=J[a],r=!0),t[i]=e[a]}return r?t:e}var Le=/^(moz|ms|o|webkit)-/,Pe=/^\d+$/,Ce=/([A-Z])/g,_e={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Be(e){return e.replace(Ce,"-$1").toLowerCase().replace(Le,"-$1-")}function Ne(e,t){var r;return typeof t=="string"?r=Pe.test(t):(r=!0,t=String(t)),!r||t==="0"||_e[e]===!0?t:t+"px"}function R(e){return Object.keys(e).map(function(t){var r=Ne(t,e[t]),n=Be(t);return"".concat(n,": ").concat(r)}).join("; ")}var f={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},S={LINK:"LINK",IMAGE:"IMAGE"},I={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"},ae=Te.requireImmutable(),U=new ae.OrderedSet;function je(e,t){for(var r=null,n=null,l=[],a=0,i=0,o=e.length;i<o;i++){n=r;var u=t.get(i);r=u?u.getEntity():null,i>0&&r!==n&&(l.push([n,ee(e.slice(a,i),t.slice(a,i))]),a=i)}return l.push([r,ee(e.slice(a),t.slice(a))]),l}function ee(e,t){for(var r=U,n=U,l=[],a=0,i=0,o=e.length;i<o;i++){n=r;var u=t.get(i);r=u?u.getStyle():U,i>0&&!ae.is(r,n)&&(l.push([e.slice(a,i),n]),a=i)}return l.push([e.slice(a),r]),l}var E,k,m;function re(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function L(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(r,!0).forEach(function(n){c(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x(e,t){return Ue(e)||Me(e,t)||He()}function He(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Me(e,t){var r=[],n=!0,l=!1,a=void 0;try{for(var i=e[Symbol.iterator](),o;!(n=(o=i.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){l=!0,a=u}finally{try{!n&&i.return!=null&&i.return()}finally{if(l)throw a}}return r}function Ue(e){if(Array.isArray(e))return e}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fe(e,t,r){return t&&We(e.prototype,t),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ie=I.BOLD,W=I.CODE,le=I.ITALIC,oe=I.STRIKETHROUGH,ue=I.UNDERLINE,Ge=" ",se="<br>",te=/^data-([a-z0-9-]+)$/,Ye=(E={},c(E,ie,{element:"strong"}),c(E,W,{element:"code"}),c(E,le,{element:"em"}),c(E,oe,{element:"del"}),c(E,ue,{element:"u"}),E),qe=[ie,le,ue,oe,W],P=(k={},c(k,S.LINK,{url:"href",href:"href",rel:"rel",target:"target",title:"title",className:"class"}),c(k,S.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),k),C=(m={},c(m,S.LINK,function(e,t){for(var r=P.hasOwnProperty(e)?P[e]:{},n=t.getData(),l={},a=0,i=Object.keys(n);a<i.length;a++){var o=i[a],u=n[o];if(r.hasOwnProperty(o)){var s=r[o];l[s]=u}else te.test(o)&&(l[o]=u)}return l}),c(m,S.IMAGE,function(e,t){for(var r=P.hasOwnProperty(e)?P[e]:{},n=t.getData(),l={},a=0,i=Object.keys(n);a<i.length;a++){var o=i[a],u=n[o];if(r.hasOwnProperty(o)){var s=r[o];l[s]=u}else te.test(o)&&(l[o]=u)}return l}),m);function ne(e,t){switch(e){case f.HEADER_ONE:return["h1"];case f.HEADER_TWO:return["h2"];case f.HEADER_THREE:return["h3"];case f.HEADER_FOUR:return["h4"];case f.HEADER_FIVE:return["h5"];case f.HEADER_SIX:return["h6"];case f.UNORDERED_LIST_ITEM:case f.ORDERED_LIST_ITEM:return["li"];case f.BLOCKQUOTE:return["blockquote"];case f.CODE:return["pre","code"];case f.ATOMIC:return["figure"];default:return t===null?[]:[t||"p"]}}function ze(e){switch(e){case f.UNORDERED_LIST_ITEM:return"ul";case f.ORDERED_LIST_ITEM:return"ol";default:return null}}var Ke=function(){function e(t,r){xe(this,e),c(this,"blocks",void 0),c(this,"contentState",void 0),c(this,"currentBlock",void 0),c(this,"indentLevel",void 0),c(this,"output",void 0),c(this,"totalBlocks",void 0),c(this,"wrapperTag",void 0),c(this,"options",void 0),c(this,"inlineStyles",void 0),c(this,"inlineStyleFn",void 0),c(this,"styleOrder",void 0),r==null&&(r={}),this.contentState=t,this.options=r;var n=me(r.inlineStyles,[Ye,qe]),l=x(n,2),a=l[0],i=l[1];this.inlineStyles=a,this.inlineStyleFn=r.inlineStyleFn,this.styleOrder=i}return Fe(e,[{key:"generate",value:function(){for(this.output=[],this.blocks=this.contentState.getBlocksAsArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.indentLevel=0,this.wrapperTag=null;this.currentBlock<this.totalBlocks;)this.processBlock();return this.closeWrapperTag(),this.output.join("").trim()}},{key:"processBlock",value:function(){var r=this.options,n=r.blockRenderers,l=r.defaultBlockTag,a=this.blocks[this.currentBlock],i=a.getType(),o=ze(i);this.wrapperTag!==o&&(this.wrapperTag&&this.closeWrapperTag(),o&&this.openWrapperTag(o)),this.indent();var u=n!=null&&n.hasOwnProperty(i)?n[i]:null,s=u?u(a):null;if(s!=null){this.output.push(s),this.output.push(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Te=require("./immutable-CXRex_ro.cjs");require("./Draft-C9CZJZCD.cjs");function Oe(e){return Ie(e)||we(e)||Se()}function Se(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function we(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ie(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function X(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X(r,!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(e,t){return ke(e)||Re(e,t)||Ae()}function Ae(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Re(e,t){var r=[],n=!0,l=!1,a=void 0;try{for(var i=e[Symbol.iterator](),o;!(n=(o=i.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){l=!0,a=u}finally{try{!n&&i.return!=null&&i.return()}finally{if(l)throw a}}return r}function ke(e){if(Array.isArray(e))return e}function me(e,t){if(e==null)return t;for(var r=De(t,2),n=r[0],l=r[1],a=Z({},n),i=Oe(l),o=0,u=Object.keys(e);o<u.length;o++){var s=u[o];if(n.hasOwnProperty(s)){var h=n[s];a[s]=Z({},h,{},e[s])}else a[s]=e[s],i.push(s)}return[a,i]}var J={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};function M(e){if(e==null)return e;for(var t={},r=!1,n=0,l=Object.keys(e);n<l.length;n++){var a=l[n],i=a;J.hasOwnProperty(a)&&(i=J[a],r=!0),t[i]=e[a]}return r?t:e}var Le=/^(moz|ms|o|webkit)-/,Pe=/^\d+$/,Ce=/([A-Z])/g,_e={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Be(e){return e.replace(Ce,"-$1").toLowerCase().replace(Le,"-$1-")}function Ne(e,t){var r;return typeof t=="string"?r=Pe.test(t):(r=!0,t=String(t)),!r||t==="0"||_e[e]===!0?t:t+"px"}function R(e){return Object.keys(e).map(function(t){var r=Ne(t,e[t]),n=Be(t);return"".concat(n,": ").concat(r)}).join("; ")}var f={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},S={LINK:"LINK",IMAGE:"IMAGE"},I={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"},ae=Te.requireImmutable(),U=new ae.OrderedSet;function je(e,t){for(var r=null,n=null,l=[],a=0,i=0,o=e.length;i<o;i++){n=r;var u=t.get(i);r=u?u.getEntity():null,i>0&&r!==n&&(l.push([n,ee(e.slice(a,i),t.slice(a,i))]),a=i)}return l.push([r,ee(e.slice(a),t.slice(a))]),l}function ee(e,t){for(var r=U,n=U,l=[],a=0,i=0,o=e.length;i<o;i++){n=r;var u=t.get(i);r=u?u.getStyle():U,i>0&&!ae.is(r,n)&&(l.push([e.slice(a,i),n]),a=i)}return l.push([e.slice(a),r]),l}var E,k,m;function re(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function L(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(r,!0).forEach(function(n){c(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x(e,t){return Ue(e)||Me(e,t)||He()}function He(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Me(e,t){var r=[],n=!0,l=!1,a=void 0;try{for(var i=e[Symbol.iterator](),o;!(n=(o=i.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){l=!0,a=u}finally{try{!n&&i.return!=null&&i.return()}finally{if(l)throw a}}return r}function Ue(e){if(Array.isArray(e))return e}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fe(e,t,r){return t&&We(e.prototype,t),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ie=I.BOLD,W=I.CODE,le=I.ITALIC,oe=I.STRIKETHROUGH,ue=I.UNDERLINE,Ge=" ",se="<br>",te=/^data-([a-z0-9-]+)$/,Ye=(E={},c(E,ie,{element:"strong"}),c(E,W,{element:"code"}),c(E,le,{element:"em"}),c(E,oe,{element:"del"}),c(E,ue,{element:"u"}),E),qe=[ie,le,ue,oe,W],P=(k={},c(k,S.LINK,{url:"href",href:"href",rel:"rel",target:"target",title:"title",className:"class"}),c(k,S.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),k),C=(m={},c(m,S.LINK,function(e,t){for(var r=P.hasOwnProperty(e)?P[e]:{},n=t.getData(),l={},a=0,i=Object.keys(n);a<i.length;a++){var o=i[a],u=n[o];if(r.hasOwnProperty(o)){var s=r[o];l[s]=u}else te.test(o)&&(l[o]=u)}return l}),c(m,S.IMAGE,function(e,t){for(var r=P.hasOwnProperty(e)?P[e]:{},n=t.getData(),l={},a=0,i=Object.keys(n);a<i.length;a++){var o=i[a],u=n[o];if(r.hasOwnProperty(o)){var s=r[o];l[s]=u}else te.test(o)&&(l[o]=u)}return l}),m);function ne(e,t){switch(e){case f.HEADER_ONE:return["h1"];case f.HEADER_TWO:return["h2"];case f.HEADER_THREE:return["h3"];case f.HEADER_FOUR:return["h4"];case f.HEADER_FIVE:return["h5"];case f.HEADER_SIX:return["h6"];case f.UNORDERED_LIST_ITEM:case f.ORDERED_LIST_ITEM:return["li"];case f.BLOCKQUOTE:return["blockquote"];case f.CODE:return["pre","code"];case f.ATOMIC:return["figure"];default:return t===null?[]:[t||"p"]}}function ze(e){switch(e){case f.UNORDERED_LIST_ITEM:return"ul";case f.ORDERED_LIST_ITEM:return"ol";default:return null}}var Ke=function(){function e(t,r){xe(this,e),c(this,"blocks",void 0),c(this,"contentState",void 0),c(this,"currentBlock",void 0),c(this,"indentLevel",void 0),c(this,"output",void 0),c(this,"totalBlocks",void 0),c(this,"wrapperTag",void 0),c(this,"options",void 0),c(this,"inlineStyles",void 0),c(this,"inlineStyleFn",void 0),c(this,"styleOrder",void 0),r==null&&(r={}),this.contentState=t,this.options=r;var n=me(r.inlineStyles,[Ye,qe]),l=x(n,2),a=l[0],i=l[1];this.inlineStyles=a,this.inlineStyleFn=r.inlineStyleFn,this.styleOrder=i}return Fe(e,[{key:"generate",value:function(){for(this.output=[],this.blocks=this.contentState.getBlocksAsArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.indentLevel=0,this.wrapperTag=null;this.currentBlock<this.totalBlocks;)this.processBlock();return this.closeWrapperTag(),this.output.join("").trim()}},{key:"processBlock",value:function(){var r=this.options,n=r.blockRenderers,l=r.defaultBlockTag,a=this.blocks[this.currentBlock],i=a.getType(),o=ze(i);this.wrapperTag!==o&&(this.wrapperTag&&this.closeWrapperTag(),o&&this.openWrapperTag(o)),this.indent();var u=n!=null&&n.hasOwnProperty(i)?n[i]:null,s=u?u(a):null;if(s!=null){this.output.push(s),this.output.push(`
2
2
  `),this.currentBlock+=1;return}this.writeStartTag(a,l),this.output.push(this.renderBlockContent(a));var h=this.getNextBlock();if($e(i)&&h&&h.getDepth()===a.getDepth()+1){this.output.push(`
3
3
  `);var y=this.wrapperTag;this.wrapperTag=null,this.indentLevel+=1,this.currentBlock+=1,this.processBlocksAtDepth(h.getDepth()),this.wrapperTag=y,this.indentLevel-=1,this.indent()}else this.currentBlock+=1;this.writeEndTag(a,l)}},{key:"processBlocksAtDepth",value:function(r){for(var n=this.blocks[this.currentBlock];n&&n.getDepth()===r;)this.processBlock(),n=this.blocks[this.currentBlock];this.closeWrapperTag()}},{key:"getNextBlock",value:function(){return this.blocks[this.currentBlock+1]}},{key:"writeStartTag",value:function(r,n){var l=ne(r.getType(),n),a;if(this.options.blockStyleFn){var i=this.options.blockStyleFn(r)||{},o=i.attributes,u=i.style;if(o=M(o),u!=null){var s=R(u);o=o==null?{style:s}:L({},o,{style:s})}a=O(o)}else a="";var h=!0,y=!1,g=void 0;try{for(var v=l[Symbol.iterator](),p;!(h=(p=v.next()).done);h=!0){var b=p.value;this.output.push("<".concat(b).concat(a,">"))}}catch(w){y=!0,g=w}finally{try{!h&&v.return!=null&&v.return()}finally{if(y)throw g}}}},{key:"writeEndTag",value:function(r,n){var l=ne(r.getType(),n);if(l.length===1)this.output.push("</".concat(l[0],`>
4
4
  `));else{var a=[],i=!0,o=!1,u=void 0;try{for(var s=l[Symbol.iterator](),h;!(i=(h=s.next()).done);i=!0){var y=h.value;a.unshift("</".concat(y,">"))}}catch(g){o=!0,u=g}finally{try{!i&&s.return!=null&&s.return()}finally{if(o)throw u}}this.output.push(a.join("")+`