davis-components 0.3.38 → 0.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Draft-CPmN0H_8.js → Draft-C3ygyoZ2.js} +2 -2
- package/dist/{Draft-D79aZCm5.cjs → Draft-C4sXSNsn.cjs} +1 -1
- package/dist/{Draft-F5TCSUUH.js → Draft-VuexNrf4.js} +1 -1
- package/dist/{Draft-C9-0x_92.cjs → Draft-kXOYhXS-.cjs} +1 -1
- package/dist/{html-to-draftjs-DbFfIn6A.js → html-to-draftjs-ATcehsK-.js} +3 -3
- package/dist/{html-to-draftjs-DGwUnCbF.cjs → html-to-draftjs-CgjL04sJ.cjs} +1 -1
- package/dist/{immutable-Dc6X0z7J.js → immutable-BIILO0Nx.js} +1 -1
- package/dist/{immutable-CR8mLCpM.cjs → immutable-D5pRcgkH.cjs} +1 -1
- package/dist/{main-C6GVbKU_.cjs → main-BctkBN0v.cjs} +1 -1
- package/dist/{main-B9Ip7yH-.cjs → main-CNUalHme.cjs} +2 -2
- package/dist/{main-C4JwZIRX.js → main-R3Lt0ytZ.js} +6 -6
- package/dist/{main-BK2Y9_zR.js → main-lg09uQfy.js} +2 -2
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1 -1
- package/dist/{react-draft-wysiwyg-D9O7hUH-.cjs → react-draft-wysiwyg-BabOc26d.cjs} +1 -1
- package/dist/{react-draft-wysiwyg-CHoJKuIi.js → react-draft-wysiwyg-DILWI2_D.js} +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Ya=require("./main-B9Ip7yH-.cjs"),ot=require("react"),Dl=require("react-dom");var zr={exports:{}},Qo;function Ce(){return Qo||(Qo=1,function(y,m){(function(g,n){y.exports=n()})(Ya.commonjsGlobal,function(){var g=Array.prototype.slice;function n(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function a(e){return c(e)?e:Y(e)}n(d,a);function d(e){return h(e)?e:Z(e)}n(p,a);function p(e){return S(e)?e:J(e)}n(v,a);function v(e){return c(e)&&!E(e)?e:re(e)}function c(e){return!!(e&&e[l])}function h(e){return!!(e&&e[o])}function S(e){return!!(e&&e[u])}function E(e){return h(e)||S(e)}function i(e){return!!(e&&e[r])}a.isIterable=c,a.isKeyed=h,a.isIndexed=S,a.isAssociative=E,a.isOrdered=i,a.Keyed=d,a.Indexed=p,a.Set=v;var l="@@__IMMUTABLE_ITERABLE__@@",o="@@__IMMUTABLE_KEYED__@@",u="@@__IMMUTABLE_INDEXED__@@",r="@@__IMMUTABLE_ORDERED__@@",f="delete",w=5,D=1<<w,O=D-1,I={},k={value:!1},K={value:!1};function x(e){return e.value=!1,e}function T(e){e&&(e.value=!0)}function b(){}function B(e,t){t=t||0;for(var s=Math.max(0,e.length-t),_=new Array(s),C=0;C<s;C++)_[C]=e[C+t];return _}function A(e){return e.size===void 0&&(e.size=e.__iterate(F)),e.size}function L(e,t){if(typeof t!="number"){var s=t>>>0;if(""+s!==t||s===4294967295)return NaN;t=s}return t<0?A(e)+t:t}function F(){return!0}function P(e,t,s){return(e===0||s!==void 0&&e<=-s)&&(t===void 0||s!==void 0&&t>=s)}function H(e,t){return W(e,t,0)}function G(e,t){return W(e,t,t)}function W(e,t,s){return e===void 0?s:e<0?Math.max(0,t+e):t===void 0?e:Math.min(t,e)}var $=0,X=1,j=2,N=typeof Symbol=="function"&&Symbol.iterator,oe="@@iterator",pe=N||oe;function ie(e){this.next=e}ie.prototype.toString=function(){return"[Iterator]"},ie.KEYS=$,ie.VALUES=X,ie.ENTRIES=j,ie.prototype.inspect=ie.prototype.toSource=function(){return this.toString()},ie.prototype[pe]=function(){return this};function ue(e,t,s,_){var C=e===0?t:e===1?s:[t,s];return _?_.value=C:_={value:C,done:!1},_}function ve(){return{value:void 0,done:!0}}function we(e){return!!te(e)}function se(e){return e&&typeof e.next=="function"}function Q(e){var t=te(e);return t&&t.call(e)}function te(e){var t=e&&(N&&e[N]||e[oe]);if(typeof t=="function")return t}function ee(e){return e&&typeof e.length=="number"}n(Y,a);function Y(e){return e==null?qe():c(e)?e.toSeq():ge(e)}Y.of=function(){return Y(arguments)},Y.prototype.toSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq {","}")},Y.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Y.prototype.__iterate=function(e,t){return be(this,e,t,!0)},Y.prototype.__iterator=function(e,t){return tt(this,e,t,!0)},n(Z,Y);function Z(e){return e==null?qe().toKeyedSeq():c(e)?h(e)?e.toSeq():e.fromEntrySeq():et(e)}Z.prototype.toKeyedSeq=function(){return this},n(J,Y);function J(e){return e==null?qe():c(e)?h(e)?e.entrySeq():e.toIndexedSeq():ce(e)}J.of=function(){return J(arguments)},J.prototype.toIndexedSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq [","]")},J.prototype.__iterate=function(e,t){return be(this,e,t,!1)},J.prototype.__iterator=function(e,t){return tt(this,e,t,!1)},n(re,Y);function re(e){return(e==null?qe():c(e)?h(e)?e.entrySeq():e:ce(e)).toSetSeq()}re.of=function(){return re(arguments)},re.prototype.toSetSeq=function(){return this},Y.isSeq=Fe,Y.Keyed=Z,Y.Set=re,Y.Indexed=J;var he="@@__IMMUTABLE_SEQ__@@";Y.prototype[he]=!0,n(me,J);function me(e){this._array=e,this.size=e.length}me.prototype.get=function(e,t){return this.has(e)?this._array[L(this,e)]:t},me.prototype.__iterate=function(e,t){for(var s=this._array,_=s.length-1,C=0;C<=_;C++)if(e(s[t?_-C:C],C,this)===!1)return C+1;return C},me.prototype.__iterator=function(e,t){var s=this._array,_=s.length-1,C=0;return new ie(function(){return C>_?ve():ue(e,C,s[t?_-C++:C++])})},n(Ke,Z);function Ke(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}Ke.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},Ke.prototype.has=function(e){return this._object.hasOwnProperty(e)},Ke.prototype.__iterate=function(e,t){for(var s=this._object,_=this._keys,C=_.length-1,R=0;R<=C;R++){var M=_[t?C-R:R];if(e(s[M],M,this)===!1)return R+1}return R},Ke.prototype.__iterator=function(e,t){var s=this._object,_=this._keys,C=_.length-1,R=0;return new ie(function(){var M=_[t?C-R:R];return R++>C?ve():ue(e,M,s[M])})},Ke.prototype[r]=!0,n(Me,J);function Me(e){this._iterable=e,this.size=e.length||e.size}Me.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var s=this._iterable,_=Q(s),C=0;if(se(_))for(var R;!(R=_.next()).done&&e(R.value,C++,this)!==!1;);return C},Me.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var s=this._iterable,_=Q(s);if(!se(_))return new ie(ve);var C=0;return new ie(function(){var R=_.next();return R.done?R:ue(e,C++,R.value)})},n(Be,J);function Be(e){this._iterator=e,this._iteratorCache=[]}Be.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var s=this._iterator,_=this._iteratorCache,C=0;C<_.length;)if(e(_[C],C++,this)===!1)return C;for(var R;!(R=s.next()).done;){var M=R.value;if(_[C]=M,e(M,C++,this)===!1)break}return C},Be.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var s=this._iterator,_=this._iteratorCache,C=0;return new ie(function(){if(C>=_.length){var R=s.next();if(R.done)return R;_[C]=R.value}return ue(e,C,_[C++])})};function Fe(e){return!!(e&&e[he])}var Ae;function qe(){return Ae||(Ae=new me([]))}function et(e){var t=Array.isArray(e)?new me(e).fromEntrySeq():se(e)?new Be(e).fromEntrySeq():we(e)?new Me(e).fromEntrySeq():typeof e=="object"?new Ke(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ge(e){var t=le(e)||typeof e=="object"&&new Ke(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return ee(e)?new me(e):se(e)?new Be(e):we(e)?new Me(e):void 0}function be(e,t,s,_){var C=e._cache;if(C){for(var R=C.length-1,M=0;M<=R;M++){var q=C[s?R-M:M];if(t(q[1],_?q[0]:M,e)===!1)return M+1}return M}return e.__iterateUncached(t,s)}function tt(e,t,s,_){var C=e._cache;if(C){var R=C.length-1,M=0;return new ie(function(){var q=C[s?R-M:M];return M++>R?ve():ue(t,_?q[0]:M-1,q[1])})}return e.__iteratorUncached(t,s)}function We(e,t){return t?Ee(t,e,"",{"":e}):fe(e)}function Ee(e,t,s,_){return Array.isArray(t)?e.call(_,s,J(t).map(function(C,R){return Ee(e,C,R,t)})):Xe(t)?e.call(_,s,Z(t).map(function(C,R){return Ee(e,C,R,t)})):t}function fe(e){return Array.isArray(e)?J(e).map(fe).toList():Xe(e)?Z(e).map(fe).toMap():e}function Xe(e){return e&&(e.constructor===Object||e.constructor===void 0)}function Re(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(typeof e.equals=="function"&&typeof t.equals=="function"&&e.equals(t))}function bt(e,t){if(e===t)return!0;if(!c(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||h(e)!==h(t)||S(e)!==S(t)||i(e)!==i(t))return!1;if(e.size===0&&t.size===0)return!0;var s=!E(e);if(i(e)){var _=e.entries();return t.every(function(U,z){var V=_.next().value;return V&&Re(V[1],U)&&(s||Re(V[0],z))})&&_.next().done}var C=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{C=!0;var R=e;e=t,t=R}var M=!0,q=t.__iterate(function(U,z){if(s?!e.has(U):C?!Re(U,e.get(z,I)):!Re(e.get(z,I),U))return M=!1,!1});return M&&e.size===q}n(Ue,J);function Ue(e,t){if(!(this instanceof Ue))return new Ue(e,t);if(this._value=e,this.size=t===void 0?1/0:Math.max(0,t),this.size===0){if(hr)return hr;hr=this}}Ue.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ue.prototype.get=function(e,t){return this.has(e)?this._value:t},Ue.prototype.includes=function(e){return Re(this._value,e)},Ue.prototype.slice=function(e,t){var s=this.size;return P(e,t,s)?this:new Ue(this._value,G(t,s)-H(e,s))},Ue.prototype.reverse=function(){return this},Ue.prototype.indexOf=function(e){return Re(this._value,e)?0:-1},Ue.prototype.lastIndexOf=function(e){return Re(this._value,e)?this.size:-1},Ue.prototype.__iterate=function(e,t){for(var s=0;s<this.size;s++)if(e(this._value,s,this)===!1)return s+1;return s},Ue.prototype.__iterator=function(e,t){var s=this,_=0;return new ie(function(){return _<s.size?ue(e,_++,s._value):ve()})},Ue.prototype.equals=function(e){return e instanceof Ue?Re(this._value,e._value):bt(e)};var hr;function jt(e,t){if(!e)throw new Error(t)}n(ze,J);function ze(e,t,s){if(!(this instanceof ze))return new ze(e,t,s);if(jt(s!==0,"Cannot step a Range by 0"),e=e||0,t===void 0&&(t=1/0),s=s===void 0?1:Math.abs(s),t<e&&(s=-s),this._start=e,this._end=t,this._step=s,this.size=Math.max(0,Math.ceil((t-e)/s-1)+1),this.size===0){if(gr)return gr;gr=this}}ze.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ze.prototype.get=function(e,t){return this.has(e)?this._start+L(this,e)*this._step:t},ze.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ze.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=H(e,this.size),t=G(t,this.size),t<=e?new ze(0,0):new ze(this.get(e,this._end),this.get(t,this._end),this._step))},ze.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var s=t/this._step;if(s>=0&&s<this.size)return s}return-1},ze.prototype.lastIndexOf=function(e){return this.indexOf(e)},ze.prototype.__iterate=function(e,t){for(var s=this.size-1,_=this._step,C=t?this._start+s*_:this._start,R=0;R<=s;R++){if(e(C,R,this)===!1)return R+1;C+=t?-_:_}return R},ze.prototype.__iterator=function(e,t){var s=this.size-1,_=this._step,C=t?this._start+s*_:this._start,R=0;return new ie(function(){var M=C;return C+=t?-_:_,R>s?ve():ue(e,R++,M)})},ze.prototype.equals=function(e){return e instanceof ze?this._start===e._start&&this._end===e._end&&this._step===e._step:bt(this,e)};var gr;n(ht,a);function ht(){throw TypeError("Abstract")}n(At,ht);function At(){}n(Ot,ht);function Ot(){}n(Jt,ht);function Jt(){}ht.Keyed=At,ht.Indexed=Ot,ht.Set=Jt;var Nt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,s){t=t|0,s=s|0;var _=t&65535,C=s&65535;return _*C+((t>>>16)*C+_*(s>>>16)<<16>>>0)|0};function yr(e){return e>>>1&1073741824|e&3221225471}function Ye(e){if(e===!1||e===null||e===void 0||typeof e.valueOf=="function"&&(e=e.valueOf(),e===!1||e===null||e===void 0))return 0;if(e===!0)return 1;var t=typeof e;if(t==="number"){var s=e|0;for(s!==e&&(s^=e*4294967295);e>4294967295;)e/=4294967295,s^=e;return yr(s)}if(t==="string")return e.length>Qf?Yf(e):mr(e);if(typeof e.hashCode=="function")return e.hashCode();if(t==="object")return $f(e);if(typeof e.toString=="function")return mr(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Yf(e){var t=Cr[e];return t===void 0&&(t=mr(e),wr===el&&(wr=0,Cr={}),wr++,Cr[e]=t),t}function mr(e){for(var t=0,s=0;s<e.length;s++)t=31*t+e.charCodeAt(s)|0;return yr(t)}function $f(e){var t;if(_r&&(t=Er.get(e),t!==void 0)||(t=e[_t],t!==void 0)||!uo&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[_t],t!==void 0||(t=Zf(e),t!==void 0)))return t;if(t=++Sr,Sr&1073741824&&(Sr=0),_r)Er.set(e,t);else{if(oo!==void 0&&oo(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(uo)Object.defineProperty(e,_t,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[_t]=t;else if(e.nodeType!==void 0)e[_t]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var oo=Object.isExtensible,uo=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Zf(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var _r=typeof WeakMap=="function",Er;_r&&(Er=new WeakMap);var Sr=0,_t="__immutablehash__";typeof Symbol=="function"&&(_t=Symbol(_t));var Qf=16,el=255,wr=0,Cr={};function $e(e){jt(e!==1/0,"Cannot perform this action with an infinite size.")}n(Se,At);function Se(e){return e==null?ut():Dr(e)&&!i(e)?e:ut().withMutations(function(t){var s=d(e);$e(s.size),s.forEach(function(_,C){return t.set(C,_)})})}Se.prototype.toString=function(){return this.__toString("Map {","}")},Se.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Se.prototype.set=function(e,t){return lo(this,e,t)},Se.prototype.setIn=function(e,t){return this.updateIn(e,I,function(){return t})},Se.prototype.remove=function(e){return lo(this,e,I)},Se.prototype.deleteIn=function(e){return this.updateIn(e,function(){return I})},Se.prototype.update=function(e,t,s){return arguments.length===1?e(this):this.updateIn([e],t,s)},Se.prototype.updateIn=function(e,t,s){s||(s=t,t=void 0);var _=yo(this,Fo(e),t,s);return _===I?void 0:_},Se.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ut()},Se.prototype.merge=function(){return Xt(this,void 0,arguments)},Se.prototype.mergeWith=function(e){var t=g.call(arguments,1);return Xt(this,e,t)},Se.prototype.mergeIn=function(e){var t=g.call(arguments,1);return this.updateIn(e,ut(),function(s){return typeof s.merge=="function"?s.merge.apply(s,t):t[t.length-1]})},Se.prototype.mergeDeep=function(){return Xt(this,po,arguments)},Se.prototype.mergeDeepWith=function(e){var t=g.call(arguments,1);return Xt(this,ho(e),t)},Se.prototype.mergeDeepIn=function(e){var t=g.call(arguments,1);return this.updateIn(e,ut(),function(s){return typeof s.mergeDeep=="function"?s.mergeDeep.apply(s,t):t[t.length-1]})},Se.prototype.sort=function(e){return Ne(Kt(this,e))},Se.prototype.sortBy=function(e,t){return Ne(Kt(this,t,e))},Se.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Se.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new b)},Se.prototype.asImmutable=function(){return this.__ensureOwner()},Se.prototype.wasAltered=function(){return this.__altered},Se.prototype.__iterator=function(e,t){return new br(this,e,t)},Se.prototype.__iterate=function(e,t){var s=this,_=0;return this._root&&this._root.iterate(function(C){return _++,e(C[1],C[0],s)},t),_},Se.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tr(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)};function Dr(e){return!!(e&&e[so])}Se.isMap=Dr;var so="@@__IMMUTABLE_MAP__@@",_e=Se.prototype;_e[so]=!0,_e[f]=_e.remove,_e.removeIn=_e.deleteIn;function Lt(e,t){this.ownerID=e,this.entries=t}Lt.prototype.get=function(e,t,s,_){for(var C=this.entries,R=0,M=C.length;R<M;R++)if(Re(s,C[R][0]))return C[R][1];return _},Lt.prototype.update=function(e,t,s,_,C,R,M){for(var q=C===I,U=this.entries,z=0,V=U.length;z<V&&!Re(_,U[z][0]);z++);var ne=z<V;if(ne?U[z][1]===C:q)return this;if(T(M),(q||!ne)&&T(R),!(q&&U.length===1)){if(!ne&&!q&&U.length>=ol)return tl(e,U,_,C);var ae=e&&e===this.ownerID,de=ae?U:B(U);return ne?q?z===V-1?de.pop():de[z]=de.pop():de[z]=[_,C]:de.push([_,C]),ae?(this.entries=de,this):new Lt(e,de)}};function Tt(e,t,s){this.ownerID=e,this.bitmap=t,this.nodes=s}Tt.prototype.get=function(e,t,s,_){t===void 0&&(t=Ye(s));var C=1<<((e===0?t:t>>>e)&O),R=this.bitmap;return R&C?this.nodes[mo(R&C-1)].get(e+w,t,s,_):_},Tt.prototype.update=function(e,t,s,_,C,R,M){s===void 0&&(s=Ye(_));var q=(t===0?s:s>>>t)&O,U=1<<q,z=this.bitmap,V=(z&U)!==0;if(!V&&C===I)return this;var ne=mo(z&U-1),ae=this.nodes,de=V?ae[ne]:void 0,ye=Rr(de,e,t+w,s,_,C,R,M);if(ye===de)return this;if(!V&&ye&&ae.length>=ul)return nl(e,ae,z,q,ye);if(V&&!ye&&ae.length===2&&vo(ae[ne^1]))return ae[ne^1];if(V&&ye&&ae.length===1&&vo(ye))return ye;var Ie=e&&e===this.ownerID,at=V?ye?z:z^U:z|U,lt=V?ye?_o(ae,ne,ye,Ie):al(ae,ne,Ie):il(ae,ne,ye,Ie);return Ie?(this.bitmap=at,this.nodes=lt,this):new Tt(e,at,lt)};function Ft(e,t,s){this.ownerID=e,this.count=t,this.nodes=s}Ft.prototype.get=function(e,t,s,_){t===void 0&&(t=Ye(s));var C=(e===0?t:t>>>e)&O,R=this.nodes[C];return R?R.get(e+w,t,s,_):_},Ft.prototype.update=function(e,t,s,_,C,R,M){s===void 0&&(s=Ye(_));var q=(t===0?s:s>>>t)&O,U=C===I,z=this.nodes,V=z[q];if(U&&!V)return this;var ne=Rr(V,e,t+w,s,_,C,R,M);if(ne===V)return this;var ae=this.count;if(!V)ae++;else if(!ne&&(ae--,ae<sl))return rl(e,z,ae,q);var de=e&&e===this.ownerID,ye=_o(z,q,ne,de);return de?(this.count=ae,this.nodes=ye,this):new Ft(e,ae,ye)};function Rt(e,t,s){this.ownerID=e,this.keyHash=t,this.entries=s}Rt.prototype.get=function(e,t,s,_){for(var C=this.entries,R=0,M=C.length;R<M;R++)if(Re(s,C[R][0]))return C[R][1];return _},Rt.prototype.update=function(e,t,s,_,C,R,M){s===void 0&&(s=Ye(_));var q=C===I;if(s!==this.keyHash)return q?this:(T(M),T(R),kr(this,e,t,s,[_,C]));for(var U=this.entries,z=0,V=U.length;z<V&&!Re(_,U[z][0]);z++);var ne=z<V;if(ne?U[z][1]===C:q)return this;if(T(M),(q||!ne)&&T(R),q&&V===2)return new dt(e,this.keyHash,U[z^1]);var ae=e&&e===this.ownerID,de=ae?U:B(U);return ne?q?z===V-1?de.pop():de[z]=de.pop():de[z]=[_,C]:de.push([_,C]),ae?(this.entries=de,this):new Rt(e,this.keyHash,de)};function dt(e,t,s){this.ownerID=e,this.keyHash=t,this.entry=s}dt.prototype.get=function(e,t,s,_){return Re(s,this.entry[0])?this.entry[1]:_},dt.prototype.update=function(e,t,s,_,C,R,M){var q=C===I,U=Re(_,this.entry[0]);if(U?C===this.entry[1]:q)return this;if(T(M),q){T(R);return}return U?e&&e===this.ownerID?(this.entry[1]=C,this):new dt(e,this.keyHash,[_,C]):(T(R),kr(this,e,t,Ye(_),[_,C]))},Lt.prototype.iterate=Rt.prototype.iterate=function(e,t){for(var s=this.entries,_=0,C=s.length-1;_<=C;_++)if(e(s[t?C-_:_])===!1)return!1},Tt.prototype.iterate=Ft.prototype.iterate=function(e,t){for(var s=this.nodes,_=0,C=s.length-1;_<=C;_++){var R=s[t?C-_:_];if(R&&R.iterate(e,t)===!1)return!1}},dt.prototype.iterate=function(e,t){return e(this.entry)},n(br,ie);function br(e,t,s){this._type=t,this._reverse=s,this._stack=e._root&&co(e._root)}br.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var s=t.node,_=t.index++,C;if(s.entry){if(_===0)return Or(e,s.entry)}else if(s.entries){if(C=s.entries.length-1,_<=C)return Or(e,s.entries[this._reverse?C-_:_])}else if(C=s.nodes.length-1,_<=C){var R=s.nodes[this._reverse?C-_:_];if(R){if(R.entry)return Or(e,R.entry);t=this._stack=co(R,t)}continue}t=this._stack=this._stack.__prev}return ve()};function Or(e,t){return ue(e,t[0],t[1])}function co(e,t){return{node:e,index:0,__prev:t}}function Tr(e,t,s,_){var C=Object.create(_e);return C.size=e,C._root=t,C.__ownerID=s,C.__hash=_,C.__altered=!1,C}var fo;function ut(){return fo||(fo=Tr(0))}function lo(e,t,s){var _,C;if(e._root){var R=x(k),M=x(K);if(_=Rr(e._root,e.__ownerID,0,void 0,t,s,R,M),!M.value)return e;C=e.size+(R.value?s===I?-1:1:0)}else{if(s===I)return e;C=1,_=new Lt(e.__ownerID,[[t,s]])}return e.__ownerID?(e.size=C,e._root=_,e.__hash=void 0,e.__altered=!0,e):_?Tr(C,_):ut()}function Rr(e,t,s,_,C,R,M,q){return e?e.update(t,s,_,C,R,M,q):R===I?e:(T(q),T(M),new dt(t,_,[C,R]))}function vo(e){return e.constructor===dt||e.constructor===Rt}function kr(e,t,s,_,C){if(e.keyHash===_)return new Rt(t,_,[e.entry,C]);var R=(s===0?e.keyHash:e.keyHash>>>s)&O,M=(s===0?_:_>>>s)&O,q,U=R===M?[kr(e,t,s+w,_,C)]:(q=new dt(t,_,C),R<M?[e,q]:[q,e]);return new Tt(t,1<<R|1<<M,U)}function tl(e,t,s,_){e||(e=new b);for(var C=new dt(e,Ye(s),[s,_]),R=0;R<t.length;R++){var M=t[R];C=C.update(e,0,void 0,M[0],M[1])}return C}function rl(e,t,s,_){for(var C=0,R=0,M=new Array(s),q=0,U=1,z=t.length;q<z;q++,U<<=1){var V=t[q];V!==void 0&&q!==_&&(C|=U,M[R++]=V)}return new Tt(e,C,M)}function nl(e,t,s,_,C){for(var R=0,M=new Array(D),q=0;s!==0;q++,s>>>=1)M[q]=s&1?t[R++]:void 0;return M[_]=C,new Ft(e,R+1,M)}function Xt(e,t,s){for(var _=[],C=0;C<s.length;C++){var R=s[C],M=d(R);c(R)||(M=M.map(function(q){return We(q)})),_.push(M)}return go(e,t,_)}function po(e,t,s){return e&&e.mergeDeep&&c(t)?e.mergeDeep(t):Re(e,t)?e:t}function ho(e){return function(t,s,_){if(t&&t.mergeDeepWith&&c(s))return t.mergeDeepWith(e,s);var C=e(t,s,_);return Re(t,C)?t:C}}function go(e,t,s){return s=s.filter(function(_){return _.size!==0}),s.length===0?e:e.size===0&&!e.__ownerID&&s.length===1?e.constructor(s[0]):e.withMutations(function(_){for(var C=t?function(M,q){_.update(q,I,function(U){return U===I?M:t(U,M,q)})}:function(M,q){_.set(q,M)},R=0;R<s.length;R++)s[R].forEach(C)})}function yo(e,t,s,_){var C=e===I,R=t.next();if(R.done){var M=C?s:e,q=_(M);return q===M?e:q}jt(C||e&&e.set,"invalid keyPath");var U=R.value,z=C?I:e.get(U,I),V=yo(z,t,s,_);return V===z?e:V===I?e.remove(U):(C?ut():e).set(U,V)}function mo(e){return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e=e+(e>>8),e=e+(e>>16),e&127}function _o(e,t,s,_){var C=_?e:B(e);return C[t]=s,C}function il(e,t,s,_){var C=e.length+1;if(_&&t+1===C)return e[t]=s,e;for(var R=new Array(C),M=0,q=0;q<C;q++)q===t?(R[q]=s,M=-1):R[q]=e[q+M];return R}function al(e,t,s){var _=e.length-1;if(s&&t===_)return e.pop(),e;for(var C=new Array(_),R=0,M=0;M<_;M++)M===t&&(R=1),C[M]=e[M+R];return C}var ol=D/4,ul=D/2,sl=D/4;n(ke,Ot);function ke(e){var t=Br();if(e==null)return t;if(Eo(e))return e;var s=p(e),_=s.size;return _===0?t:($e(_),_>0&&_<D?Pt(0,_,w,null,new gt(s.toArray())):t.withMutations(function(C){C.setSize(_),s.forEach(function(R,M){return C.set(M,R)})}))}ke.of=function(){return this(arguments)},ke.prototype.toString=function(){return this.__toString("List [","]")},ke.prototype.get=function(e,t){if(e=L(this,e),e>=0&&e<this.size){e+=this._origin;var s=Do(this,e);return s&&s.array[e&O]}return t},ke.prototype.set=function(e,t){return cl(this,e,t)},ke.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ke.prototype.insert=function(e,t){return this.splice(e,0,t)},ke.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=w,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Br()},ke.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(s){yt(s,0,t+e.length);for(var _=0;_<e.length;_++)s.set(t+_,e[_])})},ke.prototype.pop=function(){return yt(this,0,-1)},ke.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){yt(t,-e.length);for(var s=0;s<e.length;s++)t.set(s,e[s])})},ke.prototype.shift=function(){return yt(this,1)},ke.prototype.merge=function(){return Yt(this,void 0,arguments)},ke.prototype.mergeWith=function(e){var t=g.call(arguments,1);return Yt(this,e,t)},ke.prototype.mergeDeep=function(){return Yt(this,po,arguments)},ke.prototype.mergeDeepWith=function(e){var t=g.call(arguments,1);return Yt(this,ho(e),t)},ke.prototype.setSize=function(e){return yt(this,0,e)},ke.prototype.slice=function(e,t){var s=this.size;return P(e,t,s)?this:yt(this,H(e,s),G(t,s))},ke.prototype.__iterator=function(e,t){var s=0,_=wo(this,t);return new ie(function(){var C=_();return C===qt?ve():ue(e,s++,C)})},ke.prototype.__iterate=function(e,t){for(var s=0,_=wo(this,t),C;(C=_())!==qt&&e(C,s++,this)!==!1;);return s},ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)};function Eo(e){return!!(e&&e[So])}ke.isList=Eo;var So="@@__IMMUTABLE_LIST__@@",Ve=ke.prototype;Ve[So]=!0,Ve[f]=Ve.remove,Ve.setIn=_e.setIn,Ve.deleteIn=Ve.removeIn=_e.removeIn,Ve.update=_e.update,Ve.updateIn=_e.updateIn,Ve.mergeIn=_e.mergeIn,Ve.mergeDeepIn=_e.mergeDeepIn,Ve.withMutations=_e.withMutations,Ve.asMutable=_e.asMutable,Ve.asImmutable=_e.asImmutable,Ve.wasAltered=_e.wasAltered;function gt(e,t){this.array=e,this.ownerID=t}gt.prototype.removeBefore=function(e,t,s){if(s===t?1<<t:this.array.length===0)return this;var _=s>>>t&O;if(_>=this.array.length)return new gt([],e);var C=_===0,R;if(t>0){var M=this.array[_];if(R=M&&M.removeBefore(e,t-w,s),R===M&&C)return this}if(C&&!R)return this;var q=kt(this,e);if(!C)for(var U=0;U<_;U++)q.array[U]=void 0;return R&&(q.array[_]=R),q},gt.prototype.removeAfter=function(e,t,s){if(s===(t?1<<t:0)||this.array.length===0)return this;var _=s-1>>>t&O;if(_>=this.array.length)return this;var C;if(t>0){var R=this.array[_];if(C=R&&R.removeAfter(e,t-w,s),C===R&&_===this.array.length-1)return this}var M=kt(this,e);return M.array.splice(_+1),C&&(M.array[_]=C),M};var qt={};function wo(e,t){var s=e._origin,_=e._capacity,C=Ut(_),R=e._tail;return M(e._root,e._level,0);function M(z,V,ne){return V===0?q(z,ne):U(z,V,ne)}function q(z,V){var ne=V===C?R&&R.array:z&&z.array,ae=V>s?0:s-V,de=_-V;return de>D&&(de=D),function(){if(ae===de)return qt;var ye=t?--de:ae++;return ne&&ne[ye]}}function U(z,V,ne){var ae,de=z&&z.array,ye=ne>s?0:s-ne>>V,Ie=(_-ne>>V)+1;return Ie>D&&(Ie=D),function(){do{if(ae){var at=ae();if(at!==qt)return at;ae=null}if(ye===Ie)return qt;var lt=t?--Ie:ye++;ae=M(de&&de[lt],V-w,ne+(lt<<V))}while(!0)}}}function Pt(e,t,s,_,C,R,M){var q=Object.create(Ve);return q.size=t-e,q._origin=e,q._capacity=t,q._level=s,q._root=_,q._tail=C,q.__ownerID=R,q.__hash=M,q.__altered=!1,q}var Co;function Br(){return Co||(Co=Pt(0,0,w))}function cl(e,t,s){if(t=L(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(M){t<0?yt(M,t).set(0,s):yt(M,0,t+1).set(t,s)});t+=e._origin;var _=e._tail,C=e._root,R=x(K);return t>=Ut(e._capacity)?_=xr(_,e.__ownerID,0,t,s,R):C=xr(C,e.__ownerID,e._level,t,s,R),R.value?e.__ownerID?(e._root=C,e._tail=_,e.__hash=void 0,e.__altered=!0,e):Pt(e._origin,e._capacity,e._level,C,_):e}function xr(e,t,s,_,C,R){var M=_>>>s&O,q=e&&M<e.array.length;if(!q&&C===void 0)return e;var U;if(s>0){var z=e&&e.array[M],V=xr(z,t,s-w,_,C,R);return V===z?e:(U=kt(e,t),U.array[M]=V,U)}return q&&e.array[M]===C?e:(T(R),U=kt(e,t),C===void 0&&M===U.array.length-1?U.array.pop():U.array[M]=C,U)}function kt(e,t){return t&&e&&t===e.ownerID?e:new gt(e?e.array.slice():[],t)}function Do(e,t){if(t>=Ut(e._capacity))return e._tail;if(t<1<<e._level+w){for(var s=e._root,_=e._level;s&&_>0;)s=s.array[t>>>_&O],_-=w;return s}}function yt(e,t,s){t!==void 0&&(t=t|0),s!==void 0&&(s=s|0);var _=e.__ownerID||new b,C=e._origin,R=e._capacity,M=C+t,q=s===void 0?R:s<0?R+s:C+s;if(M===C&&q===R)return e;if(M>=q)return e.clear();for(var U=e._level,z=e._root,V=0;M+V<0;)z=new gt(z&&z.array.length?[void 0,z]:[],_),U+=w,V+=1<<U;V&&(M+=V,C+=V,q+=V,R+=V);for(var ne=Ut(R),ae=Ut(q);ae>=1<<U+w;)z=new gt(z&&z.array.length?[z]:[],_),U+=w;var de=e._tail,ye=ae<ne?Do(e,q-1):ae>ne?new gt([],_):de;if(de&&ae>ne&&M<R&&de.array.length){z=kt(z,_);for(var Ie=z,at=U;at>w;at-=w){var lt=ne>>>at&O;Ie=Ie.array[lt]=kt(Ie.array[lt],_)}Ie.array[ne>>>w&O]=de}if(q<R&&(ye=ye&&ye.removeAfter(_,0,q)),M>=ae)M-=ae,q-=ae,U=w,z=null,ye=ye&&ye.removeBefore(_,0,M);else if(M>C||ae<ne){for(V=0;z;){var nr=M>>>U&O;if(nr!==ae>>>U&O)break;nr&&(V+=(1<<U)*nr),U-=w,z=z.array[nr]}z&&M>C&&(z=z.removeBefore(_,U,M-V)),z&&ae<ne&&(z=z.removeAfter(_,U,ae-V)),V&&(M-=V,q-=V)}return e.__ownerID?(e.size=q-M,e._origin=M,e._capacity=q,e._level=U,e._root=z,e._tail=ye,e.__hash=void 0,e.__altered=!0,e):Pt(M,q,U,z,ye)}function Yt(e,t,s){for(var _=[],C=0,R=0;R<s.length;R++){var M=s[R],q=p(M);q.size>C&&(C=q.size),c(M)||(q=q.map(function(U){return We(U)})),_.push(q)}return C>e.size&&(e=e.setSize(C)),go(e,t,_)}function Ut(e){return e<D?0:e-1>>>w<<w}n(Ne,Se);function Ne(e){return e==null?$t():bo(e)?e:$t().withMutations(function(t){var s=d(e);$e(s.size),s.forEach(function(_,C){return t.set(C,_)})})}Ne.of=function(){return this(arguments)},Ne.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ne.prototype.get=function(e,t){var s=this._map.get(e);return s!==void 0?this._list.get(s)[1]:t},Ne.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Ne.prototype.set=function(e,t){return To(this,e,t)},Ne.prototype.remove=function(e){return To(this,e,I)},Ne.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ne.prototype.__iterate=function(e,t){var s=this;return this._list.__iterate(function(_){return _&&e(_[1],_[0],s)},t)},Ne.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ne.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),s=this._list.__ensureOwner(e);return e?Ir(t,s,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=s,this)};function bo(e){return Dr(e)&&i(e)}Ne.isOrderedMap=bo,Ne.prototype[r]=!0,Ne.prototype[f]=Ne.prototype.remove;function Ir(e,t,s,_){var C=Object.create(Ne.prototype);return C.size=e?e.size:0,C._map=e,C._list=t,C.__ownerID=s,C.__hash=_,C}var Oo;function $t(){return Oo||(Oo=Ir(ut(),Br()))}function To(e,t,s){var _=e._map,C=e._list,R=_.get(t),M=R!==void 0,q,U;if(s===I){if(!M)return e;C.size>=D&&C.size>=_.size*2?(U=C.filter(function(z,V){return z!==void 0&&R!==V}),q=U.toKeyedSeq().map(function(z){return z[0]}).flip().toMap(),e.__ownerID&&(q.__ownerID=U.__ownerID=e.__ownerID)):(q=_.remove(t),U=R===C.size-1?C.pop():C.set(R,void 0))}else if(M){if(s===C.get(R)[1])return e;q=_,U=C.set(R,[t,s])}else q=_.set(t,C.size),U=C.set(C.size,[t,s]);return e.__ownerID?(e.size=q.size,e._map=q,e._list=U,e.__hash=void 0,e):Ir(q,U)}n(rt,Z);function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=Kr(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var s=this,_=ko(this,e,t);return this._useKeys||(_.valueSeq=function(){return s._iter.toSeq().map(e,t)}),_},rt.prototype.__iterate=function(e,t){var s=this,_;return this._iter.__iterate(this._useKeys?function(C,R){return e(C,R,s)}:(_=t?Ao(this):0,function(C){return e(C,t?--_:_++,s)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var s=this._iter.__iterator(X,t),_=t?Ao(this):0;return new ie(function(){var C=s.next();return C.done?C:ue(e,t?--_:_++,C.value,C)})},rt.prototype[r]=!0,n(Bt,J);function Bt(e){this._iter=e,this.size=e.size}Bt.prototype.includes=function(e){return this._iter.includes(e)},Bt.prototype.__iterate=function(e,t){var s=this,_=0;return this._iter.__iterate(function(C){return e(C,_++,s)},t)},Bt.prototype.__iterator=function(e,t){var s=this._iter.__iterator(X,t),_=0;return new ie(function(){var C=s.next();return C.done?C:ue(e,_++,C.value,C)})},n(xt,re);function xt(e){this._iter=e,this.size=e.size}xt.prototype.has=function(e){return this._iter.includes(e)},xt.prototype.__iterate=function(e,t){var s=this;return this._iter.__iterate(function(_){return e(_,_,s)},t)},xt.prototype.__iterator=function(e,t){var s=this._iter.__iterator(X,t);return new ie(function(){var _=s.next();return _.done?_:ue(e,_.value,_.value,_)})},n(It,Z);function It(e){this._iter=e,this.size=e.size}It.prototype.entrySeq=function(){return this._iter.toSeq()},It.prototype.__iterate=function(e,t){var s=this;return this._iter.__iterate(function(_){if(_){Mo(_);var C=c(_);return e(C?_.get(1):_[1],C?_.get(0):_[0],s)}},t)},It.prototype.__iterator=function(e,t){var s=this._iter.__iterator(X,t);return new ie(function(){for(;;){var _=s.next();if(_.done)return _;var C=_.value;if(C){Mo(C);var R=c(C);return ue(e,R?C.get(0):C[0],R?C.get(1):C[1],_)}}})},Bt.prototype.cacheResult=rt.prototype.cacheResult=xt.prototype.cacheResult=It.prototype.cacheResult=Nr;function Ro(e){var t=st(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var s=e.reverse.apply(this);return s.flip=function(){return e.reverse()},s},t.has=function(s){return e.includes(s)},t.includes=function(s){return e.has(s)},t.cacheResult=Nr,t.__iterateUncached=function(s,_){var C=this;return e.__iterate(function(R,M){return s(M,R,C)!==!1},_)},t.__iteratorUncached=function(s,_){if(s===j){var C=e.__iterator(s,_);return new ie(function(){var R=C.next();if(!R.done){var M=R.value[0];R.value[0]=R.value[1],R.value[1]=M}return R})}return e.__iterator(s===X?$:X,_)},t}function ko(e,t,s){var _=st(e);return _.size=e.size,_.has=function(C){return e.has(C)},_.get=function(C,R){var M=e.get(C,I);return M===I?R:t.call(s,M,C,e)},_.__iterateUncached=function(C,R){var M=this;return e.__iterate(function(q,U,z){return C(t.call(s,q,U,z),U,M)!==!1},R)},_.__iteratorUncached=function(C,R){var M=e.__iterator(j,R);return new ie(function(){var q=M.next();if(q.done)return q;var U=q.value,z=U[0];return ue(C,z,t.call(s,U[1],z,e),q)})},_}function Kr(e,t){var s=st(e);return s._iter=e,s.size=e.size,s.reverse=function(){return e},e.flip&&(s.flip=function(){var _=Ro(e);return _.reverse=function(){return e.flip()},_}),s.get=function(_,C){return e.get(t?_:-1-_,C)},s.has=function(_){return e.has(t?_:-1-_)},s.includes=function(_){return e.includes(_)},s.cacheResult=Nr,s.__iterate=function(_,C){var R=this;return e.__iterate(function(M,q){return _(M,q,R)},!C)},s.__iterator=function(_,C){return e.__iterator(_,!C)},s}function Bo(e,t,s,_){var C=st(e);return _&&(C.has=function(R){var M=e.get(R,I);return M!==I&&!!t.call(s,M,R,e)},C.get=function(R,M){var q=e.get(R,I);return q!==I&&t.call(s,q,R,e)?q:M}),C.__iterateUncached=function(R,M){var q=this,U=0;return e.__iterate(function(z,V,ne){if(t.call(s,z,V,ne))return U++,R(z,_?V:U-1,q)},M),U},C.__iteratorUncached=function(R,M){var q=e.__iterator(j,M),U=0;return new ie(function(){for(;;){var z=q.next();if(z.done)return z;var V=z.value,ne=V[0],ae=V[1];if(t.call(s,ae,ne,e))return ue(R,_?ne:U++,ae,z)}})},C}function fl(e,t,s){var _=Se().asMutable();return e.__iterate(function(C,R){_.update(t.call(s,C,R,e),0,function(M){return M+1})}),_.asImmutable()}function ll(e,t,s){var _=h(e),C=(i(e)?Ne():Se()).asMutable();e.__iterate(function(M,q){C.update(t.call(s,M,q,e),function(U){return U=U||[],U.push(_?[q,M]:M),U})});var R=No(e);return C.map(function(M){return Oe(e,R(M))})}function Mr(e,t,s,_){var C=e.size;if(t!==void 0&&(t=t|0),s!==void 0&&(s=s|0),P(t,s,C))return e;var R=H(t,C),M=G(s,C);if(R!==R||M!==M)return Mr(e.toSeq().cacheResult(),t,s,_);var q=M-R,U;q===q&&(U=q<0?0:q);var z=st(e);return z.size=U===0?U:e.size&&U||void 0,!_&&Fe(e)&&U>=0&&(z.get=function(V,ne){return V=L(this,V),V>=0&&V<U?e.get(V+R,ne):ne}),z.__iterateUncached=function(V,ne){var ae=this;if(U===0)return 0;if(ne)return this.cacheResult().__iterate(V,ne);var de=0,ye=!0,Ie=0;return e.__iterate(function(at,lt){if(!(ye&&(ye=de++<R)))return Ie++,V(at,_?lt:Ie-1,ae)!==!1&&Ie!==U}),Ie},z.__iteratorUncached=function(V,ne){if(U!==0&&ne)return this.cacheResult().__iterator(V,ne);var ae=U!==0&&e.__iterator(V,ne),de=0,ye=0;return new ie(function(){for(;de++<R;)ae.next();if(++ye>U)return ve();var Ie=ae.next();return _||V===X?Ie:V===$?ue(V,ye-1,void 0,Ie):ue(V,ye-1,Ie.value[1],Ie)})},z}function vl(e,t,s){var _=st(e);return _.__iterateUncached=function(C,R){var M=this;if(R)return this.cacheResult().__iterate(C,R);var q=0;return e.__iterate(function(U,z,V){return t.call(s,U,z,V)&&++q&&C(U,z,M)}),q},_.__iteratorUncached=function(C,R){var M=this;if(R)return this.cacheResult().__iterator(C,R);var q=e.__iterator(j,R),U=!0;return new ie(function(){if(!U)return ve();var z=q.next();if(z.done)return z;var V=z.value,ne=V[0],ae=V[1];return t.call(s,ae,ne,M)?C===j?z:ue(C,ne,ae,z):(U=!1,ve())})},_}function xo(e,t,s,_){var C=st(e);return C.__iterateUncached=function(R,M){var q=this;if(M)return this.cacheResult().__iterate(R,M);var U=!0,z=0;return e.__iterate(function(V,ne,ae){if(!(U&&(U=t.call(s,V,ne,ae))))return z++,R(V,_?ne:z-1,q)}),z},C.__iteratorUncached=function(R,M){var q=this;if(M)return this.cacheResult().__iterator(R,M);var U=e.__iterator(j,M),z=!0,V=0;return new ie(function(){var ne,ae,de;do{if(ne=U.next(),ne.done)return _||R===X?ne:R===$?ue(R,V++,void 0,ne):ue(R,V++,ne.value[1],ne);var ye=ne.value;ae=ye[0],de=ye[1],z&&(z=t.call(s,de,ae,q))}while(z);return R===j?ne:ue(R,ae,de,ne)})},C}function dl(e,t){var s=h(e),_=[e].concat(t).map(function(M){return c(M)?s&&(M=d(M)):M=s?et(M):ce(Array.isArray(M)?M:[M]),M}).filter(function(M){return M.size!==0});if(_.length===0)return e;if(_.length===1){var C=_[0];if(C===e||s&&h(C)||S(e)&&S(C))return C}var R=new me(_);return s?R=R.toKeyedSeq():S(e)||(R=R.toSetSeq()),R=R.flatten(!0),R.size=_.reduce(function(M,q){if(M!==void 0){var U=q.size;if(U!==void 0)return M+U}},0),R}function Io(e,t,s){var _=st(e);return _.__iterateUncached=function(C,R){var M=0,q=!1;function U(z,V){var ne=this;z.__iterate(function(ae,de){return(!t||V<t)&&c(ae)?U(ae,V+1):C(ae,s?de:M++,ne)===!1&&(q=!0),!q},R)}return U(e,0),M},_.__iteratorUncached=function(C,R){var M=e.__iterator(C,R),q=[],U=0;return new ie(function(){for(;M;){var z=M.next();if(z.done!==!1){M=q.pop();continue}var V=z.value;if(C===j&&(V=V[1]),(!t||q.length<t)&&c(V))q.push(M),M=V.__iterator(C,R);else return s?z:ue(C,U++,V,z)}return ve()})},_}function pl(e,t,s){var _=No(e);return e.toSeq().map(function(C,R){return _(t.call(s,C,R,e))}).flatten(!0)}function hl(e,t){var s=st(e);return s.size=e.size&&e.size*2-1,s.__iterateUncached=function(_,C){var R=this,M=0;return e.__iterate(function(q,U){return(!M||_(t,M++,R)!==!1)&&_(q,M++,R)!==!1},C),M},s.__iteratorUncached=function(_,C){var R=e.__iterator(X,C),M=0,q;return new ie(function(){return(!q||M%2)&&(q=R.next(),q.done)?q:M%2?ue(_,M++,t):ue(_,M++,q.value,q)})},s}function Kt(e,t,s){t||(t=Lo);var _=h(e),C=0,R=e.toSeq().map(function(M,q){return[q,M,C++,s?s(M,q,e):M]}).toArray();return R.sort(function(M,q){return t(M[3],q[3])||M[2]-q[2]}).forEach(_?function(M,q){R[q].length=2}:function(M,q){R[q]=M[1]}),_?Z(R):S(e)?J(R):re(R)}function Zt(e,t,s){if(t||(t=Lo),s){var _=e.toSeq().map(function(C,R){return[C,s(C,R,e)]}).reduce(function(C,R){return Ko(t,C[1],R[1])?R:C});return _&&_[0]}else return e.reduce(function(C,R){return Ko(t,C,R)?R:C})}function Ko(e,t,s){var _=e(s,t);return _===0&&s!==t&&(s==null||s!==s)||_>0}function Ar(e,t,s){var _=st(e);return _.size=new me(s).map(function(C){return C.size}).min(),_.__iterate=function(C,R){for(var M=this.__iterator(X,R),q,U=0;!(q=M.next()).done&&C(q.value,U++,this)!==!1;);return U},_.__iteratorUncached=function(C,R){var M=s.map(function(z){return z=a(z),Q(R?z.reverse():z)}),q=0,U=!1;return new ie(function(){var z;return U||(z=M.map(function(V){return V.next()}),U=z.some(function(V){return V.done})),U?ve():ue(C,q++,t.apply(null,z.map(function(V){return V.value})))})},_}function Oe(e,t){return Fe(e)?t:e.constructor(t)}function Mo(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ao(e){return $e(e.size),A(e)}function No(e){return h(e)?d:S(e)?p:v}function st(e){return Object.create((h(e)?Z:S(e)?J:re).prototype)}function Nr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Y.prototype.cacheResult.call(this)}function Lo(e,t){return e>t?1:e<t?-1:0}function Fo(e){var t=Q(e);if(!t){if(!ee(e))throw new TypeError("Expected iterable or array-like: "+e);t=Q(a(e))}return t}n(Ze,At);function Ze(e,t){var s,_=function(M){if(M instanceof _)return M;if(!(this instanceof _))return new _(M);if(!s){s=!0;var q=Object.keys(e);gl(C,q),C.size=q.length,C._name=t,C._keys=q,C._defaultValues=e}this._map=Se(M)},C=_.prototype=Object.create(Pe);return C.constructor=_,_}Ze.prototype.toString=function(){return this.__toString(qo(this)+" {","}")},Ze.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Ze.prototype.get=function(e,t){if(!this.has(e))return t;var s=this._defaultValues[e];return this._map?this._map.get(e,s):s},Ze.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Qt(this,ut()))},Ze.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+qo(this));var s=this._map&&this._map.set(e,t);return this.__ownerID||s===this._map?this:Qt(this,s)},Ze.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Qt(this,t)},Ze.prototype.wasAltered=function(){return this._map.wasAltered()},Ze.prototype.__iterator=function(e,t){var s=this;return d(this._defaultValues).map(function(_,C){return s.get(C)}).__iterator(e,t)},Ze.prototype.__iterate=function(e,t){var s=this;return d(this._defaultValues).map(function(_,C){return s.get(C)}).__iterate(e,t)},Ze.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Qt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Pe=Ze.prototype;Pe[f]=Pe.remove,Pe.deleteIn=Pe.removeIn=_e.removeIn,Pe.merge=_e.merge,Pe.mergeWith=_e.mergeWith,Pe.mergeIn=_e.mergeIn,Pe.mergeDeep=_e.mergeDeep,Pe.mergeDeepWith=_e.mergeDeepWith,Pe.mergeDeepIn=_e.mergeDeepIn,Pe.setIn=_e.setIn,Pe.update=_e.update,Pe.updateIn=_e.updateIn,Pe.withMutations=_e.withMutations,Pe.asMutable=_e.asMutable,Pe.asImmutable=_e.asImmutable;function Qt(e,t,s){var _=Object.create(Object.getPrototypeOf(e));return _._map=t,_.__ownerID=s,_}function qo(e){return e._name||e.constructor.name||"Record"}function gl(e,t){try{t.forEach(yl.bind(void 0,e))}catch{}}function yl(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(s){jt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,s)}})}n(xe,Jt);function xe(e){return e==null?qr():Lr(e)&&!i(e)?e:qr().withMutations(function(t){var s=v(e);$e(s.size),s.forEach(function(_){return t.add(_)})})}xe.of=function(){return this(arguments)},xe.fromKeys=function(e){return this(d(e).keySeq())},xe.prototype.toString=function(){return this.__toString("Set {","}")},xe.prototype.has=function(e){return this._map.has(e)},xe.prototype.add=function(e){return Fr(this,this._map.set(e,!0))},xe.prototype.remove=function(e){return Fr(this,this._map.remove(e))},xe.prototype.clear=function(){return Fr(this,this._map.clear())},xe.prototype.union=function(){var e=g.call(arguments,0);return e=e.filter(function(t){return t.size!==0}),e.length===0?this:this.size===0&&!this.__ownerID&&e.length===1?this.constructor(e[0]):this.withMutations(function(t){for(var s=0;s<e.length;s++)v(e[s]).forEach(function(_){return t.add(_)})})},xe.prototype.intersect=function(){var e=g.call(arguments,0);if(e.length===0)return this;e=e.map(function(s){return v(s)});var t=this;return this.withMutations(function(s){t.forEach(function(_){e.every(function(C){return C.includes(_)})||s.remove(_)})})},xe.prototype.subtract=function(){var e=g.call(arguments,0);if(e.length===0)return this;e=e.map(function(s){return v(s)});var t=this;return this.withMutations(function(s){t.forEach(function(_){e.some(function(C){return C.includes(_)})&&s.remove(_)})})},xe.prototype.merge=function(){return this.union.apply(this,arguments)},xe.prototype.mergeWith=function(e){var t=g.call(arguments,1);return this.union.apply(this,t)},xe.prototype.sort=function(e){return ct(Kt(this,e))},xe.prototype.sortBy=function(e,t){return ct(Kt(this,t,e))},xe.prototype.wasAltered=function(){return this._map.wasAltered()},xe.prototype.__iterate=function(e,t){var s=this;return this._map.__iterate(function(_,C){return e(C,C,s)},t)},xe.prototype.__iterator=function(e,t){return this._map.map(function(s,_){return _}).__iterator(e,t)},xe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)};function Lr(e){return!!(e&&e[Po])}xe.isSet=Lr;var Po="@@__IMMUTABLE_SET__@@",Qe=xe.prototype;Qe[Po]=!0,Qe[f]=Qe.remove,Qe.mergeDeep=Qe.merge,Qe.mergeDeepWith=Qe.mergeWith,Qe.withMutations=_e.withMutations,Qe.asMutable=_e.asMutable,Qe.asImmutable=_e.asImmutable,Qe.__empty=qr,Qe.__make=Uo;function Fr(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function Uo(e,t){var s=Object.create(Qe);return s.size=e?e.size:0,s._map=e,s.__ownerID=t,s}var zo;function qr(){return zo||(zo=Uo(ut()))}n(ct,xe);function ct(e){return e==null?Pr():Ho(e)?e:Pr().withMutations(function(t){var s=v(e);$e(s.size),s.forEach(function(_){return t.add(_)})})}ct.of=function(){return this(arguments)},ct.fromKeys=function(e){return this(d(e).keySeq())},ct.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Ho(e){return Lr(e)&&i(e)}ct.isOrderedSet=Ho;var er=ct.prototype;er[r]=!0,er.__empty=Pr,er.__make=Vo;function Vo(e,t){var s=Object.create(er);return s.size=e?e.size:0,s._map=e,s.__ownerID=t,s}var Wo;function Pr(){return Wo||(Wo=Vo($t()))}n(Le,Ot);function Le(e){return e==null?Ur():Go(e)?e:Ur().unshiftAll(e)}Le.of=function(){return this(arguments)},Le.prototype.toString=function(){return this.__toString("Stack [","]")},Le.prototype.get=function(e,t){var s=this._head;for(e=L(this,e);s&&e--;)s=s.next;return s?s.value:t},Le.prototype.peek=function(){return this._head&&this._head.value},Le.prototype.push=function(){if(arguments.length===0)return this;for(var e=this.size+arguments.length,t=this._head,s=arguments.length-1;s>=0;s--)t={value:arguments[s],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):zt(e,t)},Le.prototype.pushAll=function(e){if(e=p(e),e.size===0)return this;$e(e.size);var t=this.size,s=this._head;return e.reverse().forEach(function(_){t++,s={value:_,next:s}}),this.__ownerID?(this.size=t,this._head=s,this.__hash=void 0,this.__altered=!0,this):zt(t,s)},Le.prototype.pop=function(){return this.slice(1)},Le.prototype.unshift=function(){return this.push.apply(this,arguments)},Le.prototype.unshiftAll=function(e){return this.pushAll(e)},Le.prototype.shift=function(){return this.pop.apply(this,arguments)},Le.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):Ur()},Le.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var s=H(e,this.size),_=G(t,this.size);if(_!==this.size)return Ot.prototype.slice.call(this,e,t);for(var C=this.size-s,R=this._head;s--;)R=R.next;return this.__ownerID?(this.size=C,this._head=R,this.__hash=void 0,this.__altered=!0,this):zt(C,R)},Le.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?zt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Le.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var s=0,_=this._head;_&&e(_.value,s++,this)!==!1;)_=_.next;return s},Le.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var s=0,_=this._head;return new ie(function(){if(_){var C=_.value;return _=_.next,ue(e,s++,C)}return ve()})};function Go(e){return!!(e&&e[jo])}Le.isStack=Go;var jo="@@__IMMUTABLE_STACK__@@",Mt=Le.prototype;Mt[jo]=!0,Mt.withMutations=_e.withMutations,Mt.asMutable=_e.asMutable,Mt.asImmutable=_e.asImmutable,Mt.wasAltered=_e.wasAltered;function zt(e,t,s,_){var C=Object.create(Mt);return C.size=e,C._head=t,C.__ownerID=s,C.__hash=_,C.__altered=!1,C}var Jo;function Ur(){return Jo||(Jo=zt(0))}function ft(e,t){var s=function(_){e.prototype[_]=t[_]};return Object.keys(t).forEach(s),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(s),e}a.Iterator=ie,ft(a,{toArray:function(){$e(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,s){e[s]=t}),e},toIndexedSeq:function(){return new Bt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&typeof e.toJS=="function"?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&typeof e.toJSON=="function"?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return Se(this.toKeyedSeq())},toObject:function(){$e(this.size);var e={};return this.__iterate(function(t,s){e[s]=t}),e},toOrderedMap:function(){return Ne(this.toKeyedSeq())},toOrderedSet:function(){return ct(h(this)?this.valueSeq():this)},toSet:function(){return xe(h(this)?this.valueSeq():this)},toSetSeq:function(){return new xt(this)},toSeq:function(){return S(this)?this.toIndexedSeq():h(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Le(h(this)?this.valueSeq():this)},toList:function(){return ke(h(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return this.size===0?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=g.call(arguments,0);return Oe(this,dl(this,e))},includes:function(e){return this.some(function(t){return Re(t,e)})},entries:function(){return this.__iterator(j)},every:function(e,t){$e(this.size);var s=!0;return this.__iterate(function(_,C,R){if(!e.call(t,_,C,R))return s=!1,!1}),s},filter:function(e,t){return Oe(this,Bo(this,e,t,!0))},find:function(e,t,s){var _=this.findEntry(e,t);return _?_[1]:s},findEntry:function(e,t){var s;return this.__iterate(function(_,C,R){if(e.call(t,_,C,R))return s=[C,_],!1}),s},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return $e(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){$e(this.size),e=e!==void 0?""+e:",";var t="",s=!0;return this.__iterate(function(_){s?s=!1:t+=e,t+=_!=null?_.toString():""}),t},keys:function(){return this.__iterator($)},map:function(e,t){return Oe(this,ko(this,e,t))},reduce:function(e,t,s){$e(this.size);var _,C;return arguments.length<2?C=!0:_=t,this.__iterate(function(R,M,q){C?(C=!1,_=R):_=e.call(s,_,R,M,q)}),_},reduceRight:function(e,t,s){var _=this.toKeyedSeq().reverse();return _.reduce.apply(_,arguments)},reverse:function(){return Oe(this,Kr(this,!0))},slice:function(e,t){return Oe(this,Mr(this,e,t,!0))},some:function(e,t){return!this.every(rr(e),t)},sort:function(e){return Oe(this,Kt(this,e))},values:function(){return this.__iterator(X)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(e,t){return A(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return fl(this,e,t)},equals:function(e){return bt(this,e)},entrySeq:function(){var e=this;if(e._cache)return new me(e._cache);var t=e.toSeq().map(_l).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(rr(e),t)},findLast:function(e,t,s){return this.toKeyedSeq().reverse().find(e,t,s)},first:function(){return this.find(F)},flatMap:function(e,t){return Oe(this,pl(this,e,t))},flatten:function(e){return Oe(this,Io(this,e,!0))},fromEntrySeq:function(){return new It(this)},get:function(e,t){return this.find(function(s,_){return Re(_,e)},void 0,t)},getIn:function(e,t){for(var s=this,_=Fo(e),C;!(C=_.next()).done;){var R=C.value;if(s=s&&s.get?s.get(R,I):I,s===I)return t}return s},groupBy:function(e,t){return ll(this,e,t)},has:function(e){return this.get(e,I)!==I},hasIn:function(e){return this.getIn(e,I)!==I},isSubset:function(e){return e=typeof e.includes=="function"?e:a(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset=="function"?e:a(e),e.isSubset(this)},keySeq:function(){return this.toSeq().map(ml).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Zt(this,e)},maxBy:function(e,t){return Zt(this,t,e)},min:function(e){return Zt(this,e?Xo(e):$o)},minBy:function(e,t){return Zt(this,t?Xo(t):$o,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Oe(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Oe(this,xo(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(rr(e),t)},sortBy:function(e,t){return Oe(this,Kt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Oe(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Oe(this,vl(this,e,t))},takeUntil:function(e,t){return this.takeWhile(rr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Sl(this))}});var He=a.prototype;He[l]=!0,He[pe]=He.values,He.__toJS=He.toArray,He.__toStringMapper=Yo,He.inspect=He.toSource=function(){return this.toString()},He.chain=He.flatMap,He.contains=He.includes,function(){try{Object.defineProperty(He,"length",{get:function(){if(!a.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(e.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch{}}(),ft(d,{flip:function(){return Oe(this,Ro(this))},findKey:function(e,t){var s=this.findEntry(e,t);return s&&s[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return Re(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return Re(t,e)})},mapEntries:function(e,t){var s=this,_=0;return Oe(this,this.toSeq().map(function(C,R){return e.call(t,[R,C],_++,s)}).fromEntrySeq())},mapKeys:function(e,t){var s=this;return Oe(this,this.toSeq().flip().map(function(_,C){return e.call(t,_,C,s)}).flip())}});var tr=d.prototype;tr[o]=!0,tr[pe]=He.entries,tr.__toJS=He.toObject,tr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Yo(e)},ft(p,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return Oe(this,Bo(this,e,t,!1))},findIndex:function(e,t){var s=this.findEntry(e,t);return s?s[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return t===void 0?-1:t},reverse:function(){return Oe(this,Kr(this,!1))},slice:function(e,t){return Oe(this,Mr(this,e,t,!1))},splice:function(e,t){var s=arguments.length;if(t=Math.max(t|0,0),s===0||s===2&&!t)return this;e=H(e,e<0?this.count():this.size);var _=this.slice(0,e);return Oe(this,s===1?_:_.concat(B(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var s=this.toKeyedSeq().findLastKey(e,t);return s===void 0?-1:s},first:function(){return this.get(0)},flatten:function(e){return Oe(this,Io(this,e,!1))},get:function(e,t){return e=L(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(s,_){return _===e},void 0,t)},has:function(e){return e=L(this,e),e>=0&&(this.size!==void 0?this.size===1/0||e<this.size:this.indexOf(e)!==-1)},interpose:function(e){return Oe(this,hl(this,e))},interleave:function(){var e=[this].concat(B(arguments)),t=Ar(this.toSeq(),J.of,e),s=t.flatten(!0);return t.size&&(s.size=t.size*e.length),Oe(this,s)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Oe(this,xo(this,e,t,!1))},zip:function(){var e=[this].concat(B(arguments));return Oe(this,Ar(this,El,e))},zipWith:function(e){var t=B(arguments);return t[0]=this,Oe(this,Ar(this,e,t))}}),p.prototype[u]=!0,p.prototype[r]=!0,ft(v,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),v.prototype.has=He.includes,ft(Z,d.prototype),ft(J,p.prototype),ft(re,v.prototype),ft(At,d.prototype),ft(Ot,p.prototype),ft(Jt,v.prototype);function ml(e,t){return t}function _l(e,t){return[t,e]}function rr(e){return function(){return!e.apply(this,arguments)}}function Xo(e){return function(){return-e.apply(this,arguments)}}function Yo(e){return typeof e=="string"?JSON.stringify(e):e}function El(){return B(arguments)}function $o(e,t){return e<t?1:e>t?-1:0}function Sl(e){if(e.size===1/0)return 0;var t=i(e),s=h(e),_=t?1:0,C=e.__iterate(s?t?function(R,M){_=31*_+Zo(Ye(R),Ye(M))|0}:function(R,M){_=_+Zo(Ye(R),Ye(M))|0}:t?function(R){_=31*_+Ye(R)|0}:function(R){_=_+Ye(R)|0});return wl(C,_)}function wl(e,t){return t=Nt(t,3432918353),t=Nt(t<<15|t>>>-15,461845907),t=Nt(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Nt(t^t>>>16,2246822507),t=Nt(t^t>>>13,3266489909),t=yr(t^t>>>16),t}function Zo(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Cl={Iterable:a,Seq:Y,Collection:ht,Map:Se,OrderedMap:Ne,List:ke,Stack:Le,Set:xe,OrderedSet:ct,Record:Ze,Range:ze,Repeat:Ue,is:Re,fromJS:We};return Cl})}(zr)),zr.exports}var Hr,eu;function Ht(){if(eu)return Hr;eu=1;var y=Ce(),m=y.OrderedMap,g={createFromArray:function(a){return m(a.map(function(d){return[d.getKey(),d]}))}};return Hr=g,Hr}var Vr,tu;function nt(){if(tu)return Vr;tu=1;function y(E,i){E.prototype=Object.create(i.prototype),E.prototype.constructor=E,E.__proto__=i}var m=Ce(),g=m.Map,n=m.OrderedSet,a=m.Record,d=n(),p={style:d,entity:null},v=a(p),c=function(E){y(i,E);function i(){return E.apply(this,arguments)||this}var l=i.prototype;return l.getStyle=function(){return this.get("style")},l.getEntity=function(){return this.get("entity")},l.hasStyle=function(u){return this.getStyle().includes(u)},i.applyStyle=function(u,r){var f=u.set("style",u.getStyle().add(r));return i.create(f)},i.removeStyle=function(u,r){var f=u.set("style",u.getStyle().remove(r));return i.create(f)},i.applyEntity=function(u,r){var f=u.getEntity()===r?u:u.set("entity",r);return i.create(f)},i.create=function(u){if(!u)return h;var r={style:d,entity:null},f=g(r).merge(u),w=S.get(f);if(w)return w;var D=new i(f);return S=S.set(f,D),D},i.fromJS=function(u){var r=u.style,f=u.entity;return new i({style:Array.isArray(r)?n(r):r,entity:Array.isArray(f)?n(f):f})},i}(v),h=new c,S=g([[g(p),h]]);return c.EMPTY=h,Vr=c,Vr}var Wr,ru;function Vt(){if(ru)return Wr;ru=1;function y(m,g,n,a){if(m.size){var d=0;m.reduce(function(p,v,c){return g(p,v)||(n(p)&&a(d,c),d=c),v}),n(m.last())&&a(d,m.count())}}return Wr=y,Wr}var Gr,nu;function Et(){if(nu)return Gr;nu=1;function y(r,f){r.prototype=Object.create(f.prototype),r.prototype.constructor=r,r.__proto__=f}var m=nt(),g=Vt(),n=Ce(),a=n.List,d=n.Map,p=n.OrderedSet,v=n.Record,c=n.Repeat,h=p(),S={key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:d()},E=v(S),i=function(f){if(!f)return f;var w=f.characterList,D=f.text;return D&&!w&&(f.characterList=a(c(m.EMPTY,D.length))),f},l=function(r){y(f,r);function f(D){return r.call(this,i(D))||this}var w=f.prototype;return w.getKey=function(){return this.get("key")},w.getType=function(){return this.get("type")},w.getText=function(){return this.get("text")},w.getCharacterList=function(){return this.get("characterList")},w.getLength=function(){return this.getText().length},w.getDepth=function(){return this.get("depth")},w.getData=function(){return this.get("data")},w.getInlineStyleAt=function(O){var I=this.getCharacterList().get(O);return I?I.getStyle():h},w.getEntityAt=function(O){var I=this.getCharacterList().get(O);return I?I.getEntity():null},w.findStyleRanges=function(O,I){g(this.getCharacterList(),o,O,I)},w.findEntityRanges=function(O,I){g(this.getCharacterList(),u,O,I)},f}(E);function o(r,f){return r.getStyle()===f.getStyle()}function u(r,f){return r.getEntity()===f.getEntity()}return Gr=l,Gr}var jr,iu;function it(){if(iu)return jr;iu=1;function y(u,r){u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.__proto__=r}var m=nt(),g=Vt(),n=Ce(),a=n.List,d=n.Map,p=n.OrderedSet,v=n.Record,c=n.Repeat,h=p(),S={parent:null,characterList:a(),data:d(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},E=function(r,f){return r.getStyle()===f.getStyle()},i=function(r,f){return r.getEntity()===f.getEntity()},l=function(r){if(!r)return r;var f=r.characterList,w=r.text;return w&&!f&&(r.characterList=a(c(m.EMPTY,w.length))),r},o=function(u){y(r,u);function r(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S;return u.call(this,l(w))||this}var f=r.prototype;return f.getKey=function(){return this.get("key")},f.getType=function(){return this.get("type")},f.getText=function(){return this.get("text")},f.getCharacterList=function(){return this.get("characterList")},f.getLength=function(){return this.getText().length},f.getDepth=function(){return this.get("depth")},f.getData=function(){return this.get("data")},f.getInlineStyleAt=function(D){var O=this.getCharacterList().get(D);return O?O.getStyle():h},f.getEntityAt=function(D){var O=this.getCharacterList().get(D);return O?O.getEntity():null},f.getChildKeys=function(){return this.get("children")},f.getParentKey=function(){return this.get("parent")},f.getPrevSiblingKey=function(){return this.get("prevSibling")},f.getNextSiblingKey=function(){return this.get("nextSibling")},f.findStyleRanges=function(D,O){g(this.getCharacterList(),E,D,O)},f.findEntityRanges=function(D,O){g(this.getCharacterList(),i,D,O)},r}(v(S));return jr=o,jr}var Jr,au;function bl(){if(au)return Jr;au=1;var y=nt(),m=Ce(),g=m.Map,n={add:function(p,v,c){return a(p,v,c,!0)},remove:function(p,v,c){return a(p,v,c,!1)}};function a(d,p,v,c){var h=d.getBlockMap(),S=p.getStartKey(),E=p.getStartOffset(),i=p.getEndKey(),l=p.getEndOffset(),o=h.skipUntil(function(u,r){return r===S}).takeUntil(function(u,r){return r===i}).concat(g([[i,h.get(i)]])).map(function(u,r){var f,w;S===i?(f=E,w=l):(f=r===S?E:0,w=r===i?l:u.getLength());for(var D=u.getCharacterList(),O;f<w;)O=D.get(f),D=D.set(f,c?y.applyStyle(O,v):y.removeStyle(O,v)),f++;return u.set("characterList",D)});return d.merge({blockMap:h.merge(o),selectionBefore:p,selectionAfter:p})}return Jr=n,Jr}var Xr,ou;function Ol(){if(ou)return Xr;ou=1;var y=nt();function m(g,n,a,d){for(var p=n,v=g.getCharacterList();p<a;)v=v.set(p,y.applyEntity(v.get(p),d)),p++;return g.set("characterList",v)}return Xr=m,Xr}var Yr,uu;function Tl(){if(uu)return Yr;uu=1;var y=Ol(),m=Ce();function g(n,a,d){var p=n.getBlockMap(),v=a.getStartKey(),c=a.getStartOffset(),h=a.getEndKey(),S=a.getEndOffset(),E=p.skipUntil(function(i,l){return l===v}).takeUntil(function(i,l){return l===h}).toOrderedMap().merge(m.OrderedMap([[h,p.get(h)]])).map(function(i,l){var o=l===v?c:0,u=l===h?S:i.getLength();return y(i,o,u,d)});return n.merge({blockMap:p.merge(E),selectionBefore:a,selectionAfter:a})}return Yr=g,Yr}var $r,su;function Rl(){if(su)return $r;su=1;var y={getRemovalRange:function(g,n,a,d,p){var v=a.split(" ");v=v.map(function(f,w){if(p==="forward"){if(w>0)return" "+f}else if(w<v.length-1)return f+" ";return f});for(var c=d,h,S,E=null,i=null,l=0;l<v.length;l++){if(S=v[l],h=c+S.length,g<h&&c<n)E!==null||(E=c),i=h;else if(E!==null)break;c=h}var o=d+a.length,u=E===d,r=i===o;return(!u&&r||u&&!r)&&(p==="forward"?i!==o&&i++:E!==d&&E--),{start:E,end:i}}};return $r=y,$r}var Zr,cu;function De(){if(cu)return Zr;cu=1;var y=process.env.NODE_ENV!=="production"?function(g){if(g===void 0)throw new Error("invariant(...): Second argument must be a string.")}:function(g){};function m(g,n){for(var a=arguments.length,d=new Array(a>2?a-2:0),p=2;p<a;p++)d[p-2]=arguments[p];if(y(n),!g){var v;if(n===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;v=new Error(n.replace(/%s/g,function(){return String(d[c++])})),v.name="Invariant Violation"}throw v.framesToPop=1,v}}return Zr=m,Zr}var Qr,fu;function kl(){if(fu)return Qr;fu=1;var y=De();function m(g,n){var a=[];return g.findEntityRanges(function(d){return d.getEntity()===n},function(d,p){a.push({start:d,end:p})}),a.length||(process.env.NODE_ENV!=="production"?y(!1,"Entity key not found in this range."):y(!1)),a}return Qr=m,Qr}var en,lu;function Bl(){if(lu)return en;lu=1;var y=Rl(),m=kl(),g=De();function n(d,p,v,c,h){var S=c.getStartOffset(),E=c.getEndOffset(),i=p.getEntityAt(S),l=v.getEntityAt(E-1);if(!i&&!l)return c;var o=c;if(i&&i===l)o=a(d,p,o,h,i,!0,!0);else if(i&&l){var u=a(d,p,o,h,i,!1,!0),r=a(d,v,o,h,l,!1,!1);o=o.merge({anchorOffset:u.getAnchorOffset(),focusOffset:r.getFocusOffset(),isBackward:!1})}else if(i){var f=a(d,p,o,h,i,!1,!0);o=o.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(l){var w=a(d,v,o,h,l,!1,!1);o=o.merge({focusOffset:w.getEndOffset(),isBackward:!1})}return o}function a(d,p,v,c,h,S,E){var i=v.getStartOffset(),l=v.getEndOffset(),o=d.__get(h),u=o.getMutability(),r=E?i:l;if(u==="MUTABLE")return v;var f=m(p,h).filter(function(O){return r<=O.end&&r>=O.start});f.length!=1&&(process.env.NODE_ENV!=="production"?g(!1,"There should only be one entity range within this removal range."):g(!1));var w=f[0];if(u==="IMMUTABLE")return v.merge({anchorOffset:w.start,focusOffset:w.end,isBackward:!1});S||(E?l=w.end:i=w.start);var D=y.getRemovalRange(i,l,p.getText().slice(w.start,w.end),w.start,c);return v.merge({anchorOffset:D.start,focusOffset:D.end,isBackward:!1})}return en=n,en}var tn,vu;function vt(){if(vu)return tn;vu=1;var y={},m=Math.pow(2,24);function g(){for(var n;n===void 0||y.hasOwnProperty(n)||!isNaN(+n);)n=Math.floor(Math.random()*m).toString(32);return y[n]=!0,n}return tn=g,tn}var rn,du;function vf(){if(du)return rn;du=1;var y=it(),m=vt(),g=Ce(),n=g.OrderedMap,a=function(c){var h={},S;return n(c.withMutations(function(E){E.forEach(function(i,l){var o=i.getKey(),u=i.getNextSiblingKey(),r=i.getPrevSiblingKey(),f=i.getChildKeys(),w=i.getParentKey(),D=m();if(h[o]=D,u){var O=E.get(u);O?E.setIn([u,"prevSibling"],D):E.setIn([o,"nextSibling"],null)}if(r){var I=E.get(r);I?E.setIn([r,"nextSibling"],D):E.setIn([o,"prevSibling"],null)}if(w&&E.get(w)){var k=E.get(w),K=k.getChildKeys();E.setIn([w,"children"],K.set(K.indexOf(i.getKey()),D))}else E.setIn([o,"parent"],null),S&&(E.setIn([S.getKey(),"nextSibling"],D),E.setIn([o,"prevSibling"],h[S.getKey()])),S=E.get(o);f.forEach(function(x){var T=E.get(x);T?E.setIn([x,"parent"],D):E.setIn([o,"children"],i.getChildKeys().filter(function(b){return b!==x}))})})}).toArray().map(function(E){return[h[E.getKey()],E.set("key",h[E.getKey()])]}))},d=function(c){return n(c.toArray().map(function(h){var S=m();return[S,h.set("key",S)]}))},p=function(c){var h=c.first()instanceof y;return h?a(c):d(c)};return rn=p,rn}var nn,pu;function df(){if(pu)return nn;pu=1;var y=nt(),m=Vt(),g=De();function n(p,v){var c=p.getBlockMap(),h=p.getEntityMap(),S={},E=v.getStartKey(),i=v.getStartOffset(),l=c.get(E),o=d(h,l,i);o!==l&&(S[E]=o);var u=v.getEndKey(),r=v.getEndOffset(),f=c.get(u);E===u&&(f=o);var w=d(h,f,r);return w!==f&&(S[u]=w),Object.keys(S).length?p.merge({blockMap:c.merge(S),selectionAfter:v}):p.set("selectionAfter",v)}function a(p,v,c){var h;return m(p,function(S,E){return S.getEntity()===E.getEntity()},function(S){return S.getEntity()===v},function(S,E){S<=c&&E>=c&&(h={start:S,end:E})}),typeof h!="object"&&(process.env.NODE_ENV!=="production"?g(!1,"Removal range must exist within character list."):g(!1)),h}function d(p,v,c){var h=v.getCharacterList(),S=c>0?h.get(c-1):void 0,E=c<h.count()?h.get(c):void 0,i=S?S.getEntity():void 0,l=E?E.getEntity():void 0;if(l&&l===i){var o=p.__get(l);if(o.getMutability()!=="MUTABLE"){for(var u=a(h,l,c),r=u.start,f=u.end,w;r<f;)w=h.get(r),h=h.set(r,y.applyEntity(w,null)),r++;return v.set("characterList",h)}}return v}return nn=n,nn}var an,hu;function ar(){if(hu)return an;hu=1;var y=vf(),m=df(),g=function(a,d){var p=d.getStartKey(),v=d.getStartOffset(),c=d.getEndKey(),h=d.getEndOffset(),S=m(a,d),E=S.getBlockMap(),i=E.keySeq(),l=i.indexOf(p),o=i.indexOf(c)+1;return y(E.slice(l,o).map(function(u,r){var f=u.getText(),w=u.getCharacterList();return p===c?u.merge({text:f.slice(v,h),characterList:w.slice(v,h)}):r===p?u.merge({text:f.slice(v),characterList:w.slice(v)}):r===c?u.merge({text:f.slice(0,h),characterList:w.slice(0,h)}):u}))};return an=g,an}var on,gu;function pf(){if(gu)return on;gu=1;function y(m,g,n){var a=m;if(n===a.count())g.forEach(function(v){a=a.push(v)});else if(n===0)g.reverse().forEach(function(v){a=a.unshift(v)});else{var d=a.slice(0,n),p=a.slice(n);a=d.concat(g,p).toList()}return a}return on=y,on}var un,yu;function xl(){if(yu)return un;yu=1;var y=Ht(),m=it(),g=Ce(),n=pf(),a=De(),d=vf(),p=g.List,v=function(u,r,f,w,D,O){var I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",k=f.get(D),K=k.getText(),x=k.getCharacterList(),T=D,b=O+w.getText().length,B=null;switch(I){case"MERGE_OLD_DATA_TO_NEW_DATA":B=w.getData().merge(k.getData());break;case"REPLACE_WITH_NEW_DATA":B=w.getData();break}var A=k.getType();K&&A==="unstyled"&&(A=w.getType());var L=k.merge({text:K.slice(0,O)+w.getText()+K.slice(O),characterList:n(x,w.getCharacterList(),O),type:A,data:B});return u.merge({blockMap:f.set(D,L),selectionBefore:r,selectionAfter:r.merge({anchorKey:T,anchorOffset:b,focusKey:T,focusOffset:b,isBackward:!1})})},c=function(u,r,f){var w=u.getText(),D=u.getCharacterList(),O=w.slice(0,r),I=D.slice(0,r),k=f.first();return u.merge({text:O+k.getText(),characterList:I.concat(k.getCharacterList()),type:O?u.getType():k.getType(),data:k.getData()})},h=function(u,r,f){var w=u.getText(),D=u.getCharacterList(),O=w.length,I=w.slice(r,O),k=D.slice(r,O),K=f.last();return K.merge({text:K.getText()+I,characterList:K.getCharacterList().concat(k),data:K.getData()})},S=function(u,r){var f=u.getKey(),w=u,D=[];for(r.get(f)&&D.push(f);w&&w.getNextSiblingKey();){var O=w.getNextSiblingKey();if(!O)break;D.push(O),w=r.get(O)}return D},E=function(u,r,f,w){return u.withMutations(function(D){var O=f.getKey(),I=w.getKey(),k=f.getNextSiblingKey(),K=f.getParentKey(),x=S(w,u),T=x[x.length-1];if(D.get(I)?(D.setIn([O,"nextSibling"],I),D.setIn([I,"prevSibling"],O)):(D.setIn([O,"nextSibling"],w.getNextSiblingKey()),D.setIn([w.getNextSiblingKey(),"prevSibling"],O)),D.setIn([T,"nextSibling"],k),k&&D.setIn([k,"prevSibling"],T),x.forEach(function(P){return D.setIn([P,"parent"],K)}),K){var b=u.get(K),B=b.getChildKeys(),A=B.indexOf(O),L=A+1,F=B.toArray();F.splice.apply(F,[L,0].concat(x)),D.setIn([K,"children"],p(F))}})},i=function(u,r,f,w,D,O){var I=f.first()instanceof m,k=[],K=w.size,x=f.get(D),T=w.first(),b=w.last(),B=b.getLength(),A=b.getKey(),L=I&&(!x.getChildKeys().isEmpty()||!T.getChildKeys().isEmpty());f.forEach(function(P,H){if(H!==D){k.push(P);return}L?k.push(P):k.push(c(P,O,w)),w.slice(L?0:1,K-1).forEach(function(G){return k.push(G)}),k.push(h(P,O,w))});var F=y.createFromArray(k);return I&&(F=E(F,f,x,T)),u.merge({blockMap:F,selectionBefore:r,selectionAfter:r.merge({anchorKey:A,anchorOffset:B,focusKey:A,focusOffset:B,isBackward:!1})})},l=function(u,r,f){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";r.isCollapsed()||(process.env.NODE_ENV!=="production"?a(!1,"`insertFragment` should only be called with a collapsed selection state."):a(!1));var D=u.getBlockMap(),O=d(f),I=r.getStartKey(),k=r.getStartOffset(),K=D.get(I);return K instanceof m&&(K.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?a(!1,"`insertFragment` should not be called when a container node is selected."):a(!1))),O.size===1?v(u,r,D,O.first(),I,k,w):i(u,r,D,O,I,k)};return un=l,un}var sn,mu;function Il(){if(mu)return sn;mu=1;var y=Ce(),m=pf(),g=De(),n=y.Repeat;function a(d,p,v,c){p.isCollapsed()||(process.env.NODE_ENV!=="production"?g(!1,"`insertText` should only be called with a collapsed range."):g(!1));var h=null;if(v!=null&&(h=v.length),h==null||h===0)return d;var S=d.getBlockMap(),E=p.getStartKey(),i=p.getStartOffset(),l=S.get(E),o=l.getText(),u=l.merge({text:o.slice(0,i)+v+o.slice(i,l.getLength()),characterList:m(l.getCharacterList(),n(c,h).toList(),i)}),r=i+h;return d.merge({blockMap:S.set(E,u),selectionAfter:p.merge({anchorOffset:r,focusOffset:r})})}return sn=a,sn}var cn,_u;function hf(){if(_u)return cn;_u=1;var y=Ce(),m=y.Map;function g(n,a,d){var p=a.getStartKey(),v=a.getEndKey(),c=n.getBlockMap(),h=c.toSeq().skipUntil(function(S,E){return E===p}).takeUntil(function(S,E){return E===v}).concat(m([[v,c.get(v)]])).map(d);return n.merge({blockMap:c.merge(h),selectionBefore:a,selectionAfter:a})}return cn=g,cn}var fn,Eu;function gf(){if(Eu)return fn;Eu=1;var y=it(),m=function(n,a){var d=n instanceof y;if(!d)return null;var p=n.getNextSiblingKey();if(p)return p;var v=n.getParentKey();if(!v)return null;for(var c=a.get(v);c&&!c.getNextSiblingKey();){var h=c.getParentKey();c=h?a.get(h):null}return c?c.getNextSiblingKey():null};return fn=m,fn}var ln,Su;function Kl(){if(Su)return ln;Su=1;var y=it(),m=gf(),g=Ce();g.List;var n=g.Map,a=function(l,o,u){if(l){var r=o.get(l);r&&o.set(l,u(r))}},d=function(l,o){var u=[];if(!l)return u;for(var r=o.get(l);r&&r.getParentKey();){var f=r.getParentKey();f&&u.push(f),r=f?o.get(f):null}return u},p=function(l,o){var u=[];if(!l)return u;for(var r=m(l,o);r&&o.get(r);){var f=o.get(r);u.push(r),r=f.getParentKey()?m(f,o):null}return u},v=function(l,o,u){if(!l)return null;for(var r=u.get(l.getKey()).getNextSiblingKey();r&&!o.get(r);)r=u.get(r).getNextSiblingKey()||null;return r},c=function(l,o,u){if(!l)return null;for(var r=u.get(l.getKey()).getPrevSiblingKey();r&&!o.get(r);)r=u.get(r).getPrevSiblingKey()||null;return r},h=function(l,o,u,r){return l.withMutations(function(f){if(a(o.getKey(),f,function(k){return k.merge({nextSibling:v(k,f,r),prevSibling:c(k,f,r)})}),a(u.getKey(),f,function(k){return k.merge({nextSibling:v(k,f,r),prevSibling:c(k,f,r)})}),d(o.getKey(),r).forEach(function(k){return a(k,f,function(K){return K.merge({children:K.getChildKeys().filter(function(x){return f.get(x)}),nextSibling:v(K,f,r),prevSibling:c(K,f,r)})})}),a(o.getNextSiblingKey(),f,function(k){return k.merge({prevSibling:o.getPrevSiblingKey()})}),a(o.getPrevSiblingKey(),f,function(k){return k.merge({nextSibling:v(k,f,r)})}),a(u.getNextSiblingKey(),f,function(k){return k.merge({prevSibling:c(k,f,r)})}),a(u.getPrevSiblingKey(),f,function(k){return k.merge({nextSibling:u.getNextSiblingKey()})}),d(u.getKey(),r).forEach(function(k){a(k,f,function(K){return K.merge({children:K.getChildKeys().filter(function(x){return f.get(x)}),nextSibling:v(K,f,r),prevSibling:c(K,f,r)})})}),p(u,r).forEach(function(k){return a(k,f,function(K){return K.merge({nextSibling:v(K,f,r),prevSibling:c(K,f,r)})})}),l.get(o.getKey())==null&&l.get(u.getKey())!=null&&u.getParentKey()===o.getKey()&&u.getPrevSiblingKey()==null){var w=o.getPrevSiblingKey();a(u.getKey(),f,function(k){return k.merge({prevSibling:w})}),a(w,f,function(k){return k.merge({nextSibling:u.getKey()})});var D=w?l.get(w):null,O=D?D.getParentKey():null;if(o.getChildKeys().forEach(function(k){a(k,f,function(K){return K.merge({parent:O})})}),O!=null){var I=l.get(O);a(O,f,function(k){return k.merge({children:I.getChildKeys().concat(o.getChildKeys())})})}a(o.getChildKeys().find(function(k){var K=l.get(k);return K.getNextSiblingKey()===null}),f,function(k){return k.merge({nextSibling:o.getNextSiblingKey()})})}})},S=function(l,o){if(o.isCollapsed())return l;var u=l.getBlockMap(),r=o.getStartKey(),f=o.getStartOffset(),w=o.getEndKey(),D=o.getEndOffset(),O=u.get(r),I=u.get(w),k=O instanceof y,K=[];if(k){var x=I.getChildKeys(),T=d(w,u);I.getNextSiblingKey()&&(K=K.concat(T)),x.isEmpty()||(K=K.concat(T.concat([w]))),K=K.concat(d(m(I,u),u))}var b;O===I?b=E(O.getCharacterList(),f,D):b=O.getCharacterList().slice(0,f).concat(I.getCharacterList().slice(D));var B=O.merge({text:O.getText().slice(0,f)+I.getText().slice(D),characterList:b}),A=k&&f===0&&D===0&&I.getParentKey()===r&&I.getPrevSiblingKey()==null,L=A?n([[r,null]]):u.toSeq().skipUntil(function(P,H){return H===r}).takeUntil(function(P,H){return H===w}).filter(function(P,H){return K.indexOf(H)===-1}).concat(n([[w,null]])).map(function(P,H){return H===r?B:null}),F=u.merge(L).filter(function(P){return!!P});return k&&O!==I&&(F=h(F,O,I,u)),l.merge({blockMap:F,selectionBefore:o,selectionAfter:o.merge({anchorKey:r,anchorOffset:f,focusKey:r,focusOffset:f,isBackward:!1})})},E=function(l,o,u){if(o===0)for(;o<u;)l=l.shift(),o++;else if(u===l.count())for(;u>o;)l=l.pop(),u--;else{var r=l.slice(0,o),f=l.slice(u);l=r.concat(f).toList()}return l};return ln=S,ln}var vn,wu;function Ml(){if(wu)return vn;wu=1;var y=it(),m=vt(),g=Ce(),n=De(),a=hf(),d=g.List,p=g.Map,v=function(E,i,l){if(E){var o=i.get(E);o&&i.set(E,l(o))}},c=function(E,i,l){return E.withMutations(function(o){var u=i.getKey(),r=l.getKey();v(i.getParentKey(),o,function(f){var w=f.getChildKeys(),D=w.indexOf(u)+1,O=w.toArray();return O.splice(D,0,r),f.merge({children:d(O)})}),v(i.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:r})}),v(u,o,function(f){return f.merge({nextSibling:r})}),v(r,o,function(f){return f.merge({prevSibling:u})})})},h=function(E,i){i.isCollapsed()||(process.env.NODE_ENV!=="production"?n(!1,"Selection range must be collapsed."):n(!1));var l=i.getAnchorKey(),o=E.getBlockMap(),u=o.get(l),r=u.getText();if(!r){var f=u.getType();if(f==="unordered-list-item"||f==="ordered-list-item")return a(E,i,function(B){return B.merge({type:"unstyled",depth:0})})}var w=i.getAnchorOffset(),D=u.getCharacterList(),O=m(),I=u instanceof y,k=u.merge({text:r.slice(0,w),characterList:D.slice(0,w)}),K=k.merge({key:O,text:r.slice(w),characterList:D.slice(w),data:p()}),x=o.toSeq().takeUntil(function(B){return B===u}),T=o.toSeq().skipUntil(function(B){return B===u}).rest(),b=x.concat([[l,k],[O,K]],T).toOrderedMap();return I&&(u.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?n(!1,"ContentBlockNode must not have children"):n(!1)),b=c(b,k,K)),E.merge({blockMap:b,selectionBefore:i,selectionAfter:i.merge({anchorKey:O,anchorOffset:0,focusKey:O,focusOffset:0,isBackward:!1})})};return vn=h,vn}var dn,Cu;function Ge(){if(Cu)return dn;Cu=1;var y=nt(),m=bl(),g=Tl(),n=Bl(),a=ar(),d=Ce(),p=xl(),v=Il(),c=De(),h=hf(),S=df(),E=Kl(),i=Ml(),l=d.OrderedSet,o={replaceText:function(r,f,w,D,O){var I=S(r,f),k=E(I,f),K=y.create({style:D||l(),entity:O||null});return v(k,k.getSelectionAfter(),w,K)},insertText:function(r,f,w,D,O){return f.isCollapsed()||(process.env.NODE_ENV!=="production"?c(!1,"Target range must be collapsed for `insertText`."):c(!1)),o.replaceText(r,f,w,D,O)},moveText:function(r,f,w){var D=a(r,f),O=o.removeRange(r,f,"backward");return o.replaceWithFragment(O,w,D)},replaceWithFragment:function(r,f,w){var D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",O=S(r,f),I=E(O,f);return p(I,I.getSelectionAfter(),w,D)},removeRange:function(r,f,w){var D,O,I,k;f.getIsBackward()&&(f=f.merge({anchorKey:f.getFocusKey(),anchorOffset:f.getFocusOffset(),focusKey:f.getAnchorKey(),focusOffset:f.getAnchorOffset(),isBackward:!1})),D=f.getAnchorKey(),O=f.getFocusKey(),I=r.getBlockForKey(D),k=r.getBlockForKey(O);var K=f.getStartOffset(),x=f.getEndOffset(),T=I.getEntityAt(K),b=k.getEntityAt(x-1);if(D===O&&T&&T===b){var B=n(r.getEntityMap(),I,k,f,w);return E(r,B)}var A=S(r,f);return E(A,f)},splitBlock:function(r,f){var w=S(r,f),D=E(w,f);return i(D,D.getSelectionAfter())},applyInlineStyle:function(r,f,w){return m.add(r,f,w)},removeInlineStyle:function(r,f,w){return m.remove(r,f,w)},setBlockType:function(r,f,w){return h(r,f,function(D){return D.merge({type:w,depth:0})})},setBlockData:function(r,f,w){return h(r,f,function(D){return D.merge({data:w})})},mergeBlockData:function(r,f,w){return h(r,f,function(D){return D.merge({data:D.getData().merge(w)})})},applyEntity:function(r,f,w){var D=S(r,f);return g(D,f,w)}};return dn=o,dn}var pn,Du;function yf(){if(Du)return pn;Du=1;function y(m){return Object.keys(m).map(function(g){return m[g]})}return pn=y,pn}var hn,bu;function Al(){if(bu)return hn;bu=1;function y(f){for(var w=1;w<arguments.length;w++){var D=arguments[w]!=null?arguments[w]:{},O=Object.keys(D);typeof Object.getOwnPropertySymbols=="function"&&(O=O.concat(Object.getOwnPropertySymbols(D).filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable}))),O.forEach(function(I){m(f,I,D[I])})}return f}function m(f,w,D){return w in f?Object.defineProperty(f,w,{value:D,enumerable:!0,configurable:!0,writable:!0}):f[w]=D,f}function g(f,w){if(f==null)return{};var D={},O=Object.keys(f),I,k;for(k=0;k<O.length;k++)I=O[k],!(w.indexOf(I)>=0)&&(D[I]=f[I]);return D}var n=Vt(),a=yf(),d=Ce(),p=d.List,v=d.Repeat,c=d.Record,h=function(){return!0},S={start:null,end:null},E=c(S),i={start:null,end:null,decoratorKey:null,leaves:null},l=c(i),o={generate:function(w,D,O){var I=D.getLength();if(!I)return p.of(new l({start:0,end:0,decoratorKey:null,leaves:p.of(new E({start:0,end:0}))}));var k=[],K=O?O.getDecorations(D,w):p(v(null,I)),x=D.getCharacterList();return n(K,r,h,function(T,b){k.push(new l({start:T,end:b,decoratorKey:K.get(T),leaves:u(x.slice(T,b).toList(),T)}))}),p(k)},fromJS:function(w){var D=w.leaves,O=g(w,["leaves"]);return new l(y({},O,{leaves:D!=null?p(Array.isArray(D)?D:a(D)).map(function(I){return E(I)}):null}))}};function u(f,w){var D=[],O=f.map(function(I){return I.getStyle()}).toList();return n(O,r,h,function(I,k){D.push(new E({start:I+w,end:k+w}))}),p(D)}function r(f,w){return f===w}return hn=o,hn}var gn,Ou;function mf(){if(Ou)return gn;Ou=1;function y(d,p){d.prototype=Object.create(p.prototype),d.prototype.constructor=d,d.__proto__=p}var m=Ce(),g=m.Record,n=g({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),a=function(d){y(p,d);function p(){return d.apply(this,arguments)||this}var v=p.prototype;return v.getType=function(){return this.get("type")},v.getMutability=function(){return this.get("mutability")},v.getData=function(){return this.get("data")},p}(n);return gn=a,gn}var yn,Tu;function Nl(){if(Tu)return yn;Tu=1;function y(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(m){var g=Math.random()*16|0,n=m=="x"?g:g&3|8;return n.toString(16)})}return yn=y,yn}var mn,Ru;function or(){if(Ru)return mn;Ru=1;function y(E){for(var i=1;i<arguments.length;i++){var l=arguments[i]!=null?arguments[i]:{},o=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(l).filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}))),o.forEach(function(u){m(E,u,l[u])})}return E}function m(E,i,l){return i in E?Object.defineProperty(E,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):E[i]=l,E}var g=mf(),n=Ce(),a=De(),d=Nl(),p=n.Map,v=p(),c=d();function h(E,i){console.warn("WARNING: "+E+` will be deprecated soon!
|
|
1
|
+
"use strict";const Ya=require("./main-CNUalHme.cjs"),ot=require("react"),Dl=require("react-dom");var zr={exports:{}},Qo;function Ce(){return Qo||(Qo=1,function(y,m){(function(g,n){y.exports=n()})(Ya.commonjsGlobal,function(){var g=Array.prototype.slice;function n(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function a(e){return c(e)?e:Y(e)}n(d,a);function d(e){return h(e)?e:Z(e)}n(p,a);function p(e){return S(e)?e:J(e)}n(v,a);function v(e){return c(e)&&!E(e)?e:re(e)}function c(e){return!!(e&&e[l])}function h(e){return!!(e&&e[o])}function S(e){return!!(e&&e[u])}function E(e){return h(e)||S(e)}function i(e){return!!(e&&e[r])}a.isIterable=c,a.isKeyed=h,a.isIndexed=S,a.isAssociative=E,a.isOrdered=i,a.Keyed=d,a.Indexed=p,a.Set=v;var l="@@__IMMUTABLE_ITERABLE__@@",o="@@__IMMUTABLE_KEYED__@@",u="@@__IMMUTABLE_INDEXED__@@",r="@@__IMMUTABLE_ORDERED__@@",f="delete",w=5,D=1<<w,O=D-1,I={},k={value:!1},K={value:!1};function x(e){return e.value=!1,e}function T(e){e&&(e.value=!0)}function b(){}function B(e,t){t=t||0;for(var s=Math.max(0,e.length-t),_=new Array(s),C=0;C<s;C++)_[C]=e[C+t];return _}function A(e){return e.size===void 0&&(e.size=e.__iterate(F)),e.size}function L(e,t){if(typeof t!="number"){var s=t>>>0;if(""+s!==t||s===4294967295)return NaN;t=s}return t<0?A(e)+t:t}function F(){return!0}function P(e,t,s){return(e===0||s!==void 0&&e<=-s)&&(t===void 0||s!==void 0&&t>=s)}function H(e,t){return W(e,t,0)}function G(e,t){return W(e,t,t)}function W(e,t,s){return e===void 0?s:e<0?Math.max(0,t+e):t===void 0?e:Math.min(t,e)}var $=0,X=1,j=2,N=typeof Symbol=="function"&&Symbol.iterator,oe="@@iterator",pe=N||oe;function ie(e){this.next=e}ie.prototype.toString=function(){return"[Iterator]"},ie.KEYS=$,ie.VALUES=X,ie.ENTRIES=j,ie.prototype.inspect=ie.prototype.toSource=function(){return this.toString()},ie.prototype[pe]=function(){return this};function ue(e,t,s,_){var C=e===0?t:e===1?s:[t,s];return _?_.value=C:_={value:C,done:!1},_}function ve(){return{value:void 0,done:!0}}function we(e){return!!te(e)}function se(e){return e&&typeof e.next=="function"}function Q(e){var t=te(e);return t&&t.call(e)}function te(e){var t=e&&(N&&e[N]||e[oe]);if(typeof t=="function")return t}function ee(e){return e&&typeof e.length=="number"}n(Y,a);function Y(e){return e==null?qe():c(e)?e.toSeq():ge(e)}Y.of=function(){return Y(arguments)},Y.prototype.toSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq {","}")},Y.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Y.prototype.__iterate=function(e,t){return be(this,e,t,!0)},Y.prototype.__iterator=function(e,t){return tt(this,e,t,!0)},n(Z,Y);function Z(e){return e==null?qe().toKeyedSeq():c(e)?h(e)?e.toSeq():e.fromEntrySeq():et(e)}Z.prototype.toKeyedSeq=function(){return this},n(J,Y);function J(e){return e==null?qe():c(e)?h(e)?e.entrySeq():e.toIndexedSeq():ce(e)}J.of=function(){return J(arguments)},J.prototype.toIndexedSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq [","]")},J.prototype.__iterate=function(e,t){return be(this,e,t,!1)},J.prototype.__iterator=function(e,t){return tt(this,e,t,!1)},n(re,Y);function re(e){return(e==null?qe():c(e)?h(e)?e.entrySeq():e:ce(e)).toSetSeq()}re.of=function(){return re(arguments)},re.prototype.toSetSeq=function(){return this},Y.isSeq=Fe,Y.Keyed=Z,Y.Set=re,Y.Indexed=J;var he="@@__IMMUTABLE_SEQ__@@";Y.prototype[he]=!0,n(me,J);function me(e){this._array=e,this.size=e.length}me.prototype.get=function(e,t){return this.has(e)?this._array[L(this,e)]:t},me.prototype.__iterate=function(e,t){for(var s=this._array,_=s.length-1,C=0;C<=_;C++)if(e(s[t?_-C:C],C,this)===!1)return C+1;return C},me.prototype.__iterator=function(e,t){var s=this._array,_=s.length-1,C=0;return new ie(function(){return C>_?ve():ue(e,C,s[t?_-C++:C++])})},n(Ke,Z);function Ke(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}Ke.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},Ke.prototype.has=function(e){return this._object.hasOwnProperty(e)},Ke.prototype.__iterate=function(e,t){for(var s=this._object,_=this._keys,C=_.length-1,R=0;R<=C;R++){var M=_[t?C-R:R];if(e(s[M],M,this)===!1)return R+1}return R},Ke.prototype.__iterator=function(e,t){var s=this._object,_=this._keys,C=_.length-1,R=0;return new ie(function(){var M=_[t?C-R:R];return R++>C?ve():ue(e,M,s[M])})},Ke.prototype[r]=!0,n(Me,J);function Me(e){this._iterable=e,this.size=e.length||e.size}Me.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var s=this._iterable,_=Q(s),C=0;if(se(_))for(var R;!(R=_.next()).done&&e(R.value,C++,this)!==!1;);return C},Me.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var s=this._iterable,_=Q(s);if(!se(_))return new ie(ve);var C=0;return new ie(function(){var R=_.next();return R.done?R:ue(e,C++,R.value)})},n(Be,J);function Be(e){this._iterator=e,this._iteratorCache=[]}Be.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var s=this._iterator,_=this._iteratorCache,C=0;C<_.length;)if(e(_[C],C++,this)===!1)return C;for(var R;!(R=s.next()).done;){var M=R.value;if(_[C]=M,e(M,C++,this)===!1)break}return C},Be.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var s=this._iterator,_=this._iteratorCache,C=0;return new ie(function(){if(C>=_.length){var R=s.next();if(R.done)return R;_[C]=R.value}return ue(e,C,_[C++])})};function Fe(e){return!!(e&&e[he])}var Ae;function qe(){return Ae||(Ae=new me([]))}function et(e){var t=Array.isArray(e)?new me(e).fromEntrySeq():se(e)?new Be(e).fromEntrySeq():we(e)?new Me(e).fromEntrySeq():typeof e=="object"?new Ke(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ge(e){var t=le(e)||typeof e=="object"&&new Ke(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return ee(e)?new me(e):se(e)?new Be(e):we(e)?new Me(e):void 0}function be(e,t,s,_){var C=e._cache;if(C){for(var R=C.length-1,M=0;M<=R;M++){var q=C[s?R-M:M];if(t(q[1],_?q[0]:M,e)===!1)return M+1}return M}return e.__iterateUncached(t,s)}function tt(e,t,s,_){var C=e._cache;if(C){var R=C.length-1,M=0;return new ie(function(){var q=C[s?R-M:M];return M++>R?ve():ue(t,_?q[0]:M-1,q[1])})}return e.__iteratorUncached(t,s)}function We(e,t){return t?Ee(t,e,"",{"":e}):fe(e)}function Ee(e,t,s,_){return Array.isArray(t)?e.call(_,s,J(t).map(function(C,R){return Ee(e,C,R,t)})):Xe(t)?e.call(_,s,Z(t).map(function(C,R){return Ee(e,C,R,t)})):t}function fe(e){return Array.isArray(e)?J(e).map(fe).toList():Xe(e)?Z(e).map(fe).toMap():e}function Xe(e){return e&&(e.constructor===Object||e.constructor===void 0)}function Re(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(typeof e.equals=="function"&&typeof t.equals=="function"&&e.equals(t))}function bt(e,t){if(e===t)return!0;if(!c(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||h(e)!==h(t)||S(e)!==S(t)||i(e)!==i(t))return!1;if(e.size===0&&t.size===0)return!0;var s=!E(e);if(i(e)){var _=e.entries();return t.every(function(U,z){var V=_.next().value;return V&&Re(V[1],U)&&(s||Re(V[0],z))})&&_.next().done}var C=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{C=!0;var R=e;e=t,t=R}var M=!0,q=t.__iterate(function(U,z){if(s?!e.has(U):C?!Re(U,e.get(z,I)):!Re(e.get(z,I),U))return M=!1,!1});return M&&e.size===q}n(Ue,J);function Ue(e,t){if(!(this instanceof Ue))return new Ue(e,t);if(this._value=e,this.size=t===void 0?1/0:Math.max(0,t),this.size===0){if(hr)return hr;hr=this}}Ue.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ue.prototype.get=function(e,t){return this.has(e)?this._value:t},Ue.prototype.includes=function(e){return Re(this._value,e)},Ue.prototype.slice=function(e,t){var s=this.size;return P(e,t,s)?this:new Ue(this._value,G(t,s)-H(e,s))},Ue.prototype.reverse=function(){return this},Ue.prototype.indexOf=function(e){return Re(this._value,e)?0:-1},Ue.prototype.lastIndexOf=function(e){return Re(this._value,e)?this.size:-1},Ue.prototype.__iterate=function(e,t){for(var s=0;s<this.size;s++)if(e(this._value,s,this)===!1)return s+1;return s},Ue.prototype.__iterator=function(e,t){var s=this,_=0;return new ie(function(){return _<s.size?ue(e,_++,s._value):ve()})},Ue.prototype.equals=function(e){return e instanceof Ue?Re(this._value,e._value):bt(e)};var hr;function jt(e,t){if(!e)throw new Error(t)}n(ze,J);function ze(e,t,s){if(!(this instanceof ze))return new ze(e,t,s);if(jt(s!==0,"Cannot step a Range by 0"),e=e||0,t===void 0&&(t=1/0),s=s===void 0?1:Math.abs(s),t<e&&(s=-s),this._start=e,this._end=t,this._step=s,this.size=Math.max(0,Math.ceil((t-e)/s-1)+1),this.size===0){if(gr)return gr;gr=this}}ze.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ze.prototype.get=function(e,t){return this.has(e)?this._start+L(this,e)*this._step:t},ze.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ze.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=H(e,this.size),t=G(t,this.size),t<=e?new ze(0,0):new ze(this.get(e,this._end),this.get(t,this._end),this._step))},ze.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var s=t/this._step;if(s>=0&&s<this.size)return s}return-1},ze.prototype.lastIndexOf=function(e){return this.indexOf(e)},ze.prototype.__iterate=function(e,t){for(var s=this.size-1,_=this._step,C=t?this._start+s*_:this._start,R=0;R<=s;R++){if(e(C,R,this)===!1)return R+1;C+=t?-_:_}return R},ze.prototype.__iterator=function(e,t){var s=this.size-1,_=this._step,C=t?this._start+s*_:this._start,R=0;return new ie(function(){var M=C;return C+=t?-_:_,R>s?ve():ue(e,R++,M)})},ze.prototype.equals=function(e){return e instanceof ze?this._start===e._start&&this._end===e._end&&this._step===e._step:bt(this,e)};var gr;n(ht,a);function ht(){throw TypeError("Abstract")}n(At,ht);function At(){}n(Ot,ht);function Ot(){}n(Jt,ht);function Jt(){}ht.Keyed=At,ht.Indexed=Ot,ht.Set=Jt;var Nt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,s){t=t|0,s=s|0;var _=t&65535,C=s&65535;return _*C+((t>>>16)*C+_*(s>>>16)<<16>>>0)|0};function yr(e){return e>>>1&1073741824|e&3221225471}function Ye(e){if(e===!1||e===null||e===void 0||typeof e.valueOf=="function"&&(e=e.valueOf(),e===!1||e===null||e===void 0))return 0;if(e===!0)return 1;var t=typeof e;if(t==="number"){var s=e|0;for(s!==e&&(s^=e*4294967295);e>4294967295;)e/=4294967295,s^=e;return yr(s)}if(t==="string")return e.length>Qf?Yf(e):mr(e);if(typeof e.hashCode=="function")return e.hashCode();if(t==="object")return $f(e);if(typeof e.toString=="function")return mr(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Yf(e){var t=Cr[e];return t===void 0&&(t=mr(e),wr===el&&(wr=0,Cr={}),wr++,Cr[e]=t),t}function mr(e){for(var t=0,s=0;s<e.length;s++)t=31*t+e.charCodeAt(s)|0;return yr(t)}function $f(e){var t;if(_r&&(t=Er.get(e),t!==void 0)||(t=e[_t],t!==void 0)||!uo&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[_t],t!==void 0||(t=Zf(e),t!==void 0)))return t;if(t=++Sr,Sr&1073741824&&(Sr=0),_r)Er.set(e,t);else{if(oo!==void 0&&oo(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(uo)Object.defineProperty(e,_t,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[_t]=t;else if(e.nodeType!==void 0)e[_t]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var oo=Object.isExtensible,uo=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Zf(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var _r=typeof WeakMap=="function",Er;_r&&(Er=new WeakMap);var Sr=0,_t="__immutablehash__";typeof Symbol=="function"&&(_t=Symbol(_t));var Qf=16,el=255,wr=0,Cr={};function $e(e){jt(e!==1/0,"Cannot perform this action with an infinite size.")}n(Se,At);function Se(e){return e==null?ut():Dr(e)&&!i(e)?e:ut().withMutations(function(t){var s=d(e);$e(s.size),s.forEach(function(_,C){return t.set(C,_)})})}Se.prototype.toString=function(){return this.__toString("Map {","}")},Se.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Se.prototype.set=function(e,t){return lo(this,e,t)},Se.prototype.setIn=function(e,t){return this.updateIn(e,I,function(){return t})},Se.prototype.remove=function(e){return lo(this,e,I)},Se.prototype.deleteIn=function(e){return this.updateIn(e,function(){return I})},Se.prototype.update=function(e,t,s){return arguments.length===1?e(this):this.updateIn([e],t,s)},Se.prototype.updateIn=function(e,t,s){s||(s=t,t=void 0);var _=yo(this,Fo(e),t,s);return _===I?void 0:_},Se.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ut()},Se.prototype.merge=function(){return Xt(this,void 0,arguments)},Se.prototype.mergeWith=function(e){var t=g.call(arguments,1);return Xt(this,e,t)},Se.prototype.mergeIn=function(e){var t=g.call(arguments,1);return this.updateIn(e,ut(),function(s){return typeof s.merge=="function"?s.merge.apply(s,t):t[t.length-1]})},Se.prototype.mergeDeep=function(){return Xt(this,po,arguments)},Se.prototype.mergeDeepWith=function(e){var t=g.call(arguments,1);return Xt(this,ho(e),t)},Se.prototype.mergeDeepIn=function(e){var t=g.call(arguments,1);return this.updateIn(e,ut(),function(s){return typeof s.mergeDeep=="function"?s.mergeDeep.apply(s,t):t[t.length-1]})},Se.prototype.sort=function(e){return Ne(Kt(this,e))},Se.prototype.sortBy=function(e,t){return Ne(Kt(this,t,e))},Se.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Se.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new b)},Se.prototype.asImmutable=function(){return this.__ensureOwner()},Se.prototype.wasAltered=function(){return this.__altered},Se.prototype.__iterator=function(e,t){return new br(this,e,t)},Se.prototype.__iterate=function(e,t){var s=this,_=0;return this._root&&this._root.iterate(function(C){return _++,e(C[1],C[0],s)},t),_},Se.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tr(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)};function Dr(e){return!!(e&&e[so])}Se.isMap=Dr;var so="@@__IMMUTABLE_MAP__@@",_e=Se.prototype;_e[so]=!0,_e[f]=_e.remove,_e.removeIn=_e.deleteIn;function Lt(e,t){this.ownerID=e,this.entries=t}Lt.prototype.get=function(e,t,s,_){for(var C=this.entries,R=0,M=C.length;R<M;R++)if(Re(s,C[R][0]))return C[R][1];return _},Lt.prototype.update=function(e,t,s,_,C,R,M){for(var q=C===I,U=this.entries,z=0,V=U.length;z<V&&!Re(_,U[z][0]);z++);var ne=z<V;if(ne?U[z][1]===C:q)return this;if(T(M),(q||!ne)&&T(R),!(q&&U.length===1)){if(!ne&&!q&&U.length>=ol)return tl(e,U,_,C);var ae=e&&e===this.ownerID,de=ae?U:B(U);return ne?q?z===V-1?de.pop():de[z]=de.pop():de[z]=[_,C]:de.push([_,C]),ae?(this.entries=de,this):new Lt(e,de)}};function Tt(e,t,s){this.ownerID=e,this.bitmap=t,this.nodes=s}Tt.prototype.get=function(e,t,s,_){t===void 0&&(t=Ye(s));var C=1<<((e===0?t:t>>>e)&O),R=this.bitmap;return R&C?this.nodes[mo(R&C-1)].get(e+w,t,s,_):_},Tt.prototype.update=function(e,t,s,_,C,R,M){s===void 0&&(s=Ye(_));var q=(t===0?s:s>>>t)&O,U=1<<q,z=this.bitmap,V=(z&U)!==0;if(!V&&C===I)return this;var ne=mo(z&U-1),ae=this.nodes,de=V?ae[ne]:void 0,ye=Rr(de,e,t+w,s,_,C,R,M);if(ye===de)return this;if(!V&&ye&&ae.length>=ul)return nl(e,ae,z,q,ye);if(V&&!ye&&ae.length===2&&vo(ae[ne^1]))return ae[ne^1];if(V&&ye&&ae.length===1&&vo(ye))return ye;var Ie=e&&e===this.ownerID,at=V?ye?z:z^U:z|U,lt=V?ye?_o(ae,ne,ye,Ie):al(ae,ne,Ie):il(ae,ne,ye,Ie);return Ie?(this.bitmap=at,this.nodes=lt,this):new Tt(e,at,lt)};function Ft(e,t,s){this.ownerID=e,this.count=t,this.nodes=s}Ft.prototype.get=function(e,t,s,_){t===void 0&&(t=Ye(s));var C=(e===0?t:t>>>e)&O,R=this.nodes[C];return R?R.get(e+w,t,s,_):_},Ft.prototype.update=function(e,t,s,_,C,R,M){s===void 0&&(s=Ye(_));var q=(t===0?s:s>>>t)&O,U=C===I,z=this.nodes,V=z[q];if(U&&!V)return this;var ne=Rr(V,e,t+w,s,_,C,R,M);if(ne===V)return this;var ae=this.count;if(!V)ae++;else if(!ne&&(ae--,ae<sl))return rl(e,z,ae,q);var de=e&&e===this.ownerID,ye=_o(z,q,ne,de);return de?(this.count=ae,this.nodes=ye,this):new Ft(e,ae,ye)};function Rt(e,t,s){this.ownerID=e,this.keyHash=t,this.entries=s}Rt.prototype.get=function(e,t,s,_){for(var C=this.entries,R=0,M=C.length;R<M;R++)if(Re(s,C[R][0]))return C[R][1];return _},Rt.prototype.update=function(e,t,s,_,C,R,M){s===void 0&&(s=Ye(_));var q=C===I;if(s!==this.keyHash)return q?this:(T(M),T(R),kr(this,e,t,s,[_,C]));for(var U=this.entries,z=0,V=U.length;z<V&&!Re(_,U[z][0]);z++);var ne=z<V;if(ne?U[z][1]===C:q)return this;if(T(M),(q||!ne)&&T(R),q&&V===2)return new dt(e,this.keyHash,U[z^1]);var ae=e&&e===this.ownerID,de=ae?U:B(U);return ne?q?z===V-1?de.pop():de[z]=de.pop():de[z]=[_,C]:de.push([_,C]),ae?(this.entries=de,this):new Rt(e,this.keyHash,de)};function dt(e,t,s){this.ownerID=e,this.keyHash=t,this.entry=s}dt.prototype.get=function(e,t,s,_){return Re(s,this.entry[0])?this.entry[1]:_},dt.prototype.update=function(e,t,s,_,C,R,M){var q=C===I,U=Re(_,this.entry[0]);if(U?C===this.entry[1]:q)return this;if(T(M),q){T(R);return}return U?e&&e===this.ownerID?(this.entry[1]=C,this):new dt(e,this.keyHash,[_,C]):(T(R),kr(this,e,t,Ye(_),[_,C]))},Lt.prototype.iterate=Rt.prototype.iterate=function(e,t){for(var s=this.entries,_=0,C=s.length-1;_<=C;_++)if(e(s[t?C-_:_])===!1)return!1},Tt.prototype.iterate=Ft.prototype.iterate=function(e,t){for(var s=this.nodes,_=0,C=s.length-1;_<=C;_++){var R=s[t?C-_:_];if(R&&R.iterate(e,t)===!1)return!1}},dt.prototype.iterate=function(e,t){return e(this.entry)},n(br,ie);function br(e,t,s){this._type=t,this._reverse=s,this._stack=e._root&&co(e._root)}br.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var s=t.node,_=t.index++,C;if(s.entry){if(_===0)return Or(e,s.entry)}else if(s.entries){if(C=s.entries.length-1,_<=C)return Or(e,s.entries[this._reverse?C-_:_])}else if(C=s.nodes.length-1,_<=C){var R=s.nodes[this._reverse?C-_:_];if(R){if(R.entry)return Or(e,R.entry);t=this._stack=co(R,t)}continue}t=this._stack=this._stack.__prev}return ve()};function Or(e,t){return ue(e,t[0],t[1])}function co(e,t){return{node:e,index:0,__prev:t}}function Tr(e,t,s,_){var C=Object.create(_e);return C.size=e,C._root=t,C.__ownerID=s,C.__hash=_,C.__altered=!1,C}var fo;function ut(){return fo||(fo=Tr(0))}function lo(e,t,s){var _,C;if(e._root){var R=x(k),M=x(K);if(_=Rr(e._root,e.__ownerID,0,void 0,t,s,R,M),!M.value)return e;C=e.size+(R.value?s===I?-1:1:0)}else{if(s===I)return e;C=1,_=new Lt(e.__ownerID,[[t,s]])}return e.__ownerID?(e.size=C,e._root=_,e.__hash=void 0,e.__altered=!0,e):_?Tr(C,_):ut()}function Rr(e,t,s,_,C,R,M,q){return e?e.update(t,s,_,C,R,M,q):R===I?e:(T(q),T(M),new dt(t,_,[C,R]))}function vo(e){return e.constructor===dt||e.constructor===Rt}function kr(e,t,s,_,C){if(e.keyHash===_)return new Rt(t,_,[e.entry,C]);var R=(s===0?e.keyHash:e.keyHash>>>s)&O,M=(s===0?_:_>>>s)&O,q,U=R===M?[kr(e,t,s+w,_,C)]:(q=new dt(t,_,C),R<M?[e,q]:[q,e]);return new Tt(t,1<<R|1<<M,U)}function tl(e,t,s,_){e||(e=new b);for(var C=new dt(e,Ye(s),[s,_]),R=0;R<t.length;R++){var M=t[R];C=C.update(e,0,void 0,M[0],M[1])}return C}function rl(e,t,s,_){for(var C=0,R=0,M=new Array(s),q=0,U=1,z=t.length;q<z;q++,U<<=1){var V=t[q];V!==void 0&&q!==_&&(C|=U,M[R++]=V)}return new Tt(e,C,M)}function nl(e,t,s,_,C){for(var R=0,M=new Array(D),q=0;s!==0;q++,s>>>=1)M[q]=s&1?t[R++]:void 0;return M[_]=C,new Ft(e,R+1,M)}function Xt(e,t,s){for(var _=[],C=0;C<s.length;C++){var R=s[C],M=d(R);c(R)||(M=M.map(function(q){return We(q)})),_.push(M)}return go(e,t,_)}function po(e,t,s){return e&&e.mergeDeep&&c(t)?e.mergeDeep(t):Re(e,t)?e:t}function ho(e){return function(t,s,_){if(t&&t.mergeDeepWith&&c(s))return t.mergeDeepWith(e,s);var C=e(t,s,_);return Re(t,C)?t:C}}function go(e,t,s){return s=s.filter(function(_){return _.size!==0}),s.length===0?e:e.size===0&&!e.__ownerID&&s.length===1?e.constructor(s[0]):e.withMutations(function(_){for(var C=t?function(M,q){_.update(q,I,function(U){return U===I?M:t(U,M,q)})}:function(M,q){_.set(q,M)},R=0;R<s.length;R++)s[R].forEach(C)})}function yo(e,t,s,_){var C=e===I,R=t.next();if(R.done){var M=C?s:e,q=_(M);return q===M?e:q}jt(C||e&&e.set,"invalid keyPath");var U=R.value,z=C?I:e.get(U,I),V=yo(z,t,s,_);return V===z?e:V===I?e.remove(U):(C?ut():e).set(U,V)}function mo(e){return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e=e+(e>>8),e=e+(e>>16),e&127}function _o(e,t,s,_){var C=_?e:B(e);return C[t]=s,C}function il(e,t,s,_){var C=e.length+1;if(_&&t+1===C)return e[t]=s,e;for(var R=new Array(C),M=0,q=0;q<C;q++)q===t?(R[q]=s,M=-1):R[q]=e[q+M];return R}function al(e,t,s){var _=e.length-1;if(s&&t===_)return e.pop(),e;for(var C=new Array(_),R=0,M=0;M<_;M++)M===t&&(R=1),C[M]=e[M+R];return C}var ol=D/4,ul=D/2,sl=D/4;n(ke,Ot);function ke(e){var t=Br();if(e==null)return t;if(Eo(e))return e;var s=p(e),_=s.size;return _===0?t:($e(_),_>0&&_<D?Pt(0,_,w,null,new gt(s.toArray())):t.withMutations(function(C){C.setSize(_),s.forEach(function(R,M){return C.set(M,R)})}))}ke.of=function(){return this(arguments)},ke.prototype.toString=function(){return this.__toString("List [","]")},ke.prototype.get=function(e,t){if(e=L(this,e),e>=0&&e<this.size){e+=this._origin;var s=Do(this,e);return s&&s.array[e&O]}return t},ke.prototype.set=function(e,t){return cl(this,e,t)},ke.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ke.prototype.insert=function(e,t){return this.splice(e,0,t)},ke.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=w,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Br()},ke.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(s){yt(s,0,t+e.length);for(var _=0;_<e.length;_++)s.set(t+_,e[_])})},ke.prototype.pop=function(){return yt(this,0,-1)},ke.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){yt(t,-e.length);for(var s=0;s<e.length;s++)t.set(s,e[s])})},ke.prototype.shift=function(){return yt(this,1)},ke.prototype.merge=function(){return Yt(this,void 0,arguments)},ke.prototype.mergeWith=function(e){var t=g.call(arguments,1);return Yt(this,e,t)},ke.prototype.mergeDeep=function(){return Yt(this,po,arguments)},ke.prototype.mergeDeepWith=function(e){var t=g.call(arguments,1);return Yt(this,ho(e),t)},ke.prototype.setSize=function(e){return yt(this,0,e)},ke.prototype.slice=function(e,t){var s=this.size;return P(e,t,s)?this:yt(this,H(e,s),G(t,s))},ke.prototype.__iterator=function(e,t){var s=0,_=wo(this,t);return new ie(function(){var C=_();return C===qt?ve():ue(e,s++,C)})},ke.prototype.__iterate=function(e,t){for(var s=0,_=wo(this,t),C;(C=_())!==qt&&e(C,s++,this)!==!1;);return s},ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)};function Eo(e){return!!(e&&e[So])}ke.isList=Eo;var So="@@__IMMUTABLE_LIST__@@",Ve=ke.prototype;Ve[So]=!0,Ve[f]=Ve.remove,Ve.setIn=_e.setIn,Ve.deleteIn=Ve.removeIn=_e.removeIn,Ve.update=_e.update,Ve.updateIn=_e.updateIn,Ve.mergeIn=_e.mergeIn,Ve.mergeDeepIn=_e.mergeDeepIn,Ve.withMutations=_e.withMutations,Ve.asMutable=_e.asMutable,Ve.asImmutable=_e.asImmutable,Ve.wasAltered=_e.wasAltered;function gt(e,t){this.array=e,this.ownerID=t}gt.prototype.removeBefore=function(e,t,s){if(s===t?1<<t:this.array.length===0)return this;var _=s>>>t&O;if(_>=this.array.length)return new gt([],e);var C=_===0,R;if(t>0){var M=this.array[_];if(R=M&&M.removeBefore(e,t-w,s),R===M&&C)return this}if(C&&!R)return this;var q=kt(this,e);if(!C)for(var U=0;U<_;U++)q.array[U]=void 0;return R&&(q.array[_]=R),q},gt.prototype.removeAfter=function(e,t,s){if(s===(t?1<<t:0)||this.array.length===0)return this;var _=s-1>>>t&O;if(_>=this.array.length)return this;var C;if(t>0){var R=this.array[_];if(C=R&&R.removeAfter(e,t-w,s),C===R&&_===this.array.length-1)return this}var M=kt(this,e);return M.array.splice(_+1),C&&(M.array[_]=C),M};var qt={};function wo(e,t){var s=e._origin,_=e._capacity,C=Ut(_),R=e._tail;return M(e._root,e._level,0);function M(z,V,ne){return V===0?q(z,ne):U(z,V,ne)}function q(z,V){var ne=V===C?R&&R.array:z&&z.array,ae=V>s?0:s-V,de=_-V;return de>D&&(de=D),function(){if(ae===de)return qt;var ye=t?--de:ae++;return ne&&ne[ye]}}function U(z,V,ne){var ae,de=z&&z.array,ye=ne>s?0:s-ne>>V,Ie=(_-ne>>V)+1;return Ie>D&&(Ie=D),function(){do{if(ae){var at=ae();if(at!==qt)return at;ae=null}if(ye===Ie)return qt;var lt=t?--Ie:ye++;ae=M(de&&de[lt],V-w,ne+(lt<<V))}while(!0)}}}function Pt(e,t,s,_,C,R,M){var q=Object.create(Ve);return q.size=t-e,q._origin=e,q._capacity=t,q._level=s,q._root=_,q._tail=C,q.__ownerID=R,q.__hash=M,q.__altered=!1,q}var Co;function Br(){return Co||(Co=Pt(0,0,w))}function cl(e,t,s){if(t=L(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(M){t<0?yt(M,t).set(0,s):yt(M,0,t+1).set(t,s)});t+=e._origin;var _=e._tail,C=e._root,R=x(K);return t>=Ut(e._capacity)?_=xr(_,e.__ownerID,0,t,s,R):C=xr(C,e.__ownerID,e._level,t,s,R),R.value?e.__ownerID?(e._root=C,e._tail=_,e.__hash=void 0,e.__altered=!0,e):Pt(e._origin,e._capacity,e._level,C,_):e}function xr(e,t,s,_,C,R){var M=_>>>s&O,q=e&&M<e.array.length;if(!q&&C===void 0)return e;var U;if(s>0){var z=e&&e.array[M],V=xr(z,t,s-w,_,C,R);return V===z?e:(U=kt(e,t),U.array[M]=V,U)}return q&&e.array[M]===C?e:(T(R),U=kt(e,t),C===void 0&&M===U.array.length-1?U.array.pop():U.array[M]=C,U)}function kt(e,t){return t&&e&&t===e.ownerID?e:new gt(e?e.array.slice():[],t)}function Do(e,t){if(t>=Ut(e._capacity))return e._tail;if(t<1<<e._level+w){for(var s=e._root,_=e._level;s&&_>0;)s=s.array[t>>>_&O],_-=w;return s}}function yt(e,t,s){t!==void 0&&(t=t|0),s!==void 0&&(s=s|0);var _=e.__ownerID||new b,C=e._origin,R=e._capacity,M=C+t,q=s===void 0?R:s<0?R+s:C+s;if(M===C&&q===R)return e;if(M>=q)return e.clear();for(var U=e._level,z=e._root,V=0;M+V<0;)z=new gt(z&&z.array.length?[void 0,z]:[],_),U+=w,V+=1<<U;V&&(M+=V,C+=V,q+=V,R+=V);for(var ne=Ut(R),ae=Ut(q);ae>=1<<U+w;)z=new gt(z&&z.array.length?[z]:[],_),U+=w;var de=e._tail,ye=ae<ne?Do(e,q-1):ae>ne?new gt([],_):de;if(de&&ae>ne&&M<R&&de.array.length){z=kt(z,_);for(var Ie=z,at=U;at>w;at-=w){var lt=ne>>>at&O;Ie=Ie.array[lt]=kt(Ie.array[lt],_)}Ie.array[ne>>>w&O]=de}if(q<R&&(ye=ye&&ye.removeAfter(_,0,q)),M>=ae)M-=ae,q-=ae,U=w,z=null,ye=ye&&ye.removeBefore(_,0,M);else if(M>C||ae<ne){for(V=0;z;){var nr=M>>>U&O;if(nr!==ae>>>U&O)break;nr&&(V+=(1<<U)*nr),U-=w,z=z.array[nr]}z&&M>C&&(z=z.removeBefore(_,U,M-V)),z&&ae<ne&&(z=z.removeAfter(_,U,ae-V)),V&&(M-=V,q-=V)}return e.__ownerID?(e.size=q-M,e._origin=M,e._capacity=q,e._level=U,e._root=z,e._tail=ye,e.__hash=void 0,e.__altered=!0,e):Pt(M,q,U,z,ye)}function Yt(e,t,s){for(var _=[],C=0,R=0;R<s.length;R++){var M=s[R],q=p(M);q.size>C&&(C=q.size),c(M)||(q=q.map(function(U){return We(U)})),_.push(q)}return C>e.size&&(e=e.setSize(C)),go(e,t,_)}function Ut(e){return e<D?0:e-1>>>w<<w}n(Ne,Se);function Ne(e){return e==null?$t():bo(e)?e:$t().withMutations(function(t){var s=d(e);$e(s.size),s.forEach(function(_,C){return t.set(C,_)})})}Ne.of=function(){return this(arguments)},Ne.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ne.prototype.get=function(e,t){var s=this._map.get(e);return s!==void 0?this._list.get(s)[1]:t},Ne.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Ne.prototype.set=function(e,t){return To(this,e,t)},Ne.prototype.remove=function(e){return To(this,e,I)},Ne.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ne.prototype.__iterate=function(e,t){var s=this;return this._list.__iterate(function(_){return _&&e(_[1],_[0],s)},t)},Ne.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ne.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),s=this._list.__ensureOwner(e);return e?Ir(t,s,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=s,this)};function bo(e){return Dr(e)&&i(e)}Ne.isOrderedMap=bo,Ne.prototype[r]=!0,Ne.prototype[f]=Ne.prototype.remove;function Ir(e,t,s,_){var C=Object.create(Ne.prototype);return C.size=e?e.size:0,C._map=e,C._list=t,C.__ownerID=s,C.__hash=_,C}var Oo;function $t(){return Oo||(Oo=Ir(ut(),Br()))}function To(e,t,s){var _=e._map,C=e._list,R=_.get(t),M=R!==void 0,q,U;if(s===I){if(!M)return e;C.size>=D&&C.size>=_.size*2?(U=C.filter(function(z,V){return z!==void 0&&R!==V}),q=U.toKeyedSeq().map(function(z){return z[0]}).flip().toMap(),e.__ownerID&&(q.__ownerID=U.__ownerID=e.__ownerID)):(q=_.remove(t),U=R===C.size-1?C.pop():C.set(R,void 0))}else if(M){if(s===C.get(R)[1])return e;q=_,U=C.set(R,[t,s])}else q=_.set(t,C.size),U=C.set(C.size,[t,s]);return e.__ownerID?(e.size=q.size,e._map=q,e._list=U,e.__hash=void 0,e):Ir(q,U)}n(rt,Z);function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=Kr(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var s=this,_=ko(this,e,t);return this._useKeys||(_.valueSeq=function(){return s._iter.toSeq().map(e,t)}),_},rt.prototype.__iterate=function(e,t){var s=this,_;return this._iter.__iterate(this._useKeys?function(C,R){return e(C,R,s)}:(_=t?Ao(this):0,function(C){return e(C,t?--_:_++,s)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var s=this._iter.__iterator(X,t),_=t?Ao(this):0;return new ie(function(){var C=s.next();return C.done?C:ue(e,t?--_:_++,C.value,C)})},rt.prototype[r]=!0,n(Bt,J);function Bt(e){this._iter=e,this.size=e.size}Bt.prototype.includes=function(e){return this._iter.includes(e)},Bt.prototype.__iterate=function(e,t){var s=this,_=0;return this._iter.__iterate(function(C){return e(C,_++,s)},t)},Bt.prototype.__iterator=function(e,t){var s=this._iter.__iterator(X,t),_=0;return new ie(function(){var C=s.next();return C.done?C:ue(e,_++,C.value,C)})},n(xt,re);function xt(e){this._iter=e,this.size=e.size}xt.prototype.has=function(e){return this._iter.includes(e)},xt.prototype.__iterate=function(e,t){var s=this;return this._iter.__iterate(function(_){return e(_,_,s)},t)},xt.prototype.__iterator=function(e,t){var s=this._iter.__iterator(X,t);return new ie(function(){var _=s.next();return _.done?_:ue(e,_.value,_.value,_)})},n(It,Z);function It(e){this._iter=e,this.size=e.size}It.prototype.entrySeq=function(){return this._iter.toSeq()},It.prototype.__iterate=function(e,t){var s=this;return this._iter.__iterate(function(_){if(_){Mo(_);var C=c(_);return e(C?_.get(1):_[1],C?_.get(0):_[0],s)}},t)},It.prototype.__iterator=function(e,t){var s=this._iter.__iterator(X,t);return new ie(function(){for(;;){var _=s.next();if(_.done)return _;var C=_.value;if(C){Mo(C);var R=c(C);return ue(e,R?C.get(0):C[0],R?C.get(1):C[1],_)}}})},Bt.prototype.cacheResult=rt.prototype.cacheResult=xt.prototype.cacheResult=It.prototype.cacheResult=Nr;function Ro(e){var t=st(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var s=e.reverse.apply(this);return s.flip=function(){return e.reverse()},s},t.has=function(s){return e.includes(s)},t.includes=function(s){return e.has(s)},t.cacheResult=Nr,t.__iterateUncached=function(s,_){var C=this;return e.__iterate(function(R,M){return s(M,R,C)!==!1},_)},t.__iteratorUncached=function(s,_){if(s===j){var C=e.__iterator(s,_);return new ie(function(){var R=C.next();if(!R.done){var M=R.value[0];R.value[0]=R.value[1],R.value[1]=M}return R})}return e.__iterator(s===X?$:X,_)},t}function ko(e,t,s){var _=st(e);return _.size=e.size,_.has=function(C){return e.has(C)},_.get=function(C,R){var M=e.get(C,I);return M===I?R:t.call(s,M,C,e)},_.__iterateUncached=function(C,R){var M=this;return e.__iterate(function(q,U,z){return C(t.call(s,q,U,z),U,M)!==!1},R)},_.__iteratorUncached=function(C,R){var M=e.__iterator(j,R);return new ie(function(){var q=M.next();if(q.done)return q;var U=q.value,z=U[0];return ue(C,z,t.call(s,U[1],z,e),q)})},_}function Kr(e,t){var s=st(e);return s._iter=e,s.size=e.size,s.reverse=function(){return e},e.flip&&(s.flip=function(){var _=Ro(e);return _.reverse=function(){return e.flip()},_}),s.get=function(_,C){return e.get(t?_:-1-_,C)},s.has=function(_){return e.has(t?_:-1-_)},s.includes=function(_){return e.includes(_)},s.cacheResult=Nr,s.__iterate=function(_,C){var R=this;return e.__iterate(function(M,q){return _(M,q,R)},!C)},s.__iterator=function(_,C){return e.__iterator(_,!C)},s}function Bo(e,t,s,_){var C=st(e);return _&&(C.has=function(R){var M=e.get(R,I);return M!==I&&!!t.call(s,M,R,e)},C.get=function(R,M){var q=e.get(R,I);return q!==I&&t.call(s,q,R,e)?q:M}),C.__iterateUncached=function(R,M){var q=this,U=0;return e.__iterate(function(z,V,ne){if(t.call(s,z,V,ne))return U++,R(z,_?V:U-1,q)},M),U},C.__iteratorUncached=function(R,M){var q=e.__iterator(j,M),U=0;return new ie(function(){for(;;){var z=q.next();if(z.done)return z;var V=z.value,ne=V[0],ae=V[1];if(t.call(s,ae,ne,e))return ue(R,_?ne:U++,ae,z)}})},C}function fl(e,t,s){var _=Se().asMutable();return e.__iterate(function(C,R){_.update(t.call(s,C,R,e),0,function(M){return M+1})}),_.asImmutable()}function ll(e,t,s){var _=h(e),C=(i(e)?Ne():Se()).asMutable();e.__iterate(function(M,q){C.update(t.call(s,M,q,e),function(U){return U=U||[],U.push(_?[q,M]:M),U})});var R=No(e);return C.map(function(M){return Oe(e,R(M))})}function Mr(e,t,s,_){var C=e.size;if(t!==void 0&&(t=t|0),s!==void 0&&(s=s|0),P(t,s,C))return e;var R=H(t,C),M=G(s,C);if(R!==R||M!==M)return Mr(e.toSeq().cacheResult(),t,s,_);var q=M-R,U;q===q&&(U=q<0?0:q);var z=st(e);return z.size=U===0?U:e.size&&U||void 0,!_&&Fe(e)&&U>=0&&(z.get=function(V,ne){return V=L(this,V),V>=0&&V<U?e.get(V+R,ne):ne}),z.__iterateUncached=function(V,ne){var ae=this;if(U===0)return 0;if(ne)return this.cacheResult().__iterate(V,ne);var de=0,ye=!0,Ie=0;return e.__iterate(function(at,lt){if(!(ye&&(ye=de++<R)))return Ie++,V(at,_?lt:Ie-1,ae)!==!1&&Ie!==U}),Ie},z.__iteratorUncached=function(V,ne){if(U!==0&&ne)return this.cacheResult().__iterator(V,ne);var ae=U!==0&&e.__iterator(V,ne),de=0,ye=0;return new ie(function(){for(;de++<R;)ae.next();if(++ye>U)return ve();var Ie=ae.next();return _||V===X?Ie:V===$?ue(V,ye-1,void 0,Ie):ue(V,ye-1,Ie.value[1],Ie)})},z}function vl(e,t,s){var _=st(e);return _.__iterateUncached=function(C,R){var M=this;if(R)return this.cacheResult().__iterate(C,R);var q=0;return e.__iterate(function(U,z,V){return t.call(s,U,z,V)&&++q&&C(U,z,M)}),q},_.__iteratorUncached=function(C,R){var M=this;if(R)return this.cacheResult().__iterator(C,R);var q=e.__iterator(j,R),U=!0;return new ie(function(){if(!U)return ve();var z=q.next();if(z.done)return z;var V=z.value,ne=V[0],ae=V[1];return t.call(s,ae,ne,M)?C===j?z:ue(C,ne,ae,z):(U=!1,ve())})},_}function xo(e,t,s,_){var C=st(e);return C.__iterateUncached=function(R,M){var q=this;if(M)return this.cacheResult().__iterate(R,M);var U=!0,z=0;return e.__iterate(function(V,ne,ae){if(!(U&&(U=t.call(s,V,ne,ae))))return z++,R(V,_?ne:z-1,q)}),z},C.__iteratorUncached=function(R,M){var q=this;if(M)return this.cacheResult().__iterator(R,M);var U=e.__iterator(j,M),z=!0,V=0;return new ie(function(){var ne,ae,de;do{if(ne=U.next(),ne.done)return _||R===X?ne:R===$?ue(R,V++,void 0,ne):ue(R,V++,ne.value[1],ne);var ye=ne.value;ae=ye[0],de=ye[1],z&&(z=t.call(s,de,ae,q))}while(z);return R===j?ne:ue(R,ae,de,ne)})},C}function dl(e,t){var s=h(e),_=[e].concat(t).map(function(M){return c(M)?s&&(M=d(M)):M=s?et(M):ce(Array.isArray(M)?M:[M]),M}).filter(function(M){return M.size!==0});if(_.length===0)return e;if(_.length===1){var C=_[0];if(C===e||s&&h(C)||S(e)&&S(C))return C}var R=new me(_);return s?R=R.toKeyedSeq():S(e)||(R=R.toSetSeq()),R=R.flatten(!0),R.size=_.reduce(function(M,q){if(M!==void 0){var U=q.size;if(U!==void 0)return M+U}},0),R}function Io(e,t,s){var _=st(e);return _.__iterateUncached=function(C,R){var M=0,q=!1;function U(z,V){var ne=this;z.__iterate(function(ae,de){return(!t||V<t)&&c(ae)?U(ae,V+1):C(ae,s?de:M++,ne)===!1&&(q=!0),!q},R)}return U(e,0),M},_.__iteratorUncached=function(C,R){var M=e.__iterator(C,R),q=[],U=0;return new ie(function(){for(;M;){var z=M.next();if(z.done!==!1){M=q.pop();continue}var V=z.value;if(C===j&&(V=V[1]),(!t||q.length<t)&&c(V))q.push(M),M=V.__iterator(C,R);else return s?z:ue(C,U++,V,z)}return ve()})},_}function pl(e,t,s){var _=No(e);return e.toSeq().map(function(C,R){return _(t.call(s,C,R,e))}).flatten(!0)}function hl(e,t){var s=st(e);return s.size=e.size&&e.size*2-1,s.__iterateUncached=function(_,C){var R=this,M=0;return e.__iterate(function(q,U){return(!M||_(t,M++,R)!==!1)&&_(q,M++,R)!==!1},C),M},s.__iteratorUncached=function(_,C){var R=e.__iterator(X,C),M=0,q;return new ie(function(){return(!q||M%2)&&(q=R.next(),q.done)?q:M%2?ue(_,M++,t):ue(_,M++,q.value,q)})},s}function Kt(e,t,s){t||(t=Lo);var _=h(e),C=0,R=e.toSeq().map(function(M,q){return[q,M,C++,s?s(M,q,e):M]}).toArray();return R.sort(function(M,q){return t(M[3],q[3])||M[2]-q[2]}).forEach(_?function(M,q){R[q].length=2}:function(M,q){R[q]=M[1]}),_?Z(R):S(e)?J(R):re(R)}function Zt(e,t,s){if(t||(t=Lo),s){var _=e.toSeq().map(function(C,R){return[C,s(C,R,e)]}).reduce(function(C,R){return Ko(t,C[1],R[1])?R:C});return _&&_[0]}else return e.reduce(function(C,R){return Ko(t,C,R)?R:C})}function Ko(e,t,s){var _=e(s,t);return _===0&&s!==t&&(s==null||s!==s)||_>0}function Ar(e,t,s){var _=st(e);return _.size=new me(s).map(function(C){return C.size}).min(),_.__iterate=function(C,R){for(var M=this.__iterator(X,R),q,U=0;!(q=M.next()).done&&C(q.value,U++,this)!==!1;);return U},_.__iteratorUncached=function(C,R){var M=s.map(function(z){return z=a(z),Q(R?z.reverse():z)}),q=0,U=!1;return new ie(function(){var z;return U||(z=M.map(function(V){return V.next()}),U=z.some(function(V){return V.done})),U?ve():ue(C,q++,t.apply(null,z.map(function(V){return V.value})))})},_}function Oe(e,t){return Fe(e)?t:e.constructor(t)}function Mo(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ao(e){return $e(e.size),A(e)}function No(e){return h(e)?d:S(e)?p:v}function st(e){return Object.create((h(e)?Z:S(e)?J:re).prototype)}function Nr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Y.prototype.cacheResult.call(this)}function Lo(e,t){return e>t?1:e<t?-1:0}function Fo(e){var t=Q(e);if(!t){if(!ee(e))throw new TypeError("Expected iterable or array-like: "+e);t=Q(a(e))}return t}n(Ze,At);function Ze(e,t){var s,_=function(M){if(M instanceof _)return M;if(!(this instanceof _))return new _(M);if(!s){s=!0;var q=Object.keys(e);gl(C,q),C.size=q.length,C._name=t,C._keys=q,C._defaultValues=e}this._map=Se(M)},C=_.prototype=Object.create(Pe);return C.constructor=_,_}Ze.prototype.toString=function(){return this.__toString(qo(this)+" {","}")},Ze.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Ze.prototype.get=function(e,t){if(!this.has(e))return t;var s=this._defaultValues[e];return this._map?this._map.get(e,s):s},Ze.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Qt(this,ut()))},Ze.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+qo(this));var s=this._map&&this._map.set(e,t);return this.__ownerID||s===this._map?this:Qt(this,s)},Ze.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Qt(this,t)},Ze.prototype.wasAltered=function(){return this._map.wasAltered()},Ze.prototype.__iterator=function(e,t){var s=this;return d(this._defaultValues).map(function(_,C){return s.get(C)}).__iterator(e,t)},Ze.prototype.__iterate=function(e,t){var s=this;return d(this._defaultValues).map(function(_,C){return s.get(C)}).__iterate(e,t)},Ze.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Qt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Pe=Ze.prototype;Pe[f]=Pe.remove,Pe.deleteIn=Pe.removeIn=_e.removeIn,Pe.merge=_e.merge,Pe.mergeWith=_e.mergeWith,Pe.mergeIn=_e.mergeIn,Pe.mergeDeep=_e.mergeDeep,Pe.mergeDeepWith=_e.mergeDeepWith,Pe.mergeDeepIn=_e.mergeDeepIn,Pe.setIn=_e.setIn,Pe.update=_e.update,Pe.updateIn=_e.updateIn,Pe.withMutations=_e.withMutations,Pe.asMutable=_e.asMutable,Pe.asImmutable=_e.asImmutable;function Qt(e,t,s){var _=Object.create(Object.getPrototypeOf(e));return _._map=t,_.__ownerID=s,_}function qo(e){return e._name||e.constructor.name||"Record"}function gl(e,t){try{t.forEach(yl.bind(void 0,e))}catch{}}function yl(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(s){jt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,s)}})}n(xe,Jt);function xe(e){return e==null?qr():Lr(e)&&!i(e)?e:qr().withMutations(function(t){var s=v(e);$e(s.size),s.forEach(function(_){return t.add(_)})})}xe.of=function(){return this(arguments)},xe.fromKeys=function(e){return this(d(e).keySeq())},xe.prototype.toString=function(){return this.__toString("Set {","}")},xe.prototype.has=function(e){return this._map.has(e)},xe.prototype.add=function(e){return Fr(this,this._map.set(e,!0))},xe.prototype.remove=function(e){return Fr(this,this._map.remove(e))},xe.prototype.clear=function(){return Fr(this,this._map.clear())},xe.prototype.union=function(){var e=g.call(arguments,0);return e=e.filter(function(t){return t.size!==0}),e.length===0?this:this.size===0&&!this.__ownerID&&e.length===1?this.constructor(e[0]):this.withMutations(function(t){for(var s=0;s<e.length;s++)v(e[s]).forEach(function(_){return t.add(_)})})},xe.prototype.intersect=function(){var e=g.call(arguments,0);if(e.length===0)return this;e=e.map(function(s){return v(s)});var t=this;return this.withMutations(function(s){t.forEach(function(_){e.every(function(C){return C.includes(_)})||s.remove(_)})})},xe.prototype.subtract=function(){var e=g.call(arguments,0);if(e.length===0)return this;e=e.map(function(s){return v(s)});var t=this;return this.withMutations(function(s){t.forEach(function(_){e.some(function(C){return C.includes(_)})&&s.remove(_)})})},xe.prototype.merge=function(){return this.union.apply(this,arguments)},xe.prototype.mergeWith=function(e){var t=g.call(arguments,1);return this.union.apply(this,t)},xe.prototype.sort=function(e){return ct(Kt(this,e))},xe.prototype.sortBy=function(e,t){return ct(Kt(this,t,e))},xe.prototype.wasAltered=function(){return this._map.wasAltered()},xe.prototype.__iterate=function(e,t){var s=this;return this._map.__iterate(function(_,C){return e(C,C,s)},t)},xe.prototype.__iterator=function(e,t){return this._map.map(function(s,_){return _}).__iterator(e,t)},xe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)};function Lr(e){return!!(e&&e[Po])}xe.isSet=Lr;var Po="@@__IMMUTABLE_SET__@@",Qe=xe.prototype;Qe[Po]=!0,Qe[f]=Qe.remove,Qe.mergeDeep=Qe.merge,Qe.mergeDeepWith=Qe.mergeWith,Qe.withMutations=_e.withMutations,Qe.asMutable=_e.asMutable,Qe.asImmutable=_e.asImmutable,Qe.__empty=qr,Qe.__make=Uo;function Fr(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function Uo(e,t){var s=Object.create(Qe);return s.size=e?e.size:0,s._map=e,s.__ownerID=t,s}var zo;function qr(){return zo||(zo=Uo(ut()))}n(ct,xe);function ct(e){return e==null?Pr():Ho(e)?e:Pr().withMutations(function(t){var s=v(e);$e(s.size),s.forEach(function(_){return t.add(_)})})}ct.of=function(){return this(arguments)},ct.fromKeys=function(e){return this(d(e).keySeq())},ct.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Ho(e){return Lr(e)&&i(e)}ct.isOrderedSet=Ho;var er=ct.prototype;er[r]=!0,er.__empty=Pr,er.__make=Vo;function Vo(e,t){var s=Object.create(er);return s.size=e?e.size:0,s._map=e,s.__ownerID=t,s}var Wo;function Pr(){return Wo||(Wo=Vo($t()))}n(Le,Ot);function Le(e){return e==null?Ur():Go(e)?e:Ur().unshiftAll(e)}Le.of=function(){return this(arguments)},Le.prototype.toString=function(){return this.__toString("Stack [","]")},Le.prototype.get=function(e,t){var s=this._head;for(e=L(this,e);s&&e--;)s=s.next;return s?s.value:t},Le.prototype.peek=function(){return this._head&&this._head.value},Le.prototype.push=function(){if(arguments.length===0)return this;for(var e=this.size+arguments.length,t=this._head,s=arguments.length-1;s>=0;s--)t={value:arguments[s],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):zt(e,t)},Le.prototype.pushAll=function(e){if(e=p(e),e.size===0)return this;$e(e.size);var t=this.size,s=this._head;return e.reverse().forEach(function(_){t++,s={value:_,next:s}}),this.__ownerID?(this.size=t,this._head=s,this.__hash=void 0,this.__altered=!0,this):zt(t,s)},Le.prototype.pop=function(){return this.slice(1)},Le.prototype.unshift=function(){return this.push.apply(this,arguments)},Le.prototype.unshiftAll=function(e){return this.pushAll(e)},Le.prototype.shift=function(){return this.pop.apply(this,arguments)},Le.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):Ur()},Le.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var s=H(e,this.size),_=G(t,this.size);if(_!==this.size)return Ot.prototype.slice.call(this,e,t);for(var C=this.size-s,R=this._head;s--;)R=R.next;return this.__ownerID?(this.size=C,this._head=R,this.__hash=void 0,this.__altered=!0,this):zt(C,R)},Le.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?zt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Le.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var s=0,_=this._head;_&&e(_.value,s++,this)!==!1;)_=_.next;return s},Le.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var s=0,_=this._head;return new ie(function(){if(_){var C=_.value;return _=_.next,ue(e,s++,C)}return ve()})};function Go(e){return!!(e&&e[jo])}Le.isStack=Go;var jo="@@__IMMUTABLE_STACK__@@",Mt=Le.prototype;Mt[jo]=!0,Mt.withMutations=_e.withMutations,Mt.asMutable=_e.asMutable,Mt.asImmutable=_e.asImmutable,Mt.wasAltered=_e.wasAltered;function zt(e,t,s,_){var C=Object.create(Mt);return C.size=e,C._head=t,C.__ownerID=s,C.__hash=_,C.__altered=!1,C}var Jo;function Ur(){return Jo||(Jo=zt(0))}function ft(e,t){var s=function(_){e.prototype[_]=t[_]};return Object.keys(t).forEach(s),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(s),e}a.Iterator=ie,ft(a,{toArray:function(){$e(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,s){e[s]=t}),e},toIndexedSeq:function(){return new Bt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&typeof e.toJS=="function"?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&typeof e.toJSON=="function"?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return Se(this.toKeyedSeq())},toObject:function(){$e(this.size);var e={};return this.__iterate(function(t,s){e[s]=t}),e},toOrderedMap:function(){return Ne(this.toKeyedSeq())},toOrderedSet:function(){return ct(h(this)?this.valueSeq():this)},toSet:function(){return xe(h(this)?this.valueSeq():this)},toSetSeq:function(){return new xt(this)},toSeq:function(){return S(this)?this.toIndexedSeq():h(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Le(h(this)?this.valueSeq():this)},toList:function(){return ke(h(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return this.size===0?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=g.call(arguments,0);return Oe(this,dl(this,e))},includes:function(e){return this.some(function(t){return Re(t,e)})},entries:function(){return this.__iterator(j)},every:function(e,t){$e(this.size);var s=!0;return this.__iterate(function(_,C,R){if(!e.call(t,_,C,R))return s=!1,!1}),s},filter:function(e,t){return Oe(this,Bo(this,e,t,!0))},find:function(e,t,s){var _=this.findEntry(e,t);return _?_[1]:s},findEntry:function(e,t){var s;return this.__iterate(function(_,C,R){if(e.call(t,_,C,R))return s=[C,_],!1}),s},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return $e(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){$e(this.size),e=e!==void 0?""+e:",";var t="",s=!0;return this.__iterate(function(_){s?s=!1:t+=e,t+=_!=null?_.toString():""}),t},keys:function(){return this.__iterator($)},map:function(e,t){return Oe(this,ko(this,e,t))},reduce:function(e,t,s){$e(this.size);var _,C;return arguments.length<2?C=!0:_=t,this.__iterate(function(R,M,q){C?(C=!1,_=R):_=e.call(s,_,R,M,q)}),_},reduceRight:function(e,t,s){var _=this.toKeyedSeq().reverse();return _.reduce.apply(_,arguments)},reverse:function(){return Oe(this,Kr(this,!0))},slice:function(e,t){return Oe(this,Mr(this,e,t,!0))},some:function(e,t){return!this.every(rr(e),t)},sort:function(e){return Oe(this,Kt(this,e))},values:function(){return this.__iterator(X)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(e,t){return A(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return fl(this,e,t)},equals:function(e){return bt(this,e)},entrySeq:function(){var e=this;if(e._cache)return new me(e._cache);var t=e.toSeq().map(_l).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(rr(e),t)},findLast:function(e,t,s){return this.toKeyedSeq().reverse().find(e,t,s)},first:function(){return this.find(F)},flatMap:function(e,t){return Oe(this,pl(this,e,t))},flatten:function(e){return Oe(this,Io(this,e,!0))},fromEntrySeq:function(){return new It(this)},get:function(e,t){return this.find(function(s,_){return Re(_,e)},void 0,t)},getIn:function(e,t){for(var s=this,_=Fo(e),C;!(C=_.next()).done;){var R=C.value;if(s=s&&s.get?s.get(R,I):I,s===I)return t}return s},groupBy:function(e,t){return ll(this,e,t)},has:function(e){return this.get(e,I)!==I},hasIn:function(e){return this.getIn(e,I)!==I},isSubset:function(e){return e=typeof e.includes=="function"?e:a(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset=="function"?e:a(e),e.isSubset(this)},keySeq:function(){return this.toSeq().map(ml).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Zt(this,e)},maxBy:function(e,t){return Zt(this,t,e)},min:function(e){return Zt(this,e?Xo(e):$o)},minBy:function(e,t){return Zt(this,t?Xo(t):$o,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Oe(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Oe(this,xo(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(rr(e),t)},sortBy:function(e,t){return Oe(this,Kt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Oe(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Oe(this,vl(this,e,t))},takeUntil:function(e,t){return this.takeWhile(rr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Sl(this))}});var He=a.prototype;He[l]=!0,He[pe]=He.values,He.__toJS=He.toArray,He.__toStringMapper=Yo,He.inspect=He.toSource=function(){return this.toString()},He.chain=He.flatMap,He.contains=He.includes,function(){try{Object.defineProperty(He,"length",{get:function(){if(!a.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(e.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch{}}(),ft(d,{flip:function(){return Oe(this,Ro(this))},findKey:function(e,t){var s=this.findEntry(e,t);return s&&s[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return Re(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return Re(t,e)})},mapEntries:function(e,t){var s=this,_=0;return Oe(this,this.toSeq().map(function(C,R){return e.call(t,[R,C],_++,s)}).fromEntrySeq())},mapKeys:function(e,t){var s=this;return Oe(this,this.toSeq().flip().map(function(_,C){return e.call(t,_,C,s)}).flip())}});var tr=d.prototype;tr[o]=!0,tr[pe]=He.entries,tr.__toJS=He.toObject,tr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Yo(e)},ft(p,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return Oe(this,Bo(this,e,t,!1))},findIndex:function(e,t){var s=this.findEntry(e,t);return s?s[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return t===void 0?-1:t},reverse:function(){return Oe(this,Kr(this,!1))},slice:function(e,t){return Oe(this,Mr(this,e,t,!1))},splice:function(e,t){var s=arguments.length;if(t=Math.max(t|0,0),s===0||s===2&&!t)return this;e=H(e,e<0?this.count():this.size);var _=this.slice(0,e);return Oe(this,s===1?_:_.concat(B(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var s=this.toKeyedSeq().findLastKey(e,t);return s===void 0?-1:s},first:function(){return this.get(0)},flatten:function(e){return Oe(this,Io(this,e,!1))},get:function(e,t){return e=L(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(s,_){return _===e},void 0,t)},has:function(e){return e=L(this,e),e>=0&&(this.size!==void 0?this.size===1/0||e<this.size:this.indexOf(e)!==-1)},interpose:function(e){return Oe(this,hl(this,e))},interleave:function(){var e=[this].concat(B(arguments)),t=Ar(this.toSeq(),J.of,e),s=t.flatten(!0);return t.size&&(s.size=t.size*e.length),Oe(this,s)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Oe(this,xo(this,e,t,!1))},zip:function(){var e=[this].concat(B(arguments));return Oe(this,Ar(this,El,e))},zipWith:function(e){var t=B(arguments);return t[0]=this,Oe(this,Ar(this,e,t))}}),p.prototype[u]=!0,p.prototype[r]=!0,ft(v,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),v.prototype.has=He.includes,ft(Z,d.prototype),ft(J,p.prototype),ft(re,v.prototype),ft(At,d.prototype),ft(Ot,p.prototype),ft(Jt,v.prototype);function ml(e,t){return t}function _l(e,t){return[t,e]}function rr(e){return function(){return!e.apply(this,arguments)}}function Xo(e){return function(){return-e.apply(this,arguments)}}function Yo(e){return typeof e=="string"?JSON.stringify(e):e}function El(){return B(arguments)}function $o(e,t){return e<t?1:e>t?-1:0}function Sl(e){if(e.size===1/0)return 0;var t=i(e),s=h(e),_=t?1:0,C=e.__iterate(s?t?function(R,M){_=31*_+Zo(Ye(R),Ye(M))|0}:function(R,M){_=_+Zo(Ye(R),Ye(M))|0}:t?function(R){_=31*_+Ye(R)|0}:function(R){_=_+Ye(R)|0});return wl(C,_)}function wl(e,t){return t=Nt(t,3432918353),t=Nt(t<<15|t>>>-15,461845907),t=Nt(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Nt(t^t>>>16,2246822507),t=Nt(t^t>>>13,3266489909),t=yr(t^t>>>16),t}function Zo(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Cl={Iterable:a,Seq:Y,Collection:ht,Map:Se,OrderedMap:Ne,List:ke,Stack:Le,Set:xe,OrderedSet:ct,Record:Ze,Range:ze,Repeat:Ue,is:Re,fromJS:We};return Cl})}(zr)),zr.exports}var Hr,eu;function Ht(){if(eu)return Hr;eu=1;var y=Ce(),m=y.OrderedMap,g={createFromArray:function(a){return m(a.map(function(d){return[d.getKey(),d]}))}};return Hr=g,Hr}var Vr,tu;function nt(){if(tu)return Vr;tu=1;function y(E,i){E.prototype=Object.create(i.prototype),E.prototype.constructor=E,E.__proto__=i}var m=Ce(),g=m.Map,n=m.OrderedSet,a=m.Record,d=n(),p={style:d,entity:null},v=a(p),c=function(E){y(i,E);function i(){return E.apply(this,arguments)||this}var l=i.prototype;return l.getStyle=function(){return this.get("style")},l.getEntity=function(){return this.get("entity")},l.hasStyle=function(u){return this.getStyle().includes(u)},i.applyStyle=function(u,r){var f=u.set("style",u.getStyle().add(r));return i.create(f)},i.removeStyle=function(u,r){var f=u.set("style",u.getStyle().remove(r));return i.create(f)},i.applyEntity=function(u,r){var f=u.getEntity()===r?u:u.set("entity",r);return i.create(f)},i.create=function(u){if(!u)return h;var r={style:d,entity:null},f=g(r).merge(u),w=S.get(f);if(w)return w;var D=new i(f);return S=S.set(f,D),D},i.fromJS=function(u){var r=u.style,f=u.entity;return new i({style:Array.isArray(r)?n(r):r,entity:Array.isArray(f)?n(f):f})},i}(v),h=new c,S=g([[g(p),h]]);return c.EMPTY=h,Vr=c,Vr}var Wr,ru;function Vt(){if(ru)return Wr;ru=1;function y(m,g,n,a){if(m.size){var d=0;m.reduce(function(p,v,c){return g(p,v)||(n(p)&&a(d,c),d=c),v}),n(m.last())&&a(d,m.count())}}return Wr=y,Wr}var Gr,nu;function Et(){if(nu)return Gr;nu=1;function y(r,f){r.prototype=Object.create(f.prototype),r.prototype.constructor=r,r.__proto__=f}var m=nt(),g=Vt(),n=Ce(),a=n.List,d=n.Map,p=n.OrderedSet,v=n.Record,c=n.Repeat,h=p(),S={key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:d()},E=v(S),i=function(f){if(!f)return f;var w=f.characterList,D=f.text;return D&&!w&&(f.characterList=a(c(m.EMPTY,D.length))),f},l=function(r){y(f,r);function f(D){return r.call(this,i(D))||this}var w=f.prototype;return w.getKey=function(){return this.get("key")},w.getType=function(){return this.get("type")},w.getText=function(){return this.get("text")},w.getCharacterList=function(){return this.get("characterList")},w.getLength=function(){return this.getText().length},w.getDepth=function(){return this.get("depth")},w.getData=function(){return this.get("data")},w.getInlineStyleAt=function(O){var I=this.getCharacterList().get(O);return I?I.getStyle():h},w.getEntityAt=function(O){var I=this.getCharacterList().get(O);return I?I.getEntity():null},w.findStyleRanges=function(O,I){g(this.getCharacterList(),o,O,I)},w.findEntityRanges=function(O,I){g(this.getCharacterList(),u,O,I)},f}(E);function o(r,f){return r.getStyle()===f.getStyle()}function u(r,f){return r.getEntity()===f.getEntity()}return Gr=l,Gr}var jr,iu;function it(){if(iu)return jr;iu=1;function y(u,r){u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.__proto__=r}var m=nt(),g=Vt(),n=Ce(),a=n.List,d=n.Map,p=n.OrderedSet,v=n.Record,c=n.Repeat,h=p(),S={parent:null,characterList:a(),data:d(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},E=function(r,f){return r.getStyle()===f.getStyle()},i=function(r,f){return r.getEntity()===f.getEntity()},l=function(r){if(!r)return r;var f=r.characterList,w=r.text;return w&&!f&&(r.characterList=a(c(m.EMPTY,w.length))),r},o=function(u){y(r,u);function r(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S;return u.call(this,l(w))||this}var f=r.prototype;return f.getKey=function(){return this.get("key")},f.getType=function(){return this.get("type")},f.getText=function(){return this.get("text")},f.getCharacterList=function(){return this.get("characterList")},f.getLength=function(){return this.getText().length},f.getDepth=function(){return this.get("depth")},f.getData=function(){return this.get("data")},f.getInlineStyleAt=function(D){var O=this.getCharacterList().get(D);return O?O.getStyle():h},f.getEntityAt=function(D){var O=this.getCharacterList().get(D);return O?O.getEntity():null},f.getChildKeys=function(){return this.get("children")},f.getParentKey=function(){return this.get("parent")},f.getPrevSiblingKey=function(){return this.get("prevSibling")},f.getNextSiblingKey=function(){return this.get("nextSibling")},f.findStyleRanges=function(D,O){g(this.getCharacterList(),E,D,O)},f.findEntityRanges=function(D,O){g(this.getCharacterList(),i,D,O)},r}(v(S));return jr=o,jr}var Jr,au;function bl(){if(au)return Jr;au=1;var y=nt(),m=Ce(),g=m.Map,n={add:function(p,v,c){return a(p,v,c,!0)},remove:function(p,v,c){return a(p,v,c,!1)}};function a(d,p,v,c){var h=d.getBlockMap(),S=p.getStartKey(),E=p.getStartOffset(),i=p.getEndKey(),l=p.getEndOffset(),o=h.skipUntil(function(u,r){return r===S}).takeUntil(function(u,r){return r===i}).concat(g([[i,h.get(i)]])).map(function(u,r){var f,w;S===i?(f=E,w=l):(f=r===S?E:0,w=r===i?l:u.getLength());for(var D=u.getCharacterList(),O;f<w;)O=D.get(f),D=D.set(f,c?y.applyStyle(O,v):y.removeStyle(O,v)),f++;return u.set("characterList",D)});return d.merge({blockMap:h.merge(o),selectionBefore:p,selectionAfter:p})}return Jr=n,Jr}var Xr,ou;function Ol(){if(ou)return Xr;ou=1;var y=nt();function m(g,n,a,d){for(var p=n,v=g.getCharacterList();p<a;)v=v.set(p,y.applyEntity(v.get(p),d)),p++;return g.set("characterList",v)}return Xr=m,Xr}var Yr,uu;function Tl(){if(uu)return Yr;uu=1;var y=Ol(),m=Ce();function g(n,a,d){var p=n.getBlockMap(),v=a.getStartKey(),c=a.getStartOffset(),h=a.getEndKey(),S=a.getEndOffset(),E=p.skipUntil(function(i,l){return l===v}).takeUntil(function(i,l){return l===h}).toOrderedMap().merge(m.OrderedMap([[h,p.get(h)]])).map(function(i,l){var o=l===v?c:0,u=l===h?S:i.getLength();return y(i,o,u,d)});return n.merge({blockMap:p.merge(E),selectionBefore:a,selectionAfter:a})}return Yr=g,Yr}var $r,su;function Rl(){if(su)return $r;su=1;var y={getRemovalRange:function(g,n,a,d,p){var v=a.split(" ");v=v.map(function(f,w){if(p==="forward"){if(w>0)return" "+f}else if(w<v.length-1)return f+" ";return f});for(var c=d,h,S,E=null,i=null,l=0;l<v.length;l++){if(S=v[l],h=c+S.length,g<h&&c<n)E!==null||(E=c),i=h;else if(E!==null)break;c=h}var o=d+a.length,u=E===d,r=i===o;return(!u&&r||u&&!r)&&(p==="forward"?i!==o&&i++:E!==d&&E--),{start:E,end:i}}};return $r=y,$r}var Zr,cu;function De(){if(cu)return Zr;cu=1;var y=process.env.NODE_ENV!=="production"?function(g){if(g===void 0)throw new Error("invariant(...): Second argument must be a string.")}:function(g){};function m(g,n){for(var a=arguments.length,d=new Array(a>2?a-2:0),p=2;p<a;p++)d[p-2]=arguments[p];if(y(n),!g){var v;if(n===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;v=new Error(n.replace(/%s/g,function(){return String(d[c++])})),v.name="Invariant Violation"}throw v.framesToPop=1,v}}return Zr=m,Zr}var Qr,fu;function kl(){if(fu)return Qr;fu=1;var y=De();function m(g,n){var a=[];return g.findEntityRanges(function(d){return d.getEntity()===n},function(d,p){a.push({start:d,end:p})}),a.length||(process.env.NODE_ENV!=="production"?y(!1,"Entity key not found in this range."):y(!1)),a}return Qr=m,Qr}var en,lu;function Bl(){if(lu)return en;lu=1;var y=Rl(),m=kl(),g=De();function n(d,p,v,c,h){var S=c.getStartOffset(),E=c.getEndOffset(),i=p.getEntityAt(S),l=v.getEntityAt(E-1);if(!i&&!l)return c;var o=c;if(i&&i===l)o=a(d,p,o,h,i,!0,!0);else if(i&&l){var u=a(d,p,o,h,i,!1,!0),r=a(d,v,o,h,l,!1,!1);o=o.merge({anchorOffset:u.getAnchorOffset(),focusOffset:r.getFocusOffset(),isBackward:!1})}else if(i){var f=a(d,p,o,h,i,!1,!0);o=o.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(l){var w=a(d,v,o,h,l,!1,!1);o=o.merge({focusOffset:w.getEndOffset(),isBackward:!1})}return o}function a(d,p,v,c,h,S,E){var i=v.getStartOffset(),l=v.getEndOffset(),o=d.__get(h),u=o.getMutability(),r=E?i:l;if(u==="MUTABLE")return v;var f=m(p,h).filter(function(O){return r<=O.end&&r>=O.start});f.length!=1&&(process.env.NODE_ENV!=="production"?g(!1,"There should only be one entity range within this removal range."):g(!1));var w=f[0];if(u==="IMMUTABLE")return v.merge({anchorOffset:w.start,focusOffset:w.end,isBackward:!1});S||(E?l=w.end:i=w.start);var D=y.getRemovalRange(i,l,p.getText().slice(w.start,w.end),w.start,c);return v.merge({anchorOffset:D.start,focusOffset:D.end,isBackward:!1})}return en=n,en}var tn,vu;function vt(){if(vu)return tn;vu=1;var y={},m=Math.pow(2,24);function g(){for(var n;n===void 0||y.hasOwnProperty(n)||!isNaN(+n);)n=Math.floor(Math.random()*m).toString(32);return y[n]=!0,n}return tn=g,tn}var rn,du;function vf(){if(du)return rn;du=1;var y=it(),m=vt(),g=Ce(),n=g.OrderedMap,a=function(c){var h={},S;return n(c.withMutations(function(E){E.forEach(function(i,l){var o=i.getKey(),u=i.getNextSiblingKey(),r=i.getPrevSiblingKey(),f=i.getChildKeys(),w=i.getParentKey(),D=m();if(h[o]=D,u){var O=E.get(u);O?E.setIn([u,"prevSibling"],D):E.setIn([o,"nextSibling"],null)}if(r){var I=E.get(r);I?E.setIn([r,"nextSibling"],D):E.setIn([o,"prevSibling"],null)}if(w&&E.get(w)){var k=E.get(w),K=k.getChildKeys();E.setIn([w,"children"],K.set(K.indexOf(i.getKey()),D))}else E.setIn([o,"parent"],null),S&&(E.setIn([S.getKey(),"nextSibling"],D),E.setIn([o,"prevSibling"],h[S.getKey()])),S=E.get(o);f.forEach(function(x){var T=E.get(x);T?E.setIn([x,"parent"],D):E.setIn([o,"children"],i.getChildKeys().filter(function(b){return b!==x}))})})}).toArray().map(function(E){return[h[E.getKey()],E.set("key",h[E.getKey()])]}))},d=function(c){return n(c.toArray().map(function(h){var S=m();return[S,h.set("key",S)]}))},p=function(c){var h=c.first()instanceof y;return h?a(c):d(c)};return rn=p,rn}var nn,pu;function df(){if(pu)return nn;pu=1;var y=nt(),m=Vt(),g=De();function n(p,v){var c=p.getBlockMap(),h=p.getEntityMap(),S={},E=v.getStartKey(),i=v.getStartOffset(),l=c.get(E),o=d(h,l,i);o!==l&&(S[E]=o);var u=v.getEndKey(),r=v.getEndOffset(),f=c.get(u);E===u&&(f=o);var w=d(h,f,r);return w!==f&&(S[u]=w),Object.keys(S).length?p.merge({blockMap:c.merge(S),selectionAfter:v}):p.set("selectionAfter",v)}function a(p,v,c){var h;return m(p,function(S,E){return S.getEntity()===E.getEntity()},function(S){return S.getEntity()===v},function(S,E){S<=c&&E>=c&&(h={start:S,end:E})}),typeof h!="object"&&(process.env.NODE_ENV!=="production"?g(!1,"Removal range must exist within character list."):g(!1)),h}function d(p,v,c){var h=v.getCharacterList(),S=c>0?h.get(c-1):void 0,E=c<h.count()?h.get(c):void 0,i=S?S.getEntity():void 0,l=E?E.getEntity():void 0;if(l&&l===i){var o=p.__get(l);if(o.getMutability()!=="MUTABLE"){for(var u=a(h,l,c),r=u.start,f=u.end,w;r<f;)w=h.get(r),h=h.set(r,y.applyEntity(w,null)),r++;return v.set("characterList",h)}}return v}return nn=n,nn}var an,hu;function ar(){if(hu)return an;hu=1;var y=vf(),m=df(),g=function(a,d){var p=d.getStartKey(),v=d.getStartOffset(),c=d.getEndKey(),h=d.getEndOffset(),S=m(a,d),E=S.getBlockMap(),i=E.keySeq(),l=i.indexOf(p),o=i.indexOf(c)+1;return y(E.slice(l,o).map(function(u,r){var f=u.getText(),w=u.getCharacterList();return p===c?u.merge({text:f.slice(v,h),characterList:w.slice(v,h)}):r===p?u.merge({text:f.slice(v),characterList:w.slice(v)}):r===c?u.merge({text:f.slice(0,h),characterList:w.slice(0,h)}):u}))};return an=g,an}var on,gu;function pf(){if(gu)return on;gu=1;function y(m,g,n){var a=m;if(n===a.count())g.forEach(function(v){a=a.push(v)});else if(n===0)g.reverse().forEach(function(v){a=a.unshift(v)});else{var d=a.slice(0,n),p=a.slice(n);a=d.concat(g,p).toList()}return a}return on=y,on}var un,yu;function xl(){if(yu)return un;yu=1;var y=Ht(),m=it(),g=Ce(),n=pf(),a=De(),d=vf(),p=g.List,v=function(u,r,f,w,D,O){var I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",k=f.get(D),K=k.getText(),x=k.getCharacterList(),T=D,b=O+w.getText().length,B=null;switch(I){case"MERGE_OLD_DATA_TO_NEW_DATA":B=w.getData().merge(k.getData());break;case"REPLACE_WITH_NEW_DATA":B=w.getData();break}var A=k.getType();K&&A==="unstyled"&&(A=w.getType());var L=k.merge({text:K.slice(0,O)+w.getText()+K.slice(O),characterList:n(x,w.getCharacterList(),O),type:A,data:B});return u.merge({blockMap:f.set(D,L),selectionBefore:r,selectionAfter:r.merge({anchorKey:T,anchorOffset:b,focusKey:T,focusOffset:b,isBackward:!1})})},c=function(u,r,f){var w=u.getText(),D=u.getCharacterList(),O=w.slice(0,r),I=D.slice(0,r),k=f.first();return u.merge({text:O+k.getText(),characterList:I.concat(k.getCharacterList()),type:O?u.getType():k.getType(),data:k.getData()})},h=function(u,r,f){var w=u.getText(),D=u.getCharacterList(),O=w.length,I=w.slice(r,O),k=D.slice(r,O),K=f.last();return K.merge({text:K.getText()+I,characterList:K.getCharacterList().concat(k),data:K.getData()})},S=function(u,r){var f=u.getKey(),w=u,D=[];for(r.get(f)&&D.push(f);w&&w.getNextSiblingKey();){var O=w.getNextSiblingKey();if(!O)break;D.push(O),w=r.get(O)}return D},E=function(u,r,f,w){return u.withMutations(function(D){var O=f.getKey(),I=w.getKey(),k=f.getNextSiblingKey(),K=f.getParentKey(),x=S(w,u),T=x[x.length-1];if(D.get(I)?(D.setIn([O,"nextSibling"],I),D.setIn([I,"prevSibling"],O)):(D.setIn([O,"nextSibling"],w.getNextSiblingKey()),D.setIn([w.getNextSiblingKey(),"prevSibling"],O)),D.setIn([T,"nextSibling"],k),k&&D.setIn([k,"prevSibling"],T),x.forEach(function(P){return D.setIn([P,"parent"],K)}),K){var b=u.get(K),B=b.getChildKeys(),A=B.indexOf(O),L=A+1,F=B.toArray();F.splice.apply(F,[L,0].concat(x)),D.setIn([K,"children"],p(F))}})},i=function(u,r,f,w,D,O){var I=f.first()instanceof m,k=[],K=w.size,x=f.get(D),T=w.first(),b=w.last(),B=b.getLength(),A=b.getKey(),L=I&&(!x.getChildKeys().isEmpty()||!T.getChildKeys().isEmpty());f.forEach(function(P,H){if(H!==D){k.push(P);return}L?k.push(P):k.push(c(P,O,w)),w.slice(L?0:1,K-1).forEach(function(G){return k.push(G)}),k.push(h(P,O,w))});var F=y.createFromArray(k);return I&&(F=E(F,f,x,T)),u.merge({blockMap:F,selectionBefore:r,selectionAfter:r.merge({anchorKey:A,anchorOffset:B,focusKey:A,focusOffset:B,isBackward:!1})})},l=function(u,r,f){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";r.isCollapsed()||(process.env.NODE_ENV!=="production"?a(!1,"`insertFragment` should only be called with a collapsed selection state."):a(!1));var D=u.getBlockMap(),O=d(f),I=r.getStartKey(),k=r.getStartOffset(),K=D.get(I);return K instanceof m&&(K.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?a(!1,"`insertFragment` should not be called when a container node is selected."):a(!1))),O.size===1?v(u,r,D,O.first(),I,k,w):i(u,r,D,O,I,k)};return un=l,un}var sn,mu;function Il(){if(mu)return sn;mu=1;var y=Ce(),m=pf(),g=De(),n=y.Repeat;function a(d,p,v,c){p.isCollapsed()||(process.env.NODE_ENV!=="production"?g(!1,"`insertText` should only be called with a collapsed range."):g(!1));var h=null;if(v!=null&&(h=v.length),h==null||h===0)return d;var S=d.getBlockMap(),E=p.getStartKey(),i=p.getStartOffset(),l=S.get(E),o=l.getText(),u=l.merge({text:o.slice(0,i)+v+o.slice(i,l.getLength()),characterList:m(l.getCharacterList(),n(c,h).toList(),i)}),r=i+h;return d.merge({blockMap:S.set(E,u),selectionAfter:p.merge({anchorOffset:r,focusOffset:r})})}return sn=a,sn}var cn,_u;function hf(){if(_u)return cn;_u=1;var y=Ce(),m=y.Map;function g(n,a,d){var p=a.getStartKey(),v=a.getEndKey(),c=n.getBlockMap(),h=c.toSeq().skipUntil(function(S,E){return E===p}).takeUntil(function(S,E){return E===v}).concat(m([[v,c.get(v)]])).map(d);return n.merge({blockMap:c.merge(h),selectionBefore:a,selectionAfter:a})}return cn=g,cn}var fn,Eu;function gf(){if(Eu)return fn;Eu=1;var y=it(),m=function(n,a){var d=n instanceof y;if(!d)return null;var p=n.getNextSiblingKey();if(p)return p;var v=n.getParentKey();if(!v)return null;for(var c=a.get(v);c&&!c.getNextSiblingKey();){var h=c.getParentKey();c=h?a.get(h):null}return c?c.getNextSiblingKey():null};return fn=m,fn}var ln,Su;function Kl(){if(Su)return ln;Su=1;var y=it(),m=gf(),g=Ce();g.List;var n=g.Map,a=function(l,o,u){if(l){var r=o.get(l);r&&o.set(l,u(r))}},d=function(l,o){var u=[];if(!l)return u;for(var r=o.get(l);r&&r.getParentKey();){var f=r.getParentKey();f&&u.push(f),r=f?o.get(f):null}return u},p=function(l,o){var u=[];if(!l)return u;for(var r=m(l,o);r&&o.get(r);){var f=o.get(r);u.push(r),r=f.getParentKey()?m(f,o):null}return u},v=function(l,o,u){if(!l)return null;for(var r=u.get(l.getKey()).getNextSiblingKey();r&&!o.get(r);)r=u.get(r).getNextSiblingKey()||null;return r},c=function(l,o,u){if(!l)return null;for(var r=u.get(l.getKey()).getPrevSiblingKey();r&&!o.get(r);)r=u.get(r).getPrevSiblingKey()||null;return r},h=function(l,o,u,r){return l.withMutations(function(f){if(a(o.getKey(),f,function(k){return k.merge({nextSibling:v(k,f,r),prevSibling:c(k,f,r)})}),a(u.getKey(),f,function(k){return k.merge({nextSibling:v(k,f,r),prevSibling:c(k,f,r)})}),d(o.getKey(),r).forEach(function(k){return a(k,f,function(K){return K.merge({children:K.getChildKeys().filter(function(x){return f.get(x)}),nextSibling:v(K,f,r),prevSibling:c(K,f,r)})})}),a(o.getNextSiblingKey(),f,function(k){return k.merge({prevSibling:o.getPrevSiblingKey()})}),a(o.getPrevSiblingKey(),f,function(k){return k.merge({nextSibling:v(k,f,r)})}),a(u.getNextSiblingKey(),f,function(k){return k.merge({prevSibling:c(k,f,r)})}),a(u.getPrevSiblingKey(),f,function(k){return k.merge({nextSibling:u.getNextSiblingKey()})}),d(u.getKey(),r).forEach(function(k){a(k,f,function(K){return K.merge({children:K.getChildKeys().filter(function(x){return f.get(x)}),nextSibling:v(K,f,r),prevSibling:c(K,f,r)})})}),p(u,r).forEach(function(k){return a(k,f,function(K){return K.merge({nextSibling:v(K,f,r),prevSibling:c(K,f,r)})})}),l.get(o.getKey())==null&&l.get(u.getKey())!=null&&u.getParentKey()===o.getKey()&&u.getPrevSiblingKey()==null){var w=o.getPrevSiblingKey();a(u.getKey(),f,function(k){return k.merge({prevSibling:w})}),a(w,f,function(k){return k.merge({nextSibling:u.getKey()})});var D=w?l.get(w):null,O=D?D.getParentKey():null;if(o.getChildKeys().forEach(function(k){a(k,f,function(K){return K.merge({parent:O})})}),O!=null){var I=l.get(O);a(O,f,function(k){return k.merge({children:I.getChildKeys().concat(o.getChildKeys())})})}a(o.getChildKeys().find(function(k){var K=l.get(k);return K.getNextSiblingKey()===null}),f,function(k){return k.merge({nextSibling:o.getNextSiblingKey()})})}})},S=function(l,o){if(o.isCollapsed())return l;var u=l.getBlockMap(),r=o.getStartKey(),f=o.getStartOffset(),w=o.getEndKey(),D=o.getEndOffset(),O=u.get(r),I=u.get(w),k=O instanceof y,K=[];if(k){var x=I.getChildKeys(),T=d(w,u);I.getNextSiblingKey()&&(K=K.concat(T)),x.isEmpty()||(K=K.concat(T.concat([w]))),K=K.concat(d(m(I,u),u))}var b;O===I?b=E(O.getCharacterList(),f,D):b=O.getCharacterList().slice(0,f).concat(I.getCharacterList().slice(D));var B=O.merge({text:O.getText().slice(0,f)+I.getText().slice(D),characterList:b}),A=k&&f===0&&D===0&&I.getParentKey()===r&&I.getPrevSiblingKey()==null,L=A?n([[r,null]]):u.toSeq().skipUntil(function(P,H){return H===r}).takeUntil(function(P,H){return H===w}).filter(function(P,H){return K.indexOf(H)===-1}).concat(n([[w,null]])).map(function(P,H){return H===r?B:null}),F=u.merge(L).filter(function(P){return!!P});return k&&O!==I&&(F=h(F,O,I,u)),l.merge({blockMap:F,selectionBefore:o,selectionAfter:o.merge({anchorKey:r,anchorOffset:f,focusKey:r,focusOffset:f,isBackward:!1})})},E=function(l,o,u){if(o===0)for(;o<u;)l=l.shift(),o++;else if(u===l.count())for(;u>o;)l=l.pop(),u--;else{var r=l.slice(0,o),f=l.slice(u);l=r.concat(f).toList()}return l};return ln=S,ln}var vn,wu;function Ml(){if(wu)return vn;wu=1;var y=it(),m=vt(),g=Ce(),n=De(),a=hf(),d=g.List,p=g.Map,v=function(E,i,l){if(E){var o=i.get(E);o&&i.set(E,l(o))}},c=function(E,i,l){return E.withMutations(function(o){var u=i.getKey(),r=l.getKey();v(i.getParentKey(),o,function(f){var w=f.getChildKeys(),D=w.indexOf(u)+1,O=w.toArray();return O.splice(D,0,r),f.merge({children:d(O)})}),v(i.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:r})}),v(u,o,function(f){return f.merge({nextSibling:r})}),v(r,o,function(f){return f.merge({prevSibling:u})})})},h=function(E,i){i.isCollapsed()||(process.env.NODE_ENV!=="production"?n(!1,"Selection range must be collapsed."):n(!1));var l=i.getAnchorKey(),o=E.getBlockMap(),u=o.get(l),r=u.getText();if(!r){var f=u.getType();if(f==="unordered-list-item"||f==="ordered-list-item")return a(E,i,function(B){return B.merge({type:"unstyled",depth:0})})}var w=i.getAnchorOffset(),D=u.getCharacterList(),O=m(),I=u instanceof y,k=u.merge({text:r.slice(0,w),characterList:D.slice(0,w)}),K=k.merge({key:O,text:r.slice(w),characterList:D.slice(w),data:p()}),x=o.toSeq().takeUntil(function(B){return B===u}),T=o.toSeq().skipUntil(function(B){return B===u}).rest(),b=x.concat([[l,k],[O,K]],T).toOrderedMap();return I&&(u.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?n(!1,"ContentBlockNode must not have children"):n(!1)),b=c(b,k,K)),E.merge({blockMap:b,selectionBefore:i,selectionAfter:i.merge({anchorKey:O,anchorOffset:0,focusKey:O,focusOffset:0,isBackward:!1})})};return vn=h,vn}var dn,Cu;function Ge(){if(Cu)return dn;Cu=1;var y=nt(),m=bl(),g=Tl(),n=Bl(),a=ar(),d=Ce(),p=xl(),v=Il(),c=De(),h=hf(),S=df(),E=Kl(),i=Ml(),l=d.OrderedSet,o={replaceText:function(r,f,w,D,O){var I=S(r,f),k=E(I,f),K=y.create({style:D||l(),entity:O||null});return v(k,k.getSelectionAfter(),w,K)},insertText:function(r,f,w,D,O){return f.isCollapsed()||(process.env.NODE_ENV!=="production"?c(!1,"Target range must be collapsed for `insertText`."):c(!1)),o.replaceText(r,f,w,D,O)},moveText:function(r,f,w){var D=a(r,f),O=o.removeRange(r,f,"backward");return o.replaceWithFragment(O,w,D)},replaceWithFragment:function(r,f,w){var D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",O=S(r,f),I=E(O,f);return p(I,I.getSelectionAfter(),w,D)},removeRange:function(r,f,w){var D,O,I,k;f.getIsBackward()&&(f=f.merge({anchorKey:f.getFocusKey(),anchorOffset:f.getFocusOffset(),focusKey:f.getAnchorKey(),focusOffset:f.getAnchorOffset(),isBackward:!1})),D=f.getAnchorKey(),O=f.getFocusKey(),I=r.getBlockForKey(D),k=r.getBlockForKey(O);var K=f.getStartOffset(),x=f.getEndOffset(),T=I.getEntityAt(K),b=k.getEntityAt(x-1);if(D===O&&T&&T===b){var B=n(r.getEntityMap(),I,k,f,w);return E(r,B)}var A=S(r,f);return E(A,f)},splitBlock:function(r,f){var w=S(r,f),D=E(w,f);return i(D,D.getSelectionAfter())},applyInlineStyle:function(r,f,w){return m.add(r,f,w)},removeInlineStyle:function(r,f,w){return m.remove(r,f,w)},setBlockType:function(r,f,w){return h(r,f,function(D){return D.merge({type:w,depth:0})})},setBlockData:function(r,f,w){return h(r,f,function(D){return D.merge({data:w})})},mergeBlockData:function(r,f,w){return h(r,f,function(D){return D.merge({data:D.getData().merge(w)})})},applyEntity:function(r,f,w){var D=S(r,f);return g(D,f,w)}};return dn=o,dn}var pn,Du;function yf(){if(Du)return pn;Du=1;function y(m){return Object.keys(m).map(function(g){return m[g]})}return pn=y,pn}var hn,bu;function Al(){if(bu)return hn;bu=1;function y(f){for(var w=1;w<arguments.length;w++){var D=arguments[w]!=null?arguments[w]:{},O=Object.keys(D);typeof Object.getOwnPropertySymbols=="function"&&(O=O.concat(Object.getOwnPropertySymbols(D).filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable}))),O.forEach(function(I){m(f,I,D[I])})}return f}function m(f,w,D){return w in f?Object.defineProperty(f,w,{value:D,enumerable:!0,configurable:!0,writable:!0}):f[w]=D,f}function g(f,w){if(f==null)return{};var D={},O=Object.keys(f),I,k;for(k=0;k<O.length;k++)I=O[k],!(w.indexOf(I)>=0)&&(D[I]=f[I]);return D}var n=Vt(),a=yf(),d=Ce(),p=d.List,v=d.Repeat,c=d.Record,h=function(){return!0},S={start:null,end:null},E=c(S),i={start:null,end:null,decoratorKey:null,leaves:null},l=c(i),o={generate:function(w,D,O){var I=D.getLength();if(!I)return p.of(new l({start:0,end:0,decoratorKey:null,leaves:p.of(new E({start:0,end:0}))}));var k=[],K=O?O.getDecorations(D,w):p(v(null,I)),x=D.getCharacterList();return n(K,r,h,function(T,b){k.push(new l({start:T,end:b,decoratorKey:K.get(T),leaves:u(x.slice(T,b).toList(),T)}))}),p(k)},fromJS:function(w){var D=w.leaves,O=g(w,["leaves"]);return new l(y({},O,{leaves:D!=null?p(Array.isArray(D)?D:a(D)).map(function(I){return E(I)}):null}))}};function u(f,w){var D=[],O=f.map(function(I){return I.getStyle()}).toList();return n(O,r,h,function(I,k){D.push(new E({start:I+w,end:k+w}))}),p(D)}function r(f,w){return f===w}return hn=o,hn}var gn,Ou;function mf(){if(Ou)return gn;Ou=1;function y(d,p){d.prototype=Object.create(p.prototype),d.prototype.constructor=d,d.__proto__=p}var m=Ce(),g=m.Record,n=g({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),a=function(d){y(p,d);function p(){return d.apply(this,arguments)||this}var v=p.prototype;return v.getType=function(){return this.get("type")},v.getMutability=function(){return this.get("mutability")},v.getData=function(){return this.get("data")},p}(n);return gn=a,gn}var yn,Tu;function Nl(){if(Tu)return yn;Tu=1;function y(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(m){var g=Math.random()*16|0,n=m=="x"?g:g&3|8;return n.toString(16)})}return yn=y,yn}var mn,Ru;function or(){if(Ru)return mn;Ru=1;function y(E){for(var i=1;i<arguments.length;i++){var l=arguments[i]!=null?arguments[i]:{},o=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(l).filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}))),o.forEach(function(u){m(E,u,l[u])})}return E}function m(E,i,l){return i in E?Object.defineProperty(E,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):E[i]=l,E}var g=mf(),n=Ce(),a=De(),d=Nl(),p=n.Map,v=p(),c=d();function h(E,i){console.warn("WARNING: "+E+` will be deprecated soon!
|
|
2
2
|
Please use "`+i+'" instead.')}var S={getLastCreatedEntityKey:function(){return h("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),S.__getLastCreatedEntityKey()},create:function(i,l,o){return h("DraftEntity.create","contentState.createEntity"),S.__create(i,l,o)},add:function(i){return h("DraftEntity.add","contentState.addEntity"),S.__add(i)},get:function(i){return h("DraftEntity.get","contentState.getEntity"),S.__get(i)},__getAll:function(){return v},__loadWithEntities:function(i){v=i,c=d()},mergeData:function(i,l){return h("DraftEntity.mergeData","contentState.mergeEntityData"),S.__mergeData(i,l)},replaceData:function(i,l){return h("DraftEntity.replaceData","contentState.replaceEntityData"),S.__replaceData(i,l)},__getLastCreatedEntityKey:function(){return c},__create:function(i,l,o){return S.__add(new g({type:i,mutability:l,data:o||{}}))},__add:function(i){return c=d(),v=v.set(c,i),c},__get:function(i){var l=v.get(i);return l||(process.env.NODE_ENV!=="production"?a(!1,"Unknown DraftEntity key: %s.",i):a(!1)),l},__mergeData:function(i,l){var o=S.__get(i),u=y({},o.getData(),l),r=o.set("data",u);return v=v.set(i,r),r},__replaceData:function(i,l){var o=S.__get(i),u=o.set("data",l);return v=v.set(i,u),u}};return mn=S,mn}var _n,ku;function ur(){if(ku)return _n;ku=1;function y(p,v){p.prototype=Object.create(v.prototype),p.prototype.constructor=p,p.__proto__=v}var m=Ce(),g=m.Record,n={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},a=g(n),d=function(p){y(v,p);function v(){return p.apply(this,arguments)||this}var c=v.prototype;return c.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},c.getAnchorKey=function(){return this.get("anchorKey")},c.getAnchorOffset=function(){return this.get("anchorOffset")},c.getFocusKey=function(){return this.get("focusKey")},c.getFocusOffset=function(){return this.get("focusOffset")},c.getIsBackward=function(){return this.get("isBackward")},c.getHasFocus=function(){return this.get("hasFocus")},c.hasEdgeWithin=function(S,E,i){var l=this.getAnchorKey(),o=this.getFocusKey();if(l===o&&l===S){var u=this.getStartOffset(),r=this.getEndOffset();return E<=u&&u<=i||E<=r&&r<=i}if(S!==l&&S!==o)return!1;var f=S===l?this.getAnchorOffset():this.getFocusOffset();return E<=f&&i>=f},c.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},c.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},c.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},c.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},c.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},v.createEmpty=function(S){return new v({anchorKey:S,anchorOffset:0,focusKey:S,focusOffset:0,isBackward:!1,hasFocus:!1})},v}(a);return _n=d,_n}var En,Bu;function mt(){return Bu||(Bu=1,En=function(y){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[y]:!1}),En}var Sn,xu;function _f(){if(xu)return Sn;xu=1;var y=new RegExp("\r","g");function m(g){return g.replace(y,"")}return Sn=m,Sn}var wn,Iu;function $a(){if(Iu)return wn;Iu=1;function y(K){for(var x=1;x<arguments.length;x++){var T=arguments[x]!=null?arguments[x]:{},b=Object.keys(T);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(T).filter(function(B){return Object.getOwnPropertyDescriptor(T,B).enumerable}))),b.forEach(function(B){m(K,B,T[B])})}return K}function m(K,x,T){return x in K?Object.defineProperty(K,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):K[x]=T,K}function g(K,x){K.prototype=Object.create(x.prototype),K.prototype.constructor=K,K.__proto__=x}var n=Ht(),a=nt(),d=Et(),p=it(),v=or(),c=ur(),h=vt(),S=yf(),E=mt(),i=Ce(),l=_f(),o=i.List,u=i.Record,r=i.Repeat,f=i.Map,w=i.OrderedMap,D={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},O=u(D),I=E("draft_tree_data_support")?p:d,k=function(K){g(x,K);function x(){return K.apply(this,arguments)||this}var T=x.prototype;return T.getEntityMap=function(){return v},T.getBlockMap=function(){return this.get("blockMap")},T.getSelectionBefore=function(){return this.get("selectionBefore")},T.getSelectionAfter=function(){return this.get("selectionAfter")},T.getBlockForKey=function(B){var A=this.getBlockMap().get(B);return A},T.getKeyBefore=function(B){return this.getBlockMap().reverse().keySeq().skipUntil(function(A){return A===B}).skip(1).first()},T.getKeyAfter=function(B){return this.getBlockMap().keySeq().skipUntil(function(A){return A===B}).skip(1).first()},T.getBlockAfter=function(B){return this.getBlockMap().skipUntil(function(A,L){return L===B}).skip(1).first()},T.getBlockBefore=function(B){return this.getBlockMap().reverse().skipUntil(function(A,L){return L===B}).skip(1).first()},T.getBlocksAsArray=function(){return this.getBlockMap().toArray()},T.getFirstBlock=function(){return this.getBlockMap().first()},T.getLastBlock=function(){return this.getBlockMap().last()},T.getPlainText=function(B){return this.getBlockMap().map(function(A){return A?A.getText():""}).join(B||`
|
|
3
3
|
`)},T.getLastCreatedEntityKey=function(){return v.__getLastCreatedEntityKey()},T.hasText=function(){var B=this.getBlockMap();return B.size>1||escape(B.first().getText()).replace(/%u200B/g,"").length>0},T.createEntity=function(B,A,L){return v.__create(B,A,L),this},T.mergeEntityData=function(B,A){return v.__mergeData(B,A),this},T.replaceEntityData=function(B,A){return v.__replaceData(B,A),this},T.addEntity=function(B){return v.__add(B),this},T.getEntity=function(B){return v.__get(B)},T.getAllEntities=function(){return v.__getAll()},T.loadWithEntities=function(B){return v.__loadWithEntities(B)},x.createFromBlockArray=function(B,A){var L=Array.isArray(B)?B:B.contentBlocks,F=n.createFromArray(L),P=F.isEmpty()?new c:c.createEmpty(F.first().getKey());return new x({blockMap:F,entityMap:A||v,selectionBefore:P,selectionAfter:P})},x.createFromText=function(B){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,L=B.split(A),F=L.map(function(P){return P=l(P),new I({key:h(),text:P,type:"unstyled",characterList:o(r(a.EMPTY,P.length))})});return x.createFromBlockArray(F)},x.fromJS=function(B){return new x(y({},B,{blockMap:w(B.blockMap).map(x.createContentBlockFromJS),selectionBefore:new c(B.selectionBefore),selectionAfter:new c(B.selectionAfter)}))},x.createContentBlockFromJS=function(B){var A=B.characterList;return new I(y({},B,{data:f(B.data),characterList:A!=null?o((Array.isArray(A)?A:S(A)).map(function(L){return a.fromJS(L)})):void 0}))},x}(O);return wn=k,wn}var Cn,Ku;function sr(){if(Ku)return Cn;Ku=1;var y=De(),m="NEUTRAL",g="LTR",n="RTL",a=null;function d(i){return i===g||i===n}function p(i){return d(i)||(process.env.NODE_ENV!=="production"?y(!1,"`dir` must be a strong direction to be converted to HTML Direction"):y(!1)),i===g?"ltr":"rtl"}function v(i,l){return d(i)||(process.env.NODE_ENV!=="production"?y(!1,"`dir` must be a strong direction to be converted to HTML Direction"):y(!1)),d(l)||(process.env.NODE_ENV!=="production"?y(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):y(!1)),i===l?null:p(i)}function c(i){a=i}function h(){c(g)}function S(){return a||this.initGlobalDir(),a||(process.env.NODE_ENV!=="production"?y(!1,"Global direction not set."):y(!1)),a}var E={NEUTRAL:m,LTR:g,RTL:n,isStrong:d,getHTMLDir:p,getHTMLDirIfDifferent:v,setGlobalDir:c,initGlobalDir:h,getGlobalDir:S};return Cn=E,Cn}var Dn,Mu;function Za(){if(Mu)return Dn;Mu=1;var y=sr(),m=De(),g={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-"},n=new RegExp("["+g.L+g.R+g.AL+"]"),a=new RegExp("["+g.R+g.AL+"]");function d(i){var l=n.exec(i);return l==null?null:l[0]}function p(i){var l=d(i);return l==null?y.NEUTRAL:a.exec(l)?y.RTL:y.LTR}function v(i,l){if(l=l||y.NEUTRAL,!i.length)return l;var o=p(i);return o===y.NEUTRAL?l:o}function c(i,l){return l||(l=y.getGlobalDir()),y.isStrong(l)||(process.env.NODE_ENV!=="production"?m(!1,"Fallback direction must be a strong direction"):m(!1)),v(i,l)}function h(i,l){return c(i,l)===y.LTR}function S(i,l){return c(i,l)===y.RTL}var E={firstStrongChar:d,firstStrongCharDir:p,resolveBlockDir:v,getDirection:c,isDirectionLTR:h,isDirectionRTL:S};return Dn=E,Dn}var bn,Au;function Ll(){if(Au)return bn;Au=1;function y(d,p,v){return p in d?Object.defineProperty(d,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[p]=v,d}var m=Za(),g=sr(),n=De(),a=function(){function d(v){y(this,"_defaultDir",void 0),y(this,"_lastDir",void 0),v?g.isStrong(v)||(process.env.NODE_ENV!=="production"?n(!1,"Default direction must be a strong direction (LTR or RTL)"):n(!1)):v=g.getGlobalDir(),this._defaultDir=v,this.reset()}var p=d.prototype;return p.reset=function(){this._lastDir=this._defaultDir},p.getDirection=function(c){return this._lastDir=m.getDirection(c,this._lastDir),this._lastDir},d}();return bn=a,bn}var On,Nu;function je(){if(Nu)return On;Nu=1;var y=function(g){if(g!=null)return g;throw new Error("Got unexpected null or undefined")};return On=y,On}var Tn,Lu;function Fl(){if(Lu)return Tn;Lu=1;var y=Ll(),m=Ce(),g=je(),n=m.OrderedMap,a,d={getDirectionMap:function(v,c){a?a.reset():a=new y;var h=v.getBlockMap(),S=h.valueSeq().map(function(i){return g(a).getDirection(i.getText())}),E=n(h.keySeq().zip(S));return c!=null&&m.is(c,E)?c:E}};return Tn=d,Tn}var Rn,Fu;function Te(){if(Fu)return Rn;Fu=1;function y(K){for(var x=1;x<arguments.length;x++){var T=arguments[x]!=null?arguments[x]:{},b=Object.keys(T);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(T).filter(function(B){return Object.getOwnPropertyDescriptor(T,B).enumerable}))),b.forEach(function(B){m(K,B,T[B])})}return K}function m(K,x,T){return x in K?Object.defineProperty(K,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):K[x]=T,K}var g=Al(),n=$a(),a=Fl(),d=ur(),p=Ce(),v=p.OrderedSet,c=p.Record,h=p.Stack,S=p.OrderedMap,E=p.List,i={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:h(),selection:null,treeMap:null,undoStack:h()},l=c(i),o=function(){x.createEmpty=function(b){return this.createWithText("",b)},x.createWithText=function(b,B){return x.createWithContent(n.createFromText(b),B)},x.createWithContent=function(b,B){if(b.getBlockMap().count()===0)return x.createEmpty(B);var A=b.getBlockMap().first().getKey();return x.create({currentContent:b,undoStack:h(),redoStack:h(),decorator:B||null,selection:d.createEmpty(A)})},x.create=function(b){var B=b.currentContent,A=b.decorator,L=y({},b,{treeMap:r(B,A),directionMap:a.getDirectionMap(B)});return new x(new l(L))},x.fromJS=function(b){return new x(new l(y({},b,{directionMap:b.directionMap!=null?S(b.directionMap):b.directionMap,inlineStyleOverride:b.inlineStyleOverride!=null?v(b.inlineStyleOverride):b.inlineStyleOverride,nativelyRenderedContent:b.nativelyRenderedContent!=null?n.fromJS(b.nativelyRenderedContent):b.nativelyRenderedContent,redoStack:b.redoStack!=null?h(b.redoStack.map(function(B){return n.fromJS(B)})):b.redoStack,selection:b.selection!=null?new d(b.selection):b.selection,treeMap:b.treeMap!=null?S(b.treeMap).map(function(B){return E(B).map(function(A){return g.fromJS(A)})}):b.treeMap,undoStack:b.undoStack!=null?h(b.undoStack.map(function(B){return n.fromJS(B)})):b.undoStack,currentContent:n.fromJS(b.currentContent)})))},x.set=function(b,B){var A=b.getImmutable().withMutations(function(L){var F=L.get("decorator"),P=F;B.decorator===null?P=null:B.decorator&&(P=B.decorator);var H=B.currentContent||b.getCurrentContent();if(P!==F){var G=L.get("treeMap"),W;P&&F?W=w(H,H.getBlockMap(),G,P,F):W=r(H,P),L.merge({decorator:P,treeMap:W,nativelyRenderedContent:null});return}var $=b.getCurrentContent();H!==$&&L.set("treeMap",f(b,H.getBlockMap(),H.getEntityMap(),P)),L.merge(B)});return new x(A)};var K=x.prototype;K.toJS=function(){return this.getImmutable().toJS()},K.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},K.getCurrentContent=function(){return this.getImmutable().get("currentContent")},K.getUndoStack=function(){return this.getImmutable().get("undoStack")},K.getRedoStack=function(){return this.getImmutable().get("redoStack")},K.getSelection=function(){return this.getImmutable().get("selection")},K.getDecorator=function(){return this.getImmutable().get("decorator")},K.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},K.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},K.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},K.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},K.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},x.setInlineStyleOverride=function(b,B){return x.set(b,{inlineStyleOverride:B})},K.getCurrentInlineStyle=function(){var b=this.getInlineStyleOverride();if(b!=null)return b;var B=this.getCurrentContent(),A=this.getSelection();return A.isCollapsed()?O(B,A):I(B,A)},K.getBlockTree=function(b){return this.getImmutable().getIn(["treeMap",b])},K.isSelectionAtStartOfContent=function(){var b=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(b,0,0)},K.isSelectionAtEndOfContent=function(){var b=this.getCurrentContent(),B=b.getBlockMap(),A=B.last(),L=A.getLength();return this.getSelection().hasEdgeWithin(A.getKey(),L,L)},K.getDirectionMap=function(){return this.getImmutable().get("directionMap")},x.acceptSelection=function(b,B){return u(b,B,!1)},x.forceSelection=function(b,B){return B.getHasFocus()||(B=B.set("hasFocus",!0)),u(b,B,!0)},x.moveSelectionToEnd=function(b){var B=b.getCurrentContent(),A=B.getLastBlock(),L=A.getKey(),F=A.getLength();return x.acceptSelection(b,new d({anchorKey:L,anchorOffset:F,focusKey:L,focusOffset:F,isBackward:!1}))},x.moveFocusToEnd=function(b){var B=x.moveSelectionToEnd(b);return x.forceSelection(B,B.getSelection())},x.push=function(b,B,A){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(b.getCurrentContent()===B)return b;var F=a.getDirectionMap(B,b.getDirectionMap());if(!b.getAllowUndo())return x.set(b,{currentContent:B,directionMap:F,lastChangeType:A,selection:B.getSelectionAfter(),forceSelection:L,inlineStyleOverride:null});var P=b.getSelection(),H=b.getCurrentContent(),G=b.getUndoStack(),W=B;P!==H.getSelectionAfter()||D(b,A)?(G=G.push(H),W=W.set("selectionBefore",P)):(A==="insert-characters"||A==="backspace-character"||A==="delete-character")&&(W=W.set("selectionBefore",H.getSelectionBefore()));var $=b.getInlineStyleOverride(),X=["adjust-depth","change-block-type","split-block"];X.indexOf(A)===-1&&($=null);var j={currentContent:W,directionMap:F,undoStack:G,redoStack:h(),lastChangeType:A,selection:B.getSelectionAfter(),forceSelection:L,inlineStyleOverride:$};return x.set(b,j)},x.undo=function(b){if(!b.getAllowUndo())return b;var B=b.getUndoStack(),A=B.peek();if(!A)return b;var L=b.getCurrentContent(),F=a.getDirectionMap(A,b.getDirectionMap());return x.set(b,{currentContent:A,directionMap:F,undoStack:B.shift(),redoStack:b.getRedoStack().push(L),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:L.getSelectionBefore()})},x.redo=function(b){if(!b.getAllowUndo())return b;var B=b.getRedoStack(),A=B.peek();if(!A)return b;var L=b.getCurrentContent(),F=a.getDirectionMap(A,b.getDirectionMap());return x.set(b,{currentContent:A,directionMap:F,undoStack:b.getUndoStack().push(L),redoStack:B.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:A.getSelectionAfter()})};function x(T){m(this,"_immutable",void 0),this._immutable=T}return K.getImmutable=function(){return this._immutable},x}();function u(K,x,T){return o.set(K,{selection:x,forceSelection:T,nativelyRenderedContent:null,inlineStyleOverride:null})}function r(K,x){return K.getBlockMap().map(function(T){return g.generate(K,T,x)}).toOrderedMap()}function f(K,x,T,b){var B=K.getCurrentContent().set("entityMap",T),A=B.getBlockMap(),L=K.getImmutable().get("treeMap");return L.merge(x.toSeq().filter(function(F,P){return F!==A.get(P)}).map(function(F){return g.generate(B,F,b)}))}function w(K,x,T,b,B){return T.merge(x.toSeq().filter(function(A){return b.getDecorations(A,K)!==B.getDecorations(A,K)}).map(function(A){return g.generate(K,A,b)}))}function D(K,x){var T=K.getLastChangeType();return x!==T||x!=="insert-characters"&&x!=="backspace-character"&&x!=="delete-character"}function O(K,x){var T=x.getStartKey(),b=x.getStartOffset(),B=K.getBlockForKey(T);return b>0?B.getInlineStyleAt(b-1):B.getLength()?B.getInlineStyleAt(0):k(K,T)}function I(K,x){var T=x.getStartKey(),b=x.getStartOffset(),B=K.getBlockForKey(T);return b<B.getLength()?B.getInlineStyleAt(b):b>0?B.getInlineStyleAt(b-1):k(K,T)}function k(K,x){var T=K.getBlockMap().reverse().skipUntil(function(b,B){return B===x}).skip(1).skipUntil(function(b,B){return b.getLength()}).first();return T?T.getInlineStyleAt(T.getLength()-1):v()}return Rn=o,Rn}var kn,qu;function ql(){if(qu)return kn;qu=1;var y=it(),m=gf(),g=Ce(),n=De(),a=g.OrderedMap,d=g.List,p=function(S,E,i){if(S){var l=E.get(S);l&&E.set(S,i(l))}},v=function(S,E,i,l,o){if(!o)return S;var u=l==="after",r=E.getKey(),f=i.getKey(),w=E.getParentKey(),D=E.getNextSiblingKey(),O=E.getPrevSiblingKey(),I=i.getParentKey(),k=u?i.getNextSiblingKey():f,K=u?f:i.getPrevSiblingKey();return S.withMutations(function(x){p(w,x,function(T){var b=T.getChildKeys();return T.merge({children:b.delete(b.indexOf(r))})}),p(O,x,function(T){return T.merge({nextSibling:D})}),p(D,x,function(T){return T.merge({prevSibling:O})}),p(k,x,function(T){return T.merge({prevSibling:r})}),p(K,x,function(T){return T.merge({nextSibling:r})}),p(I,x,function(T){var b=T.getChildKeys(),B=b.indexOf(f),A=u?B+1:B!==0?B-1:0,L=b.toArray();return L.splice(A,0,r),T.merge({children:d(L)})}),p(r,x,function(T){return T.merge({nextSibling:k,prevSibling:K,parent:I})})})},c=function(S,E,i,l){l==="replace"&&(process.env.NODE_ENV!=="production"?n(!1,"Replacing blocks is not supported."):n(!1));var o=i.getKey(),u=E.getKey();u===o&&(process.env.NODE_ENV!=="production"?n(!1,"Block cannot be moved next to itself."):n(!1));var r=S.getBlockMap(),f=E instanceof y,w=[E],D=r.delete(u);f&&(w=[],D=r.withMutations(function(b){var B=E.getNextSiblingKey(),A=m(E,b);b.toSeq().skipUntil(function(L){return L.getKey()===u}).takeWhile(function(L){var F=L.getKey(),P=F===u,H=B&&F!==B,G=!B&&L.getParentKey()&&(!A||F!==A);return!!(P||H||G)}).forEach(function(L){w.push(L),b.delete(L.getKey())})}));var O=D.toSeq().takeUntil(function(b){return b===i}),I=D.toSeq().skipUntil(function(b){return b===i}).skip(1),k=w.map(function(b){return[b.getKey(),b]}),K=a();if(l==="before"){var x=S.getBlockBefore(o);!x||x.getKey()!==E.getKey()||(process.env.NODE_ENV!=="production"?n(!1,"Block cannot be moved next to itself."):n(!1)),K=O.concat([].concat(k,[[o,i]]),I).toOrderedMap()}else if(l==="after"){var T=S.getBlockAfter(o);!T||T.getKey()!==u||(process.env.NODE_ENV!=="production"?n(!1,"Block cannot be moved next to itself."):n(!1)),K=O.concat([[o,i]].concat(k),I).toOrderedMap()}return S.merge({blockMap:v(K,E,i,l,f),selectionBefore:S.getSelectionAfter(),selectionAfter:S.getSelectionAfter().merge({anchorKey:u,focusKey:u})})};return kn=c,kn}var Bn,Pu;function Pl(){if(Pu)return Bn;Pu=1;function y(f){for(var w=1;w<arguments.length;w++){var D=arguments[w]!=null?arguments[w]:{},O=Object.keys(D);typeof Object.getOwnPropertySymbols=="function"&&(O=O.concat(Object.getOwnPropertySymbols(D).filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable}))),O.forEach(function(I){m(f,I,D[I])})}return f}function m(f,w,D){return w in f?Object.defineProperty(f,w,{value:D,enumerable:!0,configurable:!0,writable:!0}):f[w]=D,f}var g=Ht(),n=nt(),a=Et(),d=it(),p=Ge(),v=Te(),c=vt(),h=mt(),S=Ce(),E=ql(),i=h("draft_tree_data_support"),l=i?d:a,o=S.List,u=S.Repeat,r={insertAtomicBlock:function(w,D,O){var I=w.getCurrentContent(),k=w.getSelection(),K=p.removeRange(I,k,"backward"),x=K.getSelectionAfter(),T=p.splitBlock(K,x),b=T.getSelectionAfter(),B=p.setBlockType(T,b,"atomic"),A=n.create({entity:D}),L={key:c(),type:"atomic",text:O,characterList:o(u(A,O.length))},F={key:c(),type:"unstyled"};i&&(L=y({},L,{nextSibling:F.key}),F=y({},F,{prevSibling:L.key}));var P=[new l(L),new l(F)],H=g.createFromArray(P),G=p.replaceWithFragment(B,b,H),W=G.merge({selectionBefore:k,selectionAfter:G.getSelectionAfter().set("hasFocus",!0)});return v.push(w,W,"insert-fragment")},moveAtomicBlock:function(w,D,O,I){var k=w.getCurrentContent(),K=w.getSelection(),x;if(I==="before"||I==="after"){var T=k.getBlockForKey(I==="before"?O.getStartKey():O.getEndKey());x=E(k,D,T,I)}else{var b=p.removeRange(k,O,"backward"),B=b.getSelectionAfter(),A=b.getBlockForKey(B.getFocusKey());if(B.getStartOffset()===0)x=E(b,D,A,"before");else if(B.getEndOffset()===A.getLength())x=E(b,D,A,"after");else{var L=p.splitBlock(b,B),F=L.getSelectionAfter(),P=L.getBlockForKey(F.getFocusKey());x=E(L,D,P,"before")}}var H=x.merge({selectionBefore:K,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return v.push(w,H,"move-block")}};return Bn=r,Bn}var xn,Uu;function Ul(){if(Uu)return xn;Uu=1;function y(v,c,h){return c in v?Object.defineProperty(v,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):v[c]=h,v}var m=Ce(),g=m.List,n=".",a=function(){function v(h){y(this,"_decorators",void 0),this._decorators=h.slice()}var c=v.prototype;return c.getDecorations=function(S,E){var i=Array(S.getText().length).fill(null);return this._decorators.forEach(function(l,o){var u=0,r=l.strategy,f=function(D,O){d(i,D,O)&&(p(i,D,O,o+n+u),u++)};r(S,f,E)}),g(i)},c.getComponentForKey=function(S){var E=parseInt(S.split(n)[0],10);return this._decorators[E].component},c.getPropsForKey=function(S){var E=parseInt(S.split(n)[0],10);return this._decorators[E].props},v}();function d(v,c,h){for(var S=c;S<h;S++)if(v[S]!=null)return!1;return!0}function p(v,c,h,S){for(var E=c;E<h;E++)v[E]=S}return xn=a,xn}var In,zu;function St(){if(zu)return In;zu=1;function y(g){return typeof g=="object"?Object.keys(g).filter(function(n){return g[n]}).map(m).join(" "):Array.prototype.map.call(arguments,m).join(" ")}function m(g){return g.replace(/\//g,"-")}return In=y,In}var Kn,Hu;function Qa(){if(Hu)return Kn;Hu=1;var y=ot,m=St(),g=Ce(),n=g.Map,a=y.createElement("ul",{className:m("public/DraftStyleDefault/ul")}),d=y.createElement("ol",{className:m("public/DraftStyleDefault/ol")}),p=y.createElement("pre",{className:m("public/DraftStyleDefault/pre")}),v=n({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:a},"ordered-list-item":{element:"li",wrapper:d},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:p},unstyled:{element:"div",aliasedElements:["p"]}});return Kn=v,Kn}var Mn,Vu;function Ef(){return Vu||(Vu=1,Mn={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}),Mn}/*
|
|
4
4
|
object-assign
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./main-
|
|
1
|
+
"use strict";const s=require("./main-CNUalHme.cjs"),c=require("./Draft-C4sXSNsn.cjs");function i(t,f){for(var o=0;o<f.length;o++){const e=f[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=c.requireDraft();const u=s.getDefaultExportFromCjs(n),l=i({__proto__:null,default:u},[n]);exports.Draft=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as ct } from "./main-
|
|
2
|
-
import { r as ft } from "./immutable-
|
|
3
|
-
import { r as dt } from "./Draft-
|
|
1
|
+
import { g as ct } from "./main-R3Lt0ytZ.js";
|
|
2
|
+
import { r as ft } from "./immutable-BIILO0Nx.js";
|
|
3
|
+
import { r as dt } from "./Draft-VuexNrf4.js";
|
|
4
4
|
function pt(L, H) {
|
|
5
5
|
for (var w = 0; w < H.length; w++) {
|
|
6
6
|
const h = H[w];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";const st=require("./main-
|
|
1
|
+
"use strict";const st=require("./main-CNUalHme.cjs"),ft=require("./immutable-D5pRcgkH.cjs"),dt=require("./Draft-C4sXSNsn.cjs");function mt(L,H){for(var w=0;w<H.length;w++){const h=H[w];if(typeof h!="string"&&!Array.isArray(h)){for(const o in h)if(o!=="default"&&!(o in L)){const T=Object.getOwnPropertyDescriptor(h,o);T&&Object.defineProperty(L,o,T.get?T:{enumerable:!0,get:()=>h[o]})}}}return Object.freeze(Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}))}var G={exports:{}};(function(L,H){(function(w,h){L.exports=h(ft.requireImmutable(),dt.requireDraft())})(window,function(w,h){return A={},o.m=T=[function(e,r){e.exports=w},function(e,r){e.exports=h},function(e,r,u){e.exports=u(3)},function(e,r,u){u.r(r);var c=u(1),l=u(0),W=function(t){var a,i=null;return document.implementation&&document.implementation.createHTMLDocument&&((a=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=t,i=a.getElementsByTagName("body")[0]),i},J=function(t,a,i){var d,m=t.textContent;return m.trim()===""?{chunk:(d=i,{text:" ",inlines:[new l.OrderedSet],entities:[d],blocks:[]})}:{chunk:{text:m,inlines:Array(m.length).fill(a),entities:Array(m.length).fill(i),blocks:[]}}},Q=function(){return{text:`
|
|
2
2
|
`,inlines:[new l.OrderedSet],entities:new Array(1),blocks:[]}},X=function(){return{text:"",inlines:[],entities:[],blocks:[]}},Y=function(t,a){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:a||new l.Map({})}]}},Z=function(t,a,i){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,a)),data:i||new l.Map({})}]}},D=function(t){return{text:"\r ",inlines:[new l.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new l.Map({})}]}},tt=function(t,a){return{text:t.text+a.text,inlines:t.inlines.concat(a.inlines),entities:t.entities.concat(a.entities),blocks:t.blocks.concat(a.blocks)}},et=new l.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),I={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function U(t){return t.style.textAlign?new l.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new l.Map({"margin-left":t.style.marginLeft}):void 0}var nt=function(t){var a=void 0;if(t instanceof HTMLAnchorElement){var i={};a=t.dataset&&t.dataset.mention!==void 0?(i.url=t.href,i.text=t.innerHTML,i.value=t.dataset.value,c.Entity.__create("MENTION","IMMUTABLE",i)):(i.url=t.getAttribute&&t.getAttribute("href")||t.href,i.title=t.innerHTML,i.targetOption=t.target,c.Entity.__create("LINK","MUTABLE",i))}return a};u.d(r,"default",function(){return at});var rt=" ",it=new RegExp(" ","g"),B=!0;function q(t,a,i,d,m,O){var n=t.nodeName.toLowerCase();if(O){var g=O(n,t);if(g){var _=c.Entity.__create(g.type,g.mutability,g.data||{});return{chunk:D(_)}}}if(n==="#text"&&t.textContent!==`
|
|
3
3
|
`)return J(t,a,m);if(n==="br")return{chunk:Q()};if(n==="img"&&t instanceof HTMLImageElement){var s={};s.src=t.getAttribute&&t.getAttribute("src")||t.src,s.alt=t.alt,s.height=t.style.height,s.width=t.style.width,t.style.float&&(s.alignment=t.style.float);var b=c.Entity.__create("IMAGE","MUTABLE",s);return{chunk:D(b)}}if(n==="video"&&t instanceof HTMLVideoElement){var p={};p.src=t.getAttribute&&t.getAttribute("src")||t.src,p.alt=t.alt,p.height=t.style.height,p.width=t.style.width,t.style.float&&(p.alignment=t.style.float);var P=c.Entity.__create("VIDEO","MUTABLE",p);return{chunk:D(P)}}if(n==="iframe"&&t instanceof HTMLIFrameElement){var E={};E.src=t.getAttribute&&t.getAttribute("src")||t.src,E.height=t.height,E.width=t.width;var N=c.Entity.__create("EMBEDDED_LINK","MUTABLE",E);return{chunk:D(N)}}var y,v=function(S,C){var j=et.filter(function(f){return f.element===S&&(!f.wrapper||f.wrapper===C)||f.wrapper===S||f.aliasedElements&&-1<f.aliasedElements.indexOf(S)}).keySeq().toSet().toArray();if(j.length===1)return j[0]}(n,d);v&&(n==="ul"||n==="ol"?(d=n,i+=1):(v!=="unordered-list-item"&&v!=="ordered-list-item"&&(d="",i=-1),B?(y=Y(v,U(t)),B=!1):y=Z(v,i,U(t)))),y=y||X(),a=function(S,C,j){var f,R=I[S];if(R)f=j.add(R).toOrderedSet();else if(C instanceof HTMLElement){var M=C;f=(f=j).withMutations(function(k){var K=M.style.color,$=M.style.backgroundColor,z=M.style.fontSize,F=M.style.fontFamily.replace(/^"|"$/g,""),lt=M.style.fontWeight,ut=M.style.textDecoration,ct=M.style.fontStyle;K&&k.add("color-".concat(K.replace(/ /g,""))),$&&k.add("bgcolor-".concat($.replace(/ /g,""))),z&&k.add("fontsize-".concat(z.replace(/px$/g,""))),F&&k.add("fontfamily-".concat(F)),lt==="bold"&&k.add(I.strong),ut==="underline"&&k.add(I.ins),ct==="italic"&&k.add(I.em)}).toOrderedSet()}return f}(n,t,a);for(var x=t.firstChild;x;){var ot=q(x,a,i,d,nt(x)||m,O).chunk;y=tt(y,ot),x=x.nextSibling}return{chunk:y}}function at(t,a){var i,d,m,O=(i=a,d=t.trim().replace(it,rt),(m=W(d))?(B=!0,{chunk:q(m,new l.OrderedSet,-1,"",void 0,i).chunk}):null);if(O){var n=O.chunk,g=new l.OrderedMap({});n.entities&&n.entities.forEach(function(s){s&&(g=g.set(s,c.Entity.__get(s)))});var _=0;return{contentBlocks:n.text.split("\r").map(function(s,b){var p=_+s.length,P=n&&n.inlines.slice(_,p),E=n&&n.entities.slice(_,p),N=new l.List(P.map(function(y,v){var x={style:y,entity:null};return E[v]&&(x.entity=E[v]),c.CharacterMetadata.create(x)}));return _=p,new c.ContentBlock({key:Object(c.genKey)(),type:n&&n.blocks[b]&&n.blocks[b].type||"unstyled",depth:n&&n.blocks[b]&&n.blocks[b].depth,data:n&&n.blocks[b]&&n.blocks[b].data||new l.Map({}),text:s,characterList:N})}),entityMap:g}}return null}}],o.c=A,o.d=function(e,r,u){o.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:u})},o.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,r){if(1&r&&(e=o(e)),8&r||4&r&&typeof e=="object"&&e&&e.__esModule)return e;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:e}),2&r&&typeof e!="string")for(var c in e)o.d(u,c,function(l){return e[l]}.bind(null,c));return u},o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,"a",r),r},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.p="",o(o.s=2);function o(e){if(A[e])return A[e].exports;var r=A[e]={i:e,l:!1,exports:{}};return T[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}var T,A})})(G);var V=G.exports;const pt=st.getDefaultExportFromCjs(V),ht=mt({__proto__:null,default:pt},[V]);exports.htmlToDraftjs=ht;
|