text: /*! For license information please see 2.81fc0c87.chunk.js.LICENSE.txt */
  (this["webpackJsonpstreamlit-agraph"]=this["webpackJsonpstreamlit-agraph"]||[]).push([[2],[function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(28);function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Object(r.a)(t,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(29),o=n(14);function a(t){return function(){var e,n=Object(r.a)(t);if(Object(i.a)()){var a=Object(r.a)(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return Object(o.a)(this,e)}}},function(t,e,n){t.exports=n(66)},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";t.exports=n(59)},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return o})),n.d(e,"creator",(function(){return r.a})),n.d(e,"local",(function(){return u})),n.d(e,"matcher",(function(){return c.a})),n.d(e,"mouse",(function(){return l.a})),n.d(e,"namespace",(function(){return f.a})),n.d(e,"namespaces",(function(){return h.a})),n.d(e,"clientPoint",(function(){return d.a})),n.d(e,"select",(function(){return i.a})),n.d(e,"selectAll",(function(){return y})),n.d(e,"selection",(function(){return p.b})),n.d(e,"selector",(function(){return v.a})),n.d(e,"selectorAll",(function(){return b.a})),n.d(e,"style",(function(){return g.b})),n.d(e,"touch",(function(){return m.a})),n.d(e,"touches",(function(){return w})),n.d(e,"window",(function(){return k.a})),n.d(e,"event",(function(){return x.c})),n.d(e,"customEvent",(function(){return x.a}));var r=n(11),i=n(20),o=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))},a=0;function u(){return new s}function s(){this._="@"+(++a).toString(36)}s.prototype=u.prototype={constructor:s,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(26),l=n(38),f=n(16),h=n(12),d=n(10),p=n(9),y=function(t){return"string"===typeof t?new p.a([document.querySelectorAll(t)],[document.documentElement]):new p.a([null==t?[]:t],p.c)},v=n(15),b=n(25),g=n(27),m=n(39),_=n(19),w=function(t,e){null==e&&(e=Object(_.a)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=Object(d.a)(t,e[n]);return i},k=n(17),x=n(8)},function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));var r=n(8);function i(){r.c.stopImmediatePropagation()}e.a=function(){r.c.preventDefault(),r.c.stopImmediatePropagation()}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return l}));var r={},i=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function o(t,e,n){return t=a(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function a(t,e,n){return function(r){var o=i;i=r;try{t.call(this,this.__data__,e,n)}finally{i=o}}}function u(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function s(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function c(t,e,n){var i=r.hasOwnProperty(t.type)?o:a;return function(r,o,a){var u,s=this.__on,c=i(e,o,a);if(s)for(var l=0,f=s.length;l<f;++l)if((u=s[l]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=c,u.capture=n),void(u.value=e);this.addEventListener(t.type,c,n),u={type:t.type,name:t.name,value:e,listener:c,capture:n},s?s.push(u):this.__on=[u]}}function l(t,e,n,r){var o=i;t.sourceEvent=i,i=t;try{return e.apply(n,r)}finally{i=o}}e.b=function(t,e,n){var r,i,o=u(t+""),a=o.length;if(!(arguments.length<2)){for(l=e?c:s,null==n&&(n=!1),r=0;r<a;++r)this.each(l(o[r],e,n));return this}var l=this.node().__on;if(l)for(var f,h=0,d=l.length;h<d;++h)for(r=0,f=l[h];r<a;++r)if((i=o[r]).type===f.type&&i.name===f.name)return f.value}},function(t,e,n){"use strict";n.d(e,"c",(function(){return G})),n.d(e,"a",(function(){return K}));var r=n(15),i=n(25),o=n(26),a=function(t){return new Array(t.length)};function u(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}u.prototype={constructor:u,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function s(t,e,n,r,i,o){for(var a,s=0,c=e.length,l=o.length;s<l;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new u(t,o[s]);for(;s<c;++s)(a=e[s])&&(i[s]=a)}function c(t,e,n,r,i,o,a){var s,c,l,f={},h=e.length,d=o.length,p=new Array(h);for(s=0;s<h;++s)(c=e[s])&&(p[s]=l="$"+a.call(c,c.__data__,s,e),l in f?i[s]=c:f[l]=c);for(s=0;s<d;++s)(c=f[l="$"+a.call(t,o[s],s,o)])?(r[s]=c,c.__data__=o[s],f[l]=null):n[s]=new u(t,o[s]);for(s=0;s<h;++s)(c=e[s])&&f[p[s]]===c&&(i[s]=c)}function l(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var f=n(16);function h(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function y(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var g=n(27);function m(t){return function(){delete this[t]}}function _(t,e){return function(){this[t]=e}}function w(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function k(t){return t.trim().split(/^|\s+/)}function x(t){return t.classList||new O(t)}function O(t){this._node=t,this._names=k(t.getAttribute("class")||"")}function S(t,e){for(var n=x(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function T(t,e){for(var n=x(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function E(t){return function(){S(this,t)}}function j(t){return function(){T(this,t)}}function A(t,e){return function(){(e.apply(this,arguments)?S:T)(this,t)}}O.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function I(){this.textContent=""}function C(t){return function(){this.textContent=t}}function N(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function D(){this.innerHTML=""}function M(t){return function(){this.innerHTML=t}}function L(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function B(){this.nextSibling&&this.parentNode.appendChild(this)}function P(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var F=n(11);function R(){return null}function U(){var t=this.parentNode;t&&t.removeChild(this)}function z(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function V(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var H=n(8),W=n(17);function q(t,e,n){var r=Object(W.a)(t),i=r.CustomEvent;"function"===typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Y(t,e){return function(){return q(this,t,e)}}function $(t,e){return function(){return q(this,t,e.apply(this,arguments))}}var G=[null];function K(t,e){this._groups=t,this._parents=e}function X(){return new K([[document.documentElement]],G)}K.prototype=X.prototype={constructor:K,select:function(t){"function"!==typeof t&&(t=Object(r.a)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a,u,s=e[o],c=s.length,l=i[o]=new Array(c),f=0;f<c;++f)(a=s[f])&&(u=t.call(a,a.__data__,f,s))&&("__data__"in a&&(u.__data__=a.__data__),l[f]=u);return new K(i,this._parents)},selectAll:function(t){"function"!==typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,r=[],o=[],a=0;a<n;++a)for(var u,s=e[a],c=s.length,l=0;l<c;++l)(u=s[l])&&(r.push(t.call(u,u.__data__,l,s)),o.push(u));return new K(r,o)},filter:function(t){"function"!==typeof t&&(t=Object(o.a)(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,u=e[i],s=u.length,c=r[i]=[],l=0;l<s;++l)(a=u[l])&&t.call(a,a.__data__,l,u)&&c.push(a);return new K(r,this._parents)},data:function(t,e){if(!t)return v=new Array(this.size()),h=-1,this.each((function(t){v[++h]=t})),v;var n,r=e?c:s,i=this._parents,o=this._groups;"function"!==typeof t&&(n=t,t=function(){return n});for(var a=o.length,u=new Array(a),l=new Array(a),f=new Array(a),h=0;h<a;++h){var d=i[h],p=o[h],y=p.length,v=t.call(d,d&&d.__data__,h,i),b=v.length,g=l[h]=new Array(b),m=u[h]=new Array(b);r(d,p,g,m,f[h]=new Array(y),v,e);for(var _,w,k=0,x=0;k<b;++k)if(_=g[k]){for(k>=x&&(x=k+1);!(w=m[x])&&++x<b;);_._next=w||null}}return(u=new K(u,i))._enter=l,u._exit=f,u},enter:function(){return new K(this._enter||this._groups.map(a),this._parents)},exit:function(){return new K(this._exit||this._groups.map(a),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=e[u],l=n[u],f=c.length,h=a[u]=new Array(f),d=0;d<f;++d)(s=c[d]||l[d])&&(h[d]=s);for(;u<r;++u)a[u]=e[u];return new K(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],s=u.length,c=i[o]=new Array(s),f=0;f<s;++f)(a=u[f])&&(c[f]=a);c.sort(e)}return new K(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=Object(f.a)(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?d:h:"function"===typeof e?n.local?b:v:n.local?y:p)(n,e))},style:g.a,property:function(t,e){return arguments.length>1?this.each((null==e?m:"function"===typeof e?w:_)(t,e)):this.node()[t]},classed:function(t,e){var n=k(t+"");if(arguments.length<2){for(var r=x(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?A:e?E:j)(n,e))},text:function(t){return arguments.length?this.each(null==t?I:("function"===typeof t?N:C)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?D:("function"===typeof t?L:M)(t)):this.node().innerHTML},raise:function(){return this.each(B)},lower:function(){return this.each(P)},append:function(t){var e="function"===typeof t?t:Object(F.a)(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"===typeof t?t:Object(F.a)(t),i=null==e?R:"function"===typeof e?e:Object(r.a)(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(U)},clone:function(t){return this.select(t?V:z)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:H.b,dispatch:function(t,e){return this.each(("function"===typeof e?$:Y)(t,e))}};e.b=X},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";var r=n(16),i=n(12);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.b&&e.documentElement.namespaceURI===i.b?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}e.a=function(t){var e=Object(r.a)(t);return(e.local?a:o)(e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return o}));var i=n(13);function o(t,e){return!e||"object"!==r(e)&&"function"!==typeof e?Object(i.a)(t):e}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";var r=n(12);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(20),i=n(7);function o(t,e){var n=t.document.documentElement,o=Object(r.a)(t).on("dragstart.drag",null);e&&(o.on("click.drag",i.a,!0),setTimeout((function(){o.on("click.drag",null)}),0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}e.a=function(t){var e=t.document.documentElement,n=Object(r.a)(t).on("dragstart.drag",i.a,!0);"onselectstart"in e?n.on("selectstart.drag",i.a,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}},function(t,e,n){"use strict";var r=n(8);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";var r=n(9);e.a=function(t){return"string"===typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";var r;function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({COORDS_SEPARATOR:",",FORCE_X:.06,FORCE_Y:.06,GRAPH_CONTAINER_ID:"graph-container-zoomable",GRAPH_WRAPPER_ID:"graph-wrapper",KEYWORDS:{SAME:"SAME"},LINK_CLASS_NAME:"link",NODE_CLASS_NAME:"node",TTL_DOUBLE_CLICK_IN_MS:300},((r=n(40))&&r.__esModule?r:{default:r}).default);e.default=a},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkForGraphConfigChanges=function(t,e){var n=t.config||{},r=n&&!(0,c.isEmptyObject)(n)&&!(0,c.isDeepEqual)(n,e.config),i=n&&n.d3&&!(0,c.isDeepEqual)(n.d3,e.config.d3);return{configUpdated:r,d3ConfigUpdated:i}},e.checkForGraphElementsChanges=function(t,e){var n=t.data.nodes.map((function(t){return(0,c.antiPick)(t,g)})),r=t.data.links,i=e.d3Nodes.map((function(t){return(0,c.antiPick)(t,g)})),o=e.d3Links.map((function(t){return{source:w(t.source),target:w(t.target)}})),a=!((0,c.isDeepEqual)(n,i)&&(0,c.isDeepEqual)(r,o)),u=n.length!==i.length||r.length!==o.length||!(0,c.isDeepEqual)(n.map(m),i.map(m))||!(0,c.isDeepEqual)(r.map(_),o.map(_));return{graphElementsUpdated:a,newGraphElements:u}},e.getCenterAndZoomTransformation=function(t,e,n){if(!t)return;var r=e.width,a=e.height,u=e.focusZoom;return(0,i.select)("#".concat(n)).call((0,o.zoom)().transform,o.zoomIdentity.translate(r/2,a/2).scale(u).translate(-t.x,-t.y)),"\n    translate(".concat(r/2,", ").concat(a/2,")\n    scale(").concat(u,")\n    translate(").concat(-t.x,", ").concat(-t.y,")\n  ")},e.getId=w,e.initializeGraphState=function(t,e){var n,i=t.data,o=t.id,f=t.config;(function(t){t.nodes&&t.nodes.length||((0,c.logWarning)("Graph",s.default.INSUFFICIENT_DATA),t.nodes=[]);t.links||((0,c.logWarning)("Graph",s.default.INSUFFICIENT_LINKS),t.links=[]);for(var e=t.links.length,n=function(e){var n=t.links[e];t.nodes.find((function(t){return t.id===n.source}))||(0,c.throwErr)("Graph","".concat(s.default.INVALID_LINKS,' - "').concat(n.source,'" is not a valid source node id')),t.nodes.find((function(t){return t.id===n.target}))||(0,c.throwErr)("Graph","".concat(s.default.INVALID_LINKS,' - "').concat(n.target,'" is not a valid target node id')),n&&void 0!==n.value&&"number"!==typeof n.value&&(0,c.throwErr)("Graph","".concat(s.default.INVALID_LINK_VALUE,' - found in link with source "').concat(n.source,'" and target "').concat(n.target,'"'))},r=0;r<e;r++)n(r)})(i),n=e&&e.nodes?{nodes:i.nodes.map((function(t){return e.nodes[t.id]?d({},t,{},(0,c.pick)(e.nodes[t.id],y)):d({},t)})),links:i.links.map((function(t,n){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=n.find((function(e){return e.source.id===t.source&&e.target.id===t.target})),a=o&&(0,c.pick)(o,v),u=(0,c.antiPick)(t,["source","target"]);if(a){var s=i.config&&Object.prototype.hasOwnProperty.call(i.config,"directed")&&r.directed!==i.config.directed,l=d({index:e},a,{},u);return s?d({},l,{isHidden:!1}):r.collapsible?l:d({},l,{isHidden:!1})}var f=!1,h={id:t.source,highlighted:f},p={id:t.target,highlighted:f};return d({index:e,source:h,target:p},u)}(t,n,e&&e.d3Links,f,e)}))}:{nodes:i.nodes.map((function(t){return d({},t)})),links:i.links.map((function(t){return d({},t)}))};var h=d({},(0,c.merge)(u.default,f||{})),p=function(t,e){return t.reduce((function(t,n){var r=w(n.source),i=w(n.target);t[r]||(t[r]={}),t[i]||(t[i]={});var o=e.collapsible&&n.isHidden?0:n.value||1;return t[r][i]=o,e.directed||(t[i][r]=o),t}),{})}(n.links,h),g=function(t,e){return Object.keys(t).reduce((function(n,r){var i=(0,l.computeNodeDegree)(r,e),o=i.inDegree,a=i.outDegree,u=t[r],s=0===o&&0===a?d({},u,{_orphan:!0}):u;return n[r]=s,n}),{})}(b(n.nodes),p),m=n,_=m.nodes,k=m.links,x=o.replace(/ /g,"_"),O=function(t,e,n){var i=(0,r.forceX)(t/2).strength(a.default.FORCE_X),o=(0,r.forceY)(e/2).strength(a.default.FORCE_Y),u=n;return(0,r.forceSimulation)().force("charge",(0,r.forceManyBody)().strength(u)).force("x",i).force("y",o)}(h.width,h.height,h.d3&&h.d3.gravity),S=h.minZoom,T=h.maxZoom,E=h.focusZoom;E>T?h.focusZoom=T:E<S&&(h.focusZoom=S);return{id:x,config:h,links:p,d3Links:k,nodes:g,d3Nodes:_,highlightedNode:"",simulation:O,newGraphElements:!1,configUpdated:!1,transform:1,draggedNode:null}},e.updateNodeHighlightedValue=function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=i?r:"",a=d({},t[r],{highlighted:i}),u=d({},t,p({},r,a));e[r]&&0!==n.highlightDegree&&(u=Object.keys(e[r]).reduce((function(t,e){var n=d({},u[e],{highlighted:i});return t[e]=n,t}),u));return{nodes:u,highlightedNode:o}},e.getNormalizedNodeCoordinates=function(t,e,n,r){var i,o,u,s=t.sourceId,c=t.targetId,l=t.sourceCoords,f=void 0===l?{}:l,h=t.targetCoords,d=void 0===h?{}:h,p=null===e||void 0===e?void 0:e[s],y=null===e||void 0===e?void 0:e[c];if(!p||!y)return{sourceCoords:f,targetCoords:d};if((null===(i=n.node)||void 0===i?void 0:i.viewGenerator)||(null===p||void 0===p?void 0:p.viewGenerator)||(null===y||void 0===y?void 0:y.viewGenerator))return{sourceCoords:f,targetCoords:d};var v=p.symbolType||(null===(o=n.node)||void 0===o?void 0:o.symbolType),b=y.symbolType||(null===(u=n.node)||void 0===u?void 0:u.symbolType);if(!k.has(v)&&!k.has(b))return{sourceCoords:f,targetCoords:d};var g=f.x,m=f.y,_=d.x,w=d.y,x=function(t){var e=Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2));return 0===e?t:{x:t.x/e,y:t.y/e}}({x:_-g,y:w-m});switch(v){case a.default.SYMBOLS.CIRCLE:var O=(null===p||void 0===p?void 0:p.size)||n.node.size;O=.95*Math.sqrt(O/Math.PI),g+=O*x.x,m+=O*x.y}switch(b){case a.default.SYMBOLS.CIRCLE:var S,T,E=r*Math.min((null===(S=n.link)||void 0===S?void 0:S.markerWidth)||0,(null===(T=n.link)||void 0===T?void 0:T.markerHeight)||0),j=(null===y||void 0===y?void 0:y.size)||n.node.size;j=.95*Math.sqrt(j/Math.PI),_-=(j+(n.directed?E:0))*x.x,w-=(j+(n.directed?E:0))*x.y}return{sourceCoords:{x:g,y:m},targetCoords:{x:_,y:w}}},e.initializeNodes=b;var r=n(48),i=n(6),o=n(47),a=f(n(21)),u=f(n(32)),s=f(n(41)),c=n(24),l=n(33);function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=["id","highlighted","x","y","index","vy","vx"],v=["index","source","target","isHidden"];function b(t){for(var e={},n=t.length,r=0;r<n;r++){var i=t[r];i.highlighted=!1,Object.prototype.hasOwnProperty.call(i,"fx")?i.x=i.fx:Object.prototype.hasOwnProperty.call(i,"x")||(i.x=0),Object.prototype.hasOwnProperty.call(i,"fy")?i.y=i.fy:Object.prototype.hasOwnProperty.call(i,"y")||(i.y=0),e[i.id.toString()]=i}return e}var g=["x","y","vx","vy","index"];function m(t){return(0,c.pick)(t,["id"])}function _(t){return(0,c.pick)(t,["source","target"])}function w(t){return void 0!==t.id&&null!==t.id?t.id:t}var k=new Set([a.default.SYMBOLS.CIRCLE])},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isDeepEqual=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=[];if(0===r&&e===n)return!0;if(o(e)&&!o(n)||!o(e)&&o(n))return!1;var u=Object.keys(e),s=Object.keys(n);if(u.length!==s.length)return!1;for(var c=0,l=u;c<l.length;c++){var f=l[c],h=i(e,f)&&i(n,f);if(h&&r<20)a.push(t(e[f],n[f],r+1));else{var d=o(e[f])&&o(n[f])||Object.prototype.hasOwnProperty.call(n,f)&&n[f]===e[f];if(a.push(d),!d)break}}return-1===a.indexOf(!1)},e.isEmptyObject=o,e.deepClone=function t(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=Object.keys(e),a=0,u=o;a<u.length;a++){var s=u[a],c=i(e,s);n[s]=c&&r<20?t(e[s],{},r+1):e[s]}return n},e.merge=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a={};if(0===Object.keys(e||{}).length)return n&&!o(n)?n:{};for(var u=0,s=Object.keys(e);u<s.length;u++){var c=s[u],l=!!(n[c]&&"object"===r(n[c])&&"object"===r(e[c])&&i<20);l?function(){var r=t(e[c],n[c],i+1);a[c]=Object.prototype.hasOwnProperty.call(e[c],"length")&&Object.prototype.hasOwnProperty.call(n[c],"length")?Object.keys(r).map((function(t){return r[t]})):r}():a[c]=Object.prototype.hasOwnProperty.call(n,c)?n[c]:e[c]}return a},e.pick=a,e.antiPick=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.keys(t).filter((function(t){return!e.includes(t)}));return a(t,n)},e.debounce=function(t,e){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=function(){clearTimeout(n),t.apply(void 0,i)};n&&clearTimeout(n),n=setTimeout(a,e)}},e.throwErr=function(t,e){throw Error(u(t,e))},e.logError=function(t,e){console.error(u(t,e))},e.logWarning=function(t,e){var n="react-d3-graph :: ".concat(t," :: ").concat(e);console.warn(n)};function i(t,e){return!!t&&Object.prototype.hasOwnProperty.call(t,e)&&"object"===r(t[e])&&null!==t[e]&&!o(t[e])}function o(t){return!!t&&"object"===r(t)&&!Object.keys(t).length}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.reduce((function(e,n){return Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]),e}),{})}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"N/A";return"react-d3-graph :: ".concat(t," :: ").concat(e)}},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return this.matches(t)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return u}));var r=n(17);function i(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function a(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function u(t,e){return t.style.getPropertyValue(e)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.a=function(t,e,n){return arguments.length>1?this.each((null==e?i:"function"===typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}n.d(e,"a",(function(){return r}))},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={automaticRearrangeAfterDropNode:!1,collapsible:!1,directed:!1,focusAnimationDuration:.75,focusZoom:1,freezeAllDragEvents:!1,height:400,highlightDegree:1,highlightOpacity:1,linkHighlightBehavior:!1,maxZoom:8,minZoom:.1,initialZoom:null,nodeHighlightBehavior:!1,panAndZoom:!1,staticGraph:!1,staticGraphWithDragAndDrop:!1,width:800,d3:{alphaTarget:.05,gravity:-100,linkLength:100,linkStrength:1,disableLinkForce:!1},node:{color:"#d3d3d3",fontColor:"black",fontSize:8,fontWeight:"normal",highlightColor:"SAME",highlightFontSize:8,highlightFontWeight:"normal",highlightStrokeColor:"SAME",highlightStrokeWidth:"SAME",labelProperty:"id",labelPosition:null,mouseCursor:"pointer",opacity:1,renderLabel:!0,size:200,strokeColor:"none",strokeWidth:1.5,svg:"",symbolType:"circle",viewGenerator:null},link:{color:"#d3d3d3",fontColor:"black",fontSize:8,fontWeight:"normal",highlightColor:"SAME",highlightFontSize:8,highlightFontWeight:"normal",labelProperty:"label",mouseCursor:"pointer",opacity:1,renderLabel:!1,semanticStrokeWidth:!1,strokeWidth:1.5,markerHeight:6,markerWidth:6,type:"STRAIGHT",strokeDasharray:0,strokeDashoffset:0,strokeLinecap:"butt"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeNodeDegree=l,e.getTargetLeafConnections=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=n.directed,i=e[t]?Object.keys(e[t]):[];return i.reduce((function(n,i){return c(i,e,r)&&n.push({source:t,target:i}),n}),[])},e.isNodeVisible=function(t,e,n){if(!e[t])return!1;if(e[t]._orphan)return!0;var r=l(t,n),i=r.inDegree,o=r.outDegree;return i>0||o>0},e.toggleLinksConnections=function(t,e){return t.map((function(t){var n=t.source,i=t.target,a=(0,r.getId)(n),u=(0,r.getId)(i);return o({},t,{isHidden:!(e&&e[a]&&e[a][u])})}))},e.toggleLinksMatrixConnections=function(t,e,n){var r=n.directed;return e.reduce((function(t,e){t[e.source]||(t[e.source]={}),t[e.source][e.target]||(t[e.source][e.target]=0);var n=0===t[e.source][e.target]?1:0;return t[e.source][e.target]=n,r||(t[e.target][e.source]=n),t}),o({},t))};var r=n(23);n(24);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return t<=1&&e<1}function s(t,e){return t<=1&&e<=1}function c(t,e,n){var r=l(t,e);return(n?u:s)(r.inDegree,r.outDegree)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(n,r){return e[r]?Object.keys(e[r]).reduce((function(n,i){return t===r&&(n.outDegree+=e[t][i]),t===i&&(n.inDegree+=e[r][t]),n}),n):n}),{inDegree:0,outDegree:0})}},function(t,e,n){var r;!function(e,n){"use strict";"object"===typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!==typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,u=o.slice,s=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,l=o.indexOf,f={},h=f.toString,d=f.hasOwnProperty,p=d.toString,y=p.call(Object),v={},b=function(t){return"function"===typeof t&&"number"!==typeof t.nodeType&&"function"!==typeof t.item},g=function(t){return null!=t&&t===t.window},m=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var r,i,o=(n=n||m).createElement("script");if(o.text=t,e)for(r in _)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function k(t){return null==t?t+"":"object"===typeof t||"function"===typeof t?f[h.call(t)]||"object":typeof t}var x=function t(e,n){return new t.fn.init(e,n)};function O(t){var e=!!t&&"length"in t&&t.length,n=k(t);return!b(t)&&!g(t)&&("array"===n||0===e||"number"===typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:"3.6.0",constructor:x,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},x.extend=x.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},u=1,s=arguments.length,c=!1;for("boolean"===typeof a&&(c=a,a=arguments[u]||{},u++),"object"===typeof a||b(a)||(a={}),u===s&&(a=this,u--);u<s;u++)if(null!=(t=arguments[u]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(c&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[e],o=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{},i=!1,a[e]=x.extend(c,o,r)):void 0!==r&&(a[e]=r));return a},x.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=a(t))||"function"===typeof(n=d.call(e,"constructor")&&e.constructor)&&p.call(n)===y)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(O(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(O(Object(t))?x.merge(n,"string"===typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(O(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return s(a)},guid:1,support:v}),"function"===typeof Symbol&&(x.fn[Symbol.iterator]=o[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){f["[object "+e+"]"]=e.toLowerCase()}));var S=function(t){var e,n,r,i,o,a,u,s,c,l,f,h,d,p,y,v,b,g,m,_="sizzle"+1*new Date,w=t.document,k=0,x=0,O=st(),S=st(),T=st(),E=st(),j=function(t,e){return t===e&&(f=!0),0},A={}.hasOwnProperty,I=[],C=I.pop,N=I.push,D=I.push,M=I.slice,L=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+P+"*("+F+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+P+"*\\]",U=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",z=new RegExp(P+"+","g"),V=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),H=new RegExp("^"+P+"*,"+P+"*"),W=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),q=new RegExp(P+"|>"),Y=new RegExp(U),$=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(I=M.call(w.childNodes),w.childNodes),I[w.childNodes.length].nodeType}catch(St){D={apply:I.length?function(t,e){N.apply(t,M.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ut(t,e,r,i){var o,u,c,l,f,p,b,g=e&&e.ownerDocument,w=e?e.nodeType:9;if(r=r||[],"string"!==typeof t||!t||1!==w&&9!==w&&11!==w)return r;if(!i&&(h(e),e=e||d,y)){if(11!==w&&(f=J.exec(t)))if(o=f[1]){if(9===w){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(g&&(c=g.getElementById(o))&&m(e,c)&&c.id===o)return r.push(c),r}else{if(f[2])return D.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return D.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!E[t+" "]&&(!v||!v.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(b=t,g=e,1===w&&(q.test(t)||W.test(t))){for((g=tt.test(t)&&bt(e.parentNode)||e)===e&&n.scope||((l=e.getAttribute("id"))?l=l.replace(rt,it):e.setAttribute("id",l=_)),u=(p=a(t)).length;u--;)p[u]=(l?"#"+l:":scope")+" "+mt(p[u]);b=p.join(",")}try{return D.apply(r,g.querySelectorAll(b)),r}catch(k){E(t,!0)}finally{l===_&&e.removeAttribute("id")}}}return s(t.replace(V,"$1"),e,r,i)}function st(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function ct(t){return t[_]=!0,t}function lt(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(St){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function yt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return ct((function(e){return e=+e,ct((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function bt(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}for(e in n=ut.support={},o=ut.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!K.test(e||n&&n.nodeName||"HTML")},h=ut.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:w;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,y=!o(d),w!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=lt((function(t){return p.appendChild(t).appendChild(d.createElement("div")),"undefined"!==typeof t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=lt((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(d.getElementsByClassName),n.getById=lt((function(t){return p.appendChild(t).id=_,!d.getElementsByName||!d.getElementsByName(_).length})),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if("undefined"!==typeof e.getElementById&&y){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if("undefined"!==typeof e.getElementById&&y){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if("undefined"!==typeof e.getElementsByClassName&&y)return e.getElementsByClassName(t)},b=[],v=[],(n.qsa=Z.test(d.querySelectorAll))&&(lt((function(t){var e;p.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+P+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+P+"*(?:value|"+B+")"),t.querySelectorAll("[id~="+_+"-]").length||v.push("~="),(e=d.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),lt((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+P+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=Z.test(g=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&lt((function(t){n.disconnectedMatch=g.call(t,"*"),g.call(t,"[s!='']:x"),b.push("!=",U)})),v=v.length&&new RegExp(v.join("|")),b=b.length&&new RegExp(b.join("|")),e=Z.test(p.compareDocumentPosition),m=e||Z.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},j=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==d||t.ownerDocument==w&&m(w,t)?-1:e==d||e.ownerDocument==w&&m(w,e)?1:l?L(l,t)-L(l,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],u=[e];if(!i||!o)return t==d?-1:e==d?1:i?-1:o?1:l?L(l,t)-L(l,e):0;if(i===o)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?ht(a[r],u[r]):a[r]==w?-1:u[r]==w?1:0},d):d},ut.matches=function(t,e){return ut(t,null,null,e)},ut.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&y&&!E[e+" "]&&(!b||!b.test(e))&&(!v||!v.test(e)))try{var r=g.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(St){E(e,!0)}return ut(e,d,null,[t]).length>0},ut.contains=function(t,e){return(t.ownerDocument||t)!=d&&h(t),m(t,e)},ut.attr=function(t,e){(t.ownerDocument||t)!=d&&h(t);var i=r.attrHandle[e.toLowerCase()],o=i&&A.call(r.attrHandle,e.toLowerCase())?i(t,e,!y):void 0;return void 0!==o?o:n.attributes||!y?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ut.escape=function(t){return(t+"").replace(rt,it)},ut.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ut.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&t.slice(0),t.sort(j),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return l=null,t},i=ut.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=ut.selectors={cacheLength:50,createPseudo:ct,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ut.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ut.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Y.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=O[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&O(t,(function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=ut.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(z," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,s){var c,l,f,h,d,p,y=o!==a?"nextSibling":"previousSibling",v=e.parentNode,b=u&&e.nodeName.toLowerCase(),g=!s&&!u,m=!1;if(v){if(o){for(;y;){for(h=e;h=h[y];)if(u?h.nodeName.toLowerCase()===b:1===h.nodeType)return!1;p=y="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&g){for(m=(d=(c=(l=(f=(h=v)[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===k&&c[1])&&c[2],h=d&&v.childNodes[d];h=++d&&h&&h[y]||(m=d=0)||p.pop();)if(1===h.nodeType&&++m&&h===e){l[t]=[k,d,m];break}}else if(g&&(m=d=(c=(l=(f=(h=e)[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===k&&c[1]),!1===m)for(;(h=++d&&h&&h[y]||(m=d=0)||p.pop())&&((u?h.nodeName.toLowerCase()!==b:1!==h.nodeType)||!++m||(g&&((l=(f=h[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[k,m]),h!==e)););return(m-=i)===r||m%r===0&&m/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ut.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=L(t,o[a])]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:ct((function(t){var e=[],n=[],r=u(t.replace(V,"$1"));return r[_]?ct((function(t,e,n,i){for(var o,a=r(t,null,i,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(e[u]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return ut(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:ct((function(t){return $.test(t||"")||ut.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=y?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:yt(!1),disabled:yt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:vt((function(){return[0]})),last:vt((function(t,e){return[e-1]})),eq:vt((function(t,e,n){return[n<0?n+e:n]})),even:vt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:vt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:vt((function(t,e,n){for(var r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:vt((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=dt(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=pt(e);function gt(){}function mt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function _t(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,u=x++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,s){var c,l,f,h=[k,u];if(s){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,s))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(l=(f=e[_]||(e[_]={}))[e.uniqueID]||(f[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=l[o])&&c[0]===k&&c[1]===u)return h[2]=c[2];if(l[o]=h,h[2]=t(e,n,s))return!0}return!1}}function wt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function kt(t,e,n,r,i){for(var o,a=[],u=0,s=t.length,c=null!=e;u<s;u++)(o=t[u])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(u)));return a}function xt(t,e,n,r,i,o){return r&&!r[_]&&(r=xt(r)),i&&!i[_]&&(i=xt(i,o)),ct((function(o,a,u,s){var c,l,f,h=[],d=[],p=a.length,y=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)ut(t,e[r],n);return n}(e||"*",u.nodeType?[u]:u,[]),v=!t||!o&&e?y:kt(y,h,t,u,s),b=n?i||(o?t:p||r)?[]:a:v;if(n&&n(v,b,u,s),r)for(c=kt(b,d),r(c,[],u,s),l=c.length;l--;)(f=c[l])&&(b[d[l]]=!(v[d[l]]=f));if(o){if(i||t){if(i){for(c=[],l=b.length;l--;)(f=b[l])&&c.push(v[l]=f);i(null,b=[],c,s)}for(l=b.length;l--;)(f=b[l])&&(c=i?L(o,f):h[l])>-1&&(o[c]=!(a[c]=f))}}else b=kt(b===a?b.splice(p,b.length):b),i?i(null,a,b,s):D.apply(a,b)}))}function Ot(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],u=a||r.relative[" "],s=a?1:0,l=_t((function(t){return t===e}),u,!0),f=_t((function(t){return L(e,t)>-1}),u,!0),h=[function(t,n,r){var i=!a&&(r||n!==c)||((e=n).nodeType?l(t,n,r):f(t,n,r));return e=null,i}];s<o;s++)if(n=r.relative[t[s].type])h=[_t(wt(h),n)];else{if((n=r.filter[t[s].type].apply(null,t[s].matches))[_]){for(i=++s;i<o&&!r.relative[t[i].type];i++);return xt(s>1&&wt(h),s>1&&mt(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(V,"$1"),n,s<i&&Ot(t.slice(s,i)),i<o&&Ot(t=t.slice(i)),i<o&&mt(t))}h.push(n)}return wt(h)}return gt.prototype=r.filters=r.pseudos,r.setFilters=new gt,a=ut.tokenize=function(t,e){var n,i,o,a,u,s,c,l=S[t+" "];if(l)return e?0:l.slice(0);for(u=t,s=[],c=r.preFilter;u;){for(a in n&&!(i=H.exec(u))||(i&&(u=u.slice(i[0].length)||u),s.push(o=[])),n=!1,(i=W.exec(u))&&(n=i.shift(),o.push({value:n,type:i[0].replace(V," ")}),u=u.slice(n.length)),r.filter)!(i=G[a].exec(u))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),u=u.slice(n.length));if(!n)break}return e?u.length:u?ut.error(t):S(t,s).slice(0)},u=ut.compile=function(t,e){var n,i=[],o=[],u=T[t+" "];if(!u){for(e||(e=a(t)),n=e.length;n--;)(u=Ot(e[n]))[_]?i.push(u):o.push(u);(u=T(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,u,s,l){var f,p,v,b=0,g="0",m=o&&[],_=[],w=c,x=o||i&&r.find.TAG("*",l),O=k+=null==w?1:Math.random()||.1,S=x.length;for(l&&(c=a==d||a||l);g!==S&&null!=(f=x[g]);g++){if(i&&f){for(p=0,a||f.ownerDocument==d||(h(f),u=!y);v=t[p++];)if(v(f,a||d,u)){s.push(f);break}l&&(k=O)}n&&((f=!v&&f)&&b--,o&&m.push(f))}if(b+=g,n&&g!==b){for(p=0;v=e[p++];)v(m,_,a,u);if(o){if(b>0)for(;g--;)m[g]||_[g]||(_[g]=C.call(s));_=kt(_)}D.apply(s,_),l&&!o&&_.length>0&&b+e.length>1&&ut.uniqueSort(s)}return l&&(k=O,c=w),m};return n?ct(o):o}(o,i))).selector=t}return u},s=ut.select=function(t,e,n,i){var o,s,c,l,f,h="function"===typeof t&&t,d=!i&&a(t=h.selector||t);if(n=n||[],1===d.length){if((s=d[0]=d[0].slice(0)).length>2&&"ID"===(c=s[0]).type&&9===e.nodeType&&y&&r.relative[s[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(o=G.needsContext.test(t)?0:s.length;o--&&(c=s[o],!r.relative[l=c.type]);)if((f=r.find[l])&&(i=f(c.matches[0].replace(et,nt),tt.test(s[0].type)&&bt(e.parentNode)||e))){if(s.splice(o,1),!(t=i.length&&mt(s)))return D.apply(n,i),n;break}}return(h||u(t,d))(i,e,!y,n,!e||tt.test(t)&&bt(e.parentNode)||e),n},n.sortStable=_.split("").sort(j).join("")===_,n.detectDuplicates=!!f,h(),n.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))})),lt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&lt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||ft(B,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),ut}(n);x.find=S,(x.expr=S.selectors)[":"]=x.expr.pseudos,x.uniqueSort=x.unique=S.uniqueSort,x.text=S.getText,x.isXMLDoc=S.isXML,x.contains=S.contains,x.escapeSelector=S.escape;var T=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&x(t).is(n))break;r.push(t)}return r},E=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},j=x.expr.match.needsContext;function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function C(t,e,n){return b(e)?x.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?x.grep(t,(function(t){return t===e!==n})):"string"!==typeof e?x.grep(t,(function(t){return l.call(e,t)>-1!==n})):x.filter(e,t,n)}x.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?x.find.matchesSelector(r,t)?[r]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!==typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<r;e++)if(x.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)x.find(t,i[e],n);return r>1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(C(this,t||[],!1))},not:function(t){return this.pushStack(C(this,t||[],!0))},is:function(t){return!!C(this,"string"===typeof t&&j.test(t)?x(t):t||[],!1).length}});var N,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||N,"string"===typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:D.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),I.test(r[1])&&x.isPlainObject(e))for(r in e)b(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=m.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,N=x(m);var M=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function B(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!==typeof t&&x(t);if(!j.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"===typeof t?l.call(x(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,n){return T(t,"parentNode",n)},next:function(t){return B(t,"nextSibling")},prev:function(t){return B(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,n){return T(t,"nextSibling",n)},prevUntil:function(t,e,n){return T(t,"previousSibling",n)},siblings:function(t){return E((t.parentNode||{}).firstChild,t)},children:function(t){return E(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(A(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(n,r){var i=x.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=x.filter(r,i)),this.length>1&&(L[t]||x.uniqueSort(i),M.test(t)&&i.reverse()),this.pushStack(i)}}));var P=/[^\x20\t\r\n\f]+/g;function F(t){return t}function R(t){throw t}function U(t,e,n,r){var i;try{t&&b(i=t.promise)?i.call(t).done(e).fail(n):t&&b(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"===typeof t?function(t){var e={};return x.each(t.match(P)||[],(function(t,n){e[n]=!0})),e}(t):x.extend({},t);var e,n,r,i,o=[],a=[],u=-1,s=function(){for(i=i||t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&t.stopOnFalse&&(u=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(u=o.length-1,a.push(n)),function e(n){x.each(n,(function(n,r){b(r)?t.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==k(r)&&e(r)}))}(arguments),n&&!e&&s()),this},remove:function(){return x.each(arguments,(function(t,e){for(var n;(n=x.inArray(e,o,n))>-1;)o.splice(n,1),n<=u&&u--})),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},x.extend({Deferred:function(t){var e=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(n){x.each(e,(function(e,r){var i=b(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&b(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var u=this,s=arguments,c=function(){var n,c;if(!(t<o)){if((n=r.apply(u,s))===e.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"===typeof n||"function"===typeof n)&&n.then,b(c)?i?c.call(n,a(o,e,F,i),a(o,e,R,i)):(o++,c.call(n,a(o,e,F,i),a(o,e,R,i),a(o,e,F,e.notifyWith))):(r!==F&&(u=void 0,s=[n]),(i||e.resolveWith)(u,s))}},l=i?c:function(){try{c()}catch(n){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(n,l.stackTrace),t+1>=o&&(r!==R&&(u=void 0,s=[n]),e.rejectWith(u,s))}};t?l():(x.Deferred.getStackHook&&(l.stackTrace=x.Deferred.getStackHook()),n.setTimeout(l))}}return x.Deferred((function(n){e[0][3].add(a(0,n,b(i)?i:F,n.notifyWith)),e[1][3].add(a(0,n,b(t)?t:F)),e[2][3].add(a(0,n,b(r)?r:R))})).promise()},promise:function(t){return null!=t?x.extend(t,i):i}},o={};return x.each(e,(function(t,n){var a=n[2],u=n[5];i[n[1]]=a.add,u&&a.add((function(){r=u}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=u.call(arguments),o=x.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?u.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(U(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||b(i[n]&&i[n].then)))return o.then();for(;n--;)U(i[n],a(n),o.reject);return o.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&z.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},x.readyException=function(t){n.setTimeout((function(){throw t}))};var V=x.Deferred();function H(){m.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),x.ready()}x.fn.ready=function(t){return V.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||V.resolveWith(m,[x]))}}),x.ready.then=V.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?n.setTimeout(x.ready):(m.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var W=function t(e,n,r,i,o,a,u){var s=0,c=e.length,l=null==r;if("object"===k(r))for(s in o=!0,r)t(e,n,s,r[s],!0,a,u);else if(void 0!==i&&(o=!0,b(i)||(u=!0),l&&(u?(n.call(e,i),n=null):(l=n,n=function(t,e,n){return l.call(x(t),n)})),n))for(;s<c;s++)n(e[s],r,u?i:i.call(e[s],s,n(e[s],r)));return o?e:l?n.call(e):c?n(e[0],r):a},q=/^-ms-/,Y=/-([a-z])/g;function $(t,e){return e.toUpperCase()}function G(t){return t.replace(q,"ms-").replace(Y,$)}var K=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function X(){this.expando=x.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},K(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"===typeof e)i[G(e)]=n;else for(r in e)i[G(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][G(e)]},access:function(t,e,n){return void 0===e||e&&"string"===typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(G):(e=G(e))in r?[e]:e.match(P)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||x.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var Q=new X,Z=new X,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function et(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(tt,"-$&").toLowerCase(),"string"===typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:J.test(t)?JSON.parse(t):t)}(n)}catch(i){}Z.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return Z.hasData(t)||Q.hasData(t)},data:function(t,e,n){return Z.access(t,e,n)},removeData:function(t,e){Z.remove(t,e)},_data:function(t,e,n){return Q.access(t,e,n)},_removeData:function(t,e){Q.remove(t,e)}}),x.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=Z.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=G(r.slice(5)),et(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"===typeof t?this.each((function(){Z.set(this,t)})):W(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=Z.get(o,t))||void 0!==(n=et(o,t))?n:void 0;this.each((function(){Z.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Z.remove(this,t)}))}}),x.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Q.get(t,e),n&&(!r||Array.isArray(n)?r=Q.access(t,e,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){var n=x.queue(t,e=e||"fx"),r=n.length,i=n.shift(),o=x._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){x.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Q.get(t,n)||Q.access(t,n,{empty:x.Callbacks("once memory").add((function(){Q.remove(t,[e+"queue",n])}))})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!==typeof t&&(e=t,t="fx",n--),arguments.length<n?x.queue(this[0],t):void 0===e?this:this.each((function(){var n=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=x.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!==typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=Q.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],ot=m.documentElement,at=function(t){return x.contains(t.ownerDocument,t)},ut={composed:!0};ot.getRootNode&&(at=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(ut)===t.ownerDocument});var st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===x.css(t,"display")};function ct(t,e,n,r){var i,o,a=20,u=r?function(){return r.cur()}:function(){return x.css(t,e,"")},s=u(),c=n&&n[3]||(x.cssNumber[e]?"":"px"),l=t.nodeType&&(x.cssNumber[e]||"px"!==c&&+s)&&rt.exec(x.css(t,e));if(l&&l[3]!==c){for(s/=2,c=c||l[3],l=+s||1;a--;)x.style(t,e,l+c),(1-o)*(1-(o=u()/s||.5))<=0&&(a=0),l/=o;x.style(t,e,(l*=2)+c),n=n||[]}return n&&(l=+l||+s||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}var lt={};function ft(t){var e,n=t.ownerDocument,r=t.nodeName,i=lt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=x.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),lt[r]=i,i)}function ht(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=Q.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&st(r)&&(i[o]=ft(r))):"none"!==n&&(i[o]="none",Q.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}x.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"===typeof t?t?this.show():this.hide():this.each((function(){st(this)?x(this).show():x(this).hide()}))}});var dt=/^(?:checkbox|radio)$/i,pt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,yt=/^$|^module$|\/(?:java|ecma)script/i;!function(){var t=m.createDocumentFragment().appendChild(m.createElement("div")),e=m.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),v.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",v.option=!!t.lastChild}();var vt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function bt(t,e){var n;return n="undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!==typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&A(t,e)?x.merge([t],n):n}function gt(t,e){for(var n=0,r=t.length;n<r;n++)Q.set(t[n],"globalEval",!e||Q.get(e[n],"globalEval"))}vt.tbody=vt.tfoot=vt.colgroup=vt.caption=vt.thead,vt.th=vt.td,v.option||(vt.optgroup=vt.option=[1,"<select multiple='multiple'>","</select>"]);var mt=/<|&#?\w+;/;function _t(t,e,n,r,i){for(var o,a,u,s,c,l,f=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===k(o))x.merge(h,o.nodeType?[o]:o);else if(mt.test(o)){for(a=a||f.appendChild(e.createElement("div")),u=(pt.exec(o)||["",""])[1].toLowerCase(),s=vt[u]||vt._default,a.innerHTML=s[1]+x.htmlPrefilter(o)+s[2],l=s[0];l--;)a=a.lastChild;x.merge(h,a.childNodes),(a=f.firstChild).textContent=""}else h.push(e.createTextNode(o));for(f.textContent="",d=0;o=h[d++];)if(r&&x.inArray(o,r)>-1)i&&i.push(o);else if(c=at(o),a=bt(f.appendChild(o),"script"),c&&gt(a),n)for(l=0;o=a[l++];)yt.test(o.type||"")&&n.push(o);return f}var wt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function xt(){return!1}function Ot(t,e){return t===function(){try{return m.activeElement}catch(t){}}()===("focus"===e)}function St(t,e,n,r,i,o){var a,u;if("object"===typeof e){for(u in"string"!==typeof n&&(r=r||n,n=void 0),e)St(t,u,n,r,e[u],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=xt;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return x().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),t.each((function(){x.event.add(this,e,i,r,n)}))}function Tt(t,e,n){n?(Q.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=Q.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=u.call(arguments),Q.set(this,e,o),r=n(this,e),this[e](),o!==(i=Q.get(this,e))||r?Q.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(Q.set(this,e,{value:x.event.trigger(x.extend(o[0],x.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,e)&&x.event.add(t,e,kt)}x.event={global:{},add:function(t,e,n,r,i){var o,a,u,s,c,l,f,h,d,p,y,v=Q.get(t);if(K(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&x.find.matchesSelector(ot,i),n.guid||(n.guid=x.guid++),(s=v.events)||(s=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(P)||[""]).length;c--;)d=y=(u=wt.exec(e[c])||[])[1],p=(u[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=x.event.special[d]||{},l=x.extend({type:d,origType:y,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=s[d])||((h=s[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),x.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,u,s,c,l,f,h,d,p,y,v=Q.hasData(t)&&Q.get(t);if(v&&(s=v.events)){for(c=(e=(e||"").match(P)||[""]).length;c--;)if(d=y=(u=wt.exec(e[c])||[])[1],p=(u[2]||"").split(".").sort(),d){for(f=x.event.special[d]||{},h=s[d=(r?f.delegateType:f.bindType)||d]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!i&&y!==l.origType||n&&n.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||x.removeEvent(t,d,v.handle),delete s[d])}else for(d in s)x.event.remove(t,d+e[c],n,r,!0);x.isEmptyObject(s)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,u=new Array(arguments.length),s=x.event.fix(t),c=(Q.get(this,"events")||Object.create(null))[s.type]||[],l=x.event.special[s.type]||{};for(u[0]=s,e=1;e<arguments.length;e++)u[e]=arguments[e];if(s.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,s)){for(a=x.event.handlers.call(this,s,c),e=0;(i=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,r,i,o,a,u=[],s=e.delegateCount,c=t.target;if(s&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<s;n++)void 0===a[i=(r=e[n]).selector+" "]&&(a[i]=r.needsContext?x(i,this).index(c)>-1:x.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&u.push({elem:c,handlers:o})}return c=this,s<e.length&&u.push({elem:c,handlers:e.slice(s)}),u},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return dt.test(e.type)&&e.click&&A(e,"input")&&Tt(e,"click",kt),!1},trigger:function(t){var e=this||t;return dt.test(e.type)&&e.click&&A(e,"input")&&Tt(e,"click"),!0},_default:function(t){var e=t.target;return dt.test(e.type)&&e.click&&A(e,"input")&&Q.get(e,"click")||A(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},(x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:xt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0}).prototype={constructor:x.Event,isDefaultPrevented:xt,isPropagationStopped:xt,isImmediatePropagationStopped:xt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){x.event.special[t]={setup:function(){return Tt(this,t,Ot),!1},trigger:function(){return Tt(this,t),!0},_default:function(){return!0},delegateType:e}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||x.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),x.fn.extend({on:function(t,e,n,r){return St(this,t,e,n,r)},one:function(t,e,n,r){return St(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,x(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!==typeof e||(n=e,e=void 0),!1===n&&(n=xt),this.each((function(){x.event.remove(this,t,n,e)}))}});var Et=/<script|<style|<link/i,jt=/checked\s*(?:[^=]|=\s*.checked.)/i,At=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function It(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Ct(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Dt(t,e){var n,r,i,o,a,u;if(1===e.nodeType){if(Q.hasData(t)&&(u=Q.get(t).events))for(i in Q.remove(e,"handle events"),u)for(n=0,r=u[i].length;n<r;n++)x.event.add(e,i,u[i][n]);Z.hasData(t)&&(o=Z.access(t),a=x.extend({},o),Z.set(e,a))}}function Mt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&dt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Lt(t,e,n,r){e=s(e);var i,o,a,u,c,l,f=0,h=t.length,d=h-1,p=e[0],y=b(p);if(y||h>1&&"string"===typeof p&&!v.checkClone&&jt.test(p))return t.each((function(i){var o=t.eq(i);y&&(e[0]=p.call(this,i,o.html())),Lt(o,e,n,r)}));if(h&&(o=(i=_t(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(a=x.map(bt(i,"script"),Ct)).length;f<h;f++)c=i,f!==d&&(c=x.clone(c,!0,!0),u&&x.merge(a,bt(c,"script"))),n.call(t[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,x.map(a,Nt),f=0;f<u;f++)c=a[f],yt.test(c.type||"")&&!Q.access(c,"globalEval")&&x.contains(l,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},l):w(c.textContent.replace(At,""),c,l))}return t}function Bt(t,e,n){for(var r,i=e?x.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||x.cleanData(bt(r)),r.parentNode&&(n&&at(r)&&gt(bt(r,"script")),r.parentNode.removeChild(r));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,a,u=t.cloneNode(!0),s=at(t);if(!v.noCloneChecked&&(1===t.nodeType||11===t.nodeType)&&!x.isXMLDoc(t))for(a=bt(u),r=0,i=(o=bt(t)).length;r<i;r++)Mt(o[r],a[r]);if(e)if(n)for(o=o||bt(t),a=a||bt(u),r=0,i=o.length;r<i;r++)Dt(o[r],a[r]);else Dt(t,u);return(a=bt(u,"script")).length>0&&gt(a,!s&&bt(t,"script")),u},cleanData:function(t){for(var e,n,r,i=x.event.special,o=0;void 0!==(n=t[o]);o++)if(K(n)){if(e=n[Q.expando]){if(e.events)for(r in e.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,e.handle);n[Q.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Bt(this,t,!0)},remove:function(t){return Bt(this,t)},text:function(t){return W(this,(function(t){return void 0===t?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Lt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||It(this,t).appendChild(t)}))},prepend:function(){return Lt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=It(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Lt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Lt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return W(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"===typeof t&&!Et.test(t)&&!vt[(pt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(bt(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Lt(this,arguments,(function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(bt(this)),n&&n.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var n,r=[],i=x(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(i[a])[e](n),c.apply(r,n.get());return this.pushStack(r)}}));var Pt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Ft=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Rt=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},Ut=new RegExp(it.join("|"),"i");function zt(t,e,n){var r,i,o,a,u=t.style;return(n=n||Ft(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||at(t)||(a=x.style(t,e)),!v.pixelBoxStyles()&&Pt.test(a)&&Ut.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Vt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(c).appendChild(l);var t=n.getComputedStyle(l);r="1%"!==t.top,s=12===e(t.marginLeft),l.style.right="60%",a=36===e(t.right),i=36===e(t.width),l.style.position="absolute",o=12===e(l.offsetWidth/3),ot.removeChild(c),l=null}}function e(t){return Math.round(parseFloat(t))}var r,i,o,a,u,s,c=m.createElement("div"),l=m.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,x.extend(v,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,r,i;return null==u&&(t=m.createElement("table"),e=m.createElement("tr"),r=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",r.style.height="9px",r.style.display="block",ot.appendChild(t).appendChild(e).appendChild(r),i=n.getComputedStyle(e),u=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,ot.removeChild(t)),u}}))}();var Ht=["Webkit","Moz","ms"],Wt=m.createElement("div").style,qt={};function Yt(t){var e=x.cssProps[t]||qt[t];return e||(t in Wt?t:qt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Ht.length;n--;)if((t=Ht[n]+e)in Wt)return t}(t)||t)}var $t=/^(none|table(?!-c[ea]).+)/,Gt=/^--/,Kt={position:"absolute",visibility:"hidden",display:"block"},Xt={letterSpacing:"0",fontWeight:"400"};function Qt(t,e,n){var r=rt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function Zt(t,e,n,r,i,o){var a="width"===e?1:0,u=0,s=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(s+=x.css(t,n+it[a],!0,i)),r?("content"===n&&(s-=x.css(t,"padding"+it[a],!0,i)),"margin"!==n&&(s-=x.css(t,"border"+it[a]+"Width",!0,i))):(s+=x.css(t,"padding"+it[a],!0,i),"padding"!==n?s+=x.css(t,"border"+it[a]+"Width",!0,i):u+=x.css(t,"border"+it[a]+"Width",!0,i));return!r&&o>=0&&(s+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-s-u-.5))||0),s}function Jt(t,e,n){var r=Ft(t),i=(!v.boxSizingReliable()||n)&&"border-box"===x.css(t,"boxSizing",!1,r),o=i,a=zt(t,e,r),u="offset"+e[0].toUpperCase()+e.slice(1);if(Pt.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&A(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===x.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===x.css(t,"boxSizing",!1,r),(o=u in t)&&(a=t[u])),(a=parseFloat(a)||0)+Zt(t,e,n||(i?"border":"content"),o,r,a)+"px"}function te(t,e,n,r,i){return new te.prototype.init(t,e,n,r,i)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=G(e),s=Gt.test(e),c=t.style;if(s||(e=Yt(u)),a=x.cssHooks[e]||x.cssHooks[u],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:c[e];"string"===(o=typeof n)&&(i=rt.exec(n))&&i[1]&&(n=ct(t,e,i),o="number"),null!=n&&n===n&&("number"!==o||s||(n+=i&&i[3]||(x.cssNumber[u]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(s?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,a,u=G(e);return Gt.test(e)||(e=Yt(u)),(a=x.cssHooks[e]||x.cssHooks[u])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=zt(t,e,r)),"normal"===i&&e in Xt&&(i=Xt[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,n,r){if(n)return!$t.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Jt(t,e,r):Rt(t,Kt,(function(){return Jt(t,e,r)}))},set:function(t,n,r){var i,o=Ft(t),a=!v.scrollboxSize()&&"absolute"===o.position,u=(a||r)&&"border-box"===x.css(t,"boxSizing",!1,o),s=r?Zt(t,e,r,u,o):0;return u&&a&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Zt(t,e,"border",!1,o)-.5)),s&&(i=rt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),Qt(0,n,s)}}})),x.cssHooks.marginLeft=Vt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(zt(t,"marginLeft"))||t.getBoundingClientRect().left-Rt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[t+it[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(x.cssHooks[t+e].set=Qt)})),x.fn.extend({css:function(t,e){return W(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Ft(t),i=e.length;a<i;a++)o[e[a]]=x.css(t,e[a],!1,r);return o}return void 0!==n?x.style(t,e,n):x.css(t,e)}),t,e,arguments.length>1)}}),x.Tween=te,te.prototype={constructor:te,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=te.propHooks[this.prop];return t&&t.get?t.get(this):te.propHooks._default.get(this)},run:function(t){var e,n=te.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):te.propHooks._default.set(this),this}},te.prototype.init.prototype=te.prototype,te.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[Yt(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},te.propHooks.scrollTop=te.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},(x.fx=te.prototype.init).step={};var ee,ne,re=/^(?:toggle|show|hide)$/,ie=/queueHooks$/;function oe(){ne&&(!1===m.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(oe):n.setTimeout(oe,x.fx.interval),x.fx.tick())}function ae(){return n.setTimeout((function(){ee=void 0})),ee=Date.now()}function ue(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=it[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function se(t,e,n){for(var r,i=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function ce(t,e,n){var r,i,o=0,a=ce.prefilters.length,u=x.Deferred().always((function(){delete s.elem})),s=function(){if(i)return!1;for(var e=ee||ae(),n=Math.max(0,c.startTime+c.duration-e),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return u.notifyWith(t,[c,r,n]),r<1&&a?n:(a||u.notifyWith(t,[c,1,0]),u.resolveWith(t,[c]),!1)},c=u.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:e,originalOptions:n,startTime:ee||ae(),duration:n.duration,tweens:[],createTween:function(e,n){var r=x.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return e?(u.notifyWith(t,[c,1,0]),u.resolveWith(t,[c,e])):u.rejectWith(t,[c,e]),this}}),l=c.props;for(!function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=G(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=x.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(l,c.opts.specialEasing);o<a;o++)if(r=ce.prefilters[o].call(c,t,l,c.opts))return b(r.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return x.map(l,se,c),b(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(s,{elem:t,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(ce,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ct(n.elem,t,rt.exec(e),n),n}]},tweener:function(t,e){b(t)?(e=t,t=["*"]):t=t.match(P);for(var n,r=0,i=t.length;r<i;r++)n=t[r],ce.tweeners[n]=ce.tweeners[n]||[],ce.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,o,a,u,s,c,l,f="width"in e||"height"in e,h=this,d={},p=t.style,y=t.nodeType&&st(t),v=Q.get(t,"fxshow");for(r in n.queue||(null==(a=x._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,x.queue(t,"fx").length||a.empty.fire()}))}))),e)if(i=e[r],re.test(i)){if(delete e[r],o=o||"toggle"===i,i===(y?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;y=!0}d[r]=v&&v[r]||x.style(t,r)}if((s=!x.isEmptyObject(e))||!x.isEmptyObject(d))for(r in f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=v&&v.display)&&(c=Q.get(t,"display")),"none"===(l=x.css(t,"display"))&&(c?l=c:(ht([t],!0),c=t.style.display||c,l=x.css(t,"display"),ht([t]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===x.css(t,"float")&&(s||(h.done((function(){p.display=c})),null==c&&(l=p.display,c="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),s=!1,d)s||(v?"hidden"in v&&(y=v.hidden):v=Q.access(t,"fxshow",{display:c}),o&&(v.hidden=!y),y&&ht([t],!0),h.done((function(){for(r in y||ht([t]),Q.remove(t,"fxshow"),d)x.style(t,r,d[r])}))),s=se(y?v[r]:0,r,h),r in v||(v[r]=s.start,y&&(s.end=s.start,s.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),x.speed=function(t,e,n){var r=t&&"object"===typeof t?x.extend({},t):{complete:n||!n&&e||b(t)&&t,duration:t,easing:n&&e||e&&!b(e)&&e};return x.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(t,e,n,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=x.isEmptyObject(t),o=x.speed(e,n,r),a=function(){var e=ce(this,x.extend({},t),o);(i||Q.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!==typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",o=x.timers,a=Q.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ie.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=Q.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var n=x.fn[e];x.fn[e]=function(t,r,i){return null==t||"boolean"===typeof t?n.apply(this,arguments):this.animate(ue(e,!0),t,r,i)}})),x.each({slideDown:ue("show"),slideUp:ue("hide"),slideToggle:ue("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(ee=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),ee=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){ne||(ne=!0,oe())},x.fx.stop=function(){ne=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,e){return t=x.fx&&x.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}}))},function(){var t=m.createElement("input"),e=m.createElement("select").appendChild(m.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=m.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var le,fe=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return W(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(i=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?le:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=x.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&A(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(P);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),le={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=fe[e]||x.find.attr;fe[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=fe[a],fe[a]=i,i=null!=n(t,e,r)?a:null,fe[a]=o),i}}));var he=/^(?:input|select|textarea|button)$/i,de=/^(?:a|area)$/i;function pe(t){return(t.match(P)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"===typeof t&&t.match(P)||[]}x.fn.extend({prop:function(t,e){return W(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,i=x.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):he.test(t.nodeName)||de.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,n,r,i,o,a,u,s=0;if(b(t))return this.each((function(e){x(this).addClass(t.call(this,e,ye(this)))}));if((e=ve(t)).length)for(;n=this[s++];)if(i=ye(n),r=1===n.nodeType&&" "+pe(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(u=pe(r))&&n.setAttribute("class",u)}return this},removeClass:function(t){var e,n,r,i,o,a,u,s=0;if(b(t))return this.each((function(e){x(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;n=this[s++];)if(i=ye(n),r=1===n.nodeType&&" "+pe(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(u=pe(r))&&n.setAttribute("class",u)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"===typeof e&&r?e?this.addClass(t):this.removeClass(t):b(t)?this.each((function(n){x(this).toggleClass(t.call(this,n,ye(this),e),e)})):this.each((function(){var e,i,o,a;if(r)for(i=0,o=x(this),a=ve(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+pe(ye(n))+" ").indexOf(e)>-1)return!0;return!1}});var be=/\r/g;x.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=b(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,x(this).val()):t)?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=x.map(i,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"===typeof(n=i.value)?n.replace(be,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:pe(x.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],s=a?o+1:i.length;for(r=o<0?s:a?o:0;r<s;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(e=x(n).val(),a)return e;u.push(e)}return u},set:function(t,e){for(var n,r,i=t.options,o=x.makeArray(e),a=i.length;a--;)((r=i[a]).selected=x.inArray(x.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},v.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in n;var ge=/^(?:focusinfocus|focusoutblur)$/,me=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(t,e,r,i){var o,a,u,s,c,l,f,h,p=[r||m],y=d.call(t,"type")?t.type:t,v=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=u=r=r||m,3!==r.nodeType&&8!==r.nodeType&&!ge.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(v=y.split("."),y=v.shift(),v.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[x.expando]?t:new x.Event(y,"object"===typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:x.makeArray(e,[t]),f=x.event.special[y]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!g(r)){for(s=f.delegateType||y,ge.test(s+y)||(a=a.parentNode);a;a=a.parentNode)p.push(a),u=a;u===(r.ownerDocument||m)&&p.push(u.defaultView||u.parentWindow||n)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?s:f.bindType||y,(l=(Q.get(a,"events")||Object.create(null))[t.type]&&Q.get(a,"handle"))&&l.apply(a,e),(l=c&&a[c])&&l.apply&&K(a)&&(t.result=l.apply(a,e),!1===t.result&&t.preventDefault());return t.type=y,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!K(r)||c&&b(r[y])&&!g(r)&&((u=r[c])&&(r[c]=null),x.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,me),r[y](),t.isPropagationStopped()&&h.removeEventListener(y,me),x.event.triggered=void 0,u&&(r[c]=u)),t.result}},simulate:function(t,e,n){var r=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(r,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}}),v.focusin||x.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,e);i||r.addEventListener(t,n,!0),Q.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,e)-1;i?Q.access(r,e,i):(r.removeEventListener(t,n,!0),Q.remove(r,e))}}}));var _e=n.location,we={guid:Date.now()},ke=/\?/;x.parseXML=function(t){var e,r;if(!t||"string"!==typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(i){}return r=e&&e.getElementsByTagName("parsererror")[0],e&&!r||x.error("Invalid XML: "+(r?x.map(r.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var xe=/\[\]$/,Oe=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;function Ee(t,e,n,r){var i;if(Array.isArray(e))x.each(e,(function(e,i){n||xe.test(t)?r(t,i):Ee(t+"["+("object"===typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==k(e))r(t,e);else for(i in e)Ee(t+"["+i+"]",e[i],n,r)}x.param=function(t,e){var n,r=[],i=function(t,e){var n=b(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ee(n,t[n],e,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Te.test(this.nodeName)&&!Se.test(t)&&(this.checked||!dt.test(t))})).map((function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}})):{name:e.name,value:n.replace(Oe,"\r\n")}})).get()}});var je=/%20/g,Ae=/#.*$/,Ie=/([?&])_=[^&]*/,Ce=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ne=/^(?:GET|HEAD)$/,De=/^\/\//,Me={},Le={},Be="*/".concat("*"),Pe=m.createElement("a");function Fe(t){return function(e,n){"string"!==typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(P)||[];if(b(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Re(t,e,n,r){var i={},o=t===Le;function a(u){var s;return i[u]=!0,x.each(t[u]||[],(function(t,u){var c=u(e,n,r);return"string"!==typeof c||o||i[c]?o?!(s=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),s}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Ue(t,e){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&x.extend(!0,t,r),t}Pe.href=_e.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_e.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_e.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ue(Ue(t,x.ajaxSettings),e):Ue(x.ajaxSettings,t)},ajaxPrefilter:Fe(Me),ajaxTransport:Fe(Le),ajax:function(t,e){"object"===typeof t&&(e=t,t=void 0);var r,i,o,a,u,s,c,l,f,h,d=x.ajaxSetup({},e=e||{}),p=d.context||d,y=d.context&&(p.nodeType||p.jquery)?x(p):x.event,v=x.Deferred(),b=x.Callbacks("once memory"),g=d.statusCode||{},_={},w={},k="canceled",O={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Ce.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==c&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)O.always(t[O.status]);else for(e in t)g[e]=[g[e],t[e]];return this},abort:function(t){var e=t||k;return r&&r.abort(e),S(0,e),this}};if(v.promise(O),d.url=((t||d.url||_e.href)+"").replace(De,_e.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(P)||[""],null==d.crossDomain){s=m.createElement("a");try{s.href=d.url,s.href=s.href,d.crossDomain=Pe.protocol+"//"+Pe.host!==s.protocol+"//"+s.host}catch(T){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!==typeof d.data&&(d.data=x.param(d.data,d.traditional)),Re(Me,d,e,O),c)return O;for(f in(l=x.event&&d.global)&&0===x.active++&&x.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ne.test(d.type),i=d.url.replace(Ae,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(je,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"===typeof d.data)&&(i+=(ke.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Ie,"$1"),h=(ke.test(i)?"&":"?")+"_="+we.guid+++h),d.url=i+h),d.ifModified&&(x.lastModified[i]&&O.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&O.setRequestHeader("If-None-Match",x.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&O.setRequestHeader("Content-Type",d.contentType),O.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Be+"; q=0.01":""):d.accepts["*"]),d.headers)O.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(p,O,d)||c))return O.abort();if(k="abort",b.add(d.complete),O.done(d.success),O.fail(d.error),r=Re(Le,d,e,O)){if(O.readyState=1,l&&y.trigger("ajaxSend",[O,d]),c)return O;d.async&&d.timeout>0&&(u=n.setTimeout((function(){O.abort("timeout")}),d.timeout));try{c=!1,r.send(_,S)}catch(T){if(c)throw T;S(-1,T)}}else S(-1,"No Transport");function S(t,e,a,s){var f,h,m,_,w,k=e;c||(c=!0,u&&n.clearTimeout(u),r=void 0,o=s||"",O.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var r,i,o,a,u=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){s.unshift(i);break}if(s[0]in n)o=s[0];else{for(i in n){if(!s[0]||t.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),n[o]}(d,O,a)),!f&&x.inArray("script",d.dataTypes)>-1&&x.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(t,e,n,r){var i,o,a,u,s,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!s&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=o,o=l.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(a=c[s+" "+o]||c["* "+o]))for(i in c)if((u=i.split(" "))[1]===o&&(a=c[s+" "+u[0]]||c["* "+u[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=u[0],l.unshift(u[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(T){return{state:"parsererror",error:a?T:"No conversion from "+s+" to "+o}}}return{state:"success",data:e}}(d,_,O,f),f?(d.ifModified&&((w=O.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=w),(w=O.getResponseHeader("etag"))&&(x.etag[i]=w)),204===t||"HEAD"===d.type?k="nocontent":304===t?k="notmodified":(k=_.state,h=_.data,f=!(m=_.error))):(m=k,!t&&k||(k="error",t<0&&(t=0))),O.status=t,O.statusText=(e||k)+"",f?v.resolveWith(p,[h,k,O]):v.rejectWith(p,[O,k,m]),O.statusCode(g),g=void 0,l&&y.trigger(f?"ajaxSuccess":"ajaxError",[O,d,f?h:m]),b.fireWith(p,[O,k]),l&&(y.trigger("ajaxComplete",[O,d]),--x.active||x.event.trigger("ajaxStop")))}return O},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:i,data:n,success:r},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,n){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,n)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(b(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return b(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=b(t);return this.each((function(n){x(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},Ve=x.ajaxSettings.xhr();v.cors=!!Ve&&"withCredentials"in Ve,v.ajax=Ve=!!Ve,x.ajaxTransport((function(t){var e,r;if(v.cors||Ve&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];for(a in t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)u.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!==typeof u.status?o(0,"error"):o(u.status,u.statusText):o(ze[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!==typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=e(),r=u.onerror=u.ontimeout=e("error"),void 0!==u.onabort?u.onabort=r:u.onreadystatechange=function(){4===u.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{u.send(t.hasContent&&t.data||null)}catch(s){if(e)throw s}},abort:function(){e&&e()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),m.head.appendChild(e[0])},abort:function(){n&&n()}}}));var He=[],We=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=He.pop()||x.expando+"_"+we.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(t,e,r){var i,o,a,u=!1!==t.jsonp&&(We.test(t.url)?"url":"string"===typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&We.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(We,"$1"+i):!1!==t.jsonp&&(t.url+=(ke.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||x.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?x(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,He.push(i)),a&&b(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=function(){var t=m.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),x.parseHTML=function(t,e,n){return"string"!==typeof t?[]:("boolean"===typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((r=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(r)):e=m),o=!n&&[],(i=I.exec(t))?[e.createElement(i[1])]:(i=_t([t],e,o),o&&o.length&&x(o).remove(),x.merge([],i.childNodes)));var r,i,o},x.fn.load=function(t,e,n){var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=pe(t.slice(u)),t=t.slice(0,u)),b(e)?(n=e,e=void 0):e&&"object"===typeof e&&(i="POST"),a.length>0&&x.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(r?x("<div>").append(x.parseHTML(t)).find(r):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,n){var r,i,o,a,u,s,c=x.css(t,"position"),l=x(t),f={};"static"===c&&(t.style.position="relative"),u=l.offset(),o=x.css(t,"top"),s=x.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+s).indexOf("auto")>-1?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(s)||0),b(e)&&(e=e.call(t,n,x.extend({},u))),null!=e.top&&(f.top=e.top-u.top+a),null!=e.left&&(f.left=e.left-u.left+i),"using"in e?e.using.call(t,f):l.css(f)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===x.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),i.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-x.css(r,"marginTop",!0),left:e.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||ot}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;x.fn[t]=function(r){return W(this,(function(t,r,i){var o;if(g(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=Vt(v.pixelPosition,(function(t,n){if(n)return n=zt(t,e),Pt.test(n)?x(t).position()[e]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){x.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!==typeof i),u=n||(!0===i||!0===o?"margin":"border");return W(this,(function(e,n,i){var o;return g(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?x.css(e,n,u):x.style(e,n,i,u)}),e,a?i:void 0,a)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){x.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var qe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var n,r,i;if("string"===typeof e&&(n=t[e],e=t,t=n),b(t))return r=u.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(u.call(arguments)))}).guid=t.guid=t.guid||x.guid++,i},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=A,x.isFunction=b,x.isWindow=g,x.camelCase=G,x.type=k,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(qe,"")},void 0===(r=function(){return x}.apply(e,[]))||(t.exports=r);var Ye=n.jQuery,$e=n.$;return x.noConflict=function(t){return n.$===x&&(n.$=$e),t&&n.jQuery===x&&(n.jQuery=Ye),x},"undefined"===typeof i&&(n.jQuery=n.$=x),x}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return fl})),n.d(e,"b",(function(){return hl}));var r={};n.r(r),n.d(r,"memcpy",(function(){return Lt})),n.d(r,"joinUint8Arrays",(function(){return Bt})),n.d(r,"toArrayBufferView",(function(){return Pt})),n.d(r,"toInt8Array",(function(){return Ft})),n.d(r,"toInt16Array",(function(){return Rt})),n.d(r,"toInt32Array",(function(){return Ut})),n.d(r,"toBigInt64Array",(function(){return zt})),n.d(r,"toUint8Array",(function(){return Vt})),n.d(r,"toUint16Array",(function(){return Ht})),n.d(r,"toUint32Array",(function(){return Wt})),n.d(r,"toBigUint64Array",(function(){return qt})),n.d(r,"toFloat32Array",(function(){return Yt})),n.d(r,"toFloat64Array",(function(){return $t})),n.d(r,"toUint8ClampedArray",(function(){return Gt})),n.d(r,"toArrayBufferViewIterator",(function(){return Xt})),n.d(r,"toInt8ArrayIterator",(function(){return Qt})),n.d(r,"toInt16ArrayIterator",(function(){return Zt})),n.d(r,"toInt32ArrayIterator",(function(){return Jt})),n.d(r,"toUint8ArrayIterator",(function(){return te})),n.d(r,"toUint16ArrayIterator",(function(){return ee})),n.d(r,"toUint32ArrayIterator",(function(){return ne})),n.d(r,"toFloat32ArrayIterator",(function(){return re})),n.d(r,"toFloat64ArrayIterator",(function(){return ie})),n.d(r,"toUint8ClampedArrayIterator",(function(){return oe})),n.d(r,"toArrayBufferViewAsyncIterator",(function(){return ae})),n.d(r,"toInt8ArrayAsyncIterator",(function(){return se})),n.d(r,"toInt16ArrayAsyncIterator",(function(){return ce})),n.d(r,"toInt32ArrayAsyncIterator",(function(){return le})),n.d(r,"toUint8ArrayAsyncIterator",(function(){return fe})),n.d(r,"toUint16ArrayAsyncIterator",(function(){return he})),n.d(r,"toUint32ArrayAsyncIterator",(function(){return de})),n.d(r,"toFloat32ArrayAsyncIterator",(function(){return pe})),n.d(r,"toFloat64ArrayAsyncIterator",(function(){return ye})),n.d(r,"toUint8ClampedArrayAsyncIterator",(function(){return ve})),n.d(r,"rebaseValueOffsets",(function(){return be})),n.d(r,"compareArrayLike",(function(){return ge}));var i={};n.r(i),n.d(i,"getBool",(function(){return Ze})),n.d(i,"getBit",(function(){return Je})),n.d(i,"setBool",(function(){return tn})),n.d(i,"truncateBitmap",(function(){return en})),n.d(i,"packBools",(function(){return nn})),n.d(i,"iterateBits",(function(){return rn})),n.d(i,"popcnt_bit_range",(function(){return on})),n.d(i,"popcnt_array",(function(){return an})),n.d(i,"popcnt_uint32",(function(){return un}));var o={};n.r(o),n.d(o,"uint16ToFloat64",(function(){return jr})),n.d(o,"float64ToUint16",(function(){return Ar}));var a={};n.r(a),n.d(a,"isArrowBigNumSymbol",(function(){return Rr})),n.d(a,"bignumToString",(function(){return Pr})),n.d(a,"bignumToBigInt",(function(){return Fr})),n.d(a,"BN",(function(){return $r}));var u={};n.r(u),n.d(u,"clampIndex",(function(){return Di})),n.d(u,"clampRange",(function(){return Mi})),n.d(u,"createElementComparator",(function(){return Pi}));var s={};n.r(s),n.d(s,"BaseInt64",(function(){return Jo})),n.d(s,"Uint64",(function(){return ta})),n.d(s,"Int64",(function(){return ea})),n.d(s,"Int128",(function(){return na}));var c=n(52),l=n.n(c),f=n(5),h=n.n(f),d=new WeakMap,p=new WeakMap;function y(t){var e=d.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function v(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"===typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!==typeof console&&"function"===typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function b(t,e){d.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var n=Object.keys(e),r=0;r<n.length;++r){var i=n[r];i in this||Object.defineProperty(this,i,g(i))}}function g(t){return{get:function(){return y(this).event[t]},set:function(e){y(this).event[t]=e},configurable:!0,enumerable:!0}}function m(t){return{value:function(){var e=y(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function _(t){if(null==t||t===Object.prototype)return b;var e=p.get(t);return null==e&&(e=function(t,e){var n=Object.keys(e);if(0===n.length)return t;function r(e,n){t.call(this,e,n)}r.prototype=Object.create(t.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(var i=0;i<n.length;++i){var o=n[i];if(!(o in t.prototype)){var a="function"===typeof Object.getOwnPropertyDescriptor(e,o).value;Object.defineProperty(r.prototype,o,a?m(o):g(o))}}return r}(_(Object.getPrototypeOf(t)),t),p.set(t,e)),e}function w(t){return y(t).immediateStopped}function k(t,e){y(t).passiveListener=e}b.prototype={get type(){return y(this).event.type},get target(){return y(this).eventTarget},get currentTarget(){return y(this).currentTarget},composedPath:function(){var t=y(this).currentTarget;return null==t?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return y(this).eventPhase},stopPropagation:function(){var t=y(this);t.stopped=!0,"function"===typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation:function(){var t=y(this);t.stopped=!0,t.immediateStopped=!0,"function"===typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(y(this).event.bubbles)},get cancelable(){return Boolean(y(this).event.cancelable)},preventDefault:function(){v(y(this))},get defaultPrevented(){return y(this).canceled},get composed(){return Boolean(y(this).event.composed)},get timeStamp(){return y(this).timeStamp},get srcElement(){return y(this).eventTarget},get cancelBubble(){return y(this).stopped},set cancelBubble(t){if(t){var e=y(this);e.stopped=!0,"boolean"===typeof e.event.cancelBubble&&(e.event.cancelBubble=!0)}},get returnValue(){return!y(this).canceled},set returnValue(t){t||v(y(this))},initEvent:function(){}},Object.defineProperty(b.prototype,"constructor",{value:b,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.Event&&(Object.setPrototypeOf(b.prototype,window.Event.prototype),p.set(window.Event.prototype,b));var x=new WeakMap;function O(t){return null!==t&&"object"===typeof t}function S(t){var e=x.get(t);if(null==e)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function T(t,e){Object.defineProperty(t,"on".concat(e),function(t){return{get:function(){for(var e=S(this).get(t);null!=e;){if(3===e.listenerType)return e.listener;e=e.next}return null},set:function(e){"function"===typeof e||O(e)||(e=null);for(var n=S(this),r=null,i=n.get(t);null!=i;)3===i.listenerType?null!==r?r.next=i.next:null!==i.next?n.set(t,i.next):n.delete(t):r=i,i=i.next;if(null!==e){var o={listener:e,listenerType:3,passive:!1,once:!1,next:null};null===r?n.set(t,o):r.next=o}},configurable:!0,enumerable:!0}}(e))}function E(t){function e(){j.call(this)}e.prototype=Object.create(j.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(var n=0;n<t.length;++n)T(e.prototype,t[n]);return e}function j(){if(!(this instanceof j)){if(1===arguments.length&&Array.isArray(arguments[0]))return E(arguments[0]);if(arguments.length>0){for(var t=new Array(arguments.length),e=0;e<arguments.length;++e)t[e]=arguments[e];return E(t)}throw new TypeError("Cannot call a class as a function")}x.set(this,new Map)}j.prototype={addEventListener:function(t,e,n){if(null!=e){if("function"!==typeof e&&!O(e))throw new TypeError("'listener' should be a function or an object.");var r=S(this),i=O(n),o=(i?Boolean(n.capture):Boolean(n))?1:2,a={listener:e,listenerType:o,passive:i&&Boolean(n.passive),once:i&&Boolean(n.once),next:null},u=r.get(t);if(void 0!==u){for(var s=null;null!=u;){if(u.listener===e&&u.listenerType===o)return;s=u,u=u.next}s.next=a}else r.set(t,a)}},removeEventListener:function(t,e,n){if(null!=e)for(var r=S(this),i=(O(n)?Boolean(n.capture):Boolean(n))?1:2,o=null,a=r.get(t);null!=a;){if(a.listener===e&&a.listenerType===i)return void(null!==o?o.next=a.next:null!==a.next?r.set(t,a.next):r.delete(t));o=a,a=a.next}},dispatchEvent:function(t){if(null==t||"string"!==typeof t.type)throw new TypeError('"event.type" should be a string.');var e=S(this),n=t.type,r=e.get(n);if(null==r)return!0;for(var i=function(t,e){return new(_(Object.getPrototypeOf(e)))(t,e)}(this,t),o=null;null!=r;){if(r.once?null!==o?o.next=r.next:null!==r.next?e.set(n,r.next):e.delete(n):o=r,k(i,r.passive?r.listener:null),"function"===typeof r.listener)try{r.listener.call(this,i)}catch(a){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(a)}else 3!==r.listenerType&&"function"===typeof r.listener.handleEvent&&r.listener.handleEvent(i);if(w(i))break;r=r.next}return k(i,null),function(t,e){y(t).eventPhase=e}(i,0),function(t,e){y(t).currentTarget=e}(i,null),!i.defaultPrevented}},Object.defineProperty(j.prototype,"constructor",{value:j,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.EventTarget&&Object.setPrototypeOf(j.prototype,window.EventTarget.prototype);function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function I(t,e){if(t){if("string"===typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(t,e):void 0}}function C(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=I(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function N(t,e,n,r,i,o,a){try{var u=t[o](a),s=u.value}catch(c){return void n(c)}u.done?e(s):Promise.resolve(s).then(r,i)}function D(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){N(o,r,i,a,u,"next",t)}function u(t){N(o,r,i,a,u,"throw",t)}a(void 0)}))}}var M=n(0);function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function B(t,e,n){return e&&L(t.prototype,e),n&&L(t,n),t}var P=n(3);function F(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}}(t,e)||I(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(t){this.wrapped=t}function U(t){return new R(t)}function z(t){var e,n;function r(e,n){try{var o=t[e](n),a=o.value,u=a instanceof R;Promise.resolve(u?a.wrapped:a).then((function(t){u?r("return"===e?"return":"next",t):i(o.done?"return":"normal",t)}),(function(t){r("throw",t)}))}catch(s){i("throw",s)}}function i(t,i){switch(t){case"return":e.resolve({value:i,done:!0});break;case"throw":e.reject(i);break;default:e.resolve({value:i,done:!1})}(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,i){return new Promise((function(o,a){var u={key:t,arg:i,resolve:o,reject:a,next:null};n?n=n.next=u:(e=n=u,r(t,i))}))},"function"!==typeof t.return&&(this.return=void 0)}function V(t){return function(){return new z(t.apply(this,arguments))}}function H(t){var e;if("undefined"!==typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}function W(t,e){var n={},r=!1;function i(n,i){return r=!0,i=new Promise((function(e){e(t[n](i))})),{done:!1,value:e(i)}}return"function"===typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(t){return r?(r=!1,t):i("next",t)},"function"===typeof t.throw&&(n.throw=function(t){if(r)throw r=!1,t;return i("throw",t)}),"function"===typeof t.return&&(n.return=function(t){return r?(r=!1,t):i("return",t)}),n}"function"===typeof Symbol&&Symbol.asyncIterator&&(z.prototype[Symbol.asyncIterator]=function(){return this}),z.prototype.next=function(t){return this._invoke("next",t)},z.prototype.throw=function(t){return this._invoke("throw",t)},z.prototype.return=function(t){return this._invoke("return",t)};var q={};function Y(t,e,n){return e<=t&&t<=n}function $(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}q.Offset,q.Table,q.SIZEOF_SHORT=2,q.SIZEOF_INT=4,q.FILE_IDENTIFIER_LENGTH=4,q.Encoding={UTF8_BYTES:1,UTF16_STRING:2},q.int32=new Int32Array(2),q.float32=new Float32Array(q.int32.buffer),q.float64=new Float64Array(q.int32.buffer),q.isLittleEndian=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],q.Long=function(t,e){this.low=0|t,this.high=0|e},q.Long.create=function(t,e){return 0==t&&0==e?q.Long.ZERO:new q.Long(t,e)},q.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},q.Long.prototype.equals=function(t){return this.low==t.low&&this.high==t.high},q.Long.ZERO=new q.Long(0,0),q.Builder=function(t){if(t)e=t;else var e=1024;this.bb=q.ByteBuffer.allocate(e),this.space=e,this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},q.Builder.prototype.clear=function(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},q.Builder.prototype.forceDefaults=function(t){this.force_defaults=t},q.Builder.prototype.dataBuffer=function(){return this.bb},q.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},q.Builder.prototype.prep=function(t,e){t>this.minalign&&(this.minalign=t);for(var n=1+~(this.bb.capacity()-this.space+e)&t-1;this.space<n+t+e;){var r=this.bb.capacity();this.bb=q.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-r}this.pad(n)},q.Builder.prototype.pad=function(t){for(var e=0;e<t;e++)this.bb.writeInt8(--this.space,0)},q.Builder.prototype.writeInt8=function(t){this.bb.writeInt8(this.space-=1,t)},q.Builder.prototype.writeInt16=function(t){this.bb.writeInt16(this.space-=2,t)},q.Builder.prototype.writeInt32=function(t){this.bb.writeInt32(this.space-=4,t)},q.Builder.prototype.writeInt64=function(t){this.bb.writeInt64(this.space-=8,t)},q.Builder.prototype.writeFloat32=function(t){this.bb.writeFloat32(this.space-=4,t)},q.Builder.prototype.writeFloat64=function(t){this.bb.writeFloat64(this.space-=8,t)},q.Builder.prototype.addInt8=function(t){this.prep(1,0),this.writeInt8(t)},q.Builder.prototype.addInt16=function(t){this.prep(2,0),this.writeInt16(t)},q.Builder.prototype.addInt32=function(t){this.prep(4,0),this.writeInt32(t)},q.Builder.prototype.addInt64=function(t){this.prep(8,0),this.writeInt64(t)},q.Builder.prototype.addFloat32=function(t){this.prep(4,0),this.writeFloat32(t)},q.Builder.prototype.addFloat64=function(t){this.prep(8,0),this.writeFloat64(t)},q.Builder.prototype.addFieldInt8=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt8(e),this.slot(t))},q.Builder.prototype.addFieldInt16=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt16(e),this.slot(t))},q.Builder.prototype.addFieldInt32=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt32(e),this.slot(t))},q.Builder.prototype.addFieldInt64=function(t,e,n){!this.force_defaults&&e.equals(n)||(this.addInt64(e),this.slot(t))},q.Builder.prototype.addFieldFloat32=function(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat32(e),this.slot(t))},q.Builder.prototype.addFieldFloat64=function(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat64(e),this.slot(t))},q.Builder.prototype.addFieldOffset=function(t,e,n){(this.force_defaults||e!=n)&&(this.addOffset(e),this.slot(t))},q.Builder.prototype.addFieldStruct=function(t,e,n){e!=n&&(this.nested(e),this.slot(t))},q.Builder.prototype.nested=function(t){if(t!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")},q.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")},q.Builder.prototype.slot=function(t){this.vtable[t]=this.offset()},q.Builder.prototype.offset=function(){return this.bb.capacity()-this.space},q.Builder.growByteBuffer=function(t){var e=t.capacity();if(3221225472&e)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var n=e<<1,r=q.ByteBuffer.allocate(n);return r.setPosition(n-e),r.bytes().set(t.bytes(),n-e),r},q.Builder.prototype.addOffset=function(t){this.prep(q.SIZEOF_INT,0),this.writeInt32(this.offset()-t+q.SIZEOF_INT)},q.Builder.prototype.startObject=function(t){this.notNested(),null==this.vtable&&(this.vtable=[]),this.vtable_in_use=t;for(var e=0;e<t;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()},q.Builder.prototype.endObject=function(){if(null==this.vtable||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);for(var t=this.offset(),e=this.vtable_in_use-1;e>=0&&0==this.vtable[e];e--);for(var n=e+1;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);this.addInt16(t-this.object_start);var r=(n+2)*q.SIZEOF_SHORT;this.addInt16(r);var i=0,o=this.space;t:for(e=0;e<this.vtables.length;e++){var a=this.bb.capacity()-this.vtables[e];if(r==this.bb.readInt16(a)){for(var u=q.SIZEOF_SHORT;u<r;u+=q.SIZEOF_SHORT)if(this.bb.readInt16(o+u)!=this.bb.readInt16(a+u))continue t;i=this.vtables[e];break}}return i?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,i-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t},q.Builder.prototype.finish=function(t,e){if(e){var n=e;if(this.prep(this.minalign,q.SIZEOF_INT+q.FILE_IDENTIFIER_LENGTH),n.length!=q.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+q.FILE_IDENTIFIER_LENGTH);for(var r=q.FILE_IDENTIFIER_LENGTH-1;r>=0;r--)this.writeInt8(n.charCodeAt(r))}this.prep(this.minalign,q.SIZEOF_INT),this.addOffset(t),this.bb.setPosition(this.space)},q.Builder.prototype.requiredField=function(t,e){var n=this.bb.capacity()-t,r=n-this.bb.readInt32(n);if(!(0!=this.bb.readInt16(r+e)))throw new Error("FlatBuffers: field "+e+" must be set")},q.Builder.prototype.startVector=function(t,e,n){this.notNested(),this.vector_num_elems=e,this.prep(q.SIZEOF_INT,t*e),this.prep(n,t*e)},q.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},q.Builder.prototype.createString=function(t){if(t instanceof Uint8Array)var e=t;else{e=[];for(var n=0;n<t.length;){var r,i=t.charCodeAt(n++);if(i<55296||i>=56320)r=i;else r=(i<<10)+t.charCodeAt(n++)+-56613888;r<128?e.push(r):(r<2048?e.push(r>>6&31|192):(r<65536?e.push(r>>12&15|224):e.push(r>>18&7|240,r>>12&63|128),e.push(r>>6&63|128)),e.push(63&r|128))}}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);n=0;for(var o=this.space,a=this.bb.bytes();n<e.length;n++)a[o++]=e[n];return this.endVector()},q.Builder.prototype.createLong=function(t,e){return q.Long.create(t,e)},q.ByteBuffer=function(t){this.bytes_=t,this.position_=0},q.ByteBuffer.allocate=function(t){return new q.ByteBuffer(new Uint8Array(t))},q.ByteBuffer.prototype.clear=function(){this.position_=0},q.ByteBuffer.prototype.bytes=function(){return this.bytes_},q.ByteBuffer.prototype.position=function(){return this.position_},q.ByteBuffer.prototype.setPosition=function(t){this.position_=t},q.ByteBuffer.prototype.capacity=function(){return this.bytes_.length},q.ByteBuffer.prototype.readInt8=function(t){return this.readUint8(t)<<24>>24},q.ByteBuffer.prototype.readUint8=function(t){return this.bytes_[t]},q.ByteBuffer.prototype.readInt16=function(t){return this.readUint16(t)<<16>>16},q.ByteBuffer.prototype.readUint16=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8},q.ByteBuffer.prototype.readInt32=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24},q.ByteBuffer.prototype.readUint32=function(t){return this.readInt32(t)>>>0},q.ByteBuffer.prototype.readInt64=function(t){return new q.Long(this.readInt32(t),this.readInt32(t+4))},q.ByteBuffer.prototype.readUint64=function(t){return new q.Long(this.readUint32(t),this.readUint32(t+4))},q.ByteBuffer.prototype.readFloat32=function(t){return q.int32[0]=this.readInt32(t),q.float32[0]},q.ByteBuffer.prototype.readFloat64=function(t){return q.int32[q.isLittleEndian?0:1]=this.readInt32(t),q.int32[q.isLittleEndian?1:0]=this.readInt32(t+4),q.float64[0]},q.ByteBuffer.prototype.writeInt8=function(t,e){this.bytes_[t]=e},q.ByteBuffer.prototype.writeUint8=function(t,e){this.bytes_[t]=e},q.ByteBuffer.prototype.writeInt16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},q.ByteBuffer.prototype.writeUint16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},q.ByteBuffer.prototype.writeInt32=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24},q.ByteBuffer.prototype.writeUint32=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24},q.ByteBuffer.prototype.writeInt64=function(t,e){this.writeInt32(t,e.low),this.writeInt32(t+4,e.high)},q.ByteBuffer.prototype.writeUint64=function(t,e){this.writeUint32(t,e.low),this.writeUint32(t+4,e.high)},q.ByteBuffer.prototype.writeFloat32=function(t,e){q.float32[0]=e,this.writeInt32(t,q.int32[0])},q.ByteBuffer.prototype.writeFloat64=function(t,e){q.float64[0]=e,this.writeInt32(t,q.int32[q.isLittleEndian?0:1]),this.writeInt32(t+4,q.int32[q.isLittleEndian?1:0])},q.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+q.SIZEOF_INT+q.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var t="",e=0;e<q.FILE_IDENTIFIER_LENGTH;e++)t+=String.fromCharCode(this.readInt8(this.position_+q.SIZEOF_INT+e));return t},q.ByteBuffer.prototype.__offset=function(t,e){var n=t-this.readInt32(t);return e<this.readInt16(n)?this.readInt16(n+e):0},q.ByteBuffer.prototype.__union=function(t,e){return t.bb_pos=e+this.readInt32(e),t.bb=this,t},q.ByteBuffer.prototype.__string=function(t,e){t+=this.readInt32(t);var n=this.readInt32(t),r="",i=0;if(t+=q.SIZEOF_INT,e===q.Encoding.UTF8_BYTES)return this.bytes_.subarray(t,t+n);for(;i<n;){var o,a=this.readUint8(t+i++);if(a<192)o=a;else{var u=this.readUint8(t+i++);if(a<224)o=(31&a)<<6|63&u;else{var s=this.readUint8(t+i++);if(a<240)o=(15&a)<<12|(63&u)<<6|63&s;else o=(7&a)<<18|(63&u)<<12|(63&s)<<6|63&this.readUint8(t+i++)}}o<65536?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296+(o>>10),56320+(1023&o)))}return r},q.ByteBuffer.prototype.__indirect=function(t){return t+this.readInt32(t)},q.ByteBuffer.prototype.__vector=function(t){return t+this.readInt32(t)+q.SIZEOF_INT},q.ByteBuffer.prototype.__vector_len=function(t){return this.readInt32(t+this.readInt32(t))},q.ByteBuffer.prototype.__has_identifier=function(t){if(t.length!=q.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+q.FILE_IDENTIFIER_LENGTH);for(var e=0;e<q.FILE_IDENTIFIER_LENGTH;e++)if(t.charCodeAt(e)!=this.readInt8(this.position_+q.SIZEOF_INT+e))return!1;return!0},q.ByteBuffer.prototype.createLong=function(t,e){return q.Long.create(t,e)};function G(t){this.tokens=[].slice.call(t)}G.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.shift());else this.tokens.push(t)}};function K(t,e){if(t)throw TypeError("Decoder error");return e||65533}function X(t,e){if(!(this instanceof X))return new X(t,e);if("utf-8"!==(t=void 0!==t?String(t).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");e=$(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function Q(t,e){if(!(this instanceof Q))return new Q(t,e);if("utf-8"!==(t=void 0!==t?String(t).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");e=$(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function Z(t){var e=t.fatal,n=0,r=0,i=0,o=128,a=191;this.handler=function(t,u){if(-1===u&&0!==i)return i=0,K(e);if(-1===u)return-1;if(0===i){if(Y(u,0,127))return u;if(Y(u,194,223))i=1,n=u-192;else if(Y(u,224,239))224===u&&(o=160),237===u&&(a=159),i=2,n=u-224;else{if(!Y(u,240,244))return K(e);240===u&&(o=144),244===u&&(a=143),i=3,n=u-240}return n<<=6*i,null}if(!Y(u,o,a))return n=i=r=0,o=128,a=191,t.prepend(u),K(e);if(o=128,a=191,n+=u-128<<6*(i-(r+=1)),r!==i)return null;var s=n;return n=i=r=0,s}}function J(t){t.fatal;this.handler=function(t,e){if(-1===e)return-1;if(Y(e,0,127))return e;var n,r;Y(e,128,2047)?(n=1,r=192):Y(e,2048,65535)?(n=2,r=224):Y(e,65536,1114111)&&(n=3,r=240);for(var i=[(e>>6*n)+r];n>0;){var o=e>>6*(n-1);i.push(128|63&o),n-=1}return i}}X.prototype={decode:function(t,e){var n;n="object"===typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"===typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=$(e),this._streaming||(this._decoder=new Z({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var r,i=new G(n),o=[];!i.endOfStream()&&-1!==(r=this._decoder.handler(i,i.read()));)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this._streaming){do{if(-1===(r=this._decoder.handler(i,i.read())))break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this._decoder=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===o[0]?(this._BOMseen=!0,o.shift()):this._BOMseen=!0)),function(t){for(var e="",n=0;n<t.length;++n){var r=t[n];r<=65535?e+=String.fromCharCode(r):(r-=65536,e+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return e}(o)}},Q.prototype={encode:function(t,e){t=t?String(t):"",e=$(e),this._streaming||(this._encoder=new J(this._options)),this._streaming=Boolean(e.stream);for(var n,r=[],i=new G(function(t){for(var e=String(t),n=e.length,r=0,i=[];r<n;){var o=e.charCodeAt(r);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var a=t.charCodeAt(r+1);if(56320<=a&&a<=57343){var u=1023&o,s=1023&a;i.push(65536+(u<<10)+s),r+=1}else i.push(65533)}r+=1}return i}(t));!i.endOfStream()&&-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}};var tt="function"===typeof Buffer?Buffer:null,et="function"===typeof TextDecoder&&"function"===typeof TextEncoder,nt=function(t){if(et||!tt){var e=new t("utf-8");return function(t){return e.decode(t)}}return function(t){var e=Vt(t),n=e.buffer,r=e.byteOffset,i=e.length;return tt.from(n,r,i).toString()}}("undefined"!==typeof TextDecoder?TextDecoder:X),rt=function(t){if(et||!tt){var e=new t;return function(t){return e.encode(t)}}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Vt(tt.from(t,"utf8"))}}("undefined"!==typeof TextEncoder?TextEncoder:Q),it=n(1),ot=n(2),at=Object.freeze({done:!0,value:void 0}),ut=function(){function t(e){Object(M.a)(this,t),this._json=e}return B(t,[{key:"schema",get:function(){return this._json.schema}},{key:"batches",get:function(){return this._json.batches||[]}},{key:"dictionaries",get:function(){return this._json.dictionaries||[]}}]),t}(),st=function(){function t(){Object(M.a)(this,t)}return B(t,[{key:"tee",value:function(){return this._getDOMStream().tee()}},{key:"pipe",value:function(t,e){return this._getNodeStream().pipe(t,e)}},{key:"pipeTo",value:function(t,e){return this._getDOMStream().pipeTo(t,e)}},{key:"pipeThrough",value:function(t,e){return this._getDOMStream().pipeThrough(t,e)}},{key:"_getDOMStream",value:function(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}},{key:"_getNodeStream",value:function(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}]),t}(),ct=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t;return Object(M.a)(this,n),(t=e.call(this))._values=[],t.resolvers=[],t._closedPromise=new Promise((function(e){return t._closedPromiseResolve=e})),t}return B(n,[{key:"cancel",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.return(e);case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"write",value:function(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}},{key:"abort",value:function(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}},{key:"close",value:function(){if(this._closedPromiseResolve){for(var t=this.resolvers;t.length>0;)t.shift().resolve(at);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}},{key:Symbol.asyncIterator,value:function(){return this}},{key:"toDOMStream",value:function(t){return _e.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}},{key:"toNodeStream",value:function(t){return _e.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}},{key:"throw",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.abort(e);case 2:return t.abrupt("return",at);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:return t.abrupt("return",at);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next(e,"read");case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"peek",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next(e,"peek");case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"next",value:function(){var t=this;return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((function(e,n){t.resolvers.push({resolve:e,reject:n})})):Promise.resolve(at)}},{key:"_ensureOpen",value:function(){if(this._closedPromiseResolve)return!0;throw new Error("".concat(this," is closed"))}},{key:"closed",get:function(){return this._closedPromise}}]),n}(st),lt=F(function(){var t=function(){throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=function(){throw t()},e.asUintN=function(){throw t()},"undefined"!==typeof BigInt?[BigInt,!0]:[e,!1]}(),2),ft=lt[0],ht=lt[1],dt=F(function(){var t=function(){throw new Error("BigInt64Array is not available in this environment")};return"undefined"!==typeof BigInt64Array?[BigInt64Array,!0]:[function(){function e(){throw Object(M.a)(this,e),t()}return B(e,null,[{key:"of",value:function(){throw t()}},{key:"from",value:function(){throw t()}},{key:"BYTES_PER_ELEMENT",get:function(){return 8}}]),e}(),!1]}(),2),pt=dt[0],yt=(dt[1],F(function(){var t=function(){throw new Error("BigUint64Array is not available in this environment")};return"undefined"!==typeof BigUint64Array?[BigUint64Array,!0]:[function(){function e(){throw Object(M.a)(this,e),t()}return B(e,null,[{key:"of",value:function(){throw t()}},{key:"from",value:function(){throw t()}},{key:"BYTES_PER_ELEMENT",get:function(){return 8}}]),e}(),!1]}(),2)),vt=yt[0],bt=(yt[1],function(t){return"number"===typeof t}),gt=function(t){return"boolean"===typeof t},mt=function(t){return"function"===typeof t},_t=function(t){return null!=t&&Object(t)===t},wt=function(t){return _t(t)&&mt(t.then)},kt=function(t){return _t(t)&&mt(t[Symbol.iterator])},xt=function(t){return _t(t)&&mt(t[Symbol.asyncIterator])},Ot=function(t){return _t(t)&&_t(t.schema)},St=function(t){return _t(t)&&"done"in t&&"value"in t},Tt=function(t){return _t(t)&&mt(t.stat)&&bt(t.fd)},Et=function(t){return _t(t)&&At(t.body)},jt=function(t){return _t(t)&&mt(t.abort)&&mt(t.getWriter)&&!(t instanceof st)},At=function(t){return _t(t)&&mt(t.cancel)&&mt(t.getReader)&&!(t instanceof st)},It=function(t){return _t(t)&&mt(t.end)&&mt(t.write)&&gt(t.writable)&&!(t instanceof st)},Ct=function(t){return _t(t)&&mt(t.read)&&mt(t.pipe)&&gt(t.readable)&&!(t instanceof st)},Nt=P.mark(Xt),Dt=q.ByteBuffer,Mt="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function Lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.byteLength,i=t.byteLength,o=new Uint8Array(t.buffer,t.byteOffset,i),a=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,i));return o.set(a,n),t}function Bt(t,e){for(var n,r,i,o=function(t){for(var e,n,r,i,o,a,u=t[0]?[t[0]]:[],s=0,c=0,l=t.length;++s<l;)if(o=u[c],a=t[s],!o||!a||o.buffer!==a.buffer||a.byteOffset<o.byteOffset)a&&(u[++c]=a);else{var f=o;e=f.byteOffset,r=f.byteLength;var h=a;n=h.byteOffset,i=h.byteLength,e+r<n||n+i<e?a&&(u[++c]=a):u[c]=new Uint8Array(o.buffer,e,n-e+i)}return u}(t),a=o.reduce((function(t,e){return t+e.byteLength}),0),u=0,s=-1,c=Math.min(e||1/0,a),l=o.length;++s<l;){if(c<=u+(r=(n=o[s]).subarray(0,Math.min(n.length,c-u))).length){r.length<n.length?o[s]=n.subarray(r.length):r.length===n.length&&s++,i?Lt(i,r,u):i=r;break}Lt(i||(i=new Uint8Array(c)),r,u),u+=r.length}return[i||new Uint8Array(0),o.slice(s),a-(i?i.byteLength:0)]}function Pt(t,e){var n=St(e)?e.value:e;return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?("string"===typeof n&&(n=rt(n)),n instanceof ArrayBuffer||n instanceof Mt?new t(n):n instanceof Dt?Pt(t,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}var Ft=function(t){return Pt(Int8Array,t)},Rt=function(t){return Pt(Int16Array,t)},Ut=function(t){return Pt(Int32Array,t)},zt=function(t){return Pt(pt,t)},Vt=function(t){return Pt(Uint8Array,t)},Ht=function(t){return Pt(Uint16Array,t)},Wt=function(t){return Pt(Uint32Array,t)},qt=function(t){return Pt(vt,t)},Yt=function(t){return Pt(Float32Array,t)},$t=function(t){return Pt(Float64Array,t)},Gt=function(t){return Pt(Uint8ClampedArray,t)},Kt=function(t){return t.next(),t};function Xt(t,e){var n,r;return P.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}}),t)})),r="string"===typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Mt?n(e):kt(e)?e:n(e),i.delegateYield(Kt(P.mark((function e(n){var r;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=null;case 1:return e.t0=n,e.next=4,Pt(t,r);case 4:e.t1=e.sent,r=e.t0.next.call(e.t0,e.t1);case 6:if(!r.done){e.next=1;break}case 7:case"end":return e.stop()}}),e)}))(r[Symbol.iterator]())),"t0",3);case 3:case"end":return i.stop()}}),Nt)}var Qt=function(t){return Xt(Int8Array,t)},Zt=function(t){return Xt(Int16Array,t)},Jt=function(t){return Xt(Int32Array,t)},te=function(t){return Xt(Uint8Array,t)},ee=function(t){return Xt(Uint16Array,t)},ne=function(t){return Xt(Uint32Array,t)},re=function(t){return Xt(Float32Array,t)},ie=function(t){return Xt(Float64Array,t)},oe=function(t){return Xt(Uint8ClampedArray,t)};function ae(t,e){return ue.apply(this,arguments)}function ue(){return(ue=V(P.mark((function t(e,n){var r,i,o;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!wt(n)){t.next=13;break}return t.t0=W,t.t1=H,t.t2=ae,t.t3=e,t.next=7,U(n);case 7:return t.t4=t.sent,t.t5=(0,t.t2)(t.t3,t.t4),t.t6=(0,t.t1)(t.t5),t.t7=U,t.delegateYield((0,t.t0)(t.t6,t.t7),"t8",12);case 12:return t.abrupt("return",t.t8);case 13:return r=function(){var t=V(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),i=function(){var t=V(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(W(H(Kt(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=null;case 1:return t.t0=e,t.next=4,n&&n.value;case 4:t.t1=t.sent,n=t.t0.next.call(t.t0,t.t1);case 6:if(!n.done){t.next=1;break}case 7:case"end":return t.stop()}}),t)}))(e[Symbol.iterator]()))),U),"t0",1);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),o="string"===typeof n||ArrayBuffer.isView(n)||n instanceof ArrayBuffer||n instanceof Mt?r(n):kt(n)?i(n):xt(n)?n:r(n),t.delegateYield(W(H(Kt(function(){var t=V(P.mark((function t(n){var r;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=null;case 1:return t.t0=U,t.t1=n,t.next=5,Pt(e,r);case 5:return t.t2=t.sent,t.t3=t.t1.next.call(t.t1,t.t2),t.next=9,(0,t.t0)(t.t3);case 9:r=t.sent;case 10:if(!r.done){t.next=1;break}case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()(o[Symbol.asyncIterator]()))),U),"t9",17);case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var se=function(t){return ae(Int8Array,t)},ce=function(t){return ae(Int16Array,t)},le=function(t){return ae(Int32Array,t)},fe=function(t){return ae(Uint8Array,t)},he=function(t){return ae(Uint16Array,t)},de=function(t){return ae(Uint32Array,t)},pe=function(t){return ae(Float32Array,t)},ye=function(t){return ae(Float64Array,t)},ve=function(t){return ae(Uint8ClampedArray,t)};function be(t,e,n){if(0!==t){n=n.slice(0,e+1);for(var r=-1;++r<=e;)n[r]+=t}return n}function ge(t,e){var n=0,r=t.length;if(r!==e.length)return!1;if(r>0)do{if(t[n]!==e[n])return!1}while(++n<r);return!0}var me=P.mark(ke),_e={fromIterable:function(t){return we(ke(t))},fromAsyncIterable:function(t){return we(function(t){return xe.apply(this,arguments)}(t))},fromDOMStream:function(t){return we(function(t){return Oe.apply(this,arguments)}(t))},fromNodeStream:function(t){return we(function(t){return Ae.apply(this,arguments)}(t))},toDOMStream:function(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream:function(t,e){throw new Error('"toNodeStream" not available in this environment')}},we=function(t){return t.next(),t};function ke(t){var e,n,r,i,o,a,u,s,c,l,f,h;return P.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return s=function(){if("peek"===o)return Bt(r,a)[0];var t=F(Bt(r,a),3);return i=t[0],r=t[1],u=t[2],i},n=!1,r=[],u=0,d.next=6,null;case 6:c=d.sent,o=c.cmd,a=c.size,l=te(t)[Symbol.iterator](),d.prev=10;case 11:if(f=isNaN(a-u)?l.next(void 0):l.next(a-u),e=f.done,i=f.value,!e&&i.byteLength>0&&(r.push(i),u+=i.byteLength),!(e||a<=u)){d.next=22;break}case 16:return d.next=18,s();case 18:h=d.sent,o=h.cmd,a=h.size;case 21:if(a<u){d.next=16;break}case 22:if(!e){d.next=11;break}case 23:d.next=28;break;case 25:d.prev=25,d.t0=d.catch(10),(n=!0)&&"function"===typeof l.throw&&l.throw(d.t0);case 28:return d.prev=28,!1===n&&"function"===typeof l.return&&l.return(),d.finish(28);case 31:case"end":return d.stop()}}),me,null,[[10,25,28,31]])}function xe(){return(xe=V(P.mark((function t(e){var n,r,i,o,a,u,s,c,l,f,h,d;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(){if("peek"===a)return Bt(i,u)[0];var t=F(Bt(i,u),3);return o=t[0],i=t[1],s=t[2],o},r=!1,i=[],s=0,t.next=6,null;case 6:l=t.sent,a=l.cmd,u=l.size,f=fe(e)[Symbol.asyncIterator](),t.prev=10;case 11:if(!isNaN(u-s)){t.next=17;break}return t.next=14,U(f.next(void 0));case 14:t.t0=t.sent,t.next=20;break;case 17:return t.next=19,U(f.next(u-s));case 19:t.t0=t.sent;case 20:if(h=t.t0,n=h.done,o=h.value,!n&&o.byteLength>0&&(i.push(o),s+=o.byteLength),!(n||u<=s)){t.next=31;break}case 25:return t.next=27,c();case 27:d=t.sent,a=d.cmd,u=d.size;case 30:if(u<s){t.next=25;break}case 31:if(!n){t.next=11;break}case 32:t.next=40;break;case 34:if(t.prev=34,t.t1=t.catch(10),t.t2=(r=!0)&&"function"===typeof f.throw,!t.t2){t.next=40;break}return t.next=40,U(f.throw(t.t1));case 40:if(t.prev=40,t.t3=!1===r&&"function"===typeof f.return,!t.t3){t.next=45;break}return t.next=45,U(f.return());case 45:return t.finish(40);case 46:case"end":return t.stop()}}),t,null,[[10,34,40,46]])})))).apply(this,arguments)}function Oe(){return(Oe=V(P.mark((function t(e){var n,r,i,o,a,u,s,c,l,f,h,d;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(){if("peek"===a)return Bt(i,u)[0];var t=F(Bt(i,u),3);return o=t[0],i=t[1],s=t[2],o},n=!1,r=!1,i=[],s=0,t.next=6,null;case 6:l=t.sent,a=l.cmd,u=l.size,f=new Se(e),t.prev=10;case 11:if(!isNaN(u-s)){t.next=17;break}return t.next=14,U(f.read(void 0));case 14:t.t0=t.sent,t.next=20;break;case 17:return t.next=19,U(f.read(u-s));case 19:t.t0=t.sent;case 20:if(h=t.t0,n=h.done,o=h.value,!n&&o.byteLength>0&&(i.push(Vt(o)),s+=o.byteLength),!(n||u<=s)){t.next=31;break}case 25:return t.next=27,c();case 27:d=t.sent,a=d.cmd,u=d.size;case 30:if(u<s){t.next=25;break}case 31:if(!n){t.next=11;break}case 32:t.next=40;break;case 34:if(t.prev=34,t.t1=t.catch(10),t.t2=r=!0,!t.t2){t.next=40;break}return t.next=40,U(f.cancel(t.t1));case 40:if(t.prev=40,!1!==r){t.next=46;break}return t.next=44,U(f.cancel());case 44:t.next=47;break;case 46:e.locked&&f.releaseLock();case 47:return t.finish(40);case 48:case"end":return t.stop()}}),t,null,[[10,34,40,48]])})))).apply(this,arguments)}var Se=function(){function t(e){Object(M.a)(this,t),this.source=e,this.byobReader=null,this.defaultReader=null;try{this.supportsBYOB=!!(this.reader=this.getBYOBReader())}catch(n){this.supportsBYOB=!(this.reader=this.getDefaultReader())}}return B(t,[{key:"releaseLock",value:function(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}},{key:"cancel",value:function(){var t=D(P.mark((function t(e){var n,r;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.reader,r=this.source,t.t0=n,!t.t0){t.next=5;break}return t.next=5,n.cancel(e).catch((function(){}));case 5:r&&r.locked&&this.releaseLock();case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=D(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e){t.next=2;break}return t.abrupt("return",{done:null==this.reader,value:new Uint8Array(0)});case 2:if(this.supportsBYOB&&"number"===typeof e){t.next=8;break}return t.next=5,this.getDefaultReader().read();case 5:t.t0=t.sent,t.next=11;break;case 8:return t.next=10,this.readFromBYOBReader(e);case 10:t.t0=t.sent;case 11:return!(n=t.t0).done&&(n.value=Vt(n)),t.abrupt("return",n);case 14:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getDefaultReader",value:function(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch((function(){}))),this.reader=this.defaultReader}},{key:"getBYOBReader",value:function(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch((function(){}))),this.reader=this.byobReader}},{key:"readFromBYOBReader",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Te(this.getBYOBReader(),new ArrayBuffer(e),0,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"closed",get:function(){return this.reader?this.reader.closed.catch((function(){})):Promise.resolve()}}]),t}();function Te(t,e,n,r){return Ee.apply(this,arguments)}function Ee(){return(Ee=D(P.mark((function t(e,n,r,i){var o,a,u;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r>=i)){t.next=2;break}return t.abrupt("return",{done:!1,value:new Uint8Array(n,0,i)});case 2:return t.next=4,e.read(new Uint8Array(n,r,i-r));case 4:if(o=t.sent,a=o.done,u=o.value,!((r+=u.byteLength)<i)||a){t.next=11;break}return t.next=10,Te(e,u.buffer,r,i);case 10:return t.abrupt("return",t.sent);case 11:return t.abrupt("return",{done:a,value:new Uint8Array(u.buffer,0,r)});case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var je=function(t,e){var n,r=function(t){return n([e,t])};return[e,r,new Promise((function(i){return(n=i)&&t.once(e,r)}))]};function Ae(){return(Ae=V(P.mark((function t(e){var n,r,i,o,a,u,s,c,l,f,h,d,p,y,v;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=function(t,n){return l=c=null,new Promise(function(){var r=D(P.mark((function r(i,o){var a,u,s,c,l,f;return P.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:a=C(t);try{for(a.s();!(u=a.n()).done;)s=F(u.value,2),c=s[0],l=s[1],e.off(c,l)}catch(n){a.e(n)}finally{a.f()}try{(f=e.destroy)&&f.call(e,n),n=void 0}catch(h){n=h||n}finally{null!=n?o(n):i()}case 3:case"end":return r.stop()}}),r)})));return function(t,e){return r.apply(this,arguments)}}())},f=function(){if("peek"===a)return Bt(c,u)[0];var t=F(Bt(c,u),3);return l=t[0],c=t[1],s=t[2],l},n=[],r="error",i=!1,o=null,s=0,c=[],t.next=9,null;case 9:if(h=t.sent,a=h.cmd,u=h.size,!e.isTTY){t.next=16;break}return t.next=15,new Uint8Array(0);case 15:return t.abrupt("return",t.sent);case 16:t.prev=16,n[0]=je(e,"end"),n[1]=je(e,"error");case 19:return n[2]=je(e,"readable"),t.next=22,U(Promise.race(n.map((function(t){return t[2]}))));case 22:if(d=t.sent,p=F(d,2),r=p[0],o=p[1],"error"!==r){t.next=28;break}return t.abrupt("break",37);case 28:if((i="end"===r)||(isFinite(u-s)?(l=Vt(e.read(u-s))).byteLength<u-s&&(l=Vt(e.read(void 0))):l=Vt(e.read(void 0)),l.byteLength>0&&(c.push(l),s+=l.byteLength)),!(i||u<=s)){t.next=36;break}case 30:return t.next=32,f();case 32:y=t.sent,a=y.cmd,u=y.size;case 35:if(u<s){t.next=30;break}case 36:if(!i){t.next=19;break}case 37:return t.prev=37,t.next=40,U(v(n,"error"===r?o:null));case 40:return t.finish(37);case 41:case"end":return t.stop()}}),t,null,[[16,,37,41]])})))).apply(this,arguments)}function Ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ce(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(n),!0).forEach((function(e){Ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var De=n(4);function Me(t,e,n){return(Me="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Object(De.a)(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}var Le,Be,Pe,Fe,Re,Ue,ze=function t(){Object(M.a)(this,t)};Re=Le||(Le={}),Fe=Re.apache||(Re.apache={}),Pe=Fe.arrow||(Fe.arrow={}),function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4"}((Be=Pe.flatbuf||(Pe.flatbuf={})).MetadataVersion||(Be.MetadataVersion={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(t.UnionMode||(t.UnionMode={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(t.Precision||(t.Precision={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(t.DateUnit||(t.DateUnit={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(t.TimeUnit||(t.TimeUnit={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME"}(t.IntervalUnit||(t.IntervalUnit={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"}(t.Type||(t.Type={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(t.Endianness||(t.Endianness={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsNull",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startNull",value:function(t){t.startObject(0)}},{key:"endNull",value:function(t){return t.endObject()}},{key:"createNull",value:function(e){return t.startNull(e),t.endNull(e)}}]),t}();t.Null=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsStruct_",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startStruct_",value:function(t){t.startObject(0)}},{key:"endStruct_",value:function(t){return t.endObject()}},{key:"createStruct_",value:function(e){return t.startStruct_(e),t.endStruct_(e)}}]),t}();t.Struct_=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsList",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startList",value:function(t){t.startObject(0)}},{key:"endList",value:function(t){return t.endObject()}},{key:"createList",value:function(e){return t.startList(e),t.endList(e)}}]),t}();t.List=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsLargeList",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startLargeList",value:function(t){t.startObject(0)}},{key:"endLargeList",value:function(t){return t.endObject()}},{key:"createLargeList",value:function(e){return t.startLargeList(e),t.endLargeList(e)}}]),t}();t.LargeList=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"listSize",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}}],[{key:"getRootAsFixedSizeList",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startFixedSizeList",value:function(t){t.startObject(1)}},{key:"addListSize",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:"endFixedSizeList",value:function(t){return t.endObject()}},{key:"createFixedSizeList",value:function(e,n){return t.startFixedSizeList(e),t.addListSize(e,n),t.endFixedSizeList(e)}}]),t}();t.FixedSizeList=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"keysSorted",value:function(){var t=this.bb.__offset(this.bb_pos,4);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}}],[{key:"getRootAsMap",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startMap",value:function(t){t.startObject(1)}},{key:"addKeysSorted",value:function(t,e){t.addFieldInt8(0,+e,0)}},{key:"endMap",value:function(t){return t.endObject()}},{key:"createMap",value:function(e,n){return t.startMap(e),t.addKeysSorted(e,n),t.endMap(e)}}]),t}();t.Map=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"mode",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.UnionMode.Sparse}},{key:"typeIds",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+4*t):0}},{key:"typeIdsLength",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"typeIdsArray",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}}],[{key:"getRootAsUnion",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startUnion",value:function(t){t.startObject(2)}},{key:"addMode",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.UnionMode.Sparse)}},{key:"addTypeIds",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"createTypeIdsVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addInt32(e[n]);return t.endVector()}},{key:"startTypeIdsVector",value:function(t,e){t.startVector(4,e,4)}},{key:"endUnion",value:function(t){return t.endObject()}},{key:"createUnion",value:function(t,n,r){return e.startUnion(t),e.addMode(t,n),e.addTypeIds(t,r),e.endUnion(t)}}]),e}();e.Union=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"bitWidth",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}},{key:"isSigned",value:function(){var t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}}],[{key:"getRootAsInt",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startInt",value:function(t){t.startObject(2)}},{key:"addBitWidth",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:"addIsSigned",value:function(t,e){t.addFieldInt8(1,+e,0)}},{key:"endInt",value:function(t){return t.endObject()}},{key:"createInt",value:function(e,n,r){return t.startInt(e),t.addBitWidth(e,n),t.addIsSigned(e,r),t.endInt(e)}}]),t}();t.Int=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"precision",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.Precision.HALF}}],[{key:"getRootAsFloatingPoint",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startFloatingPoint",value:function(t){t.startObject(1)}},{key:"addPrecision",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.Precision.HALF)}},{key:"endFloatingPoint",value:function(t){return t.endObject()}},{key:"createFloatingPoint",value:function(t,n){return e.startFloatingPoint(t),e.addPrecision(t,n),e.endFloatingPoint(t)}}]),e}();e.FloatingPoint=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsUtf8",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startUtf8",value:function(t){t.startObject(0)}},{key:"endUtf8",value:function(t){return t.endObject()}},{key:"createUtf8",value:function(e){return t.startUtf8(e),t.endUtf8(e)}}]),t}();t.Utf8=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsBinary",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startBinary",value:function(t){t.startObject(0)}},{key:"endBinary",value:function(t){return t.endObject()}},{key:"createBinary",value:function(e){return t.startBinary(e),t.endBinary(e)}}]),t}();t.Binary=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsLargeUtf8",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startLargeUtf8",value:function(t){t.startObject(0)}},{key:"endLargeUtf8",value:function(t){return t.endObject()}},{key:"createLargeUtf8",value:function(e){return t.startLargeUtf8(e),t.endLargeUtf8(e)}}]),t}();t.LargeUtf8=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsLargeBinary",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startLargeBinary",value:function(t){t.startObject(0)}},{key:"endLargeBinary",value:function(t){return t.endObject()}},{key:"createLargeBinary",value:function(e){return t.startLargeBinary(e),t.endLargeBinary(e)}}]),t}();t.LargeBinary=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"byteWidth",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}}],[{key:"getRootAsFixedSizeBinary",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startFixedSizeBinary",value:function(t){t.startObject(1)}},{key:"addByteWidth",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:"endFixedSizeBinary",value:function(t){return t.endObject()}},{key:"createFixedSizeBinary",value:function(e,n){return t.startFixedSizeBinary(e),t.addByteWidth(e,n),t.endFixedSizeBinary(e)}}]),t}();t.FixedSizeBinary=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsBool",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startBool",value:function(t){t.startObject(0)}},{key:"endBool",value:function(t){return t.endObject()}},{key:"createBool",value:function(e){return t.startBool(e),t.endBool(e)}}]),t}();t.Bool=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"precision",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}},{key:"scale",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}}],[{key:"getRootAsDecimal",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startDecimal",value:function(t){t.startObject(2)}},{key:"addPrecision",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:"addScale",value:function(t,e){t.addFieldInt32(1,e,0)}},{key:"endDecimal",value:function(t){return t.endObject()}},{key:"createDecimal",value:function(e,n,r){return t.startDecimal(e),t.addPrecision(e,n),t.addScale(e,r),t.endDecimal(e)}}]),t}();t.Decimal=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.DateUnit.MILLISECOND}}],[{key:"getRootAsDate",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDate",value:function(t){t.startObject(1)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.DateUnit.MILLISECOND)}},{key:"endDate",value:function(t){return t.endObject()}},{key:"createDate",value:function(t,n){return e.startDate(t),e.addUnit(t,n),e.endDate(t)}}]),e}();e.Date=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.MILLISECOND}},{key:"bitWidth",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}}],[{key:"getRootAsTime",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startTime",value:function(t){t.startObject(2)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}},{key:"addBitWidth",value:function(t,e){t.addFieldInt32(1,e,32)}},{key:"endTime",value:function(t){return t.endObject()}},{key:"createTime",value:function(t,n,r){return e.startTime(t),e.addUnit(t,n),e.addBitWidth(t,r),e.endTime(t)}}]),e}();e.Time=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.SECOND}},{key:"timezone",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}}],[{key:"getRootAsTimestamp",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startTimestamp",value:function(t){t.startObject(2)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.SECOND)}},{key:"addTimezone",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"endTimestamp",value:function(t){return t.endObject()}},{key:"createTimestamp",value:function(t,n,r){return e.startTimestamp(t),e.addUnit(t,n),e.addTimezone(t,r),e.endTimestamp(t)}}]),e}();e.Timestamp=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH}}],[{key:"getRootAsInterval",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startInterval",value:function(t){t.startObject(1)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH)}},{key:"endInterval",value:function(t){return t.endObject()}},{key:"createInterval",value:function(t,n){return e.startInterval(t),e.addUnit(t,n),e.endInterval(t)}}]),e}();e.Interval=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.MILLISECOND}}],[{key:"getRootAsDuration",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDuration",value:function(t){t.startObject(1)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}},{key:"endDuration",value:function(t){return t.endObject()}},{key:"createDuration",value:function(t,n){return e.startDuration(t),e.addUnit(t,n),e.endDuration(t)}}]),e}();e.Duration=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"key",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:"value",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}}],[{key:"getRootAsKeyValue",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startKeyValue",value:function(t){t.startObject(2)}},{key:"addKey",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:"addValue",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"endKeyValue",value:function(t){return t.endObject()}},{key:"createKeyValue",value:function(e,n,r){return t.startKeyValue(e),t.addKey(e,n),t.addValue(e,r),t.endKeyValue(e)}}]),t}();t.KeyValue=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"id",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:"indexType",value:function(e){var n=this.bb.__offset(this.bb_pos,6);return n?(e||new t.apache.arrow.flatbuf.Int).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"isOrdered",value:function(){var t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}}],[{key:"getRootAsDictionaryEncoding",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDictionaryEncoding",value:function(t){t.startObject(3)}},{key:"addId",value:function(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}},{key:"addIndexType",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"addIsOrdered",value:function(t,e){t.addFieldInt8(2,+e,0)}},{key:"endDictionaryEncoding",value:function(t){return t.endObject()}},{key:"createDictionaryEncoding",value:function(t,n,r,i){return e.startDictionaryEncoding(t),e.addId(t,n),e.addIndexType(t,r),e.addIsOrdered(t,i),e.endDictionaryEncoding(t)}}]),e}();e.DictionaryEncoding=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"name",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:"nullable",value:function(){var t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}},{key:"typeType",value:function(){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):t.apache.arrow.flatbuf.Type.NONE}},{key:"type",value:function(t){var e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}},{key:"dictionary",value:function(e){var n=this.bb.__offset(this.bb_pos,12);return n?(e||new t.apache.arrow.flatbuf.DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"children",value:function(e,n){var r=this.bb.__offset(this.bb_pos,14);return r?(n||new t.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}},{key:"childrenLength",value:function(){var t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"customMetadata",value:function(e,n){var r=this.bb.__offset(this.bb_pos,16);return r?(n||new t.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}},{key:"customMetadataLength",value:function(){var t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsField",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startField",value:function(t){t.startObject(7)}},{key:"addName",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:"addNullable",value:function(t,e){t.addFieldInt8(1,+e,0)}},{key:"addTypeType",value:function(e,n){e.addFieldInt8(2,n,t.apache.arrow.flatbuf.Type.NONE)}},{key:"addType",value:function(t,e){t.addFieldOffset(3,e,0)}},{key:"addDictionary",value:function(t,e){t.addFieldOffset(4,e,0)}},{key:"addChildren",value:function(t,e){t.addFieldOffset(5,e,0)}},{key:"createChildrenVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startChildrenVector",value:function(t,e){t.startVector(4,e,4)}},{key:"addCustomMetadata",value:function(t,e){t.addFieldOffset(6,e,0)}},{key:"createCustomMetadataVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startCustomMetadataVector",value:function(t,e){t.startVector(4,e,4)}},{key:"endField",value:function(t){return t.endObject()}},{key:"createField",value:function(t,n,r,i,o,a,u,s){return e.startField(t),e.addName(t,n),e.addNullable(t,r),e.addTypeType(t,i),e.addType(t,o),e.addDictionary(t,a),e.addChildren(t,u),e.addCustomMetadata(t,s),e.endField(t)}}]),e}();e.Field=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"offset",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"length",value:function(){return this.bb.readInt64(this.bb_pos+8)}}],[{key:"createBuffer",value:function(t,e,n){return t.prep(8,16),t.writeInt64(n),t.writeInt64(e),t.offset()}}]),t}();t.Buffer=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"endianness",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.Endianness.Little}},{key:"fields",value:function(e,n){var r=this.bb.__offset(this.bb_pos,6);return r?(n||new t.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}},{key:"fieldsLength",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"customMetadata",value:function(e,n){var r=this.bb.__offset(this.bb_pos,8);return r?(n||new t.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}},{key:"customMetadataLength",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsSchema",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startSchema",value:function(t){t.startObject(3)}},{key:"addEndianness",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.Endianness.Little)}},{key:"addFields",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"createFieldsVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startFieldsVector",value:function(t,e){t.startVector(4,e,4)}},{key:"addCustomMetadata",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:"createCustomMetadataVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startCustomMetadataVector",value:function(t,e){t.startVector(4,e,4)}},{key:"endSchema",value:function(t){return t.endObject()}},{key:"finishSchemaBuffer",value:function(t,e){t.finish(e)}},{key:"createSchema",value:function(t,n,r,i){return e.startSchema(t),e.addEndianness(t,n),e.addFields(t,r),e.addCustomMetadata(t,i),e.endSchema(t)}}]),e}();e.Schema=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Le||(Le={})),function(t){!function(t){!function(t){!function(t){t.Schema=Le.apache.arrow.flatbuf.Schema}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Ue||(Ue={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(t.MessageHeader||(t.MessageHeader={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Ue||(Ue={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"length",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"nullCount",value:function(){return this.bb.readInt64(this.bb_pos+8)}}],[{key:"createFieldNode",value:function(t,e,n){return t.prep(8,16),t.writeInt64(n),t.writeInt64(e),t.offset()}}]),t}();t.FieldNode=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Ue||(Ue={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"length",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:"nodes",value:function(e,n){var r=this.bb.__offset(this.bb_pos,6);return r?(n||new t.apache.arrow.flatbuf.FieldNode).__init(this.bb.__vector(this.bb_pos+r)+16*e,this.bb):null}},{key:"nodesLength",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"buffers",value:function(t,e){var n=this.bb.__offset(this.bb_pos,8);return n?(e||new Le.apache.arrow.flatbuf.Buffer).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}},{key:"buffersLength",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsRecordBatch",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startRecordBatch",value:function(t){t.startObject(3)}},{key:"addLength",value:function(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}},{key:"addNodes",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"startNodesVector",value:function(t,e){t.startVector(16,e,8)}},{key:"addBuffers",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:"startBuffersVector",value:function(t,e){t.startVector(16,e,8)}},{key:"endRecordBatch",value:function(t){return t.endObject()}},{key:"createRecordBatch",value:function(t,n,r,i){return e.startRecordBatch(t),e.addLength(t,n),e.addNodes(t,r),e.addBuffers(t,i),e.endRecordBatch(t)}}]),e}();e.RecordBatch=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Ue||(Ue={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"id",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:"data",value:function(e){var n=this.bb.__offset(this.bb_pos,6);return n?(e||new t.apache.arrow.flatbuf.RecordBatch).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"isDelta",value:function(){var t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}}],[{key:"getRootAsDictionaryBatch",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDictionaryBatch",value:function(t){t.startObject(3)}},{key:"addId",value:function(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}},{key:"addData",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"addIsDelta",value:function(t,e){t.addFieldInt8(2,+e,0)}},{key:"endDictionaryBatch",value:function(t){return t.endObject()}},{key:"createDictionaryBatch",value:function(t,n,r,i){return e.startDictionaryBatch(t),e.addId(t,n),e.addData(t,r),e.addIsDelta(t,i),e.endDictionaryBatch(t)}}]),e}();e.DictionaryBatch=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Ue||(Ue={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"version",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Le.apache.arrow.flatbuf.MetadataVersion.V1}},{key:"headerType",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):t.apache.arrow.flatbuf.MessageHeader.NONE}},{key:"header",value:function(t){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}},{key:"bodyLength",value:function(){var t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:"customMetadata",value:function(t,e){var n=this.bb.__offset(this.bb_pos,12);return n?(e||new Le.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}},{key:"customMetadataLength",value:function(){var t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsMessage",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startMessage",value:function(t){t.startObject(5)}},{key:"addVersion",value:function(t,e){t.addFieldInt16(0,e,Le.apache.arrow.flatbuf.MetadataVersion.V1)}},{key:"addHeaderType",value:function(e,n){e.addFieldInt8(1,n,t.apache.arrow.flatbuf.MessageHeader.NONE)}},{key:"addHeader",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:"addBodyLength",value:function(t,e){t.addFieldInt64(3,e,t.createLong(0,0))}},{key:"addCustomMetadata",value:function(t,e){t.addFieldOffset(4,e,0)}},{key:"createCustomMetadataVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startCustomMetadataVector",value:function(t,e){t.startVector(4,e,4)}},{key:"endMessage",value:function(t){return t.endObject()}},{key:"finishMessageBuffer",value:function(t,e){t.finish(e)}},{key:"createMessage",value:function(t,n,r,i,o,a){return e.startMessage(t),e.addVersion(t,n),e.addHeaderType(t,r),e.addHeader(t,i),e.addBodyLength(t,o),e.addCustomMetadata(t,a),e.endMessage(t)}}]),e}();e.Message=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Ue||(Ue={}));Le.apache.arrow.flatbuf.Type;var Ve,He,We=Le.apache.arrow.flatbuf.DateUnit,qe=Le.apache.arrow.flatbuf.TimeUnit,Ye=Le.apache.arrow.flatbuf.Precision,$e=Le.apache.arrow.flatbuf.UnionMode,Ge=Le.apache.arrow.flatbuf.IntervalUnit,Ke=Ue.apache.arrow.flatbuf.MessageHeader,Xe=Le.apache.arrow.flatbuf.MetadataVersion;!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"}(Ve||(Ve={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(He||(He={}));var Qe=P.mark(rn);function Ze(t,e,n,r){return 0!==(n&1<<r)}function Je(t,e,n,r){return(n&1<<r)>>r}function tn(t,e,n){return n?!!(t[e>>3]|=1<<e%8)||!0:!(t[e>>3]&=~(1<<e%8))&&!1}function en(t,e,n){var r=n.byteLength+7&-8;if(t>0||n.byteLength<r){var i=new Uint8Array(r);return i.set(t%8===0?n.subarray(t>>3):nn(rn(n,t,e,null,Ze)).subarray(0,r)),i}return n}function nn(t){var e,n=[],r=0,i=0,o=0,a=C(t);try{for(a.s();!(e=a.n()).done;){e.value&&(o|=1<<i),8===++i&&(n[r++]=o,o=i=0)}}catch(s){a.e(s)}finally{a.f()}(0===r||i>0)&&(n[r++]=o);var u=new Uint8Array(n.length+7&-8);return u.set(n),u}function rn(t,e,n,r,i){var o,a,u,s,c;return P.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:o=e%8,a=e>>3,u=0,s=n;case 3:if(!(s>0)){l.next=11;break}c=t[a++];case 5:return l.next=7,i(r,u++,c,o);case 7:if(--s>0&&++o<8){l.next=5;break}case 8:o=0,l.next=3;break;case 11:case"end":return l.stop()}}),Qe)}function on(t,e,n){if(n-e<=0)return 0;if(n-e<8){var r,i=0,o=C(rn(t,e,n-e,t,Je));try{for(o.s();!(r=o.n()).done;){i+=r.value}}catch(s){o.e(s)}finally{o.f()}return i}var a=n>>3<<3,u=e+(e%8===0?0:8-e%8);return on(t,e,u)+on(t,a,n)+an(t,u>>3,a-u>>3)}function an(t,e,n){for(var r=0,i=0|e,o=new DataView(t.buffer,t.byteOffset,t.byteLength),a=void 0===n?t.byteLength:i+n;a-i>=4;)r+=un(o.getUint32(i)),i+=4;for(;a-i>=2;)r+=un(o.getUint16(i)),i+=2;for(;a-i>=1;)r+=un(o.getUint8(i)),i+=1;return r}function un(t){var e=0|t;return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24}function sn(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||I(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var cn=function(){function t(){Object(M.a)(this,t)}return B(t,[{key:"visitMany",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.map((function(t,n){return e.visit.apply(e,[t].concat(sn(r.map((function(t){return t[n]})))))}))}},{key:"visit",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.getVisitFn(e[0],!1).apply(this,e)}},{key:"getVisitFn",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ln(this,t,e)}},{key:"visitNull",value:function(t){return null}},{key:"visitBool",value:function(t){return null}},{key:"visitInt",value:function(t){return null}},{key:"visitFloat",value:function(t){return null}},{key:"visitUtf8",value:function(t){return null}},{key:"visitBinary",value:function(t){return null}},{key:"visitFixedSizeBinary",value:function(t){return null}},{key:"visitDate",value:function(t){return null}},{key:"visitTimestamp",value:function(t){return null}},{key:"visitTime",value:function(t){return null}},{key:"visitDecimal",value:function(t){return null}},{key:"visitList",value:function(t){return null}},{key:"visitStruct",value:function(t){return null}},{key:"visitUnion",value:function(t){return null}},{key:"visitDictionary",value:function(t){return null}},{key:"visitInterval",value:function(t){return null}},{key:"visitFixedSizeList",value:function(t){return null}},{key:"visitMap",value:function(t){return null}}]),t}();function ln(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=null,i=Ve.NONE;switch(e instanceof or||e instanceof ze?i=fn(e.type):e instanceof On?i=fn(e):"number"!==typeof(i=e)&&(i=Ve[e]),i){case Ve.Null:r=t.visitNull;break;case Ve.Bool:r=t.visitBool;break;case Ve.Int:r=t.visitInt;break;case Ve.Int8:r=t.visitInt8||t.visitInt;break;case Ve.Int16:r=t.visitInt16||t.visitInt;break;case Ve.Int32:r=t.visitInt32||t.visitInt;break;case Ve.Int64:r=t.visitInt64||t.visitInt;break;case Ve.Uint8:r=t.visitUint8||t.visitInt;break;case Ve.Uint16:r=t.visitUint16||t.visitInt;break;case Ve.Uint32:r=t.visitUint32||t.visitInt;break;case Ve.Uint64:r=t.visitUint64||t.visitInt;break;case Ve.Float:r=t.visitFloat;break;case Ve.Float16:r=t.visitFloat16||t.visitFloat;break;case Ve.Float32:r=t.visitFloat32||t.visitFloat;break;case Ve.Float64:r=t.visitFloat64||t.visitFloat;break;case Ve.Utf8:r=t.visitUtf8;break;case Ve.Binary:r=t.visitBinary;break;case Ve.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case Ve.Date:r=t.visitDate;break;case Ve.DateDay:r=t.visitDateDay||t.visitDate;break;case Ve.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case Ve.Timestamp:r=t.visitTimestamp;break;case Ve.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case Ve.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case Ve.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case Ve.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case Ve.Time:r=t.visitTime;break;case Ve.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case Ve.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case Ve.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case Ve.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case Ve.Decimal:r=t.visitDecimal;break;case Ve.List:r=t.visitList;break;case Ve.Struct:r=t.visitStruct;break;case Ve.Union:r=t.visitUnion;break;case Ve.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case Ve.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case Ve.Dictionary:r=t.visitDictionary;break;case Ve.Interval:r=t.visitInterval;break;case Ve.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case Ve.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case Ve.FixedSizeList:r=t.visitFixedSizeList;break;case Ve.Map:r=t.visitMap}if("function"===typeof r)return r;if(!n)return function(){return null};throw new Error("Unrecognized type '".concat(Ve[i],"'"))}function fn(t){switch(t.typeId){case Ve.Null:return Ve.Null;case Ve.Int:var e=t.bitWidth,n=t.isSigned;switch(e){case 8:return n?Ve.Int8:Ve.Uint8;case 16:return n?Ve.Int16:Ve.Uint16;case 32:return n?Ve.Int32:Ve.Uint32;case 64:return n?Ve.Int64:Ve.Uint64}return Ve.Int;case Ve.Float:switch(t.precision){case Ye.HALF:return Ve.Float16;case Ye.SINGLE:return Ve.Float32;case Ye.DOUBLE:return Ve.Float64}return Ve.Float;case Ve.Binary:return Ve.Binary;case Ve.Utf8:return Ve.Utf8;case Ve.Bool:return Ve.Bool;case Ve.Decimal:return Ve.Decimal;case Ve.Time:switch(t.unit){case qe.SECOND:return Ve.TimeSecond;case qe.MILLISECOND:return Ve.TimeMillisecond;case qe.MICROSECOND:return Ve.TimeMicrosecond;case qe.NANOSECOND:return Ve.TimeNanosecond}return Ve.Time;case Ve.Timestamp:switch(t.unit){case qe.SECOND:return Ve.TimestampSecond;case qe.MILLISECOND:return Ve.TimestampMillisecond;case qe.MICROSECOND:return Ve.TimestampMicrosecond;case qe.NANOSECOND:return Ve.TimestampNanosecond}return Ve.Timestamp;case Ve.Date:switch(t.unit){case We.DAY:return Ve.DateDay;case We.MILLISECOND:return Ve.DateMillisecond}return Ve.Date;case Ve.Interval:switch(t.unit){case Ge.DAY_TIME:return Ve.IntervalDayTime;case Ge.YEAR_MONTH:return Ve.IntervalYearMonth}return Ve.Interval;case Ve.Map:return Ve.Map;case Ve.List:return Ve.List;case Ve.Struct:return Ve.Struct;case Ve.Union:switch(t.mode){case $e.Dense:return Ve.DenseUnion;case $e.Sparse:return Ve.SparseUnion}return Ve.Union;case Ve.FixedSizeBinary:return Ve.FixedSizeBinary;case Ve.FixedSizeList:return Ve.FixedSizeList;case Ve.Dictionary:return Ve.Dictionary}throw new Error("Unrecognized type '".concat(Ve[t.typeId],"'"))}cn.prototype.visitInt8=null,cn.prototype.visitInt16=null,cn.prototype.visitInt32=null,cn.prototype.visitInt64=null,cn.prototype.visitUint8=null,cn.prototype.visitUint16=null,cn.prototype.visitUint32=null,cn.prototype.visitUint64=null,cn.prototype.visitFloat16=null,cn.prototype.visitFloat32=null,cn.prototype.visitFloat64=null,cn.prototype.visitDateDay=null,cn.prototype.visitDateMillisecond=null,cn.prototype.visitTimestampSecond=null,cn.prototype.visitTimestampMillisecond=null,cn.prototype.visitTimestampMicrosecond=null,cn.prototype.visitTimestampNanosecond=null,cn.prototype.visitTimeSecond=null,cn.prototype.visitTimeMillisecond=null,cn.prototype.visitTimeMicrosecond=null,cn.prototype.visitTimeNanosecond=null,cn.prototype.visitDenseUnion=null,cn.prototype.visitSparseUnion=null,cn.prototype.visitIntervalDayTime=null,cn.prototype.visitIntervalYearMonth=null;var hn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"compareSchemas",value:function(t,e){return t===e||e instanceof t.constructor&&xn.compareFields(t.fields,e.fields)}},{key:"compareFields",value:function(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((function(t,n){return xn.compareField(t,e[n])}))}},{key:"compareField",value:function(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&xn.visit(t.type,e.type)}}]),n}(cn);function dn(t,e){return e instanceof t.constructor}function pn(t,e){return t===e||dn(t,e)}function yn(t,e){return t===e||dn(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function vn(t,e){return t===e||dn(t,e)&&t.precision===e.precision}function bn(t,e){return t===e||dn(t,e)&&t.unit===e.unit}function gn(t,e){return t===e||dn(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function mn(t,e){return t===e||dn(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function _n(t,e){return t===e||dn(t,e)&&t.mode===e.mode&&t.typeIds.every((function(t,n){return t===e.typeIds[n]}))&&xn.compareFields(t.children,e.children)}function wn(t,e){return t===e||dn(t,e)&&t.unit===e.unit}hn.prototype.visitNull=pn,hn.prototype.visitBool=pn,hn.prototype.visitInt=yn,hn.prototype.visitInt8=yn,hn.prototype.visitInt16=yn,hn.prototype.visitInt32=yn,hn.prototype.visitInt64=yn,hn.prototype.visitUint8=yn,hn.prototype.visitUint16=yn,hn.prototype.visitUint32=yn,hn.prototype.visitUint64=yn,hn.prototype.visitFloat=vn,hn.prototype.visitFloat16=vn,hn.prototype.visitFloat32=vn,hn.prototype.visitFloat64=vn,hn.prototype.visitUtf8=pn,hn.prototype.visitBinary=pn,hn.prototype.visitFixedSizeBinary=function(t,e){return t===e||dn(t,e)&&t.byteWidth===e.byteWidth},hn.prototype.visitDate=bn,hn.prototype.visitDateDay=bn,hn.prototype.visitDateMillisecond=bn,hn.prototype.visitTimestamp=gn,hn.prototype.visitTimestampSecond=gn,hn.prototype.visitTimestampMillisecond=gn,hn.prototype.visitTimestampMicrosecond=gn,hn.prototype.visitTimestampNanosecond=gn,hn.prototype.visitTime=mn,hn.prototype.visitTimeSecond=mn,hn.prototype.visitTimeMillisecond=mn,hn.prototype.visitTimeMicrosecond=mn,hn.prototype.visitTimeNanosecond=mn,hn.prototype.visitDecimal=pn,hn.prototype.visitList=function(t,e){return t===e||dn(t,e)&&t.children.length===e.children.length&&xn.compareFields(t.children,e.children)},hn.prototype.visitStruct=function(t,e){return t===e||dn(t,e)&&t.children.length===e.children.length&&xn.compareFields(t.children,e.children)},hn.prototype.visitUnion=_n,hn.prototype.visitDenseUnion=_n,hn.prototype.visitSparseUnion=_n,hn.prototype.visitDictionary=function(t,e){return t===e||dn(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&xn.visit(t.indices,e.indices)&&xn.visit(t.dictionary,e.dictionary)},hn.prototype.visitInterval=wn,hn.prototype.visitIntervalDayTime=wn,hn.prototype.visitIntervalYearMonth=wn,hn.prototype.visitFixedSizeList=function(t,e){return t===e||dn(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&xn.compareFields(t.children,e.children)},hn.prototype.visitMap=function(t,e){return t===e||dn(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&xn.compareFields(t.children,e.children)};var kn,xn=new hn,On=function(){function t(){Object(M.a)(this,t)}return B(t,[{key:"compareTo",value:function(t){return xn.visit(this,t)}},{key:"typeId",get:function(){return Ve.NONE}}],[{key:"isNull",value:function(t){return t&&t.typeId===Ve.Null}},{key:"isInt",value:function(t){return t&&t.typeId===Ve.Int}},{key:"isFloat",value:function(t){return t&&t.typeId===Ve.Float}},{key:"isBinary",value:function(t){return t&&t.typeId===Ve.Binary}},{key:"isUtf8",value:function(t){return t&&t.typeId===Ve.Utf8}},{key:"isBool",value:function(t){return t&&t.typeId===Ve.Bool}},{key:"isDecimal",value:function(t){return t&&t.typeId===Ve.Decimal}},{key:"isDate",value:function(t){return t&&t.typeId===Ve.Date}},{key:"isTime",value:function(t){return t&&t.typeId===Ve.Time}},{key:"isTimestamp",value:function(t){return t&&t.typeId===Ve.Timestamp}},{key:"isInterval",value:function(t){return t&&t.typeId===Ve.Interval}},{key:"isList",value:function(t){return t&&t.typeId===Ve.List}},{key:"isStruct",value:function(t){return t&&t.typeId===Ve.Struct}},{key:"isUnion",value:function(t){return t&&t.typeId===Ve.Union}},{key:"isFixedSizeBinary",value:function(t){return t&&t.typeId===Ve.FixedSizeBinary}},{key:"isFixedSizeList",value:function(t){return t&&t.typeId===Ve.FixedSizeList}},{key:"isMap",value:function(t){return t&&t.typeId===Ve.Map}},{key:"isDictionary",value:function(t){return t&&t.typeId===Ve.Dictionary}}]),t}();On[Symbol.toStringTag]=((kn=On.prototype).children=null,kn.ArrayType=Array,kn[Symbol.toStringTag]="DataType");var Sn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"toString",value:function(){return"Null"}},{key:"typeId",get:function(){return Ve.Null}}]),n}(On);Sn[Symbol.toStringTag]=function(t){return t[Symbol.toStringTag]="Null"}(Sn.prototype);var Tn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this)).isSigned=t,i.bitWidth=r,i}return B(n,[{key:"toString",value:function(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}},{key:"typeId",get:function(){return Ve.Int}},{key:"ArrayType",get:function(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:case 64:return this.isSigned?Int32Array:Uint32Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}}]),n}(On);Tn[Symbol.toStringTag]=function(t){return t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"}(Tn.prototype);var En=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,!0,8)}return n}(Tn),jn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,!0,16)}return n}(Tn),An=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,!0,32)}return n}(Tn),In=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,!0,64)}return n}(Tn),Cn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,!1,8)}return n}(Tn),Nn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,!1,16)}return n}(Tn),Dn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,!1,32)}return n}(Tn),Mn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,!1,64)}return n}(Tn);Object.defineProperty(En.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(jn.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(An.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(In.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(Cn.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(Nn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Dn.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Mn.prototype,"ArrayType",{value:Uint32Array});var Ln=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).precision=t,r}return B(n,[{key:"toString",value:function(){return"Float".concat(this.precision<<5||16)}},{key:"typeId",get:function(){return Ve.Float}},{key:"ArrayType",get:function(){switch(this.precision){case Ye.HALF:return Uint16Array;case Ye.SINGLE:return Float32Array;case Ye.DOUBLE:return Float64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}}]),n}(On);Ln[Symbol.toStringTag]=function(t){return t.precision=null,t[Symbol.toStringTag]="Float"}(Ln.prototype);var Bn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,Ye.HALF)}return n}(Ln),Pn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,Ye.SINGLE)}return n}(Ln),Fn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,Ye.DOUBLE)}return n}(Ln);Object.defineProperty(Bn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Pn.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(Fn.prototype,"ArrayType",{value:Float64Array});var Rn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this)}return B(n,[{key:"toString",value:function(){return"Binary"}},{key:"typeId",get:function(){return Ve.Binary}}]),n}(On);Rn[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"}(Rn.prototype);var Un=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this)}return B(n,[{key:"toString",value:function(){return"Utf8"}},{key:"typeId",get:function(){return Ve.Utf8}}]),n}(On);Un[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"}(Un.prototype);var zn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this)}return B(n,[{key:"toString",value:function(){return"Bool"}},{key:"typeId",get:function(){return Ve.Bool}}]),n}(On);zn[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"}(zn.prototype);var Vn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this)).scale=t,i.precision=r,i}return B(n,[{key:"toString",value:function(){return"Decimal[".concat(this.precision,"e").concat(this.scale>0?"+":"").concat(this.scale,"]")}},{key:"typeId",get:function(){return Ve.Decimal}}]),n}(On);Vn[Symbol.toStringTag]=function(t){return t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"}(Vn.prototype);var Hn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).unit=t,r}return B(n,[{key:"toString",value:function(){return"Date".concat(32*(this.unit+1),"<").concat(We[this.unit],">")}},{key:"typeId",get:function(){return Ve.Date}}]),n}(On);Hn[Symbol.toStringTag]=function(t){return t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"}(Hn.prototype);var Wn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,We.DAY)}return n}(Hn),qn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.call(this,We.MILLISECOND)}return n}(Hn),Yn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this)).unit=t,i.bitWidth=r,i}return B(n,[{key:"toString",value:function(){return"Time".concat(this.bitWidth,"<").concat(qe[this.unit],">")}},{key:"typeId",get:function(){return Ve.Time}}]),n}(On);Yn[Symbol.toStringTag]=function(t){return t.unit=null,t.bitWidth=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Time"}(Yn.prototype);var $n=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this)).unit=t,i.timezone=r,i}return B(n,[{key:"toString",value:function(){return"Timestamp<".concat(qe[this.unit]).concat(this.timezone?", ".concat(this.timezone):"",">")}},{key:"typeId",get:function(){return Ve.Timestamp}}]),n}(On);$n[Symbol.toStringTag]=function(t){return t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"}($n.prototype);var Gn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).unit=t,r}return B(n,[{key:"toString",value:function(){return"Interval<".concat(Ge[this.unit],">")}},{key:"typeId",get:function(){return Ve.Interval}}]),n}(On);Gn[Symbol.toStringTag]=function(t){return t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"}(Gn.prototype);var Kn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).children=[t],r}return B(n,[{key:"toString",value:function(){return"List<".concat(this.valueType,">")}},{key:"typeId",get:function(){return Ve.List}},{key:"valueType",get:function(){return this.children[0].type}},{key:"valueField",get:function(){return this.children[0]}},{key:"ArrayType",get:function(){return this.valueType.ArrayType}}]),n}(On);Kn[Symbol.toStringTag]=function(t){return t.children=null,t[Symbol.toStringTag]="List"}(Kn.prototype);var Xn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).children=t,r}return B(n,[{key:"toString",value:function(){return"Struct<{".concat(this.children.map((function(t){return"".concat(t.name,":").concat(t.type)})).join(", "),"}>")}},{key:"typeId",get:function(){return Ve.Struct}}]),n}(On);Xn[Symbol.toStringTag]=function(t){return t.children=null,t[Symbol.toStringTag]="Struct"}(Xn.prototype);var Qn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r,i){var o;return Object(M.a)(this,n),(o=e.call(this)).mode=t,o.children=i,o.typeIds=r=Int32Array.from(r),o.typeIdToChildIndex=r.reduce((function(t,e,n){return(t[e]=n)&&t||t}),Object.create(null)),o}return B(n,[{key:"toString",value:function(){return"".concat(this[Symbol.toStringTag],"<").concat(this.children.map((function(t){return"".concat(t.type)})).join(" | "),">")}},{key:"typeId",get:function(){return Ve.Union}}]),n}(On);Qn[Symbol.toStringTag]=function(t){return t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"}(Qn.prototype);var Zn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).byteWidth=t,r}return B(n,[{key:"toString",value:function(){return"FixedSizeBinary[".concat(this.byteWidth,"]")}},{key:"typeId",get:function(){return Ve.FixedSizeBinary}}]),n}(On);Zn[Symbol.toStringTag]=function(t){return t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"}(Zn.prototype);var Jn=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this)).listSize=t,i.children=[r],i}return B(n,[{key:"toString",value:function(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}},{key:"typeId",get:function(){return Ve.FixedSizeList}},{key:"valueType",get:function(){return this.children[0].type}},{key:"valueField",get:function(){return this.children[0]}},{key:"ArrayType",get:function(){return this.valueType.ArrayType}}]),n}(On);Jn[Symbol.toStringTag]=function(t){return t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"}(Jn.prototype);var tr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(M.a)(this,n),(r=e.call(this)).children=[t],r.keysSorted=i,r}return B(n,[{key:"toString",value:function(){return"Map<{".concat(this.children[0].type.children.map((function(t){return"".concat(t.name,":").concat(t.type)})).join(", "),"}>")}},{key:"typeId",get:function(){return Ve.Map}},{key:"keyType",get:function(){return this.children[0].type.children[0].type}},{key:"valueType",get:function(){return this.children[0].type.children[1].type}}]),n}(On);tr[Symbol.toStringTag]=function(t){return t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"}(tr.prototype);var er,nr=(er=-1,function(){return++er}),rr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r,i,o){var a;return Object(M.a)(this,n),(a=e.call(this)).indices=r,a.dictionary=t,a.isOrdered=o||!1,a.id=null==i?nr():"number"===typeof i?i:i.low,a}return B(n,[{key:"toString",value:function(){return"Dictionary<".concat(this.indices,", ").concat(this.dictionary,">")}},{key:"typeId",get:function(){return Ve.Dictionary}},{key:"children",get:function(){return this.dictionary.children}},{key:"valueType",get:function(){return this.dictionary}},{key:"ArrayType",get:function(){return this.dictionary.ArrayType}}]),n}(On);function ir(t){var e=t;switch(t.typeId){case Ve.Decimal:return 4;case Ve.Timestamp:return 2;case Ve.Date:case Ve.Interval:return 1+e.unit;case Ve.Int:case Ve.Time:return+(e.bitWidth>32)+1;case Ve.FixedSizeList:return e.listSize;case Ve.FixedSizeBinary:return e.byteWidth;default:return 1}}rr[Symbol.toStringTag]=function(t){return t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"}(rr.prototype);var or=function(){function t(e,n,r,i,o,a,u){var s;Object(M.a)(this,t),this.type=e,this.dictionary=u,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),this.childData=(a||[]).map((function(e){return e instanceof t?e:e.data})),o instanceof t?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets):(this.stride=ir(e),o&&((s=o[0])&&(this.valueOffsets=s),(s=o[1])&&(this.values=s),(s=o[2])&&(this.nullBitmap=s),(s=o[3])&&(this.typeIds=s)))}return B(t,[{key:"clone",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.offset,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._nullCount,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.childData;return new t(e,n,r,i,o,a,this.dictionary)}},{key:"slice",value:function(t,e){var n=this.stride,r=this.typeId,i=this.childData,o=+(0===this._nullCount)-1,a=16===r?n:1,u=this._sliceBuffers(t,e,n,r);return this.clone(this.type,this.offset+t,e,o,u,!i.length||this.valueOffsets?i:this._sliceChildren(i,a*t,a*e))}},{key:"_changeLengthAndBackfillNullBitmap",value:function(t){if(this.typeId===Ve.Null)return this.clone(this.type,0,t,0);var e=this.length,n=this.nullCount,r=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3);r[e>>3]=(1<<e-(-8&e))-1,n>0&&r.set(en(this.offset,e,this.nullBitmap),0);var i=this.buffers;return i[He.VALIDITY]=r,this.clone(this.type,0,t,n+(t-e),i)}},{key:"_sliceBuffers",value:function(t,e,n,r){var i,o=this.buffers;return(i=o[He.TYPE])&&(o[He.TYPE]=i.subarray(t,t+e)),(i=o[He.OFFSET])&&(o[He.OFFSET]=i.subarray(t,t+e+1))||(i=o[He.DATA])&&(o[He.DATA]=6===r?i:i.subarray(n*t,n*(t+e))),o}},{key:"_sliceChildren",value:function(t,e,n){return t.map((function(t){return t.slice(e,n)}))}},{key:"typeId",get:function(){return this.type.typeId}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"buffers",get:function(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}},{key:"byteLength",get:function(){var t=0,e=this.valueOffsets,n=this.values,r=this.nullBitmap,i=this.typeIds;return e&&(t+=e.byteLength),n&&(t+=n.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),this.childData.reduce((function(t,e){return t+e.byteLength}),t)}},{key:"nullCount",get:function(){var t,e=this._nullCount;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-on(t,this.offset,this.offset+this.length)),e}}],[{key:"new",value:function(e,n,r,i,o,a,u){switch(o instanceof t?o=o.buffers:o||(o=[]),e.typeId){case Ve.Null:return t.Null(e,n,r);case Ve.Int:return t.Int(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.Dictionary:return t.Dictionary(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[],u);case Ve.Float:return t.Float(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.Bool:return t.Bool(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.Decimal:return t.Decimal(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.Date:return t.Date(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.Time:return t.Time(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.Timestamp:return t.Timestamp(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.Interval:return t.Interval(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.FixedSizeBinary:return t.FixedSizeBinary(e,n,r,i||0,o[He.VALIDITY],o[He.DATA]||[]);case Ve.Binary:return t.Binary(e,n,r,i||0,o[He.VALIDITY],o[He.OFFSET]||[],o[He.DATA]||[]);case Ve.Utf8:return t.Utf8(e,n,r,i||0,o[He.VALIDITY],o[He.OFFSET]||[],o[He.DATA]||[]);case Ve.List:return t.List(e,n,r,i||0,o[He.VALIDITY],o[He.OFFSET]||[],(a||[])[0]);case Ve.FixedSizeList:return t.FixedSizeList(e,n,r,i||0,o[He.VALIDITY],(a||[])[0]);case Ve.Struct:return t.Struct(e,n,r,i||0,o[He.VALIDITY],a||[]);case Ve.Map:return t.Map(e,n,r,i||0,o[He.VALIDITY],o[He.OFFSET]||[],(a||[])[0]);case Ve.Union:return t.Union(e,n,r,i||0,o[He.VALIDITY],o[He.TYPE]||[],o[He.OFFSET]||a,a)}throw new Error("Unrecognized typeId ".concat(e.typeId))}},{key:"Null",value:function(e,n,r){return new t(e,n,r,0)}},{key:"Int",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"Dictionary",value:function(e,n,r,i,o,a,u){return new t(e,n,r,i,[void 0,Pt(e.indices.ArrayType,a),Vt(o)],[],u)}},{key:"Float",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"Bool",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"Decimal",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"Date",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"Time",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"Timestamp",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"Interval",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"FixedSizeBinary",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,Pt(e.ArrayType,a),Vt(o)])}},{key:"Binary",value:function(e,n,r,i,o,a,u){return new t(e,n,r,i,[Ut(a),Vt(u),Vt(o)])}},{key:"Utf8",value:function(e,n,r,i,o,a,u){return new t(e,n,r,i,[Ut(a),Vt(u),Vt(o)])}},{key:"List",value:function(e,n,r,i,o,a,u){return new t(e,n,r,i,[Ut(a),void 0,Vt(o)],[u])}},{key:"FixedSizeList",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,void 0,Vt(o)],[a])}},{key:"Struct",value:function(e,n,r,i,o,a){return new t(e,n,r,i,[void 0,void 0,Vt(o)],a)}},{key:"Map",value:function(e,n,r,i,o,a,u){return new t(e,n,r,i,[Ut(a),void 0,Vt(o)],[u])}},{key:"Union",value:function(e,n,r,i,o,a,u,s){var c=[void 0,void 0,Vt(o),Pt(e.ArrayType,a)];return e.mode===$e.Sparse?new t(e,n,r,i,c,u):(c[He.OFFSET]=Ut(u),new t(e,n,r,i,c,s))}}]),t}();or.prototype.childData=Object.freeze([]);function ar(t){if(null===t)return"null";if(void 0===t)return"undefined";switch(typeof t){case"number":case"bigint":return"".concat(t);case"string":return'"'.concat(t,'"')}return"function"===typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?"[".concat(t,"]"):JSON.stringify(t)}function ur(t){if(!t||t.length<=0)return function(t){return!0};var e="",n=t.filter((function(t){return t===t}));return n.length>0&&(e="\n    switch (x) {".concat(n.map((function(t){return"\n        case ".concat(function(t){if("bigint"!==typeof t)return ar(t);if(ht)return"".concat(ar(t),"n");return'"'.concat(ar(t),'"')}(t),":")})).join(""),"\n            return false;\n    }")),t.length!==n.length&&(e="if (x !== x) return false;\n".concat(e)),new Function("x","".concat(e,"\nreturn true;"))}var sr=function(t,e){return(t*e+63&-64||64)/e},cr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.length>=e?t.subarray(0,e):Lt(new t.constructor(e),t,0)},lr=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Object(M.a)(this,t),this.buffer=e,this.stride=n,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e.constructor,this._resize(this.length=e.length/n|0)}return B(t,[{key:"set",value:function(t,e){return this}},{key:"append",value:function(t){return this.set(this.length,t)}},{key:"reserve",value:function(t){if(t>0){this.length+=t;var e=this.stride,n=this.length*e,r=this.buffer.length;n>=r&&this._resize(sr(0===r?1*n:2*n,this.BYTES_PER_ELEMENT))}return this}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length;t=sr(t*this.stride,this.BYTES_PER_ELEMENT);var e=cr(this.buffer,t);return this.clear(),e}},{key:"clear",value:function(){return this.length=0,this._resize(0),this}},{key:"_resize",value:function(t){return this.buffer=Lt(new this.ArrayType(t),this.buffer)}},{key:"byteLength",get:function(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}},{key:"reservedLength",get:function(){return this.buffer.length/this.stride}},{key:"reservedByteLength",get:function(){return this.buffer.byteLength}}]),t}();lr.prototype.offset=0;var fr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"last",value:function(){return this.get(this.length-1)}},{key:"get",value:function(t){return this.buffer[t]}},{key:"set",value:function(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}}]),n}(lr),hr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array(0);return Object(M.a)(this,n),(t=e.call(this,r,1/8)).numValid=0,t}return B(n,[{key:"get",value:function(t){return this.buffer[t>>3]>>t%8&1}},{key:"set",value:function(t,e){var n=this.reserve(t-this.length+1).buffer,r=t>>3,i=t%8,o=n[r]>>i&1;return e?0===o&&(n[r]|=1<<i,++this.numValid):1===o&&(n[r]&=~(1<<i),--this.numValid),this}},{key:"clear",value:function(){return this.numValid=0,Me(Object(De.a)(n.prototype),"clear",this).call(this)}},{key:"numInvalid",get:function(){return this.length-this.numValid}}]),n}(fr),dr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Int32Array(1);return Object(M.a)(this,n),e.call(this,t,1)}return B(n,[{key:"append",value:function(t){return this.set(this.length-1,t)}},{key:"set",value:function(t,e){var n=this.length-1,r=this.reserve(t-n+1).buffer;return n<t++&&r.fill(r[n],n,t),r[t]=r[t-1]+e,this}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length-1;return t>this.length&&this.set(t-1,0),Me(Object(De.a)(n.prototype),"flush",this).call(this,t+1)}}]),n}(fr),pr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"set",value:function(t,e){switch(this.reserve(t-this.length+1),typeof e){case"bigint":this.buffer64[t]=e;break;case"number":this.buffer[t*this.stride]=e;break;default:this.buffer.set(e,t*this.stride)}return this}},{key:"_resize",value:function(t){var e=Me(Object(De.a)(n.prototype),"_resize",this).call(this,t),r=e.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return ht&&(this.buffer64=new this.ArrayType64(e.buffer,e.byteOffset,r)),e}},{key:"ArrayType64",get:function(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?pt:vt)}}]),n}(lr),yr=function(){function t(e){var n=e.type,r=e.nullValues;Object(M.a)(this,t),this.length=0,this.finished=!1,this.type=n,this.children=[],this.nullValues=r,this.stride=ir(n),this._nulls=new hr,r&&r.length>0&&(this._isValid=ur(r))}return B(t,[{key:"toVector",value:function(){return ze.new(this.flush())}},{key:"append",value:function(t){return this.set(this.length,t)}},{key:"isValid",value:function(t){return this._isValid(t)}},{key:"set",value:function(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}},{key:"setValue",value:function(t,e){this._setValue(this,t,e)}},{key:"setValid",value:function(t,e){return this.length=this._nulls.set(t,+e).length,e}},{key:"addChild",value:function(t){arguments.length>1&&void 0!==arguments[1]||"".concat(this.numChildren);throw new Error('Cannot append children to non-nested type "'.concat(this.type,'"'))}},{key:"getChildAt",value:function(t){return this.children[t]||null}},{key:"flush",value:function(){var t=[],e=this._values,n=this._offsets,r=this._typeIds,i=this.length,o=this.nullCount;r?(t[He.TYPE]=r.flush(i),n&&(t[He.OFFSET]=n.flush(i))):n?(e&&(t[He.DATA]=e.flush(n.last())),t[He.OFFSET]=n.flush(i)):e&&(t[He.DATA]=e.flush(i)),o>0&&(t[He.VALIDITY]=this._nulls.flush(i));var a=or.new(this.type,0,i,o,t,this.children.map((function(t){return t.flush()})));return this.clear(),a}},{key:"finish",value:function(){return this.finished=!0,this.children.forEach((function(t){return t.finish()})),this}},{key:"clear",value:function(){return this.length=0,this._offsets&&this._offsets.clear(),this._values&&this._values.clear(),this._nulls&&this._nulls.clear(),this._typeIds&&this._typeIds.clear(),this.children.forEach((function(t){return t.clear()})),this}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"nullCount",get:function(){return this._nulls.numInvalid}},{key:"numChildren",get:function(){return this.children.length}},{key:"byteLength",get:function(){var t=0;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),this._typeIds&&(t+=this._typeIds.byteLength),this.children.reduce((function(t,e){return t+e.byteLength}),t)}},{key:"reservedLength",get:function(){return this._nulls.reservedLength}},{key:"reservedByteLength",get:function(){var t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce((function(t,e){return t+e.reservedByteLength}),t)}},{key:"valueOffsets",get:function(){return this._offsets?this._offsets.buffer:null}},{key:"values",get:function(){return this._values?this._values.buffer:null}},{key:"nullBitmap",get:function(){return this._nulls?this._nulls.buffer:null}},{key:"typeIds",get:function(){return this._typeIds?this._typeIds.buffer:null}}],[{key:"new",value:function(t){}},{key:"throughNode",value:function(t){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(t){throw new Error('"throughDOM" not available in this environment')}},{key:"throughIterable",value:function(t){return function(t){var e=t.queueingStrategy,n=void 0===e?"count":e,r=t.highWaterMark,i=void 0===r?"bytes"!==n?1e3:Math.pow(2,14):r,o="bytes"!==n?"length":"byteLength";return P.mark((function e(n){var r,a,u,s,c;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=0,a=yr.new(t),u=C(n),e.prev=3,u.s();case 5:if((s=u.n()).done){e.next=14;break}if(c=s.value,!(a.append(c)[o]>=i)){e.next=12;break}if(e.t0=++r,!e.t0){e.next=12;break}return e.next=12,a.toVector();case 12:e.next=5;break;case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(3),u.e(e.t1);case 19:return e.prev=19,u.f(),e.finish(19);case 22:if(!(a.finish().length>0||0===r)){e.next=25;break}return e.next=25,a.toVector();case 25:case"end":return e.stop()}}),e,null,[[3,16,19,22]])}))}(t)}},{key:"throughAsyncIterable",value:function(t){return function(t){var e=t.queueingStrategy,n=void 0===e?"count":e,r=t.highWaterMark,i=void 0===r?"bytes"!==n?1e3:Math.pow(2,14):r,o="bytes"!==n?"length":"byteLength";return function(){var e=V(P.mark((function e(n){var r,a,u,s,c,l,f,h,d;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=0,a=yr.new(t),u=!0,s=!1,e.prev=4,l=H(n);case 6:return e.next=8,U(l.next());case 8:return f=e.sent,u=f.done,e.next=12,U(f.value);case 12:if(h=e.sent,u){e.next=23;break}if(d=h,!(a.append(d)[o]>=i)){e.next=20;break}if(e.t0=++r,!e.t0){e.next=20;break}return e.next=20,a.toVector();case 20:u=!0,e.next=6;break;case 23:e.next=29;break;case 25:e.prev=25,e.t1=e.catch(4),s=!0,c=e.t1;case 29:if(e.prev=29,e.prev=30,u||null==l.return){e.next=34;break}return e.next=34,U(l.return());case 34:if(e.prev=34,!s){e.next=37;break}throw c;case 37:return e.finish(34);case 38:return e.finish(29);case 39:if(!(a.finish().length>0||0===r)){e.next=42;break}return e.next=42,a.toVector();case 42:case"end":return e.stop()}}),e,null,[[4,25,29,39],[30,,34,38]])})));return function(t){return e.apply(this,arguments)}}()}(t)}}]),t}();yr.prototype.length=1,yr.prototype.stride=1,yr.prototype.children=null,yr.prototype.finished=!1,yr.prototype.nullValues=null,yr.prototype._isValid=function(){return!0};var vr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._values=new fr(new r.ArrayType(0),r.stride),r}return B(n,[{key:"setValue",value:function(t,e){var r=this._values;return r.reserve(t-r.length+1),Me(Object(De.a)(n.prototype),"setValue",this).call(this,t,e)}}]),n}(yr),br=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._pendingLength=0,r._offsets=new dr,r}return B(n,[{key:"setValue",value:function(t,e){var n=this._pending||(this._pending=new Map),r=n.get(t);r&&(this._pendingLength-=r.length),this._pendingLength+=e.length,n.set(t,e)}},{key:"setValid",value:function(t,e){return!!Me(Object(De.a)(n.prototype),"setValid",this).call(this,t,e)||((this._pending||(this._pending=new Map)).set(t,void 0),!1)}},{key:"clear",value:function(){return this._pendingLength=0,this._pending=void 0,Me(Object(De.a)(n.prototype),"clear",this).call(this)}},{key:"flush",value:function(){return this._flush(),Me(Object(De.a)(n.prototype),"flush",this).call(this)}},{key:"finish",value:function(){return this._flush(),Me(Object(De.a)(n.prototype),"finish",this).call(this)}},{key:"_flush",value:function(){var t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}}]),n}(yr);var gr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._values=new hr,r}return B(n,[{key:"setValue",value:function(t,e){this._values.set(t,+e)}}]),n}(yr),mr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"setValue",value:function(t,e){}},{key:"setValid",value:function(t,e){return this.length=Math.max(t+1,this.length),e}}]),n}(yr),_r=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(vr),wr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(_r),kr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(_r),xr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(vr),Or=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r,i=t.type,o=t.nullValues,a=t.dictionaryHashFunction;return Object(M.a)(this,n),(r=e.call(this,{type:new rr(i.dictionary,i.indices,i.id,i.isOrdered)}))._nulls=null,r._dictionaryOffset=0,r._keysToIndices=Object.create(null),r.indices=yr.new({type:r.type.indices,nullValues:o}),r.dictionary=yr.new({type:r.type.dictionary,nullValues:null}),"function"===typeof a&&(r.valueToKey=a),r}return B(n,[{key:"isValid",value:function(t){return this.indices.isValid(t)}},{key:"setValid",value:function(t,e){var n=this.indices;return e=n.setValid(t,e),this.length=n.length,e}},{key:"setValue",value:function(t,e){var n=this._keysToIndices,r=this.valueToKey(e),i=n[r];return void 0===i&&(n[r]=i=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,i)}},{key:"flush",value:function(){var t=this.type,e=this._dictionary,n=this.dictionary.toVector(),r=this.indices.flush().clone(t);return r.dictionary=e?e.concat(n):n,this.finished||(this._dictionaryOffset+=n.length),this._dictionary=r.dictionary,this.clear(),r}},{key:"finish",value:function(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),Me(Object(De.a)(n.prototype),"finish",this).call(this)}},{key:"clear",value:function(){return this.indices.clear(),this.dictionary.clear(),Me(Object(De.a)(n.prototype),"clear",this).call(this)}},{key:"valueToKey",value:function(t){return"string"===typeof t?t:"".concat(t)}},{key:"values",get:function(){return this.indices.values}},{key:"nullCount",get:function(){return this.indices.nullCount}},{key:"nullBitmap",get:function(){return this.indices.nullBitmap}},{key:"byteLength",get:function(){return this.indices.byteLength+this.dictionary.byteLength}},{key:"reservedLength",get:function(){return this.indices.reservedLength+this.dictionary.reservedLength}},{key:"reservedByteLength",get:function(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}}]),n}(yr),Sr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(vr),Tr=new Float64Array(1),Er=new Uint32Array(Tr.buffer);function jr(t){var e=(31744&t)>>10,n=(1023&t)/1024,r=Math.pow(-1,(32768&t)>>15);switch(e){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,e-15)*(1+n)}function Ar(t){if(t!==t)return 32256;Tr[0]=t;var e=(2147483648&Er[1])>>16&65535,n=2146435072&Er[1],r=0;return n>=1089470464?Er[0]>0?n=31744:(n=(2080374784&n)>>16,r=(1048575&Er[1])>>10):n<=1056964608?(r=1048576+((r=1048576+(1048575&Er[1]))<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=512+(1048575&Er[1])>>10),e|n|65535&r}var Ir=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(vr),Cr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"setValue",value:function(t,e){this._values.set(t,Ar(e))}}]),n}(Ir),Nr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),n}(Ir),Dr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),n}(Ir),Mr=n(28),Lr=n(29);function Br(t,e,n){return(Br=Object(Lr.a)()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&Object(Mr.a)(i,n.prototype),i}).apply(null,arguments)}var Pr,Fr,Rr=Symbol.for("isArrowBigNum");function Ur(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return 0===n.length?Object.setPrototypeOf(Pt(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(Br(this.TypedArray,[t].concat(n)),this.constructor.prototype)}function zr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ur.apply(this,e)}function Vr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ur.apply(this,e)}function Hr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ur.apply(this,e)}function Wr(t){for(var e,n,r=t.buffer,i=t.byteOffset,o=t.length,a=t.signed,u=new Int32Array(r,i,o),s=0,c=0,l=u.length;c<l;)n=u[c++],e=u[c++],a||(e>>>=0),s+=(n>>>0)+e*Math.pow(c,32);return s}function qr(t){var e="",n=new Uint32Array(2),r=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),o=-1,a=r.length-1;do{for(n[0]=r[o=0];o<a;)r[o++]=n[1]=n[0]/10,n[0]=(n[0]-10*n[1]<<16)+r[o];r[o]=n[1]=n[0]/10,n[0]=n[0]-10*n[1],e="".concat(n[0]).concat(e)}while(i[0]||i[1]||i[2]||i[3]);return e||"0"}Ur.prototype[Rr]=!0,Ur.prototype.toJSON=function(){return'"'.concat(Pr(this),'"')},Ur.prototype.valueOf=function(){return Wr(this)},Ur.prototype.toString=function(){return Pr(this)},Ur.prototype[Symbol.toPrimitive]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";switch(t){case"number":return Wr(this);case"string":return Pr(this);case"default":return Fr(this)}return Pr(this)},Object.setPrototypeOf(zr.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Vr.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(Hr.prototype,Object.create(Uint32Array.prototype)),Object.assign(zr.prototype,Ur.prototype,{constructor:zr,signed:!0,TypedArray:Int32Array,BigIntArray:pt}),Object.assign(Vr.prototype,Ur.prototype,{constructor:Vr,signed:!1,TypedArray:Uint32Array,BigIntArray:vt}),Object.assign(Hr.prototype,Ur.prototype,{constructor:Hr,signed:!0,TypedArray:Uint32Array,BigIntArray:vt}),ht?(Fr=function(t){return 8===t.byteLength?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:qr(t)},Pr=function(t){return 8===t.byteLength?"".concat(new t.BigIntArray(t.buffer,t.byteOffset,1)[0]):qr(t)}):Fr=Pr=qr;var Yr,$r=function(){function t(e,n){return Object(M.a)(this,t),t.new(e,n)}return B(t,null,[{key:"new",value:function(t,e){switch(e){case!0:return new zr(t);case!1:return new Vr(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case pt:return new zr(t)}return 16===t.byteLength?new Hr(t):new Vr(t)}},{key:"signed",value:function(t){return new zr(t)}},{key:"unsigned",value:function(t){return new Vr(t)}},{key:"decimal",value:function(t){return new Hr(t)}}]),t}(),Gr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),n}(vr),Kr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Gr),Xr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Gr),Qr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Gr),Zr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),t.nullValues&&(t.nullValues=t.nullValues.map(ri)),(r=e.call(this,t))._values=new pr(new Int32Array(0),2),r}return B(n,[{key:"isValid",value:function(t){return Me(Object(De.a)(n.prototype),"isValid",this).call(this,ri(t))}},{key:"values64",get:function(){return this._values.buffer64}}]),n}(Gr),Jr=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Gr),ti=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Gr),ei=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Gr),ni=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),t.nullValues&&(t.nullValues=t.nullValues.map(ri)),(r=e.call(this,t))._values=new pr(new Uint32Array(0),2),r}return B(n,[{key:"isValid",value:function(t){return Me(Object(De.a)(n.prototype),"isValid",this).call(this,ri(t))}},{key:"values64",get:function(){return this._values.buffer64}}]),n}(Gr),ri=(Yr={BigIntArray:pt},function(t){return ArrayBuffer.isView(t)&&(Yr.buffer=t.buffer,Yr.byteOffset=t.byteOffset,Yr.byteLength=t.byteLength,t=Fr(Yr),Yr.buffer=null),t}),ii=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(vr),oi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ii),ai=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ii),ui=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ii),si=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ii),ci=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(vr),li=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ci),fi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ci),hi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ci),di=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ci),pi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(vr),yi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(pi),vi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(pi),bi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._values=new lr(new Uint8Array(0)),r}return B(n,[{key:"setValue",value:function(t,e){return Me(Object(De.a)(n.prototype),"setValue",this).call(this,t,Vt(e))}},{key:"_flushPending",value:function(t,e){var n,r,i=this._offsets,o=this._values.reserve(e).buffer,a=0,u=0,s=0,c=C(t);try{for(c.s();!(r=c.n()).done;){var l=F(r.value,2);a=l[0],void 0===(n=l[1])?i.set(a,0):(u=n.length,o.set(n,s),i.set(a,u),s+=u)}}catch(f){c.e(f)}finally{c.f()}}},{key:"byteLength",get:function(){var t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}}]),n}(br),gi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._values=new lr(new Uint8Array(0)),r}return B(n,[{key:"setValue",value:function(t,e){return Me(Object(De.a)(n.prototype),"setValue",this).call(this,t,rt(e))}},{key:"_flushPending",value:function(t,e){}},{key:"byteLength",get:function(){var t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}}]),n}(br);gi.prototype._flushPending=bi.prototype._flushPending;var mi=function(){function t(){Object(M.a)(this,t)}return B(t,[{key:"get",value:function(t){return this._values[t]}},{key:"clear",value:function(){return this._values=null,this}},{key:"bind",value:function(t){return t instanceof ze?t:(this._values=t,this)}},{key:"length",get:function(){return this._values.length}}]),t}(),_i=n(14),wi=n(13),ki=Symbol.for("parent"),xi=Symbol.for("rowIndex"),Oi=Symbol.for("keyToIdx"),Si=Symbol.for("idxToVal"),Ti=Symbol.for("nodejs.util.inspect.custom"),Ei=function(){function t(e,n){Object(M.a)(this,t),this[ki]=e,this.size=n}return B(t,[{key:"entries",value:function(){return this[Symbol.iterator]()}},{key:"has",value:function(t){return void 0!==this.get(t)}},{key:"get",value:function(t){var e=void 0;if(null!==t&&void 0!==t){var n=this[Oi]||(this[Oi]=new Map),r=n.get(t);if(void 0!==r){var i=this[Si]||(this[Si]=new Array(this.size));void 0!==(e=i[r])||(i[r]=e=this.getValue(r))}else if((r=this.getIndex(t))>-1){n.set(t,r);var o=this[Si]||(this[Si]=new Array(this.size));void 0!==(e=o[r])||(o[r]=e=this.getValue(r))}}return e}},{key:"set",value:function(t,e){if(null!==t&&void 0!==t){var n=this[Oi]||(this[Oi]=new Map),r=n.get(t);if(void 0===r&&n.set(t,r=this.getIndex(t)),r>-1)(this[Si]||(this[Si]=new Array(this.size)))[r]=this.setValue(r,e)}return this}},{key:"clear",value:function(){throw new Error("Clearing ".concat(this[Symbol.toStringTag]," not supported."))}},{key:"delete",value:function(t){throw new Error("Deleting ".concat(this[Symbol.toStringTag]," values not supported."))}},{key:Symbol.iterator,value:P.mark((function t(){var e,n,r,i,o,a,u,s,c;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.keys(),n=this.values(),r=this[Oi]||(this[Oi]=new Map),i=this[Si]||(this[Si]=new Array(this.size)),u=0;case 5:if((s=e.next()).done||(c=n.next()).done){t.next=15;break}return o=s.value,a=c.value,i[u]=a,r.has(o)||r.set(o,u),t.next=12,[o,a];case 12:++u,t.next=5;break;case 15:case"end":return t.stop()}}),t,this)}))},{key:"forEach",value:function(t,e){for(var n,r,i,o,a=this.keys(),u=this.values(),s=void 0===e?t:function(n,r,i){return t.call(e,n,r,i)},c=this[Oi]||(this[Oi]=new Map),l=this[Si]||(this[Si]=new Array(this.size)),f=0;!(i=a.next()).done&&!(o=u.next()).done;++f)n=i.value,r=o.value,l[f]=r,c.has(n)||c.set(n,f),s(r,n,this)}},{key:"toArray",value:function(){return sn(this.values())}},{key:"toJSON",value:function(){var t={};return this.forEach((function(e,n){return t[n]=e})),t}},{key:"inspect",value:function(){return this.toString()}},{key:Ti,value:function(){return this.toString()}},{key:"toString",value:function(){var t=[];return this.forEach((function(e,n){n=ar(n),e=ar(e),t.push("".concat(n,": ").concat(e))})),"{ ".concat(t.join(", ")," }")}}]),t}();Ei[Symbol.toStringTag]=function(t){var e;return Object.defineProperties(t,(Ie(e={size:{writable:!0,enumerable:!1,configurable:!1,value:0}},ki,{writable:!0,enumerable:!1,configurable:!1,value:null}),Ie(e,xi,{writable:!0,enumerable:!1,configurable:!1,value:-1}),e)),t[Symbol.toStringTag]="Row"}(Ei.prototype);var ji=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),r=e.call(this,t,t.length),Object(_i.a)(r,Ni(Object(wi.a)(r)))}return B(n,[{key:"keys",value:function(){return this[ki].getChildAt(0)[Symbol.iterator]()}},{key:"values",value:function(){return this[ki].getChildAt(1)[Symbol.iterator]()}},{key:"getKey",value:function(t){return this[ki].getChildAt(0).get(t)}},{key:"getIndex",value:function(t){return this[ki].getChildAt(0).indexOf(t)}},{key:"getValue",value:function(t){return this[ki].getChildAt(1).get(t)}},{key:"setValue",value:function(t,e){this[ki].getChildAt(1).set(t,e)}}]),n}(Ei),Ai=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),r=e.call(this,t,t.type.children.length),Object(_i.a)(r,Ci(Object(wi.a)(r)))}return B(n,[{key:"keys",value:P.mark((function t(){var e,n,r;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=C(this[ki].type.children),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return r=n.value,t.next=7,r.name;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:P.mark((function t(){var e,n,r;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=C(this[ki].type.children),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return r=n.value,t.next=7,this[r.name];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"getKey",value:function(t){return this[ki].type.children[t].name}},{key:"getIndex",value:function(t){return this[ki].type.children.findIndex((function(e){return e.name===t}))}},{key:"getValue",value:function(t){return this[ki].getChildAt(t).get(this[xi])}},{key:"setValue",value:function(t,e){return this[ki].getChildAt(t).set(this[xi],e)}}]),n}(Ei);Object.setPrototypeOf(Ei.prototype,Map.prototype);var Ii,Ci=function(){var t={enumerable:!0,configurable:!1,get:null,set:null};return function(e){var n,r=-1,i=e[Oi]||(e[Oi]=new Map),o=function(t){return function(){return this.get(t)}},a=function(t){return function(e){return this.set(t,e)}},u=C(e.keys());try{for(u.s();!(n=u.n()).done;){var s=n.value;i.set(s,++r),t.get=o(s),t.set=a(s),e.hasOwnProperty(s)||(t.enumerable=!0,Object.defineProperty(e,s,t)),e.hasOwnProperty(r)||(t.enumerable=!1,Object.defineProperty(e,r,t))}}catch(c){u.e(c)}finally{u.f()}return t.get=t.set=null,e}}(),Ni=function(){if("undefined"===typeof Proxy)return Ci;var t=Ei.prototype.has,e=Ei.prototype.get,n=Ei.prototype.set,r=Ei.prototype.getKey,i={isExtensible:function(){return!1},deleteProperty:function(){return!1},preventExtensions:function(){return!0},ownKeys:function(t){return sn(t.keys()).map((function(t){return"".concat(t)}))},has:function(t,e){switch(e){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case ki:case xi:case Si:case Oi:case Ti:return!0}return"number"!==typeof e||t.has(e)||(e=t.getKey(e)),t.has(e)},get:function(n,i,o){switch(i){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case ki:case xi:case Si:case Oi:case Ti:return Reflect.get(n,i,o)}return"number"!==typeof i||t.call(o,i)||(i=r.call(o,i)),e.call(o,i)},set:function(e,i,o,a){switch(i){case ki:case xi:case Si:case Oi:return Reflect.set(e,i,o,a);case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:return!1}return"number"!==typeof i||t.call(a,i)||(i=r.call(a,i)),!!t.call(a,i)&&!!n.call(a,i,o)}};return function(t){return new Proxy(t,i)}}();function Di(t,e,n){var r=t.length,i=e>-1?e:r+e%r;return n?n(t,i):i}function Mi(t,e,n,r){var i=t.length,o=void 0===i?0:i,a="number"!==typeof e?0:e,u="number"!==typeof n?o:n;return a<0&&(a=(a%o+o)%o),u<0&&(u=(u%o+o)%o),u<a&&(Ii=a,a=u,u=Ii),u>o&&(u=o),r?r(t,a,u):[a,u]}var Li=ht?ft(0):0,Bi=function(t){return t!==t};function Pi(t){var e=typeof t;if("object"!==e||null===t)return Bi(t)?Bi:"bigint"!==e?function(e){return e===t}:function(e){return Li+e===t};if(t instanceof Date){var n=t.valueOf();return function(t){return t instanceof Date&&t.valueOf()===n}}return ArrayBuffer.isView(t)?function(e){return!!e&&ge(t,e)}:t instanceof Map?function(t){var e=-1,n=[];return t.forEach((function(t){return n[++e]=Pi(t)})),Fi(n)}(t):Array.isArray(t)?function(t){for(var e=[],n=-1,r=t.length;++n<r;)e[n]=Pi(t[n]);return Fi(e)}(t):t instanceof ze?function(t){for(var e=[],n=-1,r=t.length;++n<r;)e[n]=Pi(t.get(n));return Fi(e)}(t):function(t){var e=Object.keys(t);if(0===e.length)return function(){return!1};for(var n=[],r=-1,i=e.length;++r<i;)n[r]=Pi(t[e[r]]);return Fi(n,e)}(t)}function Fi(t,e){return function(n){if(!n||"object"!==typeof n)return!1;switch(n.constructor){case Array:return function(t,e){var n=t.length;if(e.length!==n)return!1;for(var r=-1;++r<n;)if(!t[r](e[r]))return!1;return!0}(t,n);case Map:case ji:case Ai:return Ri(t,n,n.keys());case Object:case void 0:return Ri(t,n,e||Object.keys(n))}return n instanceof ze&&function(t,e){var n=t.length;if(e.length!==n)return!1;for(var r=-1;++r<n;)if(!t[r](e.get(r)))return!1;return!0}(t,n)}}function Ri(t,e,n){for(var r=n[Symbol.iterator](),i=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),o=e instanceof Map?e.values():Object.values(e)[Symbol.iterator](),a=0,u=t.length,s=o.next(),c=r.next(),l=i.next();a<u&&!c.done&&!l.done&&!s.done&&(c.value===l.value&&t[a](s.value));++a,c=r.next(),l=i.next(),s=o.next());return!!(a===u&&c.done&&l.done&&s.done)||(r.return&&r.return(),i.return&&i.return(),o.return&&o.return(),!1)}var Ui=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zi(i);return Object(M.a)(this,n),(r=e.call(this))._nullCount=-1,r._type=t,r._chunks=i,r._chunkOffsets=o,r._length=o[o.length-1],r._numChildren=(r._type.children||[]).length,r}return B(n,[{key:Symbol.iterator,value:P.mark((function t(){var e,n,r;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=C(this._chunks),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=8;break}return r=n.value,t.delegateYield(r,"t0",6);case 6:t.next=3;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),e.e(t.t1);case 13:return t.prev=13,e.f(),t.finish(13);case 16:case"end":return t.stop()}}),t,this,[[1,10,13,16]])}))},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new n(this._type,t)}},{key:"concat",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.clone(n.flatten.apply(n,[this].concat(e)))}},{key:"slice",value:function(t,e){return Mi(this,t,e,this._sliceInternal)}},{key:"getChildAt",value:function(t){if(t<0||t>=this._numChildren)return null;var e,r,i,o=this._children||(this._children=[]);return(e=o[t])?e:(r=(this._type.children||[])[t])&&(i=this._chunks.map((function(e){return e.getChildAt(t)})).filter((function(t){return null!=t}))).length>0?o[t]=new n(r.type,i):null}},{key:"search",value:function(t,e){var n=t,r=this._chunkOffsets,i=r.length-1;if(n<0)return null;if(n>=r[i])return null;if(i<=1)return e?e(this,0,n):[0,n];var o=0,a=0,u=0;do{if(o+1===i)return e?e(this,o,n-a):[o,n-a];n>=r[u=o+(i-o)/2|0]?o=u:i=u}while(n<r[i]&&n>=(a=r[o]));return null}},{key:"isValid",value:function(t){return!!this.search(t,this.isValidInternal)}},{key:"get",value:function(t){return this.search(t,this.getInternal)}},{key:"set",value:function(t,e){this.search(t,(function(t,n,r){return t.chunks[n].set(r,e)}))}},{key:"indexOf",value:function(t,e){var n=this;return e&&"number"===typeof e?this.search(e,(function(e,r,i){return n.indexOfInternal(e,r,i,t)})):this.indexOfInternal(this,0,Math.max(0,e||0),t)}},{key:"toArray",value:function(){var t=this.chunks,e=t.length,n=this._type.ArrayType;if(e<=0)return new n(0);if(e<=1)return t[0].toArray();for(var r=0,i=new Array(e),o=-1;++o<e;)r+=(i[o]=t[o].toArray()).length;n!==i[0].constructor&&(n=i[0].constructor);for(var a=new n(r),u=n===Array?Hi:Vi,s=-1,c=0;++s<e;)c=u(i[s],a,c);return a}},{key:"getInternal",value:function(t,e,n){return t._chunks[e].get(n)}},{key:"isValidInternal",value:function(t,e,n){return t._chunks[e].isValid(n)}},{key:"indexOfInternal",value:function(t,e,n,r){for(var i=t._chunks,o=e-1,a=i.length,u=n,s=0,c=-1;++o<a;){if(~(c=i[o].indexOf(r,u)))return s+c;u=0,s+=i[o].length}return-1}},{key:"_sliceInternal",value:function(t,e,n){for(var r=[],i=t.chunks,o=t._chunkOffsets,a=-1,u=i.length;++a<u;){var s=i[a],c=s.length,l=o[a];if(l>=n)break;if(!(e>=l+c))if(l>=e&&l+c<=n)r.push(s);else{var f=Math.max(0,e-l),h=Math.min(n-l,c);r.push(s.slice(f,h))}}return t.clone(r)}},{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._length}},{key:"chunks",get:function(){return this._chunks}},{key:"typeId",get:function(){return this._type.typeId}},{key:"VectorName",get:function(){return"Chunked<".concat(this._type,">")}},{key:"data",get:function(){return this._chunks[0]?this._chunks[0].data:null}},{key:"ArrayType",get:function(){return this._type.ArrayType}},{key:"numChildren",get:function(){return this._numChildren}},{key:"stride",get:function(){return this._chunks[0]?this._chunks[0].stride:1}},{key:"byteLength",get:function(){return this._chunks.reduce((function(t,e){return t+e.byteLength}),0)}},{key:"nullCount",get:function(){var t=this._nullCount;return t<0&&(this._nullCount=t=this._chunks.reduce((function(t,e){return t+e.nullCount}),0)),t}},{key:"indices",get:function(){if(On.isDictionary(this._type)){if(!this._indices){var t=this._chunks;this._indices=1===t.length?t[0].indices:n.concat.apply(n,sn(t.map((function(t){return t.indices}))))}return this._indices}return null}},{key:"dictionary",get:function(){return On.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}}],[{key:"flatten",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Xi(ze,e)}},{key:"concat",value:function(){var t=n.flatten.apply(n,arguments);return new n(t[0].type,t)}}]),n}(ze);function zi(t){for(var e=new Uint32Array((t||[]).length+1),n=e[0]=0,r=e.length,i=0;++i<r;)e[i]=n+=t[i-1].length;return e}var Vi=function(t,e,n){return e.set(t,n),n+t.length},Hi=function(t,e,n){for(var r=n,i=-1,o=t.length;++i<o;)e[r++]=t[i];return r},Wi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;return Object(M.a)(this,n),i=Ui.flatten.apply(Ui,sn(i)),(r=e.call(this,t.type,i,o))._field=t,1!==i.length||Object(wi.a)(r)instanceof qi?r:Object(_i.a)(r,new qi(t,i[0],r._chunkOffsets))}return B(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new n(this._field,t)}},{key:"getChildAt",value:function(t){if(t<0||t>=this.numChildren)return null;var e,r,i,o=this._children||(this._children=[]);return(e=o[t])?e:(r=(this.type.children||[])[t])&&(i=this._chunks.map((function(e){return e.getChildAt(t)})).filter((function(t){return null!=t}))).length>0?o[t]=new n(r,i):null}},{key:"field",get:function(){return this._field}},{key:"name",get:function(){return this._field.name}},{key:"nullable",get:function(){return this._field.nullable}},{key:"metadata",get:function(){return this._field.metadata}}],[{key:"new",value:function(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=Ui.flatten(Array.isArray(e)?[].concat(sn(e),i):e instanceof ze?[e].concat(i):[ze.new.apply(ze,[e].concat(i))]);if("string"===typeof t){var u=a[0].data.type;t=new no(t,u,!0)}else!t.nullable&&a.some((function(t){return t.nullCount>0}))&&(t=t.clone({nullable:!0}));return new n(t,a)}}]),n}(Ui),qi=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r,i){var o;return Object(M.a)(this,n),(o=e.call(this,t,[r],i))._chunk=r,o}return B(n,[{key:"search",value:function(t,e){return e?e(this,0,t):[0,t]}},{key:"isValid",value:function(t){return this._chunk.isValid(t)}},{key:"get",value:function(t){return this._chunk.get(t)}},{key:"set",value:function(t,e){this._chunk.set(t,e)}},{key:"indexOf",value:function(t,e){return this._chunk.indexOf(t,e)}}]),n}(Wi),Yi=Array.isArray,$i=function(t,e){return Zi(t,e,[],0)},Gi=function(t){var e=F(to(t,[[],[]]),2),n=e[0];return e[1].map((function(t,e){return t instanceof Wi?Wi.new(t.field.clone(n[e]),t):t instanceof ze?Wi.new(n[e],t):Wi.new(n[e],[])}))},Ki=function(t){return to(t,[[],[]])},Xi=function(t,e){return function t(e,n,r,i){var o,a=i,u=-1,s=n.length;for(;++u<s;)Yi(o=n[u])?a=t(e,o,r,a).length:o instanceof Ui?a=t(e,o.chunks,r,a).length:o instanceof e&&(r[a++]=o);return r}(t,e,[],0)},Qi=function(t,e){return function t(e,n,r,i){var o,a=i,u=-1,s=n.length;for(;++u<s;)Yi(o=n[u])?a=t(e,o,r,a).length:o instanceof e?a=Zi(ze,o.schema.fields.map((function(t,e){return o.getChildAt(e)})),r,a).length:o instanceof ze&&(r[a++]=o);return r}(t,e,[],0)};function Zi(t,e,n,r){for(var i,o=r,a=-1,u=e.length;++a<u;)Yi(i=e[a])?o=Zi(t,i,n,o).length:i instanceof t&&(n[o++]=i);return n}var Ji=function(t,e,n){var r=F(e,2),i=r[0],o=r[1];return t[0][n]=i,t[1][n]=o,t};function to(t,e){var n,r;switch(r=t.length){case 0:return e;case 1:if(n=e[0],!t[0])return e;if(Yi(t[0]))return to(t[0],e);if(!(t[0]instanceof or||t[0]instanceof ze||t[0]instanceof On)){var i=F(Object.entries(t[0]).reduce(Ji,e),2);n=i[0],t=i[1]}break;default:Yi(n=t[r-1])?t=Yi(t[0])?t[0]:t.slice(0,r-1):(t=Yi(t[0])?t[0]:t,n=[])}for(var o,a,u=-1,s=-1,c=-1,l=t.length,f=F(e,2),h=f[0],d=f[1];++c<l;)if((a=t[c])instanceof Wi&&(d[++s]=a))h[++u]=a.field.clone(n[c],a.type,!0);else{var p=n[c];o=void 0===p?c:p,a instanceof On&&(d[++s]=a)?h[++u]=no.new(o,a,!0):a&&a.type&&(d[++s]=a)&&(a instanceof or&&(d[s]=a=ze.new(a)),h[++u]=no.new(o,a.type,!0))}return e}var eo=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;Object(M.a)(this,t),this.fields=e||[],this.metadata=n||new Map,r||(r=io(e)),this.dictionaries=r}return B(t,[{key:"toString",value:function(){return"Schema<{ ".concat(this.fields.map((function(t,e){return"".concat(e,": ").concat(t)})).join(", ")," }>")}},{key:"compareTo",value:function(t){return xn.compareSchemas(this,t)}},{key:"select",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.reduce((function(t,e){return(t[e]=!0)&&t}),Object.create(null));return new t(this.fields.filter((function(t){return i[t.name]})),this.metadata)}},{key:"selectAt",value:function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return new t(r.map((function(t){return e.fields[t]})).filter(Boolean),this.metadata)}},{key:"assign",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0]instanceof t?n[0]:new t($i(no,n)),o=sn(this.fields),a=ro(ro(new Map,this.metadata),i.metadata),u=i.fields.filter((function(t){var e=o.findIndex((function(e){return e.name===t.name}));return!~e||(o[e]=t.clone({metadata:ro(ro(new Map,o[e].metadata),t.metadata)}))&&!1})),s=io(u,new Map);return new t([].concat(sn(o),sn(u)),a,new Map([].concat(sn(this.dictionaries),sn(s))))}},{key:Symbol.toStringTag,get:function(){return"Schema"}}],[{key:"from",value:function(){return t.new(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}},{key:"new",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new t(Ki(n)[0])}}]),t}(),no=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;Object(M.a)(this,t),this.name=e,this.type=n,this.nullable=r,this.metadata=i||new Map}return B(t,[{key:"toString",value:function(){return"".concat(this.name,": ").concat(this.type)}},{key:"compareTo",value:function(t){return xn.compareField(this,t)}},{key:"clone",value:function(){for(var e,n,r,i,o,a,u,s,c,l,f=arguments.length,h=new Array(f),d=0;d<f;d++)h[d]=arguments[d];var p=h[0],y=h[1],v=h[2],b=h[3];return h[0]&&"object"===typeof h[0]?(p=void 0===(u=(a=h[0]).name)?this.name:u,y=void 0===(s=a.type)?this.type:s,v=void 0===(c=a.nullable)?this.nullable:c,b=void 0===(l=a.metadata)?this.metadata:l):(p=void 0===(n=(e=F(h,4))[0])?this.name:n,y=void 0===(r=e[1])?this.type:r,v=void 0===(i=e[2])?this.nullable:i,b=void 0===(o=e[3])?this.metadata:o),t.new(p,y,v,b)}},{key:"typeId",get:function(){return this.type.typeId}},{key:Symbol.toStringTag,get:function(){return"Field"}}],[{key:"new",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],u=n[3];return n[0]&&"object"===typeof n[0]&&(i=n[0].name,void 0===o&&(o=n[0].type),void 0===a&&(a=n[0].nullable),void 0===u&&(u=n[0].metadata)),new t("".concat(i),o,a,u)}}]),t}();function ro(t,e){return new Map([].concat(sn(t||new Map),sn(e||new Map)))}function io(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=-1,r=t.length;++n<r;){var i=t[n],o=i.type;if(On.isDictionary(o))if(e.has(o.id)){if(e.get(o.id)!==o.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else e.set(o.id,o.dictionary);o.children&&o.children.length>0&&io(o.children,e)}return e}eo.prototype.fields=null,eo.prototype.metadata=null,eo.prototype.dictionaries=null,no.prototype.type=null,no.prototype.name=null,no.prototype.nullable=null,no.prototype.metadata=null;var oo=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._run=new mi,r._offsets=new dr,r}return B(n,[{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Kn(new no(e,t.type,!0)),this.numChildren-1}},{key:"clear",value:function(){return this._run.clear(),Me(Object(De.a)(n.prototype),"clear",this).call(this)}},{key:"_flushPending",value:function(t){var e,n,r=this._run,i=this._offsets,o=this._setValue,a=0,u=C(t);try{for(u.s();!(n=u.n()).done;){var s=F(n.value,2);a=s[0],void 0===(e=s[1])?i.set(a,0):(i.set(a,e.length),o(this,a,r.bind(e)))}}catch(c){u.e(c)}finally{u.f()}}}]),n}(br),ao=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t;return Object(M.a)(this,n),(t=e.apply(this,arguments))._run=new mi,t}return B(n,[{key:"setValue",value:function(t,e){Me(Object(De.a)(n.prototype),"setValue",this).call(this,t,this._run.bind(e))}},{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");var n=this.children.push(t);return this.type=new Jn(this.type.listSize,new no(e,t.type,!0)),n}},{key:"clear",value:function(){return this._run.clear(),Me(Object(De.a)(n.prototype),"clear",this).call(this)}}]),n}(yr),uo=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"set",value:function(t,e){return Me(Object(De.a)(n.prototype),"set",this).call(this,t,e)}},{key:"setValue",value:function(t,e){e=e instanceof Map?e:new Map(Object.entries(e));var n=this._pending||(this._pending=new Map),r=n.get(t);r&&(this._pendingLength-=r.size),this._pendingLength+=e.size,n.set(t,e)}},{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.numChildren);if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new tr(new no(e,t.type,!0),this.type.keysSorted),this.numChildren-1}},{key:"_flushPending",value:function(t){var e=this,n=this._offsets,r=this._setValue;t.forEach((function(t,i){void 0===t?n.set(i,0):(n.set(i,t.size),r(e,i,t))}))}}]),n}(br),so=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.numChildren),n=this.children.push(t);return this.type=new Xn([].concat(sn(this.type.children),[new no(e,t.type,!0)])),n}}]),n}(yr),co=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._typeIds=new fr(new Int8Array(0),1),"function"===typeof t.valueToChildTypeId&&(r._valueToChildTypeId=t.valueToChildTypeId),r}return B(n,[{key:"append",value:function(t,e){return this.set(this.length,t,e)}},{key:"set",value:function(t,e,n){return void 0===n&&(n=this._valueToChildTypeId(this,e,t)),this.setValid(t,this.isValid(e))&&this.setValue(t,e,n),this}},{key:"setValue",value:function(t,e,r){this._typeIds.set(t,r),Me(Object(De.a)(n.prototype),"setValue",this).call(this,t,e)}},{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.children.length),n=this.children.push(t),r=this.type,i=r.children,o=r.mode,a=r.typeIds,u=[].concat(sn(i),[new no(e,t.type)]);return this.type=new Qn(o,[].concat(sn(a),[n]),u),n}},{key:"_valueToChildTypeId",value:function(t,e,n){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},{key:"typeIdToChildIndex",get:function(){return this.type.typeIdToChildIndex}}]),n}(yr),lo=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(co),fo=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._offsets=new fr(new Int32Array(0)),r}return B(n,[{key:"setValue",value:function(t,e,r){var i=this.type.typeIdToChildIndex[r];return this._offsets.set(t,this.getChildAt(i).length),Me(Object(De.a)(n.prototype),"setValue",this).call(this,t,e,r)}}]),n}(co),ho=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(cn),po=function(t,e,n){t[e]=n%4294967296|0,t[e+1]=n/4294967296|0},yo=function(t,e,n,r){var i=e[n],o=e[n+1];null!=i&&null!=o&&t.set(r.subarray(0,o-i),i)},vo=function(t,e,n){!function(t,e,n){t[e]=n/864e5|0}(t.values,e,n.valueOf())},bo=function(t,e,n){var r=t.values;po(r,2*e,n.valueOf())},go=function(t,e,n){var r=t.stride;t.values[r*e]=n},mo=function(t,e,n){var r=t.stride;t.values[r*e]=Ar(n)},_o=function(t,e,n){switch(typeof n){case"bigint":t.values64[e]=n;break;case"number":t.values[e*t.stride]=n;break;default:var r=n,i=t.stride,o=Pt(t.ArrayType,r);t.values.set(o.subarray(0,i),i*e)}},wo=function(t,e,n){var r=t.values;return po(r,2*e,n/1e3)},ko=function(t,e,n){var r=t.values;return po(r,2*e,n)},xo=function(t,e,n){return function(t,e,n){t[e]=1e3*n%4294967296|0,t[e+1]=1e3*n/4294967296|0}(t.values,2*e,n)},Oo=function(t,e,n){return function(t,e,n){t[e]=1e6*n%4294967296|0,t[e+1]=1e6*n/4294967296|0}(t.values,2*e,n)},So=function(t,e,n){t.values[t.stride*e]=n},To=function(t,e,n){t.values[t.stride*e]=n},Eo=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},jo=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},Ao=function(t,e,n){var r=t.typeIdToChildIndex[t.typeIds[e]],i=t.getChildAt(r);i&&i.set(t.valueOffsets[e],n)},Io=function(t,e,n){var r=t.typeIdToChildIndex[t.typeIds[e]],i=t.getChildAt(r);i&&i.set(e,n)},Co=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},No=function(t,e,n){t.values[e]=12*n[0]+n[1]%12};ho.prototype.visitBool=function(t,e,n){var r=t.offset,i=t.values,o=r+e;n?i[o>>3]|=1<<o%8:i[o>>3]&=~(1<<o%8)},ho.prototype.visitInt=function(t,e,n){t.type.bitWidth<64?go(t,e,n):_o(t,e,n)},ho.prototype.visitInt8=go,ho.prototype.visitInt16=go,ho.prototype.visitInt32=go,ho.prototype.visitInt64=_o,ho.prototype.visitUint8=go,ho.prototype.visitUint16=go,ho.prototype.visitUint32=go,ho.prototype.visitUint64=_o,ho.prototype.visitFloat=function(t,e,n){t.type.precision!==Ye.HALF?go(t,e,n):mo(t,e,n)},ho.prototype.visitFloat16=mo,ho.prototype.visitFloat32=go,ho.prototype.visitFloat64=go,ho.prototype.visitUtf8=function(t,e,n){var r=t.values,i=t.valueOffsets;yo(r,i,e,rt(n))},ho.prototype.visitBinary=function(t,e,n){var r=t.values,i=t.valueOffsets;return yo(r,i,e,n)},ho.prototype.visitFixedSizeBinary=function(t,e,n){var r=t.stride;t.values.set(n.subarray(0,r),r*e)},ho.prototype.visitDate=function(t,e,n){t.type.unit===We.DAY?vo(t,e,n):bo(t,e,n)},ho.prototype.visitDateDay=vo,ho.prototype.visitDateMillisecond=bo,ho.prototype.visitTimestamp=function(t,e,n){switch(t.type.unit){case qe.SECOND:return wo(t,e,n);case qe.MILLISECOND:return ko(t,e,n);case qe.MICROSECOND:return xo(t,e,n);case qe.NANOSECOND:return Oo(t,e,n)}},ho.prototype.visitTimestampSecond=wo,ho.prototype.visitTimestampMillisecond=ko,ho.prototype.visitTimestampMicrosecond=xo,ho.prototype.visitTimestampNanosecond=Oo,ho.prototype.visitTime=function(t,e,n){switch(t.type.unit){case qe.SECOND:return So(t,e,n);case qe.MILLISECOND:return To(t,e,n);case qe.MICROSECOND:return Eo(t,e,n);case qe.NANOSECOND:return jo(t,e,n)}},ho.prototype.visitTimeSecond=So,ho.prototype.visitTimeMillisecond=To,ho.prototype.visitTimeMicrosecond=Eo,ho.prototype.visitTimeNanosecond=jo,ho.prototype.visitDecimal=function(t,e,n){t.values.set(n.subarray(0,4),4*e)},ho.prototype.visitList=function(t,e,n){for(var r=t.getChildAt(0),i=t.valueOffsets,o=-1,a=i[e],u=i[e+1];a<u;)r.set(a++,n.get(++o))},ho.prototype.visitStruct=function(t,e,n){var r,i,o=n instanceof Map?(r=e,i=n,function(t,e,n){return t&&t.set(r,i.get(e.name))}):n instanceof ze?function(t,e){return function(n,r,i){return n&&n.set(t,e.get(i))}}(e,n):Array.isArray(n)?function(t,e){return function(n,r,i){return n&&n.set(t,e[i])}}(e,n):function(t,e){return function(n,r,i){return n&&n.set(t,e[r.name])}}(e,n);t.type.children.forEach((function(e,n){return o(t.getChildAt(n),e,n)}))},ho.prototype.visitUnion=function(t,e,n){t.type.mode===$e.Dense?Ao(t,e,n):Io(t,e,n)},ho.prototype.visitDenseUnion=Ao,ho.prototype.visitSparseUnion=Io,ho.prototype.visitDictionary=function(t,e,n){var r=t.getKey(e);null!==r&&t.setValue(r,n)},ho.prototype.visitInterval=function(t,e,n){t.type.unit===Ge.DAY_TIME?Co(t,e,n):No(t,e,n)},ho.prototype.visitIntervalDayTime=Co,ho.prototype.visitIntervalYearMonth=No,ho.prototype.visitFixedSizeList=function(t,e,n){for(var r=t.getChildAt(0),i=t.stride,o=-1,a=e*i;++o<i;)r.set(a+o,n.get(o))},ho.prototype.visitMap=function(t,e,n){for(var r=t.getChildAt(0),i=t.valueOffsets,o=n instanceof Map?sn(n):Object.entries(n),a=-1,u=i[e],s=i[e+1];u<s;)r.set(u++,o[++a])};var Do,Mo=new ho,Lo=new(function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"visitNull",value:function(){return mr}},{key:"visitBool",value:function(){return gr}},{key:"visitInt",value:function(){return Gr}},{key:"visitInt8",value:function(){return Kr}},{key:"visitInt16",value:function(){return Xr}},{key:"visitInt32",value:function(){return Qr}},{key:"visitInt64",value:function(){return Zr}},{key:"visitUint8",value:function(){return Jr}},{key:"visitUint16",value:function(){return ti}},{key:"visitUint32",value:function(){return ei}},{key:"visitUint64",value:function(){return ni}},{key:"visitFloat",value:function(){return Ir}},{key:"visitFloat16",value:function(){return Cr}},{key:"visitFloat32",value:function(){return Nr}},{key:"visitFloat64",value:function(){return Dr}},{key:"visitUtf8",value:function(){return gi}},{key:"visitBinary",value:function(){return bi}},{key:"visitFixedSizeBinary",value:function(){return Sr}},{key:"visitDate",value:function(){return _r}},{key:"visitDateDay",value:function(){return wr}},{key:"visitDateMillisecond",value:function(){return kr}},{key:"visitTimestamp",value:function(){return ci}},{key:"visitTimestampSecond",value:function(){return li}},{key:"visitTimestampMillisecond",value:function(){return fi}},{key:"visitTimestampMicrosecond",value:function(){return hi}},{key:"visitTimestampNanosecond",value:function(){return di}},{key:"visitTime",value:function(){return ii}},{key:"visitTimeSecond",value:function(){return oi}},{key:"visitTimeMillisecond",value:function(){return ai}},{key:"visitTimeMicrosecond",value:function(){return ui}},{key:"visitTimeNanosecond",value:function(){return si}},{key:"visitDecimal",value:function(){return xr}},{key:"visitList",value:function(){return oo}},{key:"visitStruct",value:function(){return so}},{key:"visitUnion",value:function(){return co}},{key:"visitDenseUnion",value:function(){return fo}},{key:"visitSparseUnion",value:function(){return lo}},{key:"visitDictionary",value:function(){return Or}},{key:"visitInterval",value:function(){return pi}},{key:"visitIntervalDayTime",value:function(){return yi}},{key:"visitIntervalYearMonth",value:function(){return vi}},{key:"visitFixedSizeList",value:function(){return ao}},{key:"visitMap",value:function(){return uo}}]),n}(cn));yr.new=function t(e){var n=e.type,r=new(Lo.getVisitFn(n)())(e);if(n.children&&n.children.length>0){var i=e.children||[],o={nullValues:e.nullValues},a=Array.isArray(i)?function(t,e){return i[e]||o}:function(t){var e=t.name;return i[e]||o};n.children.forEach((function(e,n){var i=e.type,o=a(e,n);r.children.push(t(Ne(Ne({},o),{},{type:i})))}))}return r},Object.keys(Ve).map((function(t){return Ve[t]})).filter((function(t){return"number"===typeof t&&t!==Ve.NONE})).forEach((function(t){Lo.visit(t).prototype._setValue=Mo.getVisitFn(t)})),gi.prototype._setValue=Mo.visitBinary,function(t){!function(e){!function(e){!function(e){var n=function(){function e(){Object(M.a)(this,e),this.bb=null,this.bb_pos=0}return B(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"version",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Le.apache.arrow.flatbuf.MetadataVersion.V1}},{key:"schema",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?(t||new Le.apache.arrow.flatbuf.Schema).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}},{key:"dictionaries",value:function(e,n){var r=this.bb.__offset(this.bb_pos,8);return r?(n||new t.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}},{key:"dictionariesLength",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"recordBatches",value:function(e,n){var r=this.bb.__offset(this.bb_pos,10);return r?(n||new t.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}},{key:"recordBatchesLength",value:function(){var t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsFooter",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startFooter",value:function(t){t.startObject(4)}},{key:"addVersion",value:function(t,e){t.addFieldInt16(0,e,Le.apache.arrow.flatbuf.MetadataVersion.V1)}},{key:"addSchema",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"addDictionaries",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:"startDictionariesVector",value:function(t,e){t.startVector(24,e,8)}},{key:"addRecordBatches",value:function(t,e){t.addFieldOffset(3,e,0)}},{key:"startRecordBatchesVector",value:function(t,e){t.startVector(24,e,8)}},{key:"endFooter",value:function(t){return t.endObject()}},{key:"finishFooterBuffer",value:function(t,e){t.finish(e)}},{key:"createFooter",value:function(t,n,r,i,o){return e.startFooter(t),e.addVersion(t,n),e.addSchema(t,r),e.addDictionaries(t,i),e.addRecordBatches(t,o),e.endFooter(t)}}]),e}();e.Footer=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Do||(Do={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){Object(M.a)(this,t),this.bb=null,this.bb_pos=0}return B(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"offset",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"metaDataLength",value:function(){return this.bb.readInt32(this.bb_pos+8)}},{key:"bodyLength",value:function(){return this.bb.readInt64(this.bb_pos+16)}}],[{key:"createBlock",value:function(t,e,n,r){return t.prep(8,24),t.writeInt64(r),t.pad(4),t.writeInt32(n),t.writeInt64(e),t.offset()}}]),t}();t.Block=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(Do||(Do={}));var Bo=q.Long,Po=q.Builder,Fo=q.ByteBuffer,Ro=Do.apache.arrow.flatbuf.Block,Uo=Do.apache.arrow.flatbuf.Footer,zo=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xe.V4,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;Object(M.a)(this,t),this.schema=e,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}return B(t,[{key:"recordBatches",value:P.mark((function t(){var e,n,r;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=-1,r=this.numRecordBatches;case 1:if(!(++n<r)){t.next=7;break}if(!(e=this.getRecordBatch(n))){t.next=5;break}return t.next=5,e;case 5:t.next=1;break;case 7:case"end":return t.stop()}}),t,this)}))},{key:"dictionaryBatches",value:P.mark((function t(){var e,n,r;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=-1,r=this.numDictionaries;case 1:if(!(++n<r)){t.next=7;break}if(!(e=this.getDictionaryBatch(n))){t.next=5;break}return t.next=5,e;case 5:t.next=1;break;case 7:case"end":return t.stop()}}),t,this)}))},{key:"getRecordBatch",value:function(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}},{key:"getDictionaryBatch",value:function(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}},{key:"numRecordBatches",get:function(){return this._recordBatches.length}},{key:"numDictionaries",get:function(){return this._dictionaryBatches.length}}],[{key:"decode",value:function(t){t=new Fo(Vt(t));var e=Uo.getRootAsFooter(t),n=eo.decode(e.schema());return new Vo(n,e)}},{key:"encode",value:function(t){var e=new Po,n=eo.encode(e,t.schema);Uo.startRecordBatchesVector(e,t.numRecordBatches),sn(t.recordBatches()).slice().reverse().forEach((function(t){return Ho.encode(e,t)}));var r=e.endVector();Uo.startDictionariesVector(e,t.numDictionaries),sn(t.dictionaryBatches()).slice().reverse().forEach((function(t){return Ho.encode(e,t)}));var i=e.endVector();return Uo.startFooter(e),Uo.addSchema(e,n),Uo.addVersion(e,Xe.V4),Uo.addRecordBatches(e,r),Uo.addDictionaries(e,i),Uo.finishFooterBuffer(e,Uo.endFooter(e)),e.asUint8Array()}}]),t}(),Vo=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this,t,r.version()))._footer=r,i}return B(n,[{key:"getRecordBatch",value:function(t){if(t>=0&&t<this.numRecordBatches){var e=this._footer.recordBatches(t);if(e)return Ho.decode(e)}return null}},{key:"getDictionaryBatch",value:function(t){if(t>=0&&t<this.numDictionaries){var e=this._footer.dictionaries(t);if(e)return Ho.decode(e)}return null}},{key:"numRecordBatches",get:function(){return this._footer.recordBatchesLength()}},{key:"numDictionaries",get:function(){return this._footer.dictionariesLength()}}]),n}(zo),Ho=function(){function t(e,n,r){Object(M.a)(this,t),this.metaDataLength=e,this.offset="number"===typeof r?r:r.low,this.bodyLength="number"===typeof n?n:n.low}return B(t,null,[{key:"decode",value:function(e){return new t(e.metaDataLength(),e.bodyLength(),e.offset())}},{key:"encode",value:function(t,e){var n=e.metaDataLength,r=new Bo(e.offset,0),i=new Bo(e.bodyLength,0);return Ro.createBlock(t,r,n,i)}}]),t}(),Wo=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"write",value:function(t){if((t=Vt(t)).byteLength>0)return Me(Object(De.a)(n.prototype),"write",this).call(this,t)}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?nt(this.toUint8Array(!0)):this.toUint8Array(!1).then(nt)}},{key:"toUint8Array",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?Bt(this._values)[0]:D(P.mark((function e(){var n,r,i,o,a,u,s,c,l;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=0,i=!0,o=!1,e.prev=3,u=H(t);case 5:return e.next=7,u.next();case 7:return s=e.sent,i=s.done,e.next=11,s.value;case 11:if(c=e.sent,i){e.next=19;break}l=c,n.push(l),r+=l.byteLength;case 16:i=!0,e.next=5;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(3),o=!0,a=e.t0;case 25:if(e.prev=25,e.prev=26,i||null==u.return){e.next=30;break}return e.next=30,u.return();case 30:if(e.prev=30,!o){e.next=33;break}throw a;case 33:return e.finish(30);case 34:return e.finish(25);case 35:return e.abrupt("return",Bt(n,r)[0]);case 36:case"end":return e.stop()}}),e,null,[[3,21,25,35],[26,,30,34]])})))()}}]),n}(ct),qo=function(){function t(e){Object(M.a)(this,t),e&&(this.source=new $o(_e.fromIterable(e)))}return B(t,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(t){return this.source.next(t)}},{key:"throw",value:function(t){return this.source.throw(t)}},{key:"return",value:function(t){return this.source.return(t)}},{key:"peek",value:function(t){return this.source.peek(t)}},{key:"read",value:function(t){return this.source.read(t)}}]),t}(),Yo=function(){function t(e){Object(M.a)(this,t),e instanceof t?this.source=e.source:e instanceof Wo?this.source=new Go(_e.fromAsyncIterable(e)):Ct(e)?this.source=new Go(_e.fromNodeStream(e)):At(e)?this.source=new Go(_e.fromDOMStream(e)):Et(e)?this.source=new Go(_e.fromDOMStream(e.body)):kt(e)?this.source=new Go(_e.fromIterable(e)):(wt(e)||xt(e))&&(this.source=new Go(_e.fromAsyncIterable(e)))}return B(t,[{key:Symbol.asyncIterator,value:function(){return this}},{key:"next",value:function(t){return this.source.next(t)}},{key:"throw",value:function(t){return this.source.throw(t)}},{key:"return",value:function(t){return this.source.return(t)}},{key:"cancel",value:function(t){return this.source.cancel(t)}},{key:"peek",value:function(t){return this.source.peek(t)}},{key:"read",value:function(t){return this.source.read(t)}},{key:"closed",get:function(){return this.source.closed}}]),t}(),$o=function(){function t(e){Object(M.a)(this,t),this.source=e}return B(t,[{key:"cancel",value:function(t){this.return(t)}},{key:"peek",value:function(t){return this.next(t,"peek").value}},{key:"read",value:function(t){return this.next(t,"read").value}},{key:"next",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"read";return this.source.next({cmd:e,size:t})}},{key:"throw",value:function(t){return Object.create(this.source.throw&&this.source.throw(t)||at)}},{key:"return",value:function(t){return Object.create(this.source.return&&this.source.return(t)||at)}}]),t}(),Go=function(){function t(e){var n=this;Object(M.a)(this,t),this.source=e,this._closedPromise=new Promise((function(t){return n._closedPromiseResolve=t}))}return B(t,[{key:"cancel",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.return(e);case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next(e,"read");case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"peek",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next(e,"peek");case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"next",value:function(){var t=D(P.mark((function t(e){var n,r=arguments;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:"read",t.next=3,this.source.next({cmd:n,size:e});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"throw",value:function(){var t=D(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t1=this.source.throw,!t.t1){t.next=5;break}return t.next=4,this.source.throw(e);case 4:t.t1=t.sent;case 5:if(t.t0=t.t1,t.t0){t.next=8;break}t.t0=at;case 8:return n=t.t0,this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,t.abrupt("return",Object.create(n));case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=D(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t1=this.source.return,!t.t1){t.next=5;break}return t.next=4,this.source.return(e);case 4:t.t1=t.sent;case 5:if(t.t0=t.t1,t.t0){t.next=8;break}t.t0=at;case 8:return n=t.t0,this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,t.abrupt("return",Object.create(n));case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"closed",get:function(){return this._closedPromise}}]),t}(),Ko=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this)).position=0,i.buffer=Vt(t),i.size="undefined"===typeof r?i.buffer.byteLength:r,i}return B(n,[{key:"readInt32",value:function(t){var e=this.readAt(t,4),n=e.buffer,r=e.byteOffset;return new DataView(n,r).getInt32(0,!0)}},{key:"seek",value:function(t){return this.position=Math.min(t,this.size),t<this.size}},{key:"read",value:function(t){var e=this.buffer,n=this.size,r=this.position;return e&&r<n?("number"!==typeof t&&(t=1/0),this.position=Math.min(n,r+Math.min(n-r,t)),e.subarray(r,this.position)):null}},{key:"readAt",value:function(t,e){var n=this.buffer,r=Math.min(this.size,t+e);return n?n.subarray(t,r):new Uint8Array(e)}},{key:"close",value:function(){this.buffer&&(this.buffer=null)}},{key:"throw",value:function(t){return this.close(),{done:!0,value:t}}},{key:"return",value:function(t){return this.close(),{done:!0,value:t}}}]),n}(qo),Xo=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this)).position=0,i._handle=t,"number"===typeof r?i.size=r:i._pending=D(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.stat();case 2:i.size=e.sent.size,delete i._pending;case 4:case"end":return e.stop()}}),e)})))(),i}return B(n,[{key:"readInt32",value:function(){var t=D(P.mark((function t(e){var n,r,i;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readAt(e,4);case 2:return n=t.sent,r=n.buffer,i=n.byteOffset,t.abrupt("return",new DataView(r,i).getInt32(0,!0));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"seek",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._pending,!t.t0){t.next=4;break}return t.next=4,this._pending;case 4:return this.position=Math.min(e,this.size),t.abrupt("return",e<this.size);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=D(P.mark((function t(e){var n,r,i,o,a,u,s,c,l;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._pending,!t.t0){t.next=4;break}return t.next=4,this._pending;case 4:if(n=this._handle,r=this.size,i=this.position,!(n&&i<r)){t.next=18;break}"number"!==typeof e&&(e=1/0),o=i,a=0,u=0,s=Math.min(r,o+Math.min(r-o,e)),c=new Uint8Array(Math.max(0,(this.position=s)-o));case 10:if(!((o+=u)<s&&(a+=u)<c.byteLength)){t.next=17;break}return t.next=13,n.read(c,a,c.byteLength-a,o);case 13:l=t.sent,u=l.bytesRead,t.next=10;break;case 17:return t.abrupt("return",c);case 18:return t.abrupt("return",null);case 19:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"readAt",value:function(){var t=D(P.mark((function t(e,n){var r,i,o,a;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._pending,!t.t0){t.next=4;break}return t.next=4,this._pending;case 4:if(r=this._handle,i=this.size,!(r&&e+n<i)){t.next=11;break}return o=Math.min(i,e+n),a=new Uint8Array(o-e),t.next=10,r.read(a,0,n,e);case 10:return t.abrupt("return",t.sent.buffer);case 11:return t.abrupt("return",new Uint8Array(n));case 12:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"close",value:function(){var t=D(P.mark((function t(){var e;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this._handle,this._handle=null,t.t0=e,!t.t0){t.next=6;break}return t.next=6,e.close();case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"throw",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:return t.abrupt("return",{done:!0,value:e});case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:return t.abrupt("return",{done:!0,value:e});case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),n}(Yo);function Qo(t){return t<0&&(t=4294967295+t+1),"0x".concat(t.toString(16))}var Zo=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Jo=function(){function t(e){Object(M.a)(this,t),this.buffer=e}return B(t,[{key:"high",value:function(){return this.buffer[1]}},{key:"low",value:function(){return this.buffer[0]}},{key:"_times",value:function(t){var e=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),n=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]]),r=e[3]*n[3];this.buffer[0]=65535&r;var i=r>>>16;return i+=r=e[2]*n[3],i+=r=e[3]*n[2]>>>0,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0<r?65536:0,this.buffer[1]+=i>>>16,this.buffer[1]+=e[1]*n[3]+e[2]*n[2]+e[3]*n[1],this.buffer[1]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0]<<16,this}},{key:"_plus",value:function(t){var e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}},{key:"lessThan",value:function(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}},{key:"equals",value:function(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}},{key:"greaterThan",value:function(t){return t.lessThan(this)}},{key:"hex",value:function(){return"".concat(Qo(this.buffer[1])," ").concat(Qo(this.buffer[0]))}}]),t}(),ta=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"times",value:function(t){return this._times(t),this}},{key:"plus",value:function(t){return this._plus(t),this}}],[{key:"from",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return n.fromString("string"===typeof t?t:t.toString(),e)}},{key:"fromNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return n.fromString(t.toString(),e)}},{key:"fromString",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2),r=t.length,i=new n(e),o=0;o<r;){var a=8<r-o?8:r-o,u=new n(new Uint32Array([parseInt(t.substr(o,a),10),0])),s=new n(new Uint32Array([Zo[a],0]));i.times(s),i.plus(u),o+=a}return i}},{key:"convertArray",value:function(t){for(var e=new Uint32Array(2*t.length),r=-1,i=t.length;++r<i;)n.from(t[r],new Uint32Array(e.buffer,e.byteOffset+2*r*4,2));return e}},{key:"multiply",value:function(t,e){return new n(new Uint32Array(t.buffer)).times(e)}},{key:"add",value:function(t,e){return new n(new Uint32Array(t.buffer)).plus(e)}}]),n}(Jo),ea=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"negate",value:function(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],0==this.buffer[0]&&++this.buffer[1],this}},{key:"times",value:function(t){return this._times(t),this}},{key:"plus",value:function(t){return this._plus(t),this}},{key:"lessThan",value:function(t){var e=this.buffer[1]<<0,n=t.buffer[1]<<0;return e<n||e===n&&this.buffer[0]<t.buffer[0]}}],[{key:"from",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return n.fromString("string"===typeof t?t:t.toString(),e)}},{key:"fromNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return n.fromString(t.toString(),e)}},{key:"fromString",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2),r=t.startsWith("-"),i=t.length,o=new n(e),a=r?1:0;a<i;){var u=8<i-a?8:i-a,s=new n(new Uint32Array([parseInt(t.substr(a,u),10),0])),c=new n(new Uint32Array([Zo[u],0]));o.times(c),o.plus(s),a+=u}return r?o.negate():o}},{key:"convertArray",value:function(t){for(var e=new Uint32Array(2*t.length),r=-1,i=t.length;++r<i;)n.from(t[r],new Uint32Array(e.buffer,e.byteOffset+2*r*4,2));return e}},{key:"multiply",value:function(t,e){return new n(new Uint32Array(t.buffer)).times(e)}},{key:"add",value:function(t,e){return new n(new Uint32Array(t.buffer)).plus(e)}}]),n}(Jo),na=function(){function t(e){Object(M.a)(this,t),this.buffer=e}return B(t,[{key:"high",value:function(){return new ea(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}},{key:"low",value:function(){return new ea(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}},{key:"negate",value:function(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],0==this.buffer[0]&&++this.buffer[1],0==this.buffer[1]&&++this.buffer[2],0==this.buffer[2]&&++this.buffer[3],this}},{key:"times",value:function(t){var e=new ta(new Uint32Array([this.buffer[3],0])),n=new ta(new Uint32Array([this.buffer[2],0])),r=new ta(new Uint32Array([this.buffer[1],0])),i=new ta(new Uint32Array([this.buffer[0],0])),o=new ta(new Uint32Array([t.buffer[3],0])),a=new ta(new Uint32Array([t.buffer[2],0])),u=new ta(new Uint32Array([t.buffer[1],0])),s=new ta(new Uint32Array([t.buffer[0],0])),c=ta.multiply(i,s);this.buffer[0]=c.low();var l=new ta(new Uint32Array([c.high(),0]));return c=ta.multiply(r,s),l.plus(c),c=ta.multiply(i,u),l.plus(c),this.buffer[1]=l.low(),this.buffer[3]=l.lessThan(c)?1:0,this.buffer[2]=l.high(),new ta(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(ta.multiply(n,s)).plus(ta.multiply(r,u)).plus(ta.multiply(i,a)),this.buffer[3]+=ta.multiply(e,s).plus(ta.multiply(n,u)).plus(ta.multiply(r,a)).plus(ta.multiply(i,o)).low(),this}},{key:"plus",value:function(t){var e=new Uint32Array(4);return e[3]=this.buffer[3]+t.buffer[3]>>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}},{key:"hex",value:function(){return"".concat(Qo(this.buffer[3])," ").concat(Qo(this.buffer[2])," ").concat(Qo(this.buffer[1])," ").concat(Qo(this.buffer[0]))}}],[{key:"multiply",value:function(e,n){return new t(new Uint32Array(e.buffer)).times(n)}},{key:"add",value:function(e,n){return new t(new Uint32Array(e.buffer)).plus(n)}},{key:"from",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return t.fromString("string"===typeof e?e:e.toString(),n)}},{key:"fromNumber",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return t.fromString(e.toString(),n)}},{key:"fromString",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4),r=e.startsWith("-"),i=e.length,o=new t(n),a=r?1:0;a<i;){var u=8<i-a?8:i-a,s=new t(new Uint32Array([parseInt(e.substr(a,u),10),0,0,0])),c=new t(new Uint32Array([Zo[u],0,0,0]));o.times(c),o.plus(s),a+=u}return r?o.negate():o}},{key:"convertArray",value:function(e){for(var n=new Uint32Array(4*e.length),r=-1,i=e.length;++r<i;)t.from(e[r],new Uint32Array(n.buffer,n.byteOffset+16*r,4));return n}}]),t}(),ra=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r,i,o){var a;return Object(M.a)(this,n),(a=e.call(this)).nodesIndex=-1,a.buffersIndex=-1,a.bytes=t,a.nodes=r,a.buffers=i,a.dictionaries=o,a}return B(n,[{key:"visit",value:function(t){return Me(Object(De.a)(n.prototype),"visit",this).call(this,t instanceof no?t.type:t)}},{key:"visitNull",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length;return or.Null(t,0,n)}},{key:"visitBool",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Bool(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitInt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Int(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitFloat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Float(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitUtf8",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Utf8(t,0,n,r,this.readNullBitmap(t,r),this.readOffsets(t),this.readData(t))}},{key:"visitBinary",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Binary(t,0,n,r,this.readNullBitmap(t,r),this.readOffsets(t),this.readData(t))}},{key:"visitFixedSizeBinary",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.FixedSizeBinary(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitDate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Date(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitTimestamp",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Timestamp(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Time(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitDecimal",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Decimal(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitList",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.List(t,0,n,r,this.readNullBitmap(t,r),this.readOffsets(t),this.visit(t.children[0]))}},{key:"visitStruct",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Struct(t,0,n,r,this.readNullBitmap(t,r),this.visitMany(t.children))}},{key:"visitUnion",value:function(t){return t.mode===$e.Sparse?this.visitSparseUnion(t):this.visitDenseUnion(t)}},{key:"visitDenseUnion",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Union(t,0,n,r,this.readNullBitmap(t,r),this.readTypeIds(t),this.readOffsets(t),this.visitMany(t.children))}},{key:"visitSparseUnion",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Union(t,0,n,r,this.readNullBitmap(t,r),this.readTypeIds(t),this.visitMany(t.children))}},{key:"visitDictionary",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Dictionary(t,0,n,r,this.readNullBitmap(t,r),this.readData(t.indices),this.readDictionary(t))}},{key:"visitInterval",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Interval(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitFixedSizeList",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.FixedSizeList(t,0,n,r,this.readNullBitmap(t,r),this.visit(t.children[0]))}},{key:"visitMap",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return or.Map(t,0,n,r,this.readNullBitmap(t,r),this.readOffsets(t),this.visit(t.children[0]))}},{key:"nextFieldNode",value:function(){return this.nodes[++this.nodesIndex]}},{key:"nextBufferRange",value:function(){return this.buffers[++this.buffersIndex]}},{key:"readNullBitmap",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange();return e>0&&this.readData(t,n)||new Uint8Array(0)}},{key:"readOffsets",value:function(t,e){return this.readData(t,e)}},{key:"readTypeIds",value:function(t,e){return this.readData(t,e)}},{key:"readData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=e.length,r=e.offset;return this.bytes.subarray(r,r+n)}},{key:"readDictionary",value:function(t){return this.dictionaries.get(t.id)}}]),n}(cn),ia=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r,i,o){var a;return Object(M.a)(this,n),(a=e.call(this,new Uint8Array(0),r,i,o)).sources=t,a}return B(n,[{key:"readNullBitmap",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange(),r=n.offset;return e<=0?new Uint8Array(0):nn(this.sources[r])}},{key:"readOffsets",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=e.offset;return Pt(Uint8Array,Pt(Int32Array,this.sources[n]))}},{key:"readTypeIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=e.offset;return Pt(Uint8Array,Pt(t.ArrayType,this.sources[n]))}},{key:"readData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=e.offset,r=this.sources;return On.isTimestamp(t)||(On.isInt(t)||On.isTime(t))&&64===t.bitWidth||On.isDate(t)&&t.unit===We.MILLISECOND?Pt(Uint8Array,ea.convertArray(r[n])):On.isDecimal(t)?Pt(Uint8Array,na.convertArray(r[n])):On.isBinary(t)||On.isFixedSizeBinary(t)?oa(r[n]):On.isBool(t)?nn(r[n]):On.isUtf8(t)?rt(r[n].join("")):Pt(Uint8Array,Pt(t.ArrayType,r[n].map((function(t){return+t}))))}}]),n}(ra);function oa(t){for(var e=t.join(""),n=new Uint8Array(e.length/2),r=0;r<e.length;r+=2)n[r>>1]=parseInt(e.substr(r,2),16);return n}var aa=q.Long,ua=Le.apache.arrow.flatbuf.Null,sa=Le.apache.arrow.flatbuf.Int,ca=Le.apache.arrow.flatbuf.FloatingPoint,la=Le.apache.arrow.flatbuf.Binary,fa=Le.apache.arrow.flatbuf.Bool,ha=Le.apache.arrow.flatbuf.Utf8,da=Le.apache.arrow.flatbuf.Decimal,pa=Le.apache.arrow.flatbuf.Date,ya=Le.apache.arrow.flatbuf.Time,va=Le.apache.arrow.flatbuf.Timestamp,ba=Le.apache.arrow.flatbuf.Interval,ga=Le.apache.arrow.flatbuf.List,ma=Le.apache.arrow.flatbuf.Struct_,_a=Le.apache.arrow.flatbuf.Union,wa=Le.apache.arrow.flatbuf.DictionaryEncoding,ka=Le.apache.arrow.flatbuf.FixedSizeBinary,xa=Le.apache.arrow.flatbuf.FixedSizeList,Oa=Le.apache.arrow.flatbuf.Map,Sa=new(function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"visit",value:function(t,e){return null==t||null==e?void 0:Me(Object(De.a)(n.prototype),"visit",this).call(this,t,e)}},{key:"visitNull",value:function(t,e){return ua.startNull(e),ua.endNull(e)}},{key:"visitInt",value:function(t,e){return sa.startInt(e),sa.addBitWidth(e,t.bitWidth),sa.addIsSigned(e,t.isSigned),sa.endInt(e)}},{key:"visitFloat",value:function(t,e){return ca.startFloatingPoint(e),ca.addPrecision(e,t.precision),ca.endFloatingPoint(e)}},{key:"visitBinary",value:function(t,e){return la.startBinary(e),la.endBinary(e)}},{key:"visitBool",value:function(t,e){return fa.startBool(e),fa.endBool(e)}},{key:"visitUtf8",value:function(t,e){return ha.startUtf8(e),ha.endUtf8(e)}},{key:"visitDecimal",value:function(t,e){return da.startDecimal(e),da.addScale(e,t.scale),da.addPrecision(e,t.precision),da.endDecimal(e)}},{key:"visitDate",value:function(t,e){return pa.startDate(e),pa.addUnit(e,t.unit),pa.endDate(e)}},{key:"visitTime",value:function(t,e){return ya.startTime(e),ya.addUnit(e,t.unit),ya.addBitWidth(e,t.bitWidth),ya.endTime(e)}},{key:"visitTimestamp",value:function(t,e){var n=t.timezone&&e.createString(t.timezone)||void 0;return va.startTimestamp(e),va.addUnit(e,t.unit),void 0!==n&&va.addTimezone(e,n),va.endTimestamp(e)}},{key:"visitInterval",value:function(t,e){return ba.startInterval(e),ba.addUnit(e,t.unit),ba.endInterval(e)}},{key:"visitList",value:function(t,e){return ga.startList(e),ga.endList(e)}},{key:"visitStruct",value:function(t,e){return ma.startStruct_(e),ma.endStruct_(e)}},{key:"visitUnion",value:function(t,e){_a.startTypeIdsVector(e,t.typeIds.length);var n=_a.createTypeIdsVector(e,t.typeIds);return _a.startUnion(e),_a.addMode(e,t.mode),_a.addTypeIds(e,n),_a.endUnion(e)}},{key:"visitDictionary",value:function(t,e){var n=this.visit(t.indices,e);return wa.startDictionaryEncoding(e),wa.addId(e,new aa(t.id,0)),wa.addIsOrdered(e,t.isOrdered),void 0!==n&&wa.addIndexType(e,n),wa.endDictionaryEncoding(e)}},{key:"visitFixedSizeBinary",value:function(t,e){return ka.startFixedSizeBinary(e),ka.addByteWidth(e,t.byteWidth),ka.endFixedSizeBinary(e)}},{key:"visitFixedSizeList",value:function(t,e){return xa.startFixedSizeList(e),xa.addListSize(e,t.listSize),xa.endFixedSizeList(e)}},{key:"visitMap",value:function(t,e){return Oa.startMap(e),Oa.addKeysSorted(e,t.keysSorted),Oa.endMap(e)}}]),n}(cn));function Ta(t){return new Ya(t.count,function t(e){return(e||[]).reduce((function(e,n){return[].concat(sn(e),[new Ka(n.count,(r=n.VALIDITY,(r||[]).reduce((function(t,e){return t+ +(0===e)}),0)))],sn(t(n.children)));var r}),[])}(t.columns),function t(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=-1,i=(e||[]).length;++r<i;){var o=e[r];o.VALIDITY&&n.push(new Ga(n.length,o.VALIDITY.length)),o.TYPE&&n.push(new Ga(n.length,o.TYPE.length)),o.OFFSET&&n.push(new Ga(n.length,o.OFFSET.length)),o.DATA&&n.push(new Ga(n.length,o.DATA.length)),n=t(o.children,n)}return n}(t.columns))}function Ea(t,e){return(t.fields||[]).filter(Boolean).map((function(t){return no.fromJSON(t,e)}))}function ja(t,e){return(t.children||[]).filter(Boolean).map((function(t){return no.fromJSON(t,e)}))}function Aa(t){return new Map(Object.entries(t||{}))}function Ia(t){return new Tn(t.isSigned,t.bitWidth)}function Ca(t,e){var n=t.type.name;switch(n){case"NONE":case"null":return new Sn;case"binary":return new Rn;case"utf8":return new Un;case"bool":return new zn;case"list":return new Kn((e||[])[0]);case"struct":case"struct_":return new Xn(e||[])}switch(n){case"int":var r=t.type;return new Tn(r.isSigned,r.bitWidth);case"floatingpoint":var i=t.type;return new Ln(Ye[i.precision]);case"decimal":var o=t.type;return new Vn(o.scale,o.precision);case"date":var a=t.type;return new Hn(We[a.unit]);case"time":var u=t.type;return new Yn(qe[u.unit],u.bitWidth);case"timestamp":var s=t.type;return new $n(qe[s.unit],s.timezone);case"interval":var c=t.type;return new Gn(Ge[c.unit]);case"union":var l=t.type;return new Qn($e[l.mode],l.typeIds||[],e||[]);case"fixedsizebinary":var f=t.type;return new Zn(f.byteWidth);case"fixedsizelist":var h=t.type;return new Jn(h.listSize,(e||[])[0]);case"map":var d=t.type;return new tr((e||[])[0],d.keysSorted)}throw new Error('Unrecognized type: "'.concat(n,'"'))}var Na=q.Long,Da=q.Builder,Ma=q.ByteBuffer,La=Le.apache.arrow.flatbuf.Type,Ba=Le.apache.arrow.flatbuf.Field,Pa=Le.apache.arrow.flatbuf.Schema,Fa=Le.apache.arrow.flatbuf.Buffer,Ra=Ue.apache.arrow.flatbuf.Message,Ua=Le.apache.arrow.flatbuf.KeyValue,za=Ue.apache.arrow.flatbuf.FieldNode,Va=Le.apache.arrow.flatbuf.Endianness,Ha=Ue.apache.arrow.flatbuf.RecordBatch,Wa=Ue.apache.arrow.flatbuf.DictionaryBatch,qa=function(){function t(e,n,r,i){Object(M.a)(this,t),this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=function(){return i}),this._bodyLength="number"===typeof e?e:e.low}return B(t,[{key:"header",value:function(){return this._createHeader()}},{key:"isSchema",value:function(){return this.headerType===Ke.Schema}},{key:"isRecordBatch",value:function(){return this.headerType===Ke.RecordBatch}},{key:"isDictionaryBatch",value:function(){return this.headerType===Ke.DictionaryBatch}},{key:"type",get:function(){return this.headerType}},{key:"version",get:function(){return this._version}},{key:"headerType",get:function(){return this._headerType}},{key:"bodyLength",get:function(){return this._bodyLength}}],[{key:"fromJSON",value:function(e,n){var r=new t(0,Xe.V4,n);return r._createHeader=function(t,e){return function(){switch(e){case Ke.Schema:return eo.fromJSON(t);case Ke.RecordBatch:return Ya.fromJSON(t);case Ke.DictionaryBatch:return $a.fromJSON(t)}throw new Error("Unrecognized Message type: { name: ".concat(Ke[e],", type: ").concat(e," }"))}}(e,n),r}},{key:"decode",value:function(e){e=new Ma(Vt(e));var n=Ra.getRootAsMessage(e),r=n.bodyLength(),i=n.version(),o=n.headerType(),a=new t(r,i,o);return a._createHeader=function(t,e){return function(){switch(e){case Ke.Schema:return eo.decode(t.header(new Pa));case Ke.RecordBatch:return Ya.decode(t.header(new Ha),t.version());case Ke.DictionaryBatch:return $a.decode(t.header(new Wa),t.version())}throw new Error("Unrecognized Message type: { name: ".concat(Ke[e],", type: ").concat(e," }"))}}(n,o),a}},{key:"encode",value:function(t){var e=new Da,n=-1;return t.isSchema()?n=eo.encode(e,t.header()):t.isRecordBatch()?n=Ya.encode(e,t.header()):t.isDictionaryBatch()&&(n=$a.encode(e,t.header())),Ra.startMessage(e),Ra.addVersion(e,Xe.V4),Ra.addHeader(e,n),Ra.addHeaderType(e,t.headerType),Ra.addBodyLength(e,new Na(t.bodyLength,0)),Ra.finishMessageBuffer(e,Ra.endMessage(e)),e.asUint8Array()}},{key:"from",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e instanceof eo)return new t(0,Xe.V4,Ke.Schema,e);if(e instanceof Ya)return new t(n,Xe.V4,Ke.RecordBatch,e);if(e instanceof $a)return new t(n,Xe.V4,Ke.DictionaryBatch,e);throw new Error("Unrecognized Message header: ".concat(e))}}]),t}(),Ya=function(){function t(e,n,r){Object(M.a)(this,t),this._nodes=n,this._buffers=r,this._length="number"===typeof e?e:e.low}return B(t,[{key:"nodes",get:function(){return this._nodes}},{key:"length",get:function(){return this._length}},{key:"buffers",get:function(){return this._buffers}}]),t}(),$a=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(M.a)(this,t),this._data=e,this._isDelta=r,this._id="number"===typeof n?n:n.low}return B(t,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"isDelta",get:function(){return this._isDelta}},{key:"length",get:function(){return this.data.length}},{key:"nodes",get:function(){return this.data.nodes}},{key:"buffers",get:function(){return this.data.buffers}}]),t}(),Ga=function t(e,n){Object(M.a)(this,t),this.offset="number"===typeof e?e:e.low,this.length="number"===typeof n?n:n.low},Ka=function t(e,n){Object(M.a)(this,t),this.length="number"===typeof e?e:e.low,this.nullCount="number"===typeof n?n:n.low};function Xa(t){for(var e,n=[],r=-1,i=-1,o=t.nodesLength();++r<o;)(e=t.nodes(r))&&(n[++i]=Ka.decode(e));return n}function Qa(t,e){for(var n,r=[],i=-1,o=-1,a=t.buffersLength();++i<a;)(n=t.buffers(i))&&(e<Xe.V4&&(n.bb_pos+=8*(i+1)),r[++o]=Ga.decode(n));return r}function Za(t,e){for(var n,r=[],i=-1,o=-1,a=t.fieldsLength();++i<a;)(n=t.fields(i))&&(r[++o]=no.decode(n,e));return r}function Ja(t,e){for(var n,r=[],i=-1,o=-1,a=t.childrenLength();++i<a;)(n=t.children(i))&&(r[++o]=no.decode(n,e));return r}function tu(t){var e=new Map;if(t)for(var n,r,i=-1,o=0|t.customMetadataLength();++i<o;)(n=t.customMetadata(i))&&null!=(r=n.key())&&e.set(r,n.value());return e}function eu(t){return new Tn(t.isSigned(),t.bitWidth())}function nu(t,e){var n=t.typeType();switch(n){case La.NONE:case La.Null:return new Sn;case La.Binary:return new Rn;case La.Utf8:return new Un;case La.Bool:return new zn;case La.List:return new Kn((e||[])[0]);case La.Struct_:return new Xn(e||[])}switch(n){case La.Int:var r=t.type(new Le.apache.arrow.flatbuf.Int);return new Tn(r.isSigned(),r.bitWidth());case La.FloatingPoint:var i=t.type(new Le.apache.arrow.flatbuf.FloatingPoint);return new Ln(i.precision());case La.Decimal:var o=t.type(new Le.apache.arrow.flatbuf.Decimal);return new Vn(o.scale(),o.precision());case La.Date:var a=t.type(new Le.apache.arrow.flatbuf.Date);return new Hn(a.unit());case La.Time:var u=t.type(new Le.apache.arrow.flatbuf.Time);return new Yn(u.unit(),u.bitWidth());case La.Timestamp:var s=t.type(new Le.apache.arrow.flatbuf.Timestamp);return new $n(s.unit(),s.timezone());case La.Interval:var c=t.type(new Le.apache.arrow.flatbuf.Interval);return new Gn(c.unit());case La.Union:var l=t.type(new Le.apache.arrow.flatbuf.Union);return new Qn(l.mode(),l.typeIdsArray()||[],e||[]);case La.FixedSizeBinary:var f=t.type(new Le.apache.arrow.flatbuf.FixedSizeBinary);return new Zn(f.byteWidth());case La.FixedSizeList:var h=t.type(new Le.apache.arrow.flatbuf.FixedSizeList);return new Jn(h.listSize(),(e||[])[0]);case La.Map:var d=t.type(new Le.apache.arrow.flatbuf.Map);return new tr((e||[])[0],d.keysSorted())}throw new Error('Unrecognized type: "'.concat(La[n],'" (').concat(n,")"))}no.encode=function(t,e){var n=-1,r=-1,i=-1,o=e.type,a=e.typeId;On.isDictionary(o)?(a=o.dictionary.typeId,i=Sa.visit(o,t),r=Sa.visit(o.dictionary,t)):r=Sa.visit(o,t);var u=(o.children||[]).map((function(e){return no.encode(t,e)})),s=Ba.createChildrenVector(t,u),c=e.metadata&&e.metadata.size>0?Ba.createCustomMetadataVector(t,sn(e.metadata).map((function(e){var n=F(e,2),r=n[0],i=n[1],o=t.createString("".concat(r)),a=t.createString("".concat(i));return Ua.startKeyValue(t),Ua.addKey(t,o),Ua.addValue(t,a),Ua.endKeyValue(t)}))):-1;e.name&&(n=t.createString(e.name));Ba.startField(t),Ba.addType(t,r),Ba.addTypeType(t,a),Ba.addChildren(t,s),Ba.addNullable(t,!!e.nullable),-1!==n&&Ba.addName(t,n);-1!==i&&Ba.addDictionary(t,i);-1!==c&&Ba.addCustomMetadata(t,c);return Ba.endField(t)},no.decode=function(t,e){var n,r,i,o,a,u;e&&(u=t.dictionary())?e.has(n=u.id().low)?(o=(o=u.indexType())?eu(o):new An,a=new rr(e.get(n),o,n,u.isOrdered()),r=new no(t.name(),a,t.nullable(),tu(t))):(o=(o=u.indexType())?eu(o):new An,e.set(n,i=nu(t,Ja(t,e))),a=new rr(i,o,n,u.isOrdered()),r=new no(t.name(),a,t.nullable(),tu(t))):(i=nu(t,Ja(t,e)),r=new no(t.name(),i,t.nullable(),tu(t)));return r||null},no.fromJSON=function(t,e){var n,r,i,o,a,u;return e&&(o=t.dictionary)?e.has(n=o.id)?(r=(r=o.indexType)?Ia(r):new An,u=new rr(e.get(n),r,n,o.isOrdered),i=new no(t.name,u,t.nullable,Aa(t.customMetadata))):(r=(r=o.indexType)?Ia(r):new An,e.set(n,a=Ca(t,ja(t,e))),u=new rr(a,r,n,o.isOrdered),i=new no(t.name,u,t.nullable,Aa(t.customMetadata))):(a=Ca(t,ja(t,e)),i=new no(t.name,a,t.nullable,Aa(t.customMetadata))),i||null},eo.encode=function(t,e){var n=e.fields.map((function(e){return no.encode(t,e)}));Pa.startFieldsVector(t,n.length);var r=Pa.createFieldsVector(t,n),i=e.metadata&&e.metadata.size>0?Pa.createCustomMetadataVector(t,sn(e.metadata).map((function(e){var n=F(e,2),r=n[0],i=n[1],o=t.createString("".concat(r)),a=t.createString("".concat(i));return Ua.startKeyValue(t),Ua.addKey(t,o),Ua.addValue(t,a),Ua.endKeyValue(t)}))):-1;Pa.startSchema(t),Pa.addFields(t,r),Pa.addEndianness(t,ru?Va.Little:Va.Big),-1!==i&&Pa.addCustomMetadata(t,i);return Pa.endSchema(t)},eo.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=Za(t,e);return new eo(n,tu(t),e)},eo.fromJSON=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return new eo(Ea(t,e),Aa(t.customMetadata),e)},Ya.encode=function(t,e){var n=e.nodes||[],r=e.buffers||[];Ha.startNodesVector(t,n.length),n.slice().reverse().forEach((function(e){return Ka.encode(t,e)}));var i=t.endVector();Ha.startBuffersVector(t,r.length),r.slice().reverse().forEach((function(e){return Ga.encode(t,e)}));var o=t.endVector();return Ha.startRecordBatch(t),Ha.addLength(t,new Na(e.length,0)),Ha.addNodes(t,i),Ha.addBuffers(t,o),Ha.endRecordBatch(t)},Ya.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xe.V4;return new Ya(t.length(),Xa(t),Qa(t,e))},Ya.fromJSON=Ta,$a.encode=function(t,e){var n=Ya.encode(t,e.data);return Wa.startDictionaryBatch(t),Wa.addId(t,new Na(e.id,0)),Wa.addIsDelta(t,e.isDelta),Wa.addData(t,n),Wa.endDictionaryBatch(t)},$a.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xe.V4;return new $a(Ya.decode(t.data(),e),t.id(),t.isDelta())},$a.fromJSON=function(t){return new $a(Ta(t.data),t.id,t.isDelta)},Ka.encode=function(t,e){return za.createFieldNode(t,new Na(e.length,0),new Na(e.nullCount,0))},Ka.decode=function(t){return new Ka(t.length(),t.nullCount())},Ga.encode=function(t,e){return Fa.createBuffer(t,new Na(e.offset,0),new Na(e.length,0))},Ga.decode=function(t){return new Ga(t.offset(),t.length())};for(var ru=function(){var t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]}(),iu=q.ByteBuffer,ou=function(t){return"Expected ".concat(Ke[t]," Message in stream, but was null or length 0.")},au=function(t){return"Header pointer of flatbuffer-encoded ".concat(Ke[t]," Message is null or length 0.")},uu=function(t,e){return"Expected to read ".concat(t," metadata bytes, but only read ").concat(e,".")},su=function(t,e){return"Expected to read ".concat(t," bytes for message body, but only read ").concat(e,".")},cu=function(){function t(e){Object(M.a)(this,t),this.source=e instanceof qo?e:new qo(e)}return B(t,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var t;return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?at:t}},{key:"throw",value:function(t){return this.source.throw(t)}},{key:"return",value:function(t){return this.source.return(t)}},{key:"readMessage",value:function(t){var e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(ou(t));return e.value}},{key:"readMessageBody",value:function(t){if(t<=0)return new Uint8Array(0);var e=Vt(this.source.read(t));if(e.byteLength<t)throw new Error(su(t,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}},{key:"readSchema",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=Ke.Schema,n=this.readMessage(e),r=n&&n.header();if(t&&!r)throw new Error(au(e));return r}},{key:"readMetadataLength",value:function(){var t=this.source.read(hu),e=t&&new iu(t),n=e&&e.readInt32(0)||0;return{done:0===n,value:n}}},{key:"readMetadata",value:function(t){var e=this.source.read(t);if(!e)return at;if(e.byteLength<t)throw new Error(uu(t,e.byteLength));return{done:!1,value:qa.decode(e)}}}]),t}(),lu=function(){function t(e,n){Object(M.a)(this,t),this.source=e instanceof Yo?e:Tt(e)?new Xo(e,n):new Yo(e)}return B(t,[{key:Symbol.asyncIterator,value:function(){return this}},{key:"next",value:function(){var t=D(P.mark((function t(){var e;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readMetadataLength();case 2:if(!(e=t.sent).done){t.next=4;break}return t.abrupt("return",at);case 4:if(t.t0=-1===e.value,!t.t0){t.next=9;break}return t.next=8,this.readMetadataLength();case 8:t.t0=(e=t.sent).done;case 9:if(!t.t0){t.next=11;break}return t.abrupt("return",at);case 11:return t.next=13,this.readMetadata(e.value);case 13:if(!(e=t.sent).done){t.next=15;break}return t.abrupt("return",at);case 15:return t.abrupt("return",e);case 16:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"throw",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.throw(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.return(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"readMessage",value:function(){var t=D(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next();case 2:if(!(n=t.sent).done){t.next=4;break}return t.abrupt("return",null);case 4:if(null==e||n.value.headerType===e){t.next=6;break}throw new Error(ou(e));case 6:return t.abrupt("return",n.value);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"readMessageBody",value:function(){var t=D(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<=0)){t.next=2;break}return t.abrupt("return",new Uint8Array(0));case 2:return t.t0=Vt,t.next=5,this.source.read(e);case 5:if(t.t1=t.sent,!((n=(0,t.t0)(t.t1)).byteLength<e)){t.next=9;break}throw new Error(su(e,n.byteLength));case 9:return t.abrupt("return",n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice());case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"readSchema",value:function(){var t=D(P.mark((function t(){var e,n,r,i,o=arguments;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]&&o[0],n=Ke.Schema,t.next=4,this.readMessage(n);case 4:if(r=t.sent,i=r&&r.header(),!e||i){t.next=8;break}throw new Error(au(n));case 8:return t.abrupt("return",i);case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"readMetadataLength",value:function(){var t=D(P.mark((function t(){var e,n,r;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.read(hu);case 2:return e=t.sent,n=e&&new iu(e),r=n&&n.readInt32(0)||0,t.abrupt("return",{done:0===r,value:r});case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"readMetadata",value:function(){var t=D(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.read(e);case 2:if(n=t.sent){t.next=5;break}return t.abrupt("return",at);case 5:if(!(n.byteLength<e)){t.next=7;break}throw new Error(uu(e,n.byteLength));case 7:return t.abrupt("return",{done:!1,value:qa.decode(n)});case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),fu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,new Uint8Array(0)))._schema=!1,r._body=[],r._batchIndex=0,r._dictionaryIndex=0,r._json=t instanceof ut?t:new ut(t),r}return B(n,[{key:"next",value:function(){var t=this._json;if(!this._schema)return this._schema=!0,{done:!1,value:qa.fromJSON(t.schema,Ke.Schema)};if(this._dictionaryIndex<t.dictionaries.length){var e=t.dictionaries[this._dictionaryIndex++];return this._body=e.data.columns,{done:!1,value:qa.fromJSON(e,Ke.DictionaryBatch)}}if(this._batchIndex<t.batches.length){var n=t.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:qa.fromJSON(n,Ke.RecordBatch)}}return this._body=[],at}},{key:"readMessageBody",value:function(t){return function t(e){return(e||[]).reduce((function(e,n){return[].concat(sn(e),sn(n.VALIDITY&&[n.VALIDITY]||[]),sn(n.TYPE&&[n.TYPE]||[]),sn(n.OFFSET&&[n.OFFSET]||[]),sn(n.DATA&&[n.DATA]||[]),sn(t(n.children)))}),[])}(this._body)}},{key:"readMessage",value:function(t){var e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(ou(t));return e.value}},{key:"readSchema",value:function(){var t=Ke.Schema,e=this.readMessage(t),n=e&&e.header();if(!e||!n)throw new Error(au(t));return n}}]),n}(cu),hu=4,du=new Uint8Array("ARROW1".length),pu=0;pu<"ARROW1".length;pu+=1)du[pu]="ARROW1".charCodeAt(pu);function yu(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=du.length;++n<r;)if(du[n]!==t[e+n])return!1;return!0}var vu=du.length,bu=vu+hu,gu=2*vu+hu,mu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t;return Object(M.a)(this,n),(t=e.call(this))._byteLength=0,t._nodes=[],t._buffers=[],t._bufferRegions=[],t}return B(n,[{key:"visit",value:function(t){if(!On.isDictionary(t.type)){var e=t.data,r=t.length,i=t.nullCount;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");On.isNull(t.type)||_u.call(this,i<=0?new Uint8Array(0):en(e.offset,r,e.nullBitmap)),this.nodes.push(new Ka(r,i))}return Me(Object(De.a)(n.prototype),"visit",this).call(this,t)}},{key:"visitNull",value:function(t){return this}},{key:"visitDictionary",value:function(t){return this.visit(t.indices)}},{key:"nodes",get:function(){return this._nodes}},{key:"buffers",get:function(){return this._buffers}},{key:"byteLength",get:function(){return this._byteLength}},{key:"bufferRegions",get:function(){return this._bufferRegions}}],[{key:"assemble",value:function(){for(var t=new n,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=Qi(wc,r),a=t.visitMany(o),u=F(a,1),s=u[0],c=void 0===s?t:s;return c}}]),n}(cn);function _u(t){var e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Ga(this._byteLength,e)),this._byteLength+=e,this}function wu(t){return _u.call(this,t.values.subarray(0,t.length*t.stride))}function ku(t){var e=t.length,n=t.values,r=t.valueOffsets,i=r[0],o=r[e],a=Math.min(o-i,n.byteLength-i);return _u.call(this,be(-r[0],e,r)),_u.call(this,n.subarray(i,i+a)),this}function xu(t){var e=t.length,n=t.valueOffsets;return n&&_u.call(this,be(n[0],e,n)),this.visit(t.getChildAt(0))}function Ou(t){return this.visitMany(t.type.children.map((function(e,n){return t.getChildAt(n)})).filter(Boolean))[0]}mu.prototype.visitBool=function(t){var e;return t.nullCount>=t.length?_u.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?_u.call(this,en(t.offset,t.length,e)):_u.call(this,nn(t))},mu.prototype.visitInt=wu,mu.prototype.visitFloat=wu,mu.prototype.visitUtf8=ku,mu.prototype.visitBinary=ku,mu.prototype.visitFixedSizeBinary=wu,mu.prototype.visitDate=wu,mu.prototype.visitTimestamp=wu,mu.prototype.visitTime=wu,mu.prototype.visitDecimal=wu,mu.prototype.visitList=xu,mu.prototype.visitStruct=Ou,mu.prototype.visitUnion=function(t){var e=t.type,n=t.length,r=t.typeIds,i=t.valueOffsets;if(_u.call(this,r),e.mode===$e.Sparse)return Ou.call(this,t);if(e.mode===$e.Dense){if(t.offset<=0)return _u.call(this,i),Ou.call(this,t);for(var o,a,u=r.reduce((function(t,e){return Math.max(t,e)}),r[0]),s=new Int32Array(u+1),c=new Int32Array(u+1).fill(-1),l=new Int32Array(n),f=be(-i[0],n,i),h=-1;++h<n;)-1===(a=c[o=r[h]])&&(a=c[o]=f[o]),l[h]=f[h]-a,++s[o];_u.call(this,l);for(var d,p=-1,y=e.children.length;++p<y;)if(d=t.getChildAt(p)){var v=e.typeIds[p],b=Math.min(n,s[v]);this.visit(d.slice(c[v],b))}}return this},mu.prototype.visitInterval=wu,mu.prototype.visitFixedSizeList=xu,mu.prototype.visitMap=xu;var Su=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this))._position=0,r._started=!1,r._sink=new Wo,r._schema=null,r._dictionaryBlocks=[],r._recordBatchBlocks=[],r._dictionaryDeltaOffsets=new Map,_t(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),r._autoDestroy="boolean"!==typeof t.autoDestroy||t.autoDestroy,r._writeLegacyIpcFormat="boolean"===typeof t.writeLegacyIpcFormat&&t.writeLegacyIpcFormat,r}return B(n,[{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._sink.toString(t)}},{key:"toUint8Array",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._sink.toUint8Array(t)}},{key:"writeAll",value:function(t){var e=this;return wt(t)?t.then((function(t){return e.writeAll(t)})):xt(t)?Au(this,t):ju(this,t)}},{key:Symbol.asyncIterator,value:function(){return this._sink[Symbol.asyncIterator]()}},{key:"toDOMStream",value:function(t){return this._sink.toDOMStream(t)}},{key:"toNodeStream",value:function(t){return this._sink.toNodeStream(t)}},{key:"close",value:function(){return this.reset()._sink.close()}},{key:"abort",value:function(t){return this.reset()._sink.abort(t)}},{key:"finish",value:function(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._sink,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t===this._sink||t instanceof Wo?this._sink=t:(this._sink=new Wo,t&&jt(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&It(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,e&&e.compareTo(this._schema)||(null===e?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}},{key:"write",value:function(t){var e=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null===t||void 0===t)return this.finish()&&void 0;if(t instanceof _c&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof wc&&!(e=t.schema))return this.finish()&&void 0;if(e&&!e.compareTo(this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof wc?t instanceof kc||this._writeRecordBatch(t):t instanceof _c?this.writeAll(t.chunks):kt(t)&&this.writeAll(t)}},{key:"_writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=e-1,r=qa.encode(t),i=r.byteLength,o=this._writeLegacyIpcFormat?4:8,a=i+o+n&~n,u=a-i-o;return t.headerType===Ke.RecordBatch?this._recordBatchBlocks.push(new Ho(a,t.bodyLength,this._position)):t.headerType===Ke.DictionaryBatch&&this._dictionaryBlocks.push(new Ho(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-o)),i>0&&this._write(r),this._writePadding(u)}},{key:"_write",value:function(t){if(this._started){var e=Vt(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}},{key:"_writeSchema",value:function(t){return this._writeMessage(qa.from(t))}},{key:"_writeFooter",value:function(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}},{key:"_writeMagic",value:function(){return this._write(du)}},{key:"_writePadding",value:function(t){return t>0?this._write(new Uint8Array(t)):this}},{key:"_writeRecordBatch",value:function(t){var e=mu.assemble(t),n=e.byteLength,r=e.nodes,i=e.bufferRegions,o=e.buffers,a=new Ya(t.length,r,i),u=qa.from(a,n);return this._writeDictionaries(t)._writeMessage(u)._writeBodyBuffers(o)}},{key:"_writeDictionaryBatch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0));var r=mu.assemble(t),i=r.byteLength,o=r.nodes,a=r.bufferRegions,u=r.buffers,s=new Ya(t.length,o,a),c=new $a(s,e,n),l=qa.from(c,i);return this._writeMessage(l)._writeBodyBuffers(u)}},{key:"_writeBodyBuffers",value:function(t){for(var e,n,r,i=-1,o=t.length;++i<o;)(e=t[i])&&(n=e.byteLength)>0&&(this._write(e),(r=(n+7&-8)-n)>0&&this._writePadding(r));return this}},{key:"_writeDictionaries",value:function(t){var e,n=C(t.dictionaries);try{for(n.s();!(e=n.n()).done;){var r=F(e.value,2),i=r[0],o=r[1],a=this._dictionaryDeltaOffsets.get(i)||0;if(0===a||(o=o.slice(a)).length>0){var u,s=C("chunks"in o?o.chunks:[o]);try{for(s.s();!(u=s.n()).done;){var c=u.value;this._writeDictionaryBatch(c,i,a>0),a+=c.length}}catch(l){s.e(l)}finally{s.f()}}}}catch(l){n.e(l)}finally{n.f()}return this}},{key:"closed",get:function(){return this._sink.closed}}],[{key:"throughNode",value:function(t){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(t,e){throw new Error('"throughDOM" not available in this environment')}}]),n}(st),Tu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,null,[{key:"writeAll",value:function(t,e){var r=new n(e);return wt(t)?t.then((function(t){return r.writeAll(t)})):xt(t)?Au(r,t):ju(r,t)}}]),n}(Su),Eu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t;return Object(M.a)(this,n),(t=e.call(this))._autoDestroy=!0,t}return B(n,[{key:"_writeSchema",value:function(t){return this._writeMagic()._writePadding(2)}},{key:"_writeFooter",value:function(t){var e=zo.encode(new zo(t,Xe.V4,this._recordBatchBlocks,this._dictionaryBlocks));return Me(Object(De.a)(n.prototype),"_writeFooter",this).call(this,t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}}],[{key:"writeAll",value:function(t){var e=new n;return wt(t)?t.then((function(t){return e.writeAll(t)})):xt(t)?Au(e,t):ju(e,t)}}]),n}(Su);function ju(t,e){var n=e;e instanceof _c&&(n=e.chunks,t.reset(void 0,e.schema));var r,i=C(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.write(o)}}catch(a){i.e(a)}finally{i.f()}return t.finish()}function Au(t,e){return Iu.apply(this,arguments)}function Iu(){return(Iu=D(P.mark((function t(e,n){var r,i,o,a,u,s,c;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=!0,i=!1,t.prev=2,a=H(n);case 4:return t.next=6,a.next();case 6:return u=t.sent,r=u.done,t.next=10,u.value;case 10:if(s=t.sent,r){t.next=17;break}c=s,e.write(c);case 14:r=!0,t.next=4;break;case 17:t.next=23;break;case 19:t.prev=19,t.t0=t.catch(2),i=!0,o=t.t0;case 23:if(t.prev=23,t.prev=24,r||null==a.return){t.next=28;break}return t.next=28,a.return();case 28:if(t.prev=28,!i){t.next=31;break}throw o;case 31:return t.finish(28);case 32:return t.finish(23);case 33:return t.abrupt("return",e.finish());case 34:case"end":return t.stop()}}),t,null,[[2,19,23,33],[24,,28,32]])})))).apply(this,arguments)}var Cu=new Uint8Array(0),Nu=function(t){return[Cu,Cu,new Uint8Array(t),Cu]};function Du(t,e){for(var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.reduce((function(t,e){return Math.max(t,e.length)}),0),o=-1,a=e.length,u=sn(t.fields),s=[],c=(i+63&-64)>>3;++o<a;)(n=e[o])&&n.length===i?s[o]=n:((r=u[o]).nullable||(u[o]=u[o].clone({nullable:!0})),s[o]=n?n._changeLengthAndBackfillNullBitmap(i):or.new(r.type,0,i,i,Nu(c)));return[new eo(u),i,s]}function Mu(t){return Lu(new eo(t.map((function(t){return t.field}))),t)}function Lu(t,e){return function(t,e){var n,r=sn(t.fields),i=[],o={numBatches:e.reduce((function(t,e){return Math.max(t,e.length)}),0)},a=0,u=0,s=-1,c=e.length,l=[];for(;o.numBatches-- >0;){for(u=Number.POSITIVE_INFINITY,s=-1;++s<c;)l[s]=n=e[s].shift(),u=Math.min(u,n?n.length:u);isFinite(u)&&(l=Bu(r,u,l,e,o),u>0&&(i[a++]=[u,l.slice()]))}return[t=new eo(r,t.metadata),i.map((function(e){return Br(wc,[t].concat(sn(e)))}))]}(t,e.map((function(t){return t instanceof Ui?t.chunks.map((function(t){return t.data})):[t.data]})))}function Bu(t,e,n,r,i){for(var o,a,u=0,s=-1,c=r.length,l=(e+63&-64)>>3;++s<c;)(o=n[s])&&(u=o.length)>=e?u===e?n[s]=o:(n[s]=o.slice(0,e),o=o.slice(e,u-e),i.numBatches=Math.max(i.numBatches,r[s].unshift(o))):((a=t[s]).nullable||(t[s]=a.clone({nullable:!0})),n[s]=o?o._changeLengthAndBackfillNullBitmap(e):or.new(a.type,0,e,e,Nu(l)));return n}function Pu(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var Fu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this))._children=r,i.numChildren=t.childData.length,i._bindDataAccessors(i.data=t),i}return B(n,[{key:"clone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._children;return ze.new(t,e)}},{key:"concat",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ui.concat.apply(Ui,[this].concat(e))}},{key:"slice",value:function(t,e){return Mi(this,t,e,this._sliceInternal)}},{key:"isValid",value:function(t){if(this.nullCount>0){var e=this.offset+t;return 0!==(this.nullBitmap[e>>3]&1<<e%8)}return!0}},{key:"getChildAt",value:function(t){return t<0||t>=this.numChildren?null:(this._children||(this._children=[]))[t]||(this._children[t]=ze.new(this.data.childData[t]))}},{key:"toJSON",value:function(){return sn(this)}},{key:"_sliceInternal",value:function(t,e,n){return t.clone(t.data.slice(e,n-e),null)}},{key:"_bindDataAccessors",value:function(t){}},{key:"type",get:function(){return this.data.type}},{key:"typeId",get:function(){return this.data.typeId}},{key:"length",get:function(){return this.data.length}},{key:"offset",get:function(){return this.data.offset}},{key:"stride",get:function(){return this.data.stride}},{key:"nullCount",get:function(){return this.data.nullCount}},{key:"byteLength",get:function(){return this.data.byteLength}},{key:"VectorName",get:function(){return"".concat(Ve[this.typeId],"Vector")}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"values",get:function(){return this.data.values}},{key:"typeIds",get:function(){return this.data.typeIds}},{key:"nullBitmap",get:function(){return this.data.nullBitmap}},{key:"valueOffsets",get:function(){return this.data.valueOffsets}},{key:Symbol.toStringTag,get:function(){return"".concat(this.VectorName,"<").concat(this.type[Symbol.toStringTag],">")}}]),n}(ze);Fu.prototype[Symbol.isConcatSpreadable]=!0;var Ru=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"asUtf8",value:function(){return ze.new(this.data.clone(new Un))}}]),n}(Fu),Uu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,null,[{key:"from",value:function(t){return mc((function(){return new zn}),t)}}]),n}(Fu),zu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,null,[{key:"from",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 2===e.length?mc((function(){return e[1]===We.DAY?new Wn:new qn}),e[0]):mc((function(){return new qn}),e[0])}}]),n}(Fu),Vu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(zu),Hu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(zu),Wu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Fu),qu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t)).indices=ze.new(t.clone(r.type.indices)),r}return B(n,[{key:"reverseLookup",value:function(t){return this.dictionary.indexOf(t)}},{key:"getKey",value:function(t){return this.indices.get(t)}},{key:"getValue",value:function(t){return this.dictionary.get(t)}},{key:"setKey",value:function(t,e){return this.indices.set(t,e)}},{key:"setValue",value:function(t,e){return this.dictionary.set(t,e)}},{key:"dictionary",get:function(){return this.data.dictionary}}],[{key:"from",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(3===e.length){var r=e[0],i=e[1],o=e[2],a=new rr(r.type,i,null,null);return ze.new(or.Dictionary(a,0,o.length,0,null,o,r))}return mc((function(){return e[0].type}),e[0])}}]),n}(Fu);qu.prototype.indices=null;var Yu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Fu),$u=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Fu),Gu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,null,[{key:"from",value:function(t){var e=ts(this);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){var n=Ju(t.constructor)||e;if(null===e&&(e=n),e&&e===n){var r=new e,i=t.byteLength/r.ArrayType.BYTES_PER_ELEMENT;if(!Zu(e,t.constructor))return ze.new(or.Float(r,0,i,0,null,t))}}if(e)return mc((function(){return new e}),t);if(t instanceof DataView||t instanceof ArrayBuffer)throw new TypeError("Cannot infer float type from instance of ".concat(t.constructor.name));throw new TypeError("Unrecognized FloatVector input")}}]),n}(Fu),Ku=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toFloat64Array",value:function(){return new Float64Array(this)}}]),n}(Gu),Xu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Gu),Qu=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Gu),Zu=function(t,e){return t===Bn&&e!==Uint16Array},Ju=function(t){switch(t){case Uint16Array:return Bn;case Float32Array:return Pn;case Float64Array:return Fn;default:return null}},ts=function(t){switch(t){case Ku:return Bn;case Xu:return Pn;case Qu:return Fn;default:return null}},es=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Fu),ns=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(es),rs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(es),is=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,null,[{key:"from",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=void 0!==i&&i,a=ys(this,o);if(r instanceof ArrayBuffer||ArrayBuffer.isView(r)){var u=ps(r.constructor,o)||a;if(null===a&&(a=u),a&&a===u){var s=new a,c=r.byteLength/s.ArrayType.BYTES_PER_ELEMENT;return ds(a,r.constructor)&&(c*=.5),ze.new(or.Int(s,0,c,0,null,r))}}if(a)return mc((function(){return new a}),r);if(r instanceof DataView||r instanceof ArrayBuffer)throw new TypeError("Cannot infer integer type from instance of ".concat(r.constructor.name));throw new TypeError("Unrecognized IntVector input")}}]),n}(Fu),os=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(is),as=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(is),us=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(is),ss=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"toBigInt64Array",value:function(){return zt(this.values)}},{key:"values64",get:function(){return this._values64||(this._values64=this.toBigInt64Array())}}]),n}(is),cs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(is),ls=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(is),fs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(is),hs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"toBigUint64Array",value:function(){return qt(this.values)}},{key:"values64",get:function(){return this._values64||(this._values64=this.toBigUint64Array())}}]),n}(is),ds=function(t,e){return(t===In||t===Mn)&&(e===Int32Array||e===Uint32Array)},ps=function(t,e){switch(t){case Int8Array:return En;case Int16Array:return jn;case Int32Array:return e?In:An;case pt:return In;case Uint8Array:return Cn;case Uint16Array:return Nn;case Uint32Array:return e?Mn:Dn;case vt:return Mn;default:return null}},ys=function(t,e){switch(t){case os:return En;case as:return jn;case us:return e?In:An;case ss:return In;case cs:return Cn;case ls:return Nn;case fs:return e?Mn:Dn;case hs:return Mn;default:return null}},vs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Fu),bs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"asList",value:function(){var t=this.type.children[0];return ze.new(this.data.clone(new Kn(t)))}},{key:"bind",value:function(t){var e=this.getChildAt(0),n=this.valueOffsets,r=n[t],i=n[t+1];return new ji(e.slice(r,i))}}]),n}(Fu),gs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Fu),ms=Symbol.for("rowIndex"),_s=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"bind",value:function(t){var e=this._row||(this._row=new Ai(this)),n=Object.create(e);return n[ms]=t,n}}]),n}(Fu),ws=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Fu),ks=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ws),xs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ws),Os=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ws),Ss=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(ws),Ts=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Fu),Es=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Ts),js=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Ts),As=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Ts),Is=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Ts),Cs=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"typeIdToChildIndex",get:function(){return this.data.type.typeIdToChildIndex}}]),n}(Fu),Ns=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"valueOffsets",get:function(){return this.data.valueOffsets}}]),n}(Cs),Ds=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(Cs),Ms=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"asBinary",value:function(){return ze.new(this.data.clone(new Rn))}}],[{key:"from",value:function(t){return mc((function(){return new Un}),t)}}]),n}(Fu);function Ls(t){return function(){return t(this)}}function Bs(t){return function(e,n){return t(this,e,n)}}var Ps=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(cn),Fs=function(t,e){return 4294967296*t[e+1]+(t[e]>>>0)},Rs=function(t){return new Date(t)},Us=function(t,e,n){var r=e[n],i=e[n+1];return null!=r&&null!=i?t.subarray(r,i):null},zs=function(t,e){return function(t,e){return Rs(function(t,e){return 864e5*t[e]}(t,e))}(t.values,e)},Vs=function(t,e){return function(t,e){return Rs(Fs(t,e))}(t.values,2*e)},Hs=function(t,e){var n=t.stride;return t.values[n*e]},Ws=function(t,e){var n=t.stride;return jr(t.values[n*e])},qs=function(t,e){var n=t.stride,r=t.values,i=t.type;return $r.new(r.subarray(n*e,n*(e+1)),i.isSigned)},Ys=function(t,e){var n=t.values;return 1e3*Fs(n,2*e)},$s=function(t,e){var n=t.values;return Fs(n,2*e)},Gs=function(t,e){return function(t,e){return t[e+1]/1e3*4294967296+(t[e]>>>0)/1e3}(t.values,2*e)},Ks=function(t,e){return function(t,e){return t[e+1]/1e6*4294967296+(t[e]>>>0)/1e6}(t.values,2*e)},Xs=function(t,e){return t.values[t.stride*e]},Qs=function(t,e){return t.values[t.stride*e]},Zs=function(t,e){var n=t.values;return $r.signed(n.subarray(2*e,2*(e+1)))},Js=function(t,e){var n=t.values;return $r.signed(n.subarray(2*e,2*(e+1)))},tc=function(t,e){var n=t.typeIdToChildIndex[t.typeIds[e]],r=t.getChildAt(n);return r?r.get(t.valueOffsets[e]):null},ec=function(t,e){var n=t.typeIdToChildIndex[t.typeIds[e]],r=t.getChildAt(n);return r?r.get(e):null},nc=function(t,e){return t.values.subarray(2*e,2*(e+1))},rc=function(t,e){var n=t.values[e],r=new Int32Array(2);return r[0]=n/12|0,r[1]=n%12|0,r};Ps.prototype.visitNull=function(t,e){return null},Ps.prototype.visitBool=function(t,e){var n=t.offset+e;return 0!==(t.values[n>>3]&1<<n%8)},Ps.prototype.visitInt=function(t,e){return t.type.bitWidth<64?Hs(t,e):qs(t,e)},Ps.prototype.visitInt8=Hs,Ps.prototype.visitInt16=Hs,Ps.prototype.visitInt32=Hs,Ps.prototype.visitInt64=qs,Ps.prototype.visitUint8=Hs,Ps.prototype.visitUint16=Hs,Ps.prototype.visitUint32=Hs,Ps.prototype.visitUint64=qs,Ps.prototype.visitFloat=function(t,e){return t.type.precision!==Ye.HALF?Hs(t,e):Ws(t,e)},Ps.prototype.visitFloat16=Ws,Ps.prototype.visitFloat32=Hs,Ps.prototype.visitFloat64=Hs,Ps.prototype.visitUtf8=function(t,e){var n=t.values,r=t.valueOffsets,i=Us(n,r,e);return null!==i?nt(i):null},Ps.prototype.visitBinary=function(t,e){var n=t.values,r=t.valueOffsets;return Us(n,r,e)},Ps.prototype.visitFixedSizeBinary=function(t,e){var n=t.stride;return t.values.subarray(n*e,n*(e+1))},Ps.prototype.visitDate=function(t,e){return t.type.unit===We.DAY?zs(t,e):Vs(t,e)},Ps.prototype.visitDateDay=zs,Ps.prototype.visitDateMillisecond=Vs,Ps.prototype.visitTimestamp=function(t,e){switch(t.type.unit){case qe.SECOND:return Ys(t,e);case qe.MILLISECOND:return $s(t,e);case qe.MICROSECOND:return Gs(t,e);case qe.NANOSECOND:return Ks(t,e)}},Ps.prototype.visitTimestampSecond=Ys,Ps.prototype.visitTimestampMillisecond=$s,Ps.prototype.visitTimestampMicrosecond=Gs,Ps.prototype.visitTimestampNanosecond=Ks,Ps.prototype.visitTime=function(t,e){switch(t.type.unit){case qe.SECOND:return Xs(t,e);case qe.MILLISECOND:return Qs(t,e);case qe.MICROSECOND:return Zs(t,e);case qe.NANOSECOND:return Js(t,e)}},Ps.prototype.visitTimeSecond=Xs,Ps.prototype.visitTimeMillisecond=Qs,Ps.prototype.visitTimeMicrosecond=Zs,Ps.prototype.visitTimeNanosecond=Js,Ps.prototype.visitDecimal=function(t,e){var n=t.values;return $r.decimal(n.subarray(4*e,4*(e+1)))},Ps.prototype.visitList=function(t,e){var n=t.getChildAt(0),r=t.valueOffsets,i=t.stride;return n.slice(r[e*i],r[e*i+1])},Ps.prototype.visitStruct=function(t,e){return t.bind(e)},Ps.prototype.visitUnion=function(t,e){return t.type.mode===$e.Dense?tc(t,e):ec(t,e)},Ps.prototype.visitDenseUnion=tc,Ps.prototype.visitSparseUnion=ec,Ps.prototype.visitDictionary=function(t,e){return t.getValue(t.getKey(e))},Ps.prototype.visitInterval=function(t,e){return t.type.unit===Ge.DAY_TIME?nc(t,e):rc(t,e)},Ps.prototype.visitIntervalDayTime=nc,Ps.prototype.visitIntervalYearMonth=rc,Ps.prototype.visitFixedSizeList=function(t,e){var n=t.getChildAt(0),r=t.stride;return n.slice(e*r,(e+1)*r)},Ps.prototype.visitMap=function(t,e){return t.bind(e)};var ic=new Ps,oc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(cn);function ac(t,e,n){if(void 0===e)return-1;if(null===e)return function(t,e){var n=t.nullBitmap;if(!n||t.nullCount<=0)return-1;var r,i=0,o=C(rn(n,t.data.offset+(e||0),t.length,n,Ze));try{for(o.s();!(r=o.n()).done;){if(!r.value)return i;++i}}catch(a){o.e(a)}finally{o.f()}return-1}(t,n);for(var r=Pi(e),i=(n||0)-1,o=t.length;++i<o;)if(r(t.get(i)))return i;return-1}function uc(t,e,n){for(var r=Pi(e),i=(n||0)-1,o=t.length;++i<o;)if(r(t.get(i)))return i;return-1}oc.prototype.visitNull=function(t,e){return null===e&&t.length>0?0:-1},oc.prototype.visitBool=ac,oc.prototype.visitInt=ac,oc.prototype.visitInt8=ac,oc.prototype.visitInt16=ac,oc.prototype.visitInt32=ac,oc.prototype.visitInt64=ac,oc.prototype.visitUint8=ac,oc.prototype.visitUint16=ac,oc.prototype.visitUint32=ac,oc.prototype.visitUint64=ac,oc.prototype.visitFloat=ac,oc.prototype.visitFloat16=ac,oc.prototype.visitFloat32=ac,oc.prototype.visitFloat64=ac,oc.prototype.visitUtf8=ac,oc.prototype.visitBinary=ac,oc.prototype.visitFixedSizeBinary=ac,oc.prototype.visitDate=ac,oc.prototype.visitDateDay=ac,oc.prototype.visitDateMillisecond=ac,oc.prototype.visitTimestamp=ac,oc.prototype.visitTimestampSecond=ac,oc.prototype.visitTimestampMillisecond=ac,oc.prototype.visitTimestampMicrosecond=ac,oc.prototype.visitTimestampNanosecond=ac,oc.prototype.visitTime=ac,oc.prototype.visitTimeSecond=ac,oc.prototype.visitTimeMillisecond=ac,oc.prototype.visitTimeMicrosecond=ac,oc.prototype.visitTimeNanosecond=ac,oc.prototype.visitDecimal=ac,oc.prototype.visitList=ac,oc.prototype.visitStruct=ac,oc.prototype.visitUnion=ac,oc.prototype.visitDenseUnion=uc,oc.prototype.visitSparseUnion=uc,oc.prototype.visitDictionary=ac,oc.prototype.visitInterval=ac,oc.prototype.visitIntervalDayTime=ac,oc.prototype.visitIntervalYearMonth=ac,oc.prototype.visitFixedSizeList=ac,oc.prototype.visitMap=ac;var sc=new oc,cc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(cn);function lc(t){if(t.nullCount>0)return function(t){var e=ic.getVisitFn(t);return rn(t.nullBitmap,t.offset,t.length,t,(function(t,n,r,i){return 0!==(r&1<<i)?e(t,n):null}))}(t);var e=t.type,n=t.typeId,r=t.length;return 1===t.stride&&(n===Ve.Timestamp||n===Ve.Int&&64!==e.bitWidth||n===Ve.Time&&64!==e.bitWidth||n===Ve.Float&&e.precision>0)?t.values.subarray(0,r)[Symbol.iterator]():P.mark((function e(n){var i;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=-1;case 1:if(!(++i<r)){e.next=6;break}return e.next=4,n(t,i);case 4:e.next=1;break;case 6:case"end":return e.stop()}}),e)}))(ic.getVisitFn(t))}cc.prototype.visitNull=lc,cc.prototype.visitBool=lc,cc.prototype.visitInt=lc,cc.prototype.visitInt8=lc,cc.prototype.visitInt16=lc,cc.prototype.visitInt32=lc,cc.prototype.visitInt64=lc,cc.prototype.visitUint8=lc,cc.prototype.visitUint16=lc,cc.prototype.visitUint32=lc,cc.prototype.visitUint64=lc,cc.prototype.visitFloat=lc,cc.prototype.visitFloat16=lc,cc.prototype.visitFloat32=lc,cc.prototype.visitFloat64=lc,cc.prototype.visitUtf8=lc,cc.prototype.visitBinary=lc,cc.prototype.visitFixedSizeBinary=lc,cc.prototype.visitDate=lc,cc.prototype.visitDateDay=lc,cc.prototype.visitDateMillisecond=lc,cc.prototype.visitTimestamp=lc,cc.prototype.visitTimestampSecond=lc,cc.prototype.visitTimestampMillisecond=lc,cc.prototype.visitTimestampMicrosecond=lc,cc.prototype.visitTimestampNanosecond=lc,cc.prototype.visitTime=lc,cc.prototype.visitTimeSecond=lc,cc.prototype.visitTimeMillisecond=lc,cc.prototype.visitTimeMicrosecond=lc,cc.prototype.visitTimeNanosecond=lc,cc.prototype.visitDecimal=lc,cc.prototype.visitList=lc,cc.prototype.visitStruct=lc,cc.prototype.visitUnion=lc,cc.prototype.visitDenseUnion=lc,cc.prototype.visitSparseUnion=lc,cc.prototype.visitDictionary=lc,cc.prototype.visitInterval=lc,cc.prototype.visitIntervalDayTime=lc,cc.prototype.visitIntervalYearMonth=lc,cc.prototype.visitFixedSizeList=lc,cc.prototype.visitMap=lc;var fc=new cc,hc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return n}(cn);function dc(t){var e=t.type,n=t.length,r=t.stride;switch(e.typeId){case Ve.Int:case Ve.Float:case Ve.Decimal:case Ve.Time:case Ve.Timestamp:return t.values.subarray(0,n*r)}return sn(fc.visit(t))}hc.prototype.visitNull=dc,hc.prototype.visitBool=dc,hc.prototype.visitInt=dc,hc.prototype.visitInt8=dc,hc.prototype.visitInt16=dc,hc.prototype.visitInt32=dc,hc.prototype.visitInt64=dc,hc.prototype.visitUint8=dc,hc.prototype.visitUint16=dc,hc.prototype.visitUint32=dc,hc.prototype.visitUint64=dc,hc.prototype.visitFloat=dc,hc.prototype.visitFloat16=dc,hc.prototype.visitFloat32=dc,hc.prototype.visitFloat64=dc,hc.prototype.visitUtf8=dc,hc.prototype.visitBinary=dc,hc.prototype.visitFixedSizeBinary=dc,hc.prototype.visitDate=dc,hc.prototype.visitDateDay=dc,hc.prototype.visitDateMillisecond=dc,hc.prototype.visitTimestamp=dc,hc.prototype.visitTimestampSecond=dc,hc.prototype.visitTimestampMillisecond=dc,hc.prototype.visitTimestampMicrosecond=dc,hc.prototype.visitTimestampNanosecond=dc,hc.prototype.visitTime=dc,hc.prototype.visitTimeSecond=dc,hc.prototype.visitTimeMillisecond=dc,hc.prototype.visitTimeMicrosecond=dc,hc.prototype.visitTimeNanosecond=dc,hc.prototype.visitDecimal=dc,hc.prototype.visitList=dc,hc.prototype.visitStruct=dc,hc.prototype.visitUnion=dc,hc.prototype.visitDenseUnion=dc,hc.prototype.visitSparseUnion=dc,hc.prototype.visitDictionary=dc,hc.prototype.visitInterval=dc,hc.prototype.visitIntervalDayTime=dc,hc.prototype.visitIntervalYearMonth=dc,hc.prototype.visitFixedSizeList=dc,hc.prototype.visitMap=dc;var pc=new hc,yc=function(t,e){return t+e},vc=function(t){return"Cannot compute the byte width of variable-width column ".concat(t)},bc=new(function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"visitNull",value:function(t){return 0}},{key:"visitInt",value:function(t){return t.bitWidth/8}},{key:"visitFloat",value:function(t){return t.ArrayType.BYTES_PER_ELEMENT}},{key:"visitBinary",value:function(t){throw new Error(vc(t))}},{key:"visitUtf8",value:function(t){throw new Error(vc(t))}},{key:"visitBool",value:function(t){return 1/8}},{key:"visitDecimal",value:function(t){return 16}},{key:"visitDate",value:function(t){return 4*(t.unit+1)}},{key:"visitTime",value:function(t){return t.bitWidth/8}},{key:"visitTimestamp",value:function(t){return t.unit===qe.SECOND?4:8}},{key:"visitInterval",value:function(t){return 4*(t.unit+1)}},{key:"visitList",value:function(t){throw new Error(vc(t))}},{key:"visitStruct",value:function(t){return this.visitFields(t.children).reduce(yc,0)}},{key:"visitUnion",value:function(t){return this.visitFields(t.children).reduce(yc,0)}},{key:"visitFixedSizeBinary",value:function(t){return t.byteWidth}},{key:"visitFixedSizeList",value:function(t){return t.listSize*this.visitFields(t.children).reduce(yc,0)}},{key:"visitMap",value:function(t){return this.visitFields(t.children).reduce(yc,0)}},{key:"visitDictionary",value:function(t){return this.visit(t.indices)}},{key:"visitFields",value:function(t){var e=this;return(t||[]).map((function(t){return e.visit(t.type)}))}},{key:"visitSchema",value:function(t){return this.visitFields(t.fields).reduce(yc,0)}}]),n}(cn)),gc=new(function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"visitNull",value:function(){return gs}},{key:"visitBool",value:function(){return Uu}},{key:"visitInt",value:function(){return is}},{key:"visitInt8",value:function(){return os}},{key:"visitInt16",value:function(){return as}},{key:"visitInt32",value:function(){return us}},{key:"visitInt64",value:function(){return ss}},{key:"visitUint8",value:function(){return cs}},{key:"visitUint16",value:function(){return ls}},{key:"visitUint32",value:function(){return fs}},{key:"visitUint64",value:function(){return hs}},{key:"visitFloat",value:function(){return Gu}},{key:"visitFloat16",value:function(){return Ku}},{key:"visitFloat32",value:function(){return Xu}},{key:"visitFloat64",value:function(){return Qu}},{key:"visitUtf8",value:function(){return Ms}},{key:"visitBinary",value:function(){return Ru}},{key:"visitFixedSizeBinary",value:function(){return Yu}},{key:"visitDate",value:function(){return zu}},{key:"visitDateDay",value:function(){return Vu}},{key:"visitDateMillisecond",value:function(){return Hu}},{key:"visitTimestamp",value:function(){return ws}},{key:"visitTimestampSecond",value:function(){return ks}},{key:"visitTimestampMillisecond",value:function(){return xs}},{key:"visitTimestampMicrosecond",value:function(){return Os}},{key:"visitTimestampNanosecond",value:function(){return Ss}},{key:"visitTime",value:function(){return Ts}},{key:"visitTimeSecond",value:function(){return Es}},{key:"visitTimeMillisecond",value:function(){return js}},{key:"visitTimeMicrosecond",value:function(){return As}},{key:"visitTimeNanosecond",value:function(){return Is}},{key:"visitDecimal",value:function(){return Wu}},{key:"visitList",value:function(){return vs}},{key:"visitStruct",value:function(){return _s}},{key:"visitUnion",value:function(){return Cs}},{key:"visitDenseUnion",value:function(){return Ns}},{key:"visitSparseUnion",value:function(){return Ds}},{key:"visitDictionary",value:function(){return qu}},{key:"visitInterval",value:function(){return es}},{key:"visitIntervalDayTime",value:function(){return ns}},{key:"visitIntervalYearMonth",value:function(){return rs}},{key:"visitFixedSizeList",value:function(){return $u}},{key:"visitMap",value:function(){return bs}}]),n}(cn));function mc(t,e){if(kt(e))return ze.from({nullValues:[null,void 0],type:t(),values:e});if(xt(e))return ze.from({nullValues:[null,void 0],type:t(),values:e});var n=Ne({},e),r=n.values,i=void 0===r?[]:r,o=n.type,a=void 0===o?t():o,u=n.nullValues,s=void 0===u?[null,void 0]:u;return kt(i),ze.from(Ne(Ne({nullValues:s},e),{},{type:a}))}ze.new=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Br(gc.getVisitFn(t)(),[t].concat(n))},ze.from=function(t){var e=Ne({nullValues:[null,void 0]},t),n=e.values,r=void 0===n?[]:n,i=Pu(e,["values"]);if(kt(r)){var o=sn(yr.throughIterable(i)(r));return 1===o.length?o[0]:Ui.concat(o)}return function(){var t=D(P.mark((function t(e){var n,o,a,u,s,c,l,f;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=yr.throughAsyncIterable(i),o=!0,a=!1,t.prev=3,s=H(n(r));case 5:return t.next=7,s.next();case 7:return c=t.sent,o=c.done,t.next=11,c.value;case 11:if(l=t.sent,o){t.next=18;break}f=l,e.push(f);case 15:o=!0,t.next=5;break;case 18:t.next=24;break;case 20:t.prev=20,t.t0=t.catch(3),a=!0,u=t.t0;case 24:if(t.prev=24,t.prev=25,o||null==s.return){t.next=29;break}return t.next=29,s.return();case 29:if(t.prev=29,!a){t.next=32;break}throw u;case 32:return t.finish(29);case 33:return t.finish(24);case 34:return t.abrupt("return",1===e.length?e[0]:Ui.concat(e));case 35:case"end":return t.stop()}}),t,null,[[3,20,24,34],[25,,29,33]])})));return function(e){return t.apply(this,arguments)}}()([])},Fu.prototype.get=function(t){return ic.visit(this,t)},Fu.prototype.set=function(t,e){return Mo.visit(this,t,e)},Fu.prototype.indexOf=function(t,e){return sc.visit(this,t,e)},Fu.prototype.toArray=function(){return pc.visit(this)},Fu.prototype.getByteWidth=function(){return bc.visit(this.type)},Fu.prototype[Symbol.iterator]=function(){return fc.visit(this)},Fu.prototype._bindDataAccessors=function(){var t=this.nullBitmap;t&&t.byteLength>0&&(this.get=(e=this.get,function(t){return this.isValid(t)?e.call(this,t):null}),this.set=function(t){return function(e,n){tn(this.nullBitmap,this.offset+e,!(null===n||void 0===n))&&t.call(this,e,n)}}(this.set));var e},Object.keys(Ve).map((function(t){return Ve[t]})).filter((function(t){return"number"===typeof t})).filter((function(t){return t!==Ve.NONE})).forEach((function(t){var e,n=gc.visit(t);n.prototype.get=(e=ic.getVisitFn(t),function(t){return e(this,t)}),n.prototype.set=Bs(Mo.getVisitFn(t)),n.prototype.indexOf=Bs(sc.getVisitFn(t)),n.prototype.toArray=Ls(pc.getVisitFn(t)),n.prototype.getByteWidth=function(t){return function(){return t(this.type)}}(bc.getVisitFn(t)),n.prototype[Symbol.iterator]=Ls(fc.getVisitFn(t))}));var _c=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t;Object(M.a)(this,n);for(var r=null,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o[0]instanceof eo&&(r=o.shift());var u=$i(wc,o);if(!r&&!(r=u[0]&&u[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");return u[0]||(u[0]=new kc(r)),(t=e.call(this,new Xn(r.fields),u))._schema=r,t._chunks=u,t}return B(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new n(this._schema,t)}},{key:"getColumn",value:function(t){return this.getColumnAt(this.getColumnIndex(t))}},{key:"getColumnAt",value:function(t){return this.getChildAt(t)}},{key:"getColumnIndex",value:function(t){return this._schema.fields.findIndex((function(e){return e.name===t}))}},{key:"getChildAt",value:function(t){if(t<0||t>=this.numChildren)return null;var e,n,r=this._schema.fields,i=this._children||(this._children=[]);if(n=i[t])return n;if(e=r[t]){var o=this._chunks.map((function(e){return e.getChildAt(t)})).filter((function(t){return null!=t}));if(o.length>0)return i[t]=new Wi(e,o)}return null}},{key:"serialize",value:function(){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t?Tu:Eu;return e.writeAll(this).toUint8Array(!0)}},{key:"count",value:function(){return this._length}},{key:"select",value:function(){for(var t=this._schema.fields.reduce((function(t,e,n){return t.set(e.name,n)}),new Map),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.selectAt.apply(this,sn(n.map((function(e){return t.get(e)})).filter((function(t){return t>-1}))))}},{key:"selectAt",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=(t=this._schema).selectAt.apply(t,r);return new n(o,this._chunks.map((function(t){var e=t.length,n=t.data.childData;return new wc(o,e,r.map((function(t){return n[t]})).filter(Boolean))})))}},{key:"assign",value:function(t){var e=this,r=this._schema.fields,i=t.schema.fields.reduce((function(t,e,n){var i=F(t,2),o=i[0],a=i[1],u=r.findIndex((function(t){return t.name===e.name}));return~u?a[u]=n:o.push(n),t}),[[],[]]),o=F(i,2),a=o[0],u=o[1],s=this._schema.assign(t.schema),c=[].concat(sn(r.map((function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u[r];return void 0===o?e.getColumnAt(r):t.getColumnAt(o)}))),sn(a.map((function(e){return t.getColumnAt(e)})))).filter(Boolean);return Br(n,sn(Lu(s,c)))}},{key:"schema",get:function(){return this._schema}},{key:"length",get:function(){return this._length}},{key:"chunks",get:function(){return this._chunks}},{key:"numCols",get:function(){return this._numChildren}}],[{key:"empty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new eo([]);return new n(t,[])}},{key:"from",value:function(t){if(!t)return n.empty();if("object"===typeof t){var e=kt(t.values)?function(t){if(t.type instanceof Xn)return _c.fromStruct(_s.from(t));return null}(t):xt(t.values)?function(t){if(t.type instanceof Xn)return _s.from(t).then((function(t){return _c.fromStruct(t)}));return null}(t):null;if(null!==e)return e}var r=Sc.from(t);return wt(r)?D(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=n,t.next=3,r;case 3:return t.t1=t.sent,t.next=6,t.t0.from.call(t.t0,t.t1);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})))():r.isSync()&&(r=r.open())?r.schema?new n(r.schema,sn(r)):n.empty():function(){var t=D(P.mark((function t(e){var r,i,o,a,u,s,c,l,f,h;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:if(r=t.sent,i=r.schema,o=[],!i){t.next=40;break}a=!0,u=!1,t.prev=8,c=H(r);case 10:return t.next=12,c.next();case 12:return l=t.sent,a=l.done,t.next=16,l.value;case 16:if(f=t.sent,a){t.next=23;break}h=f,o.push(h);case 20:a=!0,t.next=10;break;case 23:t.next=29;break;case 25:t.prev=25,t.t0=t.catch(8),u=!0,s=t.t0;case 29:if(t.prev=29,t.prev=30,a||null==c.return){t.next=34;break}return t.next=34,c.return();case 34:if(t.prev=34,!u){t.next=37;break}throw s;case 37:return t.finish(34);case 38:return t.finish(29);case 39:return t.abrupt("return",new n(i,o));case 40:return t.abrupt("return",n.empty());case 41:case"end":return t.stop()}}),t,null,[[8,25,29,39],[30,,34,38]])})));return function(e){return t.apply(this,arguments)}}()(r.open())}},{key:"fromAsync",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.from(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"fromStruct",value:function(t){return n.new(t.data.childData,t.type.children)}},{key:"new",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Br(n,sn(Mu(Gi(e))))}}]),n}(Ui);var wc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t,r;Object(M.a)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var u,s=o[0];if(o[1]instanceof or)r=o[1],u=o[2];else{var c=s.fields,l=o[1],f=o[2];r=or.Struct(new Xn(c),0,l,0,null,f)}return(t=e.call(this,r,u))._schema=s,t}return B(n,[{key:"clone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._children;return new n(this._schema,t,e)}},{key:"concat",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=this._schema,o=Ui.flatten.apply(Ui,[this].concat(e));return new _c(i,o.map((function(t){var e=t.data;return new n(i,e)})))}},{key:"select",value:function(){for(var t=this._schema.fields.reduce((function(t,e,n){return t.set(e.name,n)}),new Map),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.selectAt.apply(this,sn(n.map((function(e){return t.get(e)})).filter((function(t){return t>-1}))))}},{key:"selectAt",value:function(){for(var t,e=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=(t=this._schema).selectAt.apply(t,i),u=i.map((function(t){return e.data.childData[t]})).filter(Boolean);return new n(a,this.length,u)}},{key:"schema",get:function(){return this._schema}},{key:"numCols",get:function(){return this._schema.fields.length}},{key:"dictionaries",get:function(){return this._dictionaries||(this._dictionaries=xc.collect(this))}}],[{key:"from",value:function(t){return kt(t.values),_c.from(t)}},{key:"new",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=Ki(e),o=F(i,2),a=o[0],u=o[1],s=u.filter((function(t){return t instanceof ze}));return Br(n,sn(Du(new eo(a),s.map((function(t){return t.data})))))}}]),n}(_s),kc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){return Object(M.a)(this,n),e.call(this,t,0,t.fields.map((function(t){return or.new(t.type,0,0,0)})))}return n}(wc),xc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t;return Object(M.a)(this,n),(t=e.apply(this,arguments)).dictionaries=new Map,t}return B(n,[{key:"visit",value:function(t,e){var n=this;return On.isDictionary(e)?this.visitDictionary(t,e):(t.childData.forEach((function(t,r){return n.visit(t,e.children[r].type)})),this)}},{key:"visitDictionary",value:function(t,e){var n=t.dictionary;return n&&n.length>0&&this.dictionaries.set(e.id,n),this}}],[{key:"collect",value:function(t){return(new n).visit(t.data,new Xn(t.schema.fields)).dictionaries}}]),n}(cn),Oc=P.mark(Pc),Sc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this))._impl=t,r}return B(n,[{key:"isSync",value:function(){return this._impl.isSync()}},{key:"isAsync",value:function(){return this._impl.isAsync()}},{key:"isFile",value:function(){return this._impl.isFile()}},{key:"isStream",value:function(){return this._impl.isStream()}},{key:"next",value:function(){return this._impl.next()}},{key:"throw",value:function(t){return this._impl.throw(t)}},{key:"return",value:function(t){return this._impl.return(t)}},{key:"cancel",value:function(){return this._impl.cancel()}},{key:"reset",value:function(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}},{key:"open",value:function(t){var e=this,n=this._impl.open(t);return wt(n)?n.then((function(){return e})):this}},{key:"readRecordBatch",value:function(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}},{key:Symbol.iterator,value:function(){return this._impl[Symbol.iterator]()}},{key:Symbol.asyncIterator,value:function(){return this._impl[Symbol.asyncIterator]()}},{key:"toDOMStream",value:function(){var t=this;return _e.toDOMStream(this.isSync()?Ie({},Symbol.iterator,(function(){return t})):Ie({},Symbol.asyncIterator,(function(){return t})))}},{key:"toNodeStream",value:function(){var t=this;return _e.toNodeStream(this.isSync()?Ie({},Symbol.iterator,(function(){return t})):Ie({},Symbol.asyncIterator,(function(){return t})),{objectMode:!0})}},{key:"closed",get:function(){return this._impl.closed}},{key:"schema",get:function(){return this._impl.schema}},{key:"autoDestroy",get:function(){return this._impl.autoDestroy}},{key:"dictionaries",get:function(){return this._impl.dictionaries}},{key:"numDictionaries",get:function(){return this._impl.numDictionaries}},{key:"numRecordBatches",get:function(){return this._impl.numRecordBatches}},{key:"footer",get:function(){return this._impl.isFile()?this._impl.footer:null}}],[{key:"throughNode",value:function(t){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(t,e){throw new Error('"throughDOM" not available in this environment')}},{key:"from",value:function(t){return t instanceof n?t:Ot(t)?function(t){return new Tc(new Lc(t))}(t):Tt(t)?function(t){return zc.apply(this,arguments)}(t):wt(t)?D(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=n,e.next=3,t;case 3:return e.t1=e.sent,e.next=6,e.t0.from.call(e.t0,e.t1);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))():Et(t)||At(t)||Ct(t)||xt(t)?function(t){return Uc.apply(this,arguments)}(new Yo(t)):function(t){var e=t.peek(vu+7&-8);return e&&e.byteLength>=4?yu(e)?new jc(new Dc(t.read())):new Tc(new Cc(t)):new Tc(new Cc(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))()))}(new qo(t))}},{key:"readAll",value:function(t){return t instanceof n?t.isSync()?Pc(t):Fc(t):Ot(t)||ArrayBuffer.isView(t)||kt(t)||St(t)?Pc(t):Fc(t)}}]),n}(st),Tc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._impl=t,r}return B(n,[{key:Symbol.iterator,value:function(){return this._impl[Symbol.iterator]()}},{key:Symbol.asyncIterator,value:function(){var t=this;return V(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(W(H(t[Symbol.iterator]()),U),"t0",1);case 1:case"end":return e.stop()}}),e)})))()}}]),n}(Sc),Ec=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._impl=t,r}return B(n,[{key:Symbol.iterator,value:function(){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}},{key:Symbol.asyncIterator,value:function(){return this._impl[Symbol.asyncIterator]()}}]),n}(Sc),jc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._impl=t,r}return n}(Tc),Ac=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this,t))._impl=t,r}return n}(Ec),Ic=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map;Object(M.a)(this,t),this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}return B(t,[{key:"isSync",value:function(){return!1}},{key:"isAsync",value:function(){return!1}},{key:"isFile",value:function(){return!1}},{key:"isStream",value:function(){return!1}},{key:"reset",value:function(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}},{key:"_loadRecordBatch",value:function(t,e){return new wc(this.schema,t.length,this._loadVectors(t,e,this.schema.fields))}},{key:"_loadDictionaryBatch",value:function(t,e){var n=t.id,r=t.isDelta,i=t.data,o=this.dictionaries,a=this.schema,u=o.get(n);if(r||!u){var s=a.dictionaries.get(n);return u&&r?u.concat(ze.new(this._loadVectors(i,e,[s])[0])):ze.new(this._loadVectors(i,e,[s])[0])}return u}},{key:"_loadVectors",value:function(t,e,n){return new ra(e,t.nodes,t.buffers,this.dictionaries).visitMany(n)}},{key:"numDictionaries",get:function(){return this._dictionaryIndex}},{key:"numRecordBatches",get:function(){return this._recordBatchIndex}}]),t}(),Cc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this,r))._reader=Ot(t)?new fu(i._handle=t):new cu(i._handle=t),i}return B(n,[{key:"isSync",value:function(){return!0}},{key:"isStream",value:function(){return!0}},{key:Symbol.iterator,value:function(){return this}},{key:"cancel",value:function(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}},{key:"open",value:function(t){return this.closed||(this.autoDestroy=Bc(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}},{key:"throw",value:function(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):at}},{key:"return",value:function(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):at}},{key:"next",value:function(){if(this.closed)return at;for(var t,e=this._reader;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;var n=t.header(),r=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;var i=t.header(),o=e.readMessageBody(t.bodyLength),a=this._loadDictionaryBatch(i,o);this.dictionaries.set(i.id,a)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new kc(this.schema)}):this.return()}},{key:"_readNextMessageAndValidate",value:function(t){return this._reader.readMessage(t)}}]),n}(Ic),Nc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this,r))._reader=new lu(i._handle=t),i}return B(n,[{key:"isAsync",value:function(){return!0}},{key:"isStream",value:function(){return!0}},{key:Symbol.asyncIterator,value:function(){return this}},{key:"cancel",value:function(){var t=D(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed||!(this.closed=!0)){t.next=5;break}return t.next=3,this.reset()._reader.return();case 3:this._reader=null,this.dictionaries=null;case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"open",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed){t.next=10;break}if(this.autoDestroy=Bc(this,e),t.t0=this.schema,t.t0){t.next=7;break}return t.next=6,this._reader.readSchema();case 6:t.t0=this.schema=t.sent;case 7:if(t.t0){t.next=10;break}return t.next=10,this.cancel();case 10:return t.abrupt("return",this);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"throw",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed||!this.autoDestroy||!(this.closed=!0)){t.next=4;break}return t.next=3,this.reset()._reader.throw(e);case 3:return t.abrupt("return",t.sent);case 4:return t.abrupt("return",at);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed||!this.autoDestroy||!(this.closed=!0)){t.next=4;break}return t.next=3,this.reset()._reader.return(e);case 3:return t.abrupt("return",t.sent);case 4:return t.abrupt("return",at);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"next",value:function(){var t=D(P.mark((function t(){var e,n,r,i,o,a,u,s;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.closed){t.next=2;break}return t.abrupt("return",at);case 2:n=this._reader;case 3:return t.next=5,this._readNextMessageAndValidate();case 5:if(!(e=t.sent)){t.next=31;break}if(!e.isSchema()){t.next=11;break}return t.next=9,this.reset(e.header());case 9:t.next=29;break;case 11:if(!e.isRecordBatch()){t.next=21;break}return this._recordBatchIndex++,r=e.header(),t.next=16,n.readMessageBody(e.bodyLength);case 16:return i=t.sent,o=this._loadRecordBatch(r,i),t.abrupt("return",{done:!1,value:o});case 21:if(!e.isDictionaryBatch()){t.next=29;break}return this._dictionaryIndex++,a=e.header(),t.next=26,n.readMessageBody(e.bodyLength);case 26:u=t.sent,s=this._loadDictionaryBatch(a,u),this.dictionaries.set(a.id,s);case 29:t.next=3;break;case 31:if(!this.schema||0!==this._recordBatchIndex){t.next=34;break}return this._recordBatchIndex++,t.abrupt("return",{done:!1,value:new kc(this.schema)});case 34:return t.next=36,this.return();case 36:return t.abrupt("return",t.sent);case 37:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_readNextMessageAndValidate",value:function(){var t=D(P.mark((function t(e){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._reader.readMessage(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),n}(Ic),Dc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){return Object(M.a)(this,n),e.call(this,t instanceof Ko?t:new Ko(t),r)}return B(n,[{key:"isSync",value:function(){return!0}},{key:"isFile",value:function(){return!0}},{key:"open",value:function(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;var e,r=C(this._footer.dictionaryBatches());try{for(r.s();!(e=r.n()).done;){e.value&&this._readDictionaryBatch(this._dictionaryIndex++)}}catch(i){r.e(i)}finally{r.f()}}return Me(Object(De.a)(n.prototype),"open",this).call(this,t)}},{key:"readRecordBatch",value:function(t){if(this.closed)return null;this._footer||this.open();var e=this._footer&&this._footer.getRecordBatch(t);if(e&&this._handle.seek(e.offset)){var n=this._reader.readMessage(Ke.RecordBatch);if(n&&n.isRecordBatch()){var r=n.header(),i=this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(r,i)}}return null}},{key:"_readDictionaryBatch",value:function(t){var e=this._footer&&this._footer.getDictionaryBatch(t);if(e&&this._handle.seek(e.offset)){var n=this._reader.readMessage(Ke.DictionaryBatch);if(n&&n.isDictionaryBatch()){var r=n.header(),i=this._reader.readMessageBody(n.bodyLength),o=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,o)}}}},{key:"_readFooter",value:function(){var t=this._handle,e=t.size-bu,n=t.readInt32(e),r=t.readAt(e-n,n);return zo.decode(r)}},{key:"_readNextMessageAndValidate",value:function(t){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){var e=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(e&&this._handle.seek(e.offset))return this._reader.readMessage(t)}return null}},{key:"footer",get:function(){return this._footer}},{key:"numDictionaries",get:function(){return this._footer?this._footer.numDictionaries:0}},{key:"numRecordBatches",get:function(){return this._footer?this._footer.numRecordBatches:0}}]),n}(Cc),Mc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){Object(M.a)(this,n);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a="number"!==typeof i[0]?i.shift():void 0,u=i[0]instanceof Map?i.shift():void 0;return e.call(this,t instanceof Xo?t:new Xo(t,a),u)}return B(n,[{key:"isFile",value:function(){return!0}},{key:"isAsync",value:function(){return!0}},{key:"open",value:function(){var t=D(P.mark((function t(e){var r,i,o;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed||this._footer){t.next=23;break}return t.next=3,this._readFooter();case 3:this.schema=(this._footer=t.sent).schema,r=C(this._footer.dictionaryBatches()),t.prev=5,r.s();case 7:if((i=r.n()).done){t.next=15;break}if(o=i.value,t.t0=o,!t.t0){t.next=13;break}return t.next=13,this._readDictionaryBatch(this._dictionaryIndex++);case 13:t.next=7;break;case 15:t.next=20;break;case 17:t.prev=17,t.t1=t.catch(5),r.e(t.t1);case 20:return t.prev=20,r.f(),t.finish(20);case 23:return t.next=25,Me(Object(De.a)(n.prototype),"open",this).call(this,e);case 25:return t.abrupt("return",t.sent);case 26:case"end":return t.stop()}}),t,this,[[5,17,20,23]])})));return function(e){return t.apply(this,arguments)}}()},{key:"readRecordBatch",value:function(){var t=D(P.mark((function t(e){var n,r,i,o,a;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.closed){t.next=2;break}return t.abrupt("return",null);case 2:if(this._footer){t.next=5;break}return t.next=5,this.open();case 5:if(n=this._footer&&this._footer.getRecordBatch(e),t.t0=n,!t.t0){t.next=11;break}return t.next=10,this._handle.seek(n.offset);case 10:t.t0=t.sent;case 11:if(!t.t0){t.next=22;break}return t.next=14,this._reader.readMessage(Ke.RecordBatch);case 14:if(!(r=t.sent)||!r.isRecordBatch()){t.next=22;break}return i=r.header(),t.next=19,this._reader.readMessageBody(r.bodyLength);case 19:return o=t.sent,a=this._loadRecordBatch(i,o),t.abrupt("return",a);case 22:return t.abrupt("return",null);case 23:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_readDictionaryBatch",value:function(){var t=D(P.mark((function t(e){var n,r,i,o,a;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this._footer&&this._footer.getDictionaryBatch(e),t.t0=n,!t.t0){t.next=6;break}return t.next=5,this._handle.seek(n.offset);case 5:t.t0=t.sent;case 6:if(!t.t0){t.next=17;break}return t.next=9,this._reader.readMessage(Ke.DictionaryBatch);case 9:if(!(r=t.sent)||!r.isDictionaryBatch()){t.next=17;break}return i=r.header(),t.next=14,this._reader.readMessageBody(r.bodyLength);case 14:o=t.sent,a=this._loadDictionaryBatch(i,o),this.dictionaries.set(i.id,a);case 17:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_readFooter",value:function(){var t=D(P.mark((function t(){var e,n,r,i;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this._handle,t.t0=e._pending,!t.t0){t.next=5;break}return t.next=5,e._pending;case 5:return n=e.size-bu,t.next=8,e.readInt32(n);case 8:return r=t.sent,t.next=11,e.readAt(n-r,r);case 11:return i=t.sent,t.abrupt("return",zo.decode(i));case 13:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_readNextMessageAndValidate",value:function(){var t=D(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._footer){t.next=3;break}return t.next=3,this.open();case 3:if(!(this._footer&&this._recordBatchIndex<this.numRecordBatches)){t.next=14;break}if(n=this._footer.getRecordBatch(this._recordBatchIndex),t.t0=n,!t.t0){t.next=10;break}return t.next=9,this._handle.seek(n.offset);case 9:t.t0=t.sent;case 10:if(!t.t0){t.next=14;break}return t.next=13,this._reader.readMessage(e);case 13:return t.abrupt("return",t.sent);case 14:return t.abrupt("return",null);case 15:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"footer",get:function(){return this._footer}},{key:"numDictionaries",get:function(){return this._footer?this._footer.numDictionaries:0}},{key:"numRecordBatches",get:function(){return this._footer?this._footer.numRecordBatches:0}}]),n}(Nc),Lc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){return Object(M.a)(this,n),e.call(this,t,r)}return B(n,[{key:"_loadVectors",value:function(t,e,n){return new ia(e,t.nodes,t.buffers,this.dictionaries).visitMany(n)}}]),n}(Cc);function Bc(t,e){return e&&"boolean"===typeof e.autoDestroy?e.autoDestroy:t.autoDestroy}function Pc(t){var e;return P.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e=Sc.from(t),n.prev=1,e.open({autoDestroy:!1}).closed){n.next=6;break}case 3:return n.next=5,e;case 5:if(!e.reset().open().closed){n.next=3;break}case 6:return n.prev=6,e.cancel(),n.finish(6);case 9:case"end":return n.stop()}}),Oc,null,[[1,,6,9]])}function Fc(t){return Rc.apply(this,arguments)}function Rc(){return(Rc=V(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U(Sc.from(e));case 2:return n=t.sent,t.prev=3,t.next=6,U(n.open({autoDestroy:!1}));case 6:if(t.sent.closed){t.next=12;break}case 7:return t.next=9,n;case 9:return t.next=11,U(n.reset().open());case 11:if(!t.sent.closed){t.next=7;break}case 12:return t.prev=12,t.next=15,U(n.cancel());case 15:return t.finish(12);case 16:case"end":return t.stop()}}),t,null,[[3,,12,16]])})))).apply(this,arguments)}function Uc(){return(Uc=D(P.mark((function t(e){var n;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peek(vu+7&-8);case 2:if(!((n=t.sent)&&n.byteLength>=4)){t.next=18;break}if(yu(n)){t.next=8;break}t.t1=new Ec(new Nc(e)),t.next=15;break;case 8:return t.t2=jc,t.t3=Dc,t.next=12,e.read();case 12:t.t4=t.sent,t.t5=new t.t3(t.t4),t.t1=new t.t2(t.t5);case 15:t.t0=t.t1,t.next=19;break;case 18:t.t0=new Ec(new Nc(V(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()));case 19:return t.abrupt("return",t.t0);case 20:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function zc(){return(zc=D(P.mark((function t(e){var n,r,i;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.stat();case 2:if(n=t.sent,r=n.size,i=new Xo(e,r),!(r>=gu)){t.next=12;break}return t.t0=yu,t.next=9,i.readAt(0,vu+7&-8);case 9:if(t.t1=t.sent,!(0,t.t0)(t.t1)){t.next=12;break}return t.abrupt("return",new Ac(new Mc(i)));case 12:return t.abrupt("return",new Ec(new Nc(i)));case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Vc=function(){function t(e){var n,r,i=this;Object(M.a)(this,t),this._numChunks=0,this._finished=!1,this._bufferedSize=0;var o=e.readableStrategy,a=e.writableStrategy,u=e.queueingStrategy,s=void 0===u?"count":u,c=Pu(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=yr.new(c),this._getSize="bytes"!==s?Hc:Wc;var l=Ne({},o).highWaterMark,f=void 0===l?"bytes"===s?Math.pow(2,14):1e3:l,h=Ne({},a).highWaterMark,d=void 0===h?"bytes"===s?Math.pow(2,14):1e3:h;this.readable=new ReadableStream((Ie(n={},"cancel",(function(){i._builder.clear()})),Ie(n,"pull",(function(t){i._maybeFlush(i._builder,i._controller=t)})),Ie(n,"start",(function(t){i._maybeFlush(i._builder,i._controller=t)})),n),{highWaterMark:f,size:"bytes"!==s?Hc:Wc}),this.writable=new WritableStream((Ie(r={},"abort",(function(){i._builder.clear()})),Ie(r,"write",(function(){i._maybeFlush(i._builder,i._controller)})),Ie(r,"close",(function(){i._maybeFlush(i._builder.finish(),i._controller)})),r),{highWaterMark:d,size:function(t){return i._writeValueAndReturnChunkSize(t)}})}return B(t,[{key:"_writeValueAndReturnChunkSize",value:function(t){var e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}},{key:"_maybeFlush",value:function(t,e){null!==e&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}},{key:"_enqueue",value:function(t,e){this._bufferedSize=0,this._controller=null,null===e?t.close():t.enqueue(e)}}]),t}(),Hc=function(t){return t.length},Wc=function(t){return t.byteLength};var qc=function(){function t(){Object(M.a)(this,t)}return B(t,[{key:"eq",value:function(e){return e instanceof t||(e=new Yc(e)),new Jc(this,e)}},{key:"le",value:function(e){return e instanceof t||(e=new Yc(e)),new tl(this,e)}},{key:"ge",value:function(e){return e instanceof t||(e=new Yc(e)),new el(this,e)}},{key:"lt",value:function(t){return new nl(this.ge(t))}},{key:"gt",value:function(t){return new nl(this.le(t))}},{key:"ne",value:function(t){return new nl(this.eq(t))}}]),t}(),Yc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).v=t,r}return n}(qc),$c=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).name=t,r}return B(n,[{key:"bind",value:function(t){if(!this.colidx){this.colidx=-1;for(var e=t.schema.fields,n=-1;++n<e.length;)if(e[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error('Failed to bind Col "'.concat(this.name,'"'))}var r=this.vector=t.getChildAt(this.colidx);return function(t){return r.get(t)}}}]),n}(qc),Gc=function(){function t(){Object(M.a)(this,t)}return B(t,[{key:"and",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Br(Qc,[this].concat(e))}},{key:"or",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Br(Zc,[this].concat(e))}},{key:"not",value:function(){return new nl(this)}}]),t}(),Kc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this)).left=t,i.right=r,i}return B(n,[{key:"bind",value:function(t){return this.left instanceof Yc?this.right instanceof Yc?this._bindLitLit(t,this.left,this.right):this._bindLitCol(t,this.left,this.right):this.right instanceof Yc?this._bindColLit(t,this.left,this.right):this._bindColCol(t,this.left,this.right)}}]),n}(Gc),Xc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){var t;Object(M.a)(this,n),t=e.call(this);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t.children=i,t}return n}(Gc);Xc.prototype.children=Object.freeze([]);var Qc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Object(M.a)(this,n),r=r.reduce((function(t,e){return t.concat(e instanceof n?e.children:e)}),[]),e.call.apply(e,[this].concat(sn(r)))}return B(n,[{key:"bind",value:function(t){var e=this.children.map((function(e){return e.bind(t)}));return function(t,n){return e.every((function(e){return e(t,n)}))}}}]),n}(Xc),Zc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Object(M.a)(this,n),r=r.reduce((function(t,e){return t.concat(e instanceof n?e.children:e)}),[]),e.call.apply(e,[this].concat(sn(r)))}return B(n,[{key:"bind",value:function(t){var e=this.children.map((function(e){return e.bind(t)}));return function(t,n){return e.some((function(e){return e(t,n)}))}}}]),n}(Xc),Jc=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"_bindLitLit",value:function(t,e,n){var r=e.v==n.v;return function(){return r}}},{key:"_bindColCol",value:function(t,e,n){var r=e.bind(t),i=n.bind(t);return function(t,e){return r(t,e)==i(t,e)}}},{key:"_bindColLit",value:function(t,e,n){var r=e.bind(t);if(e.vector instanceof qu){var i,o=e.vector;return o.dictionary!==this.lastDictionary?(i=o.reverseLookup(n.v),this.lastDictionary=o.dictionary,this.lastKey=i):i=this.lastKey,-1===i?function(){return!1}:function(t){return o.getKey(t)===i}}return function(t,e){return r(t,e)==n.v}}},{key:"_bindLitCol",value:function(t,e,n){return this._bindColLit(t,n,e)}}]),n}(Kc),tl=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"_bindLitLit",value:function(t,e,n){var r=e.v<=n.v;return function(){return r}}},{key:"_bindColCol",value:function(t,e,n){var r=e.bind(t),i=n.bind(t);return function(t,e){return r(t,e)<=i(t,e)}}},{key:"_bindColLit",value:function(t,e,n){var r=e.bind(t);return function(t,e){return r(t,e)<=n.v}}},{key:"_bindLitCol",value:function(t,e,n){var r=n.bind(t);return function(t,n){return e.v<=r(t,n)}}}]),n}(Kc),el=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"_bindLitLit",value:function(t,e,n){var r=e.v>=n.v;return function(){return r}}},{key:"_bindColCol",value:function(t,e,n){var r=e.bind(t),i=n.bind(t);return function(t,e){return r(t,e)>=i(t,e)}}},{key:"_bindColLit",value:function(t,e,n){var r=e.bind(t);return function(t,e){return r(t,e)>=n.v}}},{key:"_bindLitCol",value:function(t,e,n){var r=n.bind(t);return function(t,n){return e.v>=r(t,n)}}}]),n}(Kc),nl=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t){var r;return Object(M.a)(this,n),(r=e.call(this)).child=t,r}return B(n,[{key:"bind",value:function(t){var e=this.child.bind(t);return function(t,n){return!e(t,n)}}}]),n}(Gc);_c.prototype.countBy=function(t){return new rl(this.chunks).countBy(t)},_c.prototype.scan=function(t,e){return new rl(this.chunks).scan(t,e)},_c.prototype.scanReverse=function(t,e){return new rl(this.chunks).scanReverse(t,e)},_c.prototype.filter=function(t){return new rl(this.chunks).filter(t)};var rl=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(){return Object(M.a)(this,n),e.apply(this,arguments)}return B(n,[{key:"filter",value:function(t){return new ol(this.chunks,t)}},{key:"scan",value:function(t,e){for(var n=this.chunks,r=n.length,i=-1;++i<r;){var o=n[i];e&&e(o);for(var a=-1,u=o.length;++a<u;)t(a,o)}}},{key:"scanReverse",value:function(t,e){for(var n=this.chunks,r=n.length;--r>=0;){var i=n[r];e&&e(i);for(var o=i.length;--o>=0;)t(o,i)}}},{key:"countBy",value:function(t){var e=this.chunks,n=e.length,r="string"===typeof t?new $c(t):t;r.bind(e[n-1]);var i=r.vector;if(!On.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");for(var o=Math.ceil(Math.log(i.length)/Math.log(256)),a=new(4==o?Uint32Array:o>=2?Uint16Array:Uint8Array)(i.dictionary.length),u=-1;++u<n;){var s=e[u];r.bind(s);for(var c=r.vector.indices,l=-1,f=s.length;++l<f;){var h=c.get(l);null!==h&&a[h]++}}return new il(i.dictionary,is.from(a))}}]),n}(_c),il=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){Object(M.a)(this,n);var i=new eo([new no("values",t.type),new no("counts",r.type)]);return e.call(this,new wc(i,r.length,[t,r]))}return B(n,[{key:"toJSON",value:function(){for(var t=this.getColumnAt(0),e=this.getColumnAt(1),n={},r=-1;++r<this.length;)n[t.get(r)]=e.get(r);return n}}]),n}(_c),ol=function(t){Object(it.a)(n,t);var e=Object(ot.a)(n);function n(t,r){var i;return Object(M.a)(this,n),(i=e.call(this,t))._predicate=r,i}return B(n,[{key:"scan",value:function(t,e){for(var n=this._chunks,r=n.length,i=-1;++i<r;)for(var o=n[i],a=this._predicate.bind(o),u=!1,s=-1,c=o.length;++s<c;)a(s,o)&&(e&&!u&&(e(o),u=!0),t(s,o))}},{key:"scanReverse",value:function(t,e){for(var n=this._chunks,r=n.length;--r>=0;)for(var i=n[r],o=this._predicate.bind(i),a=!1,u=i.length;--u>=0;)o(u,i)&&(e&&!a&&(e(i),a=!0),t(u,i))}},{key:"count",value:function(){for(var t=0,e=this._chunks,n=e.length,r=-1;++r<n;)for(var i=e[r],o=this._predicate.bind(i),a=-1,u=i.length;++a<u;)o(a,i)&&++t;return t}},{key:Symbol.iterator,value:P.mark((function t(){var e,n,r,i,o,a,u;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this._chunks,n=e.length,r=-1;case 3:if(!(++r<n)){t.next=15;break}i=e[r],o=this._predicate.bind(i),a=-1,u=i.length;case 7:if(!(++a<u)){t.next=13;break}if(!o(a,i)){t.next=11;break}return t.next=11,i.get(a);case 11:t.next=7;break;case 13:t.next=3;break;case 15:case"end":return t.stop()}}),t,this)}))},{key:"filter",value:function(t){return new n(this._chunks,this._predicate.and(t))}},{key:"countBy",value:function(t){var e=this._chunks,n=e.length,r="string"===typeof t?new $c(t):t;r.bind(e[n-1]);var i=r.vector;if(!On.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");for(var o=Math.ceil(Math.log(i.length)/Math.log(256)),a=new(4==o?Uint32Array:o>=2?Uint16Array:Uint8Array)(i.dictionary.length),u=-1;++u<n;){var s=e[u],c=this._predicate.bind(s);r.bind(s);for(var l=r.vector.indices,f=-1,h=s.length;++f<h;){var d=l.get(f);null!==d&&c(f,s)&&a[d]++}}return new il(i.dictionary,is.from(a))}}]),n}(rl);Ne(Ne(Ne(Ne(Ne(Ne({},a),s),i),o),r),u);_e.toDOMStream=function(t,e){if(xt(t))return function(t,e){var n=null,r=e&&"bytes"===e.type||!1,i=e&&e.highWaterMark||Math.pow(2,24);return new ReadableStream(Ne(Ne({},e),{},{start:function(e){return D(P.mark((function r(){return P.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o(e,n||(n=t[Symbol.asyncIterator]()));case 2:case"end":return r.stop()}}),r)})))()},pull:function(t){return D(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,o(t,n);case 3:e.next=6;break;case 5:t.close();case 6:case"end":return e.stop()}}),e)})))()},cancel:function(){return D(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t1=n,!t.t1){t.next=8;break}if(t.t2=n.return,!t.t2){t.next=7;break}return t.next=6,n.return();case 6:t.t2=t.sent;case 7:t.t1=t.t2;case 8:if(t.t0=t.t1,t.t0){t.next=11;break}t.t0=!0;case 11:if(t.t3=t.t0,!t.t3){t.next=14;break}n=null;case 14:case"end":return t.stop()}}),t)})))()}}),Ne({highWaterMark:r?i:void 0},e));function o(t,e){return a.apply(this,arguments)}function a(){return(a=D(P.mark((function t(e,n){var i,o,a;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=null,a=e.desiredSize||null;case 2:return t.next=4,n.next(r?a:null);case 4:if((o=t.sent).done){t.next=11;break}if(ArrayBuffer.isView(o.value)&&(i=Vt(o.value))&&(null!=a&&r&&(a=a-i.byteLength+1),o.value=i),e.enqueue(o.value),!(null!=a&&--a<=0)){t.next=9;break}return t.abrupt("return");case 9:t.next=2;break;case 11:e.close();case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}(t,e);if(kt(t))return function(t,e){var n=null,r=e&&"bytes"===e.type||!1,i=e&&e.highWaterMark||Math.pow(2,24);return new ReadableStream(Ne(Ne({},e),{},{start:function(e){o(e,n||(n=t[Symbol.iterator]()))},pull:function(t){n?o(t,n):t.close()},cancel:function(){n&&n.return&&n.return(),n=null}}),Ne({highWaterMark:r?i:void 0},e));function o(t,e){for(var n,i=null,o=t.desiredSize||null;!(i=e.next(r?o:null)).done;)if(ArrayBuffer.isView(i.value)&&(n=Vt(i.value))&&(null!=o&&r&&(o=o-n.byteLength+1),i.value=n),t.enqueue(i.value),null!=o&&--o<=0)return;t.close()}}(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")},yr.throughDOM=function(t){return new Vc(t)},Sc.throughDOM=function(t,e){var n=new Wo,r=null,i=new ReadableStream({cancel:function(){return D(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.close();case 2:case"end":return t.stop()}}),t)})))()},start:function(t){return D(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=u,e.t1=t,e.t2=r,e.t2){e.next=7;break}return e.next=6,o();case 6:e.t2=r=e.sent;case 7:return e.t3=e.t2,e.next=10,(0,e.t0)(e.t1,e.t3);case 10:case"end":return e.stop()}}),e)})))()},pull:function(t){return D(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=5;break}return e.next=3,u(t,r);case 3:e.next=6;break;case 5:t.close();case 6:case"end":return e.stop()}}),e)})))()}});return{writable:new WritableStream(n,Ne({highWaterMark:Math.pow(2,14)},t)),readable:i};function o(){return a.apply(this,arguments)}function a(){return(a=D(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Sc.from(n);case 2:return t.next=4,t.sent.open(e);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(t,e){return s.apply(this,arguments)}function s(){return(s=D(P.mark((function t(e,n){var r,i;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.desiredSize,i=null;case 2:return t.next=4,n.next();case 4:if((i=t.sent).done){t.next=10;break}if(e.enqueue(i.value),!(null!=r&&--r<=0)){t.next=8;break}return t.abrupt("return");case 8:t.next=2;break;case 10:e.close();case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},Su.throughDOM=function(t,e){var n=new this(t),r=new Yo(n),i=new ReadableStream({type:"bytes",cancel:function(){return D(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.cancel();case 2:case"end":return t.stop()}}),t)})))()},pull:function(t){return D(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(t);case 2:case"end":return e.stop()}}),e)})))()},start:function(t){return D(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(t);case 2:case"end":return e.stop()}}),e)})))()}},Ne({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(n,t),readable:i};function o(t){return a.apply(this,arguments)}function a(){return(a=D(P.mark((function t(e){var n,i;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=null,i=e.desiredSize;case 2:return t.next=4,r.read(i||null);case 4:if(!(n=t.sent)){t.next=10;break}if(e.enqueue(n),!(null!=i&&(i-=n.byteLength)<=0)){t.next=8;break}return t.abrupt("return");case 8:t.next=2;break;case 10:e.close();case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}};var al,ul=function(){function t(t,e,n,r){var i=this;this.getCell=function(t,e){var n=t<i.headerRows&&e<i.headerColumns,r=t>=i.headerRows&&e<i.headerColumns,o=t<i.headerRows&&e>=i.headerColumns;if(n){var a=["blank"];return e>0&&a.push("level"+t),{type:"blank",classNames:a.join(" "),content:""}}if(o)return{type:"columns",classNames:(a=["col_heading","level"+t,"col"+(s=e-i.headerColumns)]).join(" "),content:i.getContent(i.columnsTable,s,t)};if(r){a=["row_heading","level"+e,"row"+(u=t-i.headerRows)];return{type:"index",id:"T_"+i.uuid+"level"+e+"_row"+u,classNames:a.join(" "),content:i.getContent(i.indexTable,u,e)}}a=["data","row"+(u=t-i.headerRows),"col"+(s=e-i.headerColumns)];var u,s,c=i.styler?i.getContent(i.styler.displayValuesTable,u,s):i.getContent(i.dataTable,u,s);return{type:"data",id:"T_"+i.uuid+"row"+u+"_col"+s,classNames:a.join(" "),content:c}},this.getContent=function(t,e,n){var r=t.getColumnAt(n);if(null===r)return"";switch(i.getColumnTypeId(t,n)){case Ve.Timestamp:return i.nanosToDate(r.get(e));default:return r.get(e)}},this.dataTable=_c.from(t),this.indexTable=_c.from(e),this.columnsTable=_c.from(n),this.styler=r?{caption:r.caption,displayValuesTable:_c.from(r.displayValues),styles:r.styles,uuid:r.uuid}:void 0}return Object.defineProperty(t.prototype,"rows",{get:function(){return this.indexTable.length+this.columnsTable.numCols},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataRows",{get:function(){return this.dataTable.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.dataTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.indexTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!0,configurable:!0}),t.prototype.serialize=function(){return{data:this.dataTable.serialize(),index:this.indexTable.serialize(),columns:this.columnsTable.serialize()}},t.prototype.getColumnTypeId=function(t,e){return t.schema.fields[e].type.typeId},t.prototype.nanosToDate=function(t){return new Date(t/1e6)},t}(),sl=function(){return(sl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};!function(t){t.COMPONENT_READY="streamlit:componentReady",t.SET_COMPONENT_VALUE="streamlit:setComponentValue",t.SET_FRAME_HEIGHT="streamlit:setFrameHeight"}(al||(al={}));var cl=function(){function t(){}return t.API_VERSION=1,t.RENDER_EVENT="streamlit:render",t.events=new j,t.registeredMessageListener=!1,t.setComponentReady=function(){t.registeredMessageListener||(window.addEventListener("message",t.onMessageEvent),t.registeredMessageListener=!0),t.sendBackMsg(al.COMPONENT_READY,{apiVersion:t.API_VERSION})},t.setFrameHeight=function(e){void 0===e&&(e=document.body.scrollHeight),e!==t.lastFrameHeight&&(t.lastFrameHeight=e,t.sendBackMsg(al.SET_FRAME_HEIGHT,{height:e}))},t.setComponentValue=function(e){var n;e instanceof ul?(n="dataframe",e=e.serialize()):!function(t){var e=!1;try{e=t instanceof BigInt64Array||t instanceof BigUint64Array}catch(n){}return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array||e}(e)?e instanceof ArrayBuffer?(n="bytes",e=new Uint8Array(e)):n="json":(n="bytes",e=new Uint8Array(e.buffer)),t.sendBackMsg(al.SET_COMPONENT_VALUE,{value:e,dataType:n})},t.onMessageEvent=function(e){switch(e.data.type){case t.RENDER_EVENT:t.onRenderMessage(e.data)}},t.onRenderMessage=function(e){var n=e.args;null==n&&(console.error("Got null args in onRenderMessage. This should never happen"),n={});var r=e.dfs&&e.dfs.length>0?t.argsDataframeToObject(e.dfs):{};n=sl(sl({},n),r);var i={disabled:Boolean(e.disabled),args:n},o=new CustomEvent(t.RENDER_EVENT,{detail:i});t.events.dispatchEvent(o)},t.argsDataframeToObject=function(e){var n=e.map((function(e){var n=e.key,r=e.value;return[n,t.toArrowTable(r)]}));return Object.fromEntries(n)},t.toArrowTable=function(t){var e=t.data,n=e.data,r=e.index,i=e.columns,o=e.styler;return new ul(n,r,i,o)},t.sendBackMsg=function(t,e){window.parent.postMessage(sl({isStreamlitMessage:!0,type:t},e),"*")},t}();var ll=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ll(e,t),e.prototype.componentDidMount=function(){cl.setFrameHeight()},e.prototype.componentDidUpdate=function(){cl.setFrameHeight()},e}(h.a.PureComponent);function hl(t){var e=function(e){function n(n){var r=e.call(this,n)||this;return r.componentDidMount=function(){cl.events.addEventListener(cl.RENDER_EVENT,r.onRenderEvent),cl.setComponentReady()},r.componentDidUpdate=function(){null!=r.state.componentError&&cl.setFrameHeight()},r.componentWillUnmount=function(){cl.events.removeEventListener(cl.RENDER_EVENT,r.onRenderEvent)},r.onRenderEvent=function(t){var e=t;r.setState({renderData:e.detail})},r.render=function(){return null!=r.state.componentError?h.a.createElement("div",null,h.a.createElement("h1",null,"Component Error"),h.a.createElement("span",null,r.state.componentError.message)):null==r.state.renderData?null:h.a.createElement(t,{width:window.innerWidth,disabled:r.state.renderData.disabled,args:r.state.renderData.args})},r.state={renderData:void 0,componentError:void 0},r}return ll(n,e),n.getDerivedStateFromError=function(t){return{componentError:t}},n}(h.a.PureComponent);return l()(e,t)}},,function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(t,e){for(var n,u,s=a(t),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(s[l]=n[l]);if(r){u=r(n);for(var f=0;f<u.length;f++)o.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},function(t,e,n){"use strict";var r=n(19),i=n(10);e.a=function(t){var e=Object(r.a)();return e.changedTouches&&(e=e.changedTouches[0]),Object(i.a)(t,e)}},function(t,e,n){"use strict";var r=n(19),i=n(10);e.a=function(t,e,n){arguments.length<3&&(n=e,e=Object(r.a)().changedTouches);for(var o,a=0,u=e?e.length:0;a<u;++a)if((o=e[a]).identifier===n)return Object(i.a)(t,o);return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={SYMBOLS:{CIRCLE:"circle",CROSS:"cross",DIAMOND:"diamond",SQUARE:"square",STAR:"star",TRIANGLE:"triangle",WYE:"wye"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={GRAPH_NO_ID_PROP:"id prop not defined! id property is mandatory and it should be unique.",INSUFFICIENT_LINKS:"you are passing invalid data to react-d3-graph. You must include a links array, even if empty, in the data object you're passing down to the <Graph> component.",INVALID_LINKS:"you provided a invalid links data structure. Links source and target attributes must point to an existent node",INSUFFICIENT_DATA:"you have not provided enough data for react-d3-graph to render something. You need to provide at least one node",INVALID_LINK_VALUE:"links 'value' attribute must be of type number"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SIZES=e.MARKERS=e.MARKER_SMALL_SIZE=e.MARKER_MEDIUM_OFFSET=e.MARKER_LARGE_OFFSET=e.HIGHLIGHTED=void 0;e.HIGHLIGHTED="H";e.MARKER_SMALL_SIZE=16;e.MARKER_MEDIUM_OFFSET=2;e.MARKER_LARGE_OFFSET=4;e.MARKERS={MARKER_S:"marker-small",MARKER_SH:"marker-small-highlighted",MARKER_M:"marker-medium",MARKER_MH:"marker-medium-highlighted",MARKER_L:"marker-large",MARKER_LH:"marker-large-highlighted"};e.SIZES={S:"S",M:"M",L:"L"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(5))&&r.__esModule?r:{default:r};function o(t){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return!e||"object"!==o(e)&&"function"!==typeof e?f(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){function e(){var t,n;u(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return d(f(n=c(this,(t=l(e)).call.apply(t,[this].concat(i)))),"handleOnClickLink",(function(){return n.props.onClickLink&&n.props.onClickLink(n.props.source,n.props.target)})),d(f(n),"handleOnRightClickLink",(function(t){return n.props.onRightClickLink&&n.props.onRightClickLink(t,n.props.source,n.props.target)})),d(f(n),"handleOnMouseOverLink",(function(){return n.props.onMouseOverLink&&n.props.onMouseOverLink(n.props.source,n.props.target)})),d(f(n),"handleOnMouseOutLink",(function(){return n.props.onMouseOutLink&&n.props.onMouseOutLink(n.props.source,n.props.target)})),n}var n,r,o;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t={strokeWidth:this.props.strokeWidth,stroke:this.props.stroke,opacity:this.props.opacity,fill:"none",cursor:this.props.mouseCursor,strokeDasharray:this.props.strokeDasharray,strokeDashoffset:this.props.strokeDasharray,strokeLinecap:this.props.strokeLinecap},e={className:this.props.className,d:this.props.d,onClick:this.handleOnClickLink,onContextMenu:this.handleOnRightClickLink,onMouseOut:this.handleOnMouseOutLink,onMouseOver:this.handleOnMouseOverLink,style:t};this.props.markerId&&(e.markerEnd="url(#".concat(this.props.markerId,")"));var n=this.props,r=n.label,o=n.id,u={dy:-1,style:{fill:this.props.fontColor,fontSize:this.props.fontSize,fontWeight:this.props.fontWeight}};return i.default.createElement("g",null,i.default.createElement("path",a({},e,{id:o})),r&&i.default.createElement("text",a({style:{textAnchor:"middle"}},u),i.default.createElement("textPath",{href:"#".concat(o),startOffset:"50%"},r)))}}])&&s(n.prototype,r),o&&s(n,o),e}(i.default.Component);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n(5)),i=u(n(69)),o=u(n(45)),a=n(24);function u(t){return t&&t.__esModule?t:{default:t}}function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?y(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=function(t){function e(){var t,n;f(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return b(y(n=d(this,(t=p(e)).call.apply(t,[this].concat(i)))),"handleOnClickNode",(function(){return n.props.onClickNode&&n.props.onClickNode(n.props.id)})),b(y(n),"handleOnRightClickNode",(function(t){return n.props.onRightClickNode&&n.props.onRightClickNode(t,n.props.id)})),b(y(n),"handleOnMouseOverNode",(function(){return n.props.onMouseOverNode&&n.props.onMouseOverNode(n.props.id)})),b(y(n),"handleOnMouseOutNode",(function(){return n.props.onMouseOut&&n.props.onMouseOut(n.props.id)})),n}var n,u,g;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(e,t),n=e,(u=[{key:"render",value:function(){var t={cursor:this.props.cursor,onClick:this.handleOnClickNode,onContextMenu:this.handleOnRightClickNode,onMouseOut:this.handleOnMouseOutNode,onMouseOver:this.handleOnMouseOverNode,opacity:this.props.opacity},e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},i.default.getLabelPlacementProps(this.props.dx,this.props.labelPosition),{fill:this.props.fontColor,fontSize:this.props.fontSize,fontWeight:this.props.fontWeight,opacity:this.props.opacity}),n=this.props.size,u="object"!==c(n),f=this.props.cx,h=this.props.cy,d=null,p=null;if(this.props.svg||this.props.viewGenerator){var y=u?n/10:n.height/10,v=u?n/10:n.width/10,g=v/2,m=y/2,_="translate(".concat(g,",").concat(m,")");d=r.default.createElement("text",s({},e,{transform:_}),this.props.label),p=this.props.viewGenerator&&!this.props.overrideGlobalViewGenerator?r.default.createElement("svg",s({},t,{width:v,height:y}),r.default.createElement("foreignObject",{x:"0",y:"0",width:"100%",height:"100%"},r.default.createElement("section",{style:{height:y,width:v,backgroundColor:"transparent"}},this.props.viewGenerator(this.props)))):r.default.createElement("image",s({},t,{href:this.props.svg,width:v,height:y})),f-=g,h-=m}else u||((0,a.logWarning)("node.size should be a number when not using custom nodes."),n=o.default.DEFAULT_NODE_SIZE),t.d=i.default.buildSvgSymbol(n,this.props.type),t.fill=this.props.fill,t.stroke=this.props.stroke,t.strokeWidth=this.props.strokeWidth,d=r.default.createElement("text",e,this.props.label),p=r.default.createElement("path",t);var w={className:this.props.className,cx:this.props.cx,cy:this.props.cy,id:this.props.id,transform:"translate(".concat(f,",").concat(h,")")};return r.default.createElement("g",w,p,this.props.renderLabel&&d)}}])&&h(n.prototype,u),g&&h(n,g),e}(r.default.Component);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(32)),i=o(n(40));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({ARC:{START_ANGLE:0,END_ANGLE:2*Math.PI},DEFAULT_NODE_SIZE:r.default.node.size,NODE_LABEL_DX:".90em",NODE_LABEL_DY:".35em"},i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMarkerSize=function(t){var e=i.MARKER_SMALL_SIZE,n=e+i.MARKER_MEDIUM_OFFSET*t.maxZoom/3,r=e+i.MARKER_LARGE_OFFSET*t.maxZoom/3;if(t.node&&!t.node.viewGenerator)switch(t.node.symbolType){case o.default.SYMBOLS.CIRCLE:e=0,n=0,r=0}return{small:e,medium:n,large:r}},e.getMarkerId=void 0;var r,i=n(42),o=(r=n(21))&&r.__esModule?r:{default:r};function a(t,e,n){var r=n.maxZoom,o=function(t,e){return"MARKER_".concat(t).concat(e)}(function(t,e,n){return t<e?i.SIZES.S:t>=e&&t<n?i.SIZES.M:i.SIZES.L}(e,r/4,r/2),t?i.HIGHLIGHTED:"");return i.MARKERS[o]}var u=function(){var t={};return function(e,n,r){var i=r.maxZoom,o="".concat(e,";").concat(n,";").concat(i);if(t[o])return t[o];var u=a(e,n,{maxZoom:i});return t[o]=u,u}}();e.getMarkerId=u},function(t,e,n){"use strict";n.r(e),n.d(e,"zoom",(function(){return pe})),n.d(e,"zoomTransform",(function(){return oe})),n.d(e,"zoomIdentity",(function(){return ie}));var r=n(77),i=n(18),o=Math.SQRT2;function a(t){return((t=Math.exp(t))+1/t)/2}var u=function(t,e){var n,r,i=t[0],u=t[1],s=t[2],c=e[0],l=e[1],f=e[2],h=c-i,d=l-u,p=h*h+d*d;if(p<1e-12)r=Math.log(f/s)/o,n=function(t){return[i+t*h,u+t*d,s*Math.exp(o*t*r)]};else{var y=Math.sqrt(p),v=(f*f-s*s+4*p)/(2*s*2*y),b=(f*f-s*s-4*p)/(2*f*2*y),g=Math.log(Math.sqrt(v*v+1)-v),m=Math.log(Math.sqrt(b*b+1)-b);r=(m-g)/o,n=function(t){var e,n=t*r,c=a(g),l=s/(2*y)*(c*(e=o*n+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+l*h,u+l*d,s*c/a(o*n+g)]}}return n.duration=1e3*r,n},s=n(8),c=n(38),l=n(20),f=n(39),h=n(9),d=n(54),p=function(t,e,n){var r=new d.a;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},y=Object(r.a)("start","end","cancel","interrupt"),v=[],b=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(s){var c,l,f,h;if(1!==n.state)return u();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return p(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[c])}if(p((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),c=0,l=-1;c<f;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Object(d.c)((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:y,tween:v,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function g(t,e){var n=_(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function m(t,e){var n=_(t,e);if(n.state>3)throw new Error("too late; already running");return n}function _(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var w,k,x,O,S=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},T=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},E=180/Math.PI,j={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},A=function(t,e,n,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*E,skewX:Math.atan(s)*E,scaleX:a,scaleY:u}};function I(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],s=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,e,null,n);u.push({i:s-4,x:T(t,i)},{i:s-2,x:T(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,s),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:T(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,s),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:T(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,s),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:T(t,n)},{i:u-2,x:T(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,s),o=a=null,function(t){for(var e,n=-1,r=s.length;++n<r;)u[(e=s[n]).i]=e.x(t);return u.join("")}}}var C=I((function(t){return"none"===t?j:(w||(w=document.createElement("DIV"),k=document.documentElement,x=document.defaultView),w.style.transform=t,t=x.getComputedStyle(k.appendChild(w),null).getPropertyValue("transform"),k.removeChild(w),t=t.slice(7,-1).split(","),A(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),N=I((function(t){return null==t?j:(O||(O=document.createElementNS("http://www.w3.org/2000/svg","g")),O.setAttribute("transform",t),(t=O.transform.baseVal.consolidate())?(t=t.matrix,A(t.a,t.b,t.c,t.d,t.e,t.f)):j)}),", ",")",")"),D=n(16);function M(t,e){var n,r;return function(){var i=m(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function L(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=m(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===e){i[s]=u;break}s===c&&i.push(u)}o.tween=i}}function B(t,e,n){var r=t._id;return t.each((function(){var t=m(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return _(t,r).value[e]}}var P=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function F(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function R(){}var U="\\s*([+-]?\\d+)\\s*",z="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",V="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",H=/^#([0-9a-f]{3,8})$/,W=new RegExp("^rgb\\("+[U,U,U]+"\\)$"),q=new RegExp("^rgb\\("+[V,V,V]+"\\)$"),Y=new RegExp("^rgba\\("+[U,U,U,z]+"\\)$"),$=new RegExp("^rgba\\("+[V,V,V,z]+"\\)$"),G=new RegExp("^hsl\\("+[z,V,V]+"\\)$"),K=new RegExp("^hsla\\("+[z,V,V,z]+"\\)$"),X={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Q(){return this.rgb().formatHex()}function Z(){return this.rgb().formatRgb()}function J(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=H.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?tt(e):3===n?new it(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?et(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?et(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=W.exec(t))?new it(e[1],e[2],e[3],1):(e=q.exec(t))?new it(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Y.exec(t))?et(e[1],e[2],e[3],e[4]):(e=$.exec(t))?et(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=G.exec(t))?st(e[1],e[2]/100,e[3]/100,1):(e=K.exec(t))?st(e[1],e[2]/100,e[3]/100,e[4]):X.hasOwnProperty(t)?tt(X[t]):"transparent"===t?new it(NaN,NaN,NaN,0):null}function tt(t){return new it(t>>16&255,t>>8&255,255&t,1)}function et(t,e,n,r){return r<=0&&(t=e=n=NaN),new it(t,e,n,r)}function nt(t){return t instanceof R||(t=J(t)),t?new it((t=t.rgb()).r,t.g,t.b,t.opacity):new it}function rt(t,e,n,r){return 1===arguments.length?nt(t):new it(t,e,n,null==r?1:r)}function it(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ot(){return"#"+ut(this.r)+ut(this.g)+ut(this.b)}function at(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ut(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function st(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lt(t,e,n,r)}function ct(t){if(t instanceof lt)return new lt(t.h,t.s,t.l,t.opacity);if(t instanceof R||(t=J(t)),!t)return new lt;if(t instanceof lt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new lt(a,u,s,t.opacity)}function lt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ft(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function ht(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}P(R,J,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Q,formatHex:Q,formatHsl:function(){return ct(this).formatHsl()},formatRgb:Z,toString:Z}),P(it,rt,F(R,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new it(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new it(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ot,formatHex:ot,formatRgb:at,toString:at})),P(lt,(function(t,e,n,r){return 1===arguments.length?ct(t):new lt(t,e,n,null==r?1:r)}),F(R,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new lt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new lt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new it(ft(t>=240?t-240:t+120,i,r),ft(t,i,r),ft(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var dt=function(t){return function(){return t}};function pt(t,e){return function(n){return t+n*e}}function yt(t){return 1===(t=+t)?vt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):dt(isNaN(e)?n:e)}}function vt(t,e){var n=e-t;return n?pt(t,n):dt(isNaN(t)?e:t)}var bt=function t(e){var n=yt(e);function r(t,e){var r=n((t=rt(t)).r,(e=rt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=vt(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function gt(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=rt(e[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}gt((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return ht((n-r/e)*e,a,i,o,u)}})),gt((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return ht((n-r/e)*e,i,o,a,u)}}));var mt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_t=new RegExp(mt.source,"g");var wt=function(t,e){var n,r,i,o=mt.lastIndex=_t.lastIndex=0,a=-1,u=[],s=[];for(t+="",e+="";(n=mt.exec(t))&&(r=_t.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:T(n,r)})),o=_t.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})},kt=function(t,e){var n;return("number"===typeof e?T:e instanceof J?bt:(n=J(e))?(e=n,bt):wt)(t,e)};function xt(t){return function(){this.removeAttribute(t)}}function Ot(t){return function(){this.removeAttributeNS(t.space,t.local)}}function St(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function Tt(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Et(t,e,n){var r,i,o;return function(){var a,u,s=n(this);if(null!=s)return(a=this.getAttribute(t))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s));this.removeAttribute(t)}}function jt(t,e,n){var r,i,o;return function(){var a,u,s=n(this);if(null!=s)return(a=this.getAttributeNS(t.space,t.local))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s));this.removeAttributeNS(t.space,t.local)}}function At(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function It(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Ct(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&It(t,i)),n}return i._value=e,i}function Nt(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&At(t,i)),n}return i._value=e,i}function Dt(t,e){return function(){g(this,t).delay=+e.apply(this,arguments)}}function Mt(t,e){return e=+e,function(){g(this,t).delay=e}}function Lt(t,e){return function(){m(this,t).duration=+e.apply(this,arguments)}}function Bt(t,e){return e=+e,function(){m(this,t).duration=e}}function Pt(t,e){if("function"!==typeof e)throw new Error;return function(){m(this,t).ease=e}}var Ft=n(26);function Rt(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?g:m;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}var Ut=n(15),zt=n(25),Vt=h.b.prototype.constructor,Ht=n(27);function Wt(t){return function(){this.style.removeProperty(t)}}function qt(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Yt(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&qt(t,o,n)),r}return o._value=e,o}function $t(t){return function(e){this.textContent=t.call(this,e)}}function Gt(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&$t(r)),e}return r._value=t,r}var Kt=0;function Xt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Qt(){return++Kt}var Zt=h.b.prototype;Xt.prototype=function(t){return Object(h.b)().transition(t)}.prototype={constructor:Xt,select:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Object(Ut.a)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,c=r[a],l=c.length,f=o[a]=new Array(l),h=0;h<l;++h)(u=c[h])&&(s=t.call(u,u.__data__,h,c))&&("__data__"in u&&(s.__data__=u.__data__),f[h]=s,b(f[h],e,n,h,f,_(u,n)));return new Xt(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Object(zt.a)(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,c=r[u],l=c.length,f=0;f<l;++f)if(s=c[f]){for(var h,d=t.call(s,s.__data__,f,c),p=_(s,n),y=0,v=d.length;y<v;++y)(h=d[y])&&b(h,e,n,y,d,p);o.push(d),a.push(s)}return new Xt(o,a,e,n)},filter:function(t){"function"!==typeof t&&(t=Object(Ft.a)(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new Xt(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=e[u],l=n[u],f=c.length,h=a[u]=new Array(f),d=0;d<f;++d)(s=c[d]||l[d])&&(h[d]=s);for(;u<r;++u)a[u]=e[u];return new Xt(a,this._parents,this._name,this._id)},selection:function(){return new Vt(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Qt(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)if(a=u[c]){var l=_(a,e);b(a,t,n,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Xt(r,this._parents,t,n)},call:Zt.call,nodes:Zt.nodes,node:Zt.node,size:Zt.size,empty:Zt.empty,each:Zt.each,on:function(t,e){var n=this._id;return arguments.length<2?_(this.node(),n).on.on(t):this.each(Rt(n,t,e))},attr:function(t,e){var n=Object(D.a)(t),r="transform"===n?N:kt;return this.attrTween(t,"function"===typeof e?(n.local?jt:Et)(n,r,B(this,"attr."+t,e)):null==e?(n.local?Ot:xt)(n):(n.local?Tt:St)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=Object(D.a)(t);return this.tween(n,(r.local?Ct:Nt)(r,e))},style:function(t,e,n){var r="transform"===(t+="")?C:kt;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Object(Ht.b)(this,t),a=(this.style.removeProperty(t),Object(Ht.b)(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,Wt(t)):"function"===typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=Object(Ht.b)(this,t),u=n(this),s=u+"";return null==u&&(this.style.removeProperty(t),s=u=Object(Ht.b)(this,t)),a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u))}}(t,r,B(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var s=m(this,t),c=s.on,l=null==s.value[a]?o||(o=Wt(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(u,i=l),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=Object(Ht.b)(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,Yt(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"===typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(B(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,Gt(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=_(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?M:L)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Dt:Mt)(e,t)):_(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Lt:Bt)(e,t)):_(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Pt(e,t)):_(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var u={value:a},s={value:function(){0===--i&&o()}};n.each((function(){var n=m(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(s)),n.on=e}))}))}};var Jt={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function te(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Jt.time=Object(d.b)(),Jt;return n}h.b.prototype.interrupt=function(t){return this.each((function(){S(this,t)}))},h.b.prototype.transition=function(t){var e,n;t instanceof Xt?(e=t._id,t=t._name):(e=Qt(),(n=Jt).time=Object(d.b)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)(a=u[c])&&b(a,t,e,c,u,n||te(a,e));return new Xt(r,this._parents,t,e)};var ee=function(t){return function(){return t}};function ne(t,e,n){this.target=t,this.type=e,this.transform=n}function re(t,e,n){this.k=t,this.x=e,this.y=n}re.prototype={constructor:re,scale:function(t){return 1===t?this:new re(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new re(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ie=new re(1,0,0);function oe(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ie;return t.__zoom}function ae(){s.c.stopImmediatePropagation()}oe.prototype=re.prototype;var ue=function(){s.c.preventDefault(),s.c.stopImmediatePropagation()};function se(){return!s.c.ctrlKey&&!s.c.button}function ce(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function le(){return this.__zoom||ie}function fe(){return-s.c.deltaY*(1===s.c.deltaMode?.05:s.c.deltaMode?1:.002)}function he(){return navigator.maxTouchPoints||"ontouchstart"in this}function de(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var pe=function(){var t,e,n=se,o=ce,a=de,h=fe,d=he,p=[0,1/0],y=[[-1/0,-1/0],[1/0,1/0]],v=250,b=u,g=Object(r.a)("start","zoom","end"),m=0;function _(t){t.property("__zoom",le).on("wheel.zoom",j).on("mousedown.zoom",A).on("dblclick.zoom",I).filter(d).on("touchstart.zoom",C).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(t,e){return(e=Math.max(p[0],Math.min(p[1],e)))===t.k?t:new re(e,t.x,t.y)}function k(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new re(t.k,r,i)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function O(t,e,n){t.on("start.zoom",(function(){T(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){T(this,arguments).end()})).tween("zoom",(function(){var t=this,r=arguments,i=T(t,r),a=o.apply(t,r),u=null==n?x(a):"function"===typeof n?n.apply(t,r):n,s=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=t.__zoom,l="function"===typeof e?e.apply(t,r):e,f=b(c.invert(u).concat(s/c.k),l.invert(u).concat(s/l.k));return function(t){if(1===t)t=l;else{var e=f(t),n=s/e[2];t=new re(n,u[0]-e[0]*n,u[1]-e[1]*n)}i.zoom(null,t)}}))}function T(t,e,n){return!n&&t.__zooming||new E(t,e)}function E(t,e){this.that=t,this.args=e,this.active=0,this.extent=o.apply(t,e),this.taps=0}function j(){if(n.apply(this,arguments)){var t=T(this,arguments),e=this.__zoom,r=Math.max(p[0],Math.min(p[1],e.k*Math.pow(2,h.apply(this,arguments)))),i=Object(c.a)(this);if(t.wheel)t.mouse[0][0]===i[0]&&t.mouse[0][1]===i[1]||(t.mouse[1]=e.invert(t.mouse[0]=i)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[i,e.invert(i)],S(this),t.start()}ue(),t.wheel=setTimeout(o,150),t.zoom("mouse",a(k(w(e,r),t.mouse[0],t.mouse[1]),t.extent,y))}function o(){t.wheel=null,t.end()}}function A(){if(!e&&n.apply(this,arguments)){var t=T(this,arguments,!0),r=Object(l.a)(s.c.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",d,!0),o=Object(c.a)(this),u=s.c.clientX,f=s.c.clientY;Object(i.a)(s.c.view),ae(),t.mouse=[o,this.__zoom.invert(o)],S(this),t.start()}function h(){if(ue(),!t.moved){var e=s.c.clientX-u,n=s.c.clientY-f;t.moved=e*e+n*n>m}t.zoom("mouse",a(k(t.that.__zoom,t.mouse[0]=Object(c.a)(t.that),t.mouse[1]),t.extent,y))}function d(){r.on("mousemove.zoom mouseup.zoom",null),Object(i.b)(s.c.view,t.moved),ue(),t.end()}}function I(){if(n.apply(this,arguments)){var t=this.__zoom,e=Object(c.a)(this),r=t.invert(e),i=t.k*(s.c.shiftKey?.5:2),u=a(k(w(t,i),e,r),o.apply(this,arguments),y);ue(),v>0?Object(l.a)(this).transition().duration(v).call(O,u,e):Object(l.a)(this).call(_.transform,u)}}function C(){if(n.apply(this,arguments)){var e,r,i,o,a=s.c.touches,u=a.length,c=T(this,arguments,s.c.changedTouches.length===u);for(ae(),r=0;r<u;++r)i=a[r],o=[o=Object(f.a)(this,a,i.identifier),this.__zoom.invert(o),i.identifier],c.touch0?c.touch1||c.touch0[2]===o[2]||(c.touch1=o,c.taps=0):(c.touch0=o,e=!0,c.taps=1+!!t);t&&(t=clearTimeout(t)),e&&(c.taps<2&&(t=setTimeout((function(){t=null}),500)),S(this),c.start())}}function N(){if(this.__zooming){var e,n,r,i,o=T(this,arguments),u=s.c.changedTouches,c=u.length;for(ue(),t&&(t=clearTimeout(t)),o.taps=0,e=0;e<c;++e)n=u[e],r=Object(f.a)(this,u,n.identifier),o.touch0&&o.touch0[2]===n.identifier?o.touch0[0]=r:o.touch1&&o.touch1[2]===n.identifier&&(o.touch1[0]=r);if(n=o.that.__zoom,o.touch1){var l=o.touch0[0],h=o.touch0[1],d=o.touch1[0],p=o.touch1[1],v=(v=d[0]-l[0])*v+(v=d[1]-l[1])*v,b=(b=p[0]-h[0])*b+(b=p[1]-h[1])*b;n=w(n,Math.sqrt(v/b)),r=[(l[0]+d[0])/2,(l[1]+d[1])/2],i=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!o.touch0)return;r=o.touch0[0],i=o.touch0[1]}o.zoom("touch",a(k(n,r,i),o.extent,y))}}function D(){if(this.__zooming){var t,n,r=T(this,arguments),i=s.c.changedTouches,o=i.length;for(ae(),e&&clearTimeout(e),e=setTimeout((function(){e=null}),500),t=0;t<o;++t)n=i[t],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var a=Object(l.a)(this).on("dblclick.zoom");a&&a.apply(this,arguments)}}}return _.transform=function(t,e,n){var r=t.selection?t.selection():t;r.property("__zoom",le),t!==r?O(t,e,n):r.interrupt().each((function(){T(this,arguments).start().zoom(null,"function"===typeof e?e.apply(this,arguments):e).end()}))},_.scaleBy=function(t,e,n){_.scaleTo(t,(function(){var t=this.__zoom.k,n="function"===typeof e?e.apply(this,arguments):e;return t*n}),n)},_.scaleTo=function(t,e,n){_.transform(t,(function(){var t=o.apply(this,arguments),r=this.__zoom,i=null==n?x(t):"function"===typeof n?n.apply(this,arguments):n,u=r.invert(i),s="function"===typeof e?e.apply(this,arguments):e;return a(k(w(r,s),i,u),t,y)}),n)},_.translateBy=function(t,e,n){_.transform(t,(function(){return a(this.__zoom.translate("function"===typeof e?e.apply(this,arguments):e,"function"===typeof n?n.apply(this,arguments):n),o.apply(this,arguments),y)}))},_.translateTo=function(t,e,n,r){_.transform(t,(function(){var t=o.apply(this,arguments),i=this.__zoom,u=null==r?x(t):"function"===typeof r?r.apply(this,arguments):r;return a(ie.translate(u[0],u[1]).scale(i.k).translate("function"===typeof e?-e.apply(this,arguments):-e,"function"===typeof n?-n.apply(this,arguments):-n),t,y)}),r)},E.prototype={start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){Object(s.a)(new ne(_,t,this.that.__zoom),g.apply,g,[t,this.that,this.args])}},_.wheelDelta=function(t){return arguments.length?(h="function"===typeof t?t:ee(+t),_):h},_.filter=function(t){return arguments.length?(n="function"===typeof t?t:ee(!!t),_):n},_.touchable=function(t){return arguments.length?(d="function"===typeof t?t:ee(!!t),_):d},_.extent=function(t){return arguments.length?(o="function"===typeof t?t:ee([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),_):o},_.scaleExtent=function(t){return arguments.length?(p[0]=+t[0],p[1]=+t[1],_):[p[0],p[1]]},_.translateExtent=function(t){return arguments.length?(y[0][0]=+t[0][0],y[1][0]=+t[1][0],y[0][1]=+t[0][1],y[1][1]=+t[1][1],_):[[y[0][0],y[0][1]],[y[1][0],y[1][1]]]},_.constrain=function(t){return arguments.length?(a=t,_):a},_.duration=function(t){return arguments.length?(v=+t,_):v},_.interpolate=function(t){return arguments.length?(b=t,_):b},_.on=function(){var t=g.on.apply(g,arguments);return t===g?_:t},_.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,_):Math.sqrt(m)},_}},function(t,e,n){"use strict";n.r(e),n.d(e,"forceCenter",(function(){return r})),n.d(e,"forceCollide",(function(){return v})),n.d(e,"forceLink",(function(){return S})),n.d(e,"forceManyBody",(function(){return N})),n.d(e,"forceRadial",(function(){return D})),n.d(e,"forceSimulation",(function(){return C})),n.d(e,"forceX",(function(){return M})),n.d(e,"forceY",(function(){return L}));var r=function(t,e){var n;function r(){var r,i,o=n.length,a=0,u=0;for(r=0;r<o;++r)a+=(i=n[r]).x,u+=i.y;for(a=a/o-t,u=u/o-e,r=0;r<o;++r)(i=n[r]).x-=a,i.y-=u}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r},i=function(t){return function(){return t}},o=function(){return 1e-6*(Math.random()-.5)};function a(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,u,s,c,l,f,h,d=t._root,p={data:r},y=t._x0,v=t._y0,b=t._x1,g=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=e>=(o=(y+b)/2))?y=o:b=o,(l=n>=(a=(v+g)/2))?v=a:g=a,i=d,!(d=d[f=l<<1|c]))return i[f]=p,t;if(u=+t._x.call(null,d.data),s=+t._y.call(null,d.data),e===u&&n===s)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e>=(o=(y+b)/2))?y=o:b=o,(l=n>=(a=(v+g)/2))?v=a:g=a}while((f=l<<1|c)===(h=(s>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}var u=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function s(t){return t[0]}function c(t){return t[1]}function l(t,e,n){var r=new f(null==e?s:e,null==n?c:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function f(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function h(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var d=l.prototype=f.prototype;function p(t){return t.x+t.vx}function y(t){return t.y+t.vy}d.copy=function(){var t,e,n=new f(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=h(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=h(e));return n},d.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return a(this.cover(e,n),e,n,t)},d.addAll=function(t){var e,n,r,i,o=t.length,u=new Array(o),s=new Array(o),c=1/0,l=1/0,f=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(u[n]=r,s[n]=i,r<c&&(c=r),r>f&&(f=r),i<l&&(l=i),i>h&&(h=i));if(c>f||l>h)return this;for(this.cover(c,l).cover(f,h),n=0;n<o;++n)a(this,u[n],s[n],t[n]);return this},d.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,u,s=i-n,c=this._root;n>t||t>=i||r>e||e>=o;)switch(u=(e<r)<<1|t<n,(a=new Array(4))[u]=c,c=a,s*=2,u){case 0:i=n+s,o=r+s;break;case 1:n=i-s,o=r+s;break;case 2:i=n+s,r=o-s;break;case 3:n=i-s,r=o-s}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},d.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},d.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},d.find=function(t,e,n){var r,i,o,a,s,c,l,f=this._x0,h=this._y0,d=this._x1,p=this._y1,y=[],v=this._root;for(v&&y.push(new u(v,f,h,d,p)),null==n?n=1/0:(f=t-n,h=e-n,d=t+n,p=e+n,n*=n);c=y.pop();)if(!(!(v=c.node)||(i=c.x0)>d||(o=c.y0)>p||(a=c.x1)<f||(s=c.y1)<h))if(v.length){var b=(i+a)/2,g=(o+s)/2;y.push(new u(v[3],b,g,a,s),new u(v[2],i,g,b,s),new u(v[1],b,o,a,g),new u(v[0],i,o,b,g)),(l=(e>=g)<<1|t>=b)&&(c=y[y.length-1],y[y.length-1]=y[y.length-1-l],y[y.length-1-l]=c)}else{var m=t-+this._x.call(null,v.data),_=e-+this._y.call(null,v.data),w=m*m+_*_;if(w<n){var k=Math.sqrt(n=w);f=t-k,h=e-k,d=t+k,p=e+k,r=v.data}}return r},d.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,u,s,c,l,f,h,d=this._root,p=this._x0,y=this._y0,v=this._x1,b=this._y1;if(!d)return this;if(d.length)for(;;){if((c=o>=(u=(p+v)/2))?p=u:v=u,(l=a>=(s=(y+b)/2))?y=s:b=s,e=d,!(d=d[f=l<<1|c]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},d.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},d.root=function(){return this._root},d.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},d.visit=function(t){var e,n,r,i,o,a,s=[],c=this._root;for(c&&s.push(new u(c,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,o=e.x1,a=e.y1)&&c.length){var l=(r+o)/2,f=(i+a)/2;(n=c[3])&&s.push(new u(n,l,f,o,a)),(n=c[2])&&s.push(new u(n,r,f,l,a)),(n=c[1])&&s.push(new u(n,l,i,o,f)),(n=c[0])&&s.push(new u(n,r,i,l,f))}return this},d.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new u(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,a=e.x0,s=e.y0,c=e.x1,l=e.y1,f=(a+c)/2,h=(s+l)/2;(o=i[0])&&n.push(new u(o,a,s,f,h)),(o=i[1])&&n.push(new u(o,f,s,c,h)),(o=i[2])&&n.push(new u(o,a,h,f,l)),(o=i[3])&&n.push(new u(o,f,h,c,l))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},d.x=function(t){return arguments.length?(this._x=t,this):this._x},d.y=function(t){return arguments.length?(this._y=t,this):this._y};var v=function(t){var e,n,r=1,a=1;function u(){for(var t,i,u,c,f,h,d,v=e.length,b=0;b<a;++b)for(i=l(e,p,y).visitAfter(s),t=0;t<v;++t)u=e[t],h=n[u.index],d=h*h,c=u.x+u.vx,f=u.y+u.vy,i.visit(g);function g(t,e,n,i,a){var s=t.data,l=t.r,p=h+l;if(!s)return e>c+p||i<c-p||n>f+p||a<f-p;if(s.index>u.index){var y=c-s.x-s.vx,v=f-s.y-s.vy,b=y*y+v*v;b<p*p&&(0===y&&(b+=(y=o())*y),0===v&&(b+=(v=o())*v),b=(p-(b=Math.sqrt(b)))/b*r,u.vx+=(y*=b)*(p=(l*=l)/(d+l)),u.vy+=(v*=b)*p,s.vx-=y*(p=1-p),s.vy-=v*p)}}}function s(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function c(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!==typeof t&&(t=i(null==t?1:+t)),u.initialize=function(t){e=t,c()},u.iterations=function(t){return arguments.length?(a=+t,u):a},u.strength=function(t){return arguments.length?(r=+t,u):r},u.radius=function(e){return arguments.length?(t="function"===typeof e?e:i(+e),c(),u):t},u};function b(){}function g(t,e){var n=new b;if(t instanceof b)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}b.prototype=g.prototype={constructor:b,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var m=g;function _(){}var w=m.prototype;function k(t,e){var n=new _;if(t instanceof _)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}_.prototype=k.prototype={constructor:_,has:w.has,add:function(t){return this["$"+(t+="")]=t,this},remove:w.remove,clear:w.clear,values:w.keys,size:w.size,empty:w.empty,each:w.each};function x(t){return t.index}function O(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}var S=function(t){var e,n,r,a,u,s=x,c=function(t){return 1/Math.min(a[t.source.index],a[t.target.index])},l=i(30),f=1;function h(r){for(var i=0,a=t.length;i<f;++i)for(var s,c,l,h,d,p,y,v=0;v<a;++v)c=(s=t[v]).source,h=(l=s.target).x+l.vx-c.x-c.vx||o(),d=l.y+l.vy-c.y-c.vy||o(),h*=p=((p=Math.sqrt(h*h+d*d))-n[v])/p*r*e[v],d*=p,l.vx-=h*(y=u[v]),l.vy-=d*y,c.vx+=h*(y=1-y),c.vy+=d*y}function d(){if(r){var i,o,c=r.length,l=t.length,f=m(r,s);for(i=0,a=new Array(c);i<l;++i)(o=t[i]).index=i,"object"!==typeof o.source&&(o.source=O(f,o.source)),"object"!==typeof o.target&&(o.target=O(f,o.target)),a[o.source.index]=(a[o.source.index]||0)+1,a[o.target.index]=(a[o.target.index]||0)+1;for(i=0,u=new Array(l);i<l;++i)o=t[i],u[i]=a[o.source.index]/(a[o.source.index]+a[o.target.index]);e=new Array(l),p(),n=new Array(l),y()}}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}function y(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+l(t[e],e,t)}return null==t&&(t=[]),h.initialize=function(t){r=t,d()},h.links=function(e){return arguments.length?(t=e,d(),h):t},h.id=function(t){return arguments.length?(s=t,h):s},h.iterations=function(t){return arguments.length?(f=+t,h):f},h.strength=function(t){return arguments.length?(c="function"===typeof t?t:i(+t),p(),h):c},h.distance=function(t){return arguments.length?(l="function"===typeof t?t:i(+t),y(),h):l},h},T=n(77),E=n(54);function j(t){return t.x}function A(t){return t.y}var I=Math.PI*(3-Math.sqrt(5)),C=function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=m(),s=Object(E.c)(l),c=Object(T.a)("tick","end");function l(){f(),c.call("tick",e),n<r&&(s.stop(),c.call("end",e))}function f(r){var s,c,l=t.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(n+=(o-n)*i,u.each((function(t){t(n)})),s=0;s<l;++s)null==(c=t[s]).fx?c.x+=c.vx*=a:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=a:(c.y=c.fy,c.vy=0);return e}function h(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(n),o=n*I;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),h(),e={tick:f,restart:function(){return s.restart(l),e},stop:function(){return s.stop(),e},nodes:function(n){return arguments.length?(t=n,h(),u.each(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},force:function(t,n){return arguments.length>1?(null==n?u.remove(t):u.set(t,d(n)),e):u.get(t)},find:function(e,n,r){var i,o,a,u,s,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)(a=(i=e-(u=t[c]).x)*i+(o=n-u.y)*o)<r&&(s=u,r=a);return s},on:function(t,n){return arguments.length>1?(c.on(t,n),e):c.on(t)}}},N=function(){var t,e,n,r,a=i(-30),u=1,s=1/0,c=.81;function f(r){var i,o=t.length,a=l(t,j,A).visitAfter(d);for(n=r,i=0;i<o;++i)e=t[i],a.visit(p)}function h(){if(t){var e,n,i=t.length;for(r=new Array(i),e=0;e<i;++e)n=t[e],r[n.index]=+a(n,e,t)}}function d(t){var e,n,i,o,a,u=0,s=0;if(t.length){for(i=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(u+=e.value,s+=n,i+=n*e.x,o+=n*e.y);t.x=i/s,t.y=o/s}else{(e=t).x=e.data.x,e.y=e.data.y;do{u+=r[e.data.index]}while(e=e.next)}t.value=u}function p(t,i,a,l){if(!t.value)return!0;var f=t.x-e.x,h=t.y-e.y,d=l-i,p=f*f+h*h;if(d*d/c<p)return p<s&&(0===f&&(p+=(f=o())*f),0===h&&(p+=(h=o())*h),p<u&&(p=Math.sqrt(u*p)),e.vx+=f*t.value*n/p,e.vy+=h*t.value*n/p),!0;if(!(t.length||p>=s)){(t.data!==e||t.next)&&(0===f&&(p+=(f=o())*f),0===h&&(p+=(h=o())*h),p<u&&(p=Math.sqrt(u*p)));do{t.data!==e&&(d=r[t.data.index]*n/p,e.vx+=f*d,e.vy+=h*d)}while(t=t.next)}}return f.initialize=function(e){t=e,h()},f.strength=function(t){return arguments.length?(a="function"===typeof t?t:i(+t),h(),f):a},f.distanceMin=function(t){return arguments.length?(u=t*t,f):Math.sqrt(u)},f.distanceMax=function(t){return arguments.length?(s=t*t,f):Math.sqrt(s)},f.theta=function(t){return arguments.length?(c=t*t,f):Math.sqrt(c)},f},D=function(t,e,n){var r,o,a,u=i(.1);function s(t){for(var i=0,u=r.length;i<u;++i){var s=r[i],c=s.x-e||1e-6,l=s.y-n||1e-6,f=Math.sqrt(c*c+l*l),h=(a[i]-f)*o[i]*t/f;s.vx+=c*h,s.vy+=l*h}}function c(){if(r){var e,n=r.length;for(o=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(r[e],e,r),o[e]=isNaN(a[e])?0:+u(r[e],e,r)}}return"function"!==typeof t&&(t=i(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,c()},s.strength=function(t){return arguments.length?(u="function"===typeof t?t:i(+t),c(),s):u},s.radius=function(e){return arguments.length?(t="function"===typeof e?e:i(+e),c(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s},M=function(t){var e,n,r,o=i(.1);function a(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function u(){if(e){var i,a=e.length;for(n=new Array(a),r=new Array(a),i=0;i<a;++i)n[i]=isNaN(r[i]=+t(e[i],i,e))?0:+o(e[i],i,e)}}return"function"!==typeof t&&(t=i(null==t?0:+t)),a.initialize=function(t){e=t,u()},a.strength=function(t){return arguments.length?(o="function"===typeof t?t:i(+t),u(),a):o},a.x=function(e){return arguments.length?(t="function"===typeof e?e:i(+e),u(),a):t},a},L=function(t){var e,n,r,o=i(.1);function a(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function u(){if(e){var i,a=e.length;for(n=new Array(a),r=new Array(a),i=0;i<a;++i)n[i]=isNaN(r[i]=+t(e[i],i,e))?0:+o(e[i],i,e)}}return"function"!==typeof t&&(t=i(null==t?0:+t)),a.initialize=function(t){e=t,u()},a.strength=function(t){return arguments.length?(o="function"===typeof t?t:i(+t),u(),a):o},a.y=function(e){return arguments.length?(t="function"===typeof e?e:i(+e),u(),a):t},a}},function(t,e,n){"use strict";n.r(e),n.d(e,"drag",(function(){return v})),n.d(e,"dragDisable",(function(){return s.a})),n.d(e,"dragEnable",(function(){return s.b}));var r=n(77),i=n(8),o=n(38),a=n(20),u=n(39),s=n(18),c=n(7),l=function(t){return function(){return t}};function f(t,e,n,r,i,o,a,u,s,c){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=u,this.dy=s,this._=c}function h(){return!i.c.ctrlKey&&!i.c.button}function d(){return this.parentNode}function p(t){return null==t?{x:i.c.x,y:i.c.y}:t}function y(){return navigator.maxTouchPoints||"ontouchstart"in this}f.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var v=function(){var t,e,n,v,b=h,g=d,m=p,_=y,w={},k=Object(r.a)("start","drag","end"),x=0,O=0;function S(t){t.on("mousedown.drag",T).filter(_).on("touchstart.drag",A).on("touchmove.drag",I).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function T(){if(!v&&b.apply(this,arguments)){var r=N("mouse",g.apply(this,arguments),o.a,this,arguments);r&&(Object(a.a)(i.c.view).on("mousemove.drag",E,!0).on("mouseup.drag",j,!0),Object(s.a)(i.c.view),Object(c.b)(),n=!1,t=i.c.clientX,e=i.c.clientY,r("start"))}}function E(){if(Object(c.a)(),!n){var r=i.c.clientX-t,o=i.c.clientY-e;n=r*r+o*o>O}w.mouse("drag")}function j(){Object(a.a)(i.c.view).on("mousemove.drag mouseup.drag",null),Object(s.b)(i.c.view,n),Object(c.a)(),w.mouse("end")}function A(){if(b.apply(this,arguments)){var t,e,n=i.c.changedTouches,r=g.apply(this,arguments),o=n.length;for(t=0;t<o;++t)(e=N(n[t].identifier,r,u.a,this,arguments))&&(Object(c.b)(),e("start"))}}function I(){var t,e,n=i.c.changedTouches,r=n.length;for(t=0;t<r;++t)(e=w[n[t].identifier])&&(Object(c.a)(),e("drag"))}function C(){var t,e,n=i.c.changedTouches,r=n.length;for(v&&clearTimeout(v),v=setTimeout((function(){v=null}),500),t=0;t<r;++t)(e=w[n[t].identifier])&&(Object(c.b)(),e("end"))}function N(t,e,n,r,o){var a,u,s,c=n(e,t),l=k.copy();if(Object(i.a)(new f(S,"beforestart",a,t,x,c[0],c[1],0,0,l),(function(){return null!=(i.c.subject=a=m.apply(r,o))&&(u=a.x-c[0]||0,s=a.y-c[1]||0,!0)})))return function h(d){var p,y=c;switch(d){case"start":w[t]=h,p=x++;break;case"end":delete w[t],--x;case"drag":c=n(e,t),p=x}Object(i.a)(new f(S,d,a,t,p,c[0]+u,c[1]+s,c[0]-y[0],c[1]-y[1],l),l.apply,l,[d,r,o])}}return S.filter=function(t){return arguments.length?(b="function"===typeof t?t:l(!!t),S):b},S.container=function(t){return arguments.length?(g="function"===typeof t?t:l(t),S):g},S.subject=function(t){return arguments.length?(m="function"===typeof t?t:l(t),S):m},S.touchable=function(t){return arguments.length?(_="function"===typeof t?t:l(!!t),S):_},S.on=function(){var t=k.on.apply(k,arguments);return t===k?S:t},S.clickDistance=function(t){return arguments.length?(O=(t=+t)*t,S):Math.sqrt(O)},S}},function(t,e,n){"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}}(),t.exports=n(60)},,function(t,e,n){"use strict";var r=n(64),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(t){return r.isMemo(t)?a:u[t.$$typeof]||i}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&t(e,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var u=s(e),y=s(n),v=0;v<a.length;++v){var b=a[v];if(!o[b]&&(!r||!r[b])&&(!y||!y[b])&&(!u||!u[b])){var g=h(n,b);try{c(e,b,g)}catch(m){}}}}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Graph",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Node",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Link",{enumerable:!0,get:function(){return o.default}});var r=a(n(67)),i=a(n(44)),o=a(n(43));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return y})),n.d(e,"c",(function(){return v}));var r,i,o=0,a=0,u=0,s=0,c=0,l=0,f="object"===typeof performance&&performance.now?performance:Date,h="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return c||(h(p),c=f.now()+l)}function p(){c=0}function y(){this._call=this._time=this._next=null}function v(t,e,n){var r=new y;return r.restart(t,e,n),r}function b(){c=(s=f.now())+l,o=a=0;try{!function(){d(),++o;for(var t,e=r;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}()}finally{o=0,function(){var t,e,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,m(o)}(),c=0}}function g(){var t=f.now(),e=t-s;e>1e3&&(l-=e,s=t)}function m(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(b,t-f.now()-l)),u&&(u=clearInterval(u))):(u||(s=f.now(),u=setInterval(g,1e3)),o=1,h(b)))}y.prototype=v.prototype={constructor:y,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,m()},stop:function(){this._call&&(this._call=null,this._time=1/0,m())}}},,,,,function(t,e,n){"use strict";var r=n(37),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,y=i?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function b(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function _(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||g}function w(){}function k(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||g}_.prototype.isReactComponent={},_.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error(b(85));this.updater.enqueueSetState(this,t,e,"setState")},_.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},w.prototype=_.prototype;var x=k.prototype=new w;x.constructor=k,r(x,_.prototype),x.isPureReactComponent=!0;var O={current:null},S=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function E(t,e,n){var r,i={},a=null,u=null;if(null!=e)for(r in void 0!==e.ref&&(u=e.ref),void 0!==e.key&&(a=""+e.key),e)S.call(e,r)&&!T.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:o,type:t,key:a,ref:u,props:i,_owner:O.current}}function j(t){return"object"===typeof t&&null!==t&&t.$$typeof===o}var A=/\/+/g,I=[];function C(t,e,n,r){if(I.length){var i=I.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function N(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>I.length&&I.push(t)}function D(t,e,n){return null==t?0:function t(e,n,r,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return r(i,e,""===n?"."+M(e,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=n+M(u=e[c],c);s+=t(u,l,r,i)}else if(null===e||"object"!==typeof e?l=null:l="function"===typeof(l=v&&e[v]||e["@@iterator"])?l:null,"function"===typeof l)for(e=l.call(e),c=0;!(u=e.next()).done;)s+=t(u=u.value,l=n+M(u,c++),r,i);else if("object"===u)throw r=""+e,Error(b(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return s}(t,"",e,n)}function M(t,e){return"object"===typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function L(t,e){t.func.call(t.context,e,t.count++)}function B(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?P(t,r,n,(function(t){return t})):null!=t&&(j(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(A,"$&/")+"/")+n)),r.push(t))}function P(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),D(t,B,e=C(e,o,r,i)),N(e)}var F={current:null};function R(){var t=F.current;if(null===t)throw Error(b(321));return t}var U={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return P(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;D(t,L,e=C(null,null,e,n)),N(e)},count:function(t){return D(t,(function(){return null}),null)},toArray:function(t){var e=[];return P(t,e,null,(function(t){return t})),e},only:function(t){if(!j(t))throw Error(b(143));return t}},e.Component=_,e.Fragment=u,e.Profiler=c,e.PureComponent=k,e.StrictMode=s,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(b(267,t));var i=r({},t.props),a=t.key,u=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(u=e.ref,s=O.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in e)S.call(e,l)&&!T.hasOwnProperty(l)&&(i[l]=void 0===e[l]&&void 0!==c?c[l]:e[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:t.type,key:a,ref:u,props:i,_owner:s}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:t},t.Consumer=t},e.createElement=E,e.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:h,render:t}},e.isValidElement=j,e.lazy=function(t){return{$$typeof:y,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:p,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return R().useCallback(t,e)},e.useContext=function(t,e){return R().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return R().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return R().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return R().useLayoutEffect(t,e)},e.useMemo=function(t,e){return R().useMemo(t,e)},e.useReducer=function(t,e,n){return R().useReducer(t,e,n)},e.useRef=function(t){return R().useRef(t)},e.useState=function(t){return R().useState(t)},e.version="16.14.0"},function(t,e,n){"use strict";var r=n(5),i=n(37),o=n(61);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function u(t,e,n,r,i,o,a,u,s){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(l){this.onError(l)}}var s=!1,c=null,l=!1,f=null,h={onError:function(t){s=!0,c=t}};function d(t,e,n,r,i,o,a,l,f){s=!1,c=null,u.apply(h,arguments)}var p=null,y=null,v=null;function b(t,e,n){var r=t.type||"unknown-event";t.currentTarget=v(n),function(t,e,n,r,i,o,u,h,p){if(d.apply(this,arguments),s){if(!s)throw Error(a(198));var y=c;s=!1,c=null,l||(l=!0,f=y)}}(r,e,void 0,t),t.currentTarget=null}var g=null,m={};function _(){if(g)for(var t in m){var e=m[t],n=g.indexOf(t);if(!(-1<n))throw Error(a(96,t));if(!k[n]){if(!e.extractEvents)throw Error(a(97,t));for(var r in k[n]=e,n=e.eventTypes){var i=void 0,o=n[r],u=e,s=r;if(x.hasOwnProperty(s))throw Error(a(99,s));x[s]=o;var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&w(c[i],u,s);i=!0}else o.registrationName?(w(o.registrationName,u,s),i=!0):i=!1;if(!i)throw Error(a(98,r,t))}}}}function w(t,e,n){if(O[t])throw Error(a(100,t));O[t]=e,S[t]=e.eventTypes[n].dependencies}var k=[],x={},O={},S={};function T(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!m.hasOwnProperty(e)||m[e]!==r){if(m[e])throw Error(a(102,e));m[e]=r,n=!0}}n&&_()}var E=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),j=null,A=null,I=null;function C(t){if(t=y(t)){if("function"!==typeof j)throw Error(a(280));var e=t.stateNode;e&&(e=p(e),j(t.stateNode,t.type,e))}}function N(t){A?I?I.push(t):I=[t]:A=t}function D(){if(A){var t=A,e=I;if(I=A=null,C(t),e)for(t=0;t<e.length;t++)C(e[t])}}function M(t,e){return t(e)}function L(t,e,n,r,i){return t(e,n,r,i)}function B(){}var P=M,F=!1,R=!1;function U(){null===A&&null===I||(B(),D())}function z(t,e,n){if(R)return t(e,n);R=!0;try{return P(t,e,n)}finally{R=!1,U()}}var V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,W={},q={};function Y(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){$[t]=new Y(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];$[e]=new Y(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){$[t]=new Y(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){$[t]=new Y(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){$[t]=new Y(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){$[t]=new Y(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){$[t]=new Y(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){$[t]=new Y(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){$[t]=new Y(t,5,!1,t.toLowerCase(),null,!1)}));var G=/[\-:]([a-z])/g;function K(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(G,K);$[e]=new Y(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(G,K);$[e]=new Y(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(G,K);$[e]=new Y(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){$[t]=new Y(t,1,!1,t.toLowerCase(),null,!1)})),$.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){$[t]=new Y(t,1,!1,t.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(t,e,n,r){var i=$.hasOwnProperty(e)?$[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null===e||"undefined"===typeof e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!H.call(q,t)||!H.call(W,t)&&(V.test(t)?q[t]=!0:(W[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"===typeof Symbol&&Symbol.for,tt=J?Symbol.for("react.element"):60103,et=J?Symbol.for("react.portal"):60106,nt=J?Symbol.for("react.fragment"):60107,rt=J?Symbol.for("react.strict_mode"):60108,it=J?Symbol.for("react.profiler"):60114,ot=J?Symbol.for("react.provider"):60109,at=J?Symbol.for("react.context"):60110,ut=J?Symbol.for("react.concurrent_mode"):60111,st=J?Symbol.for("react.forward_ref"):60112,ct=J?Symbol.for("react.suspense"):60113,lt=J?Symbol.for("react.suspense_list"):60120,ft=J?Symbol.for("react.memo"):60115,ht=J?Symbol.for("react.lazy"):60116,dt=J?Symbol.for("react.block"):60121,pt="function"===typeof Symbol&&Symbol.iterator;function yt(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=pt&&t[pt]||t["@@iterator"])?t:null}function vt(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case ct:return"Suspense";case lt:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case ot:return"Context.Provider";case st:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ft:return vt(t.type);case dt:return vt(t.render);case ht:if(t=1===t._status?t._result:null)return vt(t)}return null}function bt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=vt(t.type);n=null,r&&(n=vt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function gt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function mt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function _t(t){t._valueTracker||(t._valueTracker=function(t){var e=mt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function wt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=mt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function kt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function xt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=gt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Ot(t,e){null!=(e=e.checked)&&Q(t,"checked",e,!1)}function St(t,e){Ot(t,e);var n=gt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Et(t,e.type,n):e.hasOwnProperty("defaultValue")&&Et(t,e.type,gt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Tt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Et(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function jt(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function At(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+gt(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function It(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ct(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:gt(n)}}function Nt(t,e){var n=gt(e.value),r=gt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Dt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Mt="http://www.w3.org/1999/xhtml",Lt="http://www.w3.org/2000/svg";function Bt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Bt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Ft,Rt=function(t){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if(t.namespaceURI!==Lt||"innerHTML"in t)t.innerHTML=e;else{for((Ft=Ft||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ft.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Ut(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function zt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Vt={animationend:zt("Animation","AnimationEnd"),animationiteration:zt("Animation","AnimationIteration"),animationstart:zt("Animation","AnimationStart"),transitionend:zt("Transition","TransitionEnd")},Ht={},Wt={};function qt(t){if(Ht[t])return Ht[t];if(!Vt[t])return t;var e,n=Vt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Wt)return Ht[t]=n[e];return t}E&&(Wt=document.createElement("div").style,"AnimationEvent"in window||(delete Vt.animationend.animation,delete Vt.animationiteration.animation,delete Vt.animationstart.animation),"TransitionEvent"in window||delete Vt.transitionend.transition);var Yt=qt("animationend"),$t=qt("animationiteration"),Gt=qt("animationstart"),Kt=qt("transitionend"),Xt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qt=new("function"===typeof WeakMap?WeakMap:Map);function Zt(t){var e=Qt.get(t);return void 0===e&&(e=new Map,Qt.set(t,e)),e}function Jt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function te(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ee(t){if(Jt(t)!==t)throw Error(a(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Jt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ee(i),t;if(o===r)return ee(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=o;break}if(s===r){u=!0,r=i,n=o;break}s=s.sibling}if(!u){for(s=o.child;s;){if(s===n){u=!0,n=o,r=i;break}if(s===r){u=!0,r=o,n=i;break}s=s.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function re(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function ie(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var oe=null;function ae(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)b(t,e[r],n[r]);else e&&b(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function ue(t){if(null!==t&&(oe=re(oe,t)),t=oe,oe=null,t){if(ie(t,ae),oe)throw Error(a(95));if(l)throw t=f,l=!1,f=null,t}}function se(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function ce(t){if(!E)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"===typeof e[t]),e}var le=[];function fe(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>le.length&&le.push(t)}function he(t,e,n,r){if(le.length){var i=le.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function de(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=En(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=se(t.nativeEvent);r=t.topLevelType;var o=t.nativeEvent,a=t.eventSystemFlags;0===n&&(a|=64);for(var u=null,s=0;s<k.length;s++){var c=k[s];c&&(c=c.extractEvents(r,e,o,i,a))&&(u=re(u,c))}ue(u)}}function pe(t,e,n){if(!n.has(t)){switch(t){case"scroll":Ge(e,"scroll",!0);break;case"focus":case"blur":Ge(e,"focus",!0),Ge(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ce(t)&&Ge(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xt.indexOf(t)&&$e(t,e)}n.set(t,null)}}var ye,ve,be,ge=!1,me=[],_e=null,we=null,ke=null,xe=new Map,Oe=new Map,Se=[],Te="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ee="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function je(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Ae(t,e){switch(t){case"focus":case"blur":_e=null;break;case"dragenter":case"dragleave":we=null;break;case"mouseover":case"mouseout":ke=null;break;case"pointerover":case"pointerout":xe.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oe.delete(e.pointerId)}}function Ie(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=je(e,n,r,i,o),null!==e&&(null!==(e=jn(e))&&ve(e)),t):(t.eventSystemFlags|=r,t)}function Ce(t){var e=En(t.target);if(null!==e){var n=Jt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=te(n)))return t.blockedOn=e,void o.unstable_runWithPriority(t.priority,(function(){be(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Ne(t){if(null!==t.blockedOn)return!1;var e=Ze(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=jn(e);return null!==n&&ve(n),t.blockedOn=e,!1}return!0}function De(t,e,n){Ne(t)&&n.delete(e)}function Me(){for(ge=!1;0<me.length;){var t=me[0];if(null!==t.blockedOn){null!==(t=jn(t.blockedOn))&&ye(t);break}var e=Ze(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:me.shift()}null!==_e&&Ne(_e)&&(_e=null),null!==we&&Ne(we)&&(we=null),null!==ke&&Ne(ke)&&(ke=null),xe.forEach(De),Oe.forEach(De)}function Le(t,e){t.blockedOn===e&&(t.blockedOn=null,ge||(ge=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Me)))}function Be(t){function e(e){return Le(e,t)}if(0<me.length){Le(me[0],t);for(var n=1;n<me.length;n++){var r=me[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==_e&&Le(_e,t),null!==we&&Le(we,t),null!==ke&&Le(ke,t),xe.forEach(e),Oe.forEach(e),n=0;n<Se.length;n++)(r=Se[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Se.length&&null===(n=Se[0]).blockedOn;)Ce(n),null===n.blockedOn&&Se.shift()}var Pe={},Fe=new Map,Re=new Map,Ue=["abort","abort",Yt,"animationEnd",$t,"animationIteration",Gt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Kt,"transitionEnd","waiting","waiting"];function ze(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:e},Re.set(r,e),Fe.set(r,o),Pe[i]=o}}ze("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),ze("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),ze(Ue,2);for(var Ve="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),He=0;He<Ve.length;He++)Re.set(Ve[He],0);var We=o.unstable_UserBlockingPriority,qe=o.unstable_runWithPriority,Ye=!0;function $e(t,e){Ge(e,t,!1)}function Ge(t,e,n){var r=Re.get(e);switch(void 0===r?2:r){case 0:r=Ke.bind(null,e,1,t);break;case 1:r=Xe.bind(null,e,1,t);break;default:r=Qe.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Ke(t,e,n,r){F||B();var i=Qe,o=F;F=!0;try{L(i,t,e,n,r)}finally{(F=o)||U()}}function Xe(t,e,n,r){qe(We,Qe.bind(null,t,e,n,r))}function Qe(t,e,n,r){if(Ye)if(0<me.length&&-1<Te.indexOf(t))t=je(null,t,e,n,r),me.push(t);else{var i=Ze(t,e,n,r);if(null===i)Ae(t,r);else if(-1<Te.indexOf(t))t=je(i,t,e,n,r),me.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return _e=Ie(_e,t,e,n,r,i),!0;case"dragenter":return we=Ie(we,t,e,n,r,i),!0;case"mouseover":return ke=Ie(ke,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return xe.set(o,Ie(xe.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Oe.set(o,Ie(Oe.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r)){Ae(t,r),t=he(t,r,null,e);try{z(de,t)}finally{fe(t)}}}}function Ze(t,e,n,r){if(null!==(n=En(n=se(r)))){var i=Jt(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=te(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}t=he(t,r,n,e);try{z(de,t)}finally{fe(t)}return null}var Je={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function en(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||Je.hasOwnProperty(t)&&Je[t]?(""+e).trim():e+"px"}function nn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=en(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(Je).forEach((function(t){tn.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Je[e]=Je[t]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(t,e){if(e){if(rn[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(a(62,""))}}function an(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=Mt;function sn(t,e){var n=Zt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=S[e];for(var r=0;r<e.length;r++)pe(e[r],t,n)}function cn(){}function ln(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function fn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hn(t,e){var n,r=fn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=fn(r)}}function dn(){for(var t=window,e=ln();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=ln((t=e.contentWindow).document)}return e}function pn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var yn=null,vn=null;function bn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function gn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var mn="function"===typeof setTimeout?setTimeout:void 0,_n="function"===typeof clearTimeout?clearTimeout:void 0;function wn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function kn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var xn=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+xn,Sn="__reactEventHandlers$"+xn,Tn="__reactContainere$"+xn;function En(t){var e=t[On];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Tn]||n[On]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=kn(t);null!==t;){if(n=t[On])return n;t=kn(t)}return e}n=(t=n).parentNode}return null}function jn(t){return!(t=t[On]||t[Tn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function An(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function In(t){return t[Sn]||null}function Cn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Nn(t,e){var n=t.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!==typeof n)throw Error(a(231,e,typeof n));return n}function Dn(t,e,n){(e=Nn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Mn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Cn(e);for(e=n.length;0<e--;)Dn(n[e],"captured",t);for(e=0;e<n.length;e++)Dn(n[e],"bubbled",t)}}function Ln(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=Nn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Bn(t){t&&t.dispatchConfig.registrationName&&Ln(t._targetInst,null,t)}function Pn(t){ie(t,Mn)}var Fn=null,Rn=null,Un=null;function zn(){if(Un)return Un;var t,e,n=Rn,r=n.length,i="value"in Fn?Fn.value:Fn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return Un=i.slice(t,1<e?1-e:void 0)}function Vn(){return!0}function Hn(){return!1}function Wn(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:Hn,this.isPropagationStopped=Hn,this}function qn(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function Yn(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function $n(t){t.eventPool=[],t.getPooled=qn,t.release=Yn}i(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:Hn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Hn,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,$n(n),n},$n(Wn);var Gn=Wn.extend({data:null}),Kn=Wn.extend({data:null}),Xn=[9,13,27,32],Qn=E&&"CompositionEvent"in window,Zn=null;E&&"documentMode"in document&&(Zn=document.documentMode);var Jn=E&&"TextEvent"in window&&!Zn,tr=E&&(!Qn||Zn&&8<Zn&&11>=Zn),er=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(t,e){switch(t){case"keyup":return-1!==Xn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var ar=!1;var ur={eventTypes:nr,extractEvents:function(t,e,n,r){var i;if(Qn)t:{switch(t){case"compositionstart":var o=nr.compositionStart;break t;case"compositionend":o=nr.compositionEnd;break t;case"compositionupdate":o=nr.compositionUpdate;break t}o=void 0}else ar?ir(t,n)&&(o=nr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=nr.compositionStart);return o?(tr&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=zn()):(Rn="value"in(Fn=r)?Fn.value:Fn.textContent,ar=!0)),o=Gn.getPooled(o,e,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Pn(o),i=o):i=null,(t=Jn?function(t,e){switch(t){case"compositionend":return or(e);case"keypress":return 32!==e.which?null:(rr=!0,er);case"textInput":return(t=e.data)===er&&rr?null:t;default:return null}}(t,n):function(t,e){if(ar)return"compositionend"===t||!Qn&&ir(t,e)?(t=zn(),Un=Rn=Fn=null,ar=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return tr&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=Kn.getPooled(nr.beforeInput,e,n,r)).data=t,Pn(e)):e=null,null===i?e:null===e?i:[i,e]}},sr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!sr[t.type]:"textarea"===e}var lr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(t,e,n){return(t=Wn.getPooled(lr.change,t,e,n)).type="change",N(n),Pn(t),t}var hr=null,dr=null;function pr(t){ue(t)}function yr(t){if(wt(An(t)))return t}function vr(t,e){if("change"===t)return e}var br=!1;function gr(){hr&&(hr.detachEvent("onpropertychange",mr),dr=hr=null)}function mr(t){if("value"===t.propertyName&&yr(dr))if(t=fr(dr,t,se(t)),F)ue(t);else{F=!0;try{M(pr,t)}finally{F=!1,U()}}}function _r(t,e,n){"focus"===t?(gr(),dr=n,(hr=e).attachEvent("onpropertychange",mr)):"blur"===t&&gr()}function wr(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return yr(dr)}function kr(t,e){if("click"===t)return yr(e)}function xr(t,e){if("input"===t||"change"===t)return yr(e)}E&&(br=ce("input")&&(!document.documentMode||9<document.documentMode));var Or={eventTypes:lr,_isInputEventSupported:br,extractEvents:function(t,e,n,r){var i=e?An(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=vr;else if(cr(i))if(br)a=xr;else{a=wr;var u=_r}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=kr);if(a&&(a=a(t,e)))return fr(a,n,r);u&&u(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Et(i,"number",i.value)}},Sr=Wn.extend({view:null,detail:null}),Tr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Er(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Tr[t])&&!!e[t]}function jr(){return Er}var Ar=0,Ir=0,Cr=!1,Nr=!1,Dr=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:jr,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Ar;return Ar=t.screenX,Cr?"mousemove"===t.type?t.screenX-e:0:(Cr=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Ir;return Ir=t.screenY,Nr?"mousemove"===t.type?t.screenY-e:0:(Nr=!0,0)}}),Mr=Dr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Lr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:Lr,extractEvents:function(t,e,n,r,i){var o="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=e,null!==(e=(e=n.relatedTarget||n.toElement)?En(e):null)&&(e!==Jt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null;if(a===e)return null;if("mouseout"===t||"mouseover"===t)var u=Dr,s=Lr.mouseLeave,c=Lr.mouseEnter,l="mouse";else"pointerout"!==t&&"pointerover"!==t||(u=Mr,s=Lr.pointerLeave,c=Lr.pointerEnter,l="pointer");if(t=null==a?o:An(a),o=null==e?o:An(e),(s=u.getPooled(s,a,n,r)).type=l+"leave",s.target=t,s.relatedTarget=o,(n=u.getPooled(c,e,n,r)).type=l+"enter",n.target=o,n.relatedTarget=t,l=e,(r=a)&&l)t:{for(c=l,a=0,t=u=r;t;t=Cn(t))a++;for(t=0,e=c;e;e=Cn(e))t++;for(;0<a-t;)u=Cn(u),a--;for(;0<t-a;)c=Cn(c),t--;for(;a--;){if(u===c||u===c.alternate)break t;u=Cn(u),c=Cn(c)}u=null}else u=null;for(c=u,u=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)u.push(r),r=Cn(r);for(r=[];l&&l!==c&&(null===(a=l.alternate)||a!==c);)r.push(l),l=Cn(l);for(l=0;l<u.length;l++)Ln(u[l],"bubbled",s);for(l=r.length;0<l--;)Ln(r[l],"captured",n);return 0===(64&i)?[s]:[s,n]}};var Pr="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},Fr=Object.prototype.hasOwnProperty;function Rr(t,e){if(Pr(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Fr.call(e,n[r])||!Pr(t[n[r]],e[n[r]]))return!1;return!0}var Ur=E&&"documentMode"in document&&11>=document.documentMode,zr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,Hr=null,Wr=null,qr=!1;function Yr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return qr||null==Vr||Vr!==ln(n)?null:("selectionStart"in(n=Vr)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&Rr(Wr,n)?null:(Wr=n,(t=Wn.getPooled(zr.select,Hr,t,e)).type="select",t.target=Vr,Pn(t),t))}var $r={eventTypes:zr,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Zt(i),o=S.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break t}i=!0}o=!i}if(o)return null;switch(i=e?An(e):window,t){case"focus":(cr(i)||"true"===i.contentEditable)&&(Vr=i,Hr=e,Wr=null);break;case"blur":Wr=Hr=Vr=null;break;case"mousedown":qr=!0;break;case"contextmenu":case"mouseup":case"dragend":return qr=!1,Yr(n,r);case"selectionchange":if(Ur)break;case"keydown":case"keyup":return Yr(n,r)}return null}},Gr=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Kr=Wn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Xr=Sr.extend({relatedTarget:null});function Qr(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var Zr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ti=Sr.extend({key:function(t){if(t.key){var e=Zr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Qr(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Jr[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:jr,charCode:function(t){return"keypress"===t.type?Qr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Qr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),ei=Dr.extend({dataTransfer:null}),ni=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:jr}),ri=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Dr.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Pe,extractEvents:function(t,e,n,r){var i=Fe.get(t);if(!i)return null;switch(t){case"keypress":if(0===Qr(n))return null;case"keydown":case"keyup":t=ti;break;case"blur":case"focus":t=Xr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=ei;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ni;break;case Yt:case $t:case Gt:t=Gr;break;case Kt:t=ri;break;case"scroll":t=Sr;break;case"wheel":t=ii;break;case"copy":case"cut":case"paste":t=Kr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Mr;break;default:t=Wn}return Pn(e=t.getPooled(i,e,n,r)),e}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),p=In,y=jn,v=An,T({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Or,SelectEventPlugin:$r,BeforeInputEventPlugin:ur});var ai=[],ui=-1;function si(t){0>ui||(t.current=ai[ui],ai[ui]=null,ui--)}function ci(t,e){ui++,ai[ui]=t.current,t.current=e}var li={},fi={current:li},hi={current:!1},di=li;function pi(t,e){var n=t.type.contextTypes;if(!n)return li;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function yi(t){return null!==(t=t.childContextTypes)&&void 0!==t}function vi(){si(hi),si(fi)}function bi(t,e,n){if(fi.current!==li)throw Error(a(168));ci(fi,e),ci(hi,n)}function gi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,vt(e)||"Unknown",o));return i({},n,{},r)}function mi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||li,di=fi.current,ci(fi,t),ci(hi,hi.current),!0}function _i(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=gi(t,e,di),r.__reactInternalMemoizedMergedChildContext=t,si(hi),si(fi),ci(fi,t)):si(hi),ci(hi,n)}var wi=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,xi=o.unstable_cancelCallback,Oi=o.unstable_requestPaint,Si=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Ei=o.unstable_ImmediatePriority,ji=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Ii=o.unstable_LowPriority,Ci=o.unstable_IdlePriority,Ni={},Di=o.unstable_shouldYield,Mi=void 0!==Oi?Oi:function(){},Li=null,Bi=null,Pi=!1,Fi=Si(),Ri=1e4>Fi?Si:function(){return Si()-Fi};function Ui(){switch(Ti()){case Ei:return 99;case ji:return 98;case Ai:return 97;case Ii:return 96;case Ci:return 95;default:throw Error(a(332))}}function zi(t){switch(t){case 99:return Ei;case 98:return ji;case 97:return Ai;case 96:return Ii;case 95:return Ci;default:throw Error(a(332))}}function Vi(t,e){return t=zi(t),wi(t,e)}function Hi(t,e,n){return t=zi(t),ki(t,e,n)}function Wi(t){return null===Li?(Li=[t],Bi=ki(Ei,Yi)):Li.push(t),Ni}function qi(){if(null!==Bi){var t=Bi;Bi=null,xi(t)}Yi()}function Yi(){if(!Pi&&null!==Li){Pi=!0;var t=0;try{var e=Li;Vi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Li=null}catch(n){throw null!==Li&&(Li=Li.slice(t+1)),ki(Ei,qi),n}finally{Pi=!1}}}function $i(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function Gi(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Ki={current:null},Xi=null,Qi=null,Zi=null;function Ji(){Zi=Qi=Xi=null}function to(t){var e=Ki.current;si(Ki),t.type._context._currentValue=e}function eo(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function no(t,e){Xi=t,Zi=Qi=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Ia=!0),t.firstContext=null)}function ro(t,e){if(Zi!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Zi=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Qi){if(null===Xi)throw Error(a(308));Qi=e,Xi.dependencies={expirationTime:0,firstContext:e,responders:null}}else Qi=Qi.next=e;return t._currentValue}var io=!1;function oo(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function uo(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function so(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function co(t,e){var n=t.alternate;null!==n&&ao(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function lo(t,e,n,r){var o=t.updateQueue;io=!1;var a=o.baseQueue,u=o.shared.pending;if(null!==u){if(null!==a){var s=a.next;a.next=u.next,u.next=s}a=u,o.shared.pending=null,null!==(s=t.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=u))}if(null!==a){s=a.next;var c=o.baseState,l=0,f=null,h=null,d=null;if(null!==s)for(var p=s;;){if((u=p.expirationTime)<r){var y={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===d?(h=d=y,f=c):d=d.next=y,u>l&&(l=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),os(u,p.suspenseConfig);t:{var v=t,b=p;switch(u=e,y=n,b.tag){case 1:if("function"===typeof(v=b.payload)){c=v.call(y,c,u);break t}c=v;break t;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(u="function"===typeof(v=b.payload)?v.call(y,c,u):v)||void 0===u)break t;c=i({},c,u);break t;case 2:io=!0}}null!==p.callback&&(t.effectTag|=32,null===(u=o.effects)?o.effects=[p]:u.push(p))}if(null===(p=p.next)||p===s){if(null===(u=o.shared.pending))break;p=a.next=u.next,u.next=s,o.baseQueue=a=u,o.shared.pending=null}}null===d?f=c:d.next=h,o.baseState=f,o.baseQueue=d,as(l),t.expirationTime=l,t.memoizedState=c}}function fo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(a(191,r));r.call(i)}}}var ho=X.ReactCurrentBatchConfig,po=(new r.Component).refs;function yo(t,e,n,r){n=null===(n=n(r,e=t.memoizedState))||void 0===n?e:i({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var vo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Jt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Yu(),i=ho.suspense;(i=uo(r=$u(r,t,i),i)).payload=e,void 0!==n&&null!==n&&(i.callback=n),so(t,i),Gu(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Yu(),i=ho.suspense;(i=uo(r=$u(r,t,i),i)).tag=1,i.payload=e,void 0!==n&&null!==n&&(i.callback=n),so(t,i),Gu(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Yu(),r=ho.suspense;(r=uo(n=$u(n,t,r),r)).tag=2,void 0!==e&&null!==e&&(r.callback=e),so(t,r),Gu(t,n)}};function bo(t,e,n,r,i,o,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!Rr(n,r)||!Rr(i,o))}function go(t,e,n){var r=!1,i=li,o=e.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=yi(e)?di:fi.current,o=(r=null!==(r=e.contextTypes)&&void 0!==r)?pi(t,i):li),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=vo,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function mo(t,e,n,r){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&vo.enqueueReplaceState(e,e.state,null)}function _o(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=po,oo(t);var o=e.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=yi(e)?di:fi.current,i.context=pi(t,o)),lo(t,n,i,r),i.state=t.memoizedState,"function"===typeof(o=e.getDerivedStateFromProps)&&(yo(t,e,o,n),i.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(e=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&vo.enqueueReplaceState(i,i.state,null),lo(t,n,i,r),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.effectTag|=4)}var wo=Array.isArray;function ko(t,e,n){if(null!==(t=n.ref)&&"function"!==typeof t&&"object"!==typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"===typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===po&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!==typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function xo(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function Oo(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Ts(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function u(e){return t&&null===e.alternate&&(e.effectTag=2),e}function s(t,e,n,r){return null===e||6!==e.tag?((e=As(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function c(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=ko(t,e,n),r.return=t,r):((r=Es(n.type,n.key,n.props,null,t.mode,r)).ref=ko(t,e,n),r.return=t,r)}function l(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Is(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=js(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function h(t,e,n){if("string"===typeof e||"number"===typeof e)return(e=As(""+e,t.mode,n)).return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Es(e.type,e.key,e.props,null,t.mode,n)).ref=ko(t,null,e),n.return=t,n;case et:return(e=Is(e,t.mode,n)).return=t,e}if(wo(e)||yt(e))return(e=js(e,t.mode,n,null)).return=t,e;xo(t,e)}return null}function d(t,e,n,r){var i=null!==e?e.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:s(t,e,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case tt:return n.key===i?n.type===nt?f(t,e,n.props.children,r,i):c(t,e,n,r):null;case et:return n.key===i?l(t,e,n,r):null}if(wo(n)||yt(n))return null!==i?null:f(t,e,n,r,null);xo(t,n)}return null}function p(t,e,n,r,i){if("string"===typeof r||"number"===typeof r)return s(e,t=t.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case tt:return t=t.get(null===r.key?n:r.key)||null,r.type===nt?f(e,t,r.props.children,i,r.key):c(e,t,r,i);case et:return l(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(wo(r)||yt(r))return f(e,t=t.get(n)||null,r,i,null);xo(e,r)}return null}function y(i,a,u,s){for(var c=null,l=null,f=a,y=a=0,v=null;null!==f&&y<u.length;y++){f.index>y?(v=f,f=null):v=f.sibling;var b=d(i,f,u[y],s);if(null===b){null===f&&(f=v);break}t&&f&&null===b.alternate&&e(i,f),a=o(b,a,y),null===l?c=b:l.sibling=b,l=b,f=v}if(y===u.length)return n(i,f),c;if(null===f){for(;y<u.length;y++)null!==(f=h(i,u[y],s))&&(a=o(f,a,y),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(i,f);y<u.length;y++)null!==(v=p(f,i,y,u[y],s))&&(t&&null!==v.alternate&&f.delete(null===v.key?y:v.key),a=o(v,a,y),null===l?c=v:l.sibling=v,l=v);return t&&f.forEach((function(t){return e(i,t)})),c}function v(i,u,s,c){var l=yt(s);if("function"!==typeof l)throw Error(a(150));if(null==(s=l.call(s)))throw Error(a(151));for(var f=l=null,y=u,v=u=0,b=null,g=s.next();null!==y&&!g.done;v++,g=s.next()){y.index>v?(b=y,y=null):b=y.sibling;var m=d(i,y,g.value,c);if(null===m){null===y&&(y=b);break}t&&y&&null===m.alternate&&e(i,y),u=o(m,u,v),null===f?l=m:f.sibling=m,f=m,y=b}if(g.done)return n(i,y),l;if(null===y){for(;!g.done;v++,g=s.next())null!==(g=h(i,g.value,c))&&(u=o(g,u,v),null===f?l=g:f.sibling=g,f=g);return l}for(y=r(i,y);!g.done;v++,g=s.next())null!==(g=p(y,i,v,g.value,c))&&(t&&null!==g.alternate&&y.delete(null===g.key?v:g.key),u=o(g,u,v),null===f?l=g:f.sibling=g,f=g);return t&&y.forEach((function(t){return e(i,t)})),l}return function(t,r,o,s){var c="object"===typeof o&&null!==o&&o.type===nt&&null===o.key;c&&(o=o.props.children);var l="object"===typeof o&&null!==o;if(l)switch(o.$$typeof){case tt:t:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===nt){n(t,c.sibling),(r=i(c,o.props.children)).return=t,t=r;break t}break;default:if(c.elementType===o.type){n(t,c.sibling),(r=i(c,o.props)).ref=ko(t,c,o),r.return=t,t=r;break t}}n(t,c);break}e(t,c),c=c.sibling}o.type===nt?((r=js(o.props.children,t.mode,s,o.key)).return=t,t=r):((s=Es(o.type,o.key,o.props,null,t.mode,s)).ref=ko(t,r,o),s.return=t,t=s)}return u(t);case et:t:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Is(o,t.mode,s)).return=t,t=r}return u(t)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=As(o,t.mode,s)).return=t,t=r),u(t);if(wo(o))return y(t,r,o,s);if(yt(o))return v(t,r,o,s);if(l&&xo(t,o),"undefined"===typeof o&&!c)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var So=Oo(!0),To=Oo(!1),Eo={},jo={current:Eo},Ao={current:Eo},Io={current:Eo};function Co(t){if(t===Eo)throw Error(a(174));return t}function No(t,e){switch(ci(Io,e),ci(Ao,t),ci(jo,Eo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Pt(null,"");break;default:e=Pt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}si(jo),ci(jo,e)}function Do(){si(jo),si(Ao),si(Io)}function Mo(t){Co(Io.current);var e=Co(jo.current),n=Pt(e,t.type);e!==n&&(ci(Ao,t),ci(jo,n))}function Lo(t){Ao.current===t&&(si(jo),si(Ao))}var Bo={current:0};function Po(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Fo(t,e){return{responder:t,props:e}}var Ro=X.ReactCurrentDispatcher,Uo=X.ReactCurrentBatchConfig,zo=0,Vo=null,Ho=null,Wo=null,qo=!1;function Yo(){throw Error(a(321))}function $o(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Pr(t[n],e[n]))return!1;return!0}function Go(t,e,n,r,i,o){if(zo=o,Vo=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Ro.current=null===t||null===t.memoizedState?ba:ga,t=n(r,i),e.expirationTime===zo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Wo=Ho=null,e.updateQueue=null,Ro.current=ma,t=n(r,i)}while(e.expirationTime===zo)}if(Ro.current=va,e=null!==Ho&&null!==Ho.next,zo=0,Wo=Ho=Vo=null,qo=!1,e)throw Error(a(300));return t}function Ko(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?Vo.memoizedState=Wo=t:Wo=Wo.next=t,Wo}function Xo(){if(null===Ho){var t=Vo.alternate;t=null!==t?t.memoizedState:null}else t=Ho.next;var e=null===Wo?Vo.memoizedState:Wo.next;if(null!==e)Wo=e,Ho=t;else{if(null===t)throw Error(a(310));t={memoizedState:(Ho=t).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Wo?Vo.memoizedState=Wo=t:Wo=Wo.next=t}return Wo}function Qo(t,e){return"function"===typeof e?e(t):e}function Zo(t){var e=Xo(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=Ho,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=u=o=null,c=i;do{var l=c.expirationTime;if(l<zo){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(u=s=f,o=r):s=s.next=f,l>Vo.expirationTime&&(Vo.expirationTime=l,as(l))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),os(l,c.suspenseConfig),r=c.eagerReducer===t?c.eagerState:t(r,c.action);c=c.next}while(null!==c&&c!==i);null===s?o=r:s.next=u,Pr(r,e.memoizedState)||(Ia=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=s,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function Jo(t){var e=Xo(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=t(o,u.action),u=u.next}while(u!==i);Pr(o,e.memoizedState)||(Ia=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function ta(t){var e=Ko();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:t}).dispatch=ya.bind(null,Vo,t),[e.memoizedState,t]}function ea(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Vo.updateQueue)?(e={lastEffect:null},Vo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function na(){return Xo().memoizedState}function ra(t,e,n,r){var i=Ko();Vo.effectTag|=t,i.memoizedState=ea(1|e,n,void 0,void 0===r?null:r)}function ia(t,e,n,r){var i=Xo();r=void 0===r?null:r;var o=void 0;if(null!==Ho){var a=Ho.memoizedState;if(o=a.destroy,null!==r&&$o(r,a.deps))return void ea(e,n,o,r)}Vo.effectTag|=t,i.memoizedState=ea(1|e,n,o,r)}function oa(t,e){return ra(516,4,t,e)}function aa(t,e){return ia(516,4,t,e)}function ua(t,e){return ia(4,2,t,e)}function sa(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function ca(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ia(4,2,sa.bind(null,e,t),n)}function la(){}function fa(t,e){return Ko().memoizedState=[t,void 0===e?null:e],t}function ha(t,e){var n=Xo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&$o(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function da(t,e){var n=Xo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&$o(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function pa(t,e,n){var r=Ui();Vi(98>r?98:r,(function(){t(!0)})),Vi(97<r?97:r,(function(){var r=Uo.suspense;Uo.suspense=void 0===e?null:e;try{t(!1),n()}finally{Uo.suspense=r}}))}function ya(t,e,n){var r=Yu(),i=ho.suspense;i={expirationTime:r=$u(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),e.pending=i,o=t.alternate,t===Vo||null!==o&&o===Vo)qo=!0,i.expirationTime=zo,Vo.expirationTime=zo;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,u=o(a,n);if(i.eagerReducer=o,i.eagerState=u,Pr(u,a))return}catch(s){}Gu(t,r)}}var va={readContext:ro,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useResponder:Yo,useDeferredValue:Yo,useTransition:Yo},ba={readContext:ro,useCallback:fa,useContext:ro,useEffect:oa,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ra(4,2,sa.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ra(4,2,t,e)},useMemo:function(t,e){var n=Ko();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ko();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=ya.bind(null,Vo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Ko().memoizedState=t},useState:ta,useDebugValue:la,useResponder:Fo,useDeferredValue:function(t,e){var n=ta(t),r=n[0],i=n[1];return oa((function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=ta(!1),n=e[0];return e=e[1],[fa(pa.bind(null,e,t),[e,t]),n]}},ga={readContext:ro,useCallback:ha,useContext:ro,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:ua,useMemo:da,useReducer:Zo,useRef:na,useState:function(){return Zo(Qo)},useDebugValue:la,useResponder:Fo,useDeferredValue:function(t,e){var n=Zo(Qo),r=n[0],i=n[1];return aa((function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Zo(Qo),n=e[0];return e=e[1],[ha(pa.bind(null,e,t),[e,t]),n]}},ma={readContext:ro,useCallback:ha,useContext:ro,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:ua,useMemo:da,useReducer:Jo,useRef:na,useState:function(){return Jo(Qo)},useDebugValue:la,useResponder:Fo,useDeferredValue:function(t,e){var n=Jo(Qo),r=n[0],i=n[1];return aa((function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Jo(Qo),n=e[0];return e=e[1],[ha(pa.bind(null,e,t),[e,t]),n]}},_a=null,wa=null,ka=!1;function xa(t,e){var n=Os(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Oa(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function Sa(t){if(ka){var e=wa;if(e){var n=e;if(!Oa(t,e)){if(!(e=wn(n.nextSibling))||!Oa(t,e))return t.effectTag=-1025&t.effectTag|2,ka=!1,void(_a=t);xa(_a,n)}_a=t,wa=wn(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,ka=!1,_a=t}}function Ta(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;_a=t}function Ea(t){if(t!==_a)return!1;if(!ka)return Ta(t),ka=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!gn(e,t.memoizedProps))for(e=wa;e;)xa(t,e),e=wn(e.nextSibling);if(Ta(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){wa=wn(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}wa=null}}else wa=_a?wn(t.stateNode.nextSibling):null;return!0}function ja(){wa=_a=null,ka=!1}var Aa=X.ReactCurrentOwner,Ia=!1;function Ca(t,e,n,r){e.child=null===t?To(e,null,n,r):So(e,t.child,n,r)}function Na(t,e,n,r,i){n=n.render;var o=e.ref;return no(e,i),r=Go(t,e,n,r,o,i),null===t||Ia?(e.effectTag|=1,Ca(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ga(t,e,i))}function Da(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!==typeof a||Ss(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Es(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Ma(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Rr)(i,r)&&t.ref===e.ref)?Ga(t,e,o):(e.effectTag|=1,(t=Ts(a,r)).ref=e.ref,t.return=e,e.child=t)}function Ma(t,e,n,r,i,o){return null!==t&&Rr(t.memoizedProps,r)&&t.ref===e.ref&&(Ia=!1,i<o)?(e.expirationTime=t.expirationTime,Ga(t,e,o)):Ba(t,e,n,r,o)}function La(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Ba(t,e,n,r,i){var o=yi(n)?di:fi.current;return o=pi(e,o),no(e,i),n=Go(t,e,n,r,o,i),null===t||Ia?(e.effectTag|=1,Ca(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ga(t,e,i))}function Pa(t,e,n,r,i){if(yi(n)){var o=!0;mi(e)}else o=!1;if(no(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),go(e,n,r),_o(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,u=e.memoizedProps;a.props=u;var s=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=ro(c):c=pi(e,c=yi(n)?di:fi.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==r||s!==c)&&mo(e,a,r,c),io=!1;var h=e.memoizedState;a.state=h,lo(e,r,a,i),s=e.memoizedState,u!==r||h!==s||hi.current||io?("function"===typeof l&&(yo(e,n,l,r),s=e.memoizedState),(u=io||bo(e,n,u,r,h,s,c))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(e.effectTag|=4)):("function"===typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=s),a.props=r,a.state=s,a.context=c,r=u):("function"===typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,ao(t,e),u=e.memoizedProps,a.props=e.type===e.elementType?u:Gi(e.type,u),s=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=ro(c):c=pi(e,c=yi(n)?di:fi.current),(f="function"===typeof(l=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==r||s!==c)&&mo(e,a,r,c),io=!1,s=e.memoizedState,a.state=s,lo(e,r,a,i),h=e.memoizedState,u!==r||s!==h||hi.current||io?("function"===typeof l&&(yo(e,n,l,r),h=e.memoizedState),(l=io||bo(e,n,u,r,s,h,c))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"===typeof a.componentDidUpdate&&(e.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!==typeof a.componentDidUpdate||u===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=h),a.props=r,a.state=h,a.context=c,r=l):("function"!==typeof a.componentDidUpdate||u===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=256),r=!1);return Fa(t,e,n,r,o,i)}function Fa(t,e,n,r,i,o){La(t,e);var a=0!==(64&e.effectTag);if(!r&&!a)return i&&_i(e,n,!1),Ga(t,e,o);r=e.stateNode,Aa.current=e;var u=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=So(e,t.child,null,o),e.child=So(e,null,u,o)):Ca(t,e,u,o),e.memoizedState=r.state,i&&_i(e,n,!0),e.child}function Ra(t){var e=t.stateNode;e.pendingContext?bi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&bi(0,e.context,!1),No(t,e.containerInfo)}var Ua,za,Va,Ha={dehydrated:null,retryTime:0};function Wa(t,e,n){var r,i=e.mode,o=e.pendingProps,a=Bo.current,u=!1;if((r=0!==(64&e.effectTag))||(r=0!==(2&a)&&(null===t||null!==t.memoizedState)),r?(u=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ci(Bo,1&a),null===t){if(void 0!==o.fallback&&Sa(e),u){if(u=o.fallback,(o=js(null,i,0,null)).return=e,0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=js(u,i,n,null)).return=e,o.sibling=n,e.memoizedState=Ha,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=To(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,u){if(o=o.fallback,(n=Ts(t,t.pendingProps)).return=e,0===(2&e.mode)&&(u=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(i=Ts(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=Ha,e.child=n,i}return n=So(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,u){if(u=o.fallback,(o=js(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=js(u,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=Ha,e.child=o,n}return e.memoizedState=null,e.child=So(e,t,o.children,n)}function qa(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),eo(t.return,e)}function Ya(t,e,n,r,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function $a(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Ca(t,e,r.children,n),0!==(2&(r=Bo.current)))r=1&r|2,e.effectTag|=64;else{if(null!==t&&0!==(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&qa(t,n);else if(19===t.tag)qa(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ci(Bo,r),0===(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Po(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Ya(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Po(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Ya(e,!0,n,null,o,e.lastEffect);break;case"together":Ya(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Ga(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&as(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Ts(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Ts(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Ka(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Xa(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return yi(e.type)&&vi(),null;case 3:return Do(),si(hi),si(fi),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Ea(e)||(e.effectTag|=4),null;case 5:Lo(e),n=Co(Io.current);var o=e.type;if(null!==t&&null!=e.stateNode)za(t,e,o,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(a(166));return null}if(t=Co(jo.current),Ea(e)){r=e.stateNode,o=e.type;var u=e.memoizedProps;switch(r[On]=e,r[Sn]=u,o){case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(t=0;t<Xt.length;t++)$e(Xt[t],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"form":$e("reset",r),$e("submit",r);break;case"details":$e("toggle",r);break;case"input":xt(r,u),$e("invalid",r),sn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},$e("invalid",r),sn(n,"onChange");break;case"textarea":Ct(r,u),$e("invalid",r),sn(n,"onChange")}for(var s in on(o,u),t=null,u)if(u.hasOwnProperty(s)){var c=u[s];"children"===s?"string"===typeof c?r.textContent!==c&&(t=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(t=["children",""+c]):O.hasOwnProperty(s)&&null!=c&&sn(n,s)}switch(o){case"input":_t(r),Tt(r,u,!0);break;case"textarea":_t(r),Dt(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=cn)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(s=9===n.nodeType?n:n.ownerDocument,t===un&&(t=Bt(o)),t===un?"script"===o?((t=s.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=s.createElement(o,{is:r.is}):(t=s.createElement(o),"select"===o&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,o),t[On]=e,t[Sn]=r,Ua(t,e),e.stateNode=t,s=an(o,r),o){case"iframe":case"object":case"embed":$e("load",t),c=r;break;case"video":case"audio":for(c=0;c<Xt.length;c++)$e(Xt[c],t);c=r;break;case"source":$e("error",t),c=r;break;case"img":case"image":case"link":$e("error",t),$e("load",t),c=r;break;case"form":$e("reset",t),$e("submit",t),c=r;break;case"details":$e("toggle",t),c=r;break;case"input":xt(t,r),c=kt(t,r),$e("invalid",t),sn(n,"onChange");break;case"option":c=jt(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),$e("invalid",t),sn(n,"onChange");break;case"textarea":Ct(t,r),c=It(t,r),$e("invalid",t),sn(n,"onChange");break;default:c=r}on(o,c);var l=c;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];"style"===u?nn(t,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Rt(t,f):"children"===u?"string"===typeof f?("textarea"!==o||""!==f)&&Ut(t,f):"number"===typeof f&&Ut(t,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(O.hasOwnProperty(u)?null!=f&&sn(n,u):null!=f&&Q(t,u,f,s))}switch(o){case"input":_t(t),Tt(t,r,!1);break;case"textarea":_t(t),Dt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+gt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?At(t,!!r.multiple,n,!1):null!=r.defaultValue&&At(t,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof c.onClick&&(t.onclick=cn)}bn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Va(0,e,t.memoizedProps,r);else{if("string"!==typeof r&&null===e.stateNode)throw Error(a(166));n=Co(Io.current),Co(jo.current),Ea(e)?(n=e.stateNode,r=e.memoizedProps,n[On]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[On]=e,e.stateNode=n)}return null;case 13:return si(Bo),r=e.memoizedState,0!==(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Ea(e):(r=null!==(o=t.memoizedState),n||null===o||null!==(o=t.child.sibling)&&(null!==(u=e.firstEffect)?(e.firstEffect=o,o.nextEffect=u):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!==(1&Bo.current)?Eu===_u&&(Eu=wu):(Eu!==_u&&Eu!==wu||(Eu=ku),0!==Nu&&null!==Ou&&(Ds(Ou,Tu),Ms(Ou,Nu)))),(n||r)&&(e.effectTag|=4),null);case 4:return Do(),null;case 10:return to(e),null;case 17:return yi(e.type)&&vi(),null;case 19:if(si(Bo),null===(r=e.memoizedState))return null;if(o=0!==(64&e.effectTag),null===(u=r.rendering)){if(o)Ka(r,!1);else if(Eu!==_u||null!==t&&0!==(64&t.effectTag))for(u=e.child;null!==u;){if(null!==(t=Po(u))){for(e.effectTag|=64,Ka(r,!1),null!==(o=t.updateQueue)&&(e.updateQueue=o,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)u=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(t=o.alternate)?(o.childExpirationTime=0,o.expirationTime=u,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=t.childExpirationTime,o.expirationTime=t.expirationTime,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,u=t.dependencies,o.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return ci(Bo,1&Bo.current|2),e.child}u=u.sibling}}else{if(!o)if(null!==(t=Po(u))){if(e.effectTag|=64,o=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),Ka(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Ri()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,o=!0,Ka(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(u.sibling=e.child,e.child=u):(null!==(n=r.last)?n.sibling=u:e.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ri()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Ri(),n.sibling=null,e=Bo.current,ci(Bo,o?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function Qa(t){switch(t.tag){case 1:yi(t.type)&&vi();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Do(),si(hi),si(fi),0!==(64&(e=t.effectTag)))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return Lo(t),null;case 13:return si(Bo),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return si(Bo),null;case 4:return Do(),null;case 10:return to(t),null;default:return null}}function Za(t,e){return{value:t,source:e,stack:bt(e)}}Ua=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},za=function(t,e,n,r,o){var a=t.memoizedProps;if(a!==r){var u,s,c=e.stateNode;switch(Co(jo.current),t=null,n){case"input":a=kt(c,a),r=kt(c,r),t=[];break;case"option":a=jt(c,a),r=jt(c,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=It(c,a),r=It(c,r),t=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(c.onclick=cn)}for(u in on(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u)for(s in c=a[u])c.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(O.hasOwnProperty(u)?t||(t=[]):(t=t||[]).push(u,null));for(u in r){var l=r[u];if(c=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(t||(t=[]),t.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(t=t||[]).push(u,l)):"children"===u?c===l||"string"!==typeof l&&"number"!==typeof l||(t=t||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(O.hasOwnProperty(u)?(null!=l&&sn(o,u),t||c===l||(t=[])):(t=t||[]).push(u,l))}n&&(t=t||[]).push("style",n),o=t,(e.updateQueue=o)&&(e.effectTag|=4)}},Va=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var Ja="function"===typeof WeakSet?WeakSet:Set;function tu(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=bt(n)),null!==n&&vt(n.type),e=e.value,null!==t&&1===t.tag&&vt(t.type);try{console.error(e)}catch(i){setTimeout((function(){throw i}))}}function eu(t){var e=t.ref;if(null!==e)if("function"===typeof e)try{e(null)}catch(n){gs(t,n)}else e.current=null}function nu(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:Gi(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ru(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function iu(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ou(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void iu(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:Gi(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&fo(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}fo(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Be(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function au(t,e,n){switch("function"===typeof ks&&ks(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;Vi(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(o){gs(i,o)}}t=t.next}while(t!==r)}))}break;case 1:eu(e),"function"===typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(n){gs(t,n)}}(e,n);break;case 5:eu(e);break;case 4:lu(t,e,n)}}function uu(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&uu(e)}function su(t){return 5===t.tag||3===t.tag||4===t.tag}function cu(t){t:{for(var e=t.return;null!==e;){if(su(e)){var n=e;break t}e=e.return}throw Error(a(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ut(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||su(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(8===r.nodeType?(n=r.parentNode).insertBefore(e,r):(n=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==i&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e):function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?r.insertBefore(e,n):r.appendChild(e);else if(4!==i&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e)}function lu(t,e,n){for(var r,i,o=e,u=!1;;){if(!u){u=o.return;t:for(;;){if(null===u)throw Error(a(160));switch(r=u.stateNode,u.tag){case 5:i=!1;break t;case 3:case 4:r=r.containerInfo,i=!0;break t}u=u.return}u=!0}if(5===o.tag||6===o.tag){t:for(var s=t,c=o,l=n,f=c;;)if(au(s,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break t;for(;null===f.sibling;){if(null===f.return||f.return===c)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(s=r,c=o.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(au(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(u=!1)}o.sibling.return=o.return,o=o.sibling}}function fu(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void ru(3,e);case 1:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[Sn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&Ot(n,r),an(t,i),e=an(t,r),i=0;i<o.length;i+=2){var u=o[i],s=o[i+1];"style"===u?nn(n,s):"dangerouslySetInnerHTML"===u?Rt(n,s):"children"===u?Ut(n,s):Q(n,u,s,e)}switch(t){case"input":St(n,r);break;case"textarea":Nt(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?At(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?At(n,!!r.multiple,r.defaultValue,!0):At(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Be(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Mu=Ri()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=void 0!==(i=t.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=en("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void hu(e);case 19:return void hu(e);case 17:return}throw Error(a(163))}function hu(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Ja),e.forEach((function(e){var r=_s.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var du="function"===typeof WeakMap?WeakMap:Map;function pu(t,e,n){(n=uo(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Bu||(Bu=!0,Pu=r),tu(t,e)},n}function yu(t,e,n){(n=uo(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"===typeof r){var i=e.value;n.payload=function(){return tu(t,e),r(i)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Fu?Fu=new Set([this]):Fu.add(this),tu(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var vu,bu=Math.ceil,gu=X.ReactCurrentDispatcher,mu=X.ReactCurrentOwner,_u=0,wu=3,ku=4,xu=0,Ou=null,Su=null,Tu=0,Eu=_u,ju=null,Au=1073741823,Iu=1073741823,Cu=null,Nu=0,Du=!1,Mu=0,Lu=null,Bu=!1,Pu=null,Fu=null,Ru=!1,Uu=null,zu=90,Vu=null,Hu=0,Wu=null,qu=0;function Yu(){return 0!==(48&xu)?1073741821-(Ri()/10|0):0!==qu?qu:qu=1073741821-(Ri()/10|0)}function $u(t,e,n){if(0===(2&(e=e.mode)))return 1073741823;var r=Ui();if(0===(4&e))return 99===r?1073741823:1073741822;if(0!==(16&xu))return Tu;if(null!==n)t=$i(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=$i(t,150,100);break;case 97:case 96:t=$i(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==Ou&&t===Tu&&--t,t}function Gu(t,e){if(50<Hu)throw Hu=0,Wu=null,Error(a(185));if(null!==(t=Ku(t,e))){var n=Ui();1073741823===e?0!==(8&xu)&&0===(48&xu)?Ju(t):(Qu(t),0===xu&&qi()):Qu(t),0===(4&xu)||98!==n&&99!==n||(null===Vu?Vu=new Map([[t,e]]):(void 0===(n=Vu.get(t))||n>e)&&Vu.set(t,e))}}function Ku(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ou===i&&(as(e),Eu===ku&&Ds(i,Tu)),Ms(i,e)),i}function Xu(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!Ns(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Qu(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Wi(Ju.bind(null,t));else{var e=Xu(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Yu();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==Ni&&xi(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Wi(Ju.bind(null,t)):Hi(r,Zu.bind(null,t),{timeout:10*(1073741821-e)-Ri()}),t.callbackNode=e}}}function Zu(t,e){if(qu=0,e)return Ls(t,e=Yu()),Qu(t),null;var n=Xu(t);if(0!==n){if(e=t.callbackNode,0!==(48&xu))throw Error(a(327));if(ys(),t===Ou&&n===Tu||ns(t,n),null!==Su){var r=xu;xu|=16;for(var i=is();;)try{ss();break}catch(s){rs(t,s)}if(Ji(),xu=r,gu.current=i,1===Eu)throw e=ju,ns(t,n),Ds(t,n),Qu(t),e;if(null===Su)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Eu,Ou=null,r){case _u:case 1:throw Error(a(345));case 2:Ls(t,2<n?2:n);break;case wu:if(Ds(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fs(i)),1073741823===Au&&10<(i=Mu+500-Ri())){if(Du){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,ns(t,n);break}}if(0!==(o=Xu(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=mn(hs.bind(null,t),i);break}hs(t);break;case ku:if(Ds(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fs(i)),Du&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,ns(t,n);break}if(0!==(i=Xu(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Iu?r=10*(1073741821-Iu)-Ri():1073741823===Au?r=0:(r=10*(1073741821-Au)-5e3,0>(r=(i=Ri())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bu(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=mn(hs.bind(null,t),r);break}hs(t);break;case 5:if(1073741823!==Au&&null!==Cu){o=Au;var u=Cu;if(0>=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(o=Ri()-(10*(1073741821-o)-(0|u.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Ds(t,n),t.timeoutHandle=mn(hs.bind(null,t),r);break}}hs(t);break;default:throw Error(a(329))}if(Qu(t),t.callbackNode===e)return Zu.bind(null,t)}}return null}function Ju(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!==(48&xu))throw Error(a(327));if(ys(),t===Ou&&e===Tu||ns(t,e),null!==Su){var n=xu;xu|=16;for(var r=is();;)try{us();break}catch(i){rs(t,i)}if(Ji(),xu=n,gu.current=r,1===Eu)throw n=ju,ns(t,e),Ds(t,e),Qu(t),n;if(null!==Su)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,Ou=null,hs(t),Qu(t)}return null}function ts(t,e){var n=xu;xu|=1;try{return t(e)}finally{0===(xu=n)&&qi()}}function es(t,e){var n=xu;xu&=-2,xu|=8;try{return t(e)}finally{0===(xu=n)&&qi()}}function ns(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,_n(n)),null!==Su)for(n=Su.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&vi();break;case 3:Do(),si(hi),si(fi);break;case 5:Lo(r);break;case 4:Do();break;case 13:case 19:si(Bo);break;case 10:to(r)}n=n.return}Ou=t,Su=Ts(t.current,null),Tu=e,Eu=_u,ju=null,Iu=Au=1073741823,Cu=null,Nu=0,Du=!1}function rs(t,e){for(;;){try{if(Ji(),Ro.current=va,qo)for(var n=Vo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(zo=0,Wo=Ho=Vo=null,qo=!1,null===Su||null===Su.return)return Eu=1,ju=e,Su=null;t:{var i=t,o=Su.return,a=Su,u=e;if(e=Tu,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var s=u;if(0===(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!==(1&Bo.current),f=o;do{var h;if(h=13===f.tag){var d=f.memoizedState;if(null!==d)h=null!==d.dehydrated;else{var p=f.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!l)}}if(h){var y=f.updateQueue;if(null===y){var v=new Set;v.add(s),f.updateQueue=v}else y.add(s);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var b=uo(1073741823,null);b.tag=2,so(a,b)}a.expirationTime=1073741823;break t}u=void 0,a=e;var g=i.pingCache;if(null===g?(g=i.pingCache=new du,u=new Set,g.set(s,u)):void 0===(u=g.get(s))&&(u=new Set,g.set(s,u)),!u.has(a)){u.add(a);var m=ms.bind(null,i,s,a);s.then(m,m)}f.effectTag|=4096,f.expirationTime=e;break t}f=f.return}while(null!==f);u=Error((vt(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+bt(a))}5!==Eu&&(Eu=2),u=Za(u,a),f=o;do{switch(f.tag){case 3:s=u,f.effectTag|=4096,f.expirationTime=e,co(f,pu(f,s,e));break t;case 1:s=u;var _=f.type,w=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof _.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Fu||!Fu.has(w)))){f.effectTag|=4096,f.expirationTime=e,co(f,yu(f,s,e));break t}}f=f.return}while(null!==f)}Su=ls(Su)}catch(k){e=k;continue}break}}function is(){var t=gu.current;return gu.current=va,null===t?va:t}function os(t,e){t<Au&&2<t&&(Au=t),null!==e&&t<Iu&&2<t&&(Iu=t,Cu=e)}function as(t){t>Nu&&(Nu=t)}function us(){for(;null!==Su;)Su=cs(Su)}function ss(){for(;null!==Su&&!Di();)Su=cs(Su)}function cs(t){var e=vu(t.alternate,t,Tu);return t.memoizedProps=t.pendingProps,null===e&&(e=ls(t)),mu.current=null,e}function ls(t){Su=t;do{var e=Su.alternate;if(t=Su.return,0===(2048&Su.effectTag)){if(e=Xa(e,Su,Tu),1===Tu||1!==Su.childExpirationTime){for(var n=0,r=Su.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Su.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Su.firstEffect),null!==Su.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Su.firstEffect),t.lastEffect=Su.lastEffect),1<Su.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=Su:t.firstEffect=Su,t.lastEffect=Su))}else{if(null!==(e=Qa(Su)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=Su.sibling))return e;Su=t}while(null!==Su);return Eu===_u&&(Eu=5),null}function fs(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function hs(t){var e=Ui();return Vi(99,ds.bind(null,t,e)),null}function ds(t,e){do{ys()}while(null!==Uu);if(0!==(48&xu))throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=fs(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Ou&&(Su=Ou=null,Tu=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=xu;xu|=32,mu.current=null,yn=Ye;var u=dn();if(pn(u)){if("selectionStart"in u)var s={start:u.selectionStart,end:u.selectionEnd};else t:{var c=(s=(s=u.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var l=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{s.nodeType,f.nodeType}catch(T){s=null;break t}var h=0,d=-1,p=-1,y=0,v=0,b=u,g=null;e:for(;;){for(var m;b!==s||0!==l&&3!==b.nodeType||(d=h+l),b!==f||0!==c&&3!==b.nodeType||(p=h+c),3===b.nodeType&&(h+=b.nodeValue.length),null!==(m=b.firstChild);)g=b,b=m;for(;;){if(b===u)break e;if(g===s&&++y===l&&(d=h),g===f&&++v===c&&(p=h),null!==(m=b.nextSibling))break;g=(b=g).parentNode}b=m}s=-1===d||-1===p?null:{start:d,end:p}}else s=null}s=s||{start:0,end:0}}else s=null;vn={activeElementDetached:null,focusedElem:u,selectionRange:s},Ye=!1,Lu=i;do{try{ps()}catch(T){if(null===Lu)throw Error(a(330));gs(Lu,T),Lu=Lu.nextEffect}}while(null!==Lu);Lu=i;do{try{for(u=t,s=e;null!==Lu;){var _=Lu.effectTag;if(16&_&&Ut(Lu.stateNode,""),128&_){var w=Lu.alternate;if(null!==w){var k=w.ref;null!==k&&("function"===typeof k?k(null):k.current=null)}}switch(1038&_){case 2:cu(Lu),Lu.effectTag&=-3;break;case 6:cu(Lu),Lu.effectTag&=-3,fu(Lu.alternate,Lu);break;case 1024:Lu.effectTag&=-1025;break;case 1028:Lu.effectTag&=-1025,fu(Lu.alternate,Lu);break;case 4:fu(Lu.alternate,Lu);break;case 8:lu(u,l=Lu,s),uu(l)}Lu=Lu.nextEffect}}catch(T){if(null===Lu)throw Error(a(330));gs(Lu,T),Lu=Lu.nextEffect}}while(null!==Lu);if(k=vn,w=dn(),_=k.focusedElem,s=k.selectionRange,w!==_&&_&&_.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==s&&pn(_)&&(w=s.start,void 0===(k=s.end)&&(k=w),"selectionStart"in _?(_.selectionStart=w,_.selectionEnd=Math.min(k,_.value.length)):(k=(w=_.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),l=_.textContent.length,u=Math.min(s.start,l),s=void 0===s.end?u:Math.min(s.end,l),!k.extend&&u>s&&(l=s,s=u,u=l),l=hn(_,u),f=hn(_,s),l&&f&&(1!==k.rangeCount||k.anchorNode!==l.node||k.anchorOffset!==l.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((w=w.createRange()).setStart(l.node,l.offset),k.removeAllRanges(),u>s?(k.addRange(w),k.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),k.addRange(w))))),w=[];for(k=_;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof _.focus&&_.focus(),_=0;_<w.length;_++)(k=w[_]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Ye=!!yn,vn=yn=null,t.current=n,Lu=i;do{try{for(_=t;null!==Lu;){var x=Lu.effectTag;if(36&x&&ou(_,Lu.alternate,Lu),128&x){w=void 0;var O=Lu.ref;if(null!==O){var S=Lu.stateNode;switch(Lu.tag){case 5:w=S;break;default:w=S}"function"===typeof O?O(w):O.current=w}}Lu=Lu.nextEffect}}catch(T){if(null===Lu)throw Error(a(330));gs(Lu,T),Lu=Lu.nextEffect}}while(null!==Lu);Lu=null,Mi(),xu=o}else t.current=n;if(Ru)Ru=!1,Uu=t,zu=e;else for(Lu=i;null!==Lu;)e=Lu.nextEffect,Lu.nextEffect=null,Lu=e;if(0===(e=t.firstPendingTime)&&(Fu=null),1073741823===e?t===Wu?Hu++:(Hu=0,Wu=t):Hu=0,"function"===typeof ws&&ws(n.stateNode,r),Qu(t),Bu)throw Bu=!1,t=Pu,Pu=null,t;return 0!==(8&xu)||qi(),null}function ps(){for(;null!==Lu;){var t=Lu.effectTag;0!==(256&t)&&nu(Lu.alternate,Lu),0===(512&t)||Ru||(Ru=!0,Hi(97,(function(){return ys(),null}))),Lu=Lu.nextEffect}}function ys(){if(90!==zu){var t=97<zu?97:zu;return zu=90,Vi(t,vs)}}function vs(){if(null===Uu)return!1;var t=Uu;if(Uu=null,0!==(48&xu))throw Error(a(331));var e=xu;for(xu|=32,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ru(5,n),iu(5,n)}}catch(r){if(null===t)throw Error(a(330));gs(t,r)}n=t.nextEffect,t.nextEffect=null,t=n}return xu=e,qi(),!0}function bs(t,e,n){so(t,e=pu(t,e=Za(n,e),1073741823)),null!==(t=Ku(t,1073741823))&&Qu(t)}function gs(t,e){if(3===t.tag)bs(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){bs(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Fu||!Fu.has(r))){so(n,t=yu(n,t=Za(e,t),1073741823)),null!==(n=Ku(n,1073741823))&&Qu(n);break}}n=n.return}}function ms(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),Ou===t&&Tu===n?Eu===ku||Eu===wu&&1073741823===Au&&Ri()-Mu<500?ns(t,Tu):Du=!0:Ns(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Qu(t)))}function _s(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=$u(e=Yu(),t,null)),null!==(t=Ku(t,e))&&Qu(t)}vu=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||hi.current)Ia=!0;else{if(r<n){switch(Ia=!1,e.tag){case 3:Ra(e),ja();break;case 5:if(Mo(e),4&e.mode&&1!==n&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:yi(e.type)&&mi(e);break;case 4:No(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,i=e.type._context,ci(Ki,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Wa(t,e,n):(ci(Bo,1&Bo.current),null!==(e=Ga(t,e,n))?e.sibling:null);ci(Bo,1&Bo.current);break;case 19:if(r=e.childExpirationTime>=n,0!==(64&t.effectTag)){if(r)return $a(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),ci(Bo,Bo.current),!r)return null}return Ga(t,e,n)}Ia=!1}}else Ia=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=pi(e,fi.current),no(e,n),i=Go(null,e,r,t,i,n),e.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,yi(r)){var o=!0;mi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(e);var u=r.getDerivedStateFromProps;"function"===typeof u&&yo(e,r,u,t),i.updater=vo,e.stateNode=i,i._reactInternalFiber=e,_o(e,r,t,n),e=Fa(null,e,r,!0,o,n)}else e.tag=0,Ca(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"===typeof t)return Ss(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===st)return 11;if(t===ft)return 14}return 2}(i),t=Gi(i,t),o){case 0:e=Ba(null,e,i,t,n);break t;case 1:e=Pa(null,e,i,t,n);break t;case 11:e=Na(null,e,i,t,n);break t;case 14:e=Da(null,e,i,Gi(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Ba(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 1:return r=e.type,i=e.pendingProps,Pa(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 3:if(Ra(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,ao(t,e),lo(e,r,null,n),(r=e.memoizedState.element)===i)ja(),e=Ga(t,e,n);else{if((i=e.stateNode.hydrate)&&(wa=wn(e.stateNode.containerInfo.firstChild),_a=e,i=ka=!0),i)for(n=To(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ca(t,e,r,n),ja();e=e.child}return e;case 5:return Mo(e),null===t&&Sa(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,u=i.children,gn(r,i)?u=null:null!==o&&gn(r,o)&&(e.effectTag|=16),La(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ca(t,e,u,n),e=e.child),e;case 6:return null===t&&Sa(e),null;case 13:return Wa(t,e,n);case 4:return No(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=So(e,null,r,n):Ca(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Na(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 7:return Ca(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ca(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,u=e.memoizedProps,o=i.value;var s=e.type._context;if(ci(Ki,s._currentValue),s._currentValue=o,null!==u)if(s=u.value,0===(o=Pr(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(u.children===i.children&&!hi.current){e=Ga(t,e,n);break t}}else for(null!==(s=e.child)&&(s.return=e);null!==s;){var c=s.dependencies;if(null!==c){u=s.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&o)){1===s.tag&&((l=uo(n,null)).tag=2,so(s,l)),s.expirationTime<n&&(s.expirationTime=n),null!==(l=s.alternate)&&l.expirationTime<n&&(l.expirationTime=n),eo(s.return,n),c.expirationTime<n&&(c.expirationTime=n);break}l=l.next}}else u=10===s.tag&&s.type===e.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===e){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}Ca(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,no(e,n),r=r(i=ro(i,o.unstable_observedBits)),e.effectTag|=1,Ca(t,e,r,n),e.child;case 14:return o=Gi(i=e.type,e.pendingProps),Da(t,e,i,o=Gi(i.type,o),r,n);case 15:return Ma(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Gi(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,yi(r)?(t=!0,mi(e)):t=!1,no(e,n),go(e,r,i),_o(e,r,i,n),Fa(null,e,r,!0,t,n);case 19:return $a(t,e,n)}throw Error(a(156,e.tag))};var ws=null,ks=null;function xs(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Os(t,e,n,r){return new xs(t,e,n,r)}function Ss(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Ts(t,e){var n=t.alternate;return null===n?((n=Os(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Es(t,e,n,r,i,o){var u=2;if(r=t,"function"===typeof t)Ss(t)&&(u=1);else if("string"===typeof t)u=5;else t:switch(t){case nt:return js(n.children,i,o,e);case ut:u=8,i|=7;break;case rt:u=8,i|=1;break;case it:return(t=Os(12,n,e,8|i)).elementType=it,t.type=it,t.expirationTime=o,t;case ct:return(t=Os(13,n,e,i)).type=ct,t.elementType=ct,t.expirationTime=o,t;case lt:return(t=Os(19,n,e,i)).elementType=lt,t.expirationTime=o,t;default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case ot:u=10;break t;case at:u=9;break t;case st:u=11;break t;case ft:u=14;break t;case ht:u=16,r=null;break t;case dt:u=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Os(u,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function js(t,e,n,r){return(t=Os(7,t,r,e)).expirationTime=n,t}function As(t,e,n){return(t=Os(6,t,null,e)).expirationTime=n,t}function Is(t,e,n){return(e=Os(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Cs(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ns(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Ds(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Ms(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Ls(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Bs(t,e,n,r){var i=e.current,o=Yu(),u=ho.suspense;o=$u(o,i,u);t:if(n){e:{if(Jt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(yi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var c=n.type;if(yi(c)){n=gi(n,c,s);break t}}n=s}else n=li;return null===e.context?e.context=n:e.pendingContext=n,(e=uo(o,u)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),so(i,e),Gu(i,o),o}function Ps(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Fs(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Rs(t,e){Fs(t,e),(t=t.alternate)&&Fs(t,e)}function Us(t,e,n){var r=new Cs(t,e,n=null!=n&&!0===n.hydrate),i=Os(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,oo(i),t[Tn]=r.current,n&&0!==e&&function(t,e){var n=Zt(e);Te.forEach((function(t){pe(t,e,n)})),Ee.forEach((function(t){pe(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function zs(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Vs(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var u=i;i=function(){var t=Ps(a);u.call(t)}}Bs(e,a,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Us(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var s=i;i=function(){var t=Ps(a);s.call(t)}}es((function(){Bs(e,a,t,i)}))}return Ps(a)}function Hs(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:et,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Ws(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!zs(e))throw Error(a(200));return Hs(t,e,null,n)}Us.prototype.render=function(t){Bs(t,this._internalRoot,null,null)},Us.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Bs(null,t,null,(function(){e[Tn]=null}))},ye=function(t){if(13===t.tag){var e=$i(Yu(),150,100);Gu(t,e),Rs(t,e)}},ve=function(t){13===t.tag&&(Gu(t,3),Rs(t,3))},be=function(t){if(13===t.tag){var e=Yu();Gu(t,e=$u(e,t,null)),Rs(t,e)}},j=function(t,e,n){switch(e){case"input":if(St(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=In(r);if(!i)throw Error(a(90));wt(r),St(r,i)}}}break;case"textarea":Nt(t,n);break;case"select":null!=(e=n.value)&&At(t,!!n.multiple,e,!1)}},M=ts,L=function(t,e,n,r,i){var o=xu;xu|=4;try{return Vi(98,t.bind(null,e,n,r,i))}finally{0===(xu=o)&&qi()}},B=function(){0===(49&xu)&&(function(){if(null!==Vu){var t=Vu;Vu=null,t.forEach((function(t,e){Ls(e,t),Qu(e)})),qi()}}(),ys())},P=function(t,e){var n=xu;xu|=2;try{return t(e)}finally{0===(xu=n)&&qi()}};var qs={Events:[jn,An,In,T,x,Pn,function(t){ie(t,Bn)},N,D,Qe,ue,ys,{current:!1}]};!function(t){var e=t.findFiberByHostInstance;(function(t){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);ws=function(t){try{e.onCommitFiberRoot(n,t,void 0,64===(64&t.current.effectTag))}catch(r){}},ks=function(t){try{e.onCommitFiberUnmount(n,t)}catch(r){}}}catch(r){}})(i({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=ne(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:En,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qs,e.createPortal=Ws,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"===typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=ne(e))?null:t.stateNode},e.flushSync=function(t,e){if(0!==(48&xu))throw Error(a(187));var n=xu;xu|=1;try{return Vi(99,t.bind(null,e))}finally{xu=n,qi()}},e.hydrate=function(t,e,n){if(!zs(e))throw Error(a(200));return Vs(null,t,e,!0,n)},e.render=function(t,e,n){if(!zs(e))throw Error(a(200));return Vs(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!zs(t))throw Error(a(40));return!!t._reactRootContainer&&(es((function(){Vs(null,null,t,!1,(function(){t._reactRootContainer=null,t[Tn]=null}))})),!0)},e.unstable_batchedUpdates=ts,e.unstable_createPortal=function(t,e){return Ws(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!zs(n))throw Error(a(200));if(null==t||void 0===t._reactInternalFiber)throw Error(a(38));return Vs(t,e,n,!1,r)},e.version="16.14.0"},function(t,e,n){"use strict";t.exports=n(62)},function(t,e,n){"use strict";var r,i,o,a,u;if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,c=null,l=function t(){if(null!==s)try{var n=e.unstable_now();s(!0,n),s=null}catch(r){throw setTimeout(t,0),r}},f=Date.now();e.unstable_now=function(){return Date.now()-f},r=function(t){null!==s?setTimeout(r,0,t):(s=t,setTimeout(l,0))},i=function(t,e){c=setTimeout(t,e)},o=function(){clearTimeout(c)},a=function(){return!1},u=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,d=window.Date,p=window.setTimeout,y=window.clearTimeout;if("undefined"!==typeof console){var v=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof h&&"function"===typeof h.now)e.unstable_now=function(){return h.now()};else{var b=d.now();e.unstable_now=function(){return d.now()-b}}var g=!1,m=null,_=-1,w=5,k=0;a=function(){return e.unstable_now()>=k},u=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var x=new MessageChannel,O=x.port2;x.port1.onmessage=function(){if(null!==m){var t=e.unstable_now();k=t+w;try{m(!0,t)?O.postMessage(null):(g=!1,m=null)}catch(n){throw O.postMessage(null),n}}else g=!1},r=function(t){m=t,g||(g=!0,O.postMessage(null))},i=function(t,n){_=p((function(){t(e.unstable_now())}),n)},o=function(){y(_),_=-1}}function S(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<j(i,e)))break t;t[r]=e,t[n]=i,n=r}}function T(t){return void 0===(t=t[0])?null:t}function E(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],u=o+1,s=t[u];if(void 0!==a&&0>j(a,n))void 0!==s&&0>j(s,a)?(t[r]=s,t[u]=n,r=u):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==s&&0>j(s,n)))break t;t[r]=s,t[u]=n,r=u}}}return e}return null}function j(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var A=[],I=[],C=1,N=null,D=3,M=!1,L=!1,B=!1;function P(t){for(var e=T(I);null!==e;){if(null===e.callback)E(I);else{if(!(e.startTime<=t))break;E(I),e.sortIndex=e.expirationTime,S(A,e)}e=T(I)}}function F(t){if(B=!1,P(t),!L)if(null!==T(A))L=!0,r(R);else{var e=T(I);null!==e&&i(F,e.startTime-t)}}function R(t,n){L=!1,B&&(B=!1,o()),M=!0;var r=D;try{for(P(n),N=T(A);null!==N&&(!(N.expirationTime>n)||t&&!a());){var u=N.callback;if(null!==u){N.callback=null,D=N.priorityLevel;var s=u(N.expirationTime<=n);n=e.unstable_now(),"function"===typeof s?N.callback=s:N===T(A)&&E(A),P(n)}else E(A);N=T(A)}if(null!==N)var c=!0;else{var l=T(I);null!==l&&i(F,l.startTime-n),c=!1}return c}finally{N=null,D=r,M=!1}}function U(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=u;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){L||M||(L=!0,r(R))},e.unstable_getCurrentPriorityLevel=function(){return D},e.unstable_getFirstCallbackNode=function(){return T(A)},e.unstable_next=function(t){switch(D){case 1:case 2:case 3:var e=3;break;default:e=D}var n=D;D=e;try{return t()}finally{D=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=D;D=t;try{return e()}finally{D=n}},e.unstable_scheduleCallback=function(t,n,a){var u=e.unstable_now();if("object"===typeof a&&null!==a){var s=a.delay;s="number"===typeof s&&0<s?u+s:u,a="number"===typeof a.timeout?a.timeout:U(t)}else a=U(t),s=u;return t={id:C++,callback:n,priorityLevel:t,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>u?(t.sortIndex=s,S(I,t),null===T(A)&&t===T(I)&&(B?o():B=!0,i(F,s-u))):(t.sortIndex=a,S(A,t),L||M||(L=!0,r(R))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();P(t);var n=T(A);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=D;return function(){var n=D;D=e;try{return t.apply(this,arguments)}finally{D=n}}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";t.exports=n(65)},function(t,e,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function k(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case f:case h:case a:case s:case u:case p:return t;default:switch(t=t&&t.$$typeof){case l:case d:case b:case v:case c:return t;default:return e}}case o:return e}}}function x(t){return k(t)===h}e.AsyncMode=f,e.ConcurrentMode=h,e.ContextConsumer=l,e.ContextProvider=c,e.Element=i,e.ForwardRef=d,e.Fragment=a,e.Lazy=b,e.Memo=v,e.Portal=o,e.Profiler=s,e.StrictMode=u,e.Suspense=p,e.isAsyncMode=function(t){return x(t)||k(t)===f},e.isConcurrentMode=x,e.isContextConsumer=function(t){return k(t)===l},e.isContextProvider=function(t){return k(t)===c},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return k(t)===d},e.isFragment=function(t){return k(t)===a},e.isLazy=function(t){return k(t)===b},e.isMemo=function(t){return k(t)===v},e.isPortal=function(t){return k(t)===o},e.isProfiler=function(t){return k(t)===s},e.isStrictMode=function(t){return k(t)===u},e.isSuspense=function(t){return k(t)===p},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===a||t===h||t===s||t===u||t===p||t===y||"object"===typeof t&&null!==t&&(t.$$typeof===b||t.$$typeof===v||t.$$typeof===c||t.$$typeof===l||t.$$typeof===d||t.$$typeof===m||t.$$typeof===_||t.$$typeof===w||t.$$typeof===g)},e.typeOf=k},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(T){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=_(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=s;var l={};function f(){}function h(){}function d(){}var p={};p[i]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==e&&n.call(v,i)&&(p=v);var b=d.prototype=f.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,u){var s=c(t[i],t,o);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"===typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=b.constructor=d,d.constructor=h,h.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},g(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new m(s(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(b),u(b,a,"Generator"),b[i]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=O,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=y(n(5)),i=n(49),o=n(48),a=n(6),u=n(47),s=y(n(21)),c=y(n(32)),l=y(n(41)),f=n(33),h=n(23),d=n(68),p=n(24);function y(t){return t&&t.__esModule?t:{default:t}}function v(t){return(v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e,n){return e&&w(t.prototype,e),n&&w(t,n),t}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S=function(t){function e(t){var n,r,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,i=m(e).call(this,t),n=!i||"object"!==v(i)&&"function"!==typeof i?_(r):i,O(_(n),"_generateFocusAnimationProps",(function(){n.state.enableFocusAnimation&&(n.focusAnimationTimeout&&clearTimeout(n.focusAnimationTimeout),n.focusAnimationTimeout=setTimeout((function(){return n.setState({enableFocusAnimation:!1})}),1e3*n.state.config.focusAnimationDuration));var t=n.state.enableFocusAnimation?n.state.config.focusAnimationDuration:0;return{style:{transitionDuration:"".concat(t,"s")},transform:n.state.focusTransformation}})),O(_(n),"_onDragEnd",(function(){n.isDraggingNode=!1,n.state.draggedNode&&(n.onNodePositionChange(n.state.draggedNode),n._tick({draggedNode:null})),!n.state.config.staticGraph&&n.state.config.automaticRearrangeAfterDropNode&&n.state.simulation.alphaTarget(n.state.config.d3.alphaTarget).restart()})),O(_(n),"_onDragMove",(function(t,e,r){var i=r[e].id;if(!n.state.config.staticGraph){var o=n.state.nodes[i];o.oldX=o.x,o.oldY=o.y,o.x+=a.event.dx,o.y+=a.event.dy,o.fx=o.x,o.fy=o.y,n._tick({draggedNode:o})}})),O(_(n),"_onDragStart",(function(){n.isDraggingNode=!0,n.pauseSimulation(),n.state.enableFocusAnimation&&n.setState({enableFocusAnimation:!1})})),O(_(n),"_setNodeHighlightedValue",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n._tick((0,h.updateNodeHighlightedValue)(n.state.nodes,n.state.links,n.state.config,t,e))})),O(_(n),"_tick",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return e?n.setState(t,e):n.setState(t)})),O(_(n),"_zoomConfig",(function(){var t=(0,a.select)("#".concat(n.state.id,"-").concat(s.default.GRAPH_WRAPPER_ID)),e=(0,u.zoom)().scaleExtent([n.state.config.minZoom,n.state.config.maxZoom]);n.state.config.freezeAllDragEvents||e.on("zoom",n._zoomed),null!==n.state.config.initialZoom&&e.scaleTo(t,n.state.config.initialZoom),t.call(e).on("dblclick.zoom",null)})),O(_(n),"_zoomed",(function(){var t=a.event.transform;(0,a.selectAll)("#".concat(n.state.id,"-").concat(s.default.GRAPH_CONTAINER_ID)).attr("transform",t),n.state.config.panAndZoom&&n.setState({transform:t.k}),n.debouncedOnZoomChange&&n.state.previousZoom!==t.k&&(n.debouncedOnZoomChange(n.state.previousZoom,t.k),n.setState({previousZoom:t.k}))})),O(_(n),"onClickGraph",(function(t){var e,r,i;n.state.enableFocusAnimation&&n.setState({enableFocusAnimation:!1});var o=t.target&&t.target.tagName,a=null===t||void 0===t||null===(e=t.target)||void 0===e||null===(r=e.attributes)||void 0===r||null===(i=r.name)||void 0===i?void 0:i.value,u="svg-container-".concat(n.state.id);"SVG"===o.toUpperCase()&&a===u&&n.props.onClickGraph&&n.props.onClickGraph(t)})),O(_(n),"onClickNode",(function(t){var e=n.state.nodes[t];if(n.state.config.collapsible){var r=(0,f.getTargetLeafConnections)(t,n.state.links,n.state.config),i=(0,f.toggleLinksMatrixConnections)(n.state.links,r,n.state.config),o=(0,f.toggleLinksConnections)(n.state.d3Links,i),a=null===r||void 0===r?void 0:r[0],u=!1;if(a){var c=i[a.source][a.target];u=1===c}n._tick({links:i,d3Links:o},(function(){n.props.onClickNode&&n.props.onClickNode(t,e),u&&n._graphNodeDragConfig()}))}else n.nodeClickTimer?(n.props.onDoubleClickNode&&n.props.onDoubleClickNode(t,e),n.nodeClickTimer=clearTimeout(n.nodeClickTimer)):n.nodeClickTimer=setTimeout((function(){n.props.onClickNode&&n.props.onClickNode(t,e),n.nodeClickTimer=null}),s.default.TTL_DOUBLE_CLICK_IN_MS)})),O(_(n),"onRightClickNode",(function(t,e){var r=n.state.nodes[e];n.props.onRightClickNode&&n.props.onRightClickNode(t,e,r)})),O(_(n),"onMouseOverNode",(function(t){if(!n.isDraggingNode){var e=n.state.nodes[t];n.props.onMouseOverNode&&n.props.onMouseOverNode(t,e),n.state.config.nodeHighlightBehavior&&n._setNodeHighlightedValue(t,!0)}})),O(_(n),"onMouseOutNode",(function(t){if(!n.isDraggingNode){var e=n.state.nodes[t];n.props.onMouseOutNode&&n.props.onMouseOutNode(t,e),n.state.config.nodeHighlightBehavior&&n._setNodeHighlightedValue(t,!1)}})),O(_(n),"onMouseOverLink",(function(t,e){if(n.props.onMouseOverLink&&n.props.onMouseOverLink(t,e),n.state.config.linkHighlightBehavior){var r={source:t,target:e};n._tick({highlightedLink:r})}})),O(_(n),"onMouseOutLink",(function(t,e){if(n.props.onMouseOutLink&&n.props.onMouseOutLink(t,e),n.state.config.linkHighlightBehavior){n._tick({highlightedLink:void 0})}})),O(_(n),"onNodePositionChange",(function(t){if(n.props.onNodePositionChange){var e=t.id,r=t.x,i=t.y;n.props.onNodePositionChange(e,r,i)}})),O(_(n),"pauseSimulation",(function(){return n.state.simulation.stop()})),O(_(n),"resetNodesPositions",(function(){if(!n.state.config.staticGraph){var t=(0,h.initializeNodes)(n.props.data.nodes);for(var e in n.state.nodes){var r=n.state.nodes[e];if(r.fx&&r.fy&&(Reflect.deleteProperty(r,"fx"),Reflect.deleteProperty(r,"fy")),e in t){var i=t[e];r.x=i.x,r.y=i.y}}n.state.simulation.alphaTarget(n.state.config.d3.alphaTarget).restart(),n._tick()}})),O(_(n),"restartSimulation",(function(){return!n.state.config.staticGraph&&n.state.simulation.restart()})),n.props.id||(0,p.throwErr)(n.constructor.name,l.default.GRAPH_NO_ID_PROP),n.focusAnimationTimeout=null,n.nodeClickTimer=null,n.isDraggingNode=!1,n.state=(0,h.initializeGraphState)(n.props,n.state),n.debouncedOnZoomChange=n.props.onZoomChange?(0,p.debounce)(n.props.onZoomChange,100):null,n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}(e,t),k(e,[{key:"_graphLinkForceConfig",value:function(){var t=(0,o.forceLink)(this.state.d3Links).id((function(t){return t.id})).distance(this.state.config.d3.linkLength).strength(this.state.config.d3.linkStrength);this.state.simulation.force(s.default.LINK_CLASS_NAME,t)}},{key:"_graphNodeDragConfig",value:function(){var t=(0,i.drag)().on("start",this._onDragStart).on("drag",this._onDragMove).on("end",this._onDragEnd);(0,a.select)("#".concat(this.state.id,"-").concat(s.default.GRAPH_WRAPPER_ID)).selectAll(".node").call(t)}},{key:"_graphBindD3ToReactComponent",value:function(){this.state.config.d3.disableLinkForce||(this.state.simulation.nodes(this.state.d3Nodes).on("tick",this._tick),this._graphLinkForceConfig()),this.state.config.freezeAllDragEvents||this._graphNodeDragConfig()}}]),k(e,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=(0,h.checkForGraphElementsChanges)(t,this.state),n=e.graphElementsUpdated,r=e.newGraphElements,i=n?(0,h.initializeGraphState)(t,this.state):this.state,o=t.config||{},a=(0,h.checkForGraphConfigChanges)(t,this.state),u=a.configUpdated,l=a.d3ConfigUpdated,f=u?(0,p.merge)(c.default,o):this.state.config;r&&this.pauseSimulation();var d=o.panAndZoom!==this.state.config.panAndZoom?1:this.state.transform,y=t.data.focusedNodeId,v=this.state.d3Nodes.find((function(t){return"".concat(t.id)==="".concat(y)})),b="".concat(this.state.id,"-").concat(s.default.GRAPH_WRAPPER_ID),m=(0,h.getCenterAndZoomTransformation)(v,this.state.config,b)||this.state.focusTransformation,_=this.props.data.focusedNodeId!==t.data.focusedNodeId;t.onZoomChange&&(this.debouncedOnZoomChange=(0,p.debounce)(t.onZoomChange,100)),this.setState(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},i,{config:f,configUpdated:u,d3ConfigUpdated:l,newGraphElements:r,transform:d,focusedNodeId:y,enableFocusAnimation:_,focusTransformation:m}))}},{key:"componentDidUpdate",value:function(){(this.state.config.staticGraph||this.state.config.staticGraphWithDragAndDrop)&&this.pauseSimulation(),this.state.config.staticGraph||!this.state.newGraphElements&&!this.state.d3ConfigUpdated?this.state.configUpdated&&this._graphNodeDragConfig():(this._graphBindD3ToReactComponent(),this.state.config.staticGraphWithDragAndDrop||this.restartSimulation(),this.setState({newGraphElements:!1,d3ConfigUpdated:!1})),this.state.configUpdated&&(this._zoomConfig(),this.setState({configUpdated:!1}))}},{key:"componentDidMount",value:function(){this.state.config.staticGraph||this._graphBindD3ToReactComponent(),this._zoomConfig()}},{key:"componentWillUnmount",value:function(){this.pauseSimulation(),this.nodeClickTimer&&(clearTimeout(this.nodeClickTimer),this.nodeClickTimer=null),this.focusAnimationTimeout&&(clearTimeout(this.focusAnimationTimeout),this.focusAnimationTimeout=null)}},{key:"render",value:function(){var t=(0,d.renderGraph)(this.state.nodes,{onClickNode:this.onClickNode,onDoubleClickNode:this.onDoubleClickNode,onRightClickNode:this.onRightClickNode,onMouseOverNode:this.onMouseOverNode,onMouseOut:this.onMouseOutNode},this.state.d3Links,this.state.links,{onClickLink:this.props.onClickLink,onRightClickLink:this.props.onRightClickLink,onMouseOverLink:this.onMouseOverLink,onMouseOutLink:this.onMouseOutLink},this.state.config,this.state.highlightedNode,this.state.highlightedLink,this.state.transform),e=t.nodes,n=t.links,i=t.defs,o={height:this.state.config.height,width:this.state.config.width},a=this._generateFocusAnimationProps();return r.default.createElement("div",{id:"".concat(this.state.id,"-").concat(s.default.GRAPH_WRAPPER_ID)},r.default.createElement("svg",{name:"svg-container-".concat(this.state.id),style:o,onClick:this.onClickGraph},i,r.default.createElement("g",b({id:"".concat(this.state.id,"-").concat(s.default.GRAPH_CONTAINER_ID)},a),n,e)))}}]),e}(r.default.Component);e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderGraph=function(t,e,n,r,i,o,a,u,s){return{nodes:m(t,e,o,a,u,s,r),links:g(t,n,r,o,i,a,u,s),defs:_(o)}};var r=d(n(5)),i=d(n(21)),o=n(42),a=d(n(43)),u=d(n(44)),s=d(n(70)),c=n(71),l=n(23),f=n(33),h=n(46);function d(t){return t&&t.__esModule?t:{default:t}}function p(){return(p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e,n,o,u,s,f,h){var d=e;return o.collapsible&&(d=d.filter((function(t){return!t.isHidden}))),d.map((function(e){var d=e.source,y=e.target,b=(0,l.getId)(d),g=(0,l.getId)(y),m="".concat(b).concat(i.default.COORDS_SEPARATOR).concat(g),_=(0,c.buildLinkProps)(v({},e,{source:"".concat(b),target:"".concat(g)}),t,n,o,u,"".concat(s),f,h);return r.default.createElement(a.default,p({key:m,id:m},_))}))}function m(t,e,n,i,o,a,s){var l=Object.keys(t);return n.collapsible&&(l=l.filter((function(e){return(0,f.isNodeVisible)(e,t,s)}))),l.map((function(s){var l=(0,c.buildNodeProps)(v({},t[s],{id:"".concat(s)}),n,e,i,o,a);return r.default.createElement(u.default,p({key:s},l))}))}var _=function(){var t={};return function(e){var n=e.link.highlightColor&&"SAME"!==e.link.highlightColor?e.link.highlightColor:e.link.color,i=e.link.color,a="".concat(i,"___").concat(n);if(!t[a]){var u=(0,h.getMarkerSize)(e),c=u.small,l=u.medium,f=u.large,d={markerWidth:e.link.markerWidth,markerHeight:e.link.markerHeight};t[a]=r.default.createElement("defs",null,r.default.createElement(s.default,p({id:o.MARKERS.MARKER_S,refX:c,fill:i},d)),r.default.createElement(s.default,p({id:o.MARKERS.MARKER_SH,refX:c,fill:n},d)),r.default.createElement(s.default,p({id:o.MARKERS.MARKER_M,refX:l,fill:i},d)),r.default.createElement(s.default,p({id:o.MARKERS.MARKER_MH,refX:l,fill:n},d)),r.default.createElement(s.default,p({id:o.MARKERS.MARKER_L,refX:f,fill:i},d)),r.default.createElement(s.default,p({id:o.MARKERS.MARKER_LH,refX:f,fill:n},d)))}return t[a]}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=n(75),o=(r=n(45))&&r.__esModule?r:{default:r};function a(t){switch(t){case o.default.SYMBOLS.CIRCLE:return i.symbolCircle;case o.default.SYMBOLS.CROSS:return i.symbolCross;case o.default.SYMBOLS.DIAMOND:return i.symbolDiamond;case o.default.SYMBOLS.SQUARE:return i.symbolSquare;case o.default.SYMBOLS.STAR:return i.symbolStar;case o.default.SYMBOLS.TRIANGLE:return i.symbolTriangle;case o.default.SYMBOLS.WYE:return i.symbolWye;default:return i.symbolCircle}}var u={buildSvgSymbol:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.default.DEFAULT_NODE_SIZE,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.SYMBOLS.CIRCLE;return(0,i.symbol)().size((function(){return t})).type((function(){return a(e)}))()},getLabelPlacementProps:function(t,e){switch(e){case"right":return{dx:t?"".concat(t):o.default.NODE_LABEL_DX,dy:"0",dominantBaseline:"middle",textAnchor:"start"};case"left":return{dx:t?"".concat(-t):"-".concat(o.default.NODE_LABEL_DX),dy:"0",dominantBaseline:"middle",textAnchor:"end"};case"top":return{dx:"0",dy:t?"".concat(-t):"-".concat(o.default.NODE_LABEL_DX),dominantBaseline:"baseline",textAnchor:"middle"};case"bottom":return{dx:"0",dy:t?"".concat(t):o.default.NODE_LABEL_DX,dominantBaseline:"hanging",textAnchor:"middle"};case"center":return{dx:"0",dy:"0",dominantBaseline:"middle",textAnchor:"middle"};default:return{dx:t?"".concat(t):o.default.NODE_LABEL_DX,dy:o.default.NODE_LABEL_DY}}}};e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(5))&&r.__esModule?r:{default:r};function o(t){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return!e||"object"!==o(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(t){function e(){return a(this,e),s(this,c(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i.default.createElement("marker",{className:"marker",id:this.props.id,viewBox:"0 -5 10 10",refX:this.props.refX,refY:"0",markerWidth:this.props.markerWidth,markerHeight:this.props.markerHeight,orient:"auto",fill:this.props.fill},i.default.createElement("path",{d:"M0,-5L10,0L0,5"}))}}])&&u(n.prototype,r),o&&u(n,o),e}(i.default.Component);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildLinkProps=function(t,e,n,r,s,c,l,f){var h,d,p,y,v=t.source,b=t.target,g=(null===e||void 0===e||null===(h=e[v])||void 0===h?void 0:h.x)||0,m=(null===e||void 0===e||null===(d=e[v])||void 0===d?void 0:d.y)||0,_=(null===e||void 0===e||null===(p=e[b])||void 0===p?void 0:p.x)||0,w=(null===e||void 0===e||null===(y=e[b])||void 0===y?void 0:y.y)||0,k=t.type||r.link.type,x=!1;switch(r.highlightDegree){case 0:break;case 2:x=!0;break;default:x=v===c||b===c}var O=x&&e[v].highlighted&&e[b].highlighted,S=v===(l&&l.source)&&b===(l&&l.target),T=O||S,E=t.opacity||r.link.opacity;(c||l&&l.source)&&(E=T?r.link.opacity:r.highlightOpacity);var j=t.color||r.link.color;T&&(j=r.link.highlightColor===i.default.KEYWORDS.SAME?r.link.color:r.link.highlightColor);var A=t.strokeDasharray||r.link.strokeDasharray,I=t.strokeDashoffset||r.link.strokeDashoffset,C=t.strokeLinecap||r.link.strokeLinecap,N=(t.strokeWidth||r.link.strokeWidth)*(1/f);if(r.link.semanticStrokeWidth){var D=n[v][b]||n[b][v]||1;N+=D*N/10}var M=r.directed?(0,a.getMarkerId)(T,f,r):null,L=1/f,B=null,P=null,F=null,R=null;r.link.renderLabel&&(R="function"===typeof r.link.labelProperty?r.link.labelProperty(t):t[r.link.labelProperty],B=t.fontSize||r.link.fontSize,P=t.fontColor||r.link.fontColor,F=T?r.link.highlightFontWeight:r.link.fontWeight);var U=(0,u.getNormalizedNodeCoordinates)({sourceId:v,targetId:b,sourceCoords:{x:g,y:m},targetCoords:{x:_,y:w}},e,r,N),z=U.sourceCoords,V=U.targetCoords,H=(0,o.buildLinkPathDefinition)(z,V,k,t.breakPoints);return{className:i.default.LINK_CLASS_NAME,d:H,fontColor:P,fontSize:B*L,fontWeight:F,label:R,markerId:M,mouseCursor:r.link.mouseCursor,opacity:E,source:v,stroke:j,strokeWidth:N,strokeDasharray:A,strokeDashoffset:I,strokeLinecap:C,target:b,onClickLink:s.onClickLink,onMouseOutLink:s.onMouseOutLink,onMouseOverLink:s.onMouseOverLink,onRightClickLink:s.onRightClickLink}},e.buildNodeProps=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,u=t.highlighted||t.id===(o&&o.source)||t.id===(o&&o.target),s=h(t,r,o,e),l=t.color||e.node.color;u&&e.node.highlightColor!==i.default.KEYWORDS.SAME&&(l=e.node.highlightColor);var d=t.strokeColor||e.node.strokeColor;u&&e.node.highlightStrokeColor!==i.default.KEYWORDS.SAME&&(d=e.node.highlightStrokeColor);var p=t[e.node.labelProperty]||t.id;"function"===typeof e.node.labelProperty&&(p=e.node.labelProperty(t));var y=t.labelPosition||e.node.labelPosition,v=t.strokeWidth||e.node.strokeWidth;u&&e.node.highlightStrokeWidth!==i.default.KEYWORDS.SAME&&(v=e.node.highlightStrokeWidth);var b=1/a,g=t.size||e.node.size,m="object"!==f(g),_=0;m?_=g:"top"===y||"bottom"===y?_=g.height:"right"!==y&&"left"!==y||(_=g.width);var w=t.fontSize||e.node.fontSize,k=t.highlightFontSize||e.node.highlightFontSize,x=u?k:w,O=x*b+_/100+1.5,S=t.svg||e.node.svg,T=t.fontColor||e.node.fontColor,E=e.node.renderLabel;void 0!==t.renderLabel&&"boolean"===typeof t.renderLabel&&(E=t.renderLabel);return c({},t,{className:i.default.NODE_CLASS_NAME,cursor:e.node.mouseCursor,cx:(null===t||void 0===t?void 0:t.x)||"0",cy:(null===t||void 0===t?void 0:t.y)||"0",dx:O,fill:l,fontColor:T,fontSize:x*b,fontWeight:u?e.node.highlightFontWeight:e.node.fontWeight,id:t.id,label:p,labelPosition:y,opacity:s,overrideGlobalViewGenerator:!t.viewGenerator&&t.svg,renderLabel:E,size:m?g*b:{height:g.height*b,width:g.width*b},stroke:d,strokeWidth:v*b,svg:S,type:t.symbolType||e.node.symbolType,viewGenerator:t.viewGenerator||e.node.viewGenerator,onClickNode:n.onClickNode,onMouseOut:n.onMouseOut,onMouseOverNode:n.onMouseOverNode,onRightClickNode:n.onRightClickNode})};var r,i=(r=n(21))&&r.__esModule?r:{default:r},o=n(72),a=n(46),u=n(23);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e,n,r){var i=t.highlighted||t.id===(n&&n.source)||t.id===(n&&n.target),o=n&&n.source&&n.target,a=!(!e&&!o);return a&&0===r.highlightDegree||a?i?r.node.opacity:r.highlightOpacity:t.opacity||r.node.opacity}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildLinkPathDefinition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.LINE_TYPES.STRAIGHT,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=t.x,u=t.y,c=i.LINE_TYPES[n]||i.LINE_TYPES.STRAIGHT,l=s(c),f=[].concat(o(r),[e]),h=f.map((function(e,n){var r=e.x,i=e.y,o=n>0?f[n-1]:t,a=o.x,u=o.y,s=l(a,u,r,i);return" A".concat(s,",").concat(s," 0 0,1 ").concat(r,",").concat(i)})).join("");return"M".concat(a,",").concat(u).concat(h)};var r,i=n(73);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=(a(r={},i.LINE_TYPES.STRAIGHT,(function(){return 0})),a(r,i.LINE_TYPES.CURVE_SMOOTH,(function(t,e,n,r){var i=n-t,o=r-e;return Math.sqrt(i*i+o*o)})),a(r,i.LINE_TYPES.CURVE_FULL,(function(){return 1})),r);function s(t){return u[t]||u[i.LINE_TYPES.STRAIGHT]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINE_TYPES=void 0;e.LINE_TYPES={STRAIGHT:"STRAIGHT",CURVE_SMOOTH:"CURVE_SMOOTH",CURVE_FULL:"CURVE_FULL"}},function(t,e,n){},function(t,e,n){"use strict";n.r(e),n.d(e,"arc",(function(){return A})),n.d(e,"area",(function(){return L})),n.d(e,"line",(function(){return M})),n.d(e,"pie",(function(){return F})),n.d(e,"areaRadial",(function(){return W})),n.d(e,"radialArea",(function(){return W})),n.d(e,"lineRadial",(function(){return H})),n.d(e,"radialLine",(function(){return H})),n.d(e,"pointRadial",(function(){return q})),n.d(e,"linkHorizontal",(function(){return J})),n.d(e,"linkVertical",(function(){return tt})),n.d(e,"linkRadial",(function(){return et})),n.d(e,"symbol",(function(){return mt})),n.d(e,"symbols",(function(){return gt})),n.d(e,"symbolCircle",(function(){return nt})),n.d(e,"symbolCross",(function(){return rt})),n.d(e,"symbolDiamond",(function(){return at})),n.d(e,"symbolSquare",(function(){return ft})),n.d(e,"symbolStar",(function(){return lt})),n.d(e,"symbolTriangle",(function(){return dt})),n.d(e,"symbolWye",(function(){return bt})),n.d(e,"curveBasisClosed",(function(){return St})),n.d(e,"curveBasisOpen",(function(){return Et})),n.d(e,"curveBasis",(function(){return xt})),n.d(e,"curveBundle",(function(){return At})),n.d(e,"curveCardinalClosed",(function(){return Mt})),n.d(e,"curveCardinalOpen",(function(){return Bt})),n.d(e,"curveCardinal",(function(){return Nt})),n.d(e,"curveCatmullRomClosed",(function(){return zt})),n.d(e,"curveCatmullRomOpen",(function(){return Ht})),n.d(e,"curveCatmullRom",(function(){return Rt})),n.d(e,"curveLinearClosed",(function(){return qt})),n.d(e,"curveLinear",(function(){return C})),n.d(e,"curveMonotoneX",(function(){return Jt})),n.d(e,"curveMonotoneY",(function(){return te})),n.d(e,"curveNatural",(function(){return re})),n.d(e,"curveStep",(function(){return oe})),n.d(e,"curveStepAfter",(function(){return ue})),n.d(e,"curveStepBefore",(function(){return ae})),n.d(e,"stack",(function(){return fe})),n.d(e,"stackOffsetExpand",(function(){return he})),n.d(e,"stackOffsetDiverging",(function(){return de})),n.d(e,"stackOffsetNone",(function(){return se})),n.d(e,"stackOffsetSilhouette",(function(){return pe})),n.d(e,"stackOffsetWiggle",(function(){return ye})),n.d(e,"stackOrderAppearance",(function(){return ve})),n.d(e,"stackOrderAscending",(function(){return ge})),n.d(e,"stackOrderDescending",(function(){return _e})),n.d(e,"stackOrderInsideOut",(function(){return we})),n.d(e,"stackOrderNone",(function(){return ce})),n.d(e,"stackOrderReverse",(function(){return ke}));var r=Math.PI,i=2*r,o=i-1e-6;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new a}a.prototype=u.prototype={constructor:a,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var a=this._x1,u=this._y1,s=n-t,c=i-e,l=a-t,f=u-e,h=l*l+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(f*s-c*l)>1e-6&&o){var d=n-a,p=i-u,y=s*s+c*c,v=d*d+p*p,b=Math.sqrt(y),g=Math.sqrt(h),m=o*Math.tan((r-Math.acos((y+h-v)/(2*b*g)))/2),_=m/g,w=m/b;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*l)+","+(e+_*f)),this._+="A"+o+","+o+",0,0,"+ +(f*d>l*p)+","+(this._x1=t+w*s)+","+(this._y1=e+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,a,u,s){t=+t,e=+e,s=!!s;var c=(n=+n)*Math.cos(a),l=n*Math.sin(a),f=t+c,h=e+l,d=1^s,p=s?a-u:u-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(p<0&&(p=p%i+i),p>o?this._+="A"+n+","+n+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+n+","+n+",0,1,"+d+","+(this._x1=f)+","+(this._y1=h):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=t+n*Math.cos(u))+","+(this._y1=e+n*Math.sin(u))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var s=u,c=function(t){return function(){return t}},l=Math.abs,f=Math.atan2,h=Math.cos,d=Math.max,p=Math.min,y=Math.sin,v=Math.sqrt,b=Math.PI,g=b/2,m=2*b;function _(t){return t>1?0:t<-1?b:Math.acos(t)}function w(t){return t>=1?g:t<=-1?-g:Math.asin(t)}function k(t){return t.innerRadius}function x(t){return t.outerRadius}function O(t){return t.startAngle}function S(t){return t.endAngle}function T(t){return t&&t.padAngle}function E(t,e,n,r,i,o,a,u){var s=n-t,c=r-e,l=a-i,f=u-o,h=f*s-l*c;if(!(h*h<1e-12))return[t+(h=(l*(e-o)-f*(t-i))/h)*s,e+h*c]}function j(t,e,n,r,i,o,a){var u=t-n,s=e-r,c=(a?o:-o)/v(u*u+s*s),l=c*s,f=-c*u,h=t+l,p=e+f,y=n+l,b=r+f,g=(h+y)/2,m=(p+b)/2,_=y-h,w=b-p,k=_*_+w*w,x=i-o,O=h*b-y*p,S=(w<0?-1:1)*v(d(0,x*x*k-O*O)),T=(O*w-_*S)/k,E=(-O*_-w*S)/k,j=(O*w+_*S)/k,A=(-O*_+w*S)/k,I=T-g,C=E-m,N=j-g,D=A-m;return I*I+C*C>N*N+D*D&&(T=j,E=A),{cx:T,cy:E,x01:-l,y01:-f,x11:T*(i/x-1),y11:E*(i/x-1)}}var A=function(){var t=k,e=x,n=c(0),r=null,i=O,o=S,a=T,u=null;function d(){var c,d,k=+t.apply(this,arguments),x=+e.apply(this,arguments),O=i.apply(this,arguments)-g,S=o.apply(this,arguments)-g,T=l(S-O),A=S>O;if(u||(u=c=s()),x<k&&(d=x,x=k,k=d),x>1e-12)if(T>m-1e-12)u.moveTo(x*h(O),x*y(O)),u.arc(0,0,x,O,S,!A),k>1e-12&&(u.moveTo(k*h(S),k*y(S)),u.arc(0,0,k,S,O,A));else{var I,C,N=O,D=S,M=O,L=S,B=T,P=T,F=a.apply(this,arguments)/2,R=F>1e-12&&(r?+r.apply(this,arguments):v(k*k+x*x)),U=p(l(x-k)/2,+n.apply(this,arguments)),z=U,V=U;if(R>1e-12){var H=w(R/k*y(F)),W=w(R/x*y(F));(B-=2*H)>1e-12?(M+=H*=A?1:-1,L-=H):(B=0,M=L=(O+S)/2),(P-=2*W)>1e-12?(N+=W*=A?1:-1,D-=W):(P=0,N=D=(O+S)/2)}var q=x*h(N),Y=x*y(N),$=k*h(L),G=k*y(L);if(U>1e-12){var K,X=x*h(D),Q=x*y(D),Z=k*h(M),J=k*y(M);if(T<b&&(K=E(q,Y,Z,J,X,Q,$,G))){var tt=q-K[0],et=Y-K[1],nt=X-K[0],rt=Q-K[1],it=1/y(_((tt*nt+et*rt)/(v(tt*tt+et*et)*v(nt*nt+rt*rt)))/2),ot=v(K[0]*K[0]+K[1]*K[1]);z=p(U,(k-ot)/(it-1)),V=p(U,(x-ot)/(it+1))}}P>1e-12?V>1e-12?(I=j(Z,J,q,Y,x,V,A),C=j(X,Q,$,G,x,V,A),u.moveTo(I.cx+I.x01,I.cy+I.y01),V<U?u.arc(I.cx,I.cy,V,f(I.y01,I.x01),f(C.y01,C.x01),!A):(u.arc(I.cx,I.cy,V,f(I.y01,I.x01),f(I.y11,I.x11),!A),u.arc(0,0,x,f(I.cy+I.y11,I.cx+I.x11),f(C.cy+C.y11,C.cx+C.x11),!A),u.arc(C.cx,C.cy,V,f(C.y11,C.x11),f(C.y01,C.x01),!A))):(u.moveTo(q,Y),u.arc(0,0,x,N,D,!A)):u.moveTo(q,Y),k>1e-12&&B>1e-12?z>1e-12?(I=j($,G,X,Q,k,-z,A),C=j(q,Y,Z,J,k,-z,A),u.lineTo(I.cx+I.x01,I.cy+I.y01),z<U?u.arc(I.cx,I.cy,z,f(I.y01,I.x01),f(C.y01,C.x01),!A):(u.arc(I.cx,I.cy,z,f(I.y01,I.x01),f(I.y11,I.x11),!A),u.arc(0,0,k,f(I.cy+I.y11,I.cx+I.x11),f(C.cy+C.y11,C.cx+C.x11),A),u.arc(C.cx,C.cy,z,f(C.y11,C.x11),f(C.y01,C.x01),!A))):u.arc(0,0,k,L,M,A):u.lineTo($,G)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return d.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-b/2;return[h(r)*n,y(r)*n]},d.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:c(+e),d):t},d.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),d):e},d.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:c(+t),d):n},d.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:c(+t),d):r},d.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:c(+t),d):i},d.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:c(+t),d):o},d.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:c(+t),d):a},d.context=function(t){return arguments.length?(u=null==t?null:t,d):u},d};function I(t){this._context=t}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var C=function(t){return new I(t)};function N(t){return t[0]}function D(t){return t[1]}var M=function(){var t=N,e=D,n=c(!0),r=null,i=C,o=null;function a(a){var u,c,l,f=a.length,h=!1;for(null==r&&(o=i(l=s())),u=0;u<=f;++u)!(u<f&&n(c=a[u],u,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(c,u,a),+e(c,u,a));if(l)return o=null,l+""||null}return a.x=function(e){return arguments.length?(t="function"===typeof e?e:c(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:c(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},L=function(){var t=N,e=null,n=c(0),r=D,i=c(!0),o=null,a=C,u=null;function l(c){var l,f,h,d,p,y=c.length,v=!1,b=new Array(y),g=new Array(y);for(null==o&&(u=a(p=s())),l=0;l<=y;++l){if(!(l<y&&i(d=c[l],l,c))===v)if(v=!v)f=l,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=l-1;h>=f;--h)u.point(b[h],g[h]);u.lineEnd(),u.areaEnd()}v&&(b[l]=+t(d,l,c),g[l]=+n(d,l,c),u.point(e?+e(d,l,c):b[l],r?+r(d,l,c):g[l]))}if(p)return u=null,p+""||null}function f(){return M().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(t="function"===typeof n?n:c(+n),e=null,l):t},l.x0=function(e){return arguments.length?(t="function"===typeof e?e:c(+e),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:c(+t),l):e},l.y=function(t){return arguments.length?(n="function"===typeof t?t:c(+t),r=null,l):n},l.y0=function(t){return arguments.length?(n="function"===typeof t?t:c(+t),l):n},l.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:c(+t),l):r},l.lineX0=l.lineY0=function(){return f().x(t).y(n)},l.lineY1=function(){return f().x(t).y(r)},l.lineX1=function(){return f().x(e).y(n)},l.defined=function(t){return arguments.length?(i="function"===typeof t?t:c(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l},B=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},P=function(t){return t},F=function(){var t=P,e=B,n=null,r=c(0),i=c(m),o=c(0);function a(a){var u,s,c,l,f,h=a.length,d=0,p=new Array(h),y=new Array(h),v=+r.apply(this,arguments),b=Math.min(m,Math.max(-m,i.apply(this,arguments)-v)),g=Math.min(Math.abs(b)/h,o.apply(this,arguments)),_=g*(b<0?-1:1);for(u=0;u<h;++u)(f=y[p[u]=u]=+t(a[u],u,a))>0&&(d+=f);for(null!=e?p.sort((function(t,n){return e(y[t],y[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),u=0,c=d?(b-h*_)/d:0;u<h;++u,v=l)s=p[u],l=v+((f=y[s])>0?f*c:0)+_,y[s]={data:a[s],index:u,value:f,startAngle:v,endAngle:l,padAngle:g};return y}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:c(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:c(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:c(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:c(+t),a):o},a},R=z(C);function U(t){this._curve=t}function z(t){function e(e){return new U(t(e))}return e._curve=t,e}function V(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(z(t)):e()._curve},t}U.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var H=function(){return V(M().curve(R))},W=function(){var t=L().curve(R),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return V(n())},delete t.lineX0,t.lineEndAngle=function(){return V(r())},delete t.lineX1,t.lineInnerRadius=function(){return V(i())},delete t.lineY0,t.lineOuterRadius=function(){return V(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(z(t)):e()._curve},t},q=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},Y=Array.prototype.slice;function $(t){return t.source}function G(t){return t.target}function K(t){var e=$,n=G,r=N,i=D,o=null;function a(){var a,u=Y.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(o||(o=a=s()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=l,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"===typeof t?t:c(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:c(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function X(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Q(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Z(t,e,n,r,i){var o=q(e,n),a=q(e,n=(n+i)/2),u=q(r,n),s=q(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],s[0],s[1])}function J(){return K(X)}function tt(){return K(Q)}function et(){var t=K(Z);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var nt={draw:function(t,e){var n=Math.sqrt(e/b);t.moveTo(n,0),t.arc(0,0,n,0,m)}},rt={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},it=Math.sqrt(1/3),ot=2*it,at={draw:function(t,e){var n=Math.sqrt(e/ot),r=n*it;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},ut=Math.sin(b/10)/Math.sin(7*b/10),st=Math.sin(m/10)*ut,ct=-Math.cos(m/10)*ut,lt={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=st*n,i=ct*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=m*o/5,u=Math.cos(a),s=Math.sin(a);t.lineTo(s*n,-u*n),t.lineTo(u*r-s*i,s*r+u*i)}t.closePath()}},ft={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},ht=Math.sqrt(3),dt={draw:function(t,e){var n=-Math.sqrt(e/(3*ht));t.moveTo(0,2*n),t.lineTo(-ht*n,-n),t.lineTo(ht*n,-n),t.closePath()}},pt=Math.sqrt(3)/2,yt=1/Math.sqrt(12),vt=3*(yt/2+1),bt={draw:function(t,e){var n=Math.sqrt(e/vt),r=n/2,i=n*yt,o=r,a=n*yt+n,u=-o,s=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,s),t.lineTo(-.5*r-pt*i,pt*r+-.5*i),t.lineTo(-.5*o-pt*a,pt*o+-.5*a),t.lineTo(-.5*u-pt*s,pt*u+-.5*s),t.lineTo(-.5*r+pt*i,-.5*i-pt*r),t.lineTo(-.5*o+pt*a,-.5*a-pt*o),t.lineTo(-.5*u+pt*s,-.5*s-pt*u),t.closePath()}},gt=[nt,rt,at,ft,lt,dt,bt],mt=function(){var t=c(nt),e=c(64),n=null;function r(){var r;if(n||(n=r=s()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"===typeof e?e:c(e),r):t},r.size=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},_t=function(){};function wt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function kt(t){this._context=t}kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var xt=function(t){return new kt(t)};function Ot(t){this._context=t}Ot.prototype={areaStart:_t,areaEnd:_t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var St=function(t){return new Ot(t)};function Tt(t){this._context=t}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Et=function(t){return new Tt(t)};function jt(t,e){this._basis=new kt(t),this._beta=e}jt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*a),this._beta*e[s]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var At=function t(e){function n(t){return 1===e?new kt(t):new jt(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function It(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Ct(t,e){this._context=t,this._k=(1-e)/6}Ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:It(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:It(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function n(t){return new Ct(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Dt(t,e){this._context=t,this._k=(1-e)/6}Dt.prototype={areaStart:_t,areaEnd:_t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:It(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function n(t){return new Dt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Lt(t,e){this._context=t,this._k=(1-e)/6}Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:It(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bt=function t(e){function n(t){return new Lt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Pt(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Ft(t,e){this._context=t,this._alpha=e}Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rt=function t(e){function n(t){return e?new Ft(t,e):new Ct(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ut(t,e){this._context=t,this._alpha=e}Ut.prototype={areaStart:_t,areaEnd:_t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var zt=function t(e){function n(t){return e?new Ut(t,e):new Dt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Vt(t,e){this._context=t,this._alpha=e}Vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ht=function t(e){function n(t){return e?new Vt(t,e):new Lt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Wt(t){this._context=t}Wt.prototype={areaStart:_t,areaEnd:_t,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var qt=function(t){return new Wt(t)};function Yt(t){return t<0?-1:1}function $t(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(Yt(o)+Yt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Gt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Kt(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function Xt(t){this._context=t}function Qt(t){this._context=new Zt(t)}function Zt(t){this._context=t}function Jt(t){return new Xt(t)}function te(t){return new Qt(t)}function ee(t){this._context=t}function ne(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}Xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Kt(this,this._t0,Gt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Kt(this,Gt(this,n=$t(this,t,e)),n);break;default:Kt(this,this._t0,n=$t(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Qt.prototype=Object.create(Xt.prototype)).point=function(t,e){Xt.prototype.point.call(this,e,t)},Zt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=ne(t),i=ne(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var re=function(t){return new ee(t)};function ie(t,e){this._context=t,this._t=e}ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var oe=function(t){return new ie(t,.5)};function ae(t){return new ie(t,0)}function ue(t){return new ie(t,1)}var se=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},ce=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function le(t,e){return t[e]}var fe=function(){var t=c([]),e=ce,n=se,r=le;function i(i){var o,a,u=t.apply(this,arguments),s=i.length,c=u.length,l=new Array(c);for(o=0;o<c;++o){for(var f,h=u[o],d=l[o]=new Array(s),p=0;p<s;++p)d[p]=f=[0,+r(i[p],h,p,i)],f.data=i[p];d.key=h}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:c(Y.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:c(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?ce:"function"===typeof t?t:c(Y.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?se:t,i):n},i},he=function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}se(t,e)}},de=function(t,e){if((u=t.length)>0)for(var n,r,i,o,a,u,s=0,c=t[e[0]].length;s<c;++s)for(o=a=0,n=0;n<u;++n)(i=(r=t[e[n]][s])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},pe=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}se(t,e)}},ye=function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var u=0,s=0,c=0;u<i;++u){for(var l=t[e[u]],f=l[a][1]||0,h=(f-(l[a-1][1]||0))/2,d=0;d<u;++d){var p=t[e[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}s+=f,c+=h*f}n[a-1][1]+=n[a-1][0]=o,s&&(o-=c/s)}n[a-1][1]+=n[a-1][0]=o,se(t,e)}},ve=function(t){var e=t.map(be);return ce(t).sort((function(t,n){return e[t]-e[n]}))};function be(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++n<i;)(e=+t[n][1])>o&&(o=e,r=n);return r}var ge=function(t){var e=t.map(me);return ce(t).sort((function(t,n){return e[t]-e[n]}))};function me(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}var _e=function(t){return ge(t).reverse()},we=function(t){var e,n,r=t.length,i=t.map(me),o=ve(t),a=0,u=0,s=[],c=[];for(e=0;e<r;++e)n=o[e],a<u?(a+=i[n],s.push(n)):(u+=i[n],c.push(n));return c.reverse().concat(s)},ke=function(t){return ce(t).reverse()}},,function(t,e,n){"use strict";var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function u(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function s(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,c=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++o<c;)if(n=(t=i[o]).type)r[n]=s(r[n],t.name,e);else if(null==e)for(n in r)r[n]=s(r[n],t.name,null);return this}for(;++o<c;)if((n=(t=i[o]).type)&&(n=u(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},e.a=i}]]);
  //# sourceMappingURL=2.81fc0c87.chunk.js.map