UNPKG

@story-telling-reporter/react-embed-code-generator

Version:
1 lines 56.7 kB
(self.webpackChunk_story_telling_reporter_react_embed_code_generator=self.webpackChunk_story_telling_reporter_react_embed_code_generator||[]).push([[197],{8979:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return u(t)?t:N(t)}function n(t){return s(t)?t:P(t)}function i(t){return a(t)?t:H(t)}function o(t){return u(t)&&!h(t)?t:V(t)}function u(t){return!(!t||!t[c])}function s(t){return!(!t||!t[_])}function a(t){return!(!t||!t[p])}function h(t){return s(t)||a(t)}function f(t){return!(!t||!t[l])}e(n,r),e(i,r),e(o,r),r.isIterable=u,r.isKeyed=s,r.isIndexed=a,r.isAssociative=h,r.isOrdered=f,r.Keyed=n,r.Indexed=i,r.Set=o;var c="@@__IMMUTABLE_ITERABLE__@@",_="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",l="@@__IMMUTABLE_ORDERED__@@",v="delete",y=32,d=31,m={},g={value:!1},w={value:!1};function S(t){return t.value=!1,t}function z(t){t&&(t.value=!0)}function I(){}function b(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function q(t){return void 0===t.size&&(t.size=t.__iterate(M)),t.size}function D(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?q(t)+e:e}function M(){return!0}function E(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function O(t,e){return k(t,e,0)}function x(t,e){return k(t,e,e)}function k(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var A="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",K=A||j;function R(t){this.next=t}function U(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function L(){return{value:void 0,done:!0}}function T(t){return!!C(t)}function W(t){return t&&"function"==typeof t.next}function B(t){var e=C(t);return e&&e.call(t)}function C(t){var e=t&&(A&&t[A]||t[j]);if("function"==typeof e)return e}function J(t){return t&&"number"==typeof t.length}function N(t){return null==t?rt():u(t)?t.toSeq():function(t){var e=ot(t)||"object"==typeof t&&new Z(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function P(t){return null==t?rt().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():nt(t)}function H(t){return null==t?rt():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():it(t)}function V(t){return(null==t?rt():u(t)?s(t)?t.entrySeq():t:it(t)).toSetSeq()}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[K]=function(){return this},e(N,r),N.of=function(){return N(arguments)},N.prototype.toSeq=function(){return this},N.prototype.toString=function(){return this.__toString("Seq {","}")},N.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},N.prototype.__iterate=function(t,e){return ut(this,t,e,!0)},N.prototype.__iterator=function(t,e){return st(this,t,e,!0)},e(P,N),P.prototype.toKeyedSeq=function(){return this},e(H,N),H.of=function(){return H(arguments)},H.prototype.toIndexedSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq [","]")},H.prototype.__iterate=function(t,e){return ut(this,t,e,!1)},H.prototype.__iterator=function(t,e){return st(this,t,e,!1)},e(V,N),V.of=function(){return V(arguments)},V.prototype.toSetSeq=function(){return this},N.isSeq=et,N.Keyed=P,N.Set=V,N.Indexed=H;var Y,Q,X,F="@@__IMMUTABLE_SEQ__@@";function G(t){this._array=t,this.size=t.length}function Z(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function $(t){this._iterable=t,this.size=t.length||t.size}function tt(t){this._iterator=t,this._iteratorCache=[]}function et(t){return!(!t||!t[F])}function rt(){return Y||(Y=new G([]))}function nt(t){var e=Array.isArray(t)?new G(t).fromEntrySeq():W(t)?new tt(t).fromEntrySeq():T(t)?new $(t).fromEntrySeq():"object"==typeof t?new Z(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function it(t){var e=ot(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ot(t){return J(t)?new G(t):W(t)?new tt(t):T(t)?new $(t):void 0}function ut(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[r?o-u:u];if(!1===e(s[1],n?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function st(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new R((function(){var t=i[r?o-u:u];return u++>o?{value:void 0,done:!0}:U(e,n?t[0]:u-1,t[1])}))}return t.__iteratorUncached(e,r)}function at(t,e){return e?ht(e,t,"",{"":t}):ft(t)}function ht(t,e,r,n){return Array.isArray(e)?t.call(n,r,H(e).map((function(r,n){return ht(t,r,n,e)}))):ct(e)?t.call(n,r,P(e).map((function(r,n){return ht(t,r,n,e)}))):e}function ft(t){return Array.isArray(t)?H(t).map(ft).toList():ct(t)?P(t).map(ft).toMap():t}function ct(t){return t&&(t.constructor===Object||void 0===t.constructor)}function _t(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function pt(t,e){if(t===e)return!0;if(!u(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!h(t);if(f(t)){var n=t.entries();return e.every((function(t,e){var i=n.next().value;return i&&_t(i[1],t)&&(r||_t(i[0],e))}))&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var c=!0,_=e.__iterate((function(e,n){if(r?!t.has(e):i?!_t(e,t.get(n,m)):!_t(t.get(n,m),e))return c=!1,!1}));return c&&t.size===_}function lt(t,e){if(!(this instanceof lt))return new lt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Q)return Q;Q=this}}function vt(t,e){if(!t)throw new Error(e)}function yt(t,e,r){if(!(this instanceof yt))return new yt(t,e,r);if(vt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(X)return X;X=this}}function dt(){throw TypeError("Abstract")}function mt(){}function gt(){}function wt(){}N.prototype[F]=!0,e(G,H),G.prototype.get=function(t,e){return this.has(t)?this._array[D(this,t)]:e},G.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},G.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new R((function(){return i>n?{value:void 0,done:!0}:U(t,i,r[e?n-i++:i++])}))},e(Z,P),Z.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},Z.prototype.has=function(t){return this._object.hasOwnProperty(t)},Z.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[e?i-o:o];if(!1===t(r[u],u,this))return o+1}return o},Z.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new R((function(){var u=n[e?i-o:o];return o++>i?{value:void 0,done:!0}:U(t,u,r[u])}))},Z.prototype[l]=!0,e($,H),$.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=B(this._iterable),n=0;if(W(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},$.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=B(this._iterable);if(!W(r))return new R(L);var n=0;return new R((function(){var e=r.next();return e.done?e:U(t,n++,e.value)}))},e(tt,H),tt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var u=r.value;if(i[o]=u,!1===t(u,o++,this))break}return o},tt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new R((function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return U(t,i,n[i++])}))},e(lt,H),lt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},lt.prototype.get=function(t,e){return this.has(t)?this._value:e},lt.prototype.includes=function(t){return _t(this._value,t)},lt.prototype.slice=function(t,e){var r=this.size;return E(t,e,r)?this:new lt(this._value,x(e,r)-O(t,r))},lt.prototype.reverse=function(){return this},lt.prototype.indexOf=function(t){return _t(this._value,t)?0:-1},lt.prototype.lastIndexOf=function(t){return _t(this._value,t)?this.size:-1},lt.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},lt.prototype.__iterator=function(t,e){var r=this,n=0;return new R((function(){return n<r.size?U(t,n++,r._value):{value:void 0,done:!0}}))},lt.prototype.equals=function(t){return t instanceof lt?_t(this._value,t._value):pt(t)},e(yt,H),yt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},yt.prototype.get=function(t,e){return this.has(t)?this._start+D(this,t)*this._step:e},yt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},yt.prototype.slice=function(t,e){return E(t,e,this.size)?this:(t=O(t,this.size),(e=x(e,this.size))<=t?new yt(0,0):new yt(this.get(t,this._end),this.get(e,this._end),this._step))},yt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},yt.prototype.lastIndexOf=function(t){return this.indexOf(t)},yt.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},yt.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new R((function(){var u=i;return i+=e?-n:n,o>r?{value:void 0,done:!0}:U(t,o++,u)}))},yt.prototype.equals=function(t){return t instanceof yt?this._start===t._start&&this._end===t._end&&this._step===t._step:pt(this,t)},e(dt,r),e(mt,dt),e(gt,dt),e(wt,dt),dt.Keyed=mt,dt.Indexed=gt,dt.Set=wt;var St="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function zt(t){return t>>>1&1073741824|3221225471&t}function It(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)r^=t/=4294967295;return zt(r)}if("string"===e)return t.length>kt?function(t){var e=Kt[t];return void 0===e&&(e=bt(t),jt===At&&(jt=0,Kt={}),jt++,Kt[t]=e),e}(t):bt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(Et&&void 0!==(e=Mt.get(t)))return e;if(void 0!==(e=t[xt]))return e;if(!Dt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[xt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Ot,1073741824&Ot&&(Ot=0),Et)Mt.set(t,e);else{if(void 0!==qt&&!1===qt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Dt)Object.defineProperty(t,xt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[xt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[xt]=e}}return e}(t);if("function"==typeof t.toString)return bt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function bt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return zt(e)}var qt=Object.isExtensible,Dt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();var Mt,Et="function"==typeof WeakMap;Et&&(Mt=new WeakMap);var Ot=0,xt="__immutablehash__";"function"==typeof Symbol&&(xt=Symbol(xt));var kt=16,At=255,jt=0,Kt={};function Rt(t){vt(t!==1/0,"Cannot perform this action with an infinite size.")}function Ut(t){return null==t?Ft():Lt(t)&&!f(t)?t:Ft().withMutations((function(e){var r=n(t);Rt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function Lt(t){return!(!t||!t[Wt])}e(Ut,mt),Ut.prototype.toString=function(){return this.__toString("Map {","}")},Ut.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Ut.prototype.set=function(t,e){return Gt(this,t,e)},Ut.prototype.setIn=function(t,e){return this.updateIn(t,m,(function(){return e}))},Ut.prototype.remove=function(t){return Gt(this,t,m)},Ut.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return m}))},Ut.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Ut.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=oe(this,er(t),e,r);return n===m?void 0:n},Ut.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ft()},Ut.prototype.merge=function(){return ee(this,void 0,arguments)},Ut.prototype.mergeWith=function(e){return ee(this,e,t.call(arguments,1))},Ut.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Ft(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]}))},Ut.prototype.mergeDeep=function(){return ee(this,re,arguments)},Ut.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return ee(this,ne(e),r)},Ut.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Ft(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]}))},Ut.prototype.sort=function(t){return Ee(Pe(this,t))},Ut.prototype.sortBy=function(t,e){return Ee(Pe(this,e,t))},Ut.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Ut.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new I)},Ut.prototype.asImmutable=function(){return this.__ensureOwner()},Ut.prototype.wasAltered=function(){return this.__altered},Ut.prototype.__iterator=function(t,e){return new Vt(this,t,e)},Ut.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},Ut.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Xt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ut.isMap=Lt;var Tt,Wt="@@__IMMUTABLE_MAP__@@",Bt=Ut.prototype;function Ct(t,e){this.ownerID=t,this.entries=e}function Jt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function Nt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function Pt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Ht(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function Vt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Qt(t._root)}function Yt(t,e){return U(t,e[0],e[1])}function Qt(t,e){return{node:t,index:0,__prev:e}}function Xt(t,e,r,n){var i=Object.create(Bt);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ft(){return Tt||(Tt=Xt(0))}function Gt(t,e,r){var n,i;if(t._root){var o=S(g),u=S(w);if(n=Zt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===m?-1:1:0)}else{if(r===m)return t;i=1,n=new Ct(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Xt(i,n):Ft()}function Zt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===m?t:(z(s),z(u),new Ht(e,n,[i,o]))}function $t(t){return t.constructor===Ht||t.constructor===Pt}function te(t,e,r,n,i){if(t.keyHash===n)return new Pt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&d,s=(0===r?n:n>>>r)&d;return new Jt(e,1<<u|1<<s,u===s?[te(t,e,r+5,n,i)]:(o=new Ht(e,n,i),u<s?[t,o]:[o,t]))}function ee(t,e,r){for(var i=[],o=0;o<r.length;o++){var s=r[o],a=n(s);u(s)||(a=a.map((function(t){return at(t)}))),i.push(a)}return ie(t,e,i)}function re(t,e,r){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):_t(t,e)?t:e}function ne(t){return function(e,r,n){if(e&&e.mergeDeepWith&&u(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return _t(e,i)?e:i}}function ie(t,e,r){return 0===(r=r.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations((function(t){for(var n=e?function(r,n){t.update(n,m,(function(t){return t===m?r:e(t,r,n)}))}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)})):t.constructor(r[0])}function oe(t,e,r,n){var i=t===m,o=e.next();if(o.done){var u=i?r:t,s=n(u);return s===u?t:s}vt(i||t&&t.set,"invalid keyPath");var a=o.value,h=i?m:t.get(a,m),f=oe(h,e,r,n);return f===h?t:f===m?t.remove(a):(i?Ft():t).set(a,f)}function ue(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function se(t,e,r,n){var i=n?t:b(t);return i[e]=r,i}Bt[Wt]=!0,Bt[v]=Bt.remove,Bt.removeIn=Bt.deleteIn,Ct.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(r,i[o][0]))return i[o][1];return n},Ct.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===m,a=this.entries,h=0,f=a.length;h<f&&!_t(n,a[h][0]);h++);var c=h<f;if(c?a[h][1]===i:s)return this;if(z(u),(s||!c)&&z(o),!s||1!==a.length){if(!c&&!s&&a.length>=ae)return function(t,e,r,n){t||(t=new I);for(var i=new Ht(t,It(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,n,i);var _=t&&t===this.ownerID,p=_?a:b(a);return c?s?h===f-1?p.pop():p[h]=p.pop():p[h]=[n,i]:p.push([n,i]),_?(this.entries=p,this):new Ct(t,p)}},Jt.prototype.get=function(t,e,r,n){void 0===e&&(e=It(r));var i=1<<((0===t?e:e>>>t)&d),o=this.bitmap;return o&i?this.nodes[ue(o&i-1)].get(t+5,e,r,n):n},Jt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=It(n));var s=(0===e?r:r>>>e)&d,a=1<<s,h=this.bitmap,f=!!(h&a);if(!f&&i===m)return this;var c=ue(h&a-1),_=this.nodes,p=f?_[c]:void 0,l=Zt(p,t,e+5,r,n,i,o,u);if(l===p)return this;if(!f&&l&&_.length>=he)return function(t,e,r,n,i){for(var o=0,u=new Array(y),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Nt(t,o+1,u)}(t,_,h,s,l);if(f&&!l&&2===_.length&&$t(_[1^c]))return _[1^c];if(f&&l&&1===_.length&&$t(l))return l;var v=t&&t===this.ownerID,g=f?l?h:h^a:h|a,w=f?l?se(_,c,l,v):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}(_,c,v):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}(_,c,l,v);return v?(this.bitmap=g,this.nodes=w,this):new Jt(t,g,w)},Nt.prototype.get=function(t,e,r,n){void 0===e&&(e=It(r));var i=(0===t?e:e>>>t)&d,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},Nt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=It(n));var s=(0===e?r:r>>>e)&d,a=i===m,h=this.nodes,f=h[s];if(a&&!f)return this;var c=Zt(f,t,e+5,r,n,i,o,u);if(c===f)return this;var _=this.count;if(f){if(!c&&--_<fe)return function(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,h=e.length;s<h;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new Jt(t,i,u)}(t,h,_,s)}else _++;var p=t&&t===this.ownerID,l=se(h,s,c,p);return p?(this.count=_,this.nodes=l,this):new Nt(t,_,l)},Pt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(r,i[o][0]))return i[o][1];return n},Pt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=It(n));var s=i===m;if(r!==this.keyHash)return s?this:(z(u),z(o),te(this,t,e,r,[n,i]));for(var a=this.entries,h=0,f=a.length;h<f&&!_t(n,a[h][0]);h++);var c=h<f;if(c?a[h][1]===i:s)return this;if(z(u),(s||!c)&&z(o),s&&2===f)return new Ht(t,this.keyHash,a[1^h]);var _=t&&t===this.ownerID,p=_?a:b(a);return c?s?h===f-1?p.pop():p[h]=p.pop():p[h]=[n,i]:p.push([n,i]),_?(this.entries=p,this):new Pt(t,this.keyHash,p)},Ht.prototype.get=function(t,e,r,n){return _t(r,this.entry[0])?this.entry[1]:n},Ht.prototype.update=function(t,e,r,n,i,o,u){var s=i===m,a=_t(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(z(u),s?void z(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Ht(t,this.keyHash,[n,i]):(z(o),te(this,t,e,It(n),[n,i])))},Ct.prototype.iterate=Pt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Jt.prototype.iterate=Nt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},Ht.prototype.iterate=function(t,e){return t(this.entry)},e(Vt,R),Vt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return Yt(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return Yt(t,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return Yt(t,o.entry);e=this._stack=Qt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ae=8,he=16,fe=8;function ce(t){var e=Se();if(null==t)return e;if(_e(t))return t;var r=i(t),n=r.size;return 0===n?e:(Rt(n),n>0&&n<y?we(0,n,5,null,new ve(r.toArray())):e.withMutations((function(t){t.setSize(n),r.forEach((function(e,r){return t.set(r,e)}))})))}function _e(t){return!(!t||!t[pe])}e(ce,gt),ce.of=function(){return this(arguments)},ce.prototype.toString=function(){return this.__toString("List [","]")},ce.prototype.get=function(t,e){if((t=D(this,t))>=0&&t<this.size){var r=be(this,t+=this._origin);return r&&r.array[t&d]}return e},ce.prototype.set=function(t,e){return function(t,e,r){if((e=D(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?qe(t,e).set(0,r):qe(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o=S(w);return e>=Me(t._capacity)?n=ze(n,t.__ownerID,0,e,r,o):i=ze(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):we(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},ce.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},ce.prototype.insert=function(t,e){return this.splice(t,0,e)},ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Se()},ce.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){qe(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},ce.prototype.pop=function(){return qe(this,0,-1)},ce.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){qe(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},ce.prototype.shift=function(){return qe(this,1)},ce.prototype.merge=function(){return De(this,void 0,arguments)},ce.prototype.mergeWith=function(e){return De(this,e,t.call(arguments,1))},ce.prototype.mergeDeep=function(){return De(this,re,arguments)},ce.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return De(this,ne(e),r)},ce.prototype.setSize=function(t){return qe(this,0,t)},ce.prototype.slice=function(t,e){var r=this.size;return E(t,e,r)?this:qe(this,O(t,r),x(e,r))},ce.prototype.__iterator=function(t,e){var r=0,n=ge(this,e);return new R((function(){var e=n();return e===me?{value:void 0,done:!0}:U(t,r++,e)}))},ce.prototype.__iterate=function(t,e){for(var r,n=0,i=ge(this,e);(r=i())!==me&&!1!==t(r,n++,this););return n},ce.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?we(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},ce.isList=_e;var pe="@@__IMMUTABLE_LIST__@@",le=ce.prototype;function ve(t,e){this.array=t,this.ownerID=e}le[pe]=!0,le[v]=le.remove,le.setIn=Bt.setIn,le.deleteIn=le.removeIn=Bt.removeIn,le.update=Bt.update,le.updateIn=Bt.updateIn,le.mergeIn=Bt.mergeIn,le.mergeDeepIn=Bt.mergeDeepIn,le.withMutations=Bt.withMutations,le.asMutable=Bt.asMutable,le.asImmutable=Bt.asImmutable,le.wasAltered=Bt.wasAltered,ve.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&d;if(n>=this.array.length)return new ve([],t);var i,o=0===n;if(e>0){var u=this.array[n];if((i=u&&u.removeBefore(t,e-5,r))===u&&o)return this}if(o&&!i)return this;var s=Ie(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},ve.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&d;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var u=Ie(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var ye,de,me={};function ge(t,e){var r=t._origin,n=t._capacity,i=Me(n),o=t._tail;return u(t._root,t._level,0);function u(t,s,a){return 0===s?function(t,u){var s=u===i?o&&o.array:t&&t.array,a=u>r?0:r-u,h=n-u;return h>y&&(h=y),function(){if(a===h)return me;var t=e?--h:a++;return s&&s[t]}}(t,a):function(t,i,o){var s,a=t&&t.array,h=o>r?0:r-o>>i,f=1+(n-o>>i);return f>y&&(f=y),function(){for(;;){if(s){var t=s();if(t!==me)return t;s=null}if(h===f)return me;var r=e?--f:h++;s=u(a&&a[r],i-5,o+(r<<i))}}}(t,s,a)}}function we(t,e,r,n,i,o,u){var s=Object.create(le);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function Se(){return ye||(ye=we(0,0,5))}function ze(t,e,r,n,i,o){var u,s=n>>>r&d,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(r>0){var h=t&&t.array[s],f=ze(h,e,r-5,n,i,o);return f===h?t:((u=Ie(t,e)).array[s]=f,u)}return a&&t.array[s]===i?t:(z(o),u=Ie(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function Ie(t,e){return e&&t&&e===t.ownerID?t:new ve(t?t.array.slice():[],e)}function be(t,e){if(e>=Me(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&d],n-=5;return r}}function qe(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new I,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:r<0?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,h=t._root,f=0;u+f<0;)h=new ve(h&&h.array.length?[void 0,h]:[],n),f+=1<<(a+=5);f&&(u+=f,i+=f,s+=f,o+=f);for(var c=Me(o),_=Me(s);_>=1<<a+5;)h=new ve(h&&h.array.length?[h]:[],n),a+=5;var p=t._tail,l=_<c?be(t,s-1):_>c?new ve([],n):p;if(p&&_>c&&u<o&&p.array.length){for(var v=h=Ie(h,n),y=a;y>5;y-=5){var m=c>>>y&d;v=v.array[m]=Ie(v.array[m],n)}v.array[c>>>5&d]=p}if(s<o&&(l=l&&l.removeAfter(n,0,s)),u>=_)u-=_,s-=_,a=5,h=null,l=l&&l.removeBefore(n,0,u);else if(u>i||_<c){for(f=0;h;){var g=u>>>a&d;if(g!==_>>>a&d)break;g&&(f+=(1<<a)*g),a-=5,h=h.array[g]}h&&u>i&&(h=h.removeBefore(n,a,u-f)),h&&_<c&&(h=h.removeAfter(n,a,_-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=h,t._tail=l,t.__hash=void 0,t.__altered=!0,t):we(u,s,a,h,l)}function De(t,e,r){for(var n=[],o=0,s=0;s<r.length;s++){var a=r[s],h=i(a);h.size>o&&(o=h.size),u(a)||(h=h.map((function(t){return at(t)}))),n.push(h)}return o>t.size&&(t=t.setSize(o)),ie(t,e,n)}function Me(t){return t<y?0:t-1>>>5<<5}function Ee(t){return null==t?ke():Oe(t)?t:ke().withMutations((function(e){var r=n(t);Rt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function Oe(t){return Lt(t)&&f(t)}function xe(t,e,r,n){var i=Object.create(Ee.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function ke(){return de||(de=xe(Ft(),Se()))}function Ae(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===m){if(!a)return t;u.size>=y&&u.size>=2*o.size?(n=(i=u.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):xe(n,i)}function je(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ke(t){this._iter=t,this.size=t.size}function Re(t){this._iter=t,this.size=t.size}function Ue(t){this._iter=t,this.size=t.size}function Le(t){var e=Ze(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=$e,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new R((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,r)},e}function Te(t,e,r){var n=Ze(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,m);return o===m?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,u){return!1!==n(e.call(r,t,i,u),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(2,i);return new R((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return U(n,s,e.call(r,u[1],s,t),i)}))},n}function We(t,e){var r=Ze(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Le(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=$e,r.__iterate=function(e,r){var n=this;return t.__iterate((function(t,r){return e(t,r,n)}),!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function Be(t,e,r,n){var i=Ze(t);return n&&(i.has=function(n){var i=t.get(n,m);return i!==m&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,m);return o!==m&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate((function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)}),o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(2,o),s=0;return new R((function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,h=a[0],f=a[1];if(e.call(r,f,h,t))return U(i,n?h:s++,f,o)}}))},i}function Ce(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),E(e,r,i))return t;var o=O(e,i),u=x(r,i);if(o!=o||u!=u)return Ce(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a==a&&(s=a<0?0:a);var h=Ze(t);return h.size=0===s?s:t.size&&s||void 0,!n&&et(t)&&s>=0&&(h.get=function(e,r){return(e=D(this,e))>=0&&e<s?t.get(e+o,r):r}),h.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,h=0;return t.__iterate((function(t,r){if(!a||!(a=u++<o))return h++,!1!==e(t,n?r:h-1,i)&&h!==s})),h},h.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);var i=0!==s&&t.__iterator(e,r),u=0,a=0;return new R((function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return n||1===e?t:U(e,a-1,0===e?void 0:t.value[1],t)}))},h}function Je(t,e,r,n){var i=Ze(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate((function(t,o,h){if(!s||!(s=e.call(r,t,o,h)))return a++,i(t,n?o:a-1,u)})),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),a=!0,h=0;return new R((function(){var t,o,f;do{if((t=s.next()).done)return n||1===i?t:U(i,h++,0===i?void 0:t.value[1],t);var c=t.value;o=c[0],f=c[1],a&&(a=e.call(r,f,o,u))}while(a);return 2===i?t:U(i,o,f,t)}))},i}function Ne(t,e,r){var n=Ze(t);return n.__iterateUncached=function(n,i){var o=0,s=!1;return function t(a,h){var f=this;a.__iterate((function(i,a){return(!e||h<e)&&u(i)?t(i,h+1):!1===n(i,r?a:o++,f)&&(s=!0),!s}),i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),s=[],a=0;return new R((function(){for(;o;){var t=o.next();if(!1===t.done){var h=t.value;if(2===n&&(h=h[1]),e&&!(s.length<e)||!u(h))return r?t:U(n,a++,h,t);s.push(o),o=h.__iterator(n,i)}else o=s.pop()}return{value:void 0,done:!0}}))},n}function Pe(t,e,r){e||(e=tr);var n=s(t),i=0,o=t.toSeq().map((function(e,n){return[n,e,i++,r?r(e,n,t):e]})).toArray();return o.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?P(o):a(t)?H(o):V(o)}function He(t,e,r){if(e||(e=tr),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return Ve(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return Ve(e,t,r)?r:t}))}function Ve(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Ye(t,e,n){var i=Ze(t);return i.size=new G(n).map((function(t){return t.size})).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map((function(t){return t=r(t),B(i?t.reverse():t)})),u=0,s=!1;return new R((function(){var r;return s||(r=o.map((function(t){return t.next()})),s=r.some((function(t){return t.done}))),s?{value:void 0,done:!0}:U(t,u++,e.apply(null,r.map((function(t){return t.value}))))}))},i}function Qe(t,e){return et(t)?e:t.constructor(e)}function Xe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Fe(t){return Rt(t.size),q(t)}function Ge(t){return s(t)?n:a(t)?i:o}function Ze(t){return Object.create((s(t)?P:a(t)?H:V).prototype)}function $e(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):N.prototype.cacheResult.call(this)}function tr(t,e){return t>e?1:t<e?-1:0}function er(t){var e=B(t);if(!e){if(!J(t))throw new TypeError("Expected iterable or array-like: "+t);e=B(r(t))}return e}function rr(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);(function(t,e){try{e.forEach(ur.bind(void 0,t))}catch(t){}})(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Ut(o)},i=n.prototype=Object.create(nr);return i.constructor=n,n}e(Ee,Ut),Ee.of=function(){return this(arguments)},Ee.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ee.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Ee.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ke()},Ee.prototype.set=function(t,e){return Ae(this,t,e)},Ee.prototype.remove=function(t){return Ae(this,t,m)},Ee.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ee.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},Ee.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ee.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?xe(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Ee.isOrderedMap=Oe,Ee.prototype[l]=!0,Ee.prototype[v]=Ee.prototype.remove,e(je,P),je.prototype.get=function(t,e){return this._iter.get(t,e)},je.prototype.has=function(t){return this._iter.has(t)},je.prototype.valueSeq=function(){return this._iter.valueSeq()},je.prototype.reverse=function(){var t=this,e=We(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},je.prototype.map=function(t,e){var r=this,n=Te(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},je.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?Fe(this):0,function(i){return t(i,e?--r:r++,n)}),e)},je.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?Fe(this):0;return new R((function(){var i=r.next();return i.done?i:U(t,e?--n:n++,i.value,i)}))},je.prototype[l]=!0,e(Ke,H),Ke.prototype.includes=function(t){return this._iter.includes(t)},Ke.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate((function(e){return t(e,n++,r)}),e)},Ke.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e),n=0;return new R((function(){var e=r.next();return e.done?e:U(t,n++,e.value,e)}))},e(Re,V),Re.prototype.has=function(t){return this._iter.includes(t)},Re.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},Re.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new R((function(){var e=r.next();return e.done?e:U(t,e.value,e.value,e)}))},e(Ue,P),Ue.prototype.entrySeq=function(){return this._iter.toSeq()},Ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){Xe(e);var n=u(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},Ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new R((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Xe(n);var i=u(n);return U(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}}))},Ke.prototype.cacheResult=je.prototype.cacheResult=Re.prototype.cacheResult=Ue.prototype.cacheResult=$e,e(rr,mt),rr.prototype.toString=function(){return this.__toString(or(this)+" {","}")},rr.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},rr.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},rr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=ir(this,Ft()))},rr.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+or(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:ir(this,r)},rr.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:ir(this,e)},rr.prototype.wasAltered=function(){return this._map.wasAltered()},rr.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterator(t,e)},rr.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterate(t,e)},rr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?ir(this,e,t):(this.__ownerID=t,this._map=e,this)};var nr=rr.prototype;function ir(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function or(t){return t._name||t.constructor.name||"Record"}function ur(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){vt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function sr(t){return null==t?lr():ar(t)&&!f(t)?t:lr().withMutations((function(e){var r=o(t);Rt(r.size),r.forEach((function(t){return e.add(t)}))}))}function ar(t){return!(!t||!t[fr])}nr[v]=nr.remove,nr.deleteIn=nr.removeIn=Bt.removeIn,nr.merge=Bt.merge,nr.mergeWith=Bt.mergeWith,nr.mergeIn=Bt.mergeIn,nr.mergeDeep=Bt.mergeDeep,nr.mergeDeepWith=Bt.mergeDeepWith,nr.mergeDeepIn=Bt.mergeDeepIn,nr.setIn=Bt.setIn,nr.update=Bt.update,nr.updateIn=Bt.updateIn,nr.withMutations=Bt.withMutations,nr.asMutable=Bt.asMutable,nr.asImmutable=Bt.asImmutable,e(sr,wt),sr.of=function(){return this(arguments)},sr.fromKeys=function(t){return this(n(t).keySeq())},sr.prototype.toString=function(){return this.__toString("Set {","}")},sr.prototype.has=function(t){return this._map.has(t)},sr.prototype.add=function(t){return _r(this,this._map.set(t,!0))},sr.prototype.remove=function(t){return _r(this,this._map.remove(t))},sr.prototype.clear=function(){return _r(this,this._map.clear())},sr.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){for(var r=0;r<e.length;r++)o(e[r]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},sr.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.every((function(t){return t.includes(r)}))||t.remove(r)}))}))},sr.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.some((function(t){return t.includes(r)}))&&t.remove(r)}))}))},sr.prototype.merge=function(){return this.union.apply(this,arguments)},sr.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},sr.prototype.sort=function(t){return vr(Pe(this,t))},sr.prototype.sortBy=function(t,e){return vr(Pe(this,e,t))},sr.prototype.wasAltered=function(){return this._map.wasAltered()},sr.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e,n){return t(n,n,r)}),e)},sr.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},sr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},sr.isSet=ar;var hr,fr="@@__IMMUTABLE_SET__@@",cr=sr.prototype;function _r(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function pr(t,e){var r=Object.create(cr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function lr(){return hr||(hr=pr(Ft()))}function vr(t){return null==t?wr():yr(t)?t:wr().withMutations((function(e){var r=o(t);Rt(r.size),r.forEach((function(t){return e.add(t)}))}))}function yr(t){return ar(t)&&f(t)}cr[fr]=!0,cr[v]=cr.remove,cr.mergeDeep=cr.merge,cr.mergeDeepWith=cr.mergeWith,cr.withMutations=Bt.withMutations,cr.asMutable=Bt.asMutable,cr.asImmutable=Bt.asImmutable,cr.__empty=lr,cr.__make=pr,e(vr,sr),vr.of=function(){return this(arguments)},vr.fromKeys=function(t){return this(n(t).keySeq())},vr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},vr.isOrderedSet=yr;var dr,mr=vr.prototype;function gr(t,e){var r=Object.create(mr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function wr(){return dr||(dr=gr(ke()))}function Sr(t){return null==t?Mr():zr(t)?t:Mr().unshiftAll(t)}function zr(t){return!(!t||!t[br])}mr[l]=!0,mr.__empty=wr,mr.__make=gr,e(Sr,gt),Sr.of=function(){return this(arguments)},Sr.prototype.toString=function(){return this.__toString("Stack [","]")},Sr.prototype.get=function(t,e){var r=this._head;for(t=D(this,t);r&&t--;)r=r.next;return r?r.value:e},Sr.prototype.peek=function(){return this._head&&this._head.value},Sr.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Dr(t,e)},Sr.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Rt(t.size);var e=this.size,r=this._head;return t.reverse().forEach((function(t){e++,r={value:t,next:r}})),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Dr(e,r)},Sr.prototype.pop=function(){return this.slice(1)},Sr.prototype.unshift=function(){return this.push.apply(this,arguments)},Sr.prototype.unshiftAll=function(t){return this.pushAll(t)},Sr.prototype.shift=function(){return this.pop.apply(this,arguments)},Sr.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Mr()},Sr.prototype.slice=function(t,e){if(E(t,e,this.size))return this;var r=O(t,this.size);if(x(e,this.size)!==this.size)return gt.prototype.slice.call(this,t,e);for(var n=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):Dr(n,i)},Sr.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Dr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sr.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},Sr.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new R((function(){if(n){var e=n.value;return n=n.next,U(t,r++,e)}return{value:void 0,done:!0}}))},Sr.isStack=zr;var Ir,br="@@__IMMUTABLE_STACK__@@",qr=Sr.prototype;function Dr(t,e,r,n){var i=Object.create(qr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Mr(){return Ir||(Ir=Dr(0))}function Er(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}qr[br]=!0,qr.withMutations=Bt.withMutations,qr.asMutable=Bt.asMutable,qr.asImmutable=Bt.asImmutable,qr.wasAltered=Bt.wasAltered,r.Iterator=R,Er(r,{toArray:function(){Rt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,r){t[r]=e})),t},toIndexedSeq:function(){return new Ke(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new je(this,!0)},toMap:function(){return Ut(this.toKeyedSeq())},toObject:function(){Rt(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t},toOrderedMap:function(){return Ee(this.toKeyedSeq())},toOrderedSet:function(){return vr(s(this)?this.valueSeq():this)},toSet:function(){return sr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Re(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sr(s(this)?this.valueSeq():this)},toList:function(){return ce(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Qe(this,function(t,e){var r=s(t),i=[t].concat(e).map((function(t){return u(t)?r&&(t=n(t)):t=r?nt(t):it(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||r&&s(o)||a(t)&&a(o))return o}var h=new G(i);return r?h=h.toKeyedSeq():a(t)||(h=h.toSetSeq()),(h=h.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),h}(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return _t(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Rt(this.size);var r=!0;return this.__iterate((function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1})),r},filter:function(t,e){return Qe(this,Be(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate((function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1})),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Rt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Rt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Qe(this,Te(this,t,e))},reduce:function(t,e,r){var n,i;return Rt(this.size),arguments.length<2?i=!0:n=e,this.__iterate((function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)})),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Qe(this,We(this,!0))},slice:function(t,e){return Qe(this,Ce(this,t,e,!0))},some:function(t,e){return!this.every(jr(t),e)},sort:function(t){return Qe(this,Pe(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return q(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=Ut().asMutable();return t.__iterate((function(i,o){n.update(e.call(r,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,e)},equals:function(t){return pt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new G(t._cache);var e=t.toSeq().map(Ar).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(jr(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(M)},flatMap:function(t,e){return Qe(this,function(t,e,r){var n=Ge(t);return t.toSeq().map((function(i,o){return n(e.call(r,i,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Qe(this,Ne(this,t,!0))},fromEntrySeq:function(){return ne