godash
Version:
Data structures and utilities to represent the game of Go
1 lines • 98 kB
JavaScript
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.godash=r():t.godash=r()}(this,(()=>(()=>{var t={5580:(t,r,e)=>{var n=e(6110)(e(9325),"DataView");t.exports=n},1549:(t,r,e)=>{var n=e(2032),o=e(3862),i=e(6721),u=e(2749),a=e(5749);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=a,t.exports=s},79:(t,r,e)=>{var n=e(3702),o=e(80),i=e(4739),u=e(8655),a=e(1175);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=a,t.exports=s},8223:(t,r,e)=>{var n=e(6110)(e(9325),"Map");t.exports=n},3661:(t,r,e)=>{var n=e(3040),o=e(7670),i=e(289),u=e(4509),a=e(2949);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=a,t.exports=s},2804:(t,r,e)=>{var n=e(6110)(e(9325),"Promise");t.exports=n},6545:(t,r,e)=>{var n=e(6110)(e(9325),"Set");t.exports=n},8859:(t,r,e)=>{var n=e(3661),o=e(1380),i=e(1459);function u(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}u.prototype.add=u.prototype.push=o,u.prototype.has=i,t.exports=u},7217:(t,r,e)=>{var n=e(79),o=e(1420),i=e(938),u=e(3605),a=e(9817),s=e(945);function c(t){var r=this.__data__=new n(t);this.size=r.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=u,c.prototype.has=a,c.prototype.set=s,t.exports=c},1873:(t,r,e)=>{var n=e(9325).Symbol;t.exports=n},7828:(t,r,e)=>{var n=e(9325).Uint8Array;t.exports=n},8303:(t,r,e)=>{var n=e(6110)(e(9325),"WeakMap");t.exports=n},9770:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var u=t[e];r(u,e,t)&&(i[o++]=u)}return i}},695:(t,r,e)=>{var n=e(8096),o=e(2428),i=e(6449),u=e(3656),a=e(361),s=e(7167),c=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=i(t),f=!e&&o(t),h=!e&&!f&&u(t),p=!e&&!f&&!h&&s(t),l=e||f||h||p,v=l?n(t.length,String):[],_=v.length;for(var y in t)!r&&!c.call(t,y)||l&&("length"==y||h&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,_))||v.push(y);return v}},4932:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},4528:t=>{t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},4248:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},1074:t=>{t.exports=function(t){return t.split("")}},6025:(t,r,e)=>{var n=e(5288);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},7133:t=>{t.exports=function(t,r,e){return t==t&&(void 0!==e&&(t=t<=e?t:e),void 0!==r&&(t=t>=r?t:r)),t}},909:(t,r,e)=>{var n=e(641),o=e(8329)(n);t.exports=o},2523:t=>{t.exports=function(t,r,e,n){for(var o=t.length,i=e+(n?1:-1);n?i--:++i<o;)if(r(t[i],i,t))return i;return-1}},3120:(t,r,e)=>{var n=e(4528),o=e(5891);t.exports=function t(r,e,i,u,a){var s=-1,c=r.length;for(i||(i=o),a||(a=[]);++s<c;){var f=r[s];e>0&&i(f)?e>1?t(f,e-1,i,u,a):n(a,f):u||(a[a.length]=f)}return a}},6649:(t,r,e)=>{var n=e(3221)();t.exports=n},641:(t,r,e)=>{var n=e(6649),o=e(5950);t.exports=function(t,r){return t&&n(t,r,o)}},7422:(t,r,e)=>{var n=e(1769),o=e(7797);t.exports=function(t,r){for(var e=0,i=(r=n(r,t)).length;null!=t&&e<i;)t=t[o(r[e++])];return e&&e==i?t:void 0}},2199:(t,r,e)=>{var n=e(4528),o=e(6449);t.exports=function(t,r,e){var i=r(t);return o(t)?i:n(i,e(t))}},2552:(t,r,e)=>{var n=e(1873),o=e(659),i=e(9350),u=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},8077:t=>{t.exports=function(t,r){return null!=t&&r in Object(t)}},7678:t=>{var r=Math.max,e=Math.min;t.exports=function(t,n,o){return t>=e(n,o)&&t<r(n,o)}},6131:(t,r,e)=>{var n=e(2523),o=e(5463),i=e(6959);t.exports=function(t,r,e){return r==r?i(t,r,e):n(t,o,e)}},7534:(t,r,e)=>{var n=e(2552),o=e(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270:(t,r,e)=>{var n=e(7068),o=e(346);t.exports=function t(r,e,i,u,a){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,u,t,a))}},7068:(t,r,e)=>{var n=e(7217),o=e(5911),i=e(1986),u=e(689),a=e(5861),s=e(6449),c=e(3656),f=e(7167),h="[object Arguments]",p="[object Array]",l="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,_,y,d){var g=s(t),b=s(r),w=g?p:a(t),m=b?p:a(r),x=(w=w==h?l:w)==l,S=(m=m==h?l:m)==l,j=w==m;if(j&&c(t)){if(!c(r))return!1;g=!0,x=!1}if(j&&!x)return d||(d=new n),g||f(t)?o(t,r,e,_,y,d):i(t,r,w,e,_,y,d);if(!(1&e)){var z=x&&v.call(t,"__wrapped__"),O=S&&v.call(r,"__wrapped__");if(z||O){var E=z?t.value():t,I=O?r.value():r;return d||(d=new n),y(E,I,e,_,d)}}return!!j&&(d||(d=new n),u(t,r,e,_,y,d))}},1799:(t,r,e)=>{var n=e(7217),o=e(270);t.exports=function(t,r,e,i){var u=e.length,a=u,s=!i;if(null==t)return!a;for(t=Object(t);u--;){var c=e[u];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<a;){var f=(c=e[u])[0],h=t[f],p=c[1];if(s&&c[2]){if(void 0===h&&!(f in t))return!1}else{var l=new n;if(i)var v=i(h,p,f,t,r,l);if(!(void 0===v?o(p,h,3,i,l):v))return!1}}return!0}},5463:t=>{t.exports=function(t){return t!=t}},5083:(t,r,e)=>{var n=e(1882),o=e(7296),i=e(3805),u=e(7473),a=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,h=c.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:a).test(u(t))}},4901:(t,r,e)=>{var n=e(2552),o=e(294),i=e(346),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[n(t)]}},5389:(t,r,e)=>{var n=e(3663),o=e(7978),i=e(3488),u=e(6449),a=e(583);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):n(t):a(t)}},8984:(t,r,e)=>{var n=e(5527),o=e(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},5128:(t,r,e)=>{var n=e(909),o=e(4894);t.exports=function(t,r){var e=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++e]=r(t,n,o)})),i}},3663:(t,r,e)=>{var n=e(1799),o=e(776),i=e(7197);t.exports=function(t){var r=o(t);return 1==r.length&&r[0][2]?i(r[0][0],r[0][1]):function(e){return e===t||n(e,t,r)}}},7978:(t,r,e)=>{var n=e(270),o=e(8156),i=e(631),u=e(8586),a=e(756),s=e(7197),c=e(7797);t.exports=function(t,r){return u(t)&&a(r)?s(c(t),r):function(e){var u=o(e,t);return void 0===u&&u===r?i(e,t):n(r,u,3)}}},7237:t=>{t.exports=function(t){return function(r){return null==r?void 0:r[t]}}},7255:(t,r,e)=>{var n=e(7422);t.exports=function(t){return function(r){return n(r,t)}}},5160:t=>{t.exports=function(t,r,e){var n=-1,o=t.length;r<0&&(r=-r>o?0:o+r),(e=e>o?o:e)<0&&(e+=o),o=r>e?0:e-r>>>0,r>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+r];return i}},8096:t=>{t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},7556:(t,r,e)=>{var n=e(1873),o=e(4932),i=e(6449),u=e(4394),a=n?n.prototype:void 0,s=a?a.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(i(r))return o(r,t)+"";if(u(r))return s?s.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e}},4128:(t,r,e)=>{var n=e(1800),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},7301:t=>{t.exports=function(t){return function(r){return t(r)}}},9219:t=>{t.exports=function(t,r){return t.has(r)}},1769:(t,r,e)=>{var n=e(6449),o=e(8586),i=e(1802),u=e(3222);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(u(t))}},8754:(t,r,e)=>{var n=e(5160);t.exports=function(t,r,e){var o=t.length;return e=void 0===e?o:e,!r&&e>=o?t:n(t,r,e)}},8380:(t,r,e)=>{var n=e(6131);t.exports=function(t,r){for(var e=-1,o=t.length;++e<o&&n(r,t[e],0)>-1;);return e}},3007:t=>{t.exports=function(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}},5481:(t,r,e)=>{var n=e(9325)["__core-js_shared__"];t.exports=n},8329:(t,r,e)=>{var n=e(4894);t.exports=function(t,r){return function(e,o){if(null==e)return e;if(!n(e))return t(e,o);for(var i=e.length,u=r?i:-1,a=Object(e);(r?u--:++u<i)&&!1!==o(a[u],u,a););return e}}},3221:t=>{t.exports=function(t){return function(r,e,n){for(var o=-1,i=Object(r),u=n(r),a=u.length;a--;){var s=u[t?a:++o];if(!1===e(i[s],s,i))break}return r}}},5911:(t,r,e)=>{var n=e(8859),o=e(4248),i=e(9219);t.exports=function(t,r,e,u,a,s){var c=1&e,f=t.length,h=r.length;if(f!=h&&!(c&&h>f))return!1;var p=s.get(t),l=s.get(r);if(p&&l)return p==r&&l==t;var v=-1,_=!0,y=2&e?new n:void 0;for(s.set(t,r),s.set(r,t);++v<f;){var d=t[v],g=r[v];if(u)var b=c?u(g,d,v,r,t,s):u(d,g,v,t,r,s);if(void 0!==b){if(b)continue;_=!1;break}if(y){if(!o(r,(function(t,r){if(!i(y,r)&&(d===t||a(d,t,e,u,s)))return y.push(r)}))){_=!1;break}}else if(d!==g&&!a(d,g,e,u,s)){_=!1;break}}return s.delete(t),s.delete(r),_}},1986:(t,r,e)=>{var n=e(1873),o=e(7828),i=e(5288),u=e(5911),a=e(317),s=e(4247),c=n?n.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,r,e,n,c,h,p){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!h(new o(t),new o(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var l=a;case"[object Set]":var v=1&n;if(l||(l=s),t.size!=r.size&&!v)return!1;var _=p.get(t);if(_)return _==r;n|=2,p.set(t,r);var y=u(l(t),l(r),n,c,h,p);return p.delete(t),y;case"[object Symbol]":if(f)return f.call(t)==f.call(r)}return!1}},689:(t,r,e)=>{var n=e(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,u,a){var s=1&e,c=n(t),f=c.length;if(f!=n(r).length&&!s)return!1;for(var h=f;h--;){var p=c[h];if(!(s?p in r:o.call(r,p)))return!1}var l=a.get(t),v=a.get(r);if(l&&v)return l==r&&v==t;var _=!0;a.set(t,r),a.set(r,t);for(var y=s;++h<f;){var d=t[p=c[h]],g=r[p];if(i)var b=s?i(g,d,p,r,t,a):i(d,g,p,t,r,a);if(!(void 0===b?d===g||u(d,g,e,i,a):b)){_=!1;break}y||(y="constructor"==p)}if(_&&!y){var w=t.constructor,m=r.constructor;w==m||!("constructor"in t)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof m&&m instanceof m||(_=!1)}return a.delete(t),a.delete(r),_}},4840:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},2:(t,r,e)=>{var n=e(2199),o=e(4664),i=e(5950);t.exports=function(t){return n(t,i,o)}},2651:(t,r,e)=>{var n=e(4218);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},776:(t,r,e)=>{var n=e(756),o=e(5950);t.exports=function(t){for(var r=o(t),e=r.length;e--;){var i=r[e],u=t[i];r[e]=[i,u,n(u)]}return r}},6110:(t,r,e)=>{var n=e(5083),o=e(392);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},659:(t,r,e)=>{var n=e(1873),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,a),e=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(r?t[a]=e:delete t[a]),o}},4664:(t,r,e)=>{var n=e(9770),o=e(3345),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,a=u?function(t){return null==t?[]:(t=Object(t),n(u(t),(function(r){return i.call(t,r)})))}:o;t.exports=a},5861:(t,r,e)=>{var n=e(5580),o=e(8223),i=e(2804),u=e(6545),a=e(8303),s=e(2552),c=e(7473),f="[object Map]",h="[object Promise]",p="[object Set]",l="[object WeakMap]",v="[object DataView]",_=c(n),y=c(o),d=c(i),g=c(u),b=c(a),w=s;(n&&w(new n(new ArrayBuffer(1)))!=v||o&&w(new o)!=f||i&&w(i.resolve())!=h||u&&w(new u)!=p||a&&w(new a)!=l)&&(w=function(t){var r=s(t),e="[object Object]"==r?t.constructor:void 0,n=e?c(e):"";if(n)switch(n){case _:return v;case y:return f;case d:return h;case g:return p;case b:return l}return r}),t.exports=w},392:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},9326:(t,r,e)=>{var n=e(1769),o=e(2428),i=e(6449),u=e(361),a=e(294),s=e(7797);t.exports=function(t,r,e){for(var c=-1,f=(r=n(r,t)).length,h=!1;++c<f;){var p=s(r[c]);if(!(h=null!=t&&e(t,p)))break;t=t[p]}return h||++c!=f?h:!!(f=null==t?0:t.length)&&a(f)&&u(p,f)&&(i(t)||o(t))}},9698:t=>{var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},2032:(t,r,e)=>{var n=e(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:t=>{t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},6721:(t,r,e)=>{var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},2749:(t,r,e)=>{var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},5749:(t,r,e)=>{var n=e(1042);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},5891:(t,r,e)=>{var n=e(1873),o=e(2428),i=e(6449),u=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(u&&t&&t[u])}},361:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},8586:(t,r,e)=>{var n=e(6449),o=e(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,r){if(n(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||u.test(t)||!i.test(t)||null!=r&&t in Object(r)}},4218:t=>{t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},7296:(t,r,e)=>{var n,o=e(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5527:t=>{var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},756:(t,r,e)=>{var n=e(3805);t.exports=function(t){return t==t&&!n(t)}},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},80:(t,r,e)=>{var n=e(6025),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0||(e==r.length-1?r.pop():o.call(r,e,1),--this.size,0))}},4739:(t,r,e)=>{var n=e(6025);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},8655:(t,r,e)=>{var n=e(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175:(t,r,e)=>{var n=e(6025);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},3040:(t,r,e)=>{var n=e(1549),o=e(79),i=e(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670:(t,r,e)=>{var n=e(2651);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},289:(t,r,e)=>{var n=e(2651);t.exports=function(t){return n(this,t).get(t)}},4509:(t,r,e)=>{var n=e(2651);t.exports=function(t){return n(this,t).has(t)}},2949:(t,r,e)=>{var n=e(2651);t.exports=function(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this}},317:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}},7197:t=>{t.exports=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}}},2224:(t,r,e)=>{var n=e(104);t.exports=function(t){var r=n(t,(function(t){return 500===e.size&&e.clear(),t})),e=r.cache;return r}},1042:(t,r,e)=>{var n=e(6110)(Object,"create");t.exports=n},3650:(t,r,e)=>{var n=e(4335)(Object.keys,Object);t.exports=n},6009:(t,r,e)=>{t=e.nmd(t);var n=e(4840),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o&&n.process,a=function(){try{return i&&i.require&&i.require("util").types||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=a},9350:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},4335:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},9325:(t,r,e)=>{var n=e(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},4247:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}},1420:(t,r,e)=>{var n=e(79);t.exports=function(){this.__data__=new n,this.size=0}},938:t=>{t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},945:(t,r,e)=>{var n=e(79),o=e(8223),i=e(3661);t.exports=function(t,r){var e=this.__data__;if(e instanceof n){var u=e.__data__;if(!o||u.length<199)return u.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(u)}return e.set(t,r),this.size=e.size,this}},6959:t=>{t.exports=function(t,r,e){for(var n=e-1,o=t.length;++n<o;)if(t[n]===r)return n;return-1}},3912:(t,r,e)=>{var n=e(1074),o=e(9698),i=e(2054);t.exports=function(t){return o(t)?i(t):n(t)}},1802:(t,r,e)=>{var n=e(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=n((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(o,(function(t,e,n,o){r.push(n?o.replace(i,"$1"):e||t)})),r}));t.exports=u},7797:(t,r,e)=>{var n=e(4394);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},7473:t=>{var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1800:t=>{var r=/\s/;t.exports=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}},2054:t=>{var r="\\ud800-\\udfff",e="["+r+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",f=c+s+"(?:\\u200d(?:"+[i,u,a].join("|")+")"+c+s+")*",h="(?:"+[i+n+"?",n,u,a,e].join("|")+")",p=RegExp(o+"(?="+o+")|"+h+f,"g");t.exports=function(t){return t.match(p)||[]}},2078:(t,r,e)=>{var n=e(4528),o=e(3120),i=e(3007),u=e(6449);t.exports=function(){var t=arguments.length;if(!t)return[];for(var r=Array(t-1),e=arguments[0],a=t;a--;)r[a-1]=arguments[a];return n(u(e)?i(e):[e],o(r,1))}},5288:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},7307:(t,r,e)=>{var n=e(3120),o=e(5378);t.exports=function(t,r){return n(o(t,r),1)}},4377:t=>{t.exports=function(t){for(var r=-1,e=null==t?0:t.length,n={};++r<e;){var o=t[r];n[o[0]]=o[1]}return n}},8156:(t,r,e)=>{var n=e(7422);t.exports=function(t,r,e){var o=null==t?void 0:n(t,r);return void 0===o?e:o}},631:(t,r,e)=>{var n=e(8077),o=e(9326);t.exports=function(t,r){return null!=t&&o(t,r,n)}},3488:t=>{t.exports=function(t){return t}},9104:(t,r,e)=>{var n=e(7678),o=e(7400),i=e(9374);t.exports=function(t,r,e){return r=o(r),void 0===e?(e=r,r=0):e=o(e),t=i(t),n(t,r,e)}},2428:(t,r,e)=>{var n=e(7534),o=e(346),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=s},6449:t=>{var r=Array.isArray;t.exports=r},4894:(t,r,e)=>{var n=e(1882),o=e(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656:(t,r,e)=>{t=e.nmd(t);var n=e(9325),o=e(9935),i=r&&!r.nodeType&&r,u=i&&t&&!t.nodeType&&t,a=u&&u.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||o;t.exports=s},1882:(t,r,e)=>{var n=e(2552),o=e(3805);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},4846:(t,r,e)=>{var n=e(1489);t.exports=function(t){return"number"==typeof t&&t==n(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},5015:(t,r,e)=>{var n=e(2552),o=e(6449),i=e(346);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},4394:(t,r,e)=>{var n=e(2552),o=e(346);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},7167:(t,r,e)=>{var n=e(4901),o=e(7301),i=e(6009),u=i&&i.isTypedArray,a=u?o(u):n;t.exports=a},5950:(t,r,e)=>{var n=e(695),o=e(8984),i=e(4894);t.exports=function(t){return i(t)?n(t):o(t)}},8090:t=>{t.exports=function(t){var r=null==t?0:t.length;return r?t[r-1]:void 0}},5378:(t,r,e)=>{var n=e(4932),o=e(5389),i=e(5128),u=e(6449);t.exports=function(t,r){return(u(t)?n:i)(t,o(r,3))}},104:(t,r,e)=>{var n=e(3661);function o(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],i=e.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return e.cache=i.set(o,u)||i,u};return e.cache=new(o.Cache||n),e}o.Cache=n,t.exports=o},583:(t,r,e)=>{var n=e(7237),o=e(7255),i=e(8586),u=e(7797);t.exports=function(t){return i(t)?n(u(t)):o(t)}},2331:(t,r,e)=>{var n=e(7133),o=e(7556),i=e(1489),u=e(3222);t.exports=function(t,r,e){return t=u(t),e=null==e?0:n(i(e),0,t.length),r=o(r),t.slice(e,e+r.length)==r}},3345:t=>{t.exports=function(){return[]}},9935:t=>{t.exports=function(){return!1}},4921:(t,r,e)=>{var n=e(5160),o=e(1489);t.exports=function(t,r,e){return t&&t.length?(r=e||void 0===r?1:o(r),n(t,0,r<0?0:r)):[]}},7400:(t,r,e)=>{var n=e(9374),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},1489:(t,r,e)=>{var n=e(7400);t.exports=function(t){var r=n(t),e=r%1;return r==r?e?r-e:r:0}},9374:(t,r,e)=>{var n=e(4128),o=e(3805),i=e(4394),u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=o(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var e=a.test(t);return e||s.test(t)?c(t.slice(2),e?2:8):u.test(t)?NaN:+t}},3222:(t,r,e)=>{var n=e(7556);t.exports=function(t){return null==t?"":n(t)}},9488:(t,r,e)=>{var n=e(7556),o=e(8754),i=e(8380),u=e(3912),a=e(3222),s=/^\s+/;t.exports=function(t,r,e){if((t=a(t))&&(e||void 0===r))return t.replace(s,"");if(!t||!(r=n(r)))return t;var c=u(t),f=i(c,u(r));return o(c,f).join("")}}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,e),i.loaded=!0,i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";e.r(n),e.d(n,{BLACK:()=>xo,Board:()=>So,Coordinate:()=>jo,EMPTY:()=>zo,Move:()=>Oo,TENGEN_13:()=>Eo,TENGEN_19:()=>Io,TENGEN_9:()=>Ao,WHITE:()=>Mo,addMove:()=>qo,constructBoard:()=>ko,coordinateToSgfPoint:()=>Do,default:()=>Qo,difference:()=>To,followupKo:()=>Co,fromA1Coordinate:()=>Xo,group:()=>Bo,handicapBoard:()=>Po,isLegalMove:()=>Ro,liberties:()=>No,libertyCount:()=>Uo,oppositeColor:()=>Ko,placeStone:()=>Lo,placeStones:()=>Wo,removeStone:()=>Go,removeStones:()=>Ho,sgfPointToCoordinate:()=>$o,sgfToJS:()=>Fo,toA1Coordinate:()=>Yo,toAsciiBoard:()=>Vo,toString:()=>Jo});var t="delete",r=5,o=1<<r,i=o-1,u={};function a(t){t&&(t.value=!0)}function s(){}function c(t){return void 0===t.size&&(t.size=t.__iterate(h)),t.size}function f(t,r){if("number"!=typeof r){var e=r>>>0;if(""+e!==r||4294967295===e)return NaN;r=e}return r<0?c(t)+r:r}function h(){return!0}function p(t,r,e){return(0===t&&!y(t)||void 0!==e&&t<=-e)&&(void 0===r||void 0!==e&&r>=e)}function l(t,r){return _(t,r,0)}function v(t,r){return _(t,r,r)}function _(t,r,e){return void 0===t?e:y(t)?r===1/0?r:0|Math.max(0,r+t):void 0===r||r===t?t:0|Math.min(r,t)}function y(t){return t<0||0===t&&1/t==-1/0}var d="@@__IMMUTABLE_ITERABLE__@@";function g(t){return Boolean(t&&t[d])}var b="@@__IMMUTABLE_KEYED__@@";function w(t){return Boolean(t&&t[b])}var m="@@__IMMUTABLE_INDEXED__@@";function x(t){return Boolean(t&&t[m])}function S(t){return w(t)||x(t)}var j=function(t){return g(t)?t:Y(t)},z=function(t){function r(t){return w(t)?t:X(t)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r}(j),O=function(t){function r(t){return x(t)?t:Q(t)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r}(j),E=function(t){function r(t){return g(t)&&!S(t)?t:Z(t)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r}(j);j.Keyed=z,j.Indexed=O,j.Set=E;var I="@@__IMMUTABLE_SEQ__@@";function A(t){return Boolean(t&&t[I])}var M="@@__IMMUTABLE_RECORD__@@";function q(t){return Boolean(t&&t[M])}function k(t){return g(t)||q(t)}var D="@@__IMMUTABLE_ORDERED__@@";function T(t){return Boolean(t&&t[D])}var C=0,B=1,P=2,R="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",U=R||N,K=function(t){this.next=t};function L(t,r,e,n){var o=0===t?r:1===t?e:[r,e];return n?n.value=o:n={value:o,done:!1},n}function W(){return{value:void 0,done:!0}}function G(t){return!!Array.isArray(t)||!!F(t)}function H(t){return t&&"function"==typeof t.next}function $(t){var r=F(t);return r&&r.call(t)}function F(t){var r=t&&(R&&t[R]||t[N]);if("function"==typeof r)return r}K.prototype.toString=function(){return"[Iterator]"},K.KEYS=C,K.VALUES=B,K.ENTRIES=P,K.prototype.inspect=K.prototype.toSource=function(){return this.toString()},K.prototype[U]=function(){return this};var V=Object.prototype.hasOwnProperty;function J(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var Y=function(t){function r(t){return null==t?ot():k(t)?t.toSeq():function(t){var r,e,n=at(t);if(n)return(e=F(r=t))&&e===r.entries?n.fromEntrySeq():function(t){var r=F(t);return r&&r===t.keys}(t)?n.toSetSeq():n;if("object"==typeof t)return new rt(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.toSeq=function(){return this},r.prototype.toString=function(){return this.__toString("Seq {","}")},r.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},r.prototype.__iterate=function(t,r){var e=this._cache;if(e){for(var n=e.length,o=0;o!==n;){var i=e[r?n-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,r)},r.prototype.__iterator=function(t,r){var e=this._cache;if(e){var n=e.length,o=0;return new K((function(){if(o===n)return{value:void 0,done:!0};var i=e[r?n-++o:o++];return L(t,i[0],i[1])}))}return this.__iteratorUncached(t,r)},r}(j),X=function(t){function r(t){return null==t?ot().toKeyedSeq():g(t)?w(t)?t.toSeq():t.fromEntrySeq():q(t)?t.toSeq():it(t)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.toKeyedSeq=function(){return this},r}(Y),Q=function(t){function r(t){return null==t?ot():g(t)?w(t)?t.entrySeq():t.toIndexedSeq():q(t)?t.toSeq().entrySeq():ut(t)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){return r(arguments)},r.prototype.toIndexedSeq=function(){return this},r.prototype.toString=function(){return this.__toString("Seq [","]")},r}(Y),Z=function(t){function r(t){return(g(t)&&!S(t)?t:Q(t)).toSetSeq()}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){return r(arguments)},r.prototype.toSetSeq=function(){return this},r}(Y);Y.isSeq=A,Y.Keyed=X,Y.Set=Z,Y.Indexed=Q,Y.prototype[I]=!0;var tt=function(t){function r(t){this._array=t,this.size=t.length}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.get=function(t,r){return this.has(t)?this._array[f(this,t)]:r},r.prototype.__iterate=function(t,r){for(var e=this._array,n=e.length,o=0;o!==n;){var i=r?n-++o:o++;if(!1===t(e[i],i,this))break}return o},r.prototype.__iterator=function(t,r){var e=this._array,n=e.length,o=0;return new K((function(){if(o===n)return{value:void 0,done:!0};var i=r?n-++o:o++;return L(t,i,e[i])}))},r}(Q),rt=function(t){function r(t){var r=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=r,this.size=r.length}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.get=function(t,r){return void 0===r||this.has(t)?this._object[t]:r},r.prototype.has=function(t){return V.call(this._object,t)},r.prototype.__iterate=function(t,r){for(var e=this._object,n=this._keys,o=n.length,i=0;i!==o;){var u=n[r?o-++i:i++];if(!1===t(e[u],u,this))break}return i},r.prototype.__iterator=function(t,r){var e=this._object,n=this._keys,o=n.length,i=0;return new K((function(){if(i===o)return{value:void 0,done:!0};var u=n[r?o-++i:i++];return L(t,u,e[u])}))},r}(X);rt.prototype[D]=!0;var et,nt=function(t){function r(t){this._collection=t,this.size=t.length||t.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.__iterateUncached=function(t,r){if(r)return this.cacheResult().__iterate(t,r);var e=$(this._collection),n=0;if(H(e))for(var o;!(o=e.next()).done&&!1!==t(o.value,n++,this););return n},r.prototype.__iteratorUncached=function(t,r){if(r)return this.cacheResult().__iterator(t,r);var e=$(this._collection);if(!H(e))return new K(W);var n=0;return new K((function(){var r=e.next();return r.done?r:L(t,n++,r.value)}))},r}(Q);function ot(){return et||(et=new tt([]))}function it(t){var r=at(t);if(r)return r.fromEntrySeq();if("object"==typeof t)return new rt(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function ut(t){var r=at(t);if(r)return r;throw new TypeError("Expected Array or collection object of values: "+t)}function at(t){return J(t)?new tt(t):G(t)?new nt(t):void 0}var st="@@__IMMUTABLE_MAP__@@";function ct(t){return Boolean(t&&t[st])}function ft(t){return ct(t)&&T(t)}function ht(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function pt(t,r){if(t===r||t!=t&&r!=r)return!0;if(!t||!r)return!1;if("function"==typeof t.valueOf&&"function"==typeof r.valueOf){if((t=t.valueOf())===(r=r.valueOf())||t!=t&&r!=r)return!0;if(!t||!r)return!1}return!!(ht(t)&&ht(r)&&t.equals(r))}var lt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,r){var e=65535&(t|=0),n=65535&(r|=0);return e*n+((t>>>16)*n+e*(r>>>16)<<16>>>0)|0};function vt(t){return t>>>1&1073741824|3221225471&t}var _t=Object.prototype.valueOf;function yt(t){if(null==t)return dt(t);if("function"==typeof t.hashCode)return vt(t.hashCode(t));var r,e,n,o=(r=t).valueOf!==_t&&"function"==typeof r.valueOf?r.valueOf(r):r;if(null==o)return dt(o);switch(typeof o){case"boolean":return o?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)r^=t/=4294967295;return vt(r)}(o);case"string":return o.length>Et?(void 0===(n=Mt[e=o])&&(n=gt(e),At===It&&(At=0,Mt={}),At++,Mt[e]=n),n):gt(o);case"object":case"function":return function(t){var r;if(St&&void 0!==(r=xt.get(t)))return r;if(void 0!==(r=t[Ot]))return r;if(!wt){if(void 0!==(r=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return r;if(void 0!==(r=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 r}if(r=mt(),St)xt.set(t,r);else{if(void 0!==bt&&!1===bt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(wt)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:r});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[Ot]=r;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=r}}return r}(o);case"symbol":return function(t){var r=jt[t];return void 0!==r||(r=mt(),jt[t]=r),r}(o);default:if("function"==typeof o.toString)return gt(o.toString());throw new Error("Value type "+typeof o+" cannot be hashed.")}}function dt(t){return null===t?1108378658:1108378659}function gt(t){for(var r=0,e=0;e<t.length;e++)r=31*r+t.charCodeAt(e)|0;return vt(r)}var bt=Object.isExtensible,wt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function mt(){var t=++zt;return 1073741824&zt&&(zt=0),t}var xt,St="function"==typeof WeakMap;St&&(xt=new WeakMap);var jt=Object.create(null),zt=0,Ot="__immutablehash__";"function"==typeof Symbol&&(Ot=Symbol(Ot));var Et=16,It=255,At=0,Mt={},qt=function(t){function r(t,r){this._iter=t,this._useKeys=r,this.size=t.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.get=function(t,r){return this._iter.get(t,r)},r.prototype.has=function(t){return this._iter.has(t)},r.prototype.valueSeq=function(){return this._iter.valueSeq()},r.prototype.reverse=function(){var t=this,r=Pt(this,!0);return this._useKeys||(r.valueSeq=function(){return t._iter.toSeq().reverse()}),r},r.prototype.map=function(t,r){var e=this,n=Bt(this,t,r);return this._useKeys||(n.valueSeq=function(){return e._iter.toSeq().map(t,r)}),n},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r,n){return t(r,n,e)}),r)},r.prototype.__iterator=function(t,r){return this._iter.__iterator(t,r)},r}(X);qt.prototype[D]=!0;var kt=function(t){function r(t){this._iter=t,this.size=t.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.includes=function(t){return this._iter.includes(t)},r.prototype.__iterate=function(t,r){var e=this,n=0;return r&&c(this),this._iter.__iterate((function(o){return t(o,r?e.size-++n:n++,e)}),r)},r.prototype.__iterator=function(t,r){var e=this,n=this._iter.__iterator(B,r),o=0;return r&&c(this),new K((function(){var i=n.next();return i.done?i:L(t,r?e.size-++o:o++,i.value,i)}))},r}(Q),Dt=function(t){function r(t){this._iter=t,this.size=t.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.has=function(t){return this._iter.includes(t)},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r){return t(r,r,e)}),r)},r.prototype.__iterator=function(t,r){var e=this._iter.__iterator(B,r);return new K((function(){var r=e.next();return r.done?r:L(t,r.value,r.value,r)}))},r}(Z),Tt=function(t){function r(t){this._iter=t,this.size=t.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.entrySeq=function(){return this._iter.toSeq()},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r){if(r){Ft(r);var n=g(r);return t(n?r.get(1):r[1],n?r.get(0):r[0],e)}}),r)},r.prototype.__iterator=function(t,r){var e=this._iter.__iterator(B,r);return new K((function(){for(;;){var r=e.next();if(r.done)return r;var n=r.value;if(n){Ft(n);var o=g(n);return L(t,o?n.get(0):n[0],o?n.get(1):n[1],r)}}}))},r}(X);function Ct(t){var r=Jt(t);return r._iter=t,r.size=t.size,r.flip=function(){return t},r.reverse=function(){var r=t.reverse.apply(this);return r.flip=function(){return t.reverse()},r},r.has=function(r){return t.includes(r)},r.includes=function(r){return t.has(r)},r.cacheResult=Yt,r.__iterateUncached=function(r,e){var n=this;return t.__iterate((function(t,e){return!1!==r(e,t,n)}),e)},r.__iteratorUncached=function(r,e){if(r===P){var n=t.__iterator(r,e);return new K((function(){var t=n.next();if(!t.done){var r=t.value[0];t.value[0]=t.value[1],t.value[1]=r}return t}))}return t.__iterator(r===B?C:B,e)},r}function Bt(t,r,e){var n=Jt(t);return n.size=t.size,n.has=function(r){return t.has(r)},n.get=function(n,o){var i=t.get(n,u);return i===u?o:r.call(e,i,n,t)},n.__iterateUncached=function(n,o){var i=this;return t.__iterate((function(t,o,u){return!1!==n(r.call(e,t,o,u),o,i)}),o)},n.__iteratorUncached=function(n,o){var i=t.__iterator(P,o);return new K((function(){var o=i.next();if(o.done)return o;var u=o.value,a=u[0];return L(n,a,r.call(e,u[1],a,t),o)}))},n}function Pt(t,r){var e=this,n=Jt(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var r=Ct(t);return r.reverse=function(){return t.flip()},r}),n.get=function(e,n){return t.get(r?e:-1-e,n)},n.has=function(e){return t.has(r?e:-1-e)},n.includes=function(r){return t.includes(r)},n.cacheResult=Yt,n.__iterate=function(e,n){var o=this,i=0;return n&&c(t),t.__iterate((function(t,u){return e(t,r?u:n?o.size-++i:i++,o)}),!n)},n.__iterator=function(n,o){var i=0;o&&c(t);var u=t.__iterator(P,!o);return new K((function(){var t=u.next();if(t.done)return t;var a=t.value;return L(n,r?a[0]:o?e.size-++i:i++,a[1],t)}))},n}function Rt(t,r,e,n){var o=Jt(t);return n&&(o.has=function(n){var o=t.get(n,u);return o!==u&&!!r.call(e,o,n,t)},o.get=function(n,o){var i=t.get(n,u);return i!==u&&r.call(e,i,n,t)?i:o}),o.__iterateUncached=function(o,i){var u=this,a=0;return t.__iterate((function(t,i,s){if(r.call(e,t,i,s))return a++,o(t,n?i:a-1,u)}),i),a},o.__iteratorUncached=function(o,i){var u=t.__iterator(P,i),a=0;return new K((function(){for(;;){var i=u.next();if(i.done)return i;var s=i.value,c=s[0],f=s[1];if(r.call(e,f,c,t))return L(o,n?c:a++,f,i)}}))},o}function Nt(t,r,e,n){var o=t.size;if(p(r,e,o))return t;var i=l(r,o),u=v(e,o);if(i!=i||u!=u)return Nt(t.toSeq().cacheResult(),r,e,n);var a,s=u-i;s==s&&(a=s<0?0:s);var c=Jt(t);return c.size=0===a?a:t.size&&a||void 0,!n&&A(t)&&a>=0&&(c.get=function(r,e){return(r=f(this,r))>=0&&r<a?t.get(r+i,e):e}),c.__iterateUncached=function(r,e){var o=this;if(0===a)return 0;if(e)return this.cacheResult().__iterate(r,e);var u=0,s=!0,c=0;return t.__iterate((function(t,e){if(!s||!(s=u++<i))return c++,!1!==r(t,n?e:c-1,o)&&c!==a})),c},c.__iteratorUncached=function(r,e){if(0!==a&&e)return this.cacheResult().__iterator(r,e);if(0===a)return new K(W);var o=t.__iterator(r,e),u=0,s=0;return new K((function(){for(;u++<i;)o.next();if(++s>a)return{value:void 0,done:!0};var t=o.next();return n||r===B||t.done?t:L(r,s-1,r===C?void 0:t.value[1],t)}))},c}function Ut(t,r,e,n){var o=Jt(t);return o.__iterateUncached=function(o,i){var u=this;if(i)return this.cacheResult().__iterate(o,i);var a=!0,s=0;return t.__iterate((function(t,i,c){if(!a||!(a=r.call(e,t,i,c)))return s++,o(t,n?i:s-1,u)})),s},o.__iteratorUncached=function(o,i){var u=this;if(i)return this.cacheResult().__iterator(o,i);var a=t.__iterator(P,i),s=!0,c=0;return new K((function(){var t,i,f;do{if((t=a.next()).done)return n||o===B?t:L(o,c++,o===C?void 0:t.value[1],t);var h=t.value;i=h[0],f=h[1],s&&(s=r.call(e,f,i,u))}while(s);return o===P?t:L(o,i,f,t)}))},o}function Kt(t,r,e){var n=Jt(t);return n.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var u=0,a=!1;return function t(s,c){s.__iterate((function(i,s){return(!r||c<r)&&g(i)?t(i,c+1):(u++,!1===o(i,e?s:u-1,n)&&(a=!0)),!a}),i)}(t,0),u},n.__iteratorUncached=function(n,o){if(o)return this.cacheResult().__iterator(n,o);var i=t.__iterator(n,o),u=[],a=0;return new K((function(){for(;i;){var t=i.next();if(!1===t.done){var s=t.value;if(n===P&&(s=s[1]),r&&!(u.length<r)||!g(s))return e?t:L(n,a++,s,t);u.push(i),i=s.__iterator(n,o)}else i=u.pop()}return{value:void 0,done:!0}}))},n}function Lt(t,r,e){r||(r=Xt);var n=w(t),o=0,i=t.toSeq().map((function(r,n){return[n,r,o++,e?e(r,n,t):r]})).valueSeq().toArray();return i.sort((function(t,e){return r(t[3],e[3])||t[2]-e[2]})).forEach(n?function(t,r){i[r].length=2}:function(t,r){i[r]=t[1]}),n?X(i):x(t)?Q(i):Z(i)}function Wt(t,r,e){if(r||(r=Xt),e){var n=t.toSeq().map((function(r,n){return[r,e(r,n,t)]})).reduce((function(t,e){return Gt(r,t[1],e[1])?e:t}));return n&&n[0]}return t.reduce((function(t,e){return Gt(r,t,e)?e:t}))}function Gt(t,r,e){var n=t(e,r);return 0===n&&e!==r&&(null==e||e!=e)||n>0}function Ht(t,r,e,n){var o=Jt(t),i=new tt(e).map((function(t){return t.size}));return o.size=n?i.max():i.min(),o.__iterate=function(t,r){for(var e,n=this.__iterator(B,r),o=0;!(e=n.next()).done&&!1!==t(e.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=e.map((function(t){return t=j(t),$(o?t.reverse():t)})),u=0,a=!1;return new K((function(){var e;return a||(e=i.map((function(t){return t.next()})),a=n?e.every((function(t){return t.done})):e.some((function(t){return t.done}))),a?{value:void 0,done:!0}:L(t,u++,r.apply(null,e.map((function(t){return t.value}))))}))},o}function $t(t,r){return t===r?t:A(t)?r:t.constructor(r)}function Ft(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Vt(t){return w(t)?z:x(t)?O:E}function Jt(t){return Object.create((w(t)?X:x(t)?Q:Z).prototype)}function Yt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Y.prototype.cacheResult.call(this)}function Xt(t,r){return void 0===t&&void 0===r?0:void 0===t?1:void 0===r?-1:t>r?1:t<r?-1:0}function Qt(t,r){r=r||0;for(var e=Math.max(0,t.length-r),n=new Array(e),o=0;o<e;o++)n[o]=t[o+r];return n}function Zt(t,r){if(!t)throw new Error(r)}function tr(t){Zt(t!==1/0,"Cannot perform this action with an infinite size.")}function rr(t){if(J(t)&&"string"!=typeof t)return t;if(T(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}kt.prototype.cacheResult=qt.prototype.cacheResult=Dt.prototype.cacheResult=Tt.prototype.cacheResult=Yt;var er=Object.prototype.toString;function nr(t){return"object"==typeof t&&(k(t)||Array.isArray(t)||function(t){if(!t||"object"!=typeof t||"[object Object]"!==er.call(t))return!1;var r=Object.getPrototypeOf(t);if(null===r)return!0;for(var e=r,n=Object.getPrototypeOf(r);null!==n;)e=n,n=Object.getPrototypeOf(e);return e===r}(t))}function or(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(r){return JSON.stringify(t)}}function ir(t,r,e){return k(t)?t.get(r,e):function(t,r){return k(t)?t.has(r):nr(t)&&V.call(t,r)}(t,r)?"function"==typeof t.get?t.get(r):t[r]:e}function ur(t){if(Array.isArray(t))return Qt(t);var r={};for(var e in t)V.call(t,e)&&(r[e]=t[e]);return r}function ar(t,r,e,n){n||(n=e,e=void 0);var o=sr(k(t),t,rr(r),0,e,n);return o===u?e:o}function sr(t,r,e,n,o,i){var a=r===u;if(n===e.length){var s=a?o:r,c=i(s);return c===s?r:c}if(!a&&!nr(r))throw new TypeError("Cannot update within non-data-structure value in path ["+e.slice(0,n).map(or)+"]: "+r);var f=e[n],h=a?u:ir(r,f,u),p=sr(h===u?t:k(h),h,e,n+1,o,i);return p===h?r:p===u?function(t,r){if(!nr(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(k(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(r)}if(!V.call(t,r))return t;var e=ur(t);return Array.isArray(e)?e.splice(r,1):delete e[r],e}(r,f):function(t,r,e){if(!nr(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(k(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(r,e)}if(V.call(t,r)&&e===t[r])return t;var n=ur(t);return n[r]=e,n}(a?t?Nr():{}:r,f,p)}function cr(t,r){return function(t,r,e){return ar(t,r,u,(function(){return e}))}(this,t,r)}function fr(t){return function(t,r){return ar(t,r,(function(){return u}))}(this,t)}function hr(t,r,e,n){return ar(t,[r],e,n)}function pr(t,r,e){return 1===arguments.length?t(this):hr(this,t,r,e)}function lr(t,r,e){return ar(this,t,r,e)}function vr(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return yr(this,t)}function _r(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return yr(this,r,t)}function yr(t,r,e){for(var n=[],o=0;o<r.length;o++){var i=z(r[o]);0!==i.size&&n.push(i)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var r=e?function(r,n){hr(t,n,u,(function(t){return t===u?r:e(t,r,n)}))}:function(r,e){t.set(e,r)},o=0;o<n.length;o++)n[o].forEach(r)})):t.constructor(n[0])}function dr(t,r,e){return gr(t,r,function(t){return function r(e,n,o){return nr(e)&&nr(n)&&(i=n,u=Y(e),a=Y(i),x(u)===x(a)&&w(u)===w(a))?gr(e,[n],r):t?t(e,n,o):n;var i,u,a}}(e))}function gr(t,r,e){if(!nr(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(k(t))return"function"==typeof e&&t.mergeWith?t.mergeWith.apply(t,[e].concat(r)):t.merge?t.merge.apply(t,r):t.concat.apply(t,r);for(var n=Array.isArray(t),o=t,i=n?O:z,u=n?function(r){o===t&&(o=ur(o)),o.push(r)}:function(r,n){var i=V.call(o,n),u=i&&e?e(o[n],r,n):r;i&&u===o[n]||(o===t&&(o=ur(o)),o[n]=u)},a=0;a<r.length;a++)i(r[a]).forEach(u);return o}function br(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return dr(this,t)}function wr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return dr(this,r,t)}function mr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return ar(this,t,Nr(),(function(t){return gr(t,r)}))}function xr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return ar(this,t,Nr(),(function(t){return dr(t,r)}))}function Sr(t){var r=this.asMutable();return t(r),r.wasAltered()?r.__ensureOwner(this.__ownerID):this}function jr(){return this.__ownerID?this:this.__ensureOwner(new s)}function zr(){return this.__ensureOwner()}function Or(){return this.__altered}var Er=function(t){function r(r){return null==r?Nr():ct(r)&&!T(r)?r:Nr().withMutations((function(e){var n=t(r);tr(n.size),n.forEach((function(t,r){return e.set(r,t)}))}))}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Nr().withMutations((function(r){for(var e=0;e<t.length;e+=2){if(e+1>=t.length)throw new Error("Missing value for key: "+t[e]);r.set(t[e],t[e+1])}}))},r.prototype.toString=function(){return this.__toString("Map {","}")},r.prototype.get=function(t,r){return this._root?this._root.get(0,void 0,t,r):r},r.prototype.set=function(t,r){return Ur(this,t,r)},r.prototype.remove=function(t){return Ur(this,t,u)},r.prototype.deleteAll=function(t){var r=j(t);return 0===r.size?this:this.withMutations((function(t){r.forEach((function(r){return t.remove(r)}))}))},r.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Nr()},r.prototype.sort=function(t){return he(Lt(this,t))},r.prototype.sortBy=function(t,r){return he(Lt(this,r,t))},r.prototype.map=function(t,r){var e=this;return this.withMutations((function(n){n.forEach((function(o,i){n.set(i,t.call(r,o,i,e))}))}))},r.prototype.__iterator=function(t,r){return new Cr(this,t,r)},r.prototype.__iterate=function(t,r){var e=this,n=0;return this._root&&this._root.iterate((function(r){return n++,t(r[1],r[0],e)}),r),n},r.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Rr(this.size,this._root,t,this.__hash):0===this.size?Nr():(this.__ownerID=t,this.__altered=!1,this)},r}(z);Er.isMap=ct;var Ir=Er.prototype;Ir[st]=!0,Ir[t]=Ir.remove,Ir.removeAll=Ir.deleteAll,Ir.setIn=cr,Ir.removeIn=Ir.deleteIn=fr,Ir.update=pr,Ir.updateIn=lr,Ir.merge=Ir.concat=vr,Ir.mergeWith=_r,Ir.mergeDeep=br,Ir.mergeDeepWith=wr,Ir.mergeIn=mr,Ir.mergeDeepIn=xr,Ir.withMutations=Sr,Ir.wasAltered=Or,Ir.asImmutable=zr,Ir["@@transducer/init"]=Ir.asMutable=jr,Ir["@@transducer/step"]=function(t,r){return t.set(r[0],r[1])},Ir["@@transducer/result"]=function(t){return t.asImmutable()};var Ar=function(t,r){this.ownerID=t,this.entries=r};Ar.prototype.get=function(t,r,e,n){for(var o=this.entries,i=0,u=o.length;i<u;i++)if(pt(e,o[i][0]))return o[i][1];return n},Ar.prototype.update=function(t,r,e,n,o,i,c){for(var f=o===u,h=this.entries,p=0,l=h.length;p<l&&!pt(n,h[p][0]);p++);var v=p<l;if(v?h[p][1]===o:f)return this;if(a(c),(f||!v)&&a(i),!f||1!==h.length){if(!v&&!f&&h.length>=$r)return function(t,r,e,n){t||(t=new s);for(var o=new Dr(t,yt(e),[e,n]),i=0;i<r.length;i++){var u=r[i];o=o.update