davis-components 0.3.47 → 0.3.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";const D=require("./main-Q8BvMLBB.cjs"),a=require("./convertFromRawToDraftState-BIFdvEGS.cjs");function m(o,t){for(var e=0;e<t.length;e++){const r=t[e];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in o)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(o,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var h={},y=a.UnicodeUtils_1,S=a.findRangesImmutable_1,B=function(t,e){return t===e},E=function(t){return!!t},_=[];function M(o,t,e){var r=[],n=t.map(function(i){return i.has(e)}).toList();return S(n,B,E,function(i,c){var l=o.getText();r.push({offset:y.strlen(l.slice(0,i)),length:y.strlen(l.slice(i,c)),style:e})}),r}function C(o){var t=o.getCharacterList().map(function(r){return r.getStyle()}).toList(),e=t.flatten().toSet().map(function(r){return M(o,t,r)});return Array.prototype.concat.apply(_,e.toJS())}var w=C;function b(o){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.forEach(function(n){T(o,n,e[n])})}return o}function T(o,t,e){return t in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}var k=a.ContentBlock_1,K=a.ContentBlockNode_1,R=a.DraftStringKey_1,O=a.encodeEntityRanges_1,F=w,d=a.invariant_1,p=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:F(t),entityRanges:O(t,e),data:t.getData().toObject()}},I=function(t,e,r,n){if(t instanceof k){r.push(p(t,e));return}t instanceof K||(process.env.NODE_ENV!=="production"?d(!1,"block is not a BlockNode"):d(!1));var i=t.getParentKey(),c=n[t.getKey()]=b({},p(t,e),{children:[]});if(i){n[i].children.push(c);return}r.push(c)},U=function(t,e){var r=e.entityMap,n=[],i={},c={},l=0;return t.getBlockMap().forEach(function(f){f.findEntityRanges(function(g){return g.getEntity()!==null},function(g){var s=f.getEntityAt(g),u=R.stringify(s);c[u]||(c[u]=s,r[u]="".concat(l),l++)}),I(f,r,n,i)}),{blocks:n,entityMap:r}},P=function(t,e){var r=e.blocks,n=e.entityMap,i={};return Object.keys(n).forEach(function(c,l){var f=t.getEntity(R.unstringify(c));i[l]={type:f.getType(),mutability:f.getMutability(),data:f.getData()}}),{blocks:r,entityMap:i}},j=function(t){var e={entityMap:{},blocks:[]};return e=U(t,e),e=P(t,e),e},A=j,x=a.getRangeClientRects_1;function L(o){var t=x(o),e=0,r=0,n=0,i=0;if(t.length){if(t.length>1&&t[0].width===0){var c=t[1];e=c.top,r=c.right,n=c.bottom,i=c.left}else{var l=t[0];e=l.top,r=l.right,n=l.bottom,i=l.left}for(var f=1;f<t.length;f++){var g=t[f];g.height!==0&&g.width!==0&&(e=Math.min(e,g.top),r=Math.max(r,g.right),n=Math.max(n,g.bottom),i=Math.min(i,g.left))}}return{top:e,right:r,bottom:n,left:i,width:r-i,height:n-e}}var N=L,V=N;function q(o){var t=o.getSelection();if(!t.rangeCount)return null;var e=t.getRangeAt(0),r=V(e),n=r.top,i=r.right,c=r.bottom,l=r.left;return n===0&&i===0&&c===0&&l===0?null:r}var $=q,H=a.AtomicBlockUtils_1,Y=a.BlockMapBuilder_1,z=a.CharacterMetadata_1,J=a.CompositeDraftDecorator_1,G=a.ContentBlock_1,Q=a.ContentState_1,W=a.DefaultDraftBlockRenderMap_1,X=a.DefaultDraftInlineStyle,Z=a.DraftEditor_react,tt=a.DraftEditorBlock_react,et=a.DraftEntity_1,rt=a.DraftModifier_1,nt=a.DraftEntityInstance_1,at=a.EditorState_1,ot=a.KeyBindingUtil_1,it=h,ct=a.RichTextEditorUtil_1,lt=a.SelectionState_1,ft=A,gt=a.convertFromRawToDraftState_1,ut=a.generateRandomKey_1,vt=a.getDefaultKeyBinding_1,st=$,yt=a.convertFromHTMLToContentBlocks_1,dt={Editor:Z,EditorBlock:tt,EditorState:at,CompositeDecorator:J,Entity:et,EntityInstance:nt,BlockMapBuilder:Y,CharacterMetadata:z,ContentBlock:G,ContentState:Q,RawDraftContentState:it,SelectionState:lt,AtomicBlockUtils:H,KeyBindingUtil:ot,Modifier:rt,RichUtils:ct,DefaultDraftBlockRenderMap:W,DefaultDraftInlineStyle:X,convertFromHTML:yt,convertFromRaw:gt,convertToRaw:ft,genKey:ut,getDefaultKeyBinding:vt,getVisibleSelectionRect:st},v=dt;const pt=D.getDefaultExportFromCjs(v),Rt=m({__proto__:null,default:pt},[v]);exports.Draft=Rt;exports.Draft$1=v;
1
+ "use strict";const D=require("./main-Djn1ADqt.cjs"),a=require("./convertFromRawToDraftState-ChvRJJJ_.cjs");function m(o,t){for(var e=0;e<t.length;e++){const r=t[e];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in o)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(o,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var h={},y=a.UnicodeUtils_1,S=a.findRangesImmutable_1,B=function(t,e){return t===e},E=function(t){return!!t},_=[];function M(o,t,e){var r=[],n=t.map(function(i){return i.has(e)}).toList();return S(n,B,E,function(i,c){var l=o.getText();r.push({offset:y.strlen(l.slice(0,i)),length:y.strlen(l.slice(i,c)),style:e})}),r}function C(o){var t=o.getCharacterList().map(function(r){return r.getStyle()}).toList(),e=t.flatten().toSet().map(function(r){return M(o,t,r)});return Array.prototype.concat.apply(_,e.toJS())}var w=C;function b(o){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.forEach(function(n){T(o,n,e[n])})}return o}function T(o,t,e){return t in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}var k=a.ContentBlock_1,K=a.ContentBlockNode_1,R=a.DraftStringKey_1,O=a.encodeEntityRanges_1,F=w,d=a.invariant_1,p=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:F(t),entityRanges:O(t,e),data:t.getData().toObject()}},I=function(t,e,r,n){if(t instanceof k){r.push(p(t,e));return}t instanceof K||(process.env.NODE_ENV!=="production"?d(!1,"block is not a BlockNode"):d(!1));var i=t.getParentKey(),c=n[t.getKey()]=b({},p(t,e),{children:[]});if(i){n[i].children.push(c);return}r.push(c)},U=function(t,e){var r=e.entityMap,n=[],i={},c={},l=0;return t.getBlockMap().forEach(function(f){f.findEntityRanges(function(g){return g.getEntity()!==null},function(g){var s=f.getEntityAt(g),u=R.stringify(s);c[u]||(c[u]=s,r[u]="".concat(l),l++)}),I(f,r,n,i)}),{blocks:n,entityMap:r}},P=function(t,e){var r=e.blocks,n=e.entityMap,i={};return Object.keys(n).forEach(function(c,l){var f=t.getEntity(R.unstringify(c));i[l]={type:f.getType(),mutability:f.getMutability(),data:f.getData()}}),{blocks:r,entityMap:i}},j=function(t){var e={entityMap:{},blocks:[]};return e=U(t,e),e=P(t,e),e},A=j,x=a.getRangeClientRects_1;function L(o){var t=x(o),e=0,r=0,n=0,i=0;if(t.length){if(t.length>1&&t[0].width===0){var c=t[1];e=c.top,r=c.right,n=c.bottom,i=c.left}else{var l=t[0];e=l.top,r=l.right,n=l.bottom,i=l.left}for(var f=1;f<t.length;f++){var g=t[f];g.height!==0&&g.width!==0&&(e=Math.min(e,g.top),r=Math.max(r,g.right),n=Math.max(n,g.bottom),i=Math.min(i,g.left))}}return{top:e,right:r,bottom:n,left:i,width:r-i,height:n-e}}var N=L,V=N;function q(o){var t=o.getSelection();if(!t.rangeCount)return null;var e=t.getRangeAt(0),r=V(e),n=r.top,i=r.right,c=r.bottom,l=r.left;return n===0&&i===0&&c===0&&l===0?null:r}var $=q,H=a.AtomicBlockUtils_1,Y=a.BlockMapBuilder_1,z=a.CharacterMetadata_1,J=a.CompositeDraftDecorator_1,G=a.ContentBlock_1,Q=a.ContentState_1,W=a.DefaultDraftBlockRenderMap_1,X=a.DefaultDraftInlineStyle,Z=a.DraftEditor_react,tt=a.DraftEditorBlock_react,et=a.DraftEntity_1,rt=a.DraftModifier_1,nt=a.DraftEntityInstance_1,at=a.EditorState_1,ot=a.KeyBindingUtil_1,it=h,ct=a.RichTextEditorUtil_1,lt=a.SelectionState_1,ft=A,gt=a.convertFromRawToDraftState_1,ut=a.generateRandomKey_1,vt=a.getDefaultKeyBinding_1,st=$,yt=a.convertFromHTMLToContentBlocks_1,dt={Editor:Z,EditorBlock:tt,EditorState:at,CompositeDecorator:J,Entity:et,EntityInstance:nt,BlockMapBuilder:Y,CharacterMetadata:z,ContentBlock:G,ContentState:Q,RawDraftContentState:it,SelectionState:lt,AtomicBlockUtils:H,KeyBindingUtil:ot,Modifier:rt,RichUtils:ct,DefaultDraftBlockRenderMap:W,DefaultDraftInlineStyle:X,convertFromHTML:yt,convertFromRaw:gt,convertToRaw:ft,genKey:ut,getDefaultKeyBinding:vt,getVisibleSelectionRect:st},v=dt;const pt=D.getDefaultExportFromCjs(v),Rt=m({__proto__:null,default:pt},[v]);exports.Draft=Rt;exports.Draft$1=v;
@@ -1,5 +1,5 @@
1
- import { g as D } from "./main-DgrDd7yr.js";
2
- import { f as m, U as h, D as S, i as B, C as d, e as E, a as _, g as M, b as C, c as w, d as b, h as k, j as T, k as K, R as O, l as U, K as I, A as F, S as j, m as A, n as P, B as x, o as L, p as N, q as V, E as q, r as H, s as $ } from "./convertFromRawToDraftState-X0cT6Di8.js";
1
+ import { g as D } from "./main-pmGK7En_.js";
2
+ import { f as m, U as h, D as S, i as B, C as d, e as E, a as _, g as M, b as C, c as w, d as b, h as k, j as T, k as K, R as O, l as U, K as I, A as F, S as j, m as A, n as P, B as x, o as L, p as N, q as V, E as q, r as H, s as $ } from "./convertFromRawToDraftState-D_iCJyqa.js";
3
3
  function Y(n, t) {
4
4
  for (var e = 0; e < t.length; e++) {
5
5
  const a = t[e];
@@ -1,4 +1,4 @@
1
- "use strict";const ct=require("react"),va=require("./main-Q8BvMLBB.cjs"),ml=require("react-dom");var Pu={exports:{}};(function(r,e){(function(n,a){r.exports=a()})(va.commonjsGlobal,function(){var n=Array.prototype.slice;function a(t,o){o&&(t.prototype=Object.create(o.prototype)),t.prototype.constructor=t}function i(t){return v(t)?t:pe(t)}a(s,i);function s(t){return h(t)?t:be(t)}a(c,i);function c(t){return y(t)?t:oe(t)}a(l,i);function l(t){return v(t)&&!w(t)?t:Ne(t)}function v(t){return!!(t&&t[E])}function h(t){return!!(t&&t[m])}function y(t){return!!(t&&t[S])}function w(t){return h(t)||y(t)}function d(t){return!!(t&&t[C])}i.isIterable=v,i.isKeyed=h,i.isIndexed=y,i.isAssociative=w,i.isOrdered=d,i.Keyed=s,i.Indexed=c,i.Set=l;var E="@@__IMMUTABLE_ITERABLE__@@",m="@@__IMMUTABLE_KEYED__@@",S="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",T="delete",B=5,O=1<<B,k=O-1,M={},X={value:!1},j={value:!1};function ue(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function R(){}function $(t,o){o=o||0;for(var u=Math.max(0,t.length-o),f=new Array(u),p=0;p<u;p++)f[p]=t[p+o];return f}function F(t){return t.size===void 0&&(t.size=t.__iterate(P)),t.size}function N(t,o){if(typeof o!="number"){var u=o>>>0;if(""+u!==o||u===4294967295)return NaN;o=u}return o<0?F(t)+o:o}function P(){return!0}function V(t,o,u){return(t===0||u!==void 0&&t<=-u)&&(o===void 0||u!==void 0&&o>=u)}function G(t,o){return re(t,o,0)}function W(t,o){return re(t,o,o)}function re(t,o,u){return t===void 0?u:t<0?Math.max(0,o+t):o===void 0?t:Math.min(o,t)}var ne=0,Y=1,ee=2,he=typeof Symbol=="function"&&Symbol.iterator,Be="@@iterator",Fe=he||Be;function Z(t){this.next=t}Z.prototype.toString=function(){return"[Iterator]"},Z.KEYS=ne,Z.VALUES=Y,Z.ENTRIES=ee,Z.prototype.inspect=Z.prototype.toSource=function(){return this.toString()},Z.prototype[Fe]=function(){return this};function ae(t,o,u,f){var p=t===0?o:t===1?u:[o,u];return f?f.value=p:f={value:p,done:!1},f}function me(){return{value:void 0,done:!0}}function ft(t){return!!st(t)}function Ue(t){return t&&typeof t.next=="function"}function ze(t){var o=st(t);return o&&o.call(t)}function st(t){var o=t&&(he&&t[he]||t[Be]);if(typeof o=="function")return o}function Je(t){return t&&typeof t.length=="number"}a(pe,i);function pe(t){return t==null?Ie():v(t)?t.toSeq():se(t)}pe.of=function(){return pe(arguments)},pe.prototype.toSeq=function(){return this},pe.prototype.toString=function(){return this.__toString("Seq {","}")},pe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},pe.prototype.__iterate=function(t,o){return de(this,t,o,!0)},pe.prototype.__iterator=function(t,o){return tt(this,t,o,!0)},a(be,pe);function be(t){return t==null?Ie().toKeyedSeq():v(t)?h(t)?t.toSeq():t.fromEntrySeq():vt(t)}be.prototype.toKeyedSeq=function(){return this},a(oe,pe);function oe(t){return t==null?Ie():v(t)?h(t)?t.entrySeq():t.toIndexedSeq():Q(t)}oe.of=function(){return oe(arguments)},oe.prototype.toIndexedSeq=function(){return this},oe.prototype.toString=function(){return this.__toString("Seq [","]")},oe.prototype.__iterate=function(t,o){return de(this,t,o,!1)},oe.prototype.__iterator=function(t,o){return tt(this,t,o,!1)},a(Ne,pe);function Ne(t){return(t==null?Ie():v(t)?h(t)?t.entrySeq():t:Q(t)).toSetSeq()}Ne.of=function(){return Ne(arguments)},Ne.prototype.toSetSeq=function(){return this},pe.isSeq=Ke,pe.Keyed=be,pe.Set=Ne,pe.Indexed=oe;var lt="@@__IMMUTABLE_SEQ__@@";pe.prototype[lt]=!0,a(_e,oe);function _e(t){this._array=t,this.size=t.length}_e.prototype.get=function(t,o){return this.has(t)?this._array[N(this,t)]:o},_e.prototype.__iterate=function(t,o){for(var u=this._array,f=u.length-1,p=0;p<=f;p++)if(t(u[o?f-p:p],p,this)===!1)return p+1;return p},_e.prototype.__iterator=function(t,o){var u=this._array,f=u.length-1,p=0;return new Z(function(){return p>f?me():ae(t,p,u[o?f-p++:p++])})},a(ke,be);function ke(t){var o=Object.keys(t);this._object=t,this._keys=o,this.size=o.length}ke.prototype.get=function(t,o){return o!==void 0&&!this.has(t)?o:this._object[t]},ke.prototype.has=function(t){return this._object.hasOwnProperty(t)},ke.prototype.__iterate=function(t,o){for(var u=this._object,f=this._keys,p=f.length-1,g=0;g<=p;g++){var _=f[o?p-g:g];if(t(u[_],_,this)===!1)return g+1}return g},ke.prototype.__iterator=function(t,o){var u=this._object,f=this._keys,p=f.length-1,g=0;return new Z(function(){var _=f[o?p-g:g];return g++>p?me():ae(t,_,u[_])})},ke.prototype[C]=!0,a(qe,oe);function qe(t){this._iterable=t,this.size=t.length||t.size}qe.prototype.__iterateUncached=function(t,o){if(o)return this.cacheResult().__iterate(t,o);var u=this._iterable,f=ze(u),p=0;if(Ue(f))for(var g;!(g=f.next()).done&&t(g.value,p++,this)!==!1;);return p},qe.prototype.__iteratorUncached=function(t,o){if(o)return this.cacheResult().__iterator(t,o);var u=this._iterable,f=ze(u);if(!Ue(f))return new Z(me);var p=0;return new Z(function(){var g=f.next();return g.done?g:ae(t,p++,g.value)})},a(De,oe);function De(t){this._iterator=t,this._iteratorCache=[]}De.prototype.__iterateUncached=function(t,o){if(o)return this.cacheResult().__iterate(t,o);for(var u=this._iterator,f=this._iteratorCache,p=0;p<f.length;)if(t(f[p],p++,this)===!1)return p;for(var g;!(g=u.next()).done;){var _=g.value;if(f[p]=_,t(_,p++,this)===!1)break}return p},De.prototype.__iteratorUncached=function(t,o){if(o)return this.cacheResult().__iterator(t,o);var u=this._iterator,f=this._iteratorCache,p=0;return new Z(function(){if(p>=f.length){var g=u.next();if(g.done)return g;f[p]=g.value}return ae(t,p,f[p++])})};function Ke(t){return!!(t&&t[lt])}var xe;function Ie(){return xe||(xe=new _e([]))}function vt(t){var o=Array.isArray(t)?new _e(t).fromEntrySeq():Ue(t)?new De(t).fromEntrySeq():ft(t)?new qe(t).fromEntrySeq():typeof t=="object"?new ke(t):void 0;if(!o)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return o}function Q(t){var o=H(t);if(!o)throw new TypeError("Expected Array or iterable object of values: "+t);return o}function se(t){var o=H(t)||typeof t=="object"&&new ke(t);if(!o)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return o}function H(t){return Je(t)?new _e(t):Ue(t)?new De(t):ft(t)?new qe(t):void 0}function de(t,o,u,f){var p=t._cache;if(p){for(var g=p.length-1,_=0;_<=g;_++){var D=p[u?g-_:_];if(o(D[1],f?D[0]:_,t)===!1)return _+1}return _}return t.__iterateUncached(o,u)}function tt(t,o,u,f){var p=t._cache;if(p){var g=p.length-1,_=0;return new Z(function(){var D=p[u?g-_:_];return _++>g?me():ae(o,f?D[0]:_-1,D[1])})}return t.__iteratorUncached(o,u)}function He(t,o){return o?ce(o,t,"",{"":t}):q(t)}function ce(t,o,u,f){return Array.isArray(o)?t.call(f,u,oe(o).map(function(p,g){return ce(t,p,g,o)})):Xe(o)?t.call(f,u,be(o).map(function(p,g){return ce(t,p,g,o)})):o}function q(t){return Array.isArray(t)?oe(t).map(q).toList():Xe(t)?be(t).map(q).toMap():t}function Xe(t){return t&&(t.constructor===Object||t.constructor===void 0)}function Ee(t,o){if(t===o||t!==t&&o!==o)return!0;if(!t||!o)return!1;if(typeof t.valueOf=="function"&&typeof o.valueOf=="function"){if(t=t.valueOf(),o=o.valueOf(),t===o||t!==t&&o!==o)return!0;if(!t||!o)return!1}return!!(typeof t.equals=="function"&&typeof o.equals=="function"&&t.equals(o))}function rr(t,o){if(t===o)return!0;if(!v(o)||t.size!==void 0&&o.size!==void 0&&t.size!==o.size||t.__hash!==void 0&&o.__hash!==void 0&&t.__hash!==o.__hash||h(t)!==h(o)||y(t)!==y(o)||d(t)!==d(o))return!1;if(t.size===0&&o.size===0)return!0;var u=!w(t);if(d(t)){var f=t.entries();return o.every(function(b,x){var K=f.next().value;return K&&Ee(K[1],b)&&(u||Ee(K[0],x))})&&f.next().done}var p=!1;if(t.size===void 0)if(o.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{p=!0;var g=t;t=o,o=g}var _=!0,D=o.__iterate(function(b,x){if(u?!t.has(b):p?!Ee(b,t.get(x,M)):!Ee(t.get(x,M),b))return _=!1,!1});return _&&t.size===D}a(Re,oe);function Re(t,o){if(!(this instanceof Re))return new Re(t,o);if(this._value=t,this.size=o===void 0?1/0:Math.max(0,o),this.size===0){if(Jn)return Jn;Jn=this}}Re.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Re.prototype.get=function(t,o){return this.has(t)?this._value:o},Re.prototype.includes=function(t){return Ee(this._value,t)},Re.prototype.slice=function(t,o){var u=this.size;return V(t,o,u)?this:new Re(this._value,W(o,u)-G(t,u))},Re.prototype.reverse=function(){return this},Re.prototype.indexOf=function(t){return Ee(this._value,t)?0:-1},Re.prototype.lastIndexOf=function(t){return Ee(this._value,t)?this.size:-1},Re.prototype.__iterate=function(t,o){for(var u=0;u<this.size;u++)if(t(this._value,u,this)===!1)return u+1;return u},Re.prototype.__iterator=function(t,o){var u=this,f=0;return new Z(function(){return f<u.size?ae(t,f++,u._value):me()})},Re.prototype.equals=function(t){return t instanceof Re?Ee(this._value,t._value):rr(t)};var Jn;function rn(t,o){if(!t)throw new Error(o)}a(Le,oe);function Le(t,o,u){if(!(this instanceof Le))return new Le(t,o,u);if(rn(u!==0,"Cannot step a Range by 0"),t=t||0,o===void 0&&(o=1/0),u=u===void 0?1:Math.abs(u),o<t&&(u=-u),this._start=t,this._end=o,this._step=u,this.size=Math.max(0,Math.ceil((o-t)/u-1)+1),this.size===0){if(Xn)return Xn;Xn=this}}Le.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Le.prototype.get=function(t,o){return this.has(t)?this._start+N(this,t)*this._step:o},Le.prototype.includes=function(t){var o=(t-this._start)/this._step;return o>=0&&o<this.size&&o===Math.floor(o)},Le.prototype.slice=function(t,o){return V(t,o,this.size)?this:(t=G(t,this.size),o=W(o,this.size),o<=t?new Le(0,0):new Le(this.get(t,this._end),this.get(o,this._end),this._step))},Le.prototype.indexOf=function(t){var o=t-this._start;if(o%this._step===0){var u=o/this._step;if(u>=0&&u<this.size)return u}return-1},Le.prototype.lastIndexOf=function(t){return this.indexOf(t)},Le.prototype.__iterate=function(t,o){for(var u=this.size-1,f=this._step,p=o?this._start+u*f:this._start,g=0;g<=u;g++){if(t(p,g,this)===!1)return g+1;p+=o?-f:f}return g},Le.prototype.__iterator=function(t,o){var u=this.size-1,f=this._step,p=o?this._start+u*f:this._start,g=0;return new Z(function(){var _=p;return p+=o?-f:f,g>u?me():ae(t,g++,_)})},Le.prototype.equals=function(t){return t instanceof Le?this._start===t._start&&this._end===t._end&&this._step===t._step:rr(this,t)};var Xn;a(Kt,i);function Kt(){throw TypeError("Abstract")}a(Dr,Kt);function Dr(){}a(nr,Kt);function nr(){}a(nn,Kt);function nn(){}Kt.Keyed=Dr,Kt.Indexed=nr,Kt.Set=nn;var br=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(o,u){o=o|0,u=u|0;var f=o&65535,p=u&65535;return f*p+((o>>>16)*p+f*(u>>>16)<<16>>>0)|0};function Yn(t){return t>>>1&1073741824|t&3221225471}function Ye(t){if(t===!1||t===null||t===void 0||typeof t.valueOf=="function"&&(t=t.valueOf(),t===!1||t===null||t===void 0))return 0;if(t===!0)return 1;var o=typeof t;if(o==="number"){var u=t|0;for(u!==t&&(u^=t*4294967295);t>4294967295;)t/=4294967295,u^=t;return Yn(u)}if(o==="string")return t.length>jf?Hf(t):Zn(t);if(typeof t.hashCode=="function")return t.hashCode();if(o==="object")return Vf(t);if(typeof t.toString=="function")return Zn(t.toString());throw new Error("Value type "+o+" cannot be hashed.")}function Hf(t){var o=ni[t];return o===void 0&&(o=Zn(t),ri===Gf&&(ri=0,ni={}),ri++,ni[t]=o),o}function Zn(t){for(var o=0,u=0;u<t.length;u++)o=31*o+t.charCodeAt(u)|0;return Yn(o)}function Vf(t){var o;if(Qn&&(o=ei.get(t),o!==void 0)||(o=t[Vt],o!==void 0)||!La&&(o=t.propertyIsEnumerable&&t.propertyIsEnumerable[Vt],o!==void 0||(o=Wf(t),o!==void 0)))return o;if(o=++ti,ti&1073741824&&(ti=0),Qn)ei.set(t,o);else{if(Ra!==void 0&&Ra(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(La)Object.defineProperty(t,Vt,{enumerable:!1,configurable:!1,writable:!1,value:o});else if(t.propertyIsEnumerable!==void 0&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Vt]=o;else if(t.nodeType!==void 0)t[Vt]=o;else throw new Error("Unable to set a non-enumerable property on object.")}return o}var Ra=Object.isExtensible,La=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Wf(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Qn=typeof WeakMap=="function",ei;Qn&&(ei=new WeakMap);var ti=0,Vt="__immutablehash__";typeof Symbol=="function"&&(Vt=Symbol(Vt));var jf=16,Gf=255,ri=0,ni={};function Ze(t){rn(t!==1/0,"Cannot perform this action with an infinite size.")}a(fe,Dr);function fe(t){return t==null?pt():ii(t)&&!d(t)?t:pt().withMutations(function(o){var u=s(t);Ze(u.size),u.forEach(function(f,p){return o.set(p,f)})})}fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(t,o){return this._root?this._root.get(0,void 0,t,o):o},fe.prototype.set=function(t,o){return Ua(this,t,o)},fe.prototype.setIn=function(t,o){return this.updateIn(t,M,function(){return o})},fe.prototype.remove=function(t){return Ua(this,t,M)},fe.prototype.deleteIn=function(t){return this.updateIn(t,function(){return M})},fe.prototype.update=function(t,o,u){return arguments.length===1?t(this):this.updateIn([t],o,u)},fe.prototype.updateIn=function(t,o,u){u||(u=o,o=void 0);var f=Wa(this,po(t),o,u);return f===M?void 0:f},fe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):pt()},fe.prototype.merge=function(){return an(this,void 0,arguments)},fe.prototype.mergeWith=function(t){var o=n.call(arguments,1);return an(this,t,o)},fe.prototype.mergeIn=function(t){var o=n.call(arguments,1);return this.updateIn(t,pt(),function(u){return typeof u.merge=="function"?u.merge.apply(u,o):o[o.length-1]})},fe.prototype.mergeDeep=function(){return an(this,qa,arguments)},fe.prototype.mergeDeepWith=function(t){var o=n.call(arguments,1);return an(this,Ha(t),o)},fe.prototype.mergeDeepIn=function(t){var o=n.call(arguments,1);return this.updateIn(t,pt(),function(u){return typeof u.mergeDeep=="function"?u.mergeDeep.apply(u,o):o[o.length-1]})},fe.prototype.sort=function(t){return Oe(fr(this,t))},fe.prototype.sortBy=function(t,o){return Oe(fr(this,o,t))},fe.prototype.withMutations=function(t){var o=this.asMutable();return t(o),o.wasAltered()?o.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new R)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(t,o){return new ai(this,t,o)},fe.prototype.__iterate=function(t,o){var u=this,f=0;return this._root&&this._root.iterate(function(p){return f++,t(p[1],p[0],u)},o),f},fe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?si(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)};function ii(t){return!!(t&&t[$a])}fe.isMap=ii;var $a="@@__IMMUTABLE_MAP__@@",ie=fe.prototype;ie[$a]=!0,ie[T]=ie.remove,ie.removeIn=ie.deleteIn;function Or(t,o){this.ownerID=t,this.entries=o}Or.prototype.get=function(t,o,u,f){for(var p=this.entries,g=0,_=p.length;g<_;g++)if(Ee(u,p[g][0]))return p[g][1];return f},Or.prototype.update=function(t,o,u,f,p,g,_){for(var D=p===M,b=this.entries,x=0,K=b.length;x<K&&!Ee(f,b[x][0]);x++);var A=x<K;if(A?b[x][1]===p:D)return this;if(I(_),(D||!A)&&I(g),!(D&&b.length===1)){if(!A&&!D&&b.length>=el)return Jf(t,b,f,p);var L=t&&t===this.ownerID,J=L?b:$(b);return A?D?x===K-1?J.pop():J[x]=J.pop():J[x]=[f,p]:J.push([f,p]),L?(this.entries=J,this):new Or(t,J)}};function ir(t,o,u){this.ownerID=t,this.bitmap=o,this.nodes=u}ir.prototype.get=function(t,o,u,f){o===void 0&&(o=Ye(u));var p=1<<((t===0?o:o>>>t)&k),g=this.bitmap;return g&p?this.nodes[ja(g&p-1)].get(t+B,o,u,f):f},ir.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=(o===0?u:u>>>o)&k,b=1<<D,x=this.bitmap,K=(x&b)!==0;if(!K&&p===M)return this;var A=ja(x&b-1),L=this.nodes,J=K?L[A]:void 0,te=ui(J,t,o+B,u,f,p,g,_);if(te===J)return this;if(!K&&te&&L.length>=tl)return Yf(t,L,x,D,te);if(K&&!te&&L.length===2&&za(L[A^1]))return L[A^1];if(K&&te&&L.length===1&&za(te))return te;var Ce=t&&t===this.ownerID,ut=K?te?x:x^b:x|b,yt=K?te?Ga(L,A,te,Ce):Qf(L,A,Ce):Zf(L,A,te,Ce);return Ce?(this.bitmap=ut,this.nodes=yt,this):new ir(t,ut,yt)};function Tr(t,o,u){this.ownerID=t,this.count=o,this.nodes=u}Tr.prototype.get=function(t,o,u,f){o===void 0&&(o=Ye(u));var p=(t===0?o:o>>>t)&k,g=this.nodes[p];return g?g.get(t+B,o,u,f):f},Tr.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=(o===0?u:u>>>o)&k,b=p===M,x=this.nodes,K=x[D];if(b&&!K)return this;var A=ui(K,t,o+B,u,f,p,g,_);if(A===K)return this;var L=this.count;if(!K)L++;else if(!A&&(L--,L<rl))return Xf(t,x,L,D);var J=t&&t===this.ownerID,te=Ga(x,D,A,J);return J?(this.count=L,this.nodes=te,this):new Tr(t,L,te)};function ar(t,o,u){this.ownerID=t,this.keyHash=o,this.entries=u}ar.prototype.get=function(t,o,u,f){for(var p=this.entries,g=0,_=p.length;g<_;g++)if(Ee(u,p[g][0]))return p[g][1];return f},ar.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=p===M;if(u!==this.keyHash)return D?this:(I(_),I(g),ci(this,t,o,u,[f,p]));for(var b=this.entries,x=0,K=b.length;x<K&&!Ee(f,b[x][0]);x++);var A=x<K;if(A?b[x][1]===p:D)return this;if(I(_),(D||!A)&&I(g),D&&K===2)return new Dt(t,this.keyHash,b[x^1]);var L=t&&t===this.ownerID,J=L?b:$(b);return A?D?x===K-1?J.pop():J[x]=J.pop():J[x]=[f,p]:J.push([f,p]),L?(this.entries=J,this):new ar(t,this.keyHash,J)};function Dt(t,o,u){this.ownerID=t,this.keyHash=o,this.entry=u}Dt.prototype.get=function(t,o,u,f){return Ee(u,this.entry[0])?this.entry[1]:f},Dt.prototype.update=function(t,o,u,f,p,g,_){var D=p===M,b=Ee(f,this.entry[0]);if(b?p===this.entry[1]:D)return this;if(I(_),D){I(g);return}return b?t&&t===this.ownerID?(this.entry[1]=p,this):new Dt(t,this.keyHash,[f,p]):(I(g),ci(this,t,o,Ye(f),[f,p]))},Or.prototype.iterate=ar.prototype.iterate=function(t,o){for(var u=this.entries,f=0,p=u.length-1;f<=p;f++)if(t(u[o?p-f:f])===!1)return!1},ir.prototype.iterate=Tr.prototype.iterate=function(t,o){for(var u=this.nodes,f=0,p=u.length-1;f<=p;f++){var g=u[o?p-f:f];if(g&&g.iterate(t,o)===!1)return!1}},Dt.prototype.iterate=function(t,o){return t(this.entry)},a(ai,Z);function ai(t,o,u){this._type=o,this._reverse=u,this._stack=t._root&&Fa(t._root)}ai.prototype.next=function(){for(var t=this._type,o=this._stack;o;){var u=o.node,f=o.index++,p;if(u.entry){if(f===0)return oi(t,u.entry)}else if(u.entries){if(p=u.entries.length-1,f<=p)return oi(t,u.entries[this._reverse?p-f:f])}else if(p=u.nodes.length-1,f<=p){var g=u.nodes[this._reverse?p-f:f];if(g){if(g.entry)return oi(t,g.entry);o=this._stack=Fa(g,o)}continue}o=this._stack=this._stack.__prev}return me()};function oi(t,o){return ae(t,o[0],o[1])}function Fa(t,o){return{node:t,index:0,__prev:o}}function si(t,o,u,f){var p=Object.create(ie);return p.size=t,p._root=o,p.__ownerID=u,p.__hash=f,p.__altered=!1,p}var Pa;function pt(){return Pa||(Pa=si(0))}function Ua(t,o,u){var f,p;if(t._root){var g=ue(X),_=ue(j);if(f=ui(t._root,t.__ownerID,0,void 0,o,u,g,_),!_.value)return t;p=t.size+(g.value?u===M?-1:1:0)}else{if(u===M)return t;p=1,f=new Or(t.__ownerID,[[o,u]])}return t.__ownerID?(t.size=p,t._root=f,t.__hash=void 0,t.__altered=!0,t):f?si(p,f):pt()}function ui(t,o,u,f,p,g,_,D){return t?t.update(o,u,f,p,g,_,D):g===M?t:(I(D),I(_),new Dt(o,f,[p,g]))}function za(t){return t.constructor===Dt||t.constructor===ar}function ci(t,o,u,f,p){if(t.keyHash===f)return new ar(o,f,[t.entry,p]);var g=(u===0?t.keyHash:t.keyHash>>>u)&k,_=(u===0?f:f>>>u)&k,D,b=g===_?[ci(t,o,u+B,f,p)]:(D=new Dt(o,f,p),g<_?[t,D]:[D,t]);return new ir(o,1<<g|1<<_,b)}function Jf(t,o,u,f){t||(t=new R);for(var p=new Dt(t,Ye(u),[u,f]),g=0;g<o.length;g++){var _=o[g];p=p.update(t,0,void 0,_[0],_[1])}return p}function Xf(t,o,u,f){for(var p=0,g=0,_=new Array(u),D=0,b=1,x=o.length;D<x;D++,b<<=1){var K=o[D];K!==void 0&&D!==f&&(p|=b,_[g++]=K)}return new ir(t,p,_)}function Yf(t,o,u,f,p){for(var g=0,_=new Array(O),D=0;u!==0;D++,u>>>=1)_[D]=u&1?o[g++]:void 0;return _[f]=p,new Tr(t,g+1,_)}function an(t,o,u){for(var f=[],p=0;p<u.length;p++){var g=u[p],_=s(g);v(g)||(_=_.map(function(D){return He(D)})),f.push(_)}return Va(t,o,f)}function qa(t,o,u){return t&&t.mergeDeep&&v(o)?t.mergeDeep(o):Ee(t,o)?t:o}function Ha(t){return function(o,u,f){if(o&&o.mergeDeepWith&&v(u))return o.mergeDeepWith(t,u);var p=t(o,u,f);return Ee(o,p)?o:p}}function Va(t,o,u){return u=u.filter(function(f){return f.size!==0}),u.length===0?t:t.size===0&&!t.__ownerID&&u.length===1?t.constructor(u[0]):t.withMutations(function(f){for(var p=o?function(_,D){f.update(D,M,function(b){return b===M?_:o(b,_,D)})}:function(_,D){f.set(D,_)},g=0;g<u.length;g++)u[g].forEach(p)})}function Wa(t,o,u,f){var p=t===M,g=o.next();if(g.done){var _=p?u:t,D=f(_);return D===_?t:D}rn(p||t&&t.set,"invalid keyPath");var b=g.value,x=p?M:t.get(b,M),K=Wa(x,o,u,f);return K===x?t:K===M?t.remove(b):(p?pt():t).set(b,K)}function ja(t){return t=t-(t>>1&1431655765),t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t=t+(t>>8),t=t+(t>>16),t&127}function Ga(t,o,u,f){var p=f?t:$(t);return p[o]=u,p}function Zf(t,o,u,f){var p=t.length+1;if(f&&o+1===p)return t[o]=u,t;for(var g=new Array(p),_=0,D=0;D<p;D++)D===o?(g[D]=u,_=-1):g[D]=t[D+_];return g}function Qf(t,o,u){var f=t.length-1;if(u&&o===f)return t.pop(),t;for(var p=new Array(f),g=0,_=0;_<f;_++)_===o&&(g=1),p[_]=t[_+g];return p}var el=O/4,tl=O/2,rl=O/4;a(Se,nr);function Se(t){var o=fi();if(t==null)return o;if(Ja(t))return t;var u=c(t),f=u.size;return f===0?o:(Ze(f),f>0&&f<O?xr(0,f,B,null,new Mt(u.toArray())):o.withMutations(function(p){p.setSize(f),u.forEach(function(g,_){return p.set(_,g)})}))}Se.of=function(){return this(arguments)},Se.prototype.toString=function(){return this.__toString("List [","]")},Se.prototype.get=function(t,o){if(t=N(this,t),t>=0&&t<this.size){t+=this._origin;var u=Qa(this,t);return u&&u.array[t&k]}return o},Se.prototype.set=function(t,o){return nl(this,t,o)},Se.prototype.remove=function(t){return this.has(t)?t===0?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Se.prototype.insert=function(t,o){return this.splice(t,0,o)},Se.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=B,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):fi()},Se.prototype.push=function(){var t=arguments,o=this.size;return this.withMutations(function(u){At(u,0,o+t.length);for(var f=0;f<t.length;f++)u.set(o+f,t[f])})},Se.prototype.pop=function(){return At(this,0,-1)},Se.prototype.unshift=function(){var t=arguments;return this.withMutations(function(o){At(o,-t.length);for(var u=0;u<t.length;u++)o.set(u,t[u])})},Se.prototype.shift=function(){return At(this,1)},Se.prototype.merge=function(){return on(this,void 0,arguments)},Se.prototype.mergeWith=function(t){var o=n.call(arguments,1);return on(this,t,o)},Se.prototype.mergeDeep=function(){return on(this,qa,arguments)},Se.prototype.mergeDeepWith=function(t){var o=n.call(arguments,1);return on(this,Ha(t),o)},Se.prototype.setSize=function(t){return At(this,0,t)},Se.prototype.slice=function(t,o){var u=this.size;return V(t,o,u)?this:At(this,G(t,u),W(o,u))},Se.prototype.__iterator=function(t,o){var u=0,f=Ya(this,o);return new Z(function(){var p=f();return p===kr?me():ae(t,u++,p)})},Se.prototype.__iterate=function(t,o){for(var u=0,f=Ya(this,o),p;(p=f())!==kr&&t(p,u++,this)!==!1;);return u},Se.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?xr(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)};function Ja(t){return!!(t&&t[Xa])}Se.isList=Ja;var Xa="@@__IMMUTABLE_LIST__@@",Pe=Se.prototype;Pe[Xa]=!0,Pe[T]=Pe.remove,Pe.setIn=ie.setIn,Pe.deleteIn=Pe.removeIn=ie.removeIn,Pe.update=ie.update,Pe.updateIn=ie.updateIn,Pe.mergeIn=ie.mergeIn,Pe.mergeDeepIn=ie.mergeDeepIn,Pe.withMutations=ie.withMutations,Pe.asMutable=ie.asMutable,Pe.asImmutable=ie.asImmutable,Pe.wasAltered=ie.wasAltered;function Mt(t,o){this.array=t,this.ownerID=o}Mt.prototype.removeBefore=function(t,o,u){if(u===o?1<<o:this.array.length===0)return this;var f=u>>>o&k;if(f>=this.array.length)return new Mt([],t);var p=f===0,g;if(o>0){var _=this.array[f];if(g=_&&_.removeBefore(t,o-B,u),g===_&&p)return this}if(p&&!g)return this;var D=or(this,t);if(!p)for(var b=0;b<f;b++)D.array[b]=void 0;return g&&(D.array[f]=g),D},Mt.prototype.removeAfter=function(t,o,u){if(u===(o?1<<o:0)||this.array.length===0)return this;var f=u-1>>>o&k;if(f>=this.array.length)return this;var p;if(o>0){var g=this.array[f];if(p=g&&g.removeAfter(t,o-B,u),p===g&&f===this.array.length-1)return this}var _=or(this,t);return _.array.splice(f+1),p&&(_.array[f]=p),_};var kr={};function Ya(t,o){var u=t._origin,f=t._capacity,p=Br(f),g=t._tail;return _(t._root,t._level,0);function _(x,K,A){return K===0?D(x,A):b(x,K,A)}function D(x,K){var A=K===p?g&&g.array:x&&x.array,L=K>u?0:u-K,J=f-K;return J>O&&(J=O),function(){if(L===J)return kr;var te=o?--J:L++;return A&&A[te]}}function b(x,K,A){var L,J=x&&x.array,te=A>u?0:u-A>>K,Ce=(f-A>>K)+1;return Ce>O&&(Ce=O),function(){do{if(L){var ut=L();if(ut!==kr)return ut;L=null}if(te===Ce)return kr;var yt=o?--Ce:te++;L=_(J&&J[yt],K-B,A+(yt<<K))}while(!0)}}}function xr(t,o,u,f,p,g,_){var D=Object.create(Pe);return D.size=o-t,D._origin=t,D._capacity=o,D._level=u,D._root=f,D._tail=p,D.__ownerID=g,D.__hash=_,D.__altered=!1,D}var Za;function fi(){return Za||(Za=xr(0,0,B))}function nl(t,o,u){if(o=N(t,o),o!==o)return t;if(o>=t.size||o<0)return t.withMutations(function(_){o<0?At(_,o).set(0,u):At(_,0,o+1).set(o,u)});o+=t._origin;var f=t._tail,p=t._root,g=ue(j);return o>=Br(t._capacity)?f=li(f,t.__ownerID,0,o,u,g):p=li(p,t.__ownerID,t._level,o,u,g),g.value?t.__ownerID?(t._root=p,t._tail=f,t.__hash=void 0,t.__altered=!0,t):xr(t._origin,t._capacity,t._level,p,f):t}function li(t,o,u,f,p,g){var _=f>>>u&k,D=t&&_<t.array.length;if(!D&&p===void 0)return t;var b;if(u>0){var x=t&&t.array[_],K=li(x,o,u-B,f,p,g);return K===x?t:(b=or(t,o),b.array[_]=K,b)}return D&&t.array[_]===p?t:(I(g),b=or(t,o),p===void 0&&_===b.array.length-1?b.array.pop():b.array[_]=p,b)}function or(t,o){return o&&t&&o===t.ownerID?t:new Mt(t?t.array.slice():[],o)}function Qa(t,o){if(o>=Br(t._capacity))return t._tail;if(o<1<<t._level+B){for(var u=t._root,f=t._level;u&&f>0;)u=u.array[o>>>f&k],f-=B;return u}}function At(t,o,u){o!==void 0&&(o=o|0),u!==void 0&&(u=u|0);var f=t.__ownerID||new R,p=t._origin,g=t._capacity,_=p+o,D=u===void 0?g:u<0?g+u:p+u;if(_===p&&D===g)return t;if(_>=D)return t.clear();for(var b=t._level,x=t._root,K=0;_+K<0;)x=new Mt(x&&x.array.length?[void 0,x]:[],f),b+=B,K+=1<<b;K&&(_+=K,p+=K,D+=K,g+=K);for(var A=Br(g),L=Br(D);L>=1<<b+B;)x=new Mt(x&&x.array.length?[x]:[],f),b+=B;var J=t._tail,te=L<A?Qa(t,D-1):L>A?new Mt([],f):J;if(J&&L>A&&_<g&&J.array.length){x=or(x,f);for(var Ce=x,ut=b;ut>B;ut-=B){var yt=A>>>ut&k;Ce=Ce.array[yt]=or(Ce.array[yt],f)}Ce.array[A>>>B&k]=J}if(D<g&&(te=te&&te.removeAfter(f,0,D)),_>=L)_-=L,D-=L,b=B,x=null,te=te&&te.removeBefore(f,0,_);else if(_>p||L<A){for(K=0;x;){var pn=_>>>b&k;if(pn!==L>>>b&k)break;pn&&(K+=(1<<b)*pn),b-=B,x=x.array[pn]}x&&_>p&&(x=x.removeBefore(f,b,_-K)),x&&L<A&&(x=x.removeAfter(f,b,L-K)),K&&(_-=K,D-=K)}return t.__ownerID?(t.size=D-_,t._origin=_,t._capacity=D,t._level=b,t._root=x,t._tail=te,t.__hash=void 0,t.__altered=!0,t):xr(_,D,b,x,te)}function on(t,o,u){for(var f=[],p=0,g=0;g<u.length;g++){var _=u[g],D=c(_);D.size>p&&(p=D.size),v(_)||(D=D.map(function(b){return He(b)})),f.push(D)}return p>t.size&&(t=t.setSize(p)),Va(t,o,f)}function Br(t){return t<O?0:t-1>>>B<<B}a(Oe,fe);function Oe(t){return t==null?sn():eo(t)?t:sn().withMutations(function(o){var u=s(t);Ze(u.size),u.forEach(function(f,p){return o.set(p,f)})})}Oe.of=function(){return this(arguments)},Oe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Oe.prototype.get=function(t,o){var u=this._map.get(t);return u!==void 0?this._list.get(u)[1]:o},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):sn()},Oe.prototype.set=function(t,o){return ro(this,t,o)},Oe.prototype.remove=function(t){return ro(this,t,M)},Oe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Oe.prototype.__iterate=function(t,o){var u=this;return this._list.__iterate(function(f){return f&&t(f[1],f[0],u)},o)},Oe.prototype.__iterator=function(t,o){return this._list.fromEntrySeq().__iterator(t,o)},Oe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map.__ensureOwner(t),u=this._list.__ensureOwner(t);return t?vi(o,u,t,this.__hash):(this.__ownerID=t,this._map=o,this._list=u,this)};function eo(t){return ii(t)&&d(t)}Oe.isOrderedMap=eo,Oe.prototype[C]=!0,Oe.prototype[T]=Oe.prototype.remove;function vi(t,o,u,f){var p=Object.create(Oe.prototype);return p.size=t?t.size:0,p._map=t,p._list=o,p.__ownerID=u,p.__hash=f,p}var to;function sn(){return to||(to=vi(pt(),fi()))}function ro(t,o,u){var f=t._map,p=t._list,g=f.get(o),_=g!==void 0,D,b;if(u===M){if(!_)return t;p.size>=O&&p.size>=f.size*2?(b=p.filter(function(x,K){return x!==void 0&&g!==K}),D=b.toKeyedSeq().map(function(x){return x[0]}).flip().toMap(),t.__ownerID&&(D.__ownerID=b.__ownerID=t.__ownerID)):(D=f.remove(o),b=g===p.size-1?p.pop():p.set(g,void 0))}else if(_){if(u===p.get(g)[1])return t;D=f,b=p.set(g,[o,u])}else D=f.set(o,p.size),b=p.set(p.size,[o,u]);return t.__ownerID?(t.size=D.size,t._map=D,t._list=b,t.__hash=void 0,t):vi(D,b)}a(rt,be);function rt(t,o){this._iter=t,this._useKeys=o,this.size=t.size}rt.prototype.get=function(t,o){return this._iter.get(t,o)},rt.prototype.has=function(t){return this._iter.has(t)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var t=this,o=pi(this,!0);return this._useKeys||(o.valueSeq=function(){return t._iter.toSeq().reverse()}),o},rt.prototype.map=function(t,o){var u=this,f=io(this,t,o);return this._useKeys||(f.valueSeq=function(){return u._iter.toSeq().map(t,o)}),f},rt.prototype.__iterate=function(t,o){var u=this,f;return this._iter.__iterate(this._useKeys?function(p,g){return t(p,g,u)}:(f=o?fo(this):0,function(p){return t(p,o?--f:f++,u)}),o)},rt.prototype.__iterator=function(t,o){if(this._useKeys)return this._iter.__iterator(t,o);var u=this._iter.__iterator(Y,o),f=o?fo(this):0;return new Z(function(){var p=u.next();return p.done?p:ae(t,o?--f:f++,p.value,p)})},rt.prototype[C]=!0,a(sr,oe);function sr(t){this._iter=t,this.size=t.size}sr.prototype.includes=function(t){return this._iter.includes(t)},sr.prototype.__iterate=function(t,o){var u=this,f=0;return this._iter.__iterate(function(p){return t(p,f++,u)},o)},sr.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o),f=0;return new Z(function(){var p=u.next();return p.done?p:ae(t,f++,p.value,p)})},a(ur,Ne);function ur(t){this._iter=t,this.size=t.size}ur.prototype.has=function(t){return this._iter.includes(t)},ur.prototype.__iterate=function(t,o){var u=this;return this._iter.__iterate(function(f){return t(f,f,u)},o)},ur.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o);return new Z(function(){var f=u.next();return f.done?f:ae(t,f.value,f.value,f)})},a(cr,be);function cr(t){this._iter=t,this.size=t.size}cr.prototype.entrySeq=function(){return this._iter.toSeq()},cr.prototype.__iterate=function(t,o){var u=this;return this._iter.__iterate(function(f){if(f){co(f);var p=v(f);return t(p?f.get(1):f[1],p?f.get(0):f[0],u)}},o)},cr.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o);return new Z(function(){for(;;){var f=u.next();if(f.done)return f;var p=f.value;if(p){co(p);var g=v(p);return ae(t,g?p.get(0):p[0],g?p.get(1):p[1],f)}}})},sr.prototype.cacheResult=rt.prototype.cacheResult=ur.prototype.cacheResult=cr.prototype.cacheResult=gi;function no(t){var o=dt(t);return o._iter=t,o.size=t.size,o.flip=function(){return t},o.reverse=function(){var u=t.reverse.apply(this);return u.flip=function(){return t.reverse()},u},o.has=function(u){return t.includes(u)},o.includes=function(u){return t.has(u)},o.cacheResult=gi,o.__iterateUncached=function(u,f){var p=this;return t.__iterate(function(g,_){return u(_,g,p)!==!1},f)},o.__iteratorUncached=function(u,f){if(u===ee){var p=t.__iterator(u,f);return new Z(function(){var g=p.next();if(!g.done){var _=g.value[0];g.value[0]=g.value[1],g.value[1]=_}return g})}return t.__iterator(u===Y?ne:Y,f)},o}function io(t,o,u){var f=dt(t);return f.size=t.size,f.has=function(p){return t.has(p)},f.get=function(p,g){var _=t.get(p,M);return _===M?g:o.call(u,_,p,t)},f.__iterateUncached=function(p,g){var _=this;return t.__iterate(function(D,b,x){return p(o.call(u,D,b,x),b,_)!==!1},g)},f.__iteratorUncached=function(p,g){var _=t.__iterator(ee,g);return new Z(function(){var D=_.next();if(D.done)return D;var b=D.value,x=b[0];return ae(p,x,o.call(u,b[1],x,t),D)})},f}function pi(t,o){var u=dt(t);return u._iter=t,u.size=t.size,u.reverse=function(){return t},t.flip&&(u.flip=function(){var f=no(t);return f.reverse=function(){return t.flip()},f}),u.get=function(f,p){return t.get(o?f:-1-f,p)},u.has=function(f){return t.has(o?f:-1-f)},u.includes=function(f){return t.includes(f)},u.cacheResult=gi,u.__iterate=function(f,p){var g=this;return t.__iterate(function(_,D){return f(_,D,g)},!p)},u.__iterator=function(f,p){return t.__iterator(f,!p)},u}function ao(t,o,u,f){var p=dt(t);return f&&(p.has=function(g){var _=t.get(g,M);return _!==M&&!!o.call(u,_,g,t)},p.get=function(g,_){var D=t.get(g,M);return D!==M&&o.call(u,D,g,t)?D:_}),p.__iterateUncached=function(g,_){var D=this,b=0;return t.__iterate(function(x,K,A){if(o.call(u,x,K,A))return b++,g(x,f?K:b-1,D)},_),b},p.__iteratorUncached=function(g,_){var D=t.__iterator(ee,_),b=0;return new Z(function(){for(;;){var x=D.next();if(x.done)return x;var K=x.value,A=K[0],L=K[1];if(o.call(u,L,A,t))return ae(g,f?A:b++,L,x)}})},p}function il(t,o,u){var f=fe().asMutable();return t.__iterate(function(p,g){f.update(o.call(u,p,g,t),0,function(_){return _+1})}),f.asImmutable()}function al(t,o,u){var f=h(t),p=(d(t)?Oe():fe()).asMutable();t.__iterate(function(_,D){p.update(o.call(u,_,D,t),function(b){return b=b||[],b.push(f?[D,_]:_),b})});var g=lo(t);return p.map(function(_){return ge(t,g(_))})}function di(t,o,u,f){var p=t.size;if(o!==void 0&&(o=o|0),u!==void 0&&(u=u|0),V(o,u,p))return t;var g=G(o,p),_=W(u,p);if(g!==g||_!==_)return di(t.toSeq().cacheResult(),o,u,f);var D=_-g,b;D===D&&(b=D<0?0:D);var x=dt(t);return x.size=b===0?b:t.size&&b||void 0,!f&&Ke(t)&&b>=0&&(x.get=function(K,A){return K=N(this,K),K>=0&&K<b?t.get(K+g,A):A}),x.__iterateUncached=function(K,A){var L=this;if(b===0)return 0;if(A)return this.cacheResult().__iterate(K,A);var J=0,te=!0,Ce=0;return t.__iterate(function(ut,yt){if(!(te&&(te=J++<g)))return Ce++,K(ut,f?yt:Ce-1,L)!==!1&&Ce!==b}),Ce},x.__iteratorUncached=function(K,A){if(b!==0&&A)return this.cacheResult().__iterator(K,A);var L=b!==0&&t.__iterator(K,A),J=0,te=0;return new Z(function(){for(;J++<g;)L.next();if(++te>b)return me();var Ce=L.next();return f||K===Y?Ce:K===ne?ae(K,te-1,void 0,Ce):ae(K,te-1,Ce.value[1],Ce)})},x}function ol(t,o,u){var f=dt(t);return f.__iterateUncached=function(p,g){var _=this;if(g)return this.cacheResult().__iterate(p,g);var D=0;return t.__iterate(function(b,x,K){return o.call(u,b,x,K)&&++D&&p(b,x,_)}),D},f.__iteratorUncached=function(p,g){var _=this;if(g)return this.cacheResult().__iterator(p,g);var D=t.__iterator(ee,g),b=!0;return new Z(function(){if(!b)return me();var x=D.next();if(x.done)return x;var K=x.value,A=K[0],L=K[1];return o.call(u,L,A,_)?p===ee?x:ae(p,A,L,x):(b=!1,me())})},f}function oo(t,o,u,f){var p=dt(t);return p.__iterateUncached=function(g,_){var D=this;if(_)return this.cacheResult().__iterate(g,_);var b=!0,x=0;return t.__iterate(function(K,A,L){if(!(b&&(b=o.call(u,K,A,L))))return x++,g(K,f?A:x-1,D)}),x},p.__iteratorUncached=function(g,_){var D=this;if(_)return this.cacheResult().__iterator(g,_);var b=t.__iterator(ee,_),x=!0,K=0;return new Z(function(){var A,L,J;do{if(A=b.next(),A.done)return f||g===Y?A:g===ne?ae(g,K++,void 0,A):ae(g,K++,A.value[1],A);var te=A.value;L=te[0],J=te[1],x&&(x=o.call(u,J,L,D))}while(x);return g===ee?A:ae(g,L,J,A)})},p}function sl(t,o){var u=h(t),f=[t].concat(o).map(function(_){return v(_)?u&&(_=s(_)):_=u?vt(_):Q(Array.isArray(_)?_:[_]),_}).filter(function(_){return _.size!==0});if(f.length===0)return t;if(f.length===1){var p=f[0];if(p===t||u&&h(p)||y(t)&&y(p))return p}var g=new _e(f);return u?g=g.toKeyedSeq():y(t)||(g=g.toSetSeq()),g=g.flatten(!0),g.size=f.reduce(function(_,D){if(_!==void 0){var b=D.size;if(b!==void 0)return _+b}},0),g}function so(t,o,u){var f=dt(t);return f.__iterateUncached=function(p,g){var _=0,D=!1;function b(x,K){var A=this;x.__iterate(function(L,J){return(!o||K<o)&&v(L)?b(L,K+1):p(L,u?J:_++,A)===!1&&(D=!0),!D},g)}return b(t,0),_},f.__iteratorUncached=function(p,g){var _=t.__iterator(p,g),D=[],b=0;return new Z(function(){for(;_;){var x=_.next();if(x.done!==!1){_=D.pop();continue}var K=x.value;if(p===ee&&(K=K[1]),(!o||D.length<o)&&v(K))D.push(_),_=K.__iterator(p,g);else return u?x:ae(p,b++,K,x)}return me()})},f}function ul(t,o,u){var f=lo(t);return t.toSeq().map(function(p,g){return f(o.call(u,p,g,t))}).flatten(!0)}function cl(t,o){var u=dt(t);return u.size=t.size&&t.size*2-1,u.__iterateUncached=function(f,p){var g=this,_=0;return t.__iterate(function(D,b){return(!_||f(o,_++,g)!==!1)&&f(D,_++,g)!==!1},p),_},u.__iteratorUncached=function(f,p){var g=t.__iterator(Y,p),_=0,D;return new Z(function(){return(!D||_%2)&&(D=g.next(),D.done)?D:_%2?ae(f,_++,o):ae(f,_++,D.value,D)})},u}function fr(t,o,u){o||(o=vo);var f=h(t),p=0,g=t.toSeq().map(function(_,D){return[D,_,p++,u?u(_,D,t):_]}).toArray();return g.sort(function(_,D){return o(_[3],D[3])||_[2]-D[2]}).forEach(f?function(_,D){g[D].length=2}:function(_,D){g[D]=_[1]}),f?be(g):y(t)?oe(g):Ne(g)}function un(t,o,u){if(o||(o=vo),u){var f=t.toSeq().map(function(p,g){return[p,u(p,g,t)]}).reduce(function(p,g){return uo(o,p[1],g[1])?g:p});return f&&f[0]}else return t.reduce(function(p,g){return uo(o,p,g)?g:p})}function uo(t,o,u){var f=t(u,o);return f===0&&u!==o&&(u==null||u!==u)||f>0}function hi(t,o,u){var f=dt(t);return f.size=new _e(u).map(function(p){return p.size}).min(),f.__iterate=function(p,g){for(var _=this.__iterator(Y,g),D,b=0;!(D=_.next()).done&&p(D.value,b++,this)!==!1;);return b},f.__iteratorUncached=function(p,g){var _=u.map(function(x){return x=i(x),ze(g?x.reverse():x)}),D=0,b=!1;return new Z(function(){var x;return b||(x=_.map(function(K){return K.next()}),b=x.some(function(K){return K.done})),b?me():ae(p,D++,o.apply(null,x.map(function(K){return K.value})))})},f}function ge(t,o){return Ke(t)?o:t.constructor(o)}function co(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function fo(t){return Ze(t.size),F(t)}function lo(t){return h(t)?s:y(t)?c:l}function dt(t){return Object.create((h(t)?be:y(t)?oe:Ne).prototype)}function gi(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):pe.prototype.cacheResult.call(this)}function vo(t,o){return t>o?1:t<o?-1:0}function po(t){var o=ze(t);if(!o){if(!Je(t))throw new TypeError("Expected iterable or array-like: "+t);o=ze(i(t))}return o}a(Qe,Dr);function Qe(t,o){var u,f=function(_){if(_ instanceof f)return _;if(!(this instanceof f))return new f(_);if(!u){u=!0;var D=Object.keys(t);fl(p,D),p.size=D.length,p._name=o,p._keys=D,p._defaultValues=t}this._map=fe(_)},p=f.prototype=Object.create(Me);return p.constructor=f,f}Qe.prototype.toString=function(){return this.__toString(ho(this)+" {","}")},Qe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Qe.prototype.get=function(t,o){if(!this.has(t))return o;var u=this._defaultValues[t];return this._map?this._map.get(t,u):u},Qe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=cn(this,pt()))},Qe.prototype.set=function(t,o){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+ho(this));var u=this._map&&this._map.set(t,o);return this.__ownerID||u===this._map?this:cn(this,u)},Qe.prototype.remove=function(t){if(!this.has(t))return this;var o=this._map&&this._map.remove(t);return this.__ownerID||o===this._map?this:cn(this,o)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()},Qe.prototype.__iterator=function(t,o){var u=this;return s(this._defaultValues).map(function(f,p){return u.get(p)}).__iterator(t,o)},Qe.prototype.__iterate=function(t,o){var u=this;return s(this._defaultValues).map(function(f,p){return u.get(p)}).__iterate(t,o)},Qe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map&&this._map.__ensureOwner(t);return t?cn(this,o,t):(this.__ownerID=t,this._map=o,this)};var Me=Qe.prototype;Me[T]=Me.remove,Me.deleteIn=Me.removeIn=ie.removeIn,Me.merge=ie.merge,Me.mergeWith=ie.mergeWith,Me.mergeIn=ie.mergeIn,Me.mergeDeep=ie.mergeDeep,Me.mergeDeepWith=ie.mergeDeepWith,Me.mergeDeepIn=ie.mergeDeepIn,Me.setIn=ie.setIn,Me.update=ie.update,Me.updateIn=ie.updateIn,Me.withMutations=ie.withMutations,Me.asMutable=ie.asMutable,Me.asImmutable=ie.asImmutable;function cn(t,o,u){var f=Object.create(Object.getPrototypeOf(t));return f._map=o,f.__ownerID=u,f}function ho(t){return t._name||t.constructor.name||"Record"}function fl(t,o){try{o.forEach(ll.bind(void 0,t))}catch{}}function ll(t,o){Object.defineProperty(t,o,{get:function(){return this.get(o)},set:function(u){rn(this.__ownerID,"Cannot set on an immutable record."),this.set(o,u)}})}a(we,nn);function we(t){return t==null?_i():yi(t)&&!d(t)?t:_i().withMutations(function(o){var u=l(t);Ze(u.size),u.forEach(function(f){return o.add(f)})})}we.of=function(){return this(arguments)},we.fromKeys=function(t){return this(s(t).keySeq())},we.prototype.toString=function(){return this.__toString("Set {","}")},we.prototype.has=function(t){return this._map.has(t)},we.prototype.add=function(t){return mi(this,this._map.set(t,!0))},we.prototype.remove=function(t){return mi(this,this._map.remove(t))},we.prototype.clear=function(){return mi(this,this._map.clear())},we.prototype.union=function(){var t=n.call(arguments,0);return t=t.filter(function(o){return o.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(o){for(var u=0;u<t.length;u++)l(t[u]).forEach(function(f){return o.add(f)})})},we.prototype.intersect=function(){var t=n.call(arguments,0);if(t.length===0)return this;t=t.map(function(u){return l(u)});var o=this;return this.withMutations(function(u){o.forEach(function(f){t.every(function(p){return p.includes(f)})||u.remove(f)})})},we.prototype.subtract=function(){var t=n.call(arguments,0);if(t.length===0)return this;t=t.map(function(u){return l(u)});var o=this;return this.withMutations(function(u){o.forEach(function(f){t.some(function(p){return p.includes(f)})&&u.remove(f)})})},we.prototype.merge=function(){return this.union.apply(this,arguments)},we.prototype.mergeWith=function(t){var o=n.call(arguments,1);return this.union.apply(this,o)},we.prototype.sort=function(t){return ht(fr(this,t))},we.prototype.sortBy=function(t,o){return ht(fr(this,o,t))},we.prototype.wasAltered=function(){return this._map.wasAltered()},we.prototype.__iterate=function(t,o){var u=this;return this._map.__iterate(function(f,p){return t(p,p,u)},o)},we.prototype.__iterator=function(t,o){return this._map.map(function(u,f){return f}).__iterator(t,o)},we.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map.__ensureOwner(t);return t?this.__make(o,t):(this.__ownerID=t,this._map=o,this)};function yi(t){return!!(t&&t[go])}we.isSet=yi;var go="@@__IMMUTABLE_SET__@@",et=we.prototype;et[go]=!0,et[T]=et.remove,et.mergeDeep=et.merge,et.mergeDeepWith=et.mergeWith,et.withMutations=ie.withMutations,et.asMutable=ie.asMutable,et.asImmutable=ie.asImmutable,et.__empty=_i,et.__make=yo;function mi(t,o){return t.__ownerID?(t.size=o.size,t._map=o,t):o===t._map?t:o.size===0?t.__empty():t.__make(o)}function yo(t,o){var u=Object.create(et);return u.size=t?t.size:0,u._map=t,u.__ownerID=o,u}var mo;function _i(){return mo||(mo=yo(pt()))}a(ht,we);function ht(t){return t==null?Ei():_o(t)?t:Ei().withMutations(function(o){var u=l(t);Ze(u.size),u.forEach(function(f){return o.add(f)})})}ht.of=function(){return this(arguments)},ht.fromKeys=function(t){return this(s(t).keySeq())},ht.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function _o(t){return yi(t)&&d(t)}ht.isOrderedSet=_o;var fn=ht.prototype;fn[C]=!0,fn.__empty=Ei,fn.__make=Eo;function Eo(t,o){var u=Object.create(fn);return u.size=t?t.size:0,u._map=t,u.__ownerID=o,u}var So;function Ei(){return So||(So=Eo(sn()))}a(Te,nr);function Te(t){return t==null?Si():wo(t)?t:Si().unshiftAll(t)}Te.of=function(){return this(arguments)},Te.prototype.toString=function(){return this.__toString("Stack [","]")},Te.prototype.get=function(t,o){var u=this._head;for(t=N(this,t);u&&t--;)u=u.next;return u?u.value:o},Te.prototype.peek=function(){return this._head&&this._head.value},Te.prototype.push=function(){if(arguments.length===0)return this;for(var t=this.size+arguments.length,o=this._head,u=arguments.length-1;u>=0;u--)o={value:arguments[u],next:o};return this.__ownerID?(this.size=t,this._head=o,this.__hash=void 0,this.__altered=!0,this):Kr(t,o)},Te.prototype.pushAll=function(t){if(t=c(t),t.size===0)return this;Ze(t.size);var o=this.size,u=this._head;return t.reverse().forEach(function(f){o++,u={value:f,next:u}}),this.__ownerID?(this.size=o,this._head=u,this.__hash=void 0,this.__altered=!0,this):Kr(o,u)},Te.prototype.pop=function(){return this.slice(1)},Te.prototype.unshift=function(){return this.push.apply(this,arguments)},Te.prototype.unshiftAll=function(t){return this.pushAll(t)},Te.prototype.shift=function(){return this.pop.apply(this,arguments)},Te.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):Si()},Te.prototype.slice=function(t,o){if(V(t,o,this.size))return this;var u=G(t,this.size),f=W(o,this.size);if(f!==this.size)return nr.prototype.slice.call(this,t,o);for(var p=this.size-u,g=this._head;u--;)g=g.next;return this.__ownerID?(this.size=p,this._head=g,this.__hash=void 0,this.__altered=!0,this):Kr(p,g)},Te.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Kr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Te.prototype.__iterate=function(t,o){if(o)return this.reverse().__iterate(t);for(var u=0,f=this._head;f&&t(f.value,u++,this)!==!1;)f=f.next;return u},Te.prototype.__iterator=function(t,o){if(o)return this.reverse().__iterator(t);var u=0,f=this._head;return new Z(function(){if(f){var p=f.value;return f=f.next,ae(t,u++,p)}return me()})};function wo(t){return!!(t&&t[Co])}Te.isStack=wo;var Co="@@__IMMUTABLE_STACK__@@",lr=Te.prototype;lr[Co]=!0,lr.withMutations=ie.withMutations,lr.asMutable=ie.asMutable,lr.asImmutable=ie.asImmutable,lr.wasAltered=ie.wasAltered;function Kr(t,o,u,f){var p=Object.create(lr);return p.size=t,p._head=o,p.__ownerID=u,p.__hash=f,p.__altered=!1,p}var Do;function Si(){return Do||(Do=Kr(0))}function gt(t,o){var u=function(f){t.prototype[f]=o[f]};return Object.keys(o).forEach(u),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(o).forEach(u),t}i.Iterator=Z,gt(i,{toArray:function(){Ze(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(o,u){t[u]=o}),t},toIndexedSeq:function(){return new sr(this)},toJS:function(){return this.toSeq().map(function(t){return t&&typeof t.toJS=="function"?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&typeof t.toJSON=="function"?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){Ze(this.size);var t={};return this.__iterate(function(o,u){t[u]=o}),t},toOrderedMap:function(){return Oe(this.toKeyedSeq())},toOrderedSet:function(){return ht(h(this)?this.valueSeq():this)},toSet:function(){return we(h(this)?this.valueSeq():this)},toSetSeq:function(){return new ur(this)},toSeq:function(){return y(this)?this.toIndexedSeq():h(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Te(h(this)?this.valueSeq():this)},toList:function(){return Se(h(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,o){return this.size===0?t+o:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+o},concat:function(){var t=n.call(arguments,0);return ge(this,sl(this,t))},includes:function(t){return this.some(function(o){return Ee(o,t)})},entries:function(){return this.__iterator(ee)},every:function(t,o){Ze(this.size);var u=!0;return this.__iterate(function(f,p,g){if(!t.call(o,f,p,g))return u=!1,!1}),u},filter:function(t,o){return ge(this,ao(this,t,o,!0))},find:function(t,o,u){var f=this.findEntry(t,o);return f?f[1]:u},findEntry:function(t,o){var u;return this.__iterate(function(f,p,g){if(t.call(o,f,p,g))return u=[p,f],!1}),u},findLastEntry:function(t,o){return this.toSeq().reverse().findEntry(t,o)},forEach:function(t,o){return Ze(this.size),this.__iterate(o?t.bind(o):t)},join:function(t){Ze(this.size),t=t!==void 0?""+t:",";var o="",u=!0;return this.__iterate(function(f){u?u=!1:o+=t,o+=f!=null?f.toString():""}),o},keys:function(){return this.__iterator(ne)},map:function(t,o){return ge(this,io(this,t,o))},reduce:function(t,o,u){Ze(this.size);var f,p;return arguments.length<2?p=!0:f=o,this.__iterate(function(g,_,D){p?(p=!1,f=g):f=t.call(u,f,g,_,D)}),f},reduceRight:function(t,o,u){var f=this.toKeyedSeq().reverse();return f.reduce.apply(f,arguments)},reverse:function(){return ge(this,pi(this,!0))},slice:function(t,o){return ge(this,di(this,t,o,!0))},some:function(t,o){return!this.every(vn(t),o)},sort:function(t){return ge(this,fr(this,t))},values:function(){return this.__iterator(Y)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,o){return F(t?this.toSeq().filter(t,o):this)},countBy:function(t,o){return il(this,t,o)},equals:function(t){return rr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new _e(t._cache);var o=t.toSeq().map(pl).toIndexedSeq();return o.fromEntrySeq=function(){return t.toSeq()},o},filterNot:function(t,o){return this.filter(vn(t),o)},findLast:function(t,o,u){return this.toKeyedSeq().reverse().find(t,o,u)},first:function(){return this.find(P)},flatMap:function(t,o){return ge(this,ul(this,t,o))},flatten:function(t){return ge(this,so(this,t,!0))},fromEntrySeq:function(){return new cr(this)},get:function(t,o){return this.find(function(u,f){return Ee(f,t)},void 0,o)},getIn:function(t,o){for(var u=this,f=po(t),p;!(p=f.next()).done;){var g=p.value;if(u=u&&u.get?u.get(g,M):M,u===M)return o}return u},groupBy:function(t,o){return al(this,t,o)},has:function(t){return this.get(t,M)!==M},hasIn:function(t){return this.getIn(t,M)!==M},isSubset:function(t){return t=typeof t.includes=="function"?t:i(t),this.every(function(o){return t.includes(o)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:i(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map(vl).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return un(this,t)},maxBy:function(t,o){return un(this,o,t)},min:function(t){return un(this,t?bo(t):To)},minBy:function(t,o){return un(this,o?bo(o):To,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ge(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,o){return ge(this,oo(this,t,o,!0))},skipUntil:function(t,o){return this.skipWhile(vn(t),o)},sortBy:function(t,o){return ge(this,fr(this,o,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ge(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,o){return ge(this,ol(this,t,o))},takeUntil:function(t,o){return this.takeWhile(vn(t),o)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hl(this))}});var $e=i.prototype;$e[E]=!0,$e[Fe]=$e.values,$e.__toJS=$e.toArray,$e.__toStringMapper=Oo,$e.inspect=$e.toSource=function(){return this.toString()},$e.chain=$e.flatMap,$e.contains=$e.includes,function(){try{Object.defineProperty($e,"length",{get:function(){if(!i.noLengthWarning){var t;try{throw new Error}catch(o){t=o.stack}if(t.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. "+t),this.size}}})}catch{}}(),gt(s,{flip:function(){return ge(this,no(this))},findKey:function(t,o){var u=this.findEntry(t,o);return u&&u[0]},findLastKey:function(t,o){return this.toSeq().reverse().findKey(t,o)},keyOf:function(t){return this.findKey(function(o){return Ee(o,t)})},lastKeyOf:function(t){return this.findLastKey(function(o){return Ee(o,t)})},mapEntries:function(t,o){var u=this,f=0;return ge(this,this.toSeq().map(function(p,g){return t.call(o,[g,p],f++,u)}).fromEntrySeq())},mapKeys:function(t,o){var u=this;return ge(this,this.toSeq().flip().map(function(f,p){return t.call(o,f,p,u)}).flip())}});var ln=s.prototype;ln[m]=!0,ln[Fe]=$e.entries,ln.__toJS=$e.toObject,ln.__toStringMapper=function(t,o){return JSON.stringify(o)+": "+Oo(t)},gt(c,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(t,o){return ge(this,ao(this,t,o,!1))},findIndex:function(t,o){var u=this.findEntry(t,o);return u?u[0]:-1},indexOf:function(t){var o=this.toKeyedSeq().keyOf(t);return o===void 0?-1:o},lastIndexOf:function(t){var o=this.toKeyedSeq().reverse().keyOf(t);return o===void 0?-1:o},reverse:function(){return ge(this,pi(this,!1))},slice:function(t,o){return ge(this,di(this,t,o,!1))},splice:function(t,o){var u=arguments.length;if(o=Math.max(o|0,0),u===0||u===2&&!o)return this;t=G(t,t<0?this.count():this.size);var f=this.slice(0,t);return ge(this,u===1?f:f.concat($(arguments,2),this.slice(t+o)))},findLastIndex:function(t,o){var u=this.toKeyedSeq().findLastKey(t,o);return u===void 0?-1:u},first:function(){return this.get(0)},flatten:function(t){return ge(this,so(this,t,!1))},get:function(t,o){return t=N(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?o:this.find(function(u,f){return f===t},void 0,o)},has:function(t){return t=N(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return ge(this,cl(this,t))},interleave:function(){var t=[this].concat($(arguments)),o=hi(this.toSeq(),oe.of,t),u=o.flatten(!0);return o.size&&(u.size=o.size*t.length),ge(this,u)},last:function(){return this.get(-1)},skipWhile:function(t,o){return ge(this,oo(this,t,o,!1))},zip:function(){var t=[this].concat($(arguments));return ge(this,hi(this,dl,t))},zipWith:function(t){var o=$(arguments);return o[0]=this,ge(this,hi(this,t,o))}}),c.prototype[S]=!0,c.prototype[C]=!0,gt(l,{get:function(t,o){return this.has(t)?t:o},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),l.prototype.has=$e.includes,gt(be,s.prototype),gt(oe,c.prototype),gt(Ne,l.prototype),gt(Dr,s.prototype),gt(nr,c.prototype),gt(nn,l.prototype);function vl(t,o){return o}function pl(t,o){return[o,t]}function vn(t){return function(){return!t.apply(this,arguments)}}function bo(t){return function(){return-t.apply(this,arguments)}}function Oo(t){return typeof t=="string"?JSON.stringify(t):t}function dl(){return $(arguments)}function To(t,o){return t<o?1:t>o?-1:0}function hl(t){if(t.size===1/0)return 0;var o=d(t),u=h(t),f=o?1:0,p=t.__iterate(u?o?function(g,_){f=31*f+ko(Ye(g),Ye(_))|0}:function(g,_){f=f+ko(Ye(g),Ye(_))|0}:o?function(g){f=31*f+Ye(g)|0}:function(g){f=f+Ye(g)|0});return gl(p,f)}function gl(t,o){return o=br(o,3432918353),o=br(o<<15|o>>>-15,461845907),o=br(o<<13|o>>>-13,5),o=(o+3864292196|0)^t,o=br(o^o>>>16,2246822507),o=br(o^o>>>13,3266489909),o=Yn(o^o>>>16),o}function ko(t,o){return t^o+2654435769+(t<<6)+(t>>2)|0}var yl={Iterable:i,Seq:pe,Collection:Kt,Map:fe,OrderedMap:Oe,List:Se,Stack:Te,Set:we,OrderedSet:ht,Record:Qe,Range:Le,Repeat:Re,is:Ee,fromJS:He};return yl})})(Pu);var le=Pu.exports,_l=le,El=_l.OrderedMap,Sl={createFromArray:function(e){return El(e.map(function(n){return[n.getKey(),n]}))}},jr=Sl;function wl(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var pa=le,Yi=pa.Map,Zi=pa.OrderedSet,Cl=pa.Record,Uu=Zi(),zu={style:Uu,entity:null},Dl=Cl(zu),da=function(r){wl(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.getStyle=function(){return this.get("style")},n.getEntity=function(){return this.get("entity")},n.hasStyle=function(i){return this.getStyle().includes(i)},e.applyStyle=function(i,s){var c=i.set("style",i.getStyle().add(s));return e.create(c)},e.removeStyle=function(i,s){var c=i.set("style",i.getStyle().remove(s));return e.create(c)},e.applyEntity=function(i,s){var c=i.getEntity()===s?i:i.set("entity",s);return e.create(c)},e.create=function(i){if(!i)return ha;var s={style:Uu,entity:null},c=Yi(s).merge(i),l=wi.get(c);if(l)return l;var v=new e(c);return wi=wi.set(c,v),v},e.fromJS=function(i){var s=i.style,c=i.entity;return new e({style:Array.isArray(s)?Zi(s):s,entity:Array.isArray(c)?Zi(c):c})},e}(Dl),ha=new da,wi=Yi([[Yi(zu),ha]]);da.EMPTY=ha;var at=da;function bl(r,e,n,a){if(r.size){var i=0;r.reduce(function(s,c,l){return e(s,c)||(n(s)&&a(i,l),i=l),c}),n(r.last())&&a(i,r.count())}}var Gr=bl;function Ol(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Tl=at,xo=Gr,Jr=le,qu=Jr.List,kl=Jr.Map,xl=Jr.OrderedSet,Bl=Jr.Record,Kl=Jr.Repeat,Ml=xl(),Al={key:"",type:"unstyled",text:"",characterList:qu(),depth:0,data:kl()},Nl=Bl(Al),Il=function(e){if(!e)return e;var n=e.characterList,a=e.text;return a&&!n&&(e.characterList=qu(Kl(Tl.EMPTY,a.length))),e},Rl=function(r){Ol(e,r);function e(a){return r.call(this,Il(a))||this}var n=e.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(i){var s=this.getCharacterList().get(i);return s?s.getStyle():Ml},n.getEntityAt=function(i){var s=this.getCharacterList().get(i);return s?s.getEntity():null},n.findStyleRanges=function(i,s){xo(this.getCharacterList(),Ll,i,s)},n.findEntityRanges=function(i,s){xo(this.getCharacterList(),$l,i,s)},e}(Nl);function Ll(r,e){return r.getStyle()===e.getStyle()}function $l(r,e){return r.getEntity()===e.getEntity()}var Cr=Rl;function Fl(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Pl=at,Bo=Gr,Xr=le,Qi=Xr.List,Ul=Xr.Map,zl=Xr.OrderedSet,ql=Xr.Record,Hl=Xr.Repeat,Vl=zl(),Ko={parent:null,characterList:Qi(),data:Ul(),depth:0,key:"",text:"",type:"unstyled",children:Qi(),prevSibling:null,nextSibling:null},Wl=function(e,n){return e.getStyle()===n.getStyle()},jl=function(e,n){return e.getEntity()===n.getEntity()},Gl=function(e){if(!e)return e;var n=e.characterList,a=e.text;return a&&!n&&(e.characterList=Qi(Hl(Pl.EMPTY,a.length))),e},Jl=function(r){Fl(e,r);function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ko;return r.call(this,Gl(a))||this}var n=e.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(i){var s=this.getCharacterList().get(i);return s?s.getStyle():Vl},n.getEntityAt=function(i){var s=this.getCharacterList().get(i);return s?s.getEntity():null},n.getChildKeys=function(){return this.get("children")},n.getParentKey=function(){return this.get("parent")},n.getPrevSiblingKey=function(){return this.get("prevSibling")},n.getNextSiblingKey=function(){return this.get("nextSibling")},n.findStyleRanges=function(i,s){Bo(this.getCharacterList(),Wl,i,s)},n.findEntityRanges=function(i,s){Bo(this.getCharacterList(),jl,i,s)},e}(ql(Ko)),ot=Jl,Mo=at,Xl=le,Yl=Xl.Map,Zl={add:function(e,n,a){return Ao(e,n,a,!0)},remove:function(e,n,a){return Ao(e,n,a,!1)}};function Ao(r,e,n,a){var i=r.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),l=e.getEndKey(),v=e.getEndOffset(),h=i.skipUntil(function(y,w){return w===s}).takeUntil(function(y,w){return w===l}).concat(Yl([[l,i.get(l)]])).map(function(y,w){var d,E;s===l?(d=c,E=v):(d=w===s?c:0,E=w===l?v:y.getLength());for(var m=y.getCharacterList(),S;d<E;)S=m.get(d),m=m.set(d,a?Mo.applyStyle(S,n):Mo.removeStyle(S,n)),d++;return y.set("characterList",m)});return r.merge({blockMap:i.merge(h),selectionBefore:e,selectionAfter:e})}var Ql=Zl,ev=at;function tv(r,e,n,a){for(var i=e,s=r.getCharacterList();i<n;)s=s.set(i,ev.applyEntity(s.get(i),a)),i++;return r.set("characterList",s)}var rv=tv,nv=rv,iv=le;function av(r,e,n){var a=r.getBlockMap(),i=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),v=a.skipUntil(function(h,y){return y===i}).takeUntil(function(h,y){return y===c}).toOrderedMap().merge(iv.OrderedMap([[c,a.get(c)]])).map(function(h,y){var w=y===i?s:0,d=y===c?l:h.getLength();return nv(h,w,d,n)});return r.merge({blockMap:a.merge(v),selectionBefore:e,selectionAfter:e})}var ov=av,sv={getRemovalRange:function(e,n,a,i,s){var c=a.split(" ");c=c.map(function(C,T){if(s==="forward"){if(T>0)return" "+C}else if(T<c.length-1)return C+" ";return C});for(var l=i,v,h,y=null,w=null,d=0;d<c.length;d++){if(h=c[d],v=l+h.length,e<v&&l<n)y!==null||(y=l),w=v;else if(y!==null)break;l=v}var E=i+a.length,m=y===i,S=w===E;return(!m&&S||m&&!S)&&(s==="forward"?w!==E&&w++:y!==i&&y--),{start:y,end:w}}},uv=sv,cv=process.env.NODE_ENV!=="production"?function(r){if(r===void 0)throw new Error("invariant(...): Second argument must be a string.")}:function(r){};function fv(r,e){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];if(cv(e),!r){var s;if(e===void 0)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;s=new Error(e.replace(/%s/g,function(){return String(a[c++])})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var ve=fv,No=ve;function lv(r,e){var n=[];return r.findEntityRanges(function(a){return a.getEntity()===e},function(a,i){n.push({start:a,end:i})}),n.length||(process.env.NODE_ENV!=="production"?No(!1,"Entity key not found in this range."):No(!1)),n}var vv=lv,pv=uv,dv=vv,Io=ve;function hv(r,e,n,a,i){var s=a.getStartOffset(),c=a.getEndOffset(),l=e.getEntityAt(s),v=n.getEntityAt(c-1);if(!l&&!v)return a;var h=a;if(l&&l===v)h=Mr(r,e,h,i,l,!0,!0);else if(l&&v){var y=Mr(r,e,h,i,l,!1,!0),w=Mr(r,n,h,i,v,!1,!1);h=h.merge({anchorOffset:y.getAnchorOffset(),focusOffset:w.getFocusOffset(),isBackward:!1})}else if(l){var d=Mr(r,e,h,i,l,!1,!0);h=h.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(v){var E=Mr(r,n,h,i,v,!1,!1);h=h.merge({focusOffset:E.getEndOffset(),isBackward:!1})}return h}function Mr(r,e,n,a,i,s,c){var l=n.getStartOffset(),v=n.getEndOffset(),h=r.__get(i),y=h.getMutability(),w=c?l:v;if(y==="MUTABLE")return n;var d=dv(e,i).filter(function(S){return w<=S.end&&w>=S.start});d.length!=1&&(process.env.NODE_ENV!=="production"?Io(!1,"There should only be one entity range within this removal range."):Io(!1));var E=d[0];if(y==="IMMUTABLE")return n.merge({anchorOffset:E.start,focusOffset:E.end,isBackward:!1});s||(c?v=E.end:l=E.start);var m=pv.getRemovalRange(l,v,e.getText().slice(E.start,E.end),E.start,a);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}var gv=hv,Ro={},yv=Math.pow(2,24);function mv(){for(var r;r===void 0||Ro.hasOwnProperty(r)||!isNaN(+r);)r=Math.floor(Math.random()*yv).toString(32);return Ro[r]=!0,r}var Ct=mv,_v=ot,Hu=Ct,Ev=le,Vu=Ev.OrderedMap,Sv=function(e){var n={},a;return Vu(e.withMutations(function(i){i.forEach(function(s,c){var l=s.getKey(),v=s.getNextSiblingKey(),h=s.getPrevSiblingKey(),y=s.getChildKeys(),w=s.getParentKey(),d=Hu();if(n[l]=d,v){var E=i.get(v);E?i.setIn([v,"prevSibling"],d):i.setIn([l,"nextSibling"],null)}if(h){var m=i.get(h);m?i.setIn([h,"nextSibling"],d):i.setIn([l,"prevSibling"],null)}if(w&&i.get(w)){var S=i.get(w),C=S.getChildKeys();i.setIn([w,"children"],C.set(C.indexOf(s.getKey()),d))}else i.setIn([l,"parent"],null),a&&(i.setIn([a.getKey(),"nextSibling"],d),i.setIn([l,"prevSibling"],n[a.getKey()])),a=i.get(l);y.forEach(function(T){var B=i.get(T);B?i.setIn([T,"parent"],d):i.setIn([l,"children"],s.getChildKeys().filter(function(O){return O!==T}))})})}).toArray().map(function(i){return[n[i.getKey()],i.set("key",n[i.getKey()])]}))},wv=function(e){return Vu(e.toArray().map(function(n){var a=Hu();return[a,n.set("key",a)]}))},Cv=function(e){var n=e.first()instanceof _v;return n?Sv(e):wv(e)},Wu=Cv,Dv=at,bv=Gr,Lo=ve;function Ov(r,e){var n=r.getBlockMap(),a=r.getEntityMap(),i={},s=e.getStartKey(),c=e.getStartOffset(),l=n.get(s),v=$o(a,l,c);v!==l&&(i[s]=v);var h=e.getEndKey(),y=e.getEndOffset(),w=n.get(h);s===h&&(w=v);var d=$o(a,w,y);return d!==w&&(i[h]=d),Object.keys(i).length?r.merge({blockMap:n.merge(i),selectionAfter:e}):r.set("selectionAfter",e)}function Tv(r,e,n){var a;return bv(r,function(i,s){return i.getEntity()===s.getEntity()},function(i){return i.getEntity()===e},function(i,s){i<=n&&s>=n&&(a={start:i,end:s})}),typeof a!="object"&&(process.env.NODE_ENV!=="production"?Lo(!1,"Removal range must exist within character list."):Lo(!1)),a}function $o(r,e,n){var a=e.getCharacterList(),i=n>0?a.get(n-1):void 0,s=n<a.count()?a.get(n):void 0,c=i?i.getEntity():void 0,l=s?s.getEntity():void 0;if(l&&l===c){var v=r.__get(l);if(v.getMutability()!=="MUTABLE"){for(var h=Tv(a,l,n),y=h.start,w=h.end,d;y<w;)d=a.get(y),a=a.set(y,Dv.applyEntity(d,null)),y++;return e.set("characterList",a)}}return e}var ju=Ov,kv=Wu,xv=ju,Bv=function(e,n){var a=n.getStartKey(),i=n.getStartOffset(),s=n.getEndKey(),c=n.getEndOffset(),l=xv(e,n),v=l.getBlockMap(),h=v.keySeq(),y=h.indexOf(a),w=h.indexOf(s)+1;return kv(v.slice(y,w).map(function(d,E){var m=d.getText(),S=d.getCharacterList();return a===s?d.merge({text:m.slice(i,c),characterList:S.slice(i,c)}):E===a?d.merge({text:m.slice(i),characterList:S.slice(i)}):E===s?d.merge({text:m.slice(0,c),characterList:S.slice(0,c)}):d}))},Rn=Bv;function Kv(r,e,n){var a=r;if(n===a.count())e.forEach(function(c){a=a.push(c)});else if(n===0)e.reverse().forEach(function(c){a=a.unshift(c)});else{var i=a.slice(0,n),s=a.slice(n);a=i.concat(e,s).toList()}return a}var Gu=Kv,Mv=jr,Ju=ot,Av=le,Nv=Gu,dn=ve,Iv=Wu,Rv=Av.List,Lv=function(e,n,a,i,s,c){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",v=a.get(s),h=v.getText(),y=v.getCharacterList(),w=s,d=c+i.getText().length,E=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":E=i.getData().merge(v.getData());break;case"REPLACE_WITH_NEW_DATA":E=i.getData();break}var m=v.getType();h&&m==="unstyled"&&(m=i.getType());var S=v.merge({text:h.slice(0,c)+i.getText()+h.slice(c),characterList:Nv(y,i.getCharacterList(),c),type:m,data:E});return e.merge({blockMap:a.set(s,S),selectionBefore:n,selectionAfter:n.merge({anchorKey:w,anchorOffset:d,focusKey:w,focusOffset:d,isBackward:!1})})},$v=function(e,n,a){var i=e.getText(),s=e.getCharacterList(),c=i.slice(0,n),l=s.slice(0,n),v=a.first();return e.merge({text:c+v.getText(),characterList:l.concat(v.getCharacterList()),type:c?e.getType():v.getType(),data:v.getData()})},Fv=function(e,n,a){var i=e.getText(),s=e.getCharacterList(),c=i.length,l=i.slice(n,c),v=s.slice(n,c),h=a.last();return h.merge({text:h.getText()+l,characterList:h.getCharacterList().concat(v),data:h.getData()})},Pv=function(e,n){var a=e.getKey(),i=e,s=[];for(n.get(a)&&s.push(a);i&&i.getNextSiblingKey();){var c=i.getNextSiblingKey();if(!c)break;s.push(c),i=n.get(c)}return s},Uv=function(e,n,a,i){return e.withMutations(function(s){var c=a.getKey(),l=i.getKey(),v=a.getNextSiblingKey(),h=a.getParentKey(),y=Pv(i,e),w=y[y.length-1];if(s.get(l)?(s.setIn([c,"nextSibling"],l),s.setIn([l,"prevSibling"],c)):(s.setIn([c,"nextSibling"],i.getNextSiblingKey()),s.setIn([i.getNextSiblingKey(),"prevSibling"],c)),s.setIn([w,"nextSibling"],v),v&&s.setIn([v,"prevSibling"],w),y.forEach(function(T){return s.setIn([T,"parent"],h)}),h){var d=e.get(h),E=d.getChildKeys(),m=E.indexOf(c),S=m+1,C=E.toArray();C.splice.apply(C,[S,0].concat(y)),s.setIn([h,"children"],Rv(C))}})},zv=function(e,n,a,i,s,c){var l=a.first()instanceof Ju,v=[],h=i.size,y=a.get(s),w=i.first(),d=i.last(),E=d.getLength(),m=d.getKey(),S=l&&(!y.getChildKeys().isEmpty()||!w.getChildKeys().isEmpty());a.forEach(function(T,B){if(B!==s){v.push(T);return}S?v.push(T):v.push($v(T,c,i)),i.slice(S?0:1,h-1).forEach(function(O){return v.push(O)}),v.push(Fv(T,c,i))});var C=Mv.createFromArray(v);return l&&(C=Uv(C,a,y,w)),e.merge({blockMap:C,selectionBefore:n,selectionAfter:n.merge({anchorKey:m,anchorOffset:E,focusKey:m,focusOffset:E,isBackward:!1})})},qv=function(e,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||(process.env.NODE_ENV!=="production"?dn(!1,"`insertFragment` should only be called with a collapsed selection state."):dn(!1));var s=e.getBlockMap(),c=Iv(a),l=n.getStartKey(),v=n.getStartOffset(),h=s.get(l);return h instanceof Ju&&(h.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?dn(!1,"`insertFragment` should not be called when a container node is selected."):dn(!1))),c.size===1?Lv(e,n,s,c.first(),l,v,i):zv(e,n,s,c,l,v)},Hv=qv,Vv=le,Wv=Gu,Fo=ve,jv=Vv.Repeat;function Gv(r,e,n,a){e.isCollapsed()||(process.env.NODE_ENV!=="production"?Fo(!1,"`insertText` should only be called with a collapsed range."):Fo(!1));var i=null;if(n!=null&&(i=n.length),i==null||i===0)return r;var s=r.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),v=s.get(c),h=v.getText(),y=v.merge({text:h.slice(0,l)+n+h.slice(l,v.getLength()),characterList:Wv(v.getCharacterList(),jv(a,i).toList(),l)}),w=l+i;return r.merge({blockMap:s.set(c,y),selectionAfter:e.merge({anchorOffset:w,focusOffset:w})})}var Jv=Gv,Xv=le,Yv=Xv.Map;function Zv(r,e,n){var a=e.getStartKey(),i=e.getEndKey(),s=r.getBlockMap(),c=s.toSeq().skipUntil(function(l,v){return v===a}).takeUntil(function(l,v){return v===i}).concat(Yv([[i,s.get(i)]])).map(n);return r.merge({blockMap:s.merge(c),selectionBefore:e,selectionAfter:e})}var Xu=Zv,Qv=ot,ep=function(e,n){var a=e instanceof Qv;if(!a)return null;var i=e.getNextSiblingKey();if(i)return i;var s=e.getParentKey();if(!s)return null;for(var c=n.get(s);c&&!c.getNextSiblingKey();){var l=c.getParentKey();c=l?n.get(l):null}return c?c.getNextSiblingKey():null},Yu=ep,tp=ot,ea=Yu,Zu=le;Zu.List;var Po=Zu.Map,Ve=function(e,n,a){if(e){var i=n.get(e);i&&n.set(e,a(i))}},An=function(e,n){var a=[];if(!e)return a;for(var i=n.get(e);i&&i.getParentKey();){var s=i.getParentKey();s&&a.push(s),i=s?n.get(s):null}return a},rp=function(e,n){var a=[];if(!e)return a;for(var i=ea(e,n);i&&n.get(i);){var s=n.get(i);a.push(i),i=s.getParentKey()?ea(s,n):null}return a},vr=function(e,n,a){if(!e)return null;for(var i=a.get(e.getKey()).getNextSiblingKey();i&&!n.get(i);)i=a.get(i).getNextSiblingKey()||null;return i},pr=function(e,n,a){if(!e)return null;for(var i=a.get(e.getKey()).getPrevSiblingKey();i&&!n.get(i);)i=a.get(i).getPrevSiblingKey()||null;return i},np=function(e,n,a,i){return e.withMutations(function(s){if(Ve(n.getKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i),prevSibling:pr(y,s,i)})}),Ve(a.getKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i),prevSibling:pr(y,s,i)})}),An(n.getKey(),i).forEach(function(y){return Ve(y,s,function(w){return w.merge({children:w.getChildKeys().filter(function(d){return s.get(d)}),nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),Ve(n.getNextSiblingKey(),s,function(y){return y.merge({prevSibling:n.getPrevSiblingKey()})}),Ve(n.getPrevSiblingKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i)})}),Ve(a.getNextSiblingKey(),s,function(y){return y.merge({prevSibling:pr(y,s,i)})}),Ve(a.getPrevSiblingKey(),s,function(y){return y.merge({nextSibling:a.getNextSiblingKey()})}),An(a.getKey(),i).forEach(function(y){Ve(y,s,function(w){return w.merge({children:w.getChildKeys().filter(function(d){return s.get(d)}),nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),rp(a,i).forEach(function(y){return Ve(y,s,function(w){return w.merge({nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),e.get(n.getKey())==null&&e.get(a.getKey())!=null&&a.getParentKey()===n.getKey()&&a.getPrevSiblingKey()==null){var c=n.getPrevSiblingKey();Ve(a.getKey(),s,function(y){return y.merge({prevSibling:c})}),Ve(c,s,function(y){return y.merge({nextSibling:a.getKey()})});var l=c?e.get(c):null,v=l?l.getParentKey():null;if(n.getChildKeys().forEach(function(y){Ve(y,s,function(w){return w.merge({parent:v})})}),v!=null){var h=e.get(v);Ve(v,s,function(y){return y.merge({children:h.getChildKeys().concat(n.getChildKeys())})})}Ve(n.getChildKeys().find(function(y){var w=e.get(y);return w.getNextSiblingKey()===null}),s,function(y){return y.merge({nextSibling:n.getNextSiblingKey()})})}})},ip=function(e,n){if(n.isCollapsed())return e;var a=e.getBlockMap(),i=n.getStartKey(),s=n.getStartOffset(),c=n.getEndKey(),l=n.getEndOffset(),v=a.get(i),h=a.get(c),y=v instanceof tp,w=[];if(y){var d=h.getChildKeys(),E=An(c,a);h.getNextSiblingKey()&&(w=w.concat(E)),d.isEmpty()||(w=w.concat(E.concat([c]))),w=w.concat(An(ea(h,a),a))}var m;v===h?m=ap(v.getCharacterList(),s,l):m=v.getCharacterList().slice(0,s).concat(h.getCharacterList().slice(l));var S=v.merge({text:v.getText().slice(0,s)+h.getText().slice(l),characterList:m}),C=y&&s===0&&l===0&&h.getParentKey()===i&&h.getPrevSiblingKey()==null,T=C?Po([[i,null]]):a.toSeq().skipUntil(function(O,k){return k===i}).takeUntil(function(O,k){return k===c}).filter(function(O,k){return w.indexOf(k)===-1}).concat(Po([[c,null]])).map(function(O,k){return k===i?S:null}),B=a.merge(T).filter(function(O){return!!O});return y&&v!==h&&(B=np(B,v,h,a)),e.merge({blockMap:B,selectionBefore:n,selectionAfter:n.merge({anchorKey:i,anchorOffset:s,focusKey:i,focusOffset:s,isBackward:!1})})},ap=function(e,n,a){if(n===0)for(;n<a;)e=e.shift(),n++;else if(a===e.count())for(;a>n;)e=e.pop(),a--;else{var i=e.slice(0,n),s=e.slice(a);e=i.concat(s).toList()}return e},op=ip,sp=ot,up=Ct,Qu=le,hn=ve,cp=Xu,fp=Qu.List,lp=Qu.Map,gn=function(e,n,a){if(e){var i=n.get(e);i&&n.set(e,a(i))}},vp=function(e,n,a){return e.withMutations(function(i){var s=n.getKey(),c=a.getKey();gn(n.getParentKey(),i,function(l){var v=l.getChildKeys(),h=v.indexOf(s)+1,y=v.toArray();return y.splice(h,0,c),l.merge({children:fp(y)})}),gn(n.getNextSiblingKey(),i,function(l){return l.merge({prevSibling:c})}),gn(s,i,function(l){return l.merge({nextSibling:c})}),gn(c,i,function(l){return l.merge({prevSibling:s})})})},pp=function(e,n){n.isCollapsed()||(process.env.NODE_ENV!=="production"?hn(!1,"Selection range must be collapsed."):hn(!1));var a=n.getAnchorKey(),i=e.getBlockMap(),s=i.get(a),c=s.getText();if(!c){var l=s.getType();if(l==="unordered-list-item"||l==="ordered-list-item")return cp(e,n,function(T){return T.merge({type:"unstyled",depth:0})})}var v=n.getAnchorOffset(),h=s.getCharacterList(),y=up(),w=s instanceof sp,d=s.merge({text:c.slice(0,v),characterList:h.slice(0,v)}),E=d.merge({key:y,text:c.slice(v),characterList:h.slice(v),data:lp()}),m=i.toSeq().takeUntil(function(T){return T===s}),S=i.toSeq().skipUntil(function(T){return T===s}).rest(),C=m.concat([[a,d],[y,E]],S).toOrderedMap();return w&&(s.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?hn(!1,"ContentBlockNode must not have children"):hn(!1)),C=vp(C,d,E)),e.merge({blockMap:C,selectionBefore:n,selectionAfter:n.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})},dp=pp,hp=at,Uo=Ql,gp=ov,yp=gv,mp=Rn,_p=le,Ep=Hv,Sp=Jv,zo=ve,Ci=Xu,Ar=ju,Nr=op,wp=dp,Cp=_p.OrderedSet,Kn={replaceText:function(e,n,a,i,s){var c=Ar(e,n),l=Nr(c,n),v=hp.create({style:i||Cp(),entity:s||null});return Sp(l,l.getSelectionAfter(),a,v)},insertText:function(e,n,a,i,s){return n.isCollapsed()||(process.env.NODE_ENV!=="production"?zo(!1,"Target range must be collapsed for `insertText`."):zo(!1)),Kn.replaceText(e,n,a,i,s)},moveText:function(e,n,a){var i=mp(e,n),s=Kn.removeRange(e,n,"backward");return Kn.replaceWithFragment(s,a,i)},replaceWithFragment:function(e,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",s=Ar(e,n),c=Nr(s,n);return Ep(c,c.getSelectionAfter(),a,i)},removeRange:function(e,n,a){var i,s,c,l;n.getIsBackward()&&(n=n.merge({anchorKey:n.getFocusKey(),anchorOffset:n.getFocusOffset(),focusKey:n.getAnchorKey(),focusOffset:n.getAnchorOffset(),isBackward:!1})),i=n.getAnchorKey(),s=n.getFocusKey(),c=e.getBlockForKey(i),l=e.getBlockForKey(s);var v=n.getStartOffset(),h=n.getEndOffset(),y=c.getEntityAt(v),w=l.getEntityAt(h-1);if(i===s&&y&&y===w){var d=yp(e.getEntityMap(),c,l,n,a);return Nr(e,d)}var E=Ar(e,n);return Nr(E,n)},splitBlock:function(e,n){var a=Ar(e,n),i=Nr(a,n);return wp(i,i.getSelectionAfter())},applyInlineStyle:function(e,n,a){return Uo.add(e,n,a)},removeInlineStyle:function(e,n,a){return Uo.remove(e,n,a)},setBlockType:function(e,n,a){return Ci(e,n,function(i){return i.merge({type:a,depth:0})})},setBlockData:function(e,n,a){return Ci(e,n,function(i){return i.merge({data:a})})},mergeBlockData:function(e,n,a){return Ci(e,n,function(i){return i.merge({data:i.getData().merge(a)})})},applyEntity:function(e,n,a){var i=Ar(e,n);return gp(i,n,a)}},We=Kn;function Dp(r){return Object.keys(r).map(function(e){return r[e]})}var ec=Dp;function bp(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Op(r,i,n[i])})}return r}function Op(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Tp(r,e){if(r==null)return{};var n={},a=Object.keys(r),i,s;for(s=0;s<a.length;s++)i=a[s],!(e.indexOf(i)>=0)&&(n[i]=r[i]);return n}var tc=Gr,kp=ec,ga=le,mr=ga.List,xp=ga.Repeat,rc=ga.Record,nc=function(){return!0},Bp={start:null,end:null},ta=rc(Bp),Kp={start:null,end:null,decoratorKey:null,leaves:null},Di=rc(Kp),Mp={generate:function(e,n,a){var i=n.getLength();if(!i)return mr.of(new Di({start:0,end:0,decoratorKey:null,leaves:mr.of(new ta({start:0,end:0}))}));var s=[],c=a?a.getDecorations(n,e):mr(xp(null,i)),l=n.getCharacterList();return tc(c,ic,nc,function(v,h){s.push(new Di({start:v,end:h,decoratorKey:c.get(v),leaves:Ap(l.slice(v,h).toList(),v)}))}),mr(s)},fromJS:function(e){var n=e.leaves,a=Tp(e,["leaves"]);return new Di(bp({},a,{leaves:n!=null?mr(Array.isArray(n)?n:kp(n)).map(function(i){return ta(i)}):null}))}};function Ap(r,e){var n=[],a=r.map(function(i){return i.getStyle()}).toList();return tc(a,ic,nc,function(i,s){n.push(new ta({start:i+e,end:s+e}))}),mr(n)}function ic(r,e){return r===e}var Np=Mp;function Ip(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Rp=le,Lp=Rp.Record,$p=Lp({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),Fp=function(r){Ip(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.getType=function(){return this.get("type")},n.getMutability=function(){return this.get("mutability")},n.getData=function(){return this.get("data")},e}($p),ac=Fp;function Pp(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var e=Math.random()*16|0,n=r=="x"?e:e&3|8;return n.toString(16)})}var Up=Pp;function zp(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){qp(r,i,n[i])})}return r}function qp(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Hp=ac,Vp=le,qo=ve,ra=Up,Wp=Vp.Map,bt=Wp(),Ir=ra();function dr(r,e){console.warn("WARNING: "+r+` will be deprecated soon!
1
+ "use strict";const ct=require("react"),va=require("./main-Djn1ADqt.cjs"),ml=require("react-dom");var Pu={exports:{}};(function(r,e){(function(n,a){r.exports=a()})(va.commonjsGlobal,function(){var n=Array.prototype.slice;function a(t,o){o&&(t.prototype=Object.create(o.prototype)),t.prototype.constructor=t}function i(t){return v(t)?t:pe(t)}a(s,i);function s(t){return h(t)?t:be(t)}a(c,i);function c(t){return y(t)?t:oe(t)}a(l,i);function l(t){return v(t)&&!w(t)?t:Ne(t)}function v(t){return!!(t&&t[E])}function h(t){return!!(t&&t[m])}function y(t){return!!(t&&t[S])}function w(t){return h(t)||y(t)}function d(t){return!!(t&&t[C])}i.isIterable=v,i.isKeyed=h,i.isIndexed=y,i.isAssociative=w,i.isOrdered=d,i.Keyed=s,i.Indexed=c,i.Set=l;var E="@@__IMMUTABLE_ITERABLE__@@",m="@@__IMMUTABLE_KEYED__@@",S="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",T="delete",B=5,O=1<<B,k=O-1,M={},X={value:!1},j={value:!1};function ue(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function R(){}function $(t,o){o=o||0;for(var u=Math.max(0,t.length-o),f=new Array(u),p=0;p<u;p++)f[p]=t[p+o];return f}function F(t){return t.size===void 0&&(t.size=t.__iterate(P)),t.size}function N(t,o){if(typeof o!="number"){var u=o>>>0;if(""+u!==o||u===4294967295)return NaN;o=u}return o<0?F(t)+o:o}function P(){return!0}function V(t,o,u){return(t===0||u!==void 0&&t<=-u)&&(o===void 0||u!==void 0&&o>=u)}function G(t,o){return re(t,o,0)}function W(t,o){return re(t,o,o)}function re(t,o,u){return t===void 0?u:t<0?Math.max(0,o+t):o===void 0?t:Math.min(o,t)}var ne=0,Y=1,ee=2,he=typeof Symbol=="function"&&Symbol.iterator,Be="@@iterator",Fe=he||Be;function Z(t){this.next=t}Z.prototype.toString=function(){return"[Iterator]"},Z.KEYS=ne,Z.VALUES=Y,Z.ENTRIES=ee,Z.prototype.inspect=Z.prototype.toSource=function(){return this.toString()},Z.prototype[Fe]=function(){return this};function ae(t,o,u,f){var p=t===0?o:t===1?u:[o,u];return f?f.value=p:f={value:p,done:!1},f}function me(){return{value:void 0,done:!0}}function ft(t){return!!st(t)}function Ue(t){return t&&typeof t.next=="function"}function ze(t){var o=st(t);return o&&o.call(t)}function st(t){var o=t&&(he&&t[he]||t[Be]);if(typeof o=="function")return o}function Je(t){return t&&typeof t.length=="number"}a(pe,i);function pe(t){return t==null?Ie():v(t)?t.toSeq():se(t)}pe.of=function(){return pe(arguments)},pe.prototype.toSeq=function(){return this},pe.prototype.toString=function(){return this.__toString("Seq {","}")},pe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},pe.prototype.__iterate=function(t,o){return de(this,t,o,!0)},pe.prototype.__iterator=function(t,o){return tt(this,t,o,!0)},a(be,pe);function be(t){return t==null?Ie().toKeyedSeq():v(t)?h(t)?t.toSeq():t.fromEntrySeq():vt(t)}be.prototype.toKeyedSeq=function(){return this},a(oe,pe);function oe(t){return t==null?Ie():v(t)?h(t)?t.entrySeq():t.toIndexedSeq():Q(t)}oe.of=function(){return oe(arguments)},oe.prototype.toIndexedSeq=function(){return this},oe.prototype.toString=function(){return this.__toString("Seq [","]")},oe.prototype.__iterate=function(t,o){return de(this,t,o,!1)},oe.prototype.__iterator=function(t,o){return tt(this,t,o,!1)},a(Ne,pe);function Ne(t){return(t==null?Ie():v(t)?h(t)?t.entrySeq():t:Q(t)).toSetSeq()}Ne.of=function(){return Ne(arguments)},Ne.prototype.toSetSeq=function(){return this},pe.isSeq=Ke,pe.Keyed=be,pe.Set=Ne,pe.Indexed=oe;var lt="@@__IMMUTABLE_SEQ__@@";pe.prototype[lt]=!0,a(_e,oe);function _e(t){this._array=t,this.size=t.length}_e.prototype.get=function(t,o){return this.has(t)?this._array[N(this,t)]:o},_e.prototype.__iterate=function(t,o){for(var u=this._array,f=u.length-1,p=0;p<=f;p++)if(t(u[o?f-p:p],p,this)===!1)return p+1;return p},_e.prototype.__iterator=function(t,o){var u=this._array,f=u.length-1,p=0;return new Z(function(){return p>f?me():ae(t,p,u[o?f-p++:p++])})},a(ke,be);function ke(t){var o=Object.keys(t);this._object=t,this._keys=o,this.size=o.length}ke.prototype.get=function(t,o){return o!==void 0&&!this.has(t)?o:this._object[t]},ke.prototype.has=function(t){return this._object.hasOwnProperty(t)},ke.prototype.__iterate=function(t,o){for(var u=this._object,f=this._keys,p=f.length-1,g=0;g<=p;g++){var _=f[o?p-g:g];if(t(u[_],_,this)===!1)return g+1}return g},ke.prototype.__iterator=function(t,o){var u=this._object,f=this._keys,p=f.length-1,g=0;return new Z(function(){var _=f[o?p-g:g];return g++>p?me():ae(t,_,u[_])})},ke.prototype[C]=!0,a(qe,oe);function qe(t){this._iterable=t,this.size=t.length||t.size}qe.prototype.__iterateUncached=function(t,o){if(o)return this.cacheResult().__iterate(t,o);var u=this._iterable,f=ze(u),p=0;if(Ue(f))for(var g;!(g=f.next()).done&&t(g.value,p++,this)!==!1;);return p},qe.prototype.__iteratorUncached=function(t,o){if(o)return this.cacheResult().__iterator(t,o);var u=this._iterable,f=ze(u);if(!Ue(f))return new Z(me);var p=0;return new Z(function(){var g=f.next();return g.done?g:ae(t,p++,g.value)})},a(De,oe);function De(t){this._iterator=t,this._iteratorCache=[]}De.prototype.__iterateUncached=function(t,o){if(o)return this.cacheResult().__iterate(t,o);for(var u=this._iterator,f=this._iteratorCache,p=0;p<f.length;)if(t(f[p],p++,this)===!1)return p;for(var g;!(g=u.next()).done;){var _=g.value;if(f[p]=_,t(_,p++,this)===!1)break}return p},De.prototype.__iteratorUncached=function(t,o){if(o)return this.cacheResult().__iterator(t,o);var u=this._iterator,f=this._iteratorCache,p=0;return new Z(function(){if(p>=f.length){var g=u.next();if(g.done)return g;f[p]=g.value}return ae(t,p,f[p++])})};function Ke(t){return!!(t&&t[lt])}var xe;function Ie(){return xe||(xe=new _e([]))}function vt(t){var o=Array.isArray(t)?new _e(t).fromEntrySeq():Ue(t)?new De(t).fromEntrySeq():ft(t)?new qe(t).fromEntrySeq():typeof t=="object"?new ke(t):void 0;if(!o)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return o}function Q(t){var o=H(t);if(!o)throw new TypeError("Expected Array or iterable object of values: "+t);return o}function se(t){var o=H(t)||typeof t=="object"&&new ke(t);if(!o)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return o}function H(t){return Je(t)?new _e(t):Ue(t)?new De(t):ft(t)?new qe(t):void 0}function de(t,o,u,f){var p=t._cache;if(p){for(var g=p.length-1,_=0;_<=g;_++){var D=p[u?g-_:_];if(o(D[1],f?D[0]:_,t)===!1)return _+1}return _}return t.__iterateUncached(o,u)}function tt(t,o,u,f){var p=t._cache;if(p){var g=p.length-1,_=0;return new Z(function(){var D=p[u?g-_:_];return _++>g?me():ae(o,f?D[0]:_-1,D[1])})}return t.__iteratorUncached(o,u)}function He(t,o){return o?ce(o,t,"",{"":t}):q(t)}function ce(t,o,u,f){return Array.isArray(o)?t.call(f,u,oe(o).map(function(p,g){return ce(t,p,g,o)})):Xe(o)?t.call(f,u,be(o).map(function(p,g){return ce(t,p,g,o)})):o}function q(t){return Array.isArray(t)?oe(t).map(q).toList():Xe(t)?be(t).map(q).toMap():t}function Xe(t){return t&&(t.constructor===Object||t.constructor===void 0)}function Ee(t,o){if(t===o||t!==t&&o!==o)return!0;if(!t||!o)return!1;if(typeof t.valueOf=="function"&&typeof o.valueOf=="function"){if(t=t.valueOf(),o=o.valueOf(),t===o||t!==t&&o!==o)return!0;if(!t||!o)return!1}return!!(typeof t.equals=="function"&&typeof o.equals=="function"&&t.equals(o))}function rr(t,o){if(t===o)return!0;if(!v(o)||t.size!==void 0&&o.size!==void 0&&t.size!==o.size||t.__hash!==void 0&&o.__hash!==void 0&&t.__hash!==o.__hash||h(t)!==h(o)||y(t)!==y(o)||d(t)!==d(o))return!1;if(t.size===0&&o.size===0)return!0;var u=!w(t);if(d(t)){var f=t.entries();return o.every(function(b,x){var K=f.next().value;return K&&Ee(K[1],b)&&(u||Ee(K[0],x))})&&f.next().done}var p=!1;if(t.size===void 0)if(o.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{p=!0;var g=t;t=o,o=g}var _=!0,D=o.__iterate(function(b,x){if(u?!t.has(b):p?!Ee(b,t.get(x,M)):!Ee(t.get(x,M),b))return _=!1,!1});return _&&t.size===D}a(Re,oe);function Re(t,o){if(!(this instanceof Re))return new Re(t,o);if(this._value=t,this.size=o===void 0?1/0:Math.max(0,o),this.size===0){if(Jn)return Jn;Jn=this}}Re.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Re.prototype.get=function(t,o){return this.has(t)?this._value:o},Re.prototype.includes=function(t){return Ee(this._value,t)},Re.prototype.slice=function(t,o){var u=this.size;return V(t,o,u)?this:new Re(this._value,W(o,u)-G(t,u))},Re.prototype.reverse=function(){return this},Re.prototype.indexOf=function(t){return Ee(this._value,t)?0:-1},Re.prototype.lastIndexOf=function(t){return Ee(this._value,t)?this.size:-1},Re.prototype.__iterate=function(t,o){for(var u=0;u<this.size;u++)if(t(this._value,u,this)===!1)return u+1;return u},Re.prototype.__iterator=function(t,o){var u=this,f=0;return new Z(function(){return f<u.size?ae(t,f++,u._value):me()})},Re.prototype.equals=function(t){return t instanceof Re?Ee(this._value,t._value):rr(t)};var Jn;function rn(t,o){if(!t)throw new Error(o)}a(Le,oe);function Le(t,o,u){if(!(this instanceof Le))return new Le(t,o,u);if(rn(u!==0,"Cannot step a Range by 0"),t=t||0,o===void 0&&(o=1/0),u=u===void 0?1:Math.abs(u),o<t&&(u=-u),this._start=t,this._end=o,this._step=u,this.size=Math.max(0,Math.ceil((o-t)/u-1)+1),this.size===0){if(Xn)return Xn;Xn=this}}Le.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Le.prototype.get=function(t,o){return this.has(t)?this._start+N(this,t)*this._step:o},Le.prototype.includes=function(t){var o=(t-this._start)/this._step;return o>=0&&o<this.size&&o===Math.floor(o)},Le.prototype.slice=function(t,o){return V(t,o,this.size)?this:(t=G(t,this.size),o=W(o,this.size),o<=t?new Le(0,0):new Le(this.get(t,this._end),this.get(o,this._end),this._step))},Le.prototype.indexOf=function(t){var o=t-this._start;if(o%this._step===0){var u=o/this._step;if(u>=0&&u<this.size)return u}return-1},Le.prototype.lastIndexOf=function(t){return this.indexOf(t)},Le.prototype.__iterate=function(t,o){for(var u=this.size-1,f=this._step,p=o?this._start+u*f:this._start,g=0;g<=u;g++){if(t(p,g,this)===!1)return g+1;p+=o?-f:f}return g},Le.prototype.__iterator=function(t,o){var u=this.size-1,f=this._step,p=o?this._start+u*f:this._start,g=0;return new Z(function(){var _=p;return p+=o?-f:f,g>u?me():ae(t,g++,_)})},Le.prototype.equals=function(t){return t instanceof Le?this._start===t._start&&this._end===t._end&&this._step===t._step:rr(this,t)};var Xn;a(Kt,i);function Kt(){throw TypeError("Abstract")}a(Dr,Kt);function Dr(){}a(nr,Kt);function nr(){}a(nn,Kt);function nn(){}Kt.Keyed=Dr,Kt.Indexed=nr,Kt.Set=nn;var br=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(o,u){o=o|0,u=u|0;var f=o&65535,p=u&65535;return f*p+((o>>>16)*p+f*(u>>>16)<<16>>>0)|0};function Yn(t){return t>>>1&1073741824|t&3221225471}function Ye(t){if(t===!1||t===null||t===void 0||typeof t.valueOf=="function"&&(t=t.valueOf(),t===!1||t===null||t===void 0))return 0;if(t===!0)return 1;var o=typeof t;if(o==="number"){var u=t|0;for(u!==t&&(u^=t*4294967295);t>4294967295;)t/=4294967295,u^=t;return Yn(u)}if(o==="string")return t.length>jf?Hf(t):Zn(t);if(typeof t.hashCode=="function")return t.hashCode();if(o==="object")return Vf(t);if(typeof t.toString=="function")return Zn(t.toString());throw new Error("Value type "+o+" cannot be hashed.")}function Hf(t){var o=ni[t];return o===void 0&&(o=Zn(t),ri===Gf&&(ri=0,ni={}),ri++,ni[t]=o),o}function Zn(t){for(var o=0,u=0;u<t.length;u++)o=31*o+t.charCodeAt(u)|0;return Yn(o)}function Vf(t){var o;if(Qn&&(o=ei.get(t),o!==void 0)||(o=t[Vt],o!==void 0)||!La&&(o=t.propertyIsEnumerable&&t.propertyIsEnumerable[Vt],o!==void 0||(o=Wf(t),o!==void 0)))return o;if(o=++ti,ti&1073741824&&(ti=0),Qn)ei.set(t,o);else{if(Ra!==void 0&&Ra(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(La)Object.defineProperty(t,Vt,{enumerable:!1,configurable:!1,writable:!1,value:o});else if(t.propertyIsEnumerable!==void 0&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Vt]=o;else if(t.nodeType!==void 0)t[Vt]=o;else throw new Error("Unable to set a non-enumerable property on object.")}return o}var Ra=Object.isExtensible,La=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Wf(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Qn=typeof WeakMap=="function",ei;Qn&&(ei=new WeakMap);var ti=0,Vt="__immutablehash__";typeof Symbol=="function"&&(Vt=Symbol(Vt));var jf=16,Gf=255,ri=0,ni={};function Ze(t){rn(t!==1/0,"Cannot perform this action with an infinite size.")}a(fe,Dr);function fe(t){return t==null?pt():ii(t)&&!d(t)?t:pt().withMutations(function(o){var u=s(t);Ze(u.size),u.forEach(function(f,p){return o.set(p,f)})})}fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(t,o){return this._root?this._root.get(0,void 0,t,o):o},fe.prototype.set=function(t,o){return Ua(this,t,o)},fe.prototype.setIn=function(t,o){return this.updateIn(t,M,function(){return o})},fe.prototype.remove=function(t){return Ua(this,t,M)},fe.prototype.deleteIn=function(t){return this.updateIn(t,function(){return M})},fe.prototype.update=function(t,o,u){return arguments.length===1?t(this):this.updateIn([t],o,u)},fe.prototype.updateIn=function(t,o,u){u||(u=o,o=void 0);var f=Wa(this,po(t),o,u);return f===M?void 0:f},fe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):pt()},fe.prototype.merge=function(){return an(this,void 0,arguments)},fe.prototype.mergeWith=function(t){var o=n.call(arguments,1);return an(this,t,o)},fe.prototype.mergeIn=function(t){var o=n.call(arguments,1);return this.updateIn(t,pt(),function(u){return typeof u.merge=="function"?u.merge.apply(u,o):o[o.length-1]})},fe.prototype.mergeDeep=function(){return an(this,qa,arguments)},fe.prototype.mergeDeepWith=function(t){var o=n.call(arguments,1);return an(this,Ha(t),o)},fe.prototype.mergeDeepIn=function(t){var o=n.call(arguments,1);return this.updateIn(t,pt(),function(u){return typeof u.mergeDeep=="function"?u.mergeDeep.apply(u,o):o[o.length-1]})},fe.prototype.sort=function(t){return Oe(fr(this,t))},fe.prototype.sortBy=function(t,o){return Oe(fr(this,o,t))},fe.prototype.withMutations=function(t){var o=this.asMutable();return t(o),o.wasAltered()?o.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new R)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(t,o){return new ai(this,t,o)},fe.prototype.__iterate=function(t,o){var u=this,f=0;return this._root&&this._root.iterate(function(p){return f++,t(p[1],p[0],u)},o),f},fe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?si(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)};function ii(t){return!!(t&&t[$a])}fe.isMap=ii;var $a="@@__IMMUTABLE_MAP__@@",ie=fe.prototype;ie[$a]=!0,ie[T]=ie.remove,ie.removeIn=ie.deleteIn;function Or(t,o){this.ownerID=t,this.entries=o}Or.prototype.get=function(t,o,u,f){for(var p=this.entries,g=0,_=p.length;g<_;g++)if(Ee(u,p[g][0]))return p[g][1];return f},Or.prototype.update=function(t,o,u,f,p,g,_){for(var D=p===M,b=this.entries,x=0,K=b.length;x<K&&!Ee(f,b[x][0]);x++);var A=x<K;if(A?b[x][1]===p:D)return this;if(I(_),(D||!A)&&I(g),!(D&&b.length===1)){if(!A&&!D&&b.length>=el)return Jf(t,b,f,p);var L=t&&t===this.ownerID,J=L?b:$(b);return A?D?x===K-1?J.pop():J[x]=J.pop():J[x]=[f,p]:J.push([f,p]),L?(this.entries=J,this):new Or(t,J)}};function ir(t,o,u){this.ownerID=t,this.bitmap=o,this.nodes=u}ir.prototype.get=function(t,o,u,f){o===void 0&&(o=Ye(u));var p=1<<((t===0?o:o>>>t)&k),g=this.bitmap;return g&p?this.nodes[ja(g&p-1)].get(t+B,o,u,f):f},ir.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=(o===0?u:u>>>o)&k,b=1<<D,x=this.bitmap,K=(x&b)!==0;if(!K&&p===M)return this;var A=ja(x&b-1),L=this.nodes,J=K?L[A]:void 0,te=ui(J,t,o+B,u,f,p,g,_);if(te===J)return this;if(!K&&te&&L.length>=tl)return Yf(t,L,x,D,te);if(K&&!te&&L.length===2&&za(L[A^1]))return L[A^1];if(K&&te&&L.length===1&&za(te))return te;var Ce=t&&t===this.ownerID,ut=K?te?x:x^b:x|b,yt=K?te?Ga(L,A,te,Ce):Qf(L,A,Ce):Zf(L,A,te,Ce);return Ce?(this.bitmap=ut,this.nodes=yt,this):new ir(t,ut,yt)};function Tr(t,o,u){this.ownerID=t,this.count=o,this.nodes=u}Tr.prototype.get=function(t,o,u,f){o===void 0&&(o=Ye(u));var p=(t===0?o:o>>>t)&k,g=this.nodes[p];return g?g.get(t+B,o,u,f):f},Tr.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=(o===0?u:u>>>o)&k,b=p===M,x=this.nodes,K=x[D];if(b&&!K)return this;var A=ui(K,t,o+B,u,f,p,g,_);if(A===K)return this;var L=this.count;if(!K)L++;else if(!A&&(L--,L<rl))return Xf(t,x,L,D);var J=t&&t===this.ownerID,te=Ga(x,D,A,J);return J?(this.count=L,this.nodes=te,this):new Tr(t,L,te)};function ar(t,o,u){this.ownerID=t,this.keyHash=o,this.entries=u}ar.prototype.get=function(t,o,u,f){for(var p=this.entries,g=0,_=p.length;g<_;g++)if(Ee(u,p[g][0]))return p[g][1];return f},ar.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=p===M;if(u!==this.keyHash)return D?this:(I(_),I(g),ci(this,t,o,u,[f,p]));for(var b=this.entries,x=0,K=b.length;x<K&&!Ee(f,b[x][0]);x++);var A=x<K;if(A?b[x][1]===p:D)return this;if(I(_),(D||!A)&&I(g),D&&K===2)return new Dt(t,this.keyHash,b[x^1]);var L=t&&t===this.ownerID,J=L?b:$(b);return A?D?x===K-1?J.pop():J[x]=J.pop():J[x]=[f,p]:J.push([f,p]),L?(this.entries=J,this):new ar(t,this.keyHash,J)};function Dt(t,o,u){this.ownerID=t,this.keyHash=o,this.entry=u}Dt.prototype.get=function(t,o,u,f){return Ee(u,this.entry[0])?this.entry[1]:f},Dt.prototype.update=function(t,o,u,f,p,g,_){var D=p===M,b=Ee(f,this.entry[0]);if(b?p===this.entry[1]:D)return this;if(I(_),D){I(g);return}return b?t&&t===this.ownerID?(this.entry[1]=p,this):new Dt(t,this.keyHash,[f,p]):(I(g),ci(this,t,o,Ye(f),[f,p]))},Or.prototype.iterate=ar.prototype.iterate=function(t,o){for(var u=this.entries,f=0,p=u.length-1;f<=p;f++)if(t(u[o?p-f:f])===!1)return!1},ir.prototype.iterate=Tr.prototype.iterate=function(t,o){for(var u=this.nodes,f=0,p=u.length-1;f<=p;f++){var g=u[o?p-f:f];if(g&&g.iterate(t,o)===!1)return!1}},Dt.prototype.iterate=function(t,o){return t(this.entry)},a(ai,Z);function ai(t,o,u){this._type=o,this._reverse=u,this._stack=t._root&&Fa(t._root)}ai.prototype.next=function(){for(var t=this._type,o=this._stack;o;){var u=o.node,f=o.index++,p;if(u.entry){if(f===0)return oi(t,u.entry)}else if(u.entries){if(p=u.entries.length-1,f<=p)return oi(t,u.entries[this._reverse?p-f:f])}else if(p=u.nodes.length-1,f<=p){var g=u.nodes[this._reverse?p-f:f];if(g){if(g.entry)return oi(t,g.entry);o=this._stack=Fa(g,o)}continue}o=this._stack=this._stack.__prev}return me()};function oi(t,o){return ae(t,o[0],o[1])}function Fa(t,o){return{node:t,index:0,__prev:o}}function si(t,o,u,f){var p=Object.create(ie);return p.size=t,p._root=o,p.__ownerID=u,p.__hash=f,p.__altered=!1,p}var Pa;function pt(){return Pa||(Pa=si(0))}function Ua(t,o,u){var f,p;if(t._root){var g=ue(X),_=ue(j);if(f=ui(t._root,t.__ownerID,0,void 0,o,u,g,_),!_.value)return t;p=t.size+(g.value?u===M?-1:1:0)}else{if(u===M)return t;p=1,f=new Or(t.__ownerID,[[o,u]])}return t.__ownerID?(t.size=p,t._root=f,t.__hash=void 0,t.__altered=!0,t):f?si(p,f):pt()}function ui(t,o,u,f,p,g,_,D){return t?t.update(o,u,f,p,g,_,D):g===M?t:(I(D),I(_),new Dt(o,f,[p,g]))}function za(t){return t.constructor===Dt||t.constructor===ar}function ci(t,o,u,f,p){if(t.keyHash===f)return new ar(o,f,[t.entry,p]);var g=(u===0?t.keyHash:t.keyHash>>>u)&k,_=(u===0?f:f>>>u)&k,D,b=g===_?[ci(t,o,u+B,f,p)]:(D=new Dt(o,f,p),g<_?[t,D]:[D,t]);return new ir(o,1<<g|1<<_,b)}function Jf(t,o,u,f){t||(t=new R);for(var p=new Dt(t,Ye(u),[u,f]),g=0;g<o.length;g++){var _=o[g];p=p.update(t,0,void 0,_[0],_[1])}return p}function Xf(t,o,u,f){for(var p=0,g=0,_=new Array(u),D=0,b=1,x=o.length;D<x;D++,b<<=1){var K=o[D];K!==void 0&&D!==f&&(p|=b,_[g++]=K)}return new ir(t,p,_)}function Yf(t,o,u,f,p){for(var g=0,_=new Array(O),D=0;u!==0;D++,u>>>=1)_[D]=u&1?o[g++]:void 0;return _[f]=p,new Tr(t,g+1,_)}function an(t,o,u){for(var f=[],p=0;p<u.length;p++){var g=u[p],_=s(g);v(g)||(_=_.map(function(D){return He(D)})),f.push(_)}return Va(t,o,f)}function qa(t,o,u){return t&&t.mergeDeep&&v(o)?t.mergeDeep(o):Ee(t,o)?t:o}function Ha(t){return function(o,u,f){if(o&&o.mergeDeepWith&&v(u))return o.mergeDeepWith(t,u);var p=t(o,u,f);return Ee(o,p)?o:p}}function Va(t,o,u){return u=u.filter(function(f){return f.size!==0}),u.length===0?t:t.size===0&&!t.__ownerID&&u.length===1?t.constructor(u[0]):t.withMutations(function(f){for(var p=o?function(_,D){f.update(D,M,function(b){return b===M?_:o(b,_,D)})}:function(_,D){f.set(D,_)},g=0;g<u.length;g++)u[g].forEach(p)})}function Wa(t,o,u,f){var p=t===M,g=o.next();if(g.done){var _=p?u:t,D=f(_);return D===_?t:D}rn(p||t&&t.set,"invalid keyPath");var b=g.value,x=p?M:t.get(b,M),K=Wa(x,o,u,f);return K===x?t:K===M?t.remove(b):(p?pt():t).set(b,K)}function ja(t){return t=t-(t>>1&1431655765),t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t=t+(t>>8),t=t+(t>>16),t&127}function Ga(t,o,u,f){var p=f?t:$(t);return p[o]=u,p}function Zf(t,o,u,f){var p=t.length+1;if(f&&o+1===p)return t[o]=u,t;for(var g=new Array(p),_=0,D=0;D<p;D++)D===o?(g[D]=u,_=-1):g[D]=t[D+_];return g}function Qf(t,o,u){var f=t.length-1;if(u&&o===f)return t.pop(),t;for(var p=new Array(f),g=0,_=0;_<f;_++)_===o&&(g=1),p[_]=t[_+g];return p}var el=O/4,tl=O/2,rl=O/4;a(Se,nr);function Se(t){var o=fi();if(t==null)return o;if(Ja(t))return t;var u=c(t),f=u.size;return f===0?o:(Ze(f),f>0&&f<O?xr(0,f,B,null,new Mt(u.toArray())):o.withMutations(function(p){p.setSize(f),u.forEach(function(g,_){return p.set(_,g)})}))}Se.of=function(){return this(arguments)},Se.prototype.toString=function(){return this.__toString("List [","]")},Se.prototype.get=function(t,o){if(t=N(this,t),t>=0&&t<this.size){t+=this._origin;var u=Qa(this,t);return u&&u.array[t&k]}return o},Se.prototype.set=function(t,o){return nl(this,t,o)},Se.prototype.remove=function(t){return this.has(t)?t===0?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Se.prototype.insert=function(t,o){return this.splice(t,0,o)},Se.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=B,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):fi()},Se.prototype.push=function(){var t=arguments,o=this.size;return this.withMutations(function(u){At(u,0,o+t.length);for(var f=0;f<t.length;f++)u.set(o+f,t[f])})},Se.prototype.pop=function(){return At(this,0,-1)},Se.prototype.unshift=function(){var t=arguments;return this.withMutations(function(o){At(o,-t.length);for(var u=0;u<t.length;u++)o.set(u,t[u])})},Se.prototype.shift=function(){return At(this,1)},Se.prototype.merge=function(){return on(this,void 0,arguments)},Se.prototype.mergeWith=function(t){var o=n.call(arguments,1);return on(this,t,o)},Se.prototype.mergeDeep=function(){return on(this,qa,arguments)},Se.prototype.mergeDeepWith=function(t){var o=n.call(arguments,1);return on(this,Ha(t),o)},Se.prototype.setSize=function(t){return At(this,0,t)},Se.prototype.slice=function(t,o){var u=this.size;return V(t,o,u)?this:At(this,G(t,u),W(o,u))},Se.prototype.__iterator=function(t,o){var u=0,f=Ya(this,o);return new Z(function(){var p=f();return p===kr?me():ae(t,u++,p)})},Se.prototype.__iterate=function(t,o){for(var u=0,f=Ya(this,o),p;(p=f())!==kr&&t(p,u++,this)!==!1;);return u},Se.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?xr(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)};function Ja(t){return!!(t&&t[Xa])}Se.isList=Ja;var Xa="@@__IMMUTABLE_LIST__@@",Pe=Se.prototype;Pe[Xa]=!0,Pe[T]=Pe.remove,Pe.setIn=ie.setIn,Pe.deleteIn=Pe.removeIn=ie.removeIn,Pe.update=ie.update,Pe.updateIn=ie.updateIn,Pe.mergeIn=ie.mergeIn,Pe.mergeDeepIn=ie.mergeDeepIn,Pe.withMutations=ie.withMutations,Pe.asMutable=ie.asMutable,Pe.asImmutable=ie.asImmutable,Pe.wasAltered=ie.wasAltered;function Mt(t,o){this.array=t,this.ownerID=o}Mt.prototype.removeBefore=function(t,o,u){if(u===o?1<<o:this.array.length===0)return this;var f=u>>>o&k;if(f>=this.array.length)return new Mt([],t);var p=f===0,g;if(o>0){var _=this.array[f];if(g=_&&_.removeBefore(t,o-B,u),g===_&&p)return this}if(p&&!g)return this;var D=or(this,t);if(!p)for(var b=0;b<f;b++)D.array[b]=void 0;return g&&(D.array[f]=g),D},Mt.prototype.removeAfter=function(t,o,u){if(u===(o?1<<o:0)||this.array.length===0)return this;var f=u-1>>>o&k;if(f>=this.array.length)return this;var p;if(o>0){var g=this.array[f];if(p=g&&g.removeAfter(t,o-B,u),p===g&&f===this.array.length-1)return this}var _=or(this,t);return _.array.splice(f+1),p&&(_.array[f]=p),_};var kr={};function Ya(t,o){var u=t._origin,f=t._capacity,p=Br(f),g=t._tail;return _(t._root,t._level,0);function _(x,K,A){return K===0?D(x,A):b(x,K,A)}function D(x,K){var A=K===p?g&&g.array:x&&x.array,L=K>u?0:u-K,J=f-K;return J>O&&(J=O),function(){if(L===J)return kr;var te=o?--J:L++;return A&&A[te]}}function b(x,K,A){var L,J=x&&x.array,te=A>u?0:u-A>>K,Ce=(f-A>>K)+1;return Ce>O&&(Ce=O),function(){do{if(L){var ut=L();if(ut!==kr)return ut;L=null}if(te===Ce)return kr;var yt=o?--Ce:te++;L=_(J&&J[yt],K-B,A+(yt<<K))}while(!0)}}}function xr(t,o,u,f,p,g,_){var D=Object.create(Pe);return D.size=o-t,D._origin=t,D._capacity=o,D._level=u,D._root=f,D._tail=p,D.__ownerID=g,D.__hash=_,D.__altered=!1,D}var Za;function fi(){return Za||(Za=xr(0,0,B))}function nl(t,o,u){if(o=N(t,o),o!==o)return t;if(o>=t.size||o<0)return t.withMutations(function(_){o<0?At(_,o).set(0,u):At(_,0,o+1).set(o,u)});o+=t._origin;var f=t._tail,p=t._root,g=ue(j);return o>=Br(t._capacity)?f=li(f,t.__ownerID,0,o,u,g):p=li(p,t.__ownerID,t._level,o,u,g),g.value?t.__ownerID?(t._root=p,t._tail=f,t.__hash=void 0,t.__altered=!0,t):xr(t._origin,t._capacity,t._level,p,f):t}function li(t,o,u,f,p,g){var _=f>>>u&k,D=t&&_<t.array.length;if(!D&&p===void 0)return t;var b;if(u>0){var x=t&&t.array[_],K=li(x,o,u-B,f,p,g);return K===x?t:(b=or(t,o),b.array[_]=K,b)}return D&&t.array[_]===p?t:(I(g),b=or(t,o),p===void 0&&_===b.array.length-1?b.array.pop():b.array[_]=p,b)}function or(t,o){return o&&t&&o===t.ownerID?t:new Mt(t?t.array.slice():[],o)}function Qa(t,o){if(o>=Br(t._capacity))return t._tail;if(o<1<<t._level+B){for(var u=t._root,f=t._level;u&&f>0;)u=u.array[o>>>f&k],f-=B;return u}}function At(t,o,u){o!==void 0&&(o=o|0),u!==void 0&&(u=u|0);var f=t.__ownerID||new R,p=t._origin,g=t._capacity,_=p+o,D=u===void 0?g:u<0?g+u:p+u;if(_===p&&D===g)return t;if(_>=D)return t.clear();for(var b=t._level,x=t._root,K=0;_+K<0;)x=new Mt(x&&x.array.length?[void 0,x]:[],f),b+=B,K+=1<<b;K&&(_+=K,p+=K,D+=K,g+=K);for(var A=Br(g),L=Br(D);L>=1<<b+B;)x=new Mt(x&&x.array.length?[x]:[],f),b+=B;var J=t._tail,te=L<A?Qa(t,D-1):L>A?new Mt([],f):J;if(J&&L>A&&_<g&&J.array.length){x=or(x,f);for(var Ce=x,ut=b;ut>B;ut-=B){var yt=A>>>ut&k;Ce=Ce.array[yt]=or(Ce.array[yt],f)}Ce.array[A>>>B&k]=J}if(D<g&&(te=te&&te.removeAfter(f,0,D)),_>=L)_-=L,D-=L,b=B,x=null,te=te&&te.removeBefore(f,0,_);else if(_>p||L<A){for(K=0;x;){var pn=_>>>b&k;if(pn!==L>>>b&k)break;pn&&(K+=(1<<b)*pn),b-=B,x=x.array[pn]}x&&_>p&&(x=x.removeBefore(f,b,_-K)),x&&L<A&&(x=x.removeAfter(f,b,L-K)),K&&(_-=K,D-=K)}return t.__ownerID?(t.size=D-_,t._origin=_,t._capacity=D,t._level=b,t._root=x,t._tail=te,t.__hash=void 0,t.__altered=!0,t):xr(_,D,b,x,te)}function on(t,o,u){for(var f=[],p=0,g=0;g<u.length;g++){var _=u[g],D=c(_);D.size>p&&(p=D.size),v(_)||(D=D.map(function(b){return He(b)})),f.push(D)}return p>t.size&&(t=t.setSize(p)),Va(t,o,f)}function Br(t){return t<O?0:t-1>>>B<<B}a(Oe,fe);function Oe(t){return t==null?sn():eo(t)?t:sn().withMutations(function(o){var u=s(t);Ze(u.size),u.forEach(function(f,p){return o.set(p,f)})})}Oe.of=function(){return this(arguments)},Oe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Oe.prototype.get=function(t,o){var u=this._map.get(t);return u!==void 0?this._list.get(u)[1]:o},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):sn()},Oe.prototype.set=function(t,o){return ro(this,t,o)},Oe.prototype.remove=function(t){return ro(this,t,M)},Oe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Oe.prototype.__iterate=function(t,o){var u=this;return this._list.__iterate(function(f){return f&&t(f[1],f[0],u)},o)},Oe.prototype.__iterator=function(t,o){return this._list.fromEntrySeq().__iterator(t,o)},Oe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map.__ensureOwner(t),u=this._list.__ensureOwner(t);return t?vi(o,u,t,this.__hash):(this.__ownerID=t,this._map=o,this._list=u,this)};function eo(t){return ii(t)&&d(t)}Oe.isOrderedMap=eo,Oe.prototype[C]=!0,Oe.prototype[T]=Oe.prototype.remove;function vi(t,o,u,f){var p=Object.create(Oe.prototype);return p.size=t?t.size:0,p._map=t,p._list=o,p.__ownerID=u,p.__hash=f,p}var to;function sn(){return to||(to=vi(pt(),fi()))}function ro(t,o,u){var f=t._map,p=t._list,g=f.get(o),_=g!==void 0,D,b;if(u===M){if(!_)return t;p.size>=O&&p.size>=f.size*2?(b=p.filter(function(x,K){return x!==void 0&&g!==K}),D=b.toKeyedSeq().map(function(x){return x[0]}).flip().toMap(),t.__ownerID&&(D.__ownerID=b.__ownerID=t.__ownerID)):(D=f.remove(o),b=g===p.size-1?p.pop():p.set(g,void 0))}else if(_){if(u===p.get(g)[1])return t;D=f,b=p.set(g,[o,u])}else D=f.set(o,p.size),b=p.set(p.size,[o,u]);return t.__ownerID?(t.size=D.size,t._map=D,t._list=b,t.__hash=void 0,t):vi(D,b)}a(rt,be);function rt(t,o){this._iter=t,this._useKeys=o,this.size=t.size}rt.prototype.get=function(t,o){return this._iter.get(t,o)},rt.prototype.has=function(t){return this._iter.has(t)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var t=this,o=pi(this,!0);return this._useKeys||(o.valueSeq=function(){return t._iter.toSeq().reverse()}),o},rt.prototype.map=function(t,o){var u=this,f=io(this,t,o);return this._useKeys||(f.valueSeq=function(){return u._iter.toSeq().map(t,o)}),f},rt.prototype.__iterate=function(t,o){var u=this,f;return this._iter.__iterate(this._useKeys?function(p,g){return t(p,g,u)}:(f=o?fo(this):0,function(p){return t(p,o?--f:f++,u)}),o)},rt.prototype.__iterator=function(t,o){if(this._useKeys)return this._iter.__iterator(t,o);var u=this._iter.__iterator(Y,o),f=o?fo(this):0;return new Z(function(){var p=u.next();return p.done?p:ae(t,o?--f:f++,p.value,p)})},rt.prototype[C]=!0,a(sr,oe);function sr(t){this._iter=t,this.size=t.size}sr.prototype.includes=function(t){return this._iter.includes(t)},sr.prototype.__iterate=function(t,o){var u=this,f=0;return this._iter.__iterate(function(p){return t(p,f++,u)},o)},sr.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o),f=0;return new Z(function(){var p=u.next();return p.done?p:ae(t,f++,p.value,p)})},a(ur,Ne);function ur(t){this._iter=t,this.size=t.size}ur.prototype.has=function(t){return this._iter.includes(t)},ur.prototype.__iterate=function(t,o){var u=this;return this._iter.__iterate(function(f){return t(f,f,u)},o)},ur.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o);return new Z(function(){var f=u.next();return f.done?f:ae(t,f.value,f.value,f)})},a(cr,be);function cr(t){this._iter=t,this.size=t.size}cr.prototype.entrySeq=function(){return this._iter.toSeq()},cr.prototype.__iterate=function(t,o){var u=this;return this._iter.__iterate(function(f){if(f){co(f);var p=v(f);return t(p?f.get(1):f[1],p?f.get(0):f[0],u)}},o)},cr.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o);return new Z(function(){for(;;){var f=u.next();if(f.done)return f;var p=f.value;if(p){co(p);var g=v(p);return ae(t,g?p.get(0):p[0],g?p.get(1):p[1],f)}}})},sr.prototype.cacheResult=rt.prototype.cacheResult=ur.prototype.cacheResult=cr.prototype.cacheResult=gi;function no(t){var o=dt(t);return o._iter=t,o.size=t.size,o.flip=function(){return t},o.reverse=function(){var u=t.reverse.apply(this);return u.flip=function(){return t.reverse()},u},o.has=function(u){return t.includes(u)},o.includes=function(u){return t.has(u)},o.cacheResult=gi,o.__iterateUncached=function(u,f){var p=this;return t.__iterate(function(g,_){return u(_,g,p)!==!1},f)},o.__iteratorUncached=function(u,f){if(u===ee){var p=t.__iterator(u,f);return new Z(function(){var g=p.next();if(!g.done){var _=g.value[0];g.value[0]=g.value[1],g.value[1]=_}return g})}return t.__iterator(u===Y?ne:Y,f)},o}function io(t,o,u){var f=dt(t);return f.size=t.size,f.has=function(p){return t.has(p)},f.get=function(p,g){var _=t.get(p,M);return _===M?g:o.call(u,_,p,t)},f.__iterateUncached=function(p,g){var _=this;return t.__iterate(function(D,b,x){return p(o.call(u,D,b,x),b,_)!==!1},g)},f.__iteratorUncached=function(p,g){var _=t.__iterator(ee,g);return new Z(function(){var D=_.next();if(D.done)return D;var b=D.value,x=b[0];return ae(p,x,o.call(u,b[1],x,t),D)})},f}function pi(t,o){var u=dt(t);return u._iter=t,u.size=t.size,u.reverse=function(){return t},t.flip&&(u.flip=function(){var f=no(t);return f.reverse=function(){return t.flip()},f}),u.get=function(f,p){return t.get(o?f:-1-f,p)},u.has=function(f){return t.has(o?f:-1-f)},u.includes=function(f){return t.includes(f)},u.cacheResult=gi,u.__iterate=function(f,p){var g=this;return t.__iterate(function(_,D){return f(_,D,g)},!p)},u.__iterator=function(f,p){return t.__iterator(f,!p)},u}function ao(t,o,u,f){var p=dt(t);return f&&(p.has=function(g){var _=t.get(g,M);return _!==M&&!!o.call(u,_,g,t)},p.get=function(g,_){var D=t.get(g,M);return D!==M&&o.call(u,D,g,t)?D:_}),p.__iterateUncached=function(g,_){var D=this,b=0;return t.__iterate(function(x,K,A){if(o.call(u,x,K,A))return b++,g(x,f?K:b-1,D)},_),b},p.__iteratorUncached=function(g,_){var D=t.__iterator(ee,_),b=0;return new Z(function(){for(;;){var x=D.next();if(x.done)return x;var K=x.value,A=K[0],L=K[1];if(o.call(u,L,A,t))return ae(g,f?A:b++,L,x)}})},p}function il(t,o,u){var f=fe().asMutable();return t.__iterate(function(p,g){f.update(o.call(u,p,g,t),0,function(_){return _+1})}),f.asImmutable()}function al(t,o,u){var f=h(t),p=(d(t)?Oe():fe()).asMutable();t.__iterate(function(_,D){p.update(o.call(u,_,D,t),function(b){return b=b||[],b.push(f?[D,_]:_),b})});var g=lo(t);return p.map(function(_){return ge(t,g(_))})}function di(t,o,u,f){var p=t.size;if(o!==void 0&&(o=o|0),u!==void 0&&(u=u|0),V(o,u,p))return t;var g=G(o,p),_=W(u,p);if(g!==g||_!==_)return di(t.toSeq().cacheResult(),o,u,f);var D=_-g,b;D===D&&(b=D<0?0:D);var x=dt(t);return x.size=b===0?b:t.size&&b||void 0,!f&&Ke(t)&&b>=0&&(x.get=function(K,A){return K=N(this,K),K>=0&&K<b?t.get(K+g,A):A}),x.__iterateUncached=function(K,A){var L=this;if(b===0)return 0;if(A)return this.cacheResult().__iterate(K,A);var J=0,te=!0,Ce=0;return t.__iterate(function(ut,yt){if(!(te&&(te=J++<g)))return Ce++,K(ut,f?yt:Ce-1,L)!==!1&&Ce!==b}),Ce},x.__iteratorUncached=function(K,A){if(b!==0&&A)return this.cacheResult().__iterator(K,A);var L=b!==0&&t.__iterator(K,A),J=0,te=0;return new Z(function(){for(;J++<g;)L.next();if(++te>b)return me();var Ce=L.next();return f||K===Y?Ce:K===ne?ae(K,te-1,void 0,Ce):ae(K,te-1,Ce.value[1],Ce)})},x}function ol(t,o,u){var f=dt(t);return f.__iterateUncached=function(p,g){var _=this;if(g)return this.cacheResult().__iterate(p,g);var D=0;return t.__iterate(function(b,x,K){return o.call(u,b,x,K)&&++D&&p(b,x,_)}),D},f.__iteratorUncached=function(p,g){var _=this;if(g)return this.cacheResult().__iterator(p,g);var D=t.__iterator(ee,g),b=!0;return new Z(function(){if(!b)return me();var x=D.next();if(x.done)return x;var K=x.value,A=K[0],L=K[1];return o.call(u,L,A,_)?p===ee?x:ae(p,A,L,x):(b=!1,me())})},f}function oo(t,o,u,f){var p=dt(t);return p.__iterateUncached=function(g,_){var D=this;if(_)return this.cacheResult().__iterate(g,_);var b=!0,x=0;return t.__iterate(function(K,A,L){if(!(b&&(b=o.call(u,K,A,L))))return x++,g(K,f?A:x-1,D)}),x},p.__iteratorUncached=function(g,_){var D=this;if(_)return this.cacheResult().__iterator(g,_);var b=t.__iterator(ee,_),x=!0,K=0;return new Z(function(){var A,L,J;do{if(A=b.next(),A.done)return f||g===Y?A:g===ne?ae(g,K++,void 0,A):ae(g,K++,A.value[1],A);var te=A.value;L=te[0],J=te[1],x&&(x=o.call(u,J,L,D))}while(x);return g===ee?A:ae(g,L,J,A)})},p}function sl(t,o){var u=h(t),f=[t].concat(o).map(function(_){return v(_)?u&&(_=s(_)):_=u?vt(_):Q(Array.isArray(_)?_:[_]),_}).filter(function(_){return _.size!==0});if(f.length===0)return t;if(f.length===1){var p=f[0];if(p===t||u&&h(p)||y(t)&&y(p))return p}var g=new _e(f);return u?g=g.toKeyedSeq():y(t)||(g=g.toSetSeq()),g=g.flatten(!0),g.size=f.reduce(function(_,D){if(_!==void 0){var b=D.size;if(b!==void 0)return _+b}},0),g}function so(t,o,u){var f=dt(t);return f.__iterateUncached=function(p,g){var _=0,D=!1;function b(x,K){var A=this;x.__iterate(function(L,J){return(!o||K<o)&&v(L)?b(L,K+1):p(L,u?J:_++,A)===!1&&(D=!0),!D},g)}return b(t,0),_},f.__iteratorUncached=function(p,g){var _=t.__iterator(p,g),D=[],b=0;return new Z(function(){for(;_;){var x=_.next();if(x.done!==!1){_=D.pop();continue}var K=x.value;if(p===ee&&(K=K[1]),(!o||D.length<o)&&v(K))D.push(_),_=K.__iterator(p,g);else return u?x:ae(p,b++,K,x)}return me()})},f}function ul(t,o,u){var f=lo(t);return t.toSeq().map(function(p,g){return f(o.call(u,p,g,t))}).flatten(!0)}function cl(t,o){var u=dt(t);return u.size=t.size&&t.size*2-1,u.__iterateUncached=function(f,p){var g=this,_=0;return t.__iterate(function(D,b){return(!_||f(o,_++,g)!==!1)&&f(D,_++,g)!==!1},p),_},u.__iteratorUncached=function(f,p){var g=t.__iterator(Y,p),_=0,D;return new Z(function(){return(!D||_%2)&&(D=g.next(),D.done)?D:_%2?ae(f,_++,o):ae(f,_++,D.value,D)})},u}function fr(t,o,u){o||(o=vo);var f=h(t),p=0,g=t.toSeq().map(function(_,D){return[D,_,p++,u?u(_,D,t):_]}).toArray();return g.sort(function(_,D){return o(_[3],D[3])||_[2]-D[2]}).forEach(f?function(_,D){g[D].length=2}:function(_,D){g[D]=_[1]}),f?be(g):y(t)?oe(g):Ne(g)}function un(t,o,u){if(o||(o=vo),u){var f=t.toSeq().map(function(p,g){return[p,u(p,g,t)]}).reduce(function(p,g){return uo(o,p[1],g[1])?g:p});return f&&f[0]}else return t.reduce(function(p,g){return uo(o,p,g)?g:p})}function uo(t,o,u){var f=t(u,o);return f===0&&u!==o&&(u==null||u!==u)||f>0}function hi(t,o,u){var f=dt(t);return f.size=new _e(u).map(function(p){return p.size}).min(),f.__iterate=function(p,g){for(var _=this.__iterator(Y,g),D,b=0;!(D=_.next()).done&&p(D.value,b++,this)!==!1;);return b},f.__iteratorUncached=function(p,g){var _=u.map(function(x){return x=i(x),ze(g?x.reverse():x)}),D=0,b=!1;return new Z(function(){var x;return b||(x=_.map(function(K){return K.next()}),b=x.some(function(K){return K.done})),b?me():ae(p,D++,o.apply(null,x.map(function(K){return K.value})))})},f}function ge(t,o){return Ke(t)?o:t.constructor(o)}function co(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function fo(t){return Ze(t.size),F(t)}function lo(t){return h(t)?s:y(t)?c:l}function dt(t){return Object.create((h(t)?be:y(t)?oe:Ne).prototype)}function gi(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):pe.prototype.cacheResult.call(this)}function vo(t,o){return t>o?1:t<o?-1:0}function po(t){var o=ze(t);if(!o){if(!Je(t))throw new TypeError("Expected iterable or array-like: "+t);o=ze(i(t))}return o}a(Qe,Dr);function Qe(t,o){var u,f=function(_){if(_ instanceof f)return _;if(!(this instanceof f))return new f(_);if(!u){u=!0;var D=Object.keys(t);fl(p,D),p.size=D.length,p._name=o,p._keys=D,p._defaultValues=t}this._map=fe(_)},p=f.prototype=Object.create(Me);return p.constructor=f,f}Qe.prototype.toString=function(){return this.__toString(ho(this)+" {","}")},Qe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Qe.prototype.get=function(t,o){if(!this.has(t))return o;var u=this._defaultValues[t];return this._map?this._map.get(t,u):u},Qe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=cn(this,pt()))},Qe.prototype.set=function(t,o){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+ho(this));var u=this._map&&this._map.set(t,o);return this.__ownerID||u===this._map?this:cn(this,u)},Qe.prototype.remove=function(t){if(!this.has(t))return this;var o=this._map&&this._map.remove(t);return this.__ownerID||o===this._map?this:cn(this,o)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()},Qe.prototype.__iterator=function(t,o){var u=this;return s(this._defaultValues).map(function(f,p){return u.get(p)}).__iterator(t,o)},Qe.prototype.__iterate=function(t,o){var u=this;return s(this._defaultValues).map(function(f,p){return u.get(p)}).__iterate(t,o)},Qe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map&&this._map.__ensureOwner(t);return t?cn(this,o,t):(this.__ownerID=t,this._map=o,this)};var Me=Qe.prototype;Me[T]=Me.remove,Me.deleteIn=Me.removeIn=ie.removeIn,Me.merge=ie.merge,Me.mergeWith=ie.mergeWith,Me.mergeIn=ie.mergeIn,Me.mergeDeep=ie.mergeDeep,Me.mergeDeepWith=ie.mergeDeepWith,Me.mergeDeepIn=ie.mergeDeepIn,Me.setIn=ie.setIn,Me.update=ie.update,Me.updateIn=ie.updateIn,Me.withMutations=ie.withMutations,Me.asMutable=ie.asMutable,Me.asImmutable=ie.asImmutable;function cn(t,o,u){var f=Object.create(Object.getPrototypeOf(t));return f._map=o,f.__ownerID=u,f}function ho(t){return t._name||t.constructor.name||"Record"}function fl(t,o){try{o.forEach(ll.bind(void 0,t))}catch{}}function ll(t,o){Object.defineProperty(t,o,{get:function(){return this.get(o)},set:function(u){rn(this.__ownerID,"Cannot set on an immutable record."),this.set(o,u)}})}a(we,nn);function we(t){return t==null?_i():yi(t)&&!d(t)?t:_i().withMutations(function(o){var u=l(t);Ze(u.size),u.forEach(function(f){return o.add(f)})})}we.of=function(){return this(arguments)},we.fromKeys=function(t){return this(s(t).keySeq())},we.prototype.toString=function(){return this.__toString("Set {","}")},we.prototype.has=function(t){return this._map.has(t)},we.prototype.add=function(t){return mi(this,this._map.set(t,!0))},we.prototype.remove=function(t){return mi(this,this._map.remove(t))},we.prototype.clear=function(){return mi(this,this._map.clear())},we.prototype.union=function(){var t=n.call(arguments,0);return t=t.filter(function(o){return o.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(o){for(var u=0;u<t.length;u++)l(t[u]).forEach(function(f){return o.add(f)})})},we.prototype.intersect=function(){var t=n.call(arguments,0);if(t.length===0)return this;t=t.map(function(u){return l(u)});var o=this;return this.withMutations(function(u){o.forEach(function(f){t.every(function(p){return p.includes(f)})||u.remove(f)})})},we.prototype.subtract=function(){var t=n.call(arguments,0);if(t.length===0)return this;t=t.map(function(u){return l(u)});var o=this;return this.withMutations(function(u){o.forEach(function(f){t.some(function(p){return p.includes(f)})&&u.remove(f)})})},we.prototype.merge=function(){return this.union.apply(this,arguments)},we.prototype.mergeWith=function(t){var o=n.call(arguments,1);return this.union.apply(this,o)},we.prototype.sort=function(t){return ht(fr(this,t))},we.prototype.sortBy=function(t,o){return ht(fr(this,o,t))},we.prototype.wasAltered=function(){return this._map.wasAltered()},we.prototype.__iterate=function(t,o){var u=this;return this._map.__iterate(function(f,p){return t(p,p,u)},o)},we.prototype.__iterator=function(t,o){return this._map.map(function(u,f){return f}).__iterator(t,o)},we.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map.__ensureOwner(t);return t?this.__make(o,t):(this.__ownerID=t,this._map=o,this)};function yi(t){return!!(t&&t[go])}we.isSet=yi;var go="@@__IMMUTABLE_SET__@@",et=we.prototype;et[go]=!0,et[T]=et.remove,et.mergeDeep=et.merge,et.mergeDeepWith=et.mergeWith,et.withMutations=ie.withMutations,et.asMutable=ie.asMutable,et.asImmutable=ie.asImmutable,et.__empty=_i,et.__make=yo;function mi(t,o){return t.__ownerID?(t.size=o.size,t._map=o,t):o===t._map?t:o.size===0?t.__empty():t.__make(o)}function yo(t,o){var u=Object.create(et);return u.size=t?t.size:0,u._map=t,u.__ownerID=o,u}var mo;function _i(){return mo||(mo=yo(pt()))}a(ht,we);function ht(t){return t==null?Ei():_o(t)?t:Ei().withMutations(function(o){var u=l(t);Ze(u.size),u.forEach(function(f){return o.add(f)})})}ht.of=function(){return this(arguments)},ht.fromKeys=function(t){return this(s(t).keySeq())},ht.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function _o(t){return yi(t)&&d(t)}ht.isOrderedSet=_o;var fn=ht.prototype;fn[C]=!0,fn.__empty=Ei,fn.__make=Eo;function Eo(t,o){var u=Object.create(fn);return u.size=t?t.size:0,u._map=t,u.__ownerID=o,u}var So;function Ei(){return So||(So=Eo(sn()))}a(Te,nr);function Te(t){return t==null?Si():wo(t)?t:Si().unshiftAll(t)}Te.of=function(){return this(arguments)},Te.prototype.toString=function(){return this.__toString("Stack [","]")},Te.prototype.get=function(t,o){var u=this._head;for(t=N(this,t);u&&t--;)u=u.next;return u?u.value:o},Te.prototype.peek=function(){return this._head&&this._head.value},Te.prototype.push=function(){if(arguments.length===0)return this;for(var t=this.size+arguments.length,o=this._head,u=arguments.length-1;u>=0;u--)o={value:arguments[u],next:o};return this.__ownerID?(this.size=t,this._head=o,this.__hash=void 0,this.__altered=!0,this):Kr(t,o)},Te.prototype.pushAll=function(t){if(t=c(t),t.size===0)return this;Ze(t.size);var o=this.size,u=this._head;return t.reverse().forEach(function(f){o++,u={value:f,next:u}}),this.__ownerID?(this.size=o,this._head=u,this.__hash=void 0,this.__altered=!0,this):Kr(o,u)},Te.prototype.pop=function(){return this.slice(1)},Te.prototype.unshift=function(){return this.push.apply(this,arguments)},Te.prototype.unshiftAll=function(t){return this.pushAll(t)},Te.prototype.shift=function(){return this.pop.apply(this,arguments)},Te.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):Si()},Te.prototype.slice=function(t,o){if(V(t,o,this.size))return this;var u=G(t,this.size),f=W(o,this.size);if(f!==this.size)return nr.prototype.slice.call(this,t,o);for(var p=this.size-u,g=this._head;u--;)g=g.next;return this.__ownerID?(this.size=p,this._head=g,this.__hash=void 0,this.__altered=!0,this):Kr(p,g)},Te.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Kr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Te.prototype.__iterate=function(t,o){if(o)return this.reverse().__iterate(t);for(var u=0,f=this._head;f&&t(f.value,u++,this)!==!1;)f=f.next;return u},Te.prototype.__iterator=function(t,o){if(o)return this.reverse().__iterator(t);var u=0,f=this._head;return new Z(function(){if(f){var p=f.value;return f=f.next,ae(t,u++,p)}return me()})};function wo(t){return!!(t&&t[Co])}Te.isStack=wo;var Co="@@__IMMUTABLE_STACK__@@",lr=Te.prototype;lr[Co]=!0,lr.withMutations=ie.withMutations,lr.asMutable=ie.asMutable,lr.asImmutable=ie.asImmutable,lr.wasAltered=ie.wasAltered;function Kr(t,o,u,f){var p=Object.create(lr);return p.size=t,p._head=o,p.__ownerID=u,p.__hash=f,p.__altered=!1,p}var Do;function Si(){return Do||(Do=Kr(0))}function gt(t,o){var u=function(f){t.prototype[f]=o[f]};return Object.keys(o).forEach(u),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(o).forEach(u),t}i.Iterator=Z,gt(i,{toArray:function(){Ze(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(o,u){t[u]=o}),t},toIndexedSeq:function(){return new sr(this)},toJS:function(){return this.toSeq().map(function(t){return t&&typeof t.toJS=="function"?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&typeof t.toJSON=="function"?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){Ze(this.size);var t={};return this.__iterate(function(o,u){t[u]=o}),t},toOrderedMap:function(){return Oe(this.toKeyedSeq())},toOrderedSet:function(){return ht(h(this)?this.valueSeq():this)},toSet:function(){return we(h(this)?this.valueSeq():this)},toSetSeq:function(){return new ur(this)},toSeq:function(){return y(this)?this.toIndexedSeq():h(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Te(h(this)?this.valueSeq():this)},toList:function(){return Se(h(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,o){return this.size===0?t+o:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+o},concat:function(){var t=n.call(arguments,0);return ge(this,sl(this,t))},includes:function(t){return this.some(function(o){return Ee(o,t)})},entries:function(){return this.__iterator(ee)},every:function(t,o){Ze(this.size);var u=!0;return this.__iterate(function(f,p,g){if(!t.call(o,f,p,g))return u=!1,!1}),u},filter:function(t,o){return ge(this,ao(this,t,o,!0))},find:function(t,o,u){var f=this.findEntry(t,o);return f?f[1]:u},findEntry:function(t,o){var u;return this.__iterate(function(f,p,g){if(t.call(o,f,p,g))return u=[p,f],!1}),u},findLastEntry:function(t,o){return this.toSeq().reverse().findEntry(t,o)},forEach:function(t,o){return Ze(this.size),this.__iterate(o?t.bind(o):t)},join:function(t){Ze(this.size),t=t!==void 0?""+t:",";var o="",u=!0;return this.__iterate(function(f){u?u=!1:o+=t,o+=f!=null?f.toString():""}),o},keys:function(){return this.__iterator(ne)},map:function(t,o){return ge(this,io(this,t,o))},reduce:function(t,o,u){Ze(this.size);var f,p;return arguments.length<2?p=!0:f=o,this.__iterate(function(g,_,D){p?(p=!1,f=g):f=t.call(u,f,g,_,D)}),f},reduceRight:function(t,o,u){var f=this.toKeyedSeq().reverse();return f.reduce.apply(f,arguments)},reverse:function(){return ge(this,pi(this,!0))},slice:function(t,o){return ge(this,di(this,t,o,!0))},some:function(t,o){return!this.every(vn(t),o)},sort:function(t){return ge(this,fr(this,t))},values:function(){return this.__iterator(Y)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,o){return F(t?this.toSeq().filter(t,o):this)},countBy:function(t,o){return il(this,t,o)},equals:function(t){return rr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new _e(t._cache);var o=t.toSeq().map(pl).toIndexedSeq();return o.fromEntrySeq=function(){return t.toSeq()},o},filterNot:function(t,o){return this.filter(vn(t),o)},findLast:function(t,o,u){return this.toKeyedSeq().reverse().find(t,o,u)},first:function(){return this.find(P)},flatMap:function(t,o){return ge(this,ul(this,t,o))},flatten:function(t){return ge(this,so(this,t,!0))},fromEntrySeq:function(){return new cr(this)},get:function(t,o){return this.find(function(u,f){return Ee(f,t)},void 0,o)},getIn:function(t,o){for(var u=this,f=po(t),p;!(p=f.next()).done;){var g=p.value;if(u=u&&u.get?u.get(g,M):M,u===M)return o}return u},groupBy:function(t,o){return al(this,t,o)},has:function(t){return this.get(t,M)!==M},hasIn:function(t){return this.getIn(t,M)!==M},isSubset:function(t){return t=typeof t.includes=="function"?t:i(t),this.every(function(o){return t.includes(o)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:i(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map(vl).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return un(this,t)},maxBy:function(t,o){return un(this,o,t)},min:function(t){return un(this,t?bo(t):To)},minBy:function(t,o){return un(this,o?bo(o):To,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ge(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,o){return ge(this,oo(this,t,o,!0))},skipUntil:function(t,o){return this.skipWhile(vn(t),o)},sortBy:function(t,o){return ge(this,fr(this,o,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ge(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,o){return ge(this,ol(this,t,o))},takeUntil:function(t,o){return this.takeWhile(vn(t),o)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hl(this))}});var $e=i.prototype;$e[E]=!0,$e[Fe]=$e.values,$e.__toJS=$e.toArray,$e.__toStringMapper=Oo,$e.inspect=$e.toSource=function(){return this.toString()},$e.chain=$e.flatMap,$e.contains=$e.includes,function(){try{Object.defineProperty($e,"length",{get:function(){if(!i.noLengthWarning){var t;try{throw new Error}catch(o){t=o.stack}if(t.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. "+t),this.size}}})}catch{}}(),gt(s,{flip:function(){return ge(this,no(this))},findKey:function(t,o){var u=this.findEntry(t,o);return u&&u[0]},findLastKey:function(t,o){return this.toSeq().reverse().findKey(t,o)},keyOf:function(t){return this.findKey(function(o){return Ee(o,t)})},lastKeyOf:function(t){return this.findLastKey(function(o){return Ee(o,t)})},mapEntries:function(t,o){var u=this,f=0;return ge(this,this.toSeq().map(function(p,g){return t.call(o,[g,p],f++,u)}).fromEntrySeq())},mapKeys:function(t,o){var u=this;return ge(this,this.toSeq().flip().map(function(f,p){return t.call(o,f,p,u)}).flip())}});var ln=s.prototype;ln[m]=!0,ln[Fe]=$e.entries,ln.__toJS=$e.toObject,ln.__toStringMapper=function(t,o){return JSON.stringify(o)+": "+Oo(t)},gt(c,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(t,o){return ge(this,ao(this,t,o,!1))},findIndex:function(t,o){var u=this.findEntry(t,o);return u?u[0]:-1},indexOf:function(t){var o=this.toKeyedSeq().keyOf(t);return o===void 0?-1:o},lastIndexOf:function(t){var o=this.toKeyedSeq().reverse().keyOf(t);return o===void 0?-1:o},reverse:function(){return ge(this,pi(this,!1))},slice:function(t,o){return ge(this,di(this,t,o,!1))},splice:function(t,o){var u=arguments.length;if(o=Math.max(o|0,0),u===0||u===2&&!o)return this;t=G(t,t<0?this.count():this.size);var f=this.slice(0,t);return ge(this,u===1?f:f.concat($(arguments,2),this.slice(t+o)))},findLastIndex:function(t,o){var u=this.toKeyedSeq().findLastKey(t,o);return u===void 0?-1:u},first:function(){return this.get(0)},flatten:function(t){return ge(this,so(this,t,!1))},get:function(t,o){return t=N(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?o:this.find(function(u,f){return f===t},void 0,o)},has:function(t){return t=N(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return ge(this,cl(this,t))},interleave:function(){var t=[this].concat($(arguments)),o=hi(this.toSeq(),oe.of,t),u=o.flatten(!0);return o.size&&(u.size=o.size*t.length),ge(this,u)},last:function(){return this.get(-1)},skipWhile:function(t,o){return ge(this,oo(this,t,o,!1))},zip:function(){var t=[this].concat($(arguments));return ge(this,hi(this,dl,t))},zipWith:function(t){var o=$(arguments);return o[0]=this,ge(this,hi(this,t,o))}}),c.prototype[S]=!0,c.prototype[C]=!0,gt(l,{get:function(t,o){return this.has(t)?t:o},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),l.prototype.has=$e.includes,gt(be,s.prototype),gt(oe,c.prototype),gt(Ne,l.prototype),gt(Dr,s.prototype),gt(nr,c.prototype),gt(nn,l.prototype);function vl(t,o){return o}function pl(t,o){return[o,t]}function vn(t){return function(){return!t.apply(this,arguments)}}function bo(t){return function(){return-t.apply(this,arguments)}}function Oo(t){return typeof t=="string"?JSON.stringify(t):t}function dl(){return $(arguments)}function To(t,o){return t<o?1:t>o?-1:0}function hl(t){if(t.size===1/0)return 0;var o=d(t),u=h(t),f=o?1:0,p=t.__iterate(u?o?function(g,_){f=31*f+ko(Ye(g),Ye(_))|0}:function(g,_){f=f+ko(Ye(g),Ye(_))|0}:o?function(g){f=31*f+Ye(g)|0}:function(g){f=f+Ye(g)|0});return gl(p,f)}function gl(t,o){return o=br(o,3432918353),o=br(o<<15|o>>>-15,461845907),o=br(o<<13|o>>>-13,5),o=(o+3864292196|0)^t,o=br(o^o>>>16,2246822507),o=br(o^o>>>13,3266489909),o=Yn(o^o>>>16),o}function ko(t,o){return t^o+2654435769+(t<<6)+(t>>2)|0}var yl={Iterable:i,Seq:pe,Collection:Kt,Map:fe,OrderedMap:Oe,List:Se,Stack:Te,Set:we,OrderedSet:ht,Record:Qe,Range:Le,Repeat:Re,is:Ee,fromJS:He};return yl})})(Pu);var le=Pu.exports,_l=le,El=_l.OrderedMap,Sl={createFromArray:function(e){return El(e.map(function(n){return[n.getKey(),n]}))}},jr=Sl;function wl(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var pa=le,Yi=pa.Map,Zi=pa.OrderedSet,Cl=pa.Record,Uu=Zi(),zu={style:Uu,entity:null},Dl=Cl(zu),da=function(r){wl(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.getStyle=function(){return this.get("style")},n.getEntity=function(){return this.get("entity")},n.hasStyle=function(i){return this.getStyle().includes(i)},e.applyStyle=function(i,s){var c=i.set("style",i.getStyle().add(s));return e.create(c)},e.removeStyle=function(i,s){var c=i.set("style",i.getStyle().remove(s));return e.create(c)},e.applyEntity=function(i,s){var c=i.getEntity()===s?i:i.set("entity",s);return e.create(c)},e.create=function(i){if(!i)return ha;var s={style:Uu,entity:null},c=Yi(s).merge(i),l=wi.get(c);if(l)return l;var v=new e(c);return wi=wi.set(c,v),v},e.fromJS=function(i){var s=i.style,c=i.entity;return new e({style:Array.isArray(s)?Zi(s):s,entity:Array.isArray(c)?Zi(c):c})},e}(Dl),ha=new da,wi=Yi([[Yi(zu),ha]]);da.EMPTY=ha;var at=da;function bl(r,e,n,a){if(r.size){var i=0;r.reduce(function(s,c,l){return e(s,c)||(n(s)&&a(i,l),i=l),c}),n(r.last())&&a(i,r.count())}}var Gr=bl;function Ol(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Tl=at,xo=Gr,Jr=le,qu=Jr.List,kl=Jr.Map,xl=Jr.OrderedSet,Bl=Jr.Record,Kl=Jr.Repeat,Ml=xl(),Al={key:"",type:"unstyled",text:"",characterList:qu(),depth:0,data:kl()},Nl=Bl(Al),Il=function(e){if(!e)return e;var n=e.characterList,a=e.text;return a&&!n&&(e.characterList=qu(Kl(Tl.EMPTY,a.length))),e},Rl=function(r){Ol(e,r);function e(a){return r.call(this,Il(a))||this}var n=e.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(i){var s=this.getCharacterList().get(i);return s?s.getStyle():Ml},n.getEntityAt=function(i){var s=this.getCharacterList().get(i);return s?s.getEntity():null},n.findStyleRanges=function(i,s){xo(this.getCharacterList(),Ll,i,s)},n.findEntityRanges=function(i,s){xo(this.getCharacterList(),$l,i,s)},e}(Nl);function Ll(r,e){return r.getStyle()===e.getStyle()}function $l(r,e){return r.getEntity()===e.getEntity()}var Cr=Rl;function Fl(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Pl=at,Bo=Gr,Xr=le,Qi=Xr.List,Ul=Xr.Map,zl=Xr.OrderedSet,ql=Xr.Record,Hl=Xr.Repeat,Vl=zl(),Ko={parent:null,characterList:Qi(),data:Ul(),depth:0,key:"",text:"",type:"unstyled",children:Qi(),prevSibling:null,nextSibling:null},Wl=function(e,n){return e.getStyle()===n.getStyle()},jl=function(e,n){return e.getEntity()===n.getEntity()},Gl=function(e){if(!e)return e;var n=e.characterList,a=e.text;return a&&!n&&(e.characterList=Qi(Hl(Pl.EMPTY,a.length))),e},Jl=function(r){Fl(e,r);function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ko;return r.call(this,Gl(a))||this}var n=e.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(i){var s=this.getCharacterList().get(i);return s?s.getStyle():Vl},n.getEntityAt=function(i){var s=this.getCharacterList().get(i);return s?s.getEntity():null},n.getChildKeys=function(){return this.get("children")},n.getParentKey=function(){return this.get("parent")},n.getPrevSiblingKey=function(){return this.get("prevSibling")},n.getNextSiblingKey=function(){return this.get("nextSibling")},n.findStyleRanges=function(i,s){Bo(this.getCharacterList(),Wl,i,s)},n.findEntityRanges=function(i,s){Bo(this.getCharacterList(),jl,i,s)},e}(ql(Ko)),ot=Jl,Mo=at,Xl=le,Yl=Xl.Map,Zl={add:function(e,n,a){return Ao(e,n,a,!0)},remove:function(e,n,a){return Ao(e,n,a,!1)}};function Ao(r,e,n,a){var i=r.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),l=e.getEndKey(),v=e.getEndOffset(),h=i.skipUntil(function(y,w){return w===s}).takeUntil(function(y,w){return w===l}).concat(Yl([[l,i.get(l)]])).map(function(y,w){var d,E;s===l?(d=c,E=v):(d=w===s?c:0,E=w===l?v:y.getLength());for(var m=y.getCharacterList(),S;d<E;)S=m.get(d),m=m.set(d,a?Mo.applyStyle(S,n):Mo.removeStyle(S,n)),d++;return y.set("characterList",m)});return r.merge({blockMap:i.merge(h),selectionBefore:e,selectionAfter:e})}var Ql=Zl,ev=at;function tv(r,e,n,a){for(var i=e,s=r.getCharacterList();i<n;)s=s.set(i,ev.applyEntity(s.get(i),a)),i++;return r.set("characterList",s)}var rv=tv,nv=rv,iv=le;function av(r,e,n){var a=r.getBlockMap(),i=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),v=a.skipUntil(function(h,y){return y===i}).takeUntil(function(h,y){return y===c}).toOrderedMap().merge(iv.OrderedMap([[c,a.get(c)]])).map(function(h,y){var w=y===i?s:0,d=y===c?l:h.getLength();return nv(h,w,d,n)});return r.merge({blockMap:a.merge(v),selectionBefore:e,selectionAfter:e})}var ov=av,sv={getRemovalRange:function(e,n,a,i,s){var c=a.split(" ");c=c.map(function(C,T){if(s==="forward"){if(T>0)return" "+C}else if(T<c.length-1)return C+" ";return C});for(var l=i,v,h,y=null,w=null,d=0;d<c.length;d++){if(h=c[d],v=l+h.length,e<v&&l<n)y!==null||(y=l),w=v;else if(y!==null)break;l=v}var E=i+a.length,m=y===i,S=w===E;return(!m&&S||m&&!S)&&(s==="forward"?w!==E&&w++:y!==i&&y--),{start:y,end:w}}},uv=sv,cv=process.env.NODE_ENV!=="production"?function(r){if(r===void 0)throw new Error("invariant(...): Second argument must be a string.")}:function(r){};function fv(r,e){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];if(cv(e),!r){var s;if(e===void 0)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;s=new Error(e.replace(/%s/g,function(){return String(a[c++])})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var ve=fv,No=ve;function lv(r,e){var n=[];return r.findEntityRanges(function(a){return a.getEntity()===e},function(a,i){n.push({start:a,end:i})}),n.length||(process.env.NODE_ENV!=="production"?No(!1,"Entity key not found in this range."):No(!1)),n}var vv=lv,pv=uv,dv=vv,Io=ve;function hv(r,e,n,a,i){var s=a.getStartOffset(),c=a.getEndOffset(),l=e.getEntityAt(s),v=n.getEntityAt(c-1);if(!l&&!v)return a;var h=a;if(l&&l===v)h=Mr(r,e,h,i,l,!0,!0);else if(l&&v){var y=Mr(r,e,h,i,l,!1,!0),w=Mr(r,n,h,i,v,!1,!1);h=h.merge({anchorOffset:y.getAnchorOffset(),focusOffset:w.getFocusOffset(),isBackward:!1})}else if(l){var d=Mr(r,e,h,i,l,!1,!0);h=h.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(v){var E=Mr(r,n,h,i,v,!1,!1);h=h.merge({focusOffset:E.getEndOffset(),isBackward:!1})}return h}function Mr(r,e,n,a,i,s,c){var l=n.getStartOffset(),v=n.getEndOffset(),h=r.__get(i),y=h.getMutability(),w=c?l:v;if(y==="MUTABLE")return n;var d=dv(e,i).filter(function(S){return w<=S.end&&w>=S.start});d.length!=1&&(process.env.NODE_ENV!=="production"?Io(!1,"There should only be one entity range within this removal range."):Io(!1));var E=d[0];if(y==="IMMUTABLE")return n.merge({anchorOffset:E.start,focusOffset:E.end,isBackward:!1});s||(c?v=E.end:l=E.start);var m=pv.getRemovalRange(l,v,e.getText().slice(E.start,E.end),E.start,a);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}var gv=hv,Ro={},yv=Math.pow(2,24);function mv(){for(var r;r===void 0||Ro.hasOwnProperty(r)||!isNaN(+r);)r=Math.floor(Math.random()*yv).toString(32);return Ro[r]=!0,r}var Ct=mv,_v=ot,Hu=Ct,Ev=le,Vu=Ev.OrderedMap,Sv=function(e){var n={},a;return Vu(e.withMutations(function(i){i.forEach(function(s,c){var l=s.getKey(),v=s.getNextSiblingKey(),h=s.getPrevSiblingKey(),y=s.getChildKeys(),w=s.getParentKey(),d=Hu();if(n[l]=d,v){var E=i.get(v);E?i.setIn([v,"prevSibling"],d):i.setIn([l,"nextSibling"],null)}if(h){var m=i.get(h);m?i.setIn([h,"nextSibling"],d):i.setIn([l,"prevSibling"],null)}if(w&&i.get(w)){var S=i.get(w),C=S.getChildKeys();i.setIn([w,"children"],C.set(C.indexOf(s.getKey()),d))}else i.setIn([l,"parent"],null),a&&(i.setIn([a.getKey(),"nextSibling"],d),i.setIn([l,"prevSibling"],n[a.getKey()])),a=i.get(l);y.forEach(function(T){var B=i.get(T);B?i.setIn([T,"parent"],d):i.setIn([l,"children"],s.getChildKeys().filter(function(O){return O!==T}))})})}).toArray().map(function(i){return[n[i.getKey()],i.set("key",n[i.getKey()])]}))},wv=function(e){return Vu(e.toArray().map(function(n){var a=Hu();return[a,n.set("key",a)]}))},Cv=function(e){var n=e.first()instanceof _v;return n?Sv(e):wv(e)},Wu=Cv,Dv=at,bv=Gr,Lo=ve;function Ov(r,e){var n=r.getBlockMap(),a=r.getEntityMap(),i={},s=e.getStartKey(),c=e.getStartOffset(),l=n.get(s),v=$o(a,l,c);v!==l&&(i[s]=v);var h=e.getEndKey(),y=e.getEndOffset(),w=n.get(h);s===h&&(w=v);var d=$o(a,w,y);return d!==w&&(i[h]=d),Object.keys(i).length?r.merge({blockMap:n.merge(i),selectionAfter:e}):r.set("selectionAfter",e)}function Tv(r,e,n){var a;return bv(r,function(i,s){return i.getEntity()===s.getEntity()},function(i){return i.getEntity()===e},function(i,s){i<=n&&s>=n&&(a={start:i,end:s})}),typeof a!="object"&&(process.env.NODE_ENV!=="production"?Lo(!1,"Removal range must exist within character list."):Lo(!1)),a}function $o(r,e,n){var a=e.getCharacterList(),i=n>0?a.get(n-1):void 0,s=n<a.count()?a.get(n):void 0,c=i?i.getEntity():void 0,l=s?s.getEntity():void 0;if(l&&l===c){var v=r.__get(l);if(v.getMutability()!=="MUTABLE"){for(var h=Tv(a,l,n),y=h.start,w=h.end,d;y<w;)d=a.get(y),a=a.set(y,Dv.applyEntity(d,null)),y++;return e.set("characterList",a)}}return e}var ju=Ov,kv=Wu,xv=ju,Bv=function(e,n){var a=n.getStartKey(),i=n.getStartOffset(),s=n.getEndKey(),c=n.getEndOffset(),l=xv(e,n),v=l.getBlockMap(),h=v.keySeq(),y=h.indexOf(a),w=h.indexOf(s)+1;return kv(v.slice(y,w).map(function(d,E){var m=d.getText(),S=d.getCharacterList();return a===s?d.merge({text:m.slice(i,c),characterList:S.slice(i,c)}):E===a?d.merge({text:m.slice(i),characterList:S.slice(i)}):E===s?d.merge({text:m.slice(0,c),characterList:S.slice(0,c)}):d}))},Rn=Bv;function Kv(r,e,n){var a=r;if(n===a.count())e.forEach(function(c){a=a.push(c)});else if(n===0)e.reverse().forEach(function(c){a=a.unshift(c)});else{var i=a.slice(0,n),s=a.slice(n);a=i.concat(e,s).toList()}return a}var Gu=Kv,Mv=jr,Ju=ot,Av=le,Nv=Gu,dn=ve,Iv=Wu,Rv=Av.List,Lv=function(e,n,a,i,s,c){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",v=a.get(s),h=v.getText(),y=v.getCharacterList(),w=s,d=c+i.getText().length,E=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":E=i.getData().merge(v.getData());break;case"REPLACE_WITH_NEW_DATA":E=i.getData();break}var m=v.getType();h&&m==="unstyled"&&(m=i.getType());var S=v.merge({text:h.slice(0,c)+i.getText()+h.slice(c),characterList:Nv(y,i.getCharacterList(),c),type:m,data:E});return e.merge({blockMap:a.set(s,S),selectionBefore:n,selectionAfter:n.merge({anchorKey:w,anchorOffset:d,focusKey:w,focusOffset:d,isBackward:!1})})},$v=function(e,n,a){var i=e.getText(),s=e.getCharacterList(),c=i.slice(0,n),l=s.slice(0,n),v=a.first();return e.merge({text:c+v.getText(),characterList:l.concat(v.getCharacterList()),type:c?e.getType():v.getType(),data:v.getData()})},Fv=function(e,n,a){var i=e.getText(),s=e.getCharacterList(),c=i.length,l=i.slice(n,c),v=s.slice(n,c),h=a.last();return h.merge({text:h.getText()+l,characterList:h.getCharacterList().concat(v),data:h.getData()})},Pv=function(e,n){var a=e.getKey(),i=e,s=[];for(n.get(a)&&s.push(a);i&&i.getNextSiblingKey();){var c=i.getNextSiblingKey();if(!c)break;s.push(c),i=n.get(c)}return s},Uv=function(e,n,a,i){return e.withMutations(function(s){var c=a.getKey(),l=i.getKey(),v=a.getNextSiblingKey(),h=a.getParentKey(),y=Pv(i,e),w=y[y.length-1];if(s.get(l)?(s.setIn([c,"nextSibling"],l),s.setIn([l,"prevSibling"],c)):(s.setIn([c,"nextSibling"],i.getNextSiblingKey()),s.setIn([i.getNextSiblingKey(),"prevSibling"],c)),s.setIn([w,"nextSibling"],v),v&&s.setIn([v,"prevSibling"],w),y.forEach(function(T){return s.setIn([T,"parent"],h)}),h){var d=e.get(h),E=d.getChildKeys(),m=E.indexOf(c),S=m+1,C=E.toArray();C.splice.apply(C,[S,0].concat(y)),s.setIn([h,"children"],Rv(C))}})},zv=function(e,n,a,i,s,c){var l=a.first()instanceof Ju,v=[],h=i.size,y=a.get(s),w=i.first(),d=i.last(),E=d.getLength(),m=d.getKey(),S=l&&(!y.getChildKeys().isEmpty()||!w.getChildKeys().isEmpty());a.forEach(function(T,B){if(B!==s){v.push(T);return}S?v.push(T):v.push($v(T,c,i)),i.slice(S?0:1,h-1).forEach(function(O){return v.push(O)}),v.push(Fv(T,c,i))});var C=Mv.createFromArray(v);return l&&(C=Uv(C,a,y,w)),e.merge({blockMap:C,selectionBefore:n,selectionAfter:n.merge({anchorKey:m,anchorOffset:E,focusKey:m,focusOffset:E,isBackward:!1})})},qv=function(e,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||(process.env.NODE_ENV!=="production"?dn(!1,"`insertFragment` should only be called with a collapsed selection state."):dn(!1));var s=e.getBlockMap(),c=Iv(a),l=n.getStartKey(),v=n.getStartOffset(),h=s.get(l);return h instanceof Ju&&(h.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?dn(!1,"`insertFragment` should not be called when a container node is selected."):dn(!1))),c.size===1?Lv(e,n,s,c.first(),l,v,i):zv(e,n,s,c,l,v)},Hv=qv,Vv=le,Wv=Gu,Fo=ve,jv=Vv.Repeat;function Gv(r,e,n,a){e.isCollapsed()||(process.env.NODE_ENV!=="production"?Fo(!1,"`insertText` should only be called with a collapsed range."):Fo(!1));var i=null;if(n!=null&&(i=n.length),i==null||i===0)return r;var s=r.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),v=s.get(c),h=v.getText(),y=v.merge({text:h.slice(0,l)+n+h.slice(l,v.getLength()),characterList:Wv(v.getCharacterList(),jv(a,i).toList(),l)}),w=l+i;return r.merge({blockMap:s.set(c,y),selectionAfter:e.merge({anchorOffset:w,focusOffset:w})})}var Jv=Gv,Xv=le,Yv=Xv.Map;function Zv(r,e,n){var a=e.getStartKey(),i=e.getEndKey(),s=r.getBlockMap(),c=s.toSeq().skipUntil(function(l,v){return v===a}).takeUntil(function(l,v){return v===i}).concat(Yv([[i,s.get(i)]])).map(n);return r.merge({blockMap:s.merge(c),selectionBefore:e,selectionAfter:e})}var Xu=Zv,Qv=ot,ep=function(e,n){var a=e instanceof Qv;if(!a)return null;var i=e.getNextSiblingKey();if(i)return i;var s=e.getParentKey();if(!s)return null;for(var c=n.get(s);c&&!c.getNextSiblingKey();){var l=c.getParentKey();c=l?n.get(l):null}return c?c.getNextSiblingKey():null},Yu=ep,tp=ot,ea=Yu,Zu=le;Zu.List;var Po=Zu.Map,Ve=function(e,n,a){if(e){var i=n.get(e);i&&n.set(e,a(i))}},An=function(e,n){var a=[];if(!e)return a;for(var i=n.get(e);i&&i.getParentKey();){var s=i.getParentKey();s&&a.push(s),i=s?n.get(s):null}return a},rp=function(e,n){var a=[];if(!e)return a;for(var i=ea(e,n);i&&n.get(i);){var s=n.get(i);a.push(i),i=s.getParentKey()?ea(s,n):null}return a},vr=function(e,n,a){if(!e)return null;for(var i=a.get(e.getKey()).getNextSiblingKey();i&&!n.get(i);)i=a.get(i).getNextSiblingKey()||null;return i},pr=function(e,n,a){if(!e)return null;for(var i=a.get(e.getKey()).getPrevSiblingKey();i&&!n.get(i);)i=a.get(i).getPrevSiblingKey()||null;return i},np=function(e,n,a,i){return e.withMutations(function(s){if(Ve(n.getKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i),prevSibling:pr(y,s,i)})}),Ve(a.getKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i),prevSibling:pr(y,s,i)})}),An(n.getKey(),i).forEach(function(y){return Ve(y,s,function(w){return w.merge({children:w.getChildKeys().filter(function(d){return s.get(d)}),nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),Ve(n.getNextSiblingKey(),s,function(y){return y.merge({prevSibling:n.getPrevSiblingKey()})}),Ve(n.getPrevSiblingKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i)})}),Ve(a.getNextSiblingKey(),s,function(y){return y.merge({prevSibling:pr(y,s,i)})}),Ve(a.getPrevSiblingKey(),s,function(y){return y.merge({nextSibling:a.getNextSiblingKey()})}),An(a.getKey(),i).forEach(function(y){Ve(y,s,function(w){return w.merge({children:w.getChildKeys().filter(function(d){return s.get(d)}),nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),rp(a,i).forEach(function(y){return Ve(y,s,function(w){return w.merge({nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),e.get(n.getKey())==null&&e.get(a.getKey())!=null&&a.getParentKey()===n.getKey()&&a.getPrevSiblingKey()==null){var c=n.getPrevSiblingKey();Ve(a.getKey(),s,function(y){return y.merge({prevSibling:c})}),Ve(c,s,function(y){return y.merge({nextSibling:a.getKey()})});var l=c?e.get(c):null,v=l?l.getParentKey():null;if(n.getChildKeys().forEach(function(y){Ve(y,s,function(w){return w.merge({parent:v})})}),v!=null){var h=e.get(v);Ve(v,s,function(y){return y.merge({children:h.getChildKeys().concat(n.getChildKeys())})})}Ve(n.getChildKeys().find(function(y){var w=e.get(y);return w.getNextSiblingKey()===null}),s,function(y){return y.merge({nextSibling:n.getNextSiblingKey()})})}})},ip=function(e,n){if(n.isCollapsed())return e;var a=e.getBlockMap(),i=n.getStartKey(),s=n.getStartOffset(),c=n.getEndKey(),l=n.getEndOffset(),v=a.get(i),h=a.get(c),y=v instanceof tp,w=[];if(y){var d=h.getChildKeys(),E=An(c,a);h.getNextSiblingKey()&&(w=w.concat(E)),d.isEmpty()||(w=w.concat(E.concat([c]))),w=w.concat(An(ea(h,a),a))}var m;v===h?m=ap(v.getCharacterList(),s,l):m=v.getCharacterList().slice(0,s).concat(h.getCharacterList().slice(l));var S=v.merge({text:v.getText().slice(0,s)+h.getText().slice(l),characterList:m}),C=y&&s===0&&l===0&&h.getParentKey()===i&&h.getPrevSiblingKey()==null,T=C?Po([[i,null]]):a.toSeq().skipUntil(function(O,k){return k===i}).takeUntil(function(O,k){return k===c}).filter(function(O,k){return w.indexOf(k)===-1}).concat(Po([[c,null]])).map(function(O,k){return k===i?S:null}),B=a.merge(T).filter(function(O){return!!O});return y&&v!==h&&(B=np(B,v,h,a)),e.merge({blockMap:B,selectionBefore:n,selectionAfter:n.merge({anchorKey:i,anchorOffset:s,focusKey:i,focusOffset:s,isBackward:!1})})},ap=function(e,n,a){if(n===0)for(;n<a;)e=e.shift(),n++;else if(a===e.count())for(;a>n;)e=e.pop(),a--;else{var i=e.slice(0,n),s=e.slice(a);e=i.concat(s).toList()}return e},op=ip,sp=ot,up=Ct,Qu=le,hn=ve,cp=Xu,fp=Qu.List,lp=Qu.Map,gn=function(e,n,a){if(e){var i=n.get(e);i&&n.set(e,a(i))}},vp=function(e,n,a){return e.withMutations(function(i){var s=n.getKey(),c=a.getKey();gn(n.getParentKey(),i,function(l){var v=l.getChildKeys(),h=v.indexOf(s)+1,y=v.toArray();return y.splice(h,0,c),l.merge({children:fp(y)})}),gn(n.getNextSiblingKey(),i,function(l){return l.merge({prevSibling:c})}),gn(s,i,function(l){return l.merge({nextSibling:c})}),gn(c,i,function(l){return l.merge({prevSibling:s})})})},pp=function(e,n){n.isCollapsed()||(process.env.NODE_ENV!=="production"?hn(!1,"Selection range must be collapsed."):hn(!1));var a=n.getAnchorKey(),i=e.getBlockMap(),s=i.get(a),c=s.getText();if(!c){var l=s.getType();if(l==="unordered-list-item"||l==="ordered-list-item")return cp(e,n,function(T){return T.merge({type:"unstyled",depth:0})})}var v=n.getAnchorOffset(),h=s.getCharacterList(),y=up(),w=s instanceof sp,d=s.merge({text:c.slice(0,v),characterList:h.slice(0,v)}),E=d.merge({key:y,text:c.slice(v),characterList:h.slice(v),data:lp()}),m=i.toSeq().takeUntil(function(T){return T===s}),S=i.toSeq().skipUntil(function(T){return T===s}).rest(),C=m.concat([[a,d],[y,E]],S).toOrderedMap();return w&&(s.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?hn(!1,"ContentBlockNode must not have children"):hn(!1)),C=vp(C,d,E)),e.merge({blockMap:C,selectionBefore:n,selectionAfter:n.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})},dp=pp,hp=at,Uo=Ql,gp=ov,yp=gv,mp=Rn,_p=le,Ep=Hv,Sp=Jv,zo=ve,Ci=Xu,Ar=ju,Nr=op,wp=dp,Cp=_p.OrderedSet,Kn={replaceText:function(e,n,a,i,s){var c=Ar(e,n),l=Nr(c,n),v=hp.create({style:i||Cp(),entity:s||null});return Sp(l,l.getSelectionAfter(),a,v)},insertText:function(e,n,a,i,s){return n.isCollapsed()||(process.env.NODE_ENV!=="production"?zo(!1,"Target range must be collapsed for `insertText`."):zo(!1)),Kn.replaceText(e,n,a,i,s)},moveText:function(e,n,a){var i=mp(e,n),s=Kn.removeRange(e,n,"backward");return Kn.replaceWithFragment(s,a,i)},replaceWithFragment:function(e,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",s=Ar(e,n),c=Nr(s,n);return Ep(c,c.getSelectionAfter(),a,i)},removeRange:function(e,n,a){var i,s,c,l;n.getIsBackward()&&(n=n.merge({anchorKey:n.getFocusKey(),anchorOffset:n.getFocusOffset(),focusKey:n.getAnchorKey(),focusOffset:n.getAnchorOffset(),isBackward:!1})),i=n.getAnchorKey(),s=n.getFocusKey(),c=e.getBlockForKey(i),l=e.getBlockForKey(s);var v=n.getStartOffset(),h=n.getEndOffset(),y=c.getEntityAt(v),w=l.getEntityAt(h-1);if(i===s&&y&&y===w){var d=yp(e.getEntityMap(),c,l,n,a);return Nr(e,d)}var E=Ar(e,n);return Nr(E,n)},splitBlock:function(e,n){var a=Ar(e,n),i=Nr(a,n);return wp(i,i.getSelectionAfter())},applyInlineStyle:function(e,n,a){return Uo.add(e,n,a)},removeInlineStyle:function(e,n,a){return Uo.remove(e,n,a)},setBlockType:function(e,n,a){return Ci(e,n,function(i){return i.merge({type:a,depth:0})})},setBlockData:function(e,n,a){return Ci(e,n,function(i){return i.merge({data:a})})},mergeBlockData:function(e,n,a){return Ci(e,n,function(i){return i.merge({data:i.getData().merge(a)})})},applyEntity:function(e,n,a){var i=Ar(e,n);return gp(i,n,a)}},We=Kn;function Dp(r){return Object.keys(r).map(function(e){return r[e]})}var ec=Dp;function bp(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Op(r,i,n[i])})}return r}function Op(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Tp(r,e){if(r==null)return{};var n={},a=Object.keys(r),i,s;for(s=0;s<a.length;s++)i=a[s],!(e.indexOf(i)>=0)&&(n[i]=r[i]);return n}var tc=Gr,kp=ec,ga=le,mr=ga.List,xp=ga.Repeat,rc=ga.Record,nc=function(){return!0},Bp={start:null,end:null},ta=rc(Bp),Kp={start:null,end:null,decoratorKey:null,leaves:null},Di=rc(Kp),Mp={generate:function(e,n,a){var i=n.getLength();if(!i)return mr.of(new Di({start:0,end:0,decoratorKey:null,leaves:mr.of(new ta({start:0,end:0}))}));var s=[],c=a?a.getDecorations(n,e):mr(xp(null,i)),l=n.getCharacterList();return tc(c,ic,nc,function(v,h){s.push(new Di({start:v,end:h,decoratorKey:c.get(v),leaves:Ap(l.slice(v,h).toList(),v)}))}),mr(s)},fromJS:function(e){var n=e.leaves,a=Tp(e,["leaves"]);return new Di(bp({},a,{leaves:n!=null?mr(Array.isArray(n)?n:kp(n)).map(function(i){return ta(i)}):null}))}};function Ap(r,e){var n=[],a=r.map(function(i){return i.getStyle()}).toList();return tc(a,ic,nc,function(i,s){n.push(new ta({start:i+e,end:s+e}))}),mr(n)}function ic(r,e){return r===e}var Np=Mp;function Ip(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Rp=le,Lp=Rp.Record,$p=Lp({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),Fp=function(r){Ip(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.getType=function(){return this.get("type")},n.getMutability=function(){return this.get("mutability")},n.getData=function(){return this.get("data")},e}($p),ac=Fp;function Pp(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var e=Math.random()*16|0,n=r=="x"?e:e&3|8;return n.toString(16)})}var Up=Pp;function zp(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){qp(r,i,n[i])})}return r}function qp(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Hp=ac,Vp=le,qo=ve,ra=Up,Wp=Vp.Map,bt=Wp(),Ir=ra();function dr(r,e){console.warn("WARNING: "+r+` will be deprecated soon!
2
2
  Please use "`+e+'" instead.')}var Et={getLastCreatedEntityKey:function(){return dr("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Et.__getLastCreatedEntityKey()},create:function(e,n,a){return dr("DraftEntity.create","contentState.createEntity"),Et.__create(e,n,a)},add:function(e){return dr("DraftEntity.add","contentState.addEntity"),Et.__add(e)},get:function(e){return dr("DraftEntity.get","contentState.getEntity"),Et.__get(e)},__getAll:function(){return bt},__loadWithEntities:function(e){bt=e,Ir=ra()},mergeData:function(e,n){return dr("DraftEntity.mergeData","contentState.mergeEntityData"),Et.__mergeData(e,n)},replaceData:function(e,n){return dr("DraftEntity.replaceData","contentState.replaceEntityData"),Et.__replaceData(e,n)},__getLastCreatedEntityKey:function(){return Ir},__create:function(e,n,a){return Et.__add(new Hp({type:e,mutability:n,data:a||{}}))},__add:function(e){return Ir=ra(),bt=bt.set(Ir,e),Ir},__get:function(e){var n=bt.get(e);return n||(process.env.NODE_ENV!=="production"?qo(!1,"Unknown DraftEntity key: %s.",e):qo(!1)),n},__mergeData:function(e,n){var a=Et.__get(e),i=zp({},a.getData(),n),s=a.set("data",i);return bt=bt.set(e,s),s},__replaceData:function(e,n){var a=Et.__get(e),i=a.set("data",n);return bt=bt.set(e,i),i}},Ln=Et;function jp(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Gp=le,Jp=Gp.Record,Xp={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},Yp=Jp(Xp),Zp=function(r){jp(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},n.getAnchorKey=function(){return this.get("anchorKey")},n.getAnchorOffset=function(){return this.get("anchorOffset")},n.getFocusKey=function(){return this.get("focusKey")},n.getFocusOffset=function(){return this.get("focusOffset")},n.getIsBackward=function(){return this.get("isBackward")},n.getHasFocus=function(){return this.get("hasFocus")},n.hasEdgeWithin=function(i,s,c){var l=this.getAnchorKey(),v=this.getFocusKey();if(l===v&&l===i){var h=this.getStartOffset(),y=this.getEndOffset();return s<=h&&h<=c||s<=y&&y<=c}if(i!==l&&i!==v)return!1;var w=i===l?this.getAnchorOffset():this.getFocusOffset();return s<=w&&c>=w},n.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},n.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},n.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},n.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},n.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(i){return new e({anchorKey:i,anchorOffset:0,focusKey:i,focusOffset:0,isBackward:!1,hasFocus:!1})},e}(Yp),$n=Zp,Ht=function(r){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[r]:!1},Qp=new RegExp("\r","g");function ed(r){return r.replace(Qp,"")}var oc=ed;function Ho(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){td(r,i,n[i])})}return r}function td(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function rd(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var nd=jr,Vo=at,id=Cr,ad=ot,mt=Ln,yn=$n,od=Ct,sd=ec,ud=Ht,Yr=le,cd=oc,Wo=Yr.List,fd=Yr.Record,ld=Yr.Repeat,vd=Yr.Map,pd=Yr.OrderedMap,dd={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},hd=fd(dd),jo=ud("draft_tree_data_support")?ad:id,gd=function(r){rd(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.getEntityMap=function(){return mt},n.getBlockMap=function(){return this.get("blockMap")},n.getSelectionBefore=function(){return this.get("selectionBefore")},n.getSelectionAfter=function(){return this.get("selectionAfter")},n.getBlockForKey=function(i){var s=this.getBlockMap().get(i);return s},n.getKeyBefore=function(i){return this.getBlockMap().reverse().keySeq().skipUntil(function(s){return s===i}).skip(1).first()},n.getKeyAfter=function(i){return this.getBlockMap().keySeq().skipUntil(function(s){return s===i}).skip(1).first()},n.getBlockAfter=function(i){return this.getBlockMap().skipUntil(function(s,c){return c===i}).skip(1).first()},n.getBlockBefore=function(i){return this.getBlockMap().reverse().skipUntil(function(s,c){return c===i}).skip(1).first()},n.getBlocksAsArray=function(){return this.getBlockMap().toArray()},n.getFirstBlock=function(){return this.getBlockMap().first()},n.getLastBlock=function(){return this.getBlockMap().last()},n.getPlainText=function(i){return this.getBlockMap().map(function(s){return s?s.getText():""}).join(i||`
3
3
  `)},n.getLastCreatedEntityKey=function(){return mt.__getLastCreatedEntityKey()},n.hasText=function(){var i=this.getBlockMap();return i.size>1||escape(i.first().getText()).replace(/%u200B/g,"").length>0},n.createEntity=function(i,s,c){return mt.__create(i,s,c),this},n.mergeEntityData=function(i,s){return mt.__mergeData(i,s),this},n.replaceEntityData=function(i,s){return mt.__replaceData(i,s),this},n.addEntity=function(i){return mt.__add(i),this},n.getEntity=function(i){return mt.__get(i)},n.getAllEntities=function(){return mt.__getAll()},n.loadWithEntities=function(i){return mt.__loadWithEntities(i)},e.createFromBlockArray=function(i,s){var c=Array.isArray(i)?i:i.contentBlocks,l=nd.createFromArray(c),v=l.isEmpty()?new yn:yn.createEmpty(l.first().getKey());return new e({blockMap:l,entityMap:s||mt,selectionBefore:v,selectionAfter:v})},e.createFromText=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,c=i.split(s),l=c.map(function(v){return v=cd(v),new jo({key:od(),text:v,type:"unstyled",characterList:Wo(ld(Vo.EMPTY,v.length))})});return e.createFromBlockArray(l)},e.fromJS=function(i){return new e(Ho({},i,{blockMap:pd(i.blockMap).map(e.createContentBlockFromJS),selectionBefore:new yn(i.selectionBefore),selectionAfter:new yn(i.selectionAfter)}))},e.createContentBlockFromJS=function(i){var s=i.characterList;return new jo(Ho({},i,{data:vd(i.data),characterList:s!=null?Wo((Array.isArray(s)?s:sd(s)).map(function(c){return Vo.fromJS(c)})):void 0}))},e}(hd),ya=gd,Pt=ve,yd="NEUTRAL",Fn="LTR",sc="RTL",Mn=null;function Nn(r){return r===Fn||r===sc}function uc(r){return Nn(r)||(process.env.NODE_ENV!=="production"?Pt(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Pt(!1)),r===Fn?"ltr":"rtl"}function md(r,e){return Nn(r)||(process.env.NODE_ENV!=="production"?Pt(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Pt(!1)),Nn(e)||(process.env.NODE_ENV!=="production"?Pt(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):Pt(!1)),r===e?null:uc(r)}function cc(r){Mn=r}function _d(){cc(Fn)}function Ed(){return Mn||this.initGlobalDir(),Mn||(process.env.NODE_ENV!=="production"?Pt(!1,"Global direction not set."):Pt(!1)),Mn}var Sd={NEUTRAL:yd,LTR:Fn,RTL:sc,isStrong:Nn,getHTMLDir:uc,getHTMLDirIfDifferent:md,setGlobalDir:cc,initGlobalDir:_d,getGlobalDir:Ed},Pn=Sd,xt=Pn,Go=ve,qr={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾"},wd=new RegExp("["+qr.L+qr.R+qr.AL+"]"),Cd=new RegExp("["+qr.R+qr.AL+"]");function fc(r){var e=wd.exec(r);return e==null?null:e[0]}function lc(r){var e=fc(r);return e==null?xt.NEUTRAL:Cd.exec(e)?xt.RTL:xt.LTR}function vc(r,e){if(e=e||xt.NEUTRAL,!r.length)return e;var n=lc(r);return n===xt.NEUTRAL?e:n}function ma(r,e){return e||(e=xt.getGlobalDir()),xt.isStrong(e)||(process.env.NODE_ENV!=="production"?Go(!1,"Fallback direction must be a strong direction"):Go(!1)),vc(r,e)}function Dd(r,e){return ma(r,e)===xt.LTR}function bd(r,e){return ma(r,e)===xt.RTL}var Od={firstStrongChar:fc,firstStrongCharDir:lc,resolveBlockDir:vc,getDirection:ma,isDirectionLTR:Dd,isDirectionRTL:bd},_a=Od;function Jo(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Td=_a,Xo=Pn,Yo=ve,kd=function(){function r(n){Jo(this,"_defaultDir",void 0),Jo(this,"_lastDir",void 0),n?Xo.isStrong(n)||(process.env.NODE_ENV!=="production"?Yo(!1,"Default direction must be a strong direction (LTR or RTL)"):Yo(!1)):n=Xo.getGlobalDir(),this._defaultDir=n,this.reset()}var e=r.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(a){return this._lastDir=Td.getDirection(a,this._lastDir),this._lastDir},r}(),xd=kd,Bd=function(e){if(e!=null)return e;throw new Error("Got unexpected null or undefined")},je=Bd,Kd=xd,pc=le,Md=je,Ad=pc.OrderedMap,mn,Nd={getDirectionMap:function(e,n){mn?mn.reset():mn=new Kd;var a=e.getBlockMap(),i=a.valueSeq().map(function(c){return Md(mn).getDirection(c.getText())}),s=Ad(a.keySeq().zip(i));return n!=null&&pc.is(n,s)?n:s}},Id=Nd;function Zo(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){dc(r,i,n[i])})}return r}function dc(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Un=Np,Rr=ya,_n=Id,bi=$n,Zr=le,hc=Zr.OrderedSet,Rd=Zr.Record,Jt=Zr.Stack,Qo=Zr.OrderedMap,Ld=Zr.List,$d={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Jt(),selection:null,treeMap:null,undoStack:Jt()},es=Rd($d),gc=function(){e.createEmpty=function(a){return this.createWithText("",a)},e.createWithText=function(a,i){return e.createWithContent(Rr.createFromText(a),i)},e.createWithContent=function(a,i){if(a.getBlockMap().count()===0)return e.createEmpty(i);var s=a.getBlockMap().first().getKey();return e.create({currentContent:a,undoStack:Jt(),redoStack:Jt(),decorator:i||null,selection:bi.createEmpty(s)})},e.create=function(a){var i=a.currentContent,s=a.decorator,c=Zo({},a,{treeMap:rs(i,s),directionMap:_n.getDirectionMap(i)});return new e(new es(c))},e.fromJS=function(a){return new e(new es(Zo({},a,{directionMap:a.directionMap!=null?Qo(a.directionMap):a.directionMap,inlineStyleOverride:a.inlineStyleOverride!=null?hc(a.inlineStyleOverride):a.inlineStyleOverride,nativelyRenderedContent:a.nativelyRenderedContent!=null?Rr.fromJS(a.nativelyRenderedContent):a.nativelyRenderedContent,redoStack:a.redoStack!=null?Jt(a.redoStack.map(function(i){return Rr.fromJS(i)})):a.redoStack,selection:a.selection!=null?new bi(a.selection):a.selection,treeMap:a.treeMap!=null?Qo(a.treeMap).map(function(i){return Ld(i).map(function(s){return Un.fromJS(s)})}):a.treeMap,undoStack:a.undoStack!=null?Jt(a.undoStack.map(function(i){return Rr.fromJS(i)})):a.undoStack,currentContent:Rr.fromJS(a.currentContent)})))},e.set=function(a,i){var s=a.getImmutable().withMutations(function(c){var l=c.get("decorator"),v=l;i.decorator===null?v=null:i.decorator&&(v=i.decorator);var h=i.currentContent||a.getCurrentContent();if(v!==l){var y=c.get("treeMap"),w;v&&l?w=Pd(h,h.getBlockMap(),y,v,l):w=rs(h,v),c.merge({decorator:v,treeMap:w,nativelyRenderedContent:null});return}var d=a.getCurrentContent();h!==d&&c.set("treeMap",Fd(a,h.getBlockMap(),h.getEntityMap(),v)),c.merge(i)});return new e(s)};var r=e.prototype;r.toJS=function(){return this.getImmutable().toJS()},r.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},r.getCurrentContent=function(){return this.getImmutable().get("currentContent")},r.getUndoStack=function(){return this.getImmutable().get("undoStack")},r.getRedoStack=function(){return this.getImmutable().get("redoStack")},r.getSelection=function(){return this.getImmutable().get("selection")},r.getDecorator=function(){return this.getImmutable().get("decorator")},r.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},r.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},r.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},r.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},r.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(a,i){return e.set(a,{inlineStyleOverride:i})},r.getCurrentInlineStyle=function(){var a=this.getInlineStyleOverride();if(a!=null)return a;var i=this.getCurrentContent(),s=this.getSelection();return s.isCollapsed()?zd(i,s):qd(i,s)},r.getBlockTree=function(a){return this.getImmutable().getIn(["treeMap",a])},r.isSelectionAtStartOfContent=function(){var a=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(a,0,0)},r.isSelectionAtEndOfContent=function(){var a=this.getCurrentContent(),i=a.getBlockMap(),s=i.last(),c=s.getLength();return this.getSelection().hasEdgeWithin(s.getKey(),c,c)},r.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(a,i){return ts(a,i,!1)},e.forceSelection=function(a,i){return i.getHasFocus()||(i=i.set("hasFocus",!0)),ts(a,i,!0)},e.moveSelectionToEnd=function(a){var i=a.getCurrentContent(),s=i.getLastBlock(),c=s.getKey(),l=s.getLength();return e.acceptSelection(a,new bi({anchorKey:c,anchorOffset:l,focusKey:c,focusOffset:l,isBackward:!1}))},e.moveFocusToEnd=function(a){var i=e.moveSelectionToEnd(a);return e.forceSelection(i,i.getSelection())},e.push=function(a,i,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(a.getCurrentContent()===i)return a;var l=_n.getDirectionMap(i,a.getDirectionMap());if(!a.getAllowUndo())return e.set(a,{currentContent:i,directionMap:l,lastChangeType:s,selection:i.getSelectionAfter(),forceSelection:c,inlineStyleOverride:null});var v=a.getSelection(),h=a.getCurrentContent(),y=a.getUndoStack(),w=i;v!==h.getSelectionAfter()||Ud(a,s)?(y=y.push(h),w=w.set("selectionBefore",v)):(s==="insert-characters"||s==="backspace-character"||s==="delete-character")&&(w=w.set("selectionBefore",h.getSelectionBefore()));var d=a.getInlineStyleOverride(),E=["adjust-depth","change-block-type","split-block"];E.indexOf(s)===-1&&(d=null);var m={currentContent:w,directionMap:l,undoStack:y,redoStack:Jt(),lastChangeType:s,selection:i.getSelectionAfter(),forceSelection:c,inlineStyleOverride:d};return e.set(a,m)},e.undo=function(a){if(!a.getAllowUndo())return a;var i=a.getUndoStack(),s=i.peek();if(!s)return a;var c=a.getCurrentContent(),l=_n.getDirectionMap(s,a.getDirectionMap());return e.set(a,{currentContent:s,directionMap:l,undoStack:i.shift(),redoStack:a.getRedoStack().push(c),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:c.getSelectionBefore()})},e.redo=function(a){if(!a.getAllowUndo())return a;var i=a.getRedoStack(),s=i.peek();if(!s)return a;var c=a.getCurrentContent(),l=_n.getDirectionMap(s,a.getDirectionMap());return e.set(a,{currentContent:s,directionMap:l,undoStack:a.getUndoStack().push(c),redoStack:i.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:s.getSelectionAfter()})};function e(n){dc(this,"_immutable",void 0),this._immutable=n}return r.getImmutable=function(){return this._immutable},e}();function ts(r,e,n){return gc.set(r,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function rs(r,e){return r.getBlockMap().map(function(n){return Un.generate(r,n,e)}).toOrderedMap()}function Fd(r,e,n,a){var i=r.getCurrentContent().set("entityMap",n),s=i.getBlockMap(),c=r.getImmutable().get("treeMap");return c.merge(e.toSeq().filter(function(l,v){return l!==s.get(v)}).map(function(l){return Un.generate(i,l,a)}))}function Pd(r,e,n,a,i){return n.merge(e.toSeq().filter(function(s){return a.getDecorations(s,r)!==i.getDecorations(s,r)}).map(function(s){return Un.generate(r,s,a)}))}function Ud(r,e){var n=r.getLastChangeType();return e!==n||e!=="insert-characters"&&e!=="backspace-character"&&e!=="delete-character"}function zd(r,e){var n=e.getStartKey(),a=e.getStartOffset(),i=r.getBlockForKey(n);return a>0?i.getInlineStyleAt(a-1):i.getLength()?i.getInlineStyleAt(0):yc(r,n)}function qd(r,e){var n=e.getStartKey(),a=e.getStartOffset(),i=r.getBlockForKey(n);return a<i.getLength()?i.getInlineStyleAt(a):a>0?i.getInlineStyleAt(a-1):yc(r,n)}function yc(r,e){var n=r.getBlockMap().reverse().skipUntil(function(a,i){return i===e}).skip(1).skipUntil(function(a,i){return a.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):hc()}var ye=gc,Hd=ot,Vd=Yu,mc=le,Nt=ve,Wd=mc.OrderedMap,jd=mc.List,Wt=function(e,n,a){if(e){var i=n.get(e);i&&n.set(e,a(i))}},Gd=function(e,n,a,i,s){if(!s)return e;var c=i==="after",l=n.getKey(),v=a.getKey(),h=n.getParentKey(),y=n.getNextSiblingKey(),w=n.getPrevSiblingKey(),d=a.getParentKey(),E=c?a.getNextSiblingKey():v,m=c?v:a.getPrevSiblingKey();return e.withMutations(function(S){Wt(h,S,function(C){var T=C.getChildKeys();return C.merge({children:T.delete(T.indexOf(l))})}),Wt(w,S,function(C){return C.merge({nextSibling:y})}),Wt(y,S,function(C){return C.merge({prevSibling:w})}),Wt(E,S,function(C){return C.merge({prevSibling:l})}),Wt(m,S,function(C){return C.merge({nextSibling:l})}),Wt(d,S,function(C){var T=C.getChildKeys(),B=T.indexOf(v),O=c?B+1:B!==0?B-1:0,k=T.toArray();return k.splice(O,0,l),C.merge({children:jd(k)})}),Wt(l,S,function(C){return C.merge({nextSibling:E,prevSibling:m,parent:d})})})},Jd=function(e,n,a,i){i==="replace"&&(process.env.NODE_ENV!=="production"?Nt(!1,"Replacing blocks is not supported."):Nt(!1));var s=a.getKey(),c=n.getKey();c===s&&(process.env.NODE_ENV!=="production"?Nt(!1,"Block cannot be moved next to itself."):Nt(!1));var l=e.getBlockMap(),v=n instanceof Hd,h=[n],y=l.delete(c);v&&(h=[],y=l.withMutations(function(T){var B=n.getNextSiblingKey(),O=Vd(n,T);T.toSeq().skipUntil(function(k){return k.getKey()===c}).takeWhile(function(k){var M=k.getKey(),X=M===c,j=B&&M!==B,ue=!B&&k.getParentKey()&&(!O||M!==O);return!!(X||j||ue)}).forEach(function(k){h.push(k),T.delete(k.getKey())})}));var w=y.toSeq().takeUntil(function(T){return T===a}),d=y.toSeq().skipUntil(function(T){return T===a}).skip(1),E=h.map(function(T){return[T.getKey(),T]}),m=Wd();if(i==="before"){var S=e.getBlockBefore(s);!S||S.getKey()!==n.getKey()||(process.env.NODE_ENV!=="production"?Nt(!1,"Block cannot be moved next to itself."):Nt(!1)),m=w.concat([].concat(E,[[s,a]]),d).toOrderedMap()}else if(i==="after"){var C=e.getBlockAfter(s);!C||C.getKey()!==c||(process.env.NODE_ENV!=="production"?Nt(!1,"Block cannot be moved next to itself."):Nt(!1)),m=w.concat([[s,a]].concat(E),d).toOrderedMap()}return e.merge({blockMap:Gd(m,n,a,i,v),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:c,focusKey:c})})},Xd=Jd;function ns(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Yd(r,i,n[i])})}return r}function Yd(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Zd=jr,Qd=at,eh=Cr,th=ot,hr=We,is=ye,as=Ct,rh=Ht,_c=le,En=Xd,Ec=rh("draft_tree_data_support"),os=Ec?th:eh,nh=_c.List,ih=_c.Repeat,ah={insertAtomicBlock:function(e,n,a){var i=e.getCurrentContent(),s=e.getSelection(),c=hr.removeRange(i,s,"backward"),l=c.getSelectionAfter(),v=hr.splitBlock(c,l),h=v.getSelectionAfter(),y=hr.setBlockType(v,h,"atomic"),w=Qd.create({entity:n}),d={key:as(),type:"atomic",text:a,characterList:nh(ih(w,a.length))},E={key:as(),type:"unstyled"};Ec&&(d=ns({},d,{nextSibling:E.key}),E=ns({},E,{prevSibling:d.key}));var m=[new os(d),new os(E)],S=Zd.createFromArray(m),C=hr.replaceWithFragment(y,h,S),T=C.merge({selectionBefore:s,selectionAfter:C.getSelectionAfter().set("hasFocus",!0)});return is.push(e,T,"insert-fragment")},moveAtomicBlock:function(e,n,a,i){var s=e.getCurrentContent(),c=e.getSelection(),l;if(i==="before"||i==="after"){var v=s.getBlockForKey(i==="before"?a.getStartKey():a.getEndKey());l=En(s,n,v,i)}else{var h=hr.removeRange(s,a,"backward"),y=h.getSelectionAfter(),w=h.getBlockForKey(y.getFocusKey());if(y.getStartOffset()===0)l=En(h,n,w,"before");else if(y.getEndOffset()===w.getLength())l=En(h,n,w,"after");else{var d=hr.splitBlock(h,y),E=d.getSelectionAfter(),m=d.getBlockForKey(E.getFocusKey());l=En(d,n,m,"before")}}var S=l.merge({selectionBefore:c,selectionAfter:l.getSelectionAfter().set("hasFocus",!0)});return is.push(e,S,"move-block")}},oh=ah;function sh(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var uh=le,ch=uh.List,Oi=".",fh=function(){function r(n){sh(this,"_decorators",void 0),this._decorators=n.slice()}var e=r.prototype;return e.getDecorations=function(a,i){var s=Array(a.getText().length).fill(null);return this._decorators.forEach(function(c,l){var v=0,h=c.strategy,y=function(d,E){lh(s,d,E)&&(vh(s,d,E,l+Oi+v),v++)};h(a,y,i)}),ch(s)},e.getComponentForKey=function(a){var i=parseInt(a.split(Oi)[0],10);return this._decorators[i].component},e.getPropsForKey=function(a){var i=parseInt(a.split(Oi)[0],10);return this._decorators[i].props},r}();function lh(r,e,n){for(var a=e;a<n;a++)if(r[a]!=null)return!1;return!0}function vh(r,e,n,a){for(var i=e;i<n;i++)r[i]=a}var ph=fh;function dh(r){return typeof r=="object"?Object.keys(r).filter(function(e){return r[e]}).map(ss).join(" "):Array.prototype.map.call(arguments,ss).join(" ")}function ss(r){return r.replace(/\//g,"-")}var Yt=dh,Ea=ct,Sa=Yt,hh=le,gh=hh.Map,yh=Ea.createElement("ul",{className:Sa("public/DraftStyleDefault/ul")}),mh=Ea.createElement("ol",{className:Sa("public/DraftStyleDefault/ol")}),_h=Ea.createElement("pre",{className:Sa("public/DraftStyleDefault/pre")}),Eh=gh({"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:yh},"ordered-list-item":{element:"li",wrapper:mh},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:_h},unstyled:{element:"div",aliasedElements:["p"]}}),wa=Eh,Sc={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
4
4
  object-assign
@@ -1,5 +1,5 @@
1
1
  import st from "react";
2
- import { c as fa } from "./main-DgrDd7yr.js";
2
+ import { c as fa } from "./main-pmGK7En_.js";
3
3
  import fl from "react-dom";
4
4
  var Lu = { exports: {} };
5
5
  (function(r, e) {
@@ -1,3 +1,3 @@
1
- "use strict";const st=require("./main-Q8BvMLBB.cjs"),ft=require("./immutable-BQAZWDcd.cjs"),dt=require("./Draft-D54UBgJ2.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.Draft$1)})(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:`
1
+ "use strict";const st=require("./main-Djn1ADqt.cjs"),ft=require("./immutable-Di6R3iCI.cjs"),dt=require("./Draft-C057J8Fr.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.Draft$1)})(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("&nbsp;","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 $=M.style.color,K=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.add("color-".concat($.replace(/ /g,""))),K&&k.add("bgcolor-".concat(K.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;
@@ -1,6 +1,6 @@
1
- import { g as ct } from "./main-DgrDd7yr.js";
2
- import { r as ft } from "./immutable-BK0zUnIS.js";
3
- import { a as dt } from "./Draft-DS_t3bI2.js";
1
+ import { g as ct } from "./main-pmGK7En_.js";
2
+ import { r as ft } from "./immutable-4O8wgcff.js";
3
+ import { a as dt } from "./Draft-DJoxIJ7S.js";
4
4
  function pt(L, H) {
5
5
  for (var w = 0; w < H.length; w++) {
6
6
  const h = H[w];
@@ -1,4 +1,4 @@
1
- import { c as Ln } from "./main-DgrDd7yr.js";
1
+ import { c as Ln } from "./main-pmGK7En_.js";
2
2
  var Br = { exports: {} }, xe;
3
3
  function Kn() {
4
4
  return xe || (xe = 1, function(tn, Dn) {