react-map-gl/component---examples-layers-src-app-js-3a34e0db161255746f46.js

1 line
61 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{"/b8u":function(t,e,r){var n=r("STAE");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"33Wh":function(t,e,r){var n=r("yoRg"),i=r("eDl+");t.exports=Object.keys||function(t){return n(t,i)}},"6LWA":function(t,e,r){var n=r("xrYK");t.exports=Array.isArray||function(t){return"Array"==n(t)}},A2ZE:function(t,e,r){var n=r("HAuM");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},"G+Rx":function(t,e,r){var n=r("0GbY");t.exports=n("document","documentElement")},JPcv:function(t,e,r){r("XbcX"),r("E9XD"),r("c9m3"),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:C(t)}function n(t){return s(t)?t:J(t)}function i(t){return a(t)?t:N(t)}function o(t){return u(t)&&!c(t)?t:H(t)}function u(t){return!(!t||!t[h])}function s(t){return!(!t||!t[p])}function a(t){return!(!t||!t[_])}function c(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=c,r.isOrdered=f,r.Keyed=n,r.Indexed=i,r.Set=o;var h="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",_="@@__IMMUTABLE_INDEXED__@@",l="@@__IMMUTABLE_ORDERED__@@",v={},y={value:!1},d={value:!1};function m(t){return t.value=!1,t}function g(t){t&&(t.value=!0)}function w(){}function S(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 b(t){return void 0===t.size&&(t.size=t.__iterate(z)),t.size}function I(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?b(t)+e:e}function z(){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 M(t,e,0)}function D(t,e){return M(t,e,e)}function M(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var q,k,x,A="function"==typeof Symbol&&Symbol.iterator,j=A||"@@iterator";function R(t){this.next=t}function K(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 U(){return{value:void 0,done:!0}}function T(t){return!!B(t)}function L(t){return t&&"function"==typeof t.next}function W(t){var e=B(t);return e&&e.call(t)}function B(t){var e=t&&(A&&t[A]||t["@@iterator"]);if("function"==typeof e)return e}function P(t){return t&&"number"==typeof t.length}function C(t){return null==t?Z():u(t)?t.toSeq():function(t){var e=tt(t)||"object"==typeof t&&new X(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function J(t){return null==t?Z().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():G(t)}function N(t){return null==t?Z():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():$(t)}function H(t){return(null==t?Z():u(t)?s(t)?t.entrySeq():t:$(t)).toSetSeq()}function V(t){this._array=t,this.size=t.length}function X(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function Y(t){this._iterable=t,this.size=t.length||t.size}function F(t){this._iterator=t,this._iteratorCache=[]}function Q(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function Z(){return q||(q=new V([]))}function G(t){var e=Array.isArray(t)?new V(t).fromEntrySeq():L(t)?new F(t).fromEntrySeq():T(t)?new Y(t).fromEntrySeq():"object"==typeof t?new X(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function $(t){var e=tt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function tt(t){return P(t)?new V(t):L(t)?new F(t):T(t)?new Y(t):void 0}function et(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 rt(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}:K(e,n?t[0]:u-1,t[1])}))}return t.__iteratorUncached(e,r)}function nt(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,N(r).map((function(n,i){return t(e,n,i,r)}))):ot(r)?e.call(i,n,J(r).map((function(n,i){return t(e,n,i,r)}))):r}(e,t,"",{"":t}):it(t)}function it(t){return Array.isArray(t)?N(t).map(it).toList():ot(t)?J(t).map(it).toMap():t}function ot(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ut(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 st(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=!c(t);if(f(t)){var n=t.entries();return e.every((function(t,e){var i=n.next().value;return i&&ut(i[1],t)&&(r||ut(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 h=!0,p=e.__iterate((function(e,n){if(r?!t.has(e):i?!ut(e,t.get(n,v)):!ut(t.get(n,v),e))return h=!1,!1}));return h&&t.size===p}function at(t,e){if(!(this instanceof at))return new at(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(k)return k;k=this}}function ct(t,e){if(!t)throw new Error(e)}function ft(t,e,r){if(!(this instanceof ft))return new ft(t,e,r);if(ct(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 ht(){throw TypeError("Abstract")}function pt(){}function _t(){}function lt(){}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[j]=function(){return this},e(C,r),C.of=function(){return C(arguments)},C.prototype.toSeq=function(){return this},C.prototype.toString=function(){return this.__toString("Seq {","}")},C.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},C.prototype.__iterate=function(t,e){return et(this,t,e,!0)},C.prototype.__iterator=function(t,e){return rt(this,t,e,!0)},e(J,C),J.prototype.toKeyedSeq=function(){return this},e(N,C),N.of=function(){return N(arguments)},N.prototype.toIndexedSeq=function(){return this},N.prototype.toString=function(){return this.__toString("Seq [","]")},N.prototype.__iterate=function(t,e){return et(this,t,e,!1)},N.prototype.__iterator=function(t,e){return rt(this,t,e,!1)},e(H,C),H.of=function(){return H(arguments)},H.prototype.toSetSeq=function(){return this},C.isSeq=Q,C.Keyed=J,C.Set=H,C.Indexed=N,C.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,e(V,N),V.prototype.get=function(t,e){return this.has(t)?this._array[I(this,t)]:e},V.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},V.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}:K(t,i,r[e?n-i++:i++])}))},e(X,J),X.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},X.prototype.has=function(t){return this._object.hasOwnProperty(t)},X.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},X.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}:K(t,u,r[u])}))},X.prototype[l]=!0,e(Y,N),Y.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=W(this._iterable),n=0;if(L(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},Y.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=W(this._iterable);if(!L(r))return new R(U);var n=0;return new R((function(){var e=r.next();return e.done?e:K(t,n++,e.value)}))},e(F,N),F.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},F.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 K(t,i,n[i++])}))},e(at,N),at.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},at.prototype.get=function(t,e){return this.has(t)?this._value:e},at.prototype.includes=function(t){return ut(this._value,t)},at.prototype.slice=function(t,e){var r=this.size;return E(t,e,r)?this:new at(this._value,D(e,r)-O(t,r))},at.prototype.reverse=function(){return this},at.prototype.indexOf=function(t){return ut(this._value,t)?0:-1},at.prototype.lastIndexOf=function(t){return ut(this._value,t)?this.size:-1},at.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},at.prototype.__iterator=function(t,e){var r=this,n=0;return new R((function(){return n<r.size?K(t,n++,r._value):{value:void 0,done:!0}}))},at.prototype.equals=function(t){return t instanceof at?ut(this._value,t._value):st(t)},e(ft,N),ft.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ft.prototype.get=function(t,e){return this.has(t)?this._start+I(this,t)*this._step:e},ft.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},ft.prototype.slice=function(t,e){return E(t,e,this.size)?this:(t=O(t,this.size),(e=D(e,this.size))<=t?new ft(0,0):new ft(this.get(t,this._end),this.get(e,this._end),this._step))},ft.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},ft.prototype.lastIndexOf=function(t){return this.indexOf(t)},ft.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},ft.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}:K(t,o++,u)}))},ft.prototype.equals=function(t){return t instanceof ft?this._start===t._start&&this._end===t._end&&this._step===t._step:st(this,t)},e(ht,r),e(pt,ht),e(_t,ht),e(lt,ht),ht.Keyed=pt,ht.Indexed=_t,ht.Set=lt;var vt="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 yt(t){return t>>>1&1073741824|3221225471&t}function dt(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){if(t!=t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)r^=t/=4294967295;return yt(r)}if("string"===e)return t.length>Et?function(t){var e=Mt[t];return void 0===e&&(e=mt(t),Dt===Ot&&(Dt=0,Mt={}),Dt++,Mt[t]=e),e}(t):mt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(bt&&void 0!==(e=gt.get(t)))return e;if(void 0!==(e=t[zt]))return e;if(!St){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[zt]))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=++It,1073741824&It&&(It=0),bt)gt.set(t,e);else{if(void 0!==wt&&!1===wt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(St)Object.defineProperty(t,zt,{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[zt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[zt]=e}}return e}(t);if("function"==typeof t.toString)return mt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function mt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return yt(e)}var gt,wt=Object.isExtensible,St=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),bt="function"==typeof WeakMap;bt&&(gt=new WeakMap);var It=0,zt="__immutablehash__";"function"==typeof Symbol&&(zt=Symbol(zt));var Et=16,Ot=255,Dt=0,Mt={};function qt(t){ct(t!==1/0,"Cannot perform this action with an infinite size.")}function kt(t){return null==t?Nt():xt(t)&&!f(t)?t:Nt().withMutations((function(e){var r=n(t);qt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function xt(t){return!(!t||!t[jt])}e(kt,pt),kt.of=function(){var e=t.call(arguments,0);return Nt().withMutations((function(t){for(var r=0;r<e.length;r+=2){if(r+1>=e.length)throw new Error("Missing value for key: "+e[r]);t.set(e[r],e[r+1])}}))},kt.prototype.toString=function(){return this.__toString("Map {","}")},kt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},kt.prototype.set=function(t,e){return Ht(this,t,e)},kt.prototype.setIn=function(t,e){return this.updateIn(t,v,(function(){return e}))},kt.prototype.remove=function(t){return Ht(this,t,v)},kt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return v}))},kt.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},kt.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=function t(e,r,n,i){var o=e===v,u=r.next();if(u.done){var s=o?n:e,a=i(s);return a===s?e:a}ct(o||e&&e.set,"invalid keyPath");var c=u.value,f=o?v:e.get(c,v),h=t(f,r,n,i);return h===f?e:h===v?e.remove(c):(o?Nt():e).set(c,h)}(this,Fe(t),e,r);return n===v?void 0:n},kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Nt()},kt.prototype.merge=function(){return Ft(this,void 0,arguments)},kt.prototype.mergeWith=function(e){var r=t.call(arguments,1);return Ft(this,e,r)},kt.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Nt(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]}))},kt.prototype.mergeDeep=function(){return Ft(this,Qt,arguments)},kt.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return Ft(this,Zt(e),r)},kt.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Nt(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]}))},kt.prototype.sort=function(t){return Se(Le(this,t))},kt.prototype.sortBy=function(t,e){return Se(Le(this,e,t))},kt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},kt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},kt.prototype.asImmutable=function(){return this.__ensureOwner()},kt.prototype.wasAltered=function(){return this.__altered},kt.prototype.__iterator=function(t,e){return new Bt(this,t,e)},kt.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},kt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Jt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},kt.isMap=xt;var At,jt="@@__IMMUTABLE_MAP__@@",Rt=kt.prototype;function Kt(t,e){this.ownerID=t,this.entries=e}function Ut(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function Tt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function Lt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Wt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function Bt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Ct(t._root)}function Pt(t,e){return K(t,e[0],e[1])}function Ct(t,e){return{node:t,index:0,__prev:e}}function Jt(t,e,r,n){var i=Object.create(Rt);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Nt(){return At||(At=Jt(0))}function Ht(t,e,r){var n,i;if(t._root){var o=m(y),u=m(d);if(n=Vt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===v?-1:1:0)}else{if(r===v)return t;i=1,n=new Kt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Jt(i,n):Nt()}function Vt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===v?t:(g(s),g(u),new Wt(e,n,[i,o]))}function Xt(t){return t.constructor===Wt||t.constructor===Lt}function Yt(t,e,r,n,i){if(t.keyHash===n)return new Lt(e,n,[t.entry,i]);var o,u=31&(0===r?t.keyHash:t.keyHash>>>r),s=31&(0===r?n:n>>>r);return new Ut(e,1<<u|1<<s,u===s?[Yt(t,e,r+5,n,i)]:(o=new Wt(e,n,i),u<s?[t,o]:[o,t]))}function Ft(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 nt(t)}))),i.push(a)}return Gt(t,e,i)}function Qt(t,e,r){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):ut(t,e)?t:e}function Zt(t){return function(e,r,n){if(e&&e.mergeDeepWith&&u(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return ut(e,i)?e:i}}function Gt(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,v,(function(t){return t===v?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 $t(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function te(t,e,r,n){var i=n?t:S(t);return i[e]=r,i}Rt[jt]=!0,Rt.delete=Rt.remove,Rt.removeIn=Rt.deleteIn,Kt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(ut(r,i[o][0]))return i[o][1];return n},Kt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===v,a=this.entries,c=0,f=a.length;c<f&&!ut(n,a[c][0]);c++);var h=c<f;if(h?a[c][1]===i:s)return this;if(g(u),(s||!h)&&g(o),!s||1!==a.length){if(!h&&!s&&a.length>=ee)return function(t,e,r,n){t||(t=new w);for(var i=new Wt(t,dt(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 p=t&&t===this.ownerID,_=p?a:S(a);return h?s?c===f-1?_.pop():_[c]=_.pop():_[c]=[n,i]:_.push([n,i]),p?(this.entries=_,this):new Kt(t,_)}},Ut.prototype.get=function(t,e,r,n){void 0===e&&(e=dt(r));var i=1<<(31&(0===t?e:e>>>t)),o=this.bitmap;return 0==(o&i)?n:this.nodes[$t(o&i-1)].get(t+5,e,r,n)},Ut.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=dt(n));var s=31&(0===e?r:r>>>e),a=1<<s,c=this.bitmap,f=0!=(c&a);if(!f&&i===v)return this;var h=$t(c&a-1),p=this.nodes,_=f?p[h]:void 0,l=Vt(_,t,e+5,r,n,i,o,u);if(l===_)return this;if(!f&&l&&p.length>=re)return function(t,e,r,n,i){for(var o=0,u=new Array(32),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Tt(t,o+1,u)}(t,p,c,s,l);if(f&&!l&&2===p.length&&Xt(p[1^h]))return p[1^h];if(f&&l&&1===p.length&&Xt(l))return l;var y=t&&t===this.ownerID,d=f?l?c:c^a:c|a,m=f?l?te(p,h,l,y):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}(p,h,y):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}(p,h,l,y);return y?(this.bitmap=d,this.nodes=m,this):new Ut(t,d,m)},Tt.prototype.get=function(t,e,r,n){void 0===e&&(e=dt(r));var i=31&(0===t?e:e>>>t),o=this.nodes[i];return o?o.get(t+5,e,r,n):n},Tt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=dt(n));var s=31&(0===e?r:r>>>e),a=i===v,c=this.nodes,f=c[s];if(a&&!f)return this;var h=Vt(f,t,e+5,r,n,i,o,u);if(h===f)return this;var p=this.count;if(f){if(!h&&--p<ne)return function(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,c=e.length;s<c;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new Ut(t,i,u)}(t,c,p,s)}else p++;var _=t&&t===this.ownerID,l=te(c,s,h,_);return _?(this.count=p,this.nodes=l,this):new Tt(t,p,l)},Lt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(ut(r,i[o][0]))return i[o][1];return n},Lt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=dt(n));var s=i===v;if(r!==this.keyHash)return s?this:(g(u),g(o),Yt(this,t,e,r,[n,i]));for(var a=this.entries,c=0,f=a.length;c<f&&!ut(n,a[c][0]);c++);var h=c<f;if(h?a[c][1]===i:s)return this;if(g(u),(s||!h)&&g(o),s&&2===f)return new Wt(t,this.keyHash,a[1^c]);var p=t&&t===this.ownerID,_=p?a:S(a);return h?s?c===f-1?_.pop():_[c]=_.pop():_[c]=[n,i]:_.push([n,i]),p?(this.entries=_,this):new Lt(t,this.keyHash,_)},Wt.prototype.get=function(t,e,r,n){return ut(r,this.entry[0])?this.entry[1]:n},Wt.prototype.update=function(t,e,r,n,i,o,u){var s=i===v,a=ut(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(g(u),s?void g(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Wt(t,this.keyHash,[n,i]):(g(o),Yt(this,t,e,dt(n),[n,i])))},Kt.prototype.iterate=Lt.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},Ut.prototype.iterate=Tt.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}},Wt.prototype.iterate=function(t,e){return t(this.entry)},e(Bt,R),Bt.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 Pt(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return Pt(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 Pt(t,o.entry);e=this._stack=Ct(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ee=8,re=16,ne=8;function ie(t){var e=le();if(null==t)return e;if(oe(t))return t;var r=i(t),n=r.size;return 0===n?e:(qt(n),n>0&&n<32?_e(0,n,5,null,new ae(r.toArray())):e.withMutations((function(t){t.setSize(n),r.forEach((function(e,r){return t.set(r,e)}))})))}function oe(t){return!(!t||!t[ue])}e(ie,_t),ie.of=function(){return this(arguments)},ie.prototype.toString=function(){return this.__toString("List [","]")},ie.prototype.get=function(t,e){if((t=I(this,t))>=0&&t<this.size){var r=de(this,t+=this._origin);return r&&r.array[31&t]}return e},ie.prototype.set=function(t,e){return function(t,e,r){if((e=I(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?me(t,e).set(0,r):me(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o=m(d);return e>=we(t._capacity)?n=ve(n,t.__ownerID,0,e,r,o):i=ve(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):_e(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},ie.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},ie.prototype.insert=function(t,e){return this.splice(t,0,e)},ie.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):le()},ie.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){me(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},ie.prototype.pop=function(){return me(this,0,-1)},ie.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){me(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},ie.prototype.shift=function(){return me(this,1)},ie.prototype.merge=function(){return ge(this,void 0,arguments)},ie.prototype.mergeWith=function(e){var r=t.call(arguments,1);return ge(this,e,r)},ie.prototype.mergeDeep=function(){return ge(this,Qt,arguments)},ie.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return ge(this,Zt(e),r)},ie.prototype.setSize=function(t){return me(this,0,t)},ie.prototype.slice=function(t,e){var r=this.size;return E(t,e,r)?this:me(this,O(t,r),D(e,r))},ie.prototype.__iterator=function(t,e){var r=0,n=pe(this,e);return new R((function(){var e=n();return e===he?{value:void 0,done:!0}:K(t,r++,e)}))},ie.prototype.__iterate=function(t,e){for(var r,n=0,i=pe(this,e);(r=i())!==he&&!1!==t(r,n++,this););return n},ie.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?_e(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},ie.isList=oe;var ue="@@__IMMUTABLE_LIST__@@",se=ie.prototype;function ae(t,e){this.array=t,this.ownerID=e}se[ue]=!0,se.delete=se.remove,se.setIn=Rt.setIn,se.deleteIn=se.removeIn=Rt.removeIn,se.update=Rt.update,se.updateIn=Rt.updateIn,se.mergeIn=Rt.mergeIn,se.mergeDeepIn=Rt.mergeDeepIn,se.withMutations=Rt.withMutations,se.asMutable=Rt.asMutable,se.asImmutable=Rt.asImmutable,se.wasAltered=Rt.wasAltered,ae.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&31;if(n>=this.array.length)return new ae([],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=ye(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},ae.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&31;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=ye(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var ce,fe,he={};function pe(t,e){var r=t._origin,n=t._capacity,i=we(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,c=n-u;return c>32&&(c=32),function(){if(a===c)return he;var t=e?--c:a++;return s&&s[t]}}(t,a):function(t,i,o){var s,a=t&&t.array,c=o>r?0:r-o>>i,f=1+(n-o>>i);return f>32&&(f=32),function(){for(;;){if(s){var t=s();if(t!==he)return t;s=null}if(c===f)return he;var r=e?--f:c++;s=u(a&&a[r],i-5,o+(r<<i))}}}(t,s,a)}}function _e(t,e,r,n,i,o,u){var s=Object.create(se);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 le(){return ce||(ce=_e(0,0,5))}function ve(t,e,r,n,i,o){var u,s=n>>>r&31,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(r>0){var c=t&&t.array[s],f=ve(c,e,r-5,n,i,o);return f===c?t:((u=ye(t,e)).array[s]=f,u)}return a&&t.array[s]===i?t:(g(o),u=ye(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function ye(t,e){return e&&t&&e===t.ownerID?t:new ae(t?t.array.slice():[],e)}function de(t,e){if(e>=we(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&31],n-=5;return r}}function me(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new w,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,c=t._root,f=0;u+f<0;)c=new ae(c&&c.array.length?[void 0,c]:[],n),f+=1<<(a+=5);f&&(u+=f,i+=f,s+=f,o+=f);for(var h=we(o),p=we(s);p>=1<<a+5;)c=new ae(c&&c.array.length?[c]:[],n),a+=5;var _=t._tail,l=p<h?de(t,s-1):p>h?new ae([],n):_;if(_&&p>h&&u<o&&_.array.length){for(var v=c=ye(c,n),y=a;y>5;y-=5){var d=h>>>y&31;v=v.array[d]=ye(v.array[d],n)}v.array[h>>>5&31]=_}if(s<o&&(l=l&&l.removeAfter(n,0,s)),u>=p)u-=p,s-=p,a=5,c=null,l=l&&l.removeBefore(n,0,u);else if(u>i||p<h){for(f=0;c;){var m=u>>>a&31;if(m!==p>>>a&31)break;m&&(f+=(1<<a)*m),a-=5,c=c.array[m]}c&&u>i&&(c=c.removeBefore(n,a,u-f)),c&&p<h&&(c=c.removeAfter(n,a,p-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=l,t.__hash=void 0,t.__altered=!0,t):_e(u,s,a,c,l)}function ge(t,e,r){for(var n=[],o=0,s=0;s<r.length;s++){var a=r[s],c=i(a);c.size>o&&(o=c.size),u(a)||(c=c.map((function(t){return nt(t)}))),n.push(c)}return o>t.size&&(t=t.setSize(o)),Gt(t,e,n)}function we(t){return t<32?0:t-1>>>5<<5}function Se(t){return null==t?ze():be(t)?t:ze().withMutations((function(e){var r=n(t);qt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function be(t){return xt(t)&&f(t)}function Ie(t,e,r,n){var i=Object.create(Se.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function ze(){return fe||(fe=Ie(Nt(),le()))}function Ee(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===v){if(!a)return t;u.size>=32&&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):Ie(n,i)}function Oe(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function De(t){this._iter=t,this.size=t.size}function Me(t){this._iter=t,this.size=t.size}function qe(t){this._iter=t,this.size=t.size}function ke(t){var e=Ve(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=Xe,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 xe(t,e,r){var n=Ve(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,v);return o===v?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 K(n,s,e.call(r,u[1],s,t),i)}))},n}function Ae(t,e){var r=Ve(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=ke(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=Xe,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 je(t,e,r,n){var i=Ve(t);return n&&(i.has=function(n){var i=t.get(n,v);return i!==v&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,v);return o!==v&&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,c=a[0],f=a[1];if(e.call(r,f,c,t))return K(i,n?c:s++,f,o)}}))},i}function Re(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r===1/0?r=i:r|=0),E(e,r,i))return t;var o=O(e,i),u=D(r,i);if(o!=o||u!=u)return Re(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a==a&&(s=a<0?0:a);var c=Ve(t);return c.size=0===s?s:t.size&&s||void 0,!n&&Q(t)&&s>=0&&(c.get=function(e,r){return(e=I(this,e))>=0&&e<s?t.get(e+o,r):r}),c.__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,c=0;return t.__iterate((function(t,r){if(!a||!(a=u++<o))return c++,!1!==e(t,n?r:c-1,i)&&c!==s})),c},c.__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:K(e,a-1,0===e?void 0:t.value[1],t)}))},c}function Ke(t,e,r,n){var i=Ve(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,c){if(!s||!(s=e.call(r,t,o,c)))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,c=0;return new R((function(){var t,o,f;do{if((t=s.next()).done)return n||1===i?t:K(i,c++,0===i?void 0:t.value[1],t);var h=t.value;o=h[0],f=h[1],a&&(a=e.call(r,f,o,u))}while(a);return 2===i?t:K(i,o,f,t)}))},i}function Ue(t,e){var r=s(t),i=[t].concat(e).map((function(t){return u(t)?r&&(t=n(t)):t=r?G(t):$(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 c=new V(i);return r?c=c.toKeyedSeq():a(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),c}function Te(t,e,r){var n=Ve(t);return n.__iterateUncached=function(n,i){var o=0,s=!1;return function t(a,c){var f=this;a.__iterate((function(i,a){return(!e||c<e)&&u(i)?t(i,c+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 c=t.value;if(2===n&&(c=c[1]),e&&!(s.length<e)||!u(c))return r?t:K(n,a++,c,t);s.push(o),o=c.__iterator(n,i)}else o=s.pop()}return{value:void 0,done:!0}}))},n}function Le(t,e,r){e||(e=Ye);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?J(o):a(t)?N(o):H(o)}function We(t,e,r){if(e||(e=Ye),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return Be(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return Be(e,t,r)?r:t}))}function Be(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Pe(t,e,n){var i=Ve(t);return i.size=new V(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),W(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}:K(t,u++,e.apply(null,r.map((function(t){return t.value}))))}))},i}function Ce(t,e){return Q(t)?e:t.constructor(e)}function Je(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ne(t){return qt(t.size),b(t)}function He(t){return s(t)?n:a(t)?i:o}function Ve(t){return Object.create((s(t)?J:a(t)?N:H).prototype)}function Xe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function Ye(t,e){return t>e?1:t<e?-1:0}function Fe(t){var e=W(t);if(!e){if(!P(t))throw new TypeError("Expected iterable or array-like: "+t);e=W(r(t))}return e}function Qe(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(tr.bind(void 0,t))}catch(r){}}(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=kt(o)},i=n.prototype=Object.create(Ze);return i.constructor=n,n}e(Se,kt),Se.of=function(){return this(arguments)},Se.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Se.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Se.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ze()},Se.prototype.set=function(t,e){return Ee(this,t,e)},Se.prototype.remove=function(t){return Ee(this,t,v)},Se.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Se.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},Se.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Se.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?Ie(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Se.isOrderedMap=be,Se.prototype[l]=!0,Se.prototype.delete=Se.prototype.remove,e(Oe,J),Oe.prototype.get=function(t,e){return this._iter.get(t,e)},Oe.prototype.has=function(t){return this._iter.has(t)},Oe.prototype.valueSeq=function(){return this._iter.valueSeq()},Oe.prototype.reverse=function(){var t=this,e=Ae(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Oe.prototype.map=function(t,e){var r=this,n=xe(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},Oe.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?Ne(this):0,function(i){return t(i,e?--r:r++,n)}),e)},Oe.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?Ne(this):0;return new R((function(){var i=r.next();return i.done?i:K(t,e?--n:n++,i.value,i)}))},Oe.prototype[l]=!0,e(De,N),De.prototype.includes=function(t){return this._iter.includes(t)},De.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate((function(e){return t(e,n++,r)}),e)},De.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:K(t,n++,e.value,e)}))},e(Me,H),Me.prototype.has=function(t){return this._iter.includes(t)},Me.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},Me.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new R((function(){var e=r.next();return e.done?e:K(t,e.value,e.value,e)}))},e(qe,J),qe.prototype.entrySeq=function(){return this._iter.toSeq()},qe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){Je(e);var n=u(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},qe.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){Je(n);var i=u(n);return K(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}}))},De.prototype.cacheResult=Oe.prototype.cacheResult=Me.prototype.cacheResult=qe.prototype.cacheResult=Xe,e(Qe,pt),Qe.prototype.toString=function(){return this.__toString($e(this)+" {","}")},Qe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Qe.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},Qe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Ge(this,Nt()))},Qe.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+$e(this));if(this._map&&!this._map.has(t)&&e===this._defaultValues[t])return this;var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:Ge(this,r)},Qe.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:Ge(this,e)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()},Qe.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterator(t,e)},Qe.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterate(t,e)},Qe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Ge(this,e,t):(this.__ownerID=t,this._map=e,this)};var Ze=Qe.prototype;function Ge(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function $e(t){return t._name||t.constructor.name||"Record"}function tr(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ct(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function er(t){return null==t?ar():rr(t)&&!f(t)?t:ar().withMutations((function(e){var r=o(t);qt(r.size),r.forEach((function(t){return e.add(t)}))}))}function rr(t){return!(!t||!t[ir])}Ze.delete=Ze.remove,Ze.deleteIn=Ze.removeIn=Rt.removeIn,Ze.merge=Rt.merge,Ze.mergeWith=Rt.mergeWith,Ze.mergeIn=Rt.mergeIn,Ze.mergeDeep=Rt.mergeDeep,Ze.mergeDeepWith=Rt.mergeDeepWith,Ze.mergeDeepIn=Rt.mergeDeepIn,Ze.setIn=Rt.setIn,Ze.update=Rt.update,Ze.updateIn=Rt.updateIn,Ze.withMutations=Rt.withMutations,Ze.asMutable=Rt.asMutable,Ze.asImmutable=Rt.asImmutable,e(er,lt),er.of=function(){return this(arguments)},er.fromKeys=function(t){return this(n(t).keySeq())},er.prototype.toString=function(){return this.__toString("Set {","}")},er.prototype.has=function(t){return this._map.has(t)},er.prototype.add=function(t){return ur(this,this._map.set(t,!0))},er.prototype.remove=function(t){return ur(this,this._map.remove(t))},er.prototype.clear=function(){return ur(this,this._map.clear())},er.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])},er.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)}))}))},er.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)}))}))},er.prototype.merge=function(){return this.union.apply(this,arguments)},er.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},er.prototype.sort=function(t){return cr(Le(this,t))},er.prototype.sortBy=function(t,e){return cr(Le(this,e,t))},er.prototype.wasAltered=function(){return this._map.wasAltered()},er.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e,n){return t(n,n,r)}),e)},er.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},er.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)},er.isSet=rr;var nr,ir="@@__IMMUTABLE_SET__@@",or=er.prototype;function ur(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 sr(t,e){var r=Object.create(or);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function ar(){return nr||(nr=sr(Nt()))}function cr(t){return null==t?lr():fr(t)?t:lr().withMutations((function(e){var r=o(t);qt(r.size),r.forEach((function(t){return e.add(t)}))}))}function fr(t){return rr(t)&&f(t)}or[ir]=!0,or.delete=or.remove,or.mergeDeep=or.merge,or.mergeDeepWith=or.mergeWith,or.withMutations=Rt.withMutations,or.asMutable=Rt.asMutable,or.asImmutable=Rt.asImmutable,or.__empty=ar,or.__make=sr,e(cr,er),cr.of=function(){return this(arguments)},cr.fromKeys=function(t){return this(n(t).keySeq())},cr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},cr.isOrderedSet=fr;var hr,pr=cr.prototype;function _r(t,e){var r=Object.create(pr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function lr(){return hr||(hr=_r(ze()))}function vr(t){return null==t?Sr():yr(t)?t:Sr().unshiftAll(t)}function yr(t){return!(!t||!t[mr])}pr[l]=!0,pr.__empty=lr,pr.__make=_r,e(vr,_t),vr.of=function(){return this(arguments)},vr.prototype.toString=function(){return this.__toString("Stack [","]")},vr.prototype.get=function(t,e){var r=this._head;for(t=I(this,t);r&&t--;)r=r.next;return r?r.value:e},vr.prototype.peek=function(){return this._head&&this._head.value},vr.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):wr(t,e)},vr.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;qt(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):wr(e,r)},vr.prototype.pop=function(){return this.slice(1)},vr.prototype.unshift=function(){return this.push.apply(this,arguments)},vr.prototype.unshiftAll=function(t){return this.pushAll(t)},vr.prototype.shift=function(){return this.pop.apply(this,arguments)},vr.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):Sr()},vr.prototype.slice=function(t,e){if(E(t,e,this.size))return this;var r=O(t,this.size);if(D(e,this.size)!==this.size)return _t.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):wr(n,i)},vr.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?wr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},vr.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},vr.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,K(t,r++,e)}return{value:void 0,done:!0}}))},vr.isStack=yr;var dr,mr="@@__IMMUTABLE_STACK__@@",gr=vr.prototype;function wr(t,e,r,n){var i=Object.create(gr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Sr(){return dr||(dr=wr(0))}function br(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}gr[mr]=!0,gr.withMutations=Rt.withMutations,gr.asMutable=Rt.asMutable,gr.asImmutable=Rt.asImmutable,gr.wasAltered=Rt.wasAltered,r.Iterator=R,br(r,{toArray:function(){qt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,r){t[r]=e})),t},toIndexedSeq:function(){return new De(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 Oe(this,!0)},toMap:function(){return kt(this.toKeyedSeq())},toObject:function(){qt(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t},toOrderedMap:function(){return Se(this.toKeyedSeq())},toOrderedSet:function(){return cr(s(this)?this.valueSeq():this)},toSet:function(){return er(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Me(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return vr(s(this)?this.valueSeq():this)},toList:function(){return ie(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(){var e=t.call(arguments,0);return Ce(this,Ue(this,e))},includes:function(t){return this.some((function(e){return ut(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){qt(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 Ce(this,je(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return qt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){qt(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 Ce(this,xe(this,t,e))},reduce:function(t,e,r){var n,i;return qt(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 Ce(this,Ae(this,!0))},slice:function(t,e){return Ce(this,Re(this,t,e,!0))},some:function(t,e){return!this.every(Dr(t),e)},sort:function(t){return Ce(this,Le(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 b(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=kt().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 st(this,t)},entrySeq:function(){var t=this;if(t._cache)return new V(t._cache);var e=t.toSeq().map(Or).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Dr(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate((function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1})),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(z)},flatMap:function(t,e){return Ce(this,function(t,e,r){var n=He(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 Ce(this,Te(this,t,!0))},fromEntrySeq:function(){return new qe(this)},get:function(t,e){return this.find((function(e,r){return ut(r,t)}),void 0,e)},getIn:function(t,e){for(var r,n=this,i=Fe(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,v):v)===v)return e}return n},groupBy:function(t,e){return function(t,e,r){var n=s(t),i=(f(t)?Se():kt()).asMutable();t.__iterate((function(o,u){i.update(e.call(r,o,u,t),(function(t){return(t=t||[]).push(n?[u,o]:o),t}))}));var o=He(t);return i.map((function(e){return Ce(t,o(e))}))}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:r(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:r(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return ut(e,t)}))},keySeq:function(){return this.toSeq().map(Er).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return We(this,t)},maxBy:function(t,e){return We(this,e,t)},min:function(t){return We(this,t?Mr(t):xr)},minBy:function(t,e){return We(this,e?Mr(e):xr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ce(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ce(this,Ke(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Dr(t),e)},sortBy:function(t,e){return Ce(this,Le(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ce(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ce(this,function(t,e,r){var n=Ve(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate((function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)})),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(2,i),s=!0;return new R((function(){if(!s)return{value:void 0,done:!0};var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(r,c,a,o)?2===n?t:K(n,a,c,t):(s=!1,{value:void 0,done:!0})}))},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Dr(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=f(t),r=s(t),n=e?1:0;return function(t,e){return e=vt(e,3432918353),e=vt(e<<15|e>>>-15,461845907),e=vt(e<<13|e>>>-13,5),e=vt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=yt((e=vt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+Ar(dt(t),dt(e))|0}:function(t,e){n=n+Ar(dt(t),dt(e))|0}:e?function(t){n=31*n+dt(t)|0}:function(t){n=n+dt(t)|0}),n)}(this))}});var Ir=r.prototype;Ir[h]=!0,Ir[j]=Ir.values,Ir.__toJS=Ir.toArray,Ir.__toStringMapper=qr,Ir.inspect=Ir.toSource=function(){return this.toString()},Ir.chain=Ir.flatMap,Ir.contains=Ir.includes,br(n,{flip:function(){return Ce(this,ke(this))},mapEntries:function(t,e){var r=this,n=0;return Ce(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Ce(this,this.toSeq().flip().map((function(n,i){return t.call(e,n,i,r)})).flip())}});var zr=n.prototype;function Er(t,e){return e}function Or(t,e){return[e,t]}function Dr(t){return function(){return!t.apply(this,arguments)}}function Mr(t){return function(){return-t.apply(this,arguments)}}function qr(t){return"string"==typeof t?JSON.stringify(t):String(t)}function kr(){return S(arguments)}function xr(t,e){return t<e?1:t>e?-1:0}function Ar(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return zr[p]=!0,zr[j]=Ir.entries,zr.__toJS=Ir.toObject,zr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+qr(t)},br(i,{toKeyedSeq:function(){return new Oe(this,!1)},filter:function(t,e){return Ce(this,je(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ce(this,Ae(this,!1))},slice:function(t,e){return Ce(this,Re(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=O(t,t<0?this.count():this.size);var n=this.slice(0,t);return Ce(this,1===r?n:n.concat(S(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Ce(this,Te(this,t,!1))},get:function(t,e){return(t=I(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=I(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Ce(this,function(t,e){var r=Ve(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate((function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)}),n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(1,n),u=0;return new R((function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?K(r,u++,e):K(r,u++,i.value,i)}))},r}(this,t))},interleave:function(){var t=[this].concat(S(arguments)),e=Pe(this.toSeq(),N.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Ce(this,r)},keySeq:function(){return ft(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ce(this,Ke(this,t,e,!1))},zip:function(){var t=[this].concat(S(arguments));return Ce(this,Pe(this,kr,t))},zipWith:function(t){var e=S(arguments);return e[0]=this,Ce(this,Pe(this,t,e))}}),i.prototype[_]=!0,i.prototype[l]=!0,br(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Ir.includes,o.prototype.contains=o.prototype.includes,br(J,n.prototype),br(N,i.prototype),br(H,o.prototype),br(pt,n.prototype),br(_t,i.prototype),br(lt,o.prototype),{Iterable:r,Seq:C,Collection:ht,Map:kt,OrderedMap:Se,List:ie,Stack:vr,Set:er,OrderedSet:cr,Record:Qe,Range:ft,Repeat:at,is:ut,fromJS:nt}}()},"N+g0":function(t,e,r){var n=r("g6v/"),i=r("m/L8"),o=r("glrk"),u=r("33Wh");t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=u(e),s=n.length,a=0;s>a;)i.f(t,r=n[a++],e[r]);return t}},"O6/o":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return m})),r.d(e,"renderToDom",(function(){return g}));var n=r("q1tI"),i=r("i8i4"),o=r("oXiK"),u=r("rePB"),s=r("JPcv"),a=r("fjjH");function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){Object(u.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var h=Object(s.fromJS)(a),p=h.get("layers"),_=["labels","roads","buildings","parks","water","background"],l={background:/background/,water:/water/,parks:/park/,buildings:/building/,roads:/bridge|road|tunnel/,labels:/label|place|poi/},v={line:"line-color",fill:"fill-color",background:"background-color",symbol:"text-color"};function y(t){var e=Object(n.useState)({water:!0,parks:!0,buildings:!0,roads:!0,labels:!0,background:!0}),r=e[0],i=e[1],o=Object(n.useState)({water:"#DBE2E6",parks:"#E6EAE9",buildings:"#c0c0c8",roads:"#ffffff",labels:"#78888a",background:"#EBF0F0"}),u=o[0],s=o[1];Object(n.useEffect)((function(){t.onChange(function(t){var e=t.visibility,r=t.color,n=p.filter((function(t){var r=t.get("id");return _.every((function(t){return e[t]||!l[t].test(r)}))})).map((function(t){var e=t.get("id"),n=t.get("type"),i=_.find((function(t){return l[t].test(e)}));return i&&v[n]?t.setIn(["paint",v[n]],r[i]):t}));return h.set("layers",n)}({visibility:r,color:u}))}),[r,u]);return n.createElement("div",{className:"control-panel"},n.createElement("h3",null,"Dynamic Styling"),n.createElement("p",null,"Dynamically show/hide map layers and change color with Immutable map style."),n.createElement("div",{className:"source-link"},n.createElement("a",{href:"https://github.com/visgl/react-map-gl/tree/6.1-release/examples/layers",target:"_new"},"View Code ↗")),n.createElement("hr",null),_.map((function(t){return n.createElement("div",{key:t,className:"input"},n.createElement("label",null,t),n.createElement("input",{type:"checkbox",checked:r[t],onChange:function(e){return function(t,e){var n;i(f(f({},r),{},((n={})[t]=e,n)))}(t,e.target.checked)}}),n.createElement("input",{type:"color",value:u[t],disabled:!r[t],onChange:function(e){return function(t,e){var r;s(f(f({},u),{},((r={})[t]=e,r)))}(t,e.target.value)}}))})))}var d=n.memo(y);function m(){var t=Object(n.useState)({latitude:37.805,longitude:-122.447,zoom:15.5,bearing:0,pitch:0}),e=t[0],r=t[1],i=Object(n.useState)(""),u=i[0],s=i[1];return n.createElement(n.Fragment,null,n.createElement(o.default,Object.assign({},e,{width:"100%",height:"100%",mapStyle:u,onViewportChange:r,mapboxApiAccessToken:""})),n.createElement(d,{onChange:s}))}function g(t){Object(i.render)(n.createElement(m,null),t)}},RNIs:function(t,e,r){var n=r("tiKp"),i=r("fHMY"),o=r("m/L8"),u=n("unscopables"),s=Array.prototype;null==s[u]&&o.f(s,u,{configurable:!0,value:i(null)}),t.exports=function(t){s[u][t]=!0}},STAE:function(t,e,r){var n=r("0Dky");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},XbcX:function(t,e,r){"use strict";var n=r("I+eb"),i=r("or9q"),o=r("ewvW"),u=r("UMSQ"),s=r("HAuM"),a=r("ZfDv");n({target:"Array",proto:!0},{flatMap:function(t){var e,r=o(this),n=u(r.length);return s(t),(e=a(r,0)).length=i(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},ZfDv:function(t,e,r){var n=r("hh1v"),i=r("6LWA"),o=r("tiKp")("species");t.exports=function(t,e){var r;return i(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},c9m3:function(t,e,r){r("RNIs")("flatMap")},fHMY:function(t,e,r){var n,i=r("glrk"),o=r("N+g0"),u=r("eDl+"),s=r("0BK2"),a=r("G+Rx"),c=r("zBJ4"),f=r("93I0"),h=f("IE_PROTO"),p=function(){},_=function(t){return"<script>"+t+"<\/script>"},l=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(i){}var t,e;l=n?function(t){t.write(_("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=c("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(_("document.F=Object")),t.close(),t.F);for(var r=u.length;r--;)delete l.prototype[u[r]];return l()};s[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p.prototype=i(t),r=new p,p.prototype=null,r[h]=t):r=l(),void 0===e?r:o(r,e)}},or9q:function(t,e,r){"use strict";var n=r("6LWA"),i=r("UMSQ"),o=r("A2ZE"),u=function(t,e,r,s,a,c,f,h){for(var p,_=a,l=0,v=!!f&&o(f,h,3);l<s;){if(l in r){if(p=v?v(r[l],l,e):r[l],c>0&&n(p))_=u(t,e,p,i(p.length),_,c-1)-1;else{if(_>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[_]=p}_++}l++}return _};t.exports=u},tiKp:function(t,e,r){var n=r("2oRo"),i=r("VpIT"),o=r("UTVS"),u=r("kOOl"),s=r("STAE"),a=r("/b8u"),c=i("wks"),f=n.Symbol,h=a?f:f&&f.withoutSetter||u;t.exports=function(t){return o(c,t)||(s&&o(f,t)?c[t]=f[t]:c[t]=h("Symbol."+t)),c[t]}}}]);