text: /*! For license information please see 2.1b79fe21.chunk.js.LICENSE.txt */
  (this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[2],[function(t,e,n){t.exports=n(42)},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";n.d(e,"a",(function(){return i}));var r=n(10);function i(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=Object(r.a)(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 i,a,o=!0,u=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==i.return||i.return()}finally{if(u)throw a}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(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,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(s){i=!0,a=s}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}return n}}(t,e)||Object(r.a)(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(t,e,n){"use strict";t.exports=n(36)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(13),i=n(14);function a(t,e,n){return(a=Object(i.a)()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var a=new(Function.bind.apply(t,i));return n&&Object(r.a)(a,n.prototype),a}).apply(null,arguments)}},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(11);function i(t,e){if(t){if("string"===typeof t)return Object(r.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)?Object(r.a)(t,e):void 0}}},function(t,e,n){"use strict";function r(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}n.d(e,"a",(function(){return r}))},,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";n.d(e,"b",(function(){return pl})),n.d(e,"a",(function(){return hl}));var r={};n.r(r),n.d(r,"memcpy",(function(){return Vt})),n.d(r,"joinUint8Arrays",(function(){return Wt})),n.d(r,"toArrayBufferView",(function(){return Ht})),n.d(r,"toInt8Array",(function(){return Yt})),n.d(r,"toInt16Array",(function(){return $t})),n.d(r,"toInt32Array",(function(){return qt})),n.d(r,"toBigInt64Array",(function(){return Kt})),n.d(r,"toUint8Array",(function(){return Qt})),n.d(r,"toUint16Array",(function(){return Gt})),n.d(r,"toUint32Array",(function(){return Xt})),n.d(r,"toBigUint64Array",(function(){return Jt})),n.d(r,"toFloat32Array",(function(){return Zt})),n.d(r,"toFloat64Array",(function(){return te})),n.d(r,"toUint8ClampedArray",(function(){return ee})),n.d(r,"toArrayBufferViewIterator",(function(){return re})),n.d(r,"toInt8ArrayIterator",(function(){return ie})),n.d(r,"toInt16ArrayIterator",(function(){return ae})),n.d(r,"toInt32ArrayIterator",(function(){return oe})),n.d(r,"toUint8ArrayIterator",(function(){return ue})),n.d(r,"toUint16ArrayIterator",(function(){return se})),n.d(r,"toUint32ArrayIterator",(function(){return ce})),n.d(r,"toFloat32ArrayIterator",(function(){return le})),n.d(r,"toFloat64ArrayIterator",(function(){return fe})),n.d(r,"toUint8ClampedArrayIterator",(function(){return he})),n.d(r,"toArrayBufferViewAsyncIterator",(function(){return de})),n.d(r,"toInt8ArrayAsyncIterator",(function(){return ye})),n.d(r,"toInt16ArrayAsyncIterator",(function(){return ve})),n.d(r,"toInt32ArrayAsyncIterator",(function(){return be})),n.d(r,"toUint8ArrayAsyncIterator",(function(){return me})),n.d(r,"toUint16ArrayAsyncIterator",(function(){return ge})),n.d(r,"toUint32ArrayAsyncIterator",(function(){return we})),n.d(r,"toFloat32ArrayAsyncIterator",(function(){return ke})),n.d(r,"toFloat64ArrayAsyncIterator",(function(){return _e})),n.d(r,"toUint8ClampedArrayAsyncIterator",(function(){return xe})),n.d(r,"rebaseValueOffsets",(function(){return Se})),n.d(r,"compareArrayLike",(function(){return Te}));var i={};n.r(i),n.d(i,"getBool",(function(){return an})),n.d(i,"getBit",(function(){return on})),n.d(i,"setBool",(function(){return un})),n.d(i,"truncateBitmap",(function(){return sn})),n.d(i,"packBools",(function(){return cn})),n.d(i,"iterateBits",(function(){return ln})),n.d(i,"popcnt_bit_range",(function(){return fn})),n.d(i,"popcnt_array",(function(){return hn})),n.d(i,"popcnt_uint32",(function(){return dn}));var a={};n.r(a),n.d(a,"uint16ToFloat64",(function(){return Fr})),n.d(a,"float64ToUint16",(function(){return jr}));var o={};n.r(o),n.d(o,"isArrowBigNumSymbol",(function(){return Yr})),n.d(o,"bignumToString",(function(){return Ur})),n.d(o,"bignumToBigInt",(function(){return Pr})),n.d(o,"BN",(function(){return Zr}));var u={};n.r(u),n.d(u,"clampIndex",(function(){return ji})),n.d(u,"clampRange",(function(){return Ui})),n.d(u,"createElementComparator",(function(){return zi}));var s={};n.r(s),n.d(s,"BaseInt64",(function(){return no})),n.d(s,"Uint64",(function(){return ro})),n.d(s,"Int64",(function(){return io})),n.d(s,"Int128",(function(){return ao}));var c=n(22),l=n.n(c),f=n(4),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,m(i))}}function m(t){return{get:function(){return y(this).event[t]},set:function(e){y(this).event[t]=e},configurable:!0,enumerable:!0}}function g(t){return{value:function(){var e=y(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function w(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 a=n[i];if(!(a in t.prototype)){var o="function"===typeof Object.getOwnPropertyDescriptor(e,a).value;Object.defineProperty(r.prototype,a,o?g(a):m(a))}}return r}(w(Object.getPrototypeOf(t)),t),p.set(t,e)),e}function k(t){return y(t).immediateStopped}function _(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 S(t){return null!==t&&"object"===typeof t}function T(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 I(t,e){Object.defineProperty(t,"on".concat(e),function(t){return{get:function(){for(var e=T(this).get(t);null!=e;){if(3===e.listenerType)return e.listener;e=e.next}return null},set:function(e){"function"===typeof e||S(e)||(e=null);for(var n=T(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 a={listener:e,listenerType:3,passive:!1,once:!1,next:null};null===r?n.set(t,a):r.next=a}},configurable:!0,enumerable:!0}}(e))}function E(t){function e(){O.call(this)}e.prototype=Object.create(O.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(var n=0;n<t.length;++n)I(e.prototype,t[n]);return e}function O(){if(!(this instanceof O)){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)}O.prototype={addEventListener:function(t,e,n){if(null!=e){if("function"!==typeof e&&!S(e))throw new TypeError("'listener' should be a function or an object.");var r=T(this),i=S(n),a=(i?Boolean(n.capture):Boolean(n))?1:2,o={listener:e,listenerType:a,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===a)return;s=u,u=u.next}s.next=o}else r.set(t,o)}},removeEventListener:function(t,e,n){if(null!=e)for(var r=T(this),i=(S(n)?Boolean(n.capture):Boolean(n))?1:2,a=null,o=r.get(t);null!=o;){if(o.listener===e&&o.listenerType===i)return void(null!==a?a.next=o.next:null!==o.next?r.set(t,o.next):r.delete(t));a=o,o=o.next}},dispatchEvent:function(t){if(null==t||"string"!==typeof t.type)throw new TypeError('"event.type" should be a string.');var e=T(this),n=t.type,r=e.get(n);if(null==r)return!0;for(var i=function(t,e){return new(w(Object.getPrototypeOf(e)))(t,e)}(this,t),a=null;null!=r;){if(r.once?null!==a?a.next=r.next:null!==r.next?e.set(n,r.next):e.delete(n):a=r,_(i,r.passive?r.listener:null),"function"===typeof r.listener)try{r.listener.call(this,i)}catch(o){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(o)}else 3!==r.listenerType&&"function"===typeof r.listener.handleEvent&&r.listener.handleEvent(i);if(k(i))break;r=r.next}return _(i,null),function(t,e){y(t).eventPhase=e}(i,0),function(t,e){y(t).currentTarget=e}(i,null),!i.defaultPrevented}},Object.defineProperty(O.prototype,"constructor",{value:O,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.EventTarget&&Object.setPrototypeOf(O.prototype,window.EventTarget.prototype);var A=n(2);function M(t,e,n,r,i,a,o){try{var u=t[a](o),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 a=t.apply(e,n);function o(t){M(a,r,i,o,u,"next",t)}function u(t){M(a,r,i,o,u,"throw",t)}o(void 0)}))}}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N(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 L(t,e,n){return e&&N(t.prototype,e),n&&N(t,n),t}var C=n(0),F=n(3);function j(t){this.wrapped=t}function U(t){return new j(t)}function P(t){var e,n;function r(e,n){try{var a=t[e](n),o=a.value,u=o instanceof j;Promise.resolve(u?o.wrapped:o).then((function(t){u?r("return"===e?"return":"next",t):i(a.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(a,o){var u={key:t,arg:i,resolve:a,reject:o,next:null};n?n=n.next=u:(e=n=u,r(t,i))}))},"function"!==typeof t.return&&(this.return=void 0)}function R(t){return function(){return new P(t.apply(this,arguments))}}function z(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 V(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&&(P.prototype[Symbol.asyncIterator]=function(){return this}),P.prototype.next=function(t){return this._invoke("next",t)},P.prototype.throw=function(t){return this._invoke("throw",t)},P.prototype.return=function(t){return this._invoke("return",t)};var W={};function H(t,e,n){return e<=t&&t<=n}function Y(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}W.Offset,W.Table,W.SIZEOF_SHORT=2,W.SIZEOF_INT=4,W.FILE_IDENTIFIER_LENGTH=4,W.Encoding={UTF8_BYTES:1,UTF16_STRING:2},W.int32=new Int32Array(2),W.float32=new Float32Array(W.int32.buffer),W.float64=new Float64Array(W.int32.buffer),W.isLittleEndian=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],W.Long=function(t,e){this.low=0|t,this.high=0|e},W.Long.create=function(t,e){return 0==t&&0==e?W.Long.ZERO:new W.Long(t,e)},W.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},W.Long.prototype.equals=function(t){return this.low==t.low&&this.high==t.high},W.Long.ZERO=new W.Long(0,0),W.Builder=function(t){if(t)e=t;else var e=1024;this.bb=W.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},W.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},W.Builder.prototype.forceDefaults=function(t){this.force_defaults=t},W.Builder.prototype.dataBuffer=function(){return this.bb},W.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},W.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=W.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-r}this.pad(n)},W.Builder.prototype.pad=function(t){for(var e=0;e<t;e++)this.bb.writeInt8(--this.space,0)},W.Builder.prototype.writeInt8=function(t){this.bb.writeInt8(this.space-=1,t)},W.Builder.prototype.writeInt16=function(t){this.bb.writeInt16(this.space-=2,t)},W.Builder.prototype.writeInt32=function(t){this.bb.writeInt32(this.space-=4,t)},W.Builder.prototype.writeInt64=function(t){this.bb.writeInt64(this.space-=8,t)},W.Builder.prototype.writeFloat32=function(t){this.bb.writeFloat32(this.space-=4,t)},W.Builder.prototype.writeFloat64=function(t){this.bb.writeFloat64(this.space-=8,t)},W.Builder.prototype.addInt8=function(t){this.prep(1,0),this.writeInt8(t)},W.Builder.prototype.addInt16=function(t){this.prep(2,0),this.writeInt16(t)},W.Builder.prototype.addInt32=function(t){this.prep(4,0),this.writeInt32(t)},W.Builder.prototype.addInt64=function(t){this.prep(8,0),this.writeInt64(t)},W.Builder.prototype.addFloat32=function(t){this.prep(4,0),this.writeFloat32(t)},W.Builder.prototype.addFloat64=function(t){this.prep(8,0),this.writeFloat64(t)},W.Builder.prototype.addFieldInt8=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt8(e),this.slot(t))},W.Builder.prototype.addFieldInt16=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt16(e),this.slot(t))},W.Builder.prototype.addFieldInt32=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt32(e),this.slot(t))},W.Builder.prototype.addFieldInt64=function(t,e,n){!this.force_defaults&&e.equals(n)||(this.addInt64(e),this.slot(t))},W.Builder.prototype.addFieldFloat32=function(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat32(e),this.slot(t))},W.Builder.prototype.addFieldFloat64=function(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat64(e),this.slot(t))},W.Builder.prototype.addFieldOffset=function(t,e,n){(this.force_defaults||e!=n)&&(this.addOffset(e),this.slot(t))},W.Builder.prototype.addFieldStruct=function(t,e,n){e!=n&&(this.nested(e),this.slot(t))},W.Builder.prototype.nested=function(t){if(t!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")},W.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")},W.Builder.prototype.slot=function(t){this.vtable[t]=this.offset()},W.Builder.prototype.offset=function(){return this.bb.capacity()-this.space},W.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=W.ByteBuffer.allocate(n);return r.setPosition(n-e),r.bytes().set(t.bytes(),n-e),r},W.Builder.prototype.addOffset=function(t){this.prep(W.SIZEOF_INT,0),this.writeInt32(this.offset()-t+W.SIZEOF_INT)},W.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()},W.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)*W.SIZEOF_SHORT;this.addInt16(r);var i=0,a=this.space;t:for(e=0;e<this.vtables.length;e++){var o=this.bb.capacity()-this.vtables[e];if(r==this.bb.readInt16(o)){for(var u=W.SIZEOF_SHORT;u<r;u+=W.SIZEOF_SHORT)if(this.bb.readInt16(a+u)!=this.bb.readInt16(o+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},W.Builder.prototype.finish=function(t,e){if(e){var n=e;if(this.prep(this.minalign,W.SIZEOF_INT+W.FILE_IDENTIFIER_LENGTH),n.length!=W.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+W.FILE_IDENTIFIER_LENGTH);for(var r=W.FILE_IDENTIFIER_LENGTH-1;r>=0;r--)this.writeInt8(n.charCodeAt(r))}this.prep(this.minalign,W.SIZEOF_INT),this.addOffset(t),this.bb.setPosition(this.space)},W.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")},W.Builder.prototype.startVector=function(t,e,n){this.notNested(),this.vector_num_elems=e,this.prep(W.SIZEOF_INT,t*e),this.prep(n,t*e)},W.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},W.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 a=this.space,o=this.bb.bytes();n<e.length;n++)o[a++]=e[n];return this.endVector()},W.Builder.prototype.createLong=function(t,e){return W.Long.create(t,e)},W.ByteBuffer=function(t){this.bytes_=t,this.position_=0},W.ByteBuffer.allocate=function(t){return new W.ByteBuffer(new Uint8Array(t))},W.ByteBuffer.prototype.clear=function(){this.position_=0},W.ByteBuffer.prototype.bytes=function(){return this.bytes_},W.ByteBuffer.prototype.position=function(){return this.position_},W.ByteBuffer.prototype.setPosition=function(t){this.position_=t},W.ByteBuffer.prototype.capacity=function(){return this.bytes_.length},W.ByteBuffer.prototype.readInt8=function(t){return this.readUint8(t)<<24>>24},W.ByteBuffer.prototype.readUint8=function(t){return this.bytes_[t]},W.ByteBuffer.prototype.readInt16=function(t){return this.readUint16(t)<<16>>16},W.ByteBuffer.prototype.readUint16=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8},W.ByteBuffer.prototype.readInt32=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24},W.ByteBuffer.prototype.readUint32=function(t){return this.readInt32(t)>>>0},W.ByteBuffer.prototype.readInt64=function(t){return new W.Long(this.readInt32(t),this.readInt32(t+4))},W.ByteBuffer.prototype.readUint64=function(t){return new W.Long(this.readUint32(t),this.readUint32(t+4))},W.ByteBuffer.prototype.readFloat32=function(t){return W.int32[0]=this.readInt32(t),W.float32[0]},W.ByteBuffer.prototype.readFloat64=function(t){return W.int32[W.isLittleEndian?0:1]=this.readInt32(t),W.int32[W.isLittleEndian?1:0]=this.readInt32(t+4),W.float64[0]},W.ByteBuffer.prototype.writeInt8=function(t,e){this.bytes_[t]=e},W.ByteBuffer.prototype.writeUint8=function(t,e){this.bytes_[t]=e},W.ByteBuffer.prototype.writeInt16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},W.ByteBuffer.prototype.writeUint16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},W.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},W.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},W.ByteBuffer.prototype.writeInt64=function(t,e){this.writeInt32(t,e.low),this.writeInt32(t+4,e.high)},W.ByteBuffer.prototype.writeUint64=function(t,e){this.writeUint32(t,e.low),this.writeUint32(t+4,e.high)},W.ByteBuffer.prototype.writeFloat32=function(t,e){W.float32[0]=e,this.writeInt32(t,W.int32[0])},W.ByteBuffer.prototype.writeFloat64=function(t,e){W.float64[0]=e,this.writeInt32(t,W.int32[W.isLittleEndian?0:1]),this.writeInt32(t+4,W.int32[W.isLittleEndian?1:0])},W.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+W.SIZEOF_INT+W.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var t="",e=0;e<W.FILE_IDENTIFIER_LENGTH;e++)t+=String.fromCharCode(this.readInt8(this.position_+W.SIZEOF_INT+e));return t},W.ByteBuffer.prototype.__offset=function(t,e){var n=t-this.readInt32(t);return e<this.readInt16(n)?this.readInt16(n+e):0},W.ByteBuffer.prototype.__union=function(t,e){return t.bb_pos=e+this.readInt32(e),t.bb=this,t},W.ByteBuffer.prototype.__string=function(t,e){t+=this.readInt32(t);var n=this.readInt32(t),r="",i=0;if(t+=W.SIZEOF_INT,e===W.Encoding.UTF8_BYTES)return this.bytes_.subarray(t,t+n);for(;i<n;){var a,o=this.readUint8(t+i++);if(o<192)a=o;else{var u=this.readUint8(t+i++);if(o<224)a=(31&o)<<6|63&u;else{var s=this.readUint8(t+i++);if(o<240)a=(15&o)<<12|(63&u)<<6|63&s;else a=(7&o)<<18|(63&u)<<12|(63&s)<<6|63&this.readUint8(t+i++)}}a<65536?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296+(a>>10),56320+(1023&a)))}return r},W.ByteBuffer.prototype.__indirect=function(t){return t+this.readInt32(t)},W.ByteBuffer.prototype.__vector=function(t){return t+this.readInt32(t)+W.SIZEOF_INT},W.ByteBuffer.prototype.__vector_len=function(t){return this.readInt32(t+this.readInt32(t))},W.ByteBuffer.prototype.__has_identifier=function(t){if(t.length!=W.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+W.FILE_IDENTIFIER_LENGTH);for(var e=0;e<W.FILE_IDENTIFIER_LENGTH;e++)if(t.charCodeAt(e)!=this.readInt8(this.position_+W.SIZEOF_INT+e))return!1;return!0},W.ByteBuffer.prototype.createLong=function(t,e){return W.Long.create(t,e)};function $(t){this.tokens=[].slice.call(t)}$.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 q(t,e){if(t)throw TypeError("Decoder error");return e||65533}function K(t,e){if(!(this instanceof K))return new K(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=Y(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=Y(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function G(t){var e=t.fatal,n=0,r=0,i=0,a=128,o=191;this.handler=function(t,u){if(-1===u&&0!==i)return i=0,q(e);if(-1===u)return-1;if(0===i){if(H(u,0,127))return u;if(H(u,194,223))i=1,n=u-192;else if(H(u,224,239))224===u&&(a=160),237===u&&(o=159),i=2,n=u-224;else{if(!H(u,240,244))return q(e);240===u&&(a=144),244===u&&(o=143),i=3,n=u-240}return n<<=6*i,null}if(!H(u,a,o))return n=i=r=0,a=128,o=191,t.prepend(u),q(e);if(a=128,o=191,n+=u-128<<6*(i-(r+=1)),r!==i)return null;var s=n;return n=i=r=0,s}}function X(t){t.fatal;this.handler=function(t,e){if(-1===e)return-1;if(H(e,0,127))return e;var n,r;H(e,128,2047)?(n=1,r=192):H(e,2048,65535)?(n=2,r=224):H(e,65536,1114111)&&(n=3,r=240);for(var i=[(e>>6*n)+r];n>0;){var a=e>>6*(n-1);i.push(128|63&a),n-=1}return i}}K.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=Y(e),this._streaming||(this._decoder=new G({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var r,i=new $(n),a=[];!i.endOfStream()&&-1!==(r=this._decoder.handler(i,i.read()));)null!==r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r));if(!this._streaming){do{if(-1===(r=this._decoder.handler(i,i.read())))break;null!==r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}while(!i.endOfStream());this._decoder=null}return a.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===a[0]?(this._BOMseen=!0,a.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}(a)}},Q.prototype={encode:function(t,e){t=t?String(t):"",e=Y(e),this._streaming||(this._encoder=new X(this._options)),this._streaming=Boolean(e.stream);for(var n,r=[],i=new $(function(t){for(var e=String(t),n=e.length,r=0,i=[];r<n;){var a=e.charCodeAt(r);if(a<55296||a>57343)i.push(a);else if(56320<=a&&a<=57343)i.push(65533);else if(55296<=a&&a<=56319)if(r===n-1)i.push(65533);else{var o=t.charCodeAt(r+1);if(56320<=o&&o<=57343){var u=1023&a,s=1023&o;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 J="function"===typeof Buffer?Buffer:null,Z="function"===typeof TextDecoder&&"function"===typeof TextEncoder,tt=function(t){if(Z||!J){var e=new t("utf-8");return function(t){return e.decode(t)}}return function(t){var e=Qt(t),n=e.buffer,r=e.byteOffset,i=e.length;return J.from(n,r,i).toString()}}("undefined"!==typeof TextDecoder?TextDecoder:K),et=function(t){if(Z||!J){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 Qt(J.from(t,"utf8"))}}("undefined"!==typeof TextEncoder?TextEncoder:Q),nt=n(13);function rt(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(nt.a)(t,e)}var it=n(1),at=n(14);function ot(t){return(ot="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 ut(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function st(t,e){return!e||"object"!==ot(e)&&"function"!==typeof e?ut(t):e}function ct(t){return function(){var e,n=Object(it.a)(t);if(Object(at.a)()){var r=Object(it.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return st(this,e)}}var lt=Object.freeze({done:!0,value:void 0}),ft=function(){function t(e){B(this,t),this._json=e}return L(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}(),ht=function(){function t(){B(this,t)}return L(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}(),dt=function(t){rt(n,t);var e=ct(n);function n(){var t;return B(this,n),(t=e.call(this))._values=[],t.resolvers=[],t._closedPromise=new Promise((function(e){return t._closedPromiseResolve=e})),t}return L(n,[{key:"closed",get:function(){return this._closedPromise}},{key:"cancel",value:function(){var t=D(C.mark((function t(e){return C.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(lt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}},{key:Symbol.asyncIterator,value:function(){return this}},{key:"toDOMStream",value:function(t){return Ee.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}},{key:"toNodeStream",value:function(t){return Ee.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}},{key:"throw",value:function(){var t=D(C.mark((function t(e){return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.abort(e);case 2:return t.abrupt("return",lt);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=D(C.mark((function t(e){return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:return t.abrupt("return",lt);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=D(C.mark((function t(e){return C.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(C.mark((function t(e){return C.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(lt)}},{key:"_ensureOpen",value:function(){if(this._closedPromiseResolve)return!0;throw new Error("".concat(this," is closed"))}}]),n}(ht),pt=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]}(),yt=Object(F.a)(pt,2),vt=yt[0],bt=yt[1],mt=function(){var t=function(){throw new Error("BigInt64Array is not available in this environment")};return"undefined"!==typeof BigInt64Array?[BigInt64Array,!0]:[function(){function e(){throw B(this,e),t()}return L(e,null,[{key:"BYTES_PER_ELEMENT",get:function(){return 8}},{key:"of",value:function(){throw t()}},{key:"from",value:function(){throw t()}}]),e}(),!1]}(),gt=Object(F.a)(mt,2),wt=gt[0],kt=(gt[1],function(){var t=function(){throw new Error("BigUint64Array is not available in this environment")};return"undefined"!==typeof BigUint64Array?[BigUint64Array,!0]:[function(){function e(){throw B(this,e),t()}return L(e,null,[{key:"BYTES_PER_ELEMENT",get:function(){return 8}},{key:"of",value:function(){throw t()}},{key:"from",value:function(){throw t()}}]),e}(),!1]}()),_t=Object(F.a)(kt,2),xt=_t[0],St=(_t[1],function(t){return"number"===typeof t}),Tt=function(t){return"boolean"===typeof t},It=function(t){return"function"===typeof t},Et=function(t){return null!=t&&Object(t)===t},Ot=function(t){return Et(t)&&It(t.then)},At=function(t){return Et(t)&&It(t[Symbol.iterator])},Mt=function(t){return Et(t)&&It(t[Symbol.asyncIterator])},Dt=function(t){return Et(t)&&Et(t.schema)},Bt=function(t){return Et(t)&&"done"in t&&"value"in t},Nt=function(t){return Et(t)&&It(t.stat)&&St(t.fd)},Lt=function(t){return Et(t)&&Ft(t.body)},Ct=function(t){return Et(t)&&It(t.abort)&&It(t.getWriter)&&!(t instanceof ht)},Ft=function(t){return Et(t)&&It(t.cancel)&&It(t.getReader)&&!(t instanceof ht)},jt=function(t){return Et(t)&&It(t.end)&&It(t.write)&&Tt(t.writable)&&!(t instanceof ht)},Ut=function(t){return Et(t)&&It(t.read)&&It(t.pipe)&&Tt(t.readable)&&!(t instanceof ht)},Pt=C.mark(re),Rt=W.ByteBuffer,zt="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function Vt(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,a=new Uint8Array(t.buffer,t.byteOffset,i),o=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,i));return a.set(o,n),t}function Wt(t,e){for(var n,r,i,a=function(t){for(var e,n,r,i,a,o,u=t[0]?[t[0]]:[],s=0,c=0,l=t.length;++s<l;)if(a=u[c],o=t[s],!a||!o||a.buffer!==o.buffer||o.byteOffset<a.byteOffset)o&&(u[++c]=o);else{var f=a;e=f.byteOffset,r=f.byteLength;var h=o;n=h.byteOffset,i=h.byteLength,e+r<n||n+i<e?o&&(u[++c]=o):u[c]=new Uint8Array(a.buffer,e,n-e+i)}return u}(t),o=a.reduce((function(t,e){return t+e.byteLength}),0),u=0,s=-1,c=Math.min(e||1/0,o),l=a.length;++s<l;){if(c<=u+(r=(n=a[s]).subarray(0,Math.min(n.length,c-u))).length){r.length<n.length?a[s]=n.subarray(r.length):r.length===n.length&&s++,i?Vt(i,r,u):i=r;break}Vt(i||(i=new Uint8Array(c)),r,u),u+=r.length}return[i||new Uint8Array(0),a.slice(s),o-(i?i.byteLength:0)]}function Ht(t,e){var n=Bt(e)?e.value:e;return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?("string"===typeof n&&(n=et(n)),n instanceof ArrayBuffer||n instanceof zt?new t(n):n instanceof Rt?Ht(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 Yt=function(t){return Ht(Int8Array,t)},$t=function(t){return Ht(Int16Array,t)},qt=function(t){return Ht(Int32Array,t)},Kt=function(t){return Ht(wt,t)},Qt=function(t){return Ht(Uint8Array,t)},Gt=function(t){return Ht(Uint16Array,t)},Xt=function(t){return Ht(Uint32Array,t)},Jt=function(t){return Ht(xt,t)},Zt=function(t){return Ht(Float32Array,t)},te=function(t){return Ht(Float64Array,t)},ee=function(t){return Ht(Uint8ClampedArray,t)},ne=function(t){return t.next(),t};function re(t,e){var n,r;return C.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=C.mark((function t(e){return C.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 zt?n(e):At(e)?e:n(e),i.delegateYield(ne(C.mark((function e(n){var r;return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=null;case 1:return e.t0=n,e.next=4,Ht(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()}}),Pt)}var ie=function(t){return re(Int8Array,t)},ae=function(t){return re(Int16Array,t)},oe=function(t){return re(Int32Array,t)},ue=function(t){return re(Uint8Array,t)},se=function(t){return re(Uint16Array,t)},ce=function(t){return re(Uint32Array,t)},le=function(t){return re(Float32Array,t)},fe=function(t){return re(Float64Array,t)},he=function(t){return re(Uint8ClampedArray,t)};function de(t,e){return pe.apply(this,arguments)}function pe(){return(pe=R(C.mark((function t(e,n){var r,i,a;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Ot(n)){t.next=13;break}return t.t0=V,t.t1=z,t.t2=de,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=R(C.mark((function t(e){return C.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=R(C.mark((function t(e){return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(V(z(ne(C.mark((function t(e){var n;return C.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)}}(),a="string"===typeof n||ArrayBuffer.isView(n)||n instanceof ArrayBuffer||n instanceof zt?r(n):At(n)?i(n):Mt(n)?n:r(n),t.delegateYield(V(z(ne(function(){var t=R(C.mark((function t(n){var r;return C.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,Ht(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)}}()(a[Symbol.asyncIterator]()))),U),"t9",17);case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var ye=function(t){return de(Int8Array,t)},ve=function(t){return de(Int16Array,t)},be=function(t){return de(Int32Array,t)},me=function(t){return de(Uint8Array,t)},ge=function(t){return de(Uint16Array,t)},we=function(t){return de(Uint32Array,t)},ke=function(t){return de(Float32Array,t)},_e=function(t){return de(Float64Array,t)},xe=function(t){return de(Uint8ClampedArray,t)};function Se(t,e,n){if(0!==t){n=n.slice(0,e+1);for(var r=-1;++r<=e;)n[r]+=t}return n}function Te(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 Ie=C.mark(Ae),Ee={fromIterable:function(t){return Oe(Ae(t))},fromAsyncIterable:function(t){return Oe(function(t){return Me.apply(this,arguments)}(t))},fromDOMStream:function(t){return Oe(function(t){return De.apply(this,arguments)}(t))},fromNodeStream:function(t){return Oe(function(t){return Fe.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')}},Oe=function(t){return t.next(),t};function Ae(t){var e,n,r,i,a,o,u,s,c,l,f,h;return C.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return s=function(){if("peek"===a)return Wt(r,o)[0];var t=Wt(r,o),e=Object(F.a)(t,3);return i=e[0],r=e[1],u=e[2],i},n=!1,r=[],u=0,d.next=6,null;case 6:c=d.sent,a=c.cmd,o=c.size,l=ue(t)[Symbol.iterator](),d.prev=10;case 11:if(f=isNaN(o-u)?l.next(void 0):l.next(o-u),e=f.done,i=f.value,!e&&i.byteLength>0&&(r.push(i),u+=i.byteLength),!(e||o<=u)){d.next=22;break}case 16:return d.next=18,s();case 18:h=d.sent,a=h.cmd,o=h.size;case 21:if(o<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()}}),Ie,null,[[10,25,28,31]])}function Me(){return(Me=R(C.mark((function t(e){var n,r,i,a,o,u,s,c,l,f,h,d;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(){if("peek"===o)return Wt(i,u)[0];var t=Wt(i,u),e=Object(F.a)(t,3);return a=e[0],i=e[1],s=e[2],a},r=!1,i=[],s=0,t.next=6,null;case 6:l=t.sent,o=l.cmd,u=l.size,f=me(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,a=h.value,!n&&a.byteLength>0&&(i.push(a),s+=a.byteLength),!(n||u<=s)){t.next=31;break}case 25:return t.next=27,c();case 27:d=t.sent,o=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 De(){return(De=R(C.mark((function t(e){var n,r,i,a,o,u,s,c,l,f,h,d;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(){if("peek"===o)return Wt(i,u)[0];var t=Wt(i,u),e=Object(F.a)(t,3);return a=e[0],i=e[1],s=e[2],a},n=!1,r=!1,i=[],s=0,t.next=6,null;case 6:l=t.sent,o=l.cmd,u=l.size,f=new Be(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,a=h.value,!n&&a.byteLength>0&&(i.push(Qt(a)),s+=a.byteLength),!(n||u<=s)){t.next=31;break}case 25:return t.next=27,c();case 27:d=t.sent,o=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 Be=function(){function t(e){B(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 L(t,[{key:"closed",get:function(){return this.reader?this.reader.closed.catch((function(){})):Promise.resolve()}},{key:"releaseLock",value:function(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}},{key:"cancel",value:function(){var t=D(C.mark((function t(e){var n,r;return C.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(C.mark((function t(e){var n;return C.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=Qt(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(C.mark((function t(e){return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ne(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)}}()}]),t}();function Ne(t,e,n,r){return Le.apply(this,arguments)}function Le(){return(Le=D(C.mark((function t(e,n,r,i){var a,o,u;return C.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(a=t.sent,o=a.done,u=a.value,!((r+=u.byteLength)<i)||o){t.next=11;break}return t.next=10,Ne(e,u.buffer,r,i);case 10:return t.abrupt("return",t.sent);case 11:return t.abrupt("return",{done:o,value:new Uint8Array(u.buffer,0,r)});case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Ce=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 Fe(){return(Fe=R(C.mark((function t(e){var n,r,i,a,o,u,s,c,l,f,h,d,p,y,v;return C.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(C.mark((function r(i,a){var o,u,s,c,l,f;return C.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=Object(A.a)(t);try{for(o.s();!(u=o.n()).done;)s=Object(F.a)(u.value,2),c=s[0],l=s[1],e.off(c,l)}catch(n){o.e(n)}finally{o.f()}try{(f=e.destroy)&&f.call(e,n),n=void 0}catch(h){n=h||n}finally{null!=n?a(n):i()}case 3:case"end":return r.stop()}}),r)})));return function(t,e){return r.apply(this,arguments)}}())},f=function(){if("peek"===o)return Wt(c,u)[0];var t=Wt(c,u),e=Object(F.a)(t,3);return l=e[0],c=e[1],s=e[2],l},n=[],r="error",i=!1,a=null,s=0,c=[],t.next=9,null;case 9:if(h=t.sent,o=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]=Ce(e,"end"),n[1]=Ce(e,"error");case 19:return n[2]=Ce(e,"readable"),t.next=22,U(Promise.race(n.map((function(t){return t[2]}))));case 22:if(d=t.sent,p=Object(F.a)(d,2),r=p[0],a=p[1],"error"!==r){t.next=28;break}return t.abrupt("break",37);case 28:if((i="end"===r)||(isFinite(u-s)?(l=Qt(e.read(u-s))).byteLength<u-s&&(l=Qt(e.read(void 0))):l=Qt(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,o=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?a:null));case 40:return t.finish(37);case 41:case"end":return t.stop()}}),t,null,[[16,,37,41]])})))).apply(this,arguments)}function je(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ue(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 Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(n),!0).forEach((function(e){je(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Re(t,e,n){return(Re="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(it.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 ze,Ve,We,He,Ye,$e,qe=function t(){B(this,t)};Ye=ze||(ze={}),He=Ye.apache||(Ye.apache={}),We=He.arrow||(He.arrow={}),function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4"}((Ve=We.flatbuf||(We.flatbuf={})).MetadataVersion||(Ve.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={}))}(ze||(ze={})),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={}))}(ze||(ze={})),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={}))}(ze||(ze={})),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={}))}(ze||(ze={})),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={}))}(ze||(ze={})),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={}))}(ze||(ze={})),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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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,a,o,u,s){return e.startField(t),e.addName(t,n),e.addNullable(t,r),e.addTypeType(t,i),e.addType(t,a),e.addDictionary(t,o),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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}(ze||(ze={})),function(t){!function(t){!function(t){!function(t){t.Schema=ze.apache.arrow.flatbuf.Schema}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}($e||($e={})),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={}))}($e||($e={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}($e||($e={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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 ze.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={}))}($e||($e={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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={}))}($e||($e={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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):ze.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 ze.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,ze.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,a,o){return e.startMessage(t),e.addVersion(t,n),e.addHeaderType(t,r),e.addHeader(t,i),e.addBodyLength(t,a),e.addCustomMetadata(t,o),e.endMessage(t)}}]),e}();e.Message=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}($e||($e={}));ze.apache.arrow.flatbuf.Type;var Ke,Qe,Ge=ze.apache.arrow.flatbuf.DateUnit,Xe=ze.apache.arrow.flatbuf.TimeUnit,Je=ze.apache.arrow.flatbuf.Precision,Ze=ze.apache.arrow.flatbuf.UnionMode,tn=ze.apache.arrow.flatbuf.IntervalUnit,en=$e.apache.arrow.flatbuf.MessageHeader,nn=ze.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"}(Ke||(Ke={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(Qe||(Qe={}));var rn=C.mark(ln);function an(t,e,n,r){return 0!==(n&1<<r)}function on(t,e,n,r){return(n&1<<r)>>r}function un(t,e,n){return n?!!(t[e>>3]|=1<<e%8)||!0:!(t[e>>3]&=~(1<<e%8))&&!1}function sn(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):cn(ln(n,t,e,null,an)).subarray(0,r)),i}return n}function cn(t){var e,n=[],r=0,i=0,a=0,o=Object(A.a)(t);try{for(o.s();!(e=o.n()).done;){e.value&&(a|=1<<i),8===++i&&(n[r++]=a,a=i=0)}}catch(s){o.e(s)}finally{o.f()}(0===r||i>0)&&(n[r++]=a);var u=new Uint8Array(n.length+7&-8);return u.set(n),u}function ln(t,e,n,r,i){var a,o,u,s,c;return C.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:a=e%8,o=e>>3,u=0,s=n;case 3:if(!(s>0)){l.next=11;break}c=t[o++];case 5:return l.next=7,i(r,u++,c,a);case 7:if(--s>0&&++a<8){l.next=5;break}case 8:a=0,l.next=3;break;case 11:case"end":return l.stop()}}),rn)}function fn(t,e,n){if(n-e<=0)return 0;if(n-e<8){var r,i=0,a=Object(A.a)(ln(t,e,n-e,t,on));try{for(a.s();!(r=a.n()).done;){i+=r.value}}catch(s){a.e(s)}finally{a.f()}return i}var o=n>>3<<3,u=e+(e%8===0?0:8-e%8);return fn(t,e,u)+fn(t,o,n)+hn(t,u>>3,o-u>>3)}function hn(t,e,n){for(var r=0,i=0|e,a=new DataView(t.buffer,t.byteOffset,t.byteLength),o=void 0===n?t.byteLength:i+n;o-i>=4;)r+=dn(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=dn(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=dn(a.getUint8(i)),i+=1;return r}function dn(t){var e=0|t;return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24}var pn=n(11);var yn=n(10);function vn(t){return function(t){if(Array.isArray(t))return Object(pn.a)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(yn.a)(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 bn=function(){function t(){B(this,t)}return L(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(vn(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 mn(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 mn(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=null,i=Ke.NONE;switch(e instanceof dr||e instanceof qe?i=gn(e.type):e instanceof Bn?i=gn(e):"number"!==typeof(i=e)&&(i=Ke[e]),i){case Ke.Null:r=t.visitNull;break;case Ke.Bool:r=t.visitBool;break;case Ke.Int:r=t.visitInt;break;case Ke.Int8:r=t.visitInt8||t.visitInt;break;case Ke.Int16:r=t.visitInt16||t.visitInt;break;case Ke.Int32:r=t.visitInt32||t.visitInt;break;case Ke.Int64:r=t.visitInt64||t.visitInt;break;case Ke.Uint8:r=t.visitUint8||t.visitInt;break;case Ke.Uint16:r=t.visitUint16||t.visitInt;break;case Ke.Uint32:r=t.visitUint32||t.visitInt;break;case Ke.Uint64:r=t.visitUint64||t.visitInt;break;case Ke.Float:r=t.visitFloat;break;case Ke.Float16:r=t.visitFloat16||t.visitFloat;break;case Ke.Float32:r=t.visitFloat32||t.visitFloat;break;case Ke.Float64:r=t.visitFloat64||t.visitFloat;break;case Ke.Utf8:r=t.visitUtf8;break;case Ke.Binary:r=t.visitBinary;break;case Ke.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case Ke.Date:r=t.visitDate;break;case Ke.DateDay:r=t.visitDateDay||t.visitDate;break;case Ke.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case Ke.Timestamp:r=t.visitTimestamp;break;case Ke.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case Ke.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case Ke.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case Ke.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case Ke.Time:r=t.visitTime;break;case Ke.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case Ke.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case Ke.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case Ke.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case Ke.Decimal:r=t.visitDecimal;break;case Ke.List:r=t.visitList;break;case Ke.Struct:r=t.visitStruct;break;case Ke.Union:r=t.visitUnion;break;case Ke.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case Ke.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case Ke.Dictionary:r=t.visitDictionary;break;case Ke.Interval:r=t.visitInterval;break;case Ke.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case Ke.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case Ke.FixedSizeList:r=t.visitFixedSizeList;break;case Ke.Map:r=t.visitMap}if("function"===typeof r)return r;if(!n)return function(){return null};throw new Error("Unrecognized type '".concat(Ke[i],"'"))}function gn(t){switch(t.typeId){case Ke.Null:return Ke.Null;case Ke.Int:var e=t.bitWidth,n=t.isSigned;switch(e){case 8:return n?Ke.Int8:Ke.Uint8;case 16:return n?Ke.Int16:Ke.Uint16;case 32:return n?Ke.Int32:Ke.Uint32;case 64:return n?Ke.Int64:Ke.Uint64}return Ke.Int;case Ke.Float:switch(t.precision){case Je.HALF:return Ke.Float16;case Je.SINGLE:return Ke.Float32;case Je.DOUBLE:return Ke.Float64}return Ke.Float;case Ke.Binary:return Ke.Binary;case Ke.Utf8:return Ke.Utf8;case Ke.Bool:return Ke.Bool;case Ke.Decimal:return Ke.Decimal;case Ke.Time:switch(t.unit){case Xe.SECOND:return Ke.TimeSecond;case Xe.MILLISECOND:return Ke.TimeMillisecond;case Xe.MICROSECOND:return Ke.TimeMicrosecond;case Xe.NANOSECOND:return Ke.TimeNanosecond}return Ke.Time;case Ke.Timestamp:switch(t.unit){case Xe.SECOND:return Ke.TimestampSecond;case Xe.MILLISECOND:return Ke.TimestampMillisecond;case Xe.MICROSECOND:return Ke.TimestampMicrosecond;case Xe.NANOSECOND:return Ke.TimestampNanosecond}return Ke.Timestamp;case Ke.Date:switch(t.unit){case Ge.DAY:return Ke.DateDay;case Ge.MILLISECOND:return Ke.DateMillisecond}return Ke.Date;case Ke.Interval:switch(t.unit){case tn.DAY_TIME:return Ke.IntervalDayTime;case tn.YEAR_MONTH:return Ke.IntervalYearMonth}return Ke.Interval;case Ke.Map:return Ke.Map;case Ke.List:return Ke.List;case Ke.Struct:return Ke.Struct;case Ke.Union:switch(t.mode){case Ze.Dense:return Ke.DenseUnion;case Ze.Sparse:return Ke.SparseUnion}return Ke.Union;case Ke.FixedSizeBinary:return Ke.FixedSizeBinary;case Ke.FixedSizeList:return Ke.FixedSizeList;case Ke.Dictionary:return Ke.Dictionary}throw new Error("Unrecognized type '".concat(Ke[t.typeId],"'"))}bn.prototype.visitInt8=null,bn.prototype.visitInt16=null,bn.prototype.visitInt32=null,bn.prototype.visitInt64=null,bn.prototype.visitUint8=null,bn.prototype.visitUint16=null,bn.prototype.visitUint32=null,bn.prototype.visitUint64=null,bn.prototype.visitFloat16=null,bn.prototype.visitFloat32=null,bn.prototype.visitFloat64=null,bn.prototype.visitDateDay=null,bn.prototype.visitDateMillisecond=null,bn.prototype.visitTimestampSecond=null,bn.prototype.visitTimestampMillisecond=null,bn.prototype.visitTimestampMicrosecond=null,bn.prototype.visitTimestampNanosecond=null,bn.prototype.visitTimeSecond=null,bn.prototype.visitTimeMillisecond=null,bn.prototype.visitTimeMicrosecond=null,bn.prototype.visitTimeNanosecond=null,bn.prototype.visitDenseUnion=null,bn.prototype.visitSparseUnion=null,bn.prototype.visitIntervalDayTime=null,bn.prototype.visitIntervalYearMonth=null;var wn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"compareSchemas",value:function(t,e){return t===e||e instanceof t.constructor&&Dn.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 Dn.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&&Dn.visit(t.type,e.type)}}]),n}(bn);function kn(t,e){return e instanceof t.constructor}function _n(t,e){return t===e||kn(t,e)}function xn(t,e){return t===e||kn(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function Sn(t,e){return t===e||kn(t,e)&&t.precision===e.precision}function Tn(t,e){return t===e||kn(t,e)&&t.unit===e.unit}function In(t,e){return t===e||kn(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function En(t,e){return t===e||kn(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function On(t,e){return t===e||kn(t,e)&&t.mode===e.mode&&t.typeIds.every((function(t,n){return t===e.typeIds[n]}))&&Dn.compareFields(t.children,e.children)}function An(t,e){return t===e||kn(t,e)&&t.unit===e.unit}wn.prototype.visitNull=_n,wn.prototype.visitBool=_n,wn.prototype.visitInt=xn,wn.prototype.visitInt8=xn,wn.prototype.visitInt16=xn,wn.prototype.visitInt32=xn,wn.prototype.visitInt64=xn,wn.prototype.visitUint8=xn,wn.prototype.visitUint16=xn,wn.prototype.visitUint32=xn,wn.prototype.visitUint64=xn,wn.prototype.visitFloat=Sn,wn.prototype.visitFloat16=Sn,wn.prototype.visitFloat32=Sn,wn.prototype.visitFloat64=Sn,wn.prototype.visitUtf8=_n,wn.prototype.visitBinary=_n,wn.prototype.visitFixedSizeBinary=function(t,e){return t===e||kn(t,e)&&t.byteWidth===e.byteWidth},wn.prototype.visitDate=Tn,wn.prototype.visitDateDay=Tn,wn.prototype.visitDateMillisecond=Tn,wn.prototype.visitTimestamp=In,wn.prototype.visitTimestampSecond=In,wn.prototype.visitTimestampMillisecond=In,wn.prototype.visitTimestampMicrosecond=In,wn.prototype.visitTimestampNanosecond=In,wn.prototype.visitTime=En,wn.prototype.visitTimeSecond=En,wn.prototype.visitTimeMillisecond=En,wn.prototype.visitTimeMicrosecond=En,wn.prototype.visitTimeNanosecond=En,wn.prototype.visitDecimal=_n,wn.prototype.visitList=function(t,e){return t===e||kn(t,e)&&t.children.length===e.children.length&&Dn.compareFields(t.children,e.children)},wn.prototype.visitStruct=function(t,e){return t===e||kn(t,e)&&t.children.length===e.children.length&&Dn.compareFields(t.children,e.children)},wn.prototype.visitUnion=On,wn.prototype.visitDenseUnion=On,wn.prototype.visitSparseUnion=On,wn.prototype.visitDictionary=function(t,e){return t===e||kn(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&Dn.visit(t.indices,e.indices)&&Dn.visit(t.dictionary,e.dictionary)},wn.prototype.visitInterval=An,wn.prototype.visitIntervalDayTime=An,wn.prototype.visitIntervalYearMonth=An,wn.prototype.visitFixedSizeList=function(t,e){return t===e||kn(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&Dn.compareFields(t.children,e.children)},wn.prototype.visitMap=function(t,e){return t===e||kn(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&Dn.compareFields(t.children,e.children)};var Mn,Dn=new wn,Bn=function(){function t(){B(this,t)}return L(t,[{key:"typeId",get:function(){return Ke.NONE}},{key:"compareTo",value:function(t){return Dn.visit(this,t)}}],[{key:"isNull",value:function(t){return t&&t.typeId===Ke.Null}},{key:"isInt",value:function(t){return t&&t.typeId===Ke.Int}},{key:"isFloat",value:function(t){return t&&t.typeId===Ke.Float}},{key:"isBinary",value:function(t){return t&&t.typeId===Ke.Binary}},{key:"isUtf8",value:function(t){return t&&t.typeId===Ke.Utf8}},{key:"isBool",value:function(t){return t&&t.typeId===Ke.Bool}},{key:"isDecimal",value:function(t){return t&&t.typeId===Ke.Decimal}},{key:"isDate",value:function(t){return t&&t.typeId===Ke.Date}},{key:"isTime",value:function(t){return t&&t.typeId===Ke.Time}},{key:"isTimestamp",value:function(t){return t&&t.typeId===Ke.Timestamp}},{key:"isInterval",value:function(t){return t&&t.typeId===Ke.Interval}},{key:"isList",value:function(t){return t&&t.typeId===Ke.List}},{key:"isStruct",value:function(t){return t&&t.typeId===Ke.Struct}},{key:"isUnion",value:function(t){return t&&t.typeId===Ke.Union}},{key:"isFixedSizeBinary",value:function(t){return t&&t.typeId===Ke.FixedSizeBinary}},{key:"isFixedSizeList",value:function(t){return t&&t.typeId===Ke.FixedSizeList}},{key:"isMap",value:function(t){return t&&t.typeId===Ke.Map}},{key:"isDictionary",value:function(t){return t&&t.typeId===Ke.Dictionary}}]),t}();Bn[Symbol.toStringTag]=((Mn=Bn.prototype).children=null,Mn.ArrayType=Array,Mn[Symbol.toStringTag]="DataType");var Nn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"toString",value:function(){return"Null"}},{key:"typeId",get:function(){return Ke.Null}}]),n}(Bn);Nn[Symbol.toStringTag]=function(t){return t[Symbol.toStringTag]="Null"}(Nn.prototype);var Ln=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this)).isSigned=t,i.bitWidth=r,i}return L(n,[{key:"typeId",get:function(){return Ke.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"))}},{key:"toString",value:function(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}}]),n}(Bn);Ln[Symbol.toStringTag]=function(t){return t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"}(Ln.prototype);var Cn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,!0,8)}return n}(Ln),Fn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,!0,16)}return n}(Ln),jn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,!0,32)}return n}(Ln),Un=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,!0,64)}return n}(Ln),Pn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,!1,8)}return n}(Ln),Rn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,!1,16)}return n}(Ln),zn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,!1,32)}return n}(Ln),Vn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,!1,64)}return n}(Ln);Object.defineProperty(Cn.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(Fn.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(jn.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(Un.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(Pn.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(Rn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(zn.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Vn.prototype,"ArrayType",{value:Uint32Array});var Wn=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).precision=t,r}return L(n,[{key:"typeId",get:function(){return Ke.Float}},{key:"ArrayType",get:function(){switch(this.precision){case Je.HALF:return Uint16Array;case Je.SINGLE:return Float32Array;case Je.DOUBLE:return Float64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}},{key:"toString",value:function(){return"Float".concat(this.precision<<5||16)}}]),n}(Bn);Wn[Symbol.toStringTag]=function(t){return t.precision=null,t[Symbol.toStringTag]="Float"}(Wn.prototype);var Hn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,Je.HALF)}return n}(Wn),Yn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,Je.SINGLE)}return n}(Wn),$n=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,Je.DOUBLE)}return n}(Wn);Object.defineProperty(Hn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Yn.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty($n.prototype,"ArrayType",{value:Float64Array});var qn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this)}return L(n,[{key:"typeId",get:function(){return Ke.Binary}},{key:"toString",value:function(){return"Binary"}}]),n}(Bn);qn[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"}(qn.prototype);var Kn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this)}return L(n,[{key:"typeId",get:function(){return Ke.Utf8}},{key:"toString",value:function(){return"Utf8"}}]),n}(Bn);Kn[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"}(Kn.prototype);var Qn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this)}return L(n,[{key:"typeId",get:function(){return Ke.Bool}},{key:"toString",value:function(){return"Bool"}}]),n}(Bn);Qn[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"}(Qn.prototype);var Gn=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this)).scale=t,i.precision=r,i}return L(n,[{key:"typeId",get:function(){return Ke.Decimal}},{key:"toString",value:function(){return"Decimal[".concat(this.precision,"e").concat(this.scale>0?"+":"").concat(this.scale,"]")}}]),n}(Bn);Gn[Symbol.toStringTag]=function(t){return t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"}(Gn.prototype);var Xn=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).unit=t,r}return L(n,[{key:"typeId",get:function(){return Ke.Date}},{key:"toString",value:function(){return"Date".concat(32*(this.unit+1),"<").concat(Ge[this.unit],">")}}]),n}(Bn);Xn[Symbol.toStringTag]=function(t){return t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"}(Xn.prototype);var Jn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,Ge.DAY)}return n}(Xn),Zn=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.call(this,Ge.MILLISECOND)}return n}(Xn),tr=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this)).unit=t,i.bitWidth=r,i}return L(n,[{key:"typeId",get:function(){return Ke.Time}},{key:"toString",value:function(){return"Time".concat(this.bitWidth,"<").concat(Xe[this.unit],">")}}]),n}(Bn);tr[Symbol.toStringTag]=function(t){return t.unit=null,t.bitWidth=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Time"}(tr.prototype);var er=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this)).unit=t,i.timezone=r,i}return L(n,[{key:"typeId",get:function(){return Ke.Timestamp}},{key:"toString",value:function(){return"Timestamp<".concat(Xe[this.unit]).concat(this.timezone?", ".concat(this.timezone):"",">")}}]),n}(Bn);er[Symbol.toStringTag]=function(t){return t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"}(er.prototype);var nr=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).unit=t,r}return L(n,[{key:"typeId",get:function(){return Ke.Interval}},{key:"toString",value:function(){return"Interval<".concat(tn[this.unit],">")}}]),n}(Bn);nr[Symbol.toStringTag]=function(t){return t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"}(nr.prototype);var rr=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).children=[t],r}return L(n,[{key:"typeId",get:function(){return Ke.List}},{key:"toString",value:function(){return"List<".concat(this.valueType,">")}},{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}(Bn);rr[Symbol.toStringTag]=function(t){return t.children=null,t[Symbol.toStringTag]="List"}(rr.prototype);var ir=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).children=t,r}return L(n,[{key:"typeId",get:function(){return Ke.Struct}},{key:"toString",value:function(){return"Struct<{".concat(this.children.map((function(t){return"".concat(t.name,":").concat(t.type)})).join(", "),"}>")}}]),n}(Bn);ir[Symbol.toStringTag]=function(t){return t.children=null,t[Symbol.toStringTag]="Struct"}(ir.prototype);var ar=function(t){rt(n,t);var e=ct(n);function n(t,r,i){var a;return B(this,n),(a=e.call(this)).mode=t,a.children=i,a.typeIds=r=Int32Array.from(r),a.typeIdToChildIndex=r.reduce((function(t,e,n){return(t[e]=n)&&t||t}),Object.create(null)),a}return L(n,[{key:"typeId",get:function(){return Ke.Union}},{key:"toString",value:function(){return"".concat(this[Symbol.toStringTag],"<").concat(this.children.map((function(t){return"".concat(t.type)})).join(" | "),">")}}]),n}(Bn);ar[Symbol.toStringTag]=function(t){return t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"}(ar.prototype);var or=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).byteWidth=t,r}return L(n,[{key:"typeId",get:function(){return Ke.FixedSizeBinary}},{key:"toString",value:function(){return"FixedSizeBinary[".concat(this.byteWidth,"]")}}]),n}(Bn);or[Symbol.toStringTag]=function(t){return t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"}(or.prototype);var ur=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this)).listSize=t,i.children=[r],i}return L(n,[{key:"typeId",get:function(){return Ke.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}},{key:"toString",value:function(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}}]),n}(Bn);ur[Symbol.toStringTag]=function(t){return t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"}(ur.prototype);var sr=function(t){rt(n,t);var e=ct(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return B(this,n),(r=e.call(this)).children=[t],r.keysSorted=i,r}return L(n,[{key:"typeId",get:function(){return Ke.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}},{key:"toString",value:function(){return"Map<{".concat(this.children[0].type.children.map((function(t){return"".concat(t.name,":").concat(t.type)})).join(", "),"}>")}}]),n}(Bn);sr[Symbol.toStringTag]=function(t){return t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"}(sr.prototype);var cr,lr=(cr=-1,function(){return++cr}),fr=function(t){rt(n,t);var e=ct(n);function n(t,r,i,a){var o;return B(this,n),(o=e.call(this)).indices=r,o.dictionary=t,o.isOrdered=a||!1,o.id=null==i?lr():"number"===typeof i?i:i.low,o}return L(n,[{key:"typeId",get:function(){return Ke.Dictionary}},{key:"children",get:function(){return this.dictionary.children}},{key:"valueType",get:function(){return this.dictionary}},{key:"ArrayType",get:function(){return this.dictionary.ArrayType}},{key:"toString",value:function(){return"Dictionary<".concat(this.indices,", ").concat(this.dictionary,">")}}]),n}(Bn);function hr(t){var e=t;switch(t.typeId){case Ke.Decimal:return 4;case Ke.Timestamp:return 2;case Ke.Date:case Ke.Interval:return 1+e.unit;case Ke.Int:case Ke.Time:return+(e.bitWidth>32)+1;case Ke.FixedSizeList:return e.listSize;case Ke.FixedSizeBinary:return e.byteWidth;default:return 1}}fr[Symbol.toStringTag]=function(t){return t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"}(fr.prototype);var dr=function(){function t(e,n,r,i,a,o,u){var s;B(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=(o||[]).map((function(e){return e instanceof t?e:e.data})),a instanceof t?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=hr(e),a&&((s=a[0])&&(this.valueOffsets=s),(s=a[1])&&(this.values=s),(s=a[2])&&(this.nullBitmap=s),(s=a[3])&&(this.typeIds=s)))}return L(t,[{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-fn(t,this.offset,this.offset+this.length)),e}},{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,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.childData;return new t(e,n,r,i,a,o,this.dictionary)}},{key:"slice",value:function(t,e){var n=this.stride,r=this.typeId,i=this.childData,a=+(0===this._nullCount)-1,o=16===r?n:1,u=this._sliceBuffers(t,e,n,r);return this.clone(this.type,this.offset+t,e,a,u,!i.length||this.valueOffsets?i:this._sliceChildren(i,o*t,o*e))}},{key:"_changeLengthAndBackfillNullBitmap",value:function(t){if(this.typeId===Ke.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(sn(this.offset,e,this.nullBitmap),0);var i=this.buffers;return i[Qe.VALIDITY]=r,this.clone(this.type,0,t,n+(t-e),i)}},{key:"_sliceBuffers",value:function(t,e,n,r){var i,a=this.buffers;return(i=a[Qe.TYPE])&&(a[Qe.TYPE]=i.subarray(t,t+e)),(i=a[Qe.OFFSET])&&(a[Qe.OFFSET]=i.subarray(t,t+e+1))||(i=a[Qe.DATA])&&(a[Qe.DATA]=6===r?i:i.subarray(n*t,n*(t+e))),a}},{key:"_sliceChildren",value:function(t,e,n){return t.map((function(t){return t.slice(e,n)}))}}],[{key:"new",value:function(e,n,r,i,a,o,u){switch(a instanceof t?a=a.buffers:a||(a=[]),e.typeId){case Ke.Null:return t.Null(e,n,r);case Ke.Int:return t.Int(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.Dictionary:return t.Dictionary(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[],u);case Ke.Float:return t.Float(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.Bool:return t.Bool(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.Decimal:return t.Decimal(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.Date:return t.Date(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.Time:return t.Time(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.Timestamp:return t.Timestamp(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.Interval:return t.Interval(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.FixedSizeBinary:return t.FixedSizeBinary(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.DATA]||[]);case Ke.Binary:return t.Binary(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.OFFSET]||[],a[Qe.DATA]||[]);case Ke.Utf8:return t.Utf8(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.OFFSET]||[],a[Qe.DATA]||[]);case Ke.List:return t.List(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.OFFSET]||[],(o||[])[0]);case Ke.FixedSizeList:return t.FixedSizeList(e,n,r,i||0,a[Qe.VALIDITY],(o||[])[0]);case Ke.Struct:return t.Struct(e,n,r,i||0,a[Qe.VALIDITY],o||[]);case Ke.Map:return t.Map(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.OFFSET]||[],(o||[])[0]);case Ke.Union:return t.Union(e,n,r,i||0,a[Qe.VALIDITY],a[Qe.TYPE]||[],a[Qe.OFFSET]||o,o)}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,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"Dictionary",value:function(e,n,r,i,a,o,u){return new t(e,n,r,i,[void 0,Ht(e.indices.ArrayType,o),Qt(a)],[],u)}},{key:"Float",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"Bool",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"Decimal",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"Date",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"Time",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"Timestamp",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"Interval",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"FixedSizeBinary",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,Ht(e.ArrayType,o),Qt(a)])}},{key:"Binary",value:function(e,n,r,i,a,o,u){return new t(e,n,r,i,[qt(o),Qt(u),Qt(a)])}},{key:"Utf8",value:function(e,n,r,i,a,o,u){return new t(e,n,r,i,[qt(o),Qt(u),Qt(a)])}},{key:"List",value:function(e,n,r,i,a,o,u){return new t(e,n,r,i,[qt(o),void 0,Qt(a)],[u])}},{key:"FixedSizeList",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,void 0,Qt(a)],[o])}},{key:"Struct",value:function(e,n,r,i,a,o){return new t(e,n,r,i,[void 0,void 0,Qt(a)],o)}},{key:"Map",value:function(e,n,r,i,a,o,u){return new t(e,n,r,i,[qt(o),void 0,Qt(a)],[u])}},{key:"Union",value:function(e,n,r,i,a,o,u,s){var c=[void 0,void 0,Qt(a),Ht(e.ArrayType,o)];return e.mode===Ze.Sparse?new t(e,n,r,i,c,u):(c[Qe.OFFSET]=qt(u),new t(e,n,r,i,c,s))}}]),t}();dr.prototype.childData=Object.freeze([]);function pr(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 yr(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 pr(t);if(bt)return"".concat(pr(t),"n");return'"'.concat(pr(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 vr=function(t,e){return(t*e+63&-64||64)/e},br=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.length>=e?t.subarray(0,e):Vt(new t.constructor(e),t,0)},mr=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;B(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 L(t,[{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}},{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(vr(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=vr(t*this.stride,this.BYTES_PER_ELEMENT);var e=br(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=Vt(new this.ArrayType(t),this.buffer)}}]),t}();mr.prototype.offset=0;var gr=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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}(mr),wr=function(t){rt(n,t);var e=ct(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array(0);return B(this,n),(t=e.call(this,r,1/8)).numValid=0,t}return L(n,[{key:"numInvalid",get:function(){return this.length-this.numValid}},{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,a=n[r]>>i&1;return e?0===a&&(n[r]|=1<<i,++this.numValid):1===a&&(n[r]&=~(1<<i),--this.numValid),this}},{key:"clear",value:function(){return this.numValid=0,Re(Object(it.a)(n.prototype),"clear",this).call(this)}}]),n}(gr),kr=function(t){rt(n,t);var e=ct(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Int32Array(1);return B(this,n),e.call(this,t,1)}return L(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),Re(Object(it.a)(n.prototype),"flush",this).call(this,t+1)}}]),n}(gr),_r=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"ArrayType64",get:function(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?wt:xt)}},{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=Re(Object(it.a)(n.prototype),"_resize",this).call(this,t),r=e.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return bt&&(this.buffer64=new this.ArrayType64(e.buffer,e.byteOffset,r)),e}}]),n}(mr),xr=function(){function t(e){var n=e.type,r=e.nullValues;B(this,t),this.length=0,this.finished=!1,this.type=n,this.children=[],this.nullValues=r,this.stride=hr(n),this._nulls=new wr,r&&r.length>0&&(this._isValid=yr(r))}return L(t,[{key:"toVector",value:function(){return qe.new(this.flush())}},{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:"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,a=this.nullCount;r?(t[Qe.TYPE]=r.flush(i),n&&(t[Qe.OFFSET]=n.flush(i))):n?(e&&(t[Qe.DATA]=e.flush(n.last())),t[Qe.OFFSET]=n.flush(i)):e&&(t[Qe.DATA]=e.flush(i)),a>0&&(t[Qe.VALIDITY]=this._nulls.flush(i));var o=dr.new(this.type,0,i,a,t,this.children.map((function(t){return t.flush()})));return this.clear(),o}},{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:"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,a="bytes"!==n?"length":"byteLength";return C.mark((function e(n){var r,o,u,s,c;return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=0,o=xr.new(t),u=Object(A.a)(n),e.prev=3,u.s();case 5:if((s=u.n()).done){e.next=14;break}if(c=s.value,!(o.append(c)[a]>=i)){e.next=12;break}if(e.t0=++r,!e.t0){e.next=12;break}return e.next=12,o.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(!(o.finish().length>0||0===r)){e.next=25;break}return e.next=25,o.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,a="bytes"!==n?"length":"byteLength";return function(){var e=R(C.mark((function e(n){var r,o,u,s,c,l,f,h,d;return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=0,o=xr.new(t),u=!0,s=!1,e.prev=4,l=z(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,!(o.append(d)[a]>=i)){e.next=20;break}if(e.t0=++r,!e.t0){e.next=20;break}return e.next=20,o.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(!(o.finish().length>0||0===r)){e.next=42;break}return e.next=42,o.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}();xr.prototype.length=1,xr.prototype.stride=1,xr.prototype.children=null,xr.prototype.finished=!1,xr.prototype.nullValues=null,xr.prototype._isValid=function(){return!0};var Sr=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._values=new gr(new r.ArrayType(0),r.stride),r}return L(n,[{key:"setValue",value:function(t,e){var r=this._values;return r.reserve(t-r.length+1),Re(Object(it.a)(n.prototype),"setValue",this).call(this,t,e)}}]),n}(xr),Tr=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._pendingLength=0,r._offsets=new kr,r}return L(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!!Re(Object(it.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,Re(Object(it.a)(n.prototype),"clear",this).call(this)}},{key:"flush",value:function(){return this._flush(),Re(Object(it.a)(n.prototype),"flush",this).call(this)}},{key:"finish",value:function(){return this._flush(),Re(Object(it.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}(xr);var Ir=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._values=new wr,r}return L(n,[{key:"setValue",value:function(t,e){this._values.set(t,+e)}}]),n}(xr),Er=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"setValue",value:function(t,e){}},{key:"setValid",value:function(t,e){return this.length=Math.max(t+1,this.length),e}}]),n}(xr),Or=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Sr),Ar=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Or),Mr=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Or),Dr=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Sr),Br=function(t){rt(n,t);var e=ct(n);function n(t){var r,i=t.type,a=t.nullValues,o=t.dictionaryHashFunction;return B(this,n),(r=e.call(this,{type:new fr(i.dictionary,i.indices,i.id,i.isOrdered)}))._nulls=null,r._dictionaryOffset=0,r._keysToIndices=Object.create(null),r.indices=xr.new({type:r.type.indices,nullValues:a}),r.dictionary=xr.new({type:r.type.dictionary,nullValues:null}),"function"===typeof o&&(r.valueToKey=o),r}return L(n,[{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}},{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),Re(Object(it.a)(n.prototype),"finish",this).call(this)}},{key:"clear",value:function(){return this.indices.clear(),this.dictionary.clear(),Re(Object(it.a)(n.prototype),"clear",this).call(this)}},{key:"valueToKey",value:function(t){return"string"===typeof t?t:"".concat(t)}}]),n}(xr),Nr=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Sr),Lr=new Float64Array(1),Cr=new Uint32Array(Lr.buffer);function Fr(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 jr(t){if(t!==t)return 32256;Lr[0]=t;var e=(2147483648&Cr[1])>>16&65535,n=2146435072&Cr[1],r=0;return n>=1089470464?Cr[0]>0?n=31744:(n=(2080374784&n)>>16,r=(1048575&Cr[1])>>10):n<=1056964608?(r=1048576+((r=1048576+(1048575&Cr[1]))<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=512+(1048575&Cr[1])>>10),e|n|65535&r}var Ur,Pr,Rr=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Sr),zr=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"setValue",value:function(t,e){this._values.set(t,jr(e))}}]),n}(Rr),Vr=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),n}(Rr),Wr=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),n}(Rr),Hr=n(5),Yr=Symbol.for("isArrowBigNum");function $r(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(Ht(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(Object(Hr.a)(this.TypedArray,[t].concat(n)),this.constructor.prototype)}function qr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return $r.apply(this,e)}function Kr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return $r.apply(this,e)}function Qr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return $r.apply(this,e)}function Gr(t){for(var e,n,r=t.buffer,i=t.byteOffset,a=t.length,o=t.signed,u=new Int32Array(r,i,a),s=0,c=0,l=u.length;c<l;)n=u[c++],e=u[c++],o||(e>>>=0),s+=(n>>>0)+e*Math.pow(c,32);return s}function Xr(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),a=-1,o=r.length-1;do{for(n[0]=r[a=0];a<o;)r[a++]=n[1]=n[0]/10,n[0]=(n[0]-10*n[1]<<16)+r[a];r[a]=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"}$r.prototype[Yr]=!0,$r.prototype.toJSON=function(){return'"'.concat(Ur(this),'"')},$r.prototype.valueOf=function(){return Gr(this)},$r.prototype.toString=function(){return Ur(this)},$r.prototype[Symbol.toPrimitive]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";switch(t){case"number":return Gr(this);case"string":return Ur(this);case"default":return Pr(this)}return Ur(this)},Object.setPrototypeOf(qr.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Kr.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(Qr.prototype,Object.create(Uint32Array.prototype)),Object.assign(qr.prototype,$r.prototype,{constructor:qr,signed:!0,TypedArray:Int32Array,BigIntArray:wt}),Object.assign(Kr.prototype,$r.prototype,{constructor:Kr,signed:!1,TypedArray:Uint32Array,BigIntArray:xt}),Object.assign(Qr.prototype,$r.prototype,{constructor:Qr,signed:!0,TypedArray:Uint32Array,BigIntArray:xt}),bt?(Pr=function(t){return 8===t.byteLength?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:Xr(t)},Ur=function(t){return 8===t.byteLength?"".concat(new t.BigIntArray(t.buffer,t.byteOffset,1)[0]):Xr(t)}):Pr=Ur=Xr;var Jr,Zr=function(){function t(e,n){return B(this,t),t.new(e,n)}return L(t,null,[{key:"new",value:function(t,e){switch(e){case!0:return new qr(t);case!1:return new Kr(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case wt:return new qr(t)}return 16===t.byteLength?new Qr(t):new Kr(t)}},{key:"signed",value:function(t){return new qr(t)}},{key:"unsigned",value:function(t){return new Kr(t)}},{key:"decimal",value:function(t){return new Qr(t)}}]),t}(),ti=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),n}(Sr),ei=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(ti),ni=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(ti),ri=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(ti),ii=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),t.nullValues&&(t.nullValues=t.nullValues.map(ci)),(r=e.call(this,t))._values=new _r(new Int32Array(0),2),r}return L(n,[{key:"values64",get:function(){return this._values.buffer64}},{key:"isValid",value:function(t){return Re(Object(it.a)(n.prototype),"isValid",this).call(this,ci(t))}}]),n}(ti),ai=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(ti),oi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(ti),ui=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(ti),si=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),t.nullValues&&(t.nullValues=t.nullValues.map(ci)),(r=e.call(this,t))._values=new _r(new Uint32Array(0),2),r}return L(n,[{key:"values64",get:function(){return this._values.buffer64}},{key:"isValid",value:function(t){return Re(Object(it.a)(n.prototype),"isValid",this).call(this,ci(t))}}]),n}(ti),ci=(Jr={BigIntArray:wt},function(t){return ArrayBuffer.isView(t)&&(Jr.buffer=t.buffer,Jr.byteOffset=t.byteOffset,Jr.byteLength=t.byteLength,t=Pr(Jr),Jr.buffer=null),t}),li=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Sr),fi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(li),hi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(li),di=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(li),pi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(li),yi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Sr),vi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(yi),bi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(yi),mi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(yi),gi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(yi),wi=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Sr),ki=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(wi),_i=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(wi),xi=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._values=new mr(new Uint8Array(0)),r}return L(n,[{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}},{key:"setValue",value:function(t,e){return Re(Object(it.a)(n.prototype),"setValue",this).call(this,t,Qt(e))}},{key:"_flushPending",value:function(t,e){var n,r,i=this._offsets,a=this._values.reserve(e).buffer,o=0,u=0,s=0,c=Object(A.a)(t);try{for(c.s();!(r=c.n()).done;){var l=Object(F.a)(r.value,2);o=l[0],void 0===(n=l[1])?i.set(o,0):(u=n.length,a.set(n,s),i.set(o,u),s+=u)}}catch(f){c.e(f)}finally{c.f()}}}]),n}(Tr),Si=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._values=new mr(new Uint8Array(0)),r}return L(n,[{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}},{key:"setValue",value:function(t,e){return Re(Object(it.a)(n.prototype),"setValue",this).call(this,t,et(e))}},{key:"_flushPending",value:function(t,e){}}]),n}(Tr);Si.prototype._flushPending=xi.prototype._flushPending;var Ti=function(){function t(){B(this,t)}return L(t,[{key:"length",get:function(){return this._values.length}},{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 qe?t:(this._values=t,this)}}]),t}(),Ii=Symbol.for("parent"),Ei=Symbol.for("rowIndex"),Oi=Symbol.for("keyToIdx"),Ai=Symbol.for("idxToVal"),Mi=Symbol.for("nodejs.util.inspect.custom"),Di=function(){function t(e,n){B(this,t),this[Ii]=e,this.size=n}return L(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[Ai]||(this[Ai]=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 a=this[Ai]||(this[Ai]=new Array(this.size));void 0!==(e=a[r])||(a[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[Ai]||(this[Ai]=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:C.mark((function t(){var e,n,r,i,a,o,u,s,c;return C.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[Ai]||(this[Ai]=new Array(this.size)),u=0;case 5:if((s=e.next()).done||(c=n.next()).done){t.next=15;break}return a=s.value,o=c.value,i[u]=o,r.has(a)||r.set(a,u),t.next=12,[a,o];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,a,o=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[Ai]||(this[Ai]=new Array(this.size)),f=0;!(i=o.next()).done&&!(a=u.next()).done;++f)n=i.value,r=a.value,l[f]=r,c.has(n)||c.set(n,f),s(r,n,this)}},{key:"toArray",value:function(){return vn(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:Mi,value:function(){return this.toString()}},{key:"toString",value:function(){var t=[];return this.forEach((function(e,n){n=pr(n),e=pr(e),t.push("".concat(n,": ").concat(e))})),"{ ".concat(t.join(", ")," }")}}]),t}();Di[Symbol.toStringTag]=function(t){var e;return Object.defineProperties(t,(je(e={size:{writable:!0,enumerable:!1,configurable:!1,value:0}},Ii,{writable:!0,enumerable:!1,configurable:!1,value:null}),je(e,Ei,{writable:!0,enumerable:!1,configurable:!1,value:-1}),e)),t[Symbol.toStringTag]="Row"}(Di.prototype);var Bi=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),st(r=e.call(this,t,t.length),Fi(ut(r)))}return L(n,[{key:"keys",value:function(){return this[Ii].getChildAt(0)[Symbol.iterator]()}},{key:"values",value:function(){return this[Ii].getChildAt(1)[Symbol.iterator]()}},{key:"getKey",value:function(t){return this[Ii].getChildAt(0).get(t)}},{key:"getIndex",value:function(t){return this[Ii].getChildAt(0).indexOf(t)}},{key:"getValue",value:function(t){return this[Ii].getChildAt(1).get(t)}},{key:"setValue",value:function(t,e){this[Ii].getChildAt(1).set(t,e)}}]),n}(Di),Ni=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),st(r=e.call(this,t,t.type.children.length),Ci(ut(r)))}return L(n,[{key:"keys",value:C.mark((function t(){var e,n,r;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Object(A.a)(this[Ii].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:C.mark((function t(){var e,n,r;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Object(A.a)(this[Ii].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[Ii].type.children[t].name}},{key:"getIndex",value:function(t){return this[Ii].type.children.findIndex((function(e){return e.name===t}))}},{key:"getValue",value:function(t){return this[Ii].getChildAt(t).get(this[Ei])}},{key:"setValue",value:function(t,e){return this[Ii].getChildAt(t).set(this[Ei],e)}}]),n}(Di);Object.setPrototypeOf(Di.prototype,Map.prototype);var Li,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),a=function(t){return function(){return this.get(t)}},o=function(t){return function(e){return this.set(t,e)}},u=Object(A.a)(e.keys());try{for(u.s();!(n=u.n()).done;){var s=n.value;i.set(s,++r),t.get=a(s),t.set=o(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}}(),Fi=function(){if("undefined"===typeof Proxy)return Ci;var t=Di.prototype.has,e=Di.prototype.get,n=Di.prototype.set,r=Di.prototype.getKey,i={isExtensible:function(){return!1},deleteProperty:function(){return!1},preventExtensions:function(){return!0},ownKeys:function(t){return vn(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 Ii:case Ei:case Ai:case Oi:case Mi:return!0}return"number"!==typeof e||t.has(e)||(e=t.getKey(e)),t.has(e)},get:function(n,i,a){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 Ii:case Ei:case Ai:case Oi:case Mi:return Reflect.get(n,i,a)}return"number"!==typeof i||t.call(a,i)||(i=r.call(a,i)),e.call(a,i)},set:function(e,i,a,o){switch(i){case Ii:case Ei:case Ai:case Oi:return Reflect.set(e,i,a,o);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(o,i)||(i=r.call(o,i)),!!t.call(o,i)&&!!n.call(o,i,a)}};return function(t){return new Proxy(t,i)}}();function ji(t,e,n){var r=t.length,i=e>-1?e:r+e%r;return n?n(t,i):i}function Ui(t,e,n,r){var i=t.length,a=void 0===i?0:i,o="number"!==typeof e?0:e,u="number"!==typeof n?a:n;return o<0&&(o=(o%a+a)%a),u<0&&(u=(u%a+a)%a),u<o&&(Li=o,o=u,u=Li),u>a&&(u=a),r?r(t,o,u):[o,u]}var Pi=bt?vt(0):0,Ri=function(t){return t!==t};function zi(t){var e=typeof t;if("object"!==e||null===t)return Ri(t)?Ri:"bigint"!==e?function(e){return e===t}:function(e){return Pi+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&&Te(t,e)}:t instanceof Map?function(t){var e=-1,n=[];return t.forEach((function(t){return n[++e]=zi(t)})),Vi(n)}(t):Array.isArray(t)?function(t){for(var e=[],n=-1,r=t.length;++n<r;)e[n]=zi(t[n]);return Vi(e)}(t):t instanceof qe?function(t){for(var e=[],n=-1,r=t.length;++n<r;)e[n]=zi(t.get(n));return Vi(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]=zi(t[e[r]]);return Vi(n,e)}(t)}function Vi(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 Bi:case Ni:return Wi(t,n,n.keys());case Object:case void 0:return Wi(t,n,e||Object.keys(n))}return n instanceof qe&&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 Wi(t,e,n){for(var r=n[Symbol.iterator](),i=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),a=e instanceof Map?e.values():Object.values(e)[Symbol.iterator](),o=0,u=t.length,s=a.next(),c=r.next(),l=i.next();o<u&&!c.done&&!l.done&&!s.done&&(c.value===l.value&&t[o](s.value));++o,c=r.next(),l=i.next(),s=a.next());return!!(o===u&&c.done&&l.done&&s.done)||(r.return&&r.return(),i.return&&i.return(),a.return&&a.return(),!1)}var Hi=function(t){rt(n,t);var e=ct(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Yi(i);return B(this,n),(r=e.call(this))._nullCount=-1,r._type=t,r._chunks=i,r._chunkOffsets=a,r._length=a[a.length-1],r._numChildren=(r._type.children||[]).length,r}return L(n,[{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(Bn.isDictionary(this._type)){if(!this._indices){var t=this._chunks;this._indices=1===t.length?t[0].indices:n.concat.apply(n,vn(t.map((function(t){return t.indices}))))}return this._indices}return null}},{key:"dictionary",get:function(){return Bn.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}},{key:Symbol.iterator,value:C.mark((function t(){var e,n,r;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Object(A.a)(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 Ui(this,t,e,this._sliceInternal)}},{key:"getChildAt",value:function(t){if(t<0||t>=this._numChildren)return null;var e,r,i,a=this._children||(this._children=[]);return(e=a[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?a[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 a=0,o=0,u=0;do{if(a+1===i)return e?e(this,a,n-o):[a,n-o];n>=r[u=a+(i-a)/2|0]?a=u:i=u}while(n<r[i]&&n>=(o=r[a]));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),a=-1;++a<e;)r+=(i[a]=t[a].toArray()).length;n!==i[0].constructor&&(n=i[0].constructor);for(var o=new n(r),u=n===Array?qi:$i,s=-1,c=0;++s<e;)c=u(i[s],o,c);return o}},{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,a=e-1,o=i.length,u=n,s=0,c=-1;++a<o;){if(~(c=i[a].indexOf(r,u)))return s+c;u=0,s+=i[a].length}return-1}},{key:"_sliceInternal",value:function(t,e,n){for(var r=[],i=t.chunks,a=t._chunkOffsets,o=-1,u=i.length;++o<u;){var s=i[o],c=s.length,l=a[o];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:"flatten",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ta(qe,e)}},{key:"concat",value:function(){var t=n.flatten.apply(n,arguments);return new n(t[0].type,t)}}]),n}(qe);function Yi(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 $i=function(t,e,n){return e.set(t,n),n+t.length},qi=function(t,e,n){for(var r=n,i=-1,a=t.length;++i<a;)e[r++]=t[i];return r},Ki=function(t){rt(n,t);var e=ct(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0;return B(this,n),i=Hi.flatten.apply(Hi,vn(i)),(r=e.call(this,t.type,i,a))._field=t,1!==i.length||ut(r)instanceof Qi?r:st(r,new Qi(t,i[0],r._chunkOffsets))}return L(n,[{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:"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,a=this._children||(this._children=[]);return(e=a[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?a[t]=new n(r,i):null}}],[{key:"new",value:function(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var o=Hi.flatten(Array.isArray(e)?[].concat(vn(e),i):e instanceof qe?[e].concat(i):[qe.new.apply(qe,[e].concat(i))]);if("string"===typeof t){var u=o[0].data.type;t=new oa(t,u,!0)}else!t.nullable&&o.some((function(t){return t.nullCount>0}))&&(t=t.clone({nullable:!0}));return new n(t,o)}}]),n}(Hi),Qi=function(t){rt(n,t);var e=ct(n);function n(t,r,i){var a;return B(this,n),(a=e.call(this,t,[r],i))._chunk=r,a}return L(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}(Ki),Gi=Array.isArray,Xi=function(t,e){return na(t,e,[],0)},Ji=function(t){var e=ia(t,[[],[]]),n=Object(F.a)(e,2),r=n[0];return n[1].map((function(t,e){return t instanceof Ki?Ki.new(t.field.clone(r[e]),t):t instanceof qe?Ki.new(r[e],t):Ki.new(r[e],[])}))},Zi=function(t){return ia(t,[[],[]])},ta=function(t,e){return function t(e,n,r,i){var a,o=i,u=-1,s=n.length;for(;++u<s;)Gi(a=n[u])?o=t(e,a,r,o).length:a instanceof Hi?o=t(e,a.chunks,r,o).length:a instanceof e&&(r[o++]=a);return r}(t,e,[],0)},ea=function(t,e){return function t(e,n,r,i){var a,o=i,u=-1,s=n.length;for(;++u<s;)Gi(a=n[u])?o=t(e,a,r,o).length:a instanceof e?o=na(qe,a.schema.fields.map((function(t,e){return a.getChildAt(e)})),r,o).length:a instanceof qe&&(r[o++]=a);return r}(t,e,[],0)};function na(t,e,n,r){for(var i,a=r,o=-1,u=e.length;++o<u;)Gi(i=e[o])?a=na(t,i,n,a).length:i instanceof t&&(n[a++]=i);return n}var ra=function(t,e,n){var r=Object(F.a)(e,2),i=r[0],a=r[1];return t[0][n]=i,t[1][n]=a,t};function ia(t,e){var n,r;switch(r=t.length){case 0:return e;case 1:if(n=e[0],!t[0])return e;if(Gi(t[0]))return ia(t[0],e);if(!(t[0]instanceof dr||t[0]instanceof qe||t[0]instanceof Bn)){var i=Object.entries(t[0]).reduce(ra,e),a=Object(F.a)(i,2);n=a[0],t=a[1]}break;default:Gi(n=t[r-1])?t=Gi(t[0])?t[0]:t.slice(0,r-1):(t=Gi(t[0])?t[0]:t,n=[])}for(var o,u,s=-1,c=-1,l=-1,f=t.length,h=Object(F.a)(e,2),d=h[0],p=h[1];++l<f;)if((u=t[l])instanceof Ki&&(p[++c]=u))d[++s]=u.field.clone(n[l],u.type,!0);else{var y=n[l];o=void 0===y?l:y,u instanceof Bn&&(p[++c]=u)?d[++s]=oa.new(o,u,!0):u&&u.type&&(p[++c]=u)&&(u instanceof dr&&(p[c]=u=qe.new(u)),d[++s]=oa.new(o,u.type,!0))}return e}var aa=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;B(this,t),this.fields=e||[],this.metadata=n||new Map,r||(r=sa(e)),this.dictionaries=r}return L(t,[{key:Symbol.toStringTag,get:function(){return"Schema"}},{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 Dn.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(Xi(oa,n)),a=vn(this.fields),o=ua(ua(new Map,this.metadata),i.metadata),u=i.fields.filter((function(t){var e=a.findIndex((function(e){return e.name===t.name}));return!~e||(a[e]=t.clone({metadata:ua(ua(new Map,a[e].metadata),t.metadata)}))&&!1})),s=sa(u,new Map);return new t([].concat(vn(a),vn(u)),o,new Map([].concat(vn(this.dictionaries),vn(s))))}}],[{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(Zi(n)[0])}}]),t}(),oa=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;B(this,t),this.name=e,this.type=n,this.nullable=r,this.metadata=i||new Map}return L(t,[{key:"typeId",get:function(){return this.type.typeId}},{key:Symbol.toStringTag,get:function(){return"Field"}},{key:"toString",value:function(){return"".concat(this.name,": ").concat(this.type)}},{key:"compareTo",value:function(t){return Dn.compareField(this,t)}},{key:"clone",value:function(){for(var e,n,r,i,a,o,u,s,c,l,f,h=arguments.length,d=new Array(h),p=0;p<h;p++)d[p]=arguments[p];var y=d[0],v=d[1],b=d[2],m=d[3];return d[0]&&"object"===typeof d[0]?(y=void 0===(s=(u=d[0]).name)?this.name:s,v=void 0===(c=u.type)?this.type:c,b=void 0===(l=u.nullable)?this.nullable:l,m=void 0===(f=u.metadata)?this.metadata:f):(e=d,y=void 0===(r=(n=Object(F.a)(e,4))[0])?this.name:r,v=void 0===(i=n[1])?this.type:i,b=void 0===(a=n[2])?this.nullable:a,m=void 0===(o=n[3])?this.metadata:o),t.new(y,v,b,m)}}],[{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],a=n[1],o=n[2],u=n[3];return n[0]&&"object"===typeof n[0]&&(i=n[0].name,void 0===a&&(a=n[0].type),void 0===o&&(o=n[0].nullable),void 0===u&&(u=n[0].metadata)),new t("".concat(i),a,o,u)}}]),t}();function ua(t,e){return new Map([].concat(vn(t||new Map),vn(e||new Map)))}function sa(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],a=i.type;if(Bn.isDictionary(a))if(e.has(a.id)){if(e.get(a.id)!==a.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else e.set(a.id,a.dictionary);a.children&&a.children.length>0&&sa(a.children,e)}return e}aa.prototype.fields=null,aa.prototype.metadata=null,aa.prototype.dictionaries=null,oa.prototype.type=null,oa.prototype.name=null,oa.prototype.nullable=null,oa.prototype.metadata=null;var ca=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._run=new Ti,r._offsets=new kr,r}return L(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 rr(new oa(e,t.type,!0)),this.numChildren-1}},{key:"clear",value:function(){return this._run.clear(),Re(Object(it.a)(n.prototype),"clear",this).call(this)}},{key:"_flushPending",value:function(t){var e,n,r=this._run,i=this._offsets,a=this._setValue,o=0,u=Object(A.a)(t);try{for(u.s();!(n=u.n()).done;){var s=Object(F.a)(n.value,2);o=s[0],void 0===(e=s[1])?i.set(o,0):(i.set(o,e.length),a(this,o,r.bind(e)))}}catch(c){u.e(c)}finally{u.f()}}}]),n}(Tr),la=function(t){rt(n,t);var e=ct(n);function n(){var t;return B(this,n),(t=e.apply(this,arguments))._run=new Ti,t}return L(n,[{key:"setValue",value:function(t,e){Re(Object(it.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 ur(this.type.listSize,new oa(e,t.type,!0)),n}},{key:"clear",value:function(){return this._run.clear(),Re(Object(it.a)(n.prototype),"clear",this).call(this)}}]),n}(xr),fa=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"set",value:function(t,e){return Re(Object(it.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 sr(new oa(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}(Tr),ha=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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 ir([].concat(vn(this.type.children),[new oa(e,t.type,!0)])),n}}]),n}(xr),da=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._typeIds=new gr(new Int8Array(0),1),"function"===typeof t.valueToChildTypeId&&(r._valueToChildTypeId=t.valueToChildTypeId),r}return L(n,[{key:"typeIdToChildIndex",get:function(){return this.type.typeIdToChildIndex}},{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),Re(Object(it.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,a=r.mode,o=r.typeIds,u=[].concat(vn(i),[new oa(e,t.type)]);return this.type=new ar(a,[].concat(vn(o),[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.")}}]),n}(xr),pa=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(da),ya=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._offsets=new gr(new Int32Array(0)),r}return L(n,[{key:"setValue",value:function(t,e,r){var i=this.type.typeIdToChildIndex[r];return this._offsets.set(t,this.getChildAt(i).length),Re(Object(it.a)(n.prototype),"setValue",this).call(this,t,e,r)}}]),n}(da),va=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(bn),ba=function(t,e,n){t[e]=n%4294967296|0,t[e+1]=n/4294967296|0},ma=function(t,e,n,r){var i=e[n],a=e[n+1];null!=i&&null!=a&&t.set(r.subarray(0,a-i),i)},ga=function(t,e,n){!function(t,e,n){t[e]=n/864e5|0}(t.values,e,n.valueOf())},wa=function(t,e,n){var r=t.values;ba(r,2*e,n.valueOf())},ka=function(t,e,n){var r=t.stride;t.values[r*e]=n},_a=function(t,e,n){var r=t.stride;t.values[r*e]=jr(n)},xa=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,a=Ht(t.ArrayType,r);t.values.set(a.subarray(0,i),i*e)}},Sa=function(t,e,n){var r=t.values;return ba(r,2*e,n/1e3)},Ta=function(t,e,n){var r=t.values;return ba(r,2*e,n)},Ia=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)},Ea=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)},Oa=function(t,e,n){t.values[t.stride*e]=n},Aa=function(t,e,n){t.values[t.stride*e]=n},Ma=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},Da=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},Ba=function(t,e,n){var r=t.typeIdToChildIndex[t.typeIds[e]],i=t.getChildAt(r);i&&i.set(t.valueOffsets[e],n)},Na=function(t,e,n){var r=t.typeIdToChildIndex[t.typeIds[e]],i=t.getChildAt(r);i&&i.set(e,n)},La=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},Ca=function(t,e,n){t.values[e]=12*n[0]+n[1]%12};va.prototype.visitBool=function(t,e,n){var r=t.offset,i=t.values,a=r+e;n?i[a>>3]|=1<<a%8:i[a>>3]&=~(1<<a%8)},va.prototype.visitInt=function(t,e,n){t.type.bitWidth<64?ka(t,e,n):xa(t,e,n)},va.prototype.visitInt8=ka,va.prototype.visitInt16=ka,va.prototype.visitInt32=ka,va.prototype.visitInt64=xa,va.prototype.visitUint8=ka,va.prototype.visitUint16=ka,va.prototype.visitUint32=ka,va.prototype.visitUint64=xa,va.prototype.visitFloat=function(t,e,n){t.type.precision!==Je.HALF?ka(t,e,n):_a(t,e,n)},va.prototype.visitFloat16=_a,va.prototype.visitFloat32=ka,va.prototype.visitFloat64=ka,va.prototype.visitUtf8=function(t,e,n){var r=t.values,i=t.valueOffsets;ma(r,i,e,et(n))},va.prototype.visitBinary=function(t,e,n){var r=t.values,i=t.valueOffsets;return ma(r,i,e,n)},va.prototype.visitFixedSizeBinary=function(t,e,n){var r=t.stride;t.values.set(n.subarray(0,r),r*e)},va.prototype.visitDate=function(t,e,n){t.type.unit===Ge.DAY?ga(t,e,n):wa(t,e,n)},va.prototype.visitDateDay=ga,va.prototype.visitDateMillisecond=wa,va.prototype.visitTimestamp=function(t,e,n){switch(t.type.unit){case Xe.SECOND:return Sa(t,e,n);case Xe.MILLISECOND:return Ta(t,e,n);case Xe.MICROSECOND:return Ia(t,e,n);case Xe.NANOSECOND:return Ea(t,e,n)}},va.prototype.visitTimestampSecond=Sa,va.prototype.visitTimestampMillisecond=Ta,va.prototype.visitTimestampMicrosecond=Ia,va.prototype.visitTimestampNanosecond=Ea,va.prototype.visitTime=function(t,e,n){switch(t.type.unit){case Xe.SECOND:return Oa(t,e,n);case Xe.MILLISECOND:return Aa(t,e,n);case Xe.MICROSECOND:return Ma(t,e,n);case Xe.NANOSECOND:return Da(t,e,n)}},va.prototype.visitTimeSecond=Oa,va.prototype.visitTimeMillisecond=Aa,va.prototype.visitTimeMicrosecond=Ma,va.prototype.visitTimeNanosecond=Da,va.prototype.visitDecimal=function(t,e,n){t.values.set(n.subarray(0,4),4*e)},va.prototype.visitList=function(t,e,n){for(var r=t.getChildAt(0),i=t.valueOffsets,a=-1,o=i[e],u=i[e+1];o<u;)r.set(o++,n.get(++a))},va.prototype.visitStruct=function(t,e,n){var r,i,a=n instanceof Map?(r=e,i=n,function(t,e,n){return t&&t.set(r,i.get(e.name))}):n instanceof qe?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 a(t.getChildAt(n),e,n)}))},va.prototype.visitUnion=function(t,e,n){t.type.mode===Ze.Dense?Ba(t,e,n):Na(t,e,n)},va.prototype.visitDenseUnion=Ba,va.prototype.visitSparseUnion=Na,va.prototype.visitDictionary=function(t,e,n){var r=t.getKey(e);null!==r&&t.setValue(r,n)},va.prototype.visitInterval=function(t,e,n){t.type.unit===tn.DAY_TIME?La(t,e,n):Ca(t,e,n)},va.prototype.visitIntervalDayTime=La,va.prototype.visitIntervalYearMonth=Ca,va.prototype.visitFixedSizeList=function(t,e,n){for(var r=t.getChildAt(0),i=t.stride,a=-1,o=e*i;++a<i;)r.set(o+a,n.get(a))},va.prototype.visitMap=function(t,e,n){for(var r=t.getChildAt(0),i=t.valueOffsets,a=n instanceof Map?vn(n):Object.entries(n),o=-1,u=i[e],s=i[e+1];u<s;)r.set(u++,a[++o])};var Fa,ja=new va,Ua=new(function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"visitNull",value:function(){return Er}},{key:"visitBool",value:function(){return Ir}},{key:"visitInt",value:function(){return ti}},{key:"visitInt8",value:function(){return ei}},{key:"visitInt16",value:function(){return ni}},{key:"visitInt32",value:function(){return ri}},{key:"visitInt64",value:function(){return ii}},{key:"visitUint8",value:function(){return ai}},{key:"visitUint16",value:function(){return oi}},{key:"visitUint32",value:function(){return ui}},{key:"visitUint64",value:function(){return si}},{key:"visitFloat",value:function(){return Rr}},{key:"visitFloat16",value:function(){return zr}},{key:"visitFloat32",value:function(){return Vr}},{key:"visitFloat64",value:function(){return Wr}},{key:"visitUtf8",value:function(){return Si}},{key:"visitBinary",value:function(){return xi}},{key:"visitFixedSizeBinary",value:function(){return Nr}},{key:"visitDate",value:function(){return Or}},{key:"visitDateDay",value:function(){return Ar}},{key:"visitDateMillisecond",value:function(){return Mr}},{key:"visitTimestamp",value:function(){return yi}},{key:"visitTimestampSecond",value:function(){return vi}},{key:"visitTimestampMillisecond",value:function(){return bi}},{key:"visitTimestampMicrosecond",value:function(){return mi}},{key:"visitTimestampNanosecond",value:function(){return gi}},{key:"visitTime",value:function(){return li}},{key:"visitTimeSecond",value:function(){return fi}},{key:"visitTimeMillisecond",value:function(){return hi}},{key:"visitTimeMicrosecond",value:function(){return di}},{key:"visitTimeNanosecond",value:function(){return pi}},{key:"visitDecimal",value:function(){return Dr}},{key:"visitList",value:function(){return ca}},{key:"visitStruct",value:function(){return ha}},{key:"visitUnion",value:function(){return da}},{key:"visitDenseUnion",value:function(){return ya}},{key:"visitSparseUnion",value:function(){return pa}},{key:"visitDictionary",value:function(){return Br}},{key:"visitInterval",value:function(){return wi}},{key:"visitIntervalDayTime",value:function(){return ki}},{key:"visitIntervalYearMonth",value:function(){return _i}},{key:"visitFixedSizeList",value:function(){return la}},{key:"visitMap",value:function(){return fa}}]),n}(bn));xr.new=function t(e){var n=e.type,r=new(Ua.getVisitFn(n)())(e);if(n.children&&n.children.length>0){var i=e.children||[],a={nullValues:e.nullValues},o=Array.isArray(i)?function(t,e){return i[e]||a}:function(t){var e=t.name;return i[e]||a};n.children.forEach((function(e,n){var i=e.type,a=o(e,n);r.children.push(t(Pe(Pe({},a),{},{type:i})))}))}return r},Object.keys(Ke).map((function(t){return Ke[t]})).filter((function(t){return"number"===typeof t&&t!==Ke.NONE})).forEach((function(t){Ua.visit(t).prototype._setValue=ja.getVisitFn(t)})),Si.prototype._setValue=ja.visitBinary,function(t){!function(e){!function(e){!function(e){var n=function(){function e(){B(this,e),this.bb=null,this.bb_pos=0}return L(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):ze.apache.arrow.flatbuf.MetadataVersion.V1}},{key:"schema",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?(t||new ze.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,ze.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,a){return e.startFooter(t),e.addVersion(t,n),e.addSchema(t,r),e.addDictionaries(t,i),e.addRecordBatches(t,a),e.endFooter(t)}}]),e}();e.Footer=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(Fa||(Fa={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){B(this,t),this.bb=null,this.bb_pos=0}return L(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={}))}(Fa||(Fa={}));var Pa=W.Long,Ra=W.Builder,za=W.ByteBuffer,Va=Fa.apache.arrow.flatbuf.Block,Wa=Fa.apache.arrow.flatbuf.Footer,Ha=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nn.V4,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;B(this,t),this.schema=e,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}return L(t,[{key:"numRecordBatches",get:function(){return this._recordBatches.length}},{key:"numDictionaries",get:function(){return this._dictionaryBatches.length}},{key:"recordBatches",value:C.mark((function t(){var e,n,r;return C.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:C.mark((function t(){var e,n,r;return C.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:"decode",value:function(t){t=new za(Qt(t));var e=Wa.getRootAsFooter(t),n=aa.decode(e.schema());return new Ya(n,e)}},{key:"encode",value:function(t){var e=new Ra,n=aa.encode(e,t.schema);Wa.startRecordBatchesVector(e,t.numRecordBatches),vn(t.recordBatches()).slice().reverse().forEach((function(t){return $a.encode(e,t)}));var r=e.endVector();Wa.startDictionariesVector(e,t.numDictionaries),vn(t.dictionaryBatches()).slice().reverse().forEach((function(t){return $a.encode(e,t)}));var i=e.endVector();return Wa.startFooter(e),Wa.addSchema(e,n),Wa.addVersion(e,nn.V4),Wa.addRecordBatches(e,r),Wa.addDictionaries(e,i),Wa.finishFooterBuffer(e,Wa.endFooter(e)),e.asUint8Array()}}]),t}(),Ya=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this,t,r.version()))._footer=r,i}return L(n,[{key:"numRecordBatches",get:function(){return this._footer.recordBatchesLength()}},{key:"numDictionaries",get:function(){return this._footer.dictionariesLength()}},{key:"getRecordBatch",value:function(t){if(t>=0&&t<this.numRecordBatches){var e=this._footer.recordBatches(t);if(e)return $a.decode(e)}return null}},{key:"getDictionaryBatch",value:function(t){if(t>=0&&t<this.numDictionaries){var e=this._footer.dictionaries(t);if(e)return $a.decode(e)}return null}}]),n}(Ha),$a=function(){function t(e,n,r){B(this,t),this.metaDataLength=e,this.offset="number"===typeof r?r:r.low,this.bodyLength="number"===typeof n?n:n.low}return L(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 Pa(e.offset,0),i=new Pa(e.bodyLength,0);return Va.createBlock(t,r,n,i)}}]),t}(),qa=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"write",value:function(t){if((t=Qt(t)).byteLength>0)return Re(Object(it.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?tt(this.toUint8Array(!0)):this.toUint8Array(!1).then(tt)}},{key:"toUint8Array",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?Wt(this._values)[0]:D(C.mark((function e(){var n,r,i,a,o,u,s,c,l;return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=0,i=!0,a=!1,e.prev=3,u=z(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),a=!0,o=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,!a){e.next=33;break}throw o;case 33:return e.finish(30);case 34:return e.finish(25);case 35:return e.abrupt("return",Wt(n,r)[0]);case 36:case"end":return e.stop()}}),e,null,[[3,21,25,35],[26,,30,34]])})))()}}]),n}(dt),Ka=function(){function t(e){B(this,t),e&&(this.source=new Ga(Ee.fromIterable(e)))}return L(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}(),Qa=function(){function t(e){B(this,t),e instanceof t?this.source=e.source:e instanceof qa?this.source=new Xa(Ee.fromAsyncIterable(e)):Ut(e)?this.source=new Xa(Ee.fromNodeStream(e)):Ft(e)?this.source=new Xa(Ee.fromDOMStream(e)):Lt(e)?this.source=new Xa(Ee.fromDOMStream(e.body)):At(e)?this.source=new Xa(Ee.fromIterable(e)):(Ot(e)||Mt(e))&&(this.source=new Xa(Ee.fromAsyncIterable(e)))}return L(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:"closed",get:function(){return this.source.closed}},{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)}}]),t}(),Ga=function(){function t(e){B(this,t),this.source=e}return L(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)||lt)}},{key:"return",value:function(t){return Object.create(this.source.return&&this.source.return(t)||lt)}}]),t}(),Xa=function(){function t(e){var n=this;B(this,t),this.source=e,this._closedPromise=new Promise((function(t){return n._closedPromiseResolve=t}))}return L(t,[{key:"cancel",value:function(){var t=D(C.mark((function t(e){return C.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:"closed",get:function(){return this._closedPromise}},{key:"read",value:function(){var t=D(C.mark((function t(e){return C.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(C.mark((function t(e){return C.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(C.mark((function t(e){var n,r=arguments;return C.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(C.mark((function t(e){var n;return C.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=lt;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(C.mark((function t(e){var n;return C.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=lt;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)}}()}]),t}(),Ja=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this)).position=0,i.buffer=Qt(t),i.size="undefined"===typeof r?i.buffer.byteLength:r,i}return L(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}(Ka),Za=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this)).position=0,i._handle=t,"number"===typeof r?i.size=r:i._pending=D(C.mark((function e(){return C.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 L(n,[{key:"readInt32",value:function(){var t=D(C.mark((function t(e){var n,r,i;return C.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(C.mark((function t(e){return C.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(C.mark((function t(e){var n,r,i,a,o,u,s,c,l;return C.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),a=i,o=0,u=0,s=Math.min(r,a+Math.min(r-a,e)),c=new Uint8Array(Math.max(0,(this.position=s)-a));case 10:if(!((a+=u)<s&&(o+=u)<c.byteLength)){t.next=17;break}return t.next=13,n.read(c,o,c.byteLength-o,a);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(C.mark((function t(e,n){var r,i,a,o;return C.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 a=Math.min(i,e+n),o=new Uint8Array(a-e),t.next=10,r.read(o,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(C.mark((function t(){var e;return C.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(C.mark((function t(e){return C.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(C.mark((function t(e){return C.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}(Qa);function to(t){return t<0&&(t=4294967295+t+1),"0x".concat(t.toString(16))}var eo=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],no=function(){function t(e){B(this,t),this.buffer=e}return L(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(to(this.buffer[1])," ").concat(to(this.buffer[0]))}}]),t}(),ro=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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),a=0;a<r;){var o=8<r-a?8:r-a,u=new n(new Uint32Array([parseInt(t.substr(a,o),10),0])),s=new n(new Uint32Array([eo[o],0]));i.times(s),i.plus(u),a+=o}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}(no),io=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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,a=new n(e),o=r?1:0;o<i;){var u=8<i-o?8:i-o,s=new n(new Uint32Array([parseInt(t.substr(o,u),10),0])),c=new n(new Uint32Array([eo[u],0]));a.times(c),a.plus(s),o+=u}return r?a.negate():a}},{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}(no),ao=function(){function t(e){B(this,t),this.buffer=e}return L(t,[{key:"high",value:function(){return new io(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}},{key:"low",value:function(){return new io(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 ro(new Uint32Array([this.buffer[3],0])),n=new ro(new Uint32Array([this.buffer[2],0])),r=new ro(new Uint32Array([this.buffer[1],0])),i=new ro(new Uint32Array([this.buffer[0],0])),a=new ro(new Uint32Array([t.buffer[3],0])),o=new ro(new Uint32Array([t.buffer[2],0])),u=new ro(new Uint32Array([t.buffer[1],0])),s=new ro(new Uint32Array([t.buffer[0],0])),c=ro.multiply(i,s);this.buffer[0]=c.low();var l=new ro(new Uint32Array([c.high(),0]));return c=ro.multiply(r,s),l.plus(c),c=ro.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 ro(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(ro.multiply(n,s)).plus(ro.multiply(r,u)).plus(ro.multiply(i,o)),this.buffer[3]+=ro.multiply(e,s).plus(ro.multiply(n,u)).plus(ro.multiply(r,o)).plus(ro.multiply(i,a)).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(to(this.buffer[3])," ").concat(to(this.buffer[2])," ").concat(to(this.buffer[1])," ").concat(to(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,a=new t(n),o=r?1:0;o<i;){var u=8<i-o?8:i-o,s=new t(new Uint32Array([parseInt(e.substr(o,u),10),0,0,0])),c=new t(new Uint32Array([eo[u],0,0,0]));a.times(c),a.plus(s),o+=u}return r?a.negate():a}},{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}(),oo=function(t){rt(n,t);var e=ct(n);function n(t,r,i,a){var o;return B(this,n),(o=e.call(this)).nodesIndex=-1,o.buffersIndex=-1,o.bytes=t,o.nodes=r,o.buffers=i,o.dictionaries=a,o}return L(n,[{key:"visit",value:function(t){return Re(Object(it.a)(n.prototype),"visit",this).call(this,t instanceof oa?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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.Struct(t,0,n,r,this.readNullBitmap(t,r),this.visitMany(t.children))}},{key:"visitUnion",value:function(t){return t.mode===Ze.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 dr.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 dr.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 dr.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 dr.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 dr.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 dr.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}(bn),uo=function(t){rt(n,t);var e=ct(n);function n(t,r,i,a){var o;return B(this,n),(o=e.call(this,new Uint8Array(0),r,i,a)).sources=t,o}return L(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):cn(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 Ht(Uint8Array,Ht(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 Ht(Uint8Array,Ht(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 Bn.isTimestamp(t)||(Bn.isInt(t)||Bn.isTime(t))&&64===t.bitWidth||Bn.isDate(t)&&t.unit===Ge.MILLISECOND?Ht(Uint8Array,io.convertArray(r[n])):Bn.isDecimal(t)?Ht(Uint8Array,ao.convertArray(r[n])):Bn.isBinary(t)||Bn.isFixedSizeBinary(t)?so(r[n]):Bn.isBool(t)?cn(r[n]):Bn.isUtf8(t)?et(r[n].join("")):Ht(Uint8Array,Ht(t.ArrayType,r[n].map((function(t){return+t}))))}}]),n}(oo);function so(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 co=W.Long,lo=ze.apache.arrow.flatbuf.Null,fo=ze.apache.arrow.flatbuf.Int,ho=ze.apache.arrow.flatbuf.FloatingPoint,po=ze.apache.arrow.flatbuf.Binary,yo=ze.apache.arrow.flatbuf.Bool,vo=ze.apache.arrow.flatbuf.Utf8,bo=ze.apache.arrow.flatbuf.Decimal,mo=ze.apache.arrow.flatbuf.Date,go=ze.apache.arrow.flatbuf.Time,wo=ze.apache.arrow.flatbuf.Timestamp,ko=ze.apache.arrow.flatbuf.Interval,_o=ze.apache.arrow.flatbuf.List,xo=ze.apache.arrow.flatbuf.Struct_,So=ze.apache.arrow.flatbuf.Union,To=ze.apache.arrow.flatbuf.DictionaryEncoding,Io=ze.apache.arrow.flatbuf.FixedSizeBinary,Eo=ze.apache.arrow.flatbuf.FixedSizeList,Oo=ze.apache.arrow.flatbuf.Map,Ao=new(function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"visit",value:function(t,e){return null==t||null==e?void 0:Re(Object(it.a)(n.prototype),"visit",this).call(this,t,e)}},{key:"visitNull",value:function(t,e){return lo.startNull(e),lo.endNull(e)}},{key:"visitInt",value:function(t,e){return fo.startInt(e),fo.addBitWidth(e,t.bitWidth),fo.addIsSigned(e,t.isSigned),fo.endInt(e)}},{key:"visitFloat",value:function(t,e){return ho.startFloatingPoint(e),ho.addPrecision(e,t.precision),ho.endFloatingPoint(e)}},{key:"visitBinary",value:function(t,e){return po.startBinary(e),po.endBinary(e)}},{key:"visitBool",value:function(t,e){return yo.startBool(e),yo.endBool(e)}},{key:"visitUtf8",value:function(t,e){return vo.startUtf8(e),vo.endUtf8(e)}},{key:"visitDecimal",value:function(t,e){return bo.startDecimal(e),bo.addScale(e,t.scale),bo.addPrecision(e,t.precision),bo.endDecimal(e)}},{key:"visitDate",value:function(t,e){return mo.startDate(e),mo.addUnit(e,t.unit),mo.endDate(e)}},{key:"visitTime",value:function(t,e){return go.startTime(e),go.addUnit(e,t.unit),go.addBitWidth(e,t.bitWidth),go.endTime(e)}},{key:"visitTimestamp",value:function(t,e){var n=t.timezone&&e.createString(t.timezone)||void 0;return wo.startTimestamp(e),wo.addUnit(e,t.unit),void 0!==n&&wo.addTimezone(e,n),wo.endTimestamp(e)}},{key:"visitInterval",value:function(t,e){return ko.startInterval(e),ko.addUnit(e,t.unit),ko.endInterval(e)}},{key:"visitList",value:function(t,e){return _o.startList(e),_o.endList(e)}},{key:"visitStruct",value:function(t,e){return xo.startStruct_(e),xo.endStruct_(e)}},{key:"visitUnion",value:function(t,e){So.startTypeIdsVector(e,t.typeIds.length);var n=So.createTypeIdsVector(e,t.typeIds);return So.startUnion(e),So.addMode(e,t.mode),So.addTypeIds(e,n),So.endUnion(e)}},{key:"visitDictionary",value:function(t,e){var n=this.visit(t.indices,e);return To.startDictionaryEncoding(e),To.addId(e,new co(t.id,0)),To.addIsOrdered(e,t.isOrdered),void 0!==n&&To.addIndexType(e,n),To.endDictionaryEncoding(e)}},{key:"visitFixedSizeBinary",value:function(t,e){return Io.startFixedSizeBinary(e),Io.addByteWidth(e,t.byteWidth),Io.endFixedSizeBinary(e)}},{key:"visitFixedSizeList",value:function(t,e){return Eo.startFixedSizeList(e),Eo.addListSize(e,t.listSize),Eo.endFixedSizeList(e)}},{key:"visitMap",value:function(t,e){return Oo.startMap(e),Oo.addKeysSorted(e,t.keysSorted),Oo.endMap(e)}}]),n}(bn));function Mo(t){return new Go(t.count,function t(e){return(e||[]).reduce((function(e,n){return[].concat(vn(e),[new Zo(n.count,(r=n.VALIDITY,(r||[]).reduce((function(t,e){return t+ +(0===e)}),0)))],vn(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 a=e[r];a.VALIDITY&&n.push(new Jo(n.length,a.VALIDITY.length)),a.TYPE&&n.push(new Jo(n.length,a.TYPE.length)),a.OFFSET&&n.push(new Jo(n.length,a.OFFSET.length)),a.DATA&&n.push(new Jo(n.length,a.DATA.length)),n=t(a.children,n)}return n}(t.columns))}function Do(t,e){return(t.fields||[]).filter(Boolean).map((function(t){return oa.fromJSON(t,e)}))}function Bo(t,e){return(t.children||[]).filter(Boolean).map((function(t){return oa.fromJSON(t,e)}))}function No(t){return new Map(Object.entries(t||{}))}function Lo(t){return new Ln(t.isSigned,t.bitWidth)}function Co(t,e){var n=t.type.name;switch(n){case"NONE":case"null":return new Nn;case"binary":return new qn;case"utf8":return new Kn;case"bool":return new Qn;case"list":return new rr((e||[])[0]);case"struct":case"struct_":return new ir(e||[])}switch(n){case"int":var r=t.type;return new Ln(r.isSigned,r.bitWidth);case"floatingpoint":var i=t.type;return new Wn(Je[i.precision]);case"decimal":var a=t.type;return new Gn(a.scale,a.precision);case"date":var o=t.type;return new Xn(Ge[o.unit]);case"time":var u=t.type;return new tr(Xe[u.unit],u.bitWidth);case"timestamp":var s=t.type;return new er(Xe[s.unit],s.timezone);case"interval":var c=t.type;return new nr(tn[c.unit]);case"union":var l=t.type;return new ar(Ze[l.mode],l.typeIds||[],e||[]);case"fixedsizebinary":var f=t.type;return new or(f.byteWidth);case"fixedsizelist":var h=t.type;return new ur(h.listSize,(e||[])[0]);case"map":var d=t.type;return new sr((e||[])[0],d.keysSorted)}throw new Error('Unrecognized type: "'.concat(n,'"'))}var Fo=W.Long,jo=W.Builder,Uo=W.ByteBuffer,Po=ze.apache.arrow.flatbuf.Type,Ro=ze.apache.arrow.flatbuf.Field,zo=ze.apache.arrow.flatbuf.Schema,Vo=ze.apache.arrow.flatbuf.Buffer,Wo=$e.apache.arrow.flatbuf.Message,Ho=ze.apache.arrow.flatbuf.KeyValue,Yo=$e.apache.arrow.flatbuf.FieldNode,$o=ze.apache.arrow.flatbuf.Endianness,qo=$e.apache.arrow.flatbuf.RecordBatch,Ko=$e.apache.arrow.flatbuf.DictionaryBatch,Qo=function(){function t(e,n,r,i){B(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 L(t,[{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:"header",value:function(){return this._createHeader()}},{key:"isSchema",value:function(){return this.headerType===en.Schema}},{key:"isRecordBatch",value:function(){return this.headerType===en.RecordBatch}},{key:"isDictionaryBatch",value:function(){return this.headerType===en.DictionaryBatch}}],[{key:"fromJSON",value:function(e,n){var r=new t(0,nn.V4,n);return r._createHeader=function(t,e){return function(){switch(e){case en.Schema:return aa.fromJSON(t);case en.RecordBatch:return Go.fromJSON(t);case en.DictionaryBatch:return Xo.fromJSON(t)}throw new Error("Unrecognized Message type: { name: ".concat(en[e],", type: ").concat(e," }"))}}(e,n),r}},{key:"decode",value:function(e){e=new Uo(Qt(e));var n=Wo.getRootAsMessage(e),r=n.bodyLength(),i=n.version(),a=n.headerType(),o=new t(r,i,a);return o._createHeader=function(t,e){return function(){switch(e){case en.Schema:return aa.decode(t.header(new zo));case en.RecordBatch:return Go.decode(t.header(new qo),t.version());case en.DictionaryBatch:return Xo.decode(t.header(new Ko),t.version())}throw new Error("Unrecognized Message type: { name: ".concat(en[e],", type: ").concat(e," }"))}}(n,a),o}},{key:"encode",value:function(t){var e=new jo,n=-1;return t.isSchema()?n=aa.encode(e,t.header()):t.isRecordBatch()?n=Go.encode(e,t.header()):t.isDictionaryBatch()&&(n=Xo.encode(e,t.header())),Wo.startMessage(e),Wo.addVersion(e,nn.V4),Wo.addHeader(e,n),Wo.addHeaderType(e,t.headerType),Wo.addBodyLength(e,new Fo(t.bodyLength,0)),Wo.finishMessageBuffer(e,Wo.endMessage(e)),e.asUint8Array()}},{key:"from",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e instanceof aa)return new t(0,nn.V4,en.Schema,e);if(e instanceof Go)return new t(n,nn.V4,en.RecordBatch,e);if(e instanceof Xo)return new t(n,nn.V4,en.DictionaryBatch,e);throw new Error("Unrecognized Message header: ".concat(e))}}]),t}(),Go=function(){function t(e,n,r){B(this,t),this._nodes=n,this._buffers=r,this._length="number"===typeof e?e:e.low}return L(t,[{key:"nodes",get:function(){return this._nodes}},{key:"length",get:function(){return this._length}},{key:"buffers",get:function(){return this._buffers}}]),t}(),Xo=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];B(this,t),this._data=e,this._isDelta=r,this._id="number"===typeof n?n:n.low}return L(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}(),Jo=function t(e,n){B(this,t),this.offset="number"===typeof e?e:e.low,this.length="number"===typeof n?n:n.low},Zo=function t(e,n){B(this,t),this.length="number"===typeof e?e:e.low,this.nullCount="number"===typeof n?n:n.low};function tu(t){for(var e,n=[],r=-1,i=-1,a=t.nodesLength();++r<a;)(e=t.nodes(r))&&(n[++i]=Zo.decode(e));return n}function eu(t,e){for(var n,r=[],i=-1,a=-1,o=t.buffersLength();++i<o;)(n=t.buffers(i))&&(e<nn.V4&&(n.bb_pos+=8*(i+1)),r[++a]=Jo.decode(n));return r}function nu(t,e){for(var n,r=[],i=-1,a=-1,o=t.fieldsLength();++i<o;)(n=t.fields(i))&&(r[++a]=oa.decode(n,e));return r}function ru(t,e){for(var n,r=[],i=-1,a=-1,o=t.childrenLength();++i<o;)(n=t.children(i))&&(r[++a]=oa.decode(n,e));return r}function iu(t){var e=new Map;if(t)for(var n,r,i=-1,a=0|t.customMetadataLength();++i<a;)(n=t.customMetadata(i))&&null!=(r=n.key())&&e.set(r,n.value());return e}function au(t){return new Ln(t.isSigned(),t.bitWidth())}function ou(t,e){var n=t.typeType();switch(n){case Po.NONE:case Po.Null:return new Nn;case Po.Binary:return new qn;case Po.Utf8:return new Kn;case Po.Bool:return new Qn;case Po.List:return new rr((e||[])[0]);case Po.Struct_:return new ir(e||[])}switch(n){case Po.Int:var r=t.type(new ze.apache.arrow.flatbuf.Int);return new Ln(r.isSigned(),r.bitWidth());case Po.FloatingPoint:var i=t.type(new ze.apache.arrow.flatbuf.FloatingPoint);return new Wn(i.precision());case Po.Decimal:var a=t.type(new ze.apache.arrow.flatbuf.Decimal);return new Gn(a.scale(),a.precision());case Po.Date:var o=t.type(new ze.apache.arrow.flatbuf.Date);return new Xn(o.unit());case Po.Time:var u=t.type(new ze.apache.arrow.flatbuf.Time);return new tr(u.unit(),u.bitWidth());case Po.Timestamp:var s=t.type(new ze.apache.arrow.flatbuf.Timestamp);return new er(s.unit(),s.timezone());case Po.Interval:var c=t.type(new ze.apache.arrow.flatbuf.Interval);return new nr(c.unit());case Po.Union:var l=t.type(new ze.apache.arrow.flatbuf.Union);return new ar(l.mode(),l.typeIdsArray()||[],e||[]);case Po.FixedSizeBinary:var f=t.type(new ze.apache.arrow.flatbuf.FixedSizeBinary);return new or(f.byteWidth());case Po.FixedSizeList:var h=t.type(new ze.apache.arrow.flatbuf.FixedSizeList);return new ur(h.listSize(),(e||[])[0]);case Po.Map:var d=t.type(new ze.apache.arrow.flatbuf.Map);return new sr((e||[])[0],d.keysSorted())}throw new Error('Unrecognized type: "'.concat(Po[n],'" (').concat(n,")"))}oa.encode=function(t,e){var n=-1,r=-1,i=-1,a=e.type,o=e.typeId;Bn.isDictionary(a)?(o=a.dictionary.typeId,i=Ao.visit(a,t),r=Ao.visit(a.dictionary,t)):r=Ao.visit(a,t);var u=(a.children||[]).map((function(e){return oa.encode(t,e)})),s=Ro.createChildrenVector(t,u),c=e.metadata&&e.metadata.size>0?Ro.createCustomMetadataVector(t,vn(e.metadata).map((function(e){var n=Object(F.a)(e,2),r=n[0],i=n[1],a=t.createString("".concat(r)),o=t.createString("".concat(i));return Ho.startKeyValue(t),Ho.addKey(t,a),Ho.addValue(t,o),Ho.endKeyValue(t)}))):-1;e.name&&(n=t.createString(e.name));Ro.startField(t),Ro.addType(t,r),Ro.addTypeType(t,o),Ro.addChildren(t,s),Ro.addNullable(t,!!e.nullable),-1!==n&&Ro.addName(t,n);-1!==i&&Ro.addDictionary(t,i);-1!==c&&Ro.addCustomMetadata(t,c);return Ro.endField(t)},oa.decode=function(t,e){var n,r,i,a,o,u;e&&(u=t.dictionary())?e.has(n=u.id().low)?(a=(a=u.indexType())?au(a):new jn,o=new fr(e.get(n),a,n,u.isOrdered()),r=new oa(t.name(),o,t.nullable(),iu(t))):(a=(a=u.indexType())?au(a):new jn,e.set(n,i=ou(t,ru(t,e))),o=new fr(i,a,n,u.isOrdered()),r=new oa(t.name(),o,t.nullable(),iu(t))):(i=ou(t,ru(t,e)),r=new oa(t.name(),i,t.nullable(),iu(t)));return r||null},oa.fromJSON=function(t,e){var n,r,i,a,o,u;return e&&(a=t.dictionary)?e.has(n=a.id)?(r=(r=a.indexType)?Lo(r):new jn,u=new fr(e.get(n),r,n,a.isOrdered),i=new oa(t.name,u,t.nullable,No(t.customMetadata))):(r=(r=a.indexType)?Lo(r):new jn,e.set(n,o=Co(t,Bo(t,e))),u=new fr(o,r,n,a.isOrdered),i=new oa(t.name,u,t.nullable,No(t.customMetadata))):(o=Co(t,Bo(t,e)),i=new oa(t.name,o,t.nullable,No(t.customMetadata))),i||null},aa.encode=function(t,e){var n=e.fields.map((function(e){return oa.encode(t,e)}));zo.startFieldsVector(t,n.length);var r=zo.createFieldsVector(t,n),i=e.metadata&&e.metadata.size>0?zo.createCustomMetadataVector(t,vn(e.metadata).map((function(e){var n=Object(F.a)(e,2),r=n[0],i=n[1],a=t.createString("".concat(r)),o=t.createString("".concat(i));return Ho.startKeyValue(t),Ho.addKey(t,a),Ho.addValue(t,o),Ho.endKeyValue(t)}))):-1;zo.startSchema(t),zo.addFields(t,r),zo.addEndianness(t,uu?$o.Little:$o.Big),-1!==i&&zo.addCustomMetadata(t,i);return zo.endSchema(t)},aa.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=nu(t,e);return new aa(n,iu(t),e)},aa.fromJSON=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return new aa(Do(t,e),No(t.customMetadata),e)},Go.encode=function(t,e){var n=e.nodes||[],r=e.buffers||[];qo.startNodesVector(t,n.length),n.slice().reverse().forEach((function(e){return Zo.encode(t,e)}));var i=t.endVector();qo.startBuffersVector(t,r.length),r.slice().reverse().forEach((function(e){return Jo.encode(t,e)}));var a=t.endVector();return qo.startRecordBatch(t),qo.addLength(t,new Fo(e.length,0)),qo.addNodes(t,i),qo.addBuffers(t,a),qo.endRecordBatch(t)},Go.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nn.V4;return new Go(t.length(),tu(t),eu(t,e))},Go.fromJSON=Mo,Xo.encode=function(t,e){var n=Go.encode(t,e.data);return Ko.startDictionaryBatch(t),Ko.addId(t,new Fo(e.id,0)),Ko.addIsDelta(t,e.isDelta),Ko.addData(t,n),Ko.endDictionaryBatch(t)},Xo.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nn.V4;return new Xo(Go.decode(t.data(),e),t.id(),t.isDelta())},Xo.fromJSON=function(t){return new Xo(Mo(t.data),t.id,t.isDelta)},Zo.encode=function(t,e){return Yo.createFieldNode(t,new Fo(e.length,0),new Fo(e.nullCount,0))},Zo.decode=function(t){return new Zo(t.length(),t.nullCount())},Jo.encode=function(t,e){return Vo.createBuffer(t,new Fo(e.offset,0),new Fo(e.length,0))},Jo.decode=function(t){return new Jo(t.offset(),t.length())};for(var uu=function(){var t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]}(),su=W.ByteBuffer,cu=function(t){return"Expected ".concat(en[t]," Message in stream, but was null or length 0.")},lu=function(t){return"Header pointer of flatbuffer-encoded ".concat(en[t]," Message is null or length 0.")},fu=function(t,e){return"Expected to read ".concat(t," metadata bytes, but only read ").concat(e,".")},hu=function(t,e){return"Expected to read ".concat(t," bytes for message body, but only read ").concat(e,".")},du=function(){function t(e){B(this,t),this.source=e instanceof Ka?e:new Ka(e)}return L(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?lt: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(cu(t));return e.value}},{key:"readMessageBody",value:function(t){if(t<=0)return new Uint8Array(0);var e=Qt(this.source.read(t));if(e.byteLength<t)throw new Error(hu(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=en.Schema,n=this.readMessage(e),r=n&&n.header();if(t&&!r)throw new Error(lu(e));return r}},{key:"readMetadataLength",value:function(){var t=this.source.read(vu),e=t&&new su(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 lt;if(e.byteLength<t)throw new Error(fu(t,e.byteLength));return{done:!1,value:Qo.decode(e)}}}]),t}(),pu=function(){function t(e,n){B(this,t),this.source=e instanceof Qa?e:Nt(e)?new Za(e,n):new Qa(e)}return L(t,[{key:Symbol.asyncIterator,value:function(){return this}},{key:"next",value:function(){var t=D(C.mark((function t(){var e;return C.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",lt);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",lt);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",lt);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(C.mark((function t(e){return C.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(C.mark((function t(e){return C.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(C.mark((function t(e){var n;return C.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(cu(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(C.mark((function t(e){var n;return C.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=Qt,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(hu(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(C.mark((function t(){var e,n,r,i,a=arguments;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>0&&void 0!==a[0]&&a[0],n=en.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(lu(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(C.mark((function t(){var e,n,r;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.read(vu);case 2:return e=t.sent,n=e&&new su(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(C.mark((function t(e){var n;return C.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",lt);case 5:if(!(n.byteLength<e)){t.next=7;break}throw new Error(fu(e,n.byteLength));case 7:return t.abrupt("return",{done:!1,value:Qo.decode(n)});case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),yu=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,new Uint8Array(0)))._schema=!1,r._body=[],r._batchIndex=0,r._dictionaryIndex=0,r._json=t instanceof ft?t:new ft(t),r}return L(n,[{key:"next",value:function(){var t=this._json;if(!this._schema)return this._schema=!0,{done:!1,value:Qo.fromJSON(t.schema,en.Schema)};if(this._dictionaryIndex<t.dictionaries.length){var e=t.dictionaries[this._dictionaryIndex++];return this._body=e.data.columns,{done:!1,value:Qo.fromJSON(e,en.DictionaryBatch)}}if(this._batchIndex<t.batches.length){var n=t.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:Qo.fromJSON(n,en.RecordBatch)}}return this._body=[],lt}},{key:"readMessageBody",value:function(t){return function t(e){return(e||[]).reduce((function(e,n){return[].concat(vn(e),vn(n.VALIDITY&&[n.VALIDITY]||[]),vn(n.TYPE&&[n.TYPE]||[]),vn(n.OFFSET&&[n.OFFSET]||[]),vn(n.DATA&&[n.DATA]||[]),vn(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(cu(t));return e.value}},{key:"readSchema",value:function(){var t=en.Schema,e=this.readMessage(t),n=e&&e.header();if(!e||!n)throw new Error(lu(t));return n}}]),n}(du),vu=4,bu=new Uint8Array("ARROW1".length),mu=0;mu<"ARROW1".length;mu+=1)bu[mu]="ARROW1".charCodeAt(mu);function gu(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=bu.length;++n<r;)if(bu[n]!==t[e+n])return!1;return!0}var wu=bu.length,ku=wu+vu,_u=2*wu+vu,xu=function(t){rt(n,t);var e=ct(n);function n(){var t;return B(this,n),(t=e.call(this))._byteLength=0,t._nodes=[],t._buffers=[],t._bufferRegions=[],t}return L(n,[{key:"visit",value:function(t){if(!Bn.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");Bn.isNull(t.type)||Su.call(this,i<=0?new Uint8Array(0):sn(e.offset,r,e.nullBitmap)),this.nodes.push(new Zo(r,i))}return Re(Object(it.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 a=ea(Sc,r),o=t.visitMany(a),u=Object(F.a)(o,1),s=u[0],c=void 0===s?t:s;return c}}]),n}(bn);function Su(t){var e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Jo(this._byteLength,e)),this._byteLength+=e,this}function Tu(t){return Su.call(this,t.values.subarray(0,t.length*t.stride))}function Iu(t){var e=t.length,n=t.values,r=t.valueOffsets,i=r[0],a=r[e],o=Math.min(a-i,n.byteLength-i);return Su.call(this,Se(-r[0],e,r)),Su.call(this,n.subarray(i,i+o)),this}function Eu(t){var e=t.length,n=t.valueOffsets;return n&&Su.call(this,Se(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]}xu.prototype.visitBool=function(t){var e;return t.nullCount>=t.length?Su.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?Su.call(this,sn(t.offset,t.length,e)):Su.call(this,cn(t))},xu.prototype.visitInt=Tu,xu.prototype.visitFloat=Tu,xu.prototype.visitUtf8=Iu,xu.prototype.visitBinary=Iu,xu.prototype.visitFixedSizeBinary=Tu,xu.prototype.visitDate=Tu,xu.prototype.visitTimestamp=Tu,xu.prototype.visitTime=Tu,xu.prototype.visitDecimal=Tu,xu.prototype.visitList=Eu,xu.prototype.visitStruct=Ou,xu.prototype.visitUnion=function(t){var e=t.type,n=t.length,r=t.typeIds,i=t.valueOffsets;if(Su.call(this,r),e.mode===Ze.Sparse)return Ou.call(this,t);if(e.mode===Ze.Dense){if(t.offset<=0)return Su.call(this,i),Ou.call(this,t);for(var a,o,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=Se(-i[0],n,i),h=-1;++h<n;)-1===(o=c[a=r[h]])&&(o=c[a]=f[a]),l[h]=f[h]-o,++s[a];Su.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},xu.prototype.visitInterval=Tu,xu.prototype.visitFixedSizeList=Eu,xu.prototype.visitMap=Eu;var Au=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this))._position=0,r._started=!1,r._sink=new qa,r._schema=null,r._dictionaryBlocks=[],r._recordBatchBlocks=[],r._dictionaryDeltaOffsets=new Map,Et(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),r._autoDestroy="boolean"!==typeof t.autoDestroy||t.autoDestroy,r._writeLegacyIpcFormat="boolean"===typeof t.writeLegacyIpcFormat&&t.writeLegacyIpcFormat,r}return L(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 Ot(t)?t.then((function(t){return e.writeAll(t)})):Mt(t)?Nu(this,t):Bu(this,t)}},{key:"closed",get:function(){return this._sink.closed}},{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 qa?this._sink=t:(this._sink=new qa,t&&Ct(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&jt(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 xc&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof Sc&&!(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 Sc?t instanceof Tc||this._writeRecordBatch(t):t instanceof xc?this.writeAll(t.chunks):At(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=Qo.encode(t),i=r.byteLength,a=this._writeLegacyIpcFormat?4:8,o=i+a+n&~n,u=o-i-a;return t.headerType===en.RecordBatch?this._recordBatchBlocks.push(new $a(o,t.bodyLength,this._position)):t.headerType===en.DictionaryBatch&&this._dictionaryBlocks.push(new $a(o,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(o-a)),i>0&&this._write(r),this._writePadding(u)}},{key:"_write",value:function(t){if(this._started){var e=Qt(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}},{key:"_writeSchema",value:function(t){return this._writeMessage(Qo.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(bu)}},{key:"_writePadding",value:function(t){return t>0?this._write(new Uint8Array(t)):this}},{key:"_writeRecordBatch",value:function(t){var e=xu.assemble(t),n=e.byteLength,r=e.nodes,i=e.bufferRegions,a=e.buffers,o=new Go(t.length,r,i),u=Qo.from(o,n);return this._writeDictionaries(t)._writeMessage(u)._writeBodyBuffers(a)}},{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=xu.assemble(t),i=r.byteLength,a=r.nodes,o=r.bufferRegions,u=r.buffers,s=new Go(t.length,a,o),c=new Xo(s,e,n),l=Qo.from(c,i);return this._writeMessage(l)._writeBodyBuffers(u)}},{key:"_writeBodyBuffers",value:function(t){for(var e,n,r,i=-1,a=t.length;++i<a;)(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=Object(A.a)(t.dictionaries);try{for(n.s();!(e=n.n()).done;){var r=Object(F.a)(e.value,2),i=r[0],a=r[1],o=this._dictionaryDeltaOffsets.get(i)||0;if(0===o||(a=a.slice(o)).length>0){var u,s="chunks"in a?a.chunks:[a],c=Object(A.a)(s);try{for(c.s();!(u=c.n()).done;){var l=u.value;this._writeDictionaryBatch(l,i,o>0),o+=l.length}}catch(f){c.e(f)}finally{c.f()}}}}catch(f){n.e(f)}finally{n.f()}return this}}],[{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}(ht),Mu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,null,[{key:"writeAll",value:function(t,e){var r=new n(e);return Ot(t)?t.then((function(t){return r.writeAll(t)})):Mt(t)?Nu(r,t):Bu(r,t)}}]),n}(Au),Du=function(t){rt(n,t);var e=ct(n);function n(){var t;return B(this,n),(t=e.call(this))._autoDestroy=!0,t}return L(n,[{key:"_writeSchema",value:function(t){return this._writeMagic()._writePadding(2)}},{key:"_writeFooter",value:function(t){var e=Ha.encode(new Ha(t,nn.V4,this._recordBatchBlocks,this._dictionaryBlocks));return Re(Object(it.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 Ot(t)?t.then((function(t){return e.writeAll(t)})):Mt(t)?Nu(e,t):Bu(e,t)}}]),n}(Au);function Bu(t,e){var n=e;e instanceof xc&&(n=e.chunks,t.reset(void 0,e.schema));var r,i=Object(A.a)(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;t.write(a)}}catch(o){i.e(o)}finally{i.f()}return t.finish()}function Nu(t,e){var n,r,i,a,o,u,s;return C.async((function(c){for(;;)switch(c.prev=c.next){case 0:n=!0,r=!1,c.prev=2,a=z(e);case 4:return c.next=6,C.awrap(a.next());case 6:return o=c.sent,n=o.done,c.next=10,C.awrap(o.value);case 10:if(u=c.sent,n){c.next=17;break}s=u,t.write(s);case 14:n=!0,c.next=4;break;case 17:c.next=23;break;case 19:c.prev=19,c.t0=c.catch(2),r=!0,i=c.t0;case 23:if(c.prev=23,c.prev=24,n||null==a.return){c.next=28;break}return c.next=28,C.awrap(a.return());case 28:if(c.prev=28,!r){c.next=31;break}throw i;case 31:return c.finish(28);case 32:return c.finish(23);case 33:return c.abrupt("return",t.finish());case 34:case"end":return c.stop()}}),null,null,[[2,19,23,33],[24,,28,32]],Promise)}var Lu=new Uint8Array(0),Cu=function(t){return[Lu,Lu,new Uint8Array(t),Lu]};function Fu(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),a=-1,o=e.length,u=vn(t.fields),s=[],c=(i+63&-64)>>3;++a<o;)(n=e[a])&&n.length===i?s[a]=n:((r=u[a]).nullable||(u[a]=u[a].clone({nullable:!0})),s[a]=n?n._changeLengthAndBackfillNullBitmap(i):dr.new(r.type,0,i,i,Cu(c)));return[new aa(u),i,s]}function ju(t){return Uu(new aa(t.map((function(t){return t.field}))),t)}function Uu(t,e){return function(t,e){var n,r=vn(t.fields),i=[],a={numBatches:e.reduce((function(t,e){return Math.max(t,e.length)}),0)},o=0,u=0,s=-1,c=e.length,l=[];for(;a.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=Pu(r,u,l,e,a),u>0&&(i[o++]=[u,l.slice()]))}return[t=new aa(r,t.metadata),i.map((function(e){return Object(Hr.a)(Sc,[t].concat(vn(e)))}))]}(t,e.map((function(t){return t instanceof Hi?t.chunks.map((function(t){return t.data})):[t.data]})))}function Pu(t,e,n,r,i){for(var a,o,u=0,s=-1,c=r.length,l=(e+63&-64)>>3;++s<c;)(a=n[s])&&(u=a.length)>=e?u===e?n[s]=a:(n[s]=a.slice(0,e),a=a.slice(e,u-e),i.numBatches=Math.max(i.numBatches,r[s].unshift(a))):((o=t[s]).nullable||(t[s]=o.clone({nullable:!0})),n[s]=a?a._changeLengthAndBackfillNullBitmap(e):dr.new(o.type,0,e,e,Cu(l)));return n}function Ru(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var zu=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this))._children=r,i.numChildren=t.childData.length,i._bindDataAccessors(i.data=t),i}return L(n,[{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(Ke[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],">")}},{key:"clone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._children;return qe.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 Hi.concat.apply(Hi,[this].concat(e))}},{key:"slice",value:function(t,e){return Ui(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]=qe.new(this.data.childData[t]))}},{key:"toJSON",value:function(){return vn(this)}},{key:"_sliceInternal",value:function(t,e,n){return t.clone(t.data.slice(e,n-e),null)}},{key:"_bindDataAccessors",value:function(t){}}]),n}(qe);zu.prototype[Symbol.isConcatSpreadable]=!0;var Vu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"asUtf8",value:function(){return qe.new(this.data.clone(new Kn))}}]),n}(zu),Wu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,null,[{key:"from",value:function(t){return _c((function(){return new Qn}),t)}}]),n}(zu),Hu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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?_c((function(){return e[1]===Ge.DAY?new Jn:new Zn}),e[0]):_c((function(){return new Zn}),e[0])}}]),n}(zu),Yu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Hu),$u=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Hu),qu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(zu),Ku=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t)).indices=qe.new(t.clone(r.type.indices)),r}return L(n,[{key:"dictionary",get:function(){return this.data.dictionary}},{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:"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],a=e[2],o=new fr(r.type,i,null,null);return qe.new(dr.Dictionary(o,0,a.length,0,null,a,r))}return _c((function(){return e[0].type}),e[0])}}]),n}(zu);Ku.prototype.indices=null;var Qu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(zu),Gu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(zu),Xu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,null,[{key:"from",value:function(t){var e=rs(this);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){var n=ns(t.constructor)||e;if(null===e&&(e=n),e&&e===n){var r=new e,i=t.byteLength/r.ArrayType.BYTES_PER_ELEMENT;if(!es(e,t.constructor))return qe.new(dr.Float(r,0,i,0,null,t))}}if(e)return _c((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}(zu),Ju=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toFloat64Array",value:function(){return new Float64Array(this)}}]),n}(Xu),Zu=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Xu),ts=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Xu),es=function(t,e){return t===Hn&&e!==Uint16Array},ns=function(t){switch(t){case Uint16Array:return Hn;case Float32Array:return Yn;case Float64Array:return $n;default:return null}},rs=function(t){switch(t){case Ju:return Hn;case Zu:return Yn;case ts:return $n;default:return null}},is=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(zu),as=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(is),os=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(is),us=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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],a=void 0!==i&&i,o=ms(this,a);if(r instanceof ArrayBuffer||ArrayBuffer.isView(r)){var u=bs(r.constructor,a)||o;if(null===o&&(o=u),o&&o===u){var s=new o,c=r.byteLength/s.ArrayType.BYTES_PER_ELEMENT;return vs(o,r.constructor)&&(c*=.5),qe.new(dr.Int(s,0,c,0,null,r))}}if(o)return _c((function(){return new o}),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}(zu),ss=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(us),cs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(us),ls=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(us),fs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"toBigInt64Array",value:function(){return Kt(this.values)}},{key:"values64",get:function(){return this._values64||(this._values64=this.toBigInt64Array())}}]),n}(us),hs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(us),ds=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(us),ps=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(us),ys=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"toBigUint64Array",value:function(){return Jt(this.values)}},{key:"values64",get:function(){return this._values64||(this._values64=this.toBigUint64Array())}}]),n}(us),vs=function(t,e){return(t===Un||t===Vn)&&(e===Int32Array||e===Uint32Array)},bs=function(t,e){switch(t){case Int8Array:return Cn;case Int16Array:return Fn;case Int32Array:return e?Un:jn;case wt:return Un;case Uint8Array:return Pn;case Uint16Array:return Rn;case Uint32Array:return e?Vn:zn;case xt:return Vn;default:return null}},ms=function(t,e){switch(t){case ss:return Cn;case cs:return Fn;case ls:return e?Un:jn;case fs:return Un;case hs:return Pn;case ds:return Rn;case ps:return e?Vn:zn;case ys:return Vn;default:return null}},gs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(zu),ws=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"asList",value:function(){var t=this.type.children[0];return qe.new(this.data.clone(new rr(t)))}},{key:"bind",value:function(t){var e=this.getChildAt(0),n=this.valueOffsets,r=n[t],i=n[t+1];return new Bi(e.slice(r,i))}}]),n}(zu),ks=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(zu),_s=Symbol.for("rowIndex"),xs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"bind",value:function(t){var e=this._row||(this._row=new Ni(this)),n=Object.create(e);return n[_s]=t,n}}]),n}(zu),Ss=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(zu),Ts=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Ss),Is=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Ss),Es=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Ss),Os=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Ss),As=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(zu),Ms=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(As),Ds=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(As),Bs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(As),Ns=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(As),Ls=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"typeIdToChildIndex",get:function(){return this.data.type.typeIdToChildIndex}}]),n}(zu),Cs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"valueOffsets",get:function(){return this.data.valueOffsets}}]),n}(Ls),Fs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(Ls),js=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"asBinary",value:function(){return qe.new(this.data.clone(new qn))}}],[{key:"from",value:function(t){return _c((function(){return new Kn}),t)}}]),n}(zu);function Us(t){return function(){return t(this)}}function Ps(t){return function(e,n){return t(this,e,n)}}var Rs=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(bn),zs=function(t,e){return 4294967296*t[e+1]+(t[e]>>>0)},Vs=function(t){return new Date(t)},Ws=function(t,e,n){var r=e[n],i=e[n+1];return null!=r&&null!=i?t.subarray(r,i):null},Hs=function(t,e){return function(t,e){return Vs(function(t,e){return 864e5*t[e]}(t,e))}(t.values,e)},Ys=function(t,e){return function(t,e){return Vs(zs(t,e))}(t.values,2*e)},$s=function(t,e){var n=t.stride;return t.values[n*e]},qs=function(t,e){var n=t.stride;return Fr(t.values[n*e])},Ks=function(t,e){var n=t.stride,r=t.values,i=t.type;return Zr.new(r.subarray(n*e,n*(e+1)),i.isSigned)},Qs=function(t,e){var n=t.values;return 1e3*zs(n,2*e)},Gs=function(t,e){var n=t.values;return zs(n,2*e)},Xs=function(t,e){return function(t,e){return t[e+1]/1e3*4294967296+(t[e]>>>0)/1e3}(t.values,2*e)},Js=function(t,e){return function(t,e){return t[e+1]/1e6*4294967296+(t[e]>>>0)/1e6}(t.values,2*e)},Zs=function(t,e){return t.values[t.stride*e]},tc=function(t,e){return t.values[t.stride*e]},ec=function(t,e){var n=t.values;return Zr.signed(n.subarray(2*e,2*(e+1)))},nc=function(t,e){var n=t.values;return Zr.signed(n.subarray(2*e,2*(e+1)))},rc=function(t,e){var n=t.typeIdToChildIndex[t.typeIds[e]],r=t.getChildAt(n);return r?r.get(t.valueOffsets[e]):null},ic=function(t,e){var n=t.typeIdToChildIndex[t.typeIds[e]],r=t.getChildAt(n);return r?r.get(e):null},ac=function(t,e){return t.values.subarray(2*e,2*(e+1))},oc=function(t,e){var n=t.values[e],r=new Int32Array(2);return r[0]=n/12|0,r[1]=n%12|0,r};Rs.prototype.visitNull=function(t,e){return null},Rs.prototype.visitBool=function(t,e){var n=t.offset+e;return 0!==(t.values[n>>3]&1<<n%8)},Rs.prototype.visitInt=function(t,e){return t.type.bitWidth<64?$s(t,e):Ks(t,e)},Rs.prototype.visitInt8=$s,Rs.prototype.visitInt16=$s,Rs.prototype.visitInt32=$s,Rs.prototype.visitInt64=Ks,Rs.prototype.visitUint8=$s,Rs.prototype.visitUint16=$s,Rs.prototype.visitUint32=$s,Rs.prototype.visitUint64=Ks,Rs.prototype.visitFloat=function(t,e){return t.type.precision!==Je.HALF?$s(t,e):qs(t,e)},Rs.prototype.visitFloat16=qs,Rs.prototype.visitFloat32=$s,Rs.prototype.visitFloat64=$s,Rs.prototype.visitUtf8=function(t,e){var n=t.values,r=t.valueOffsets,i=Ws(n,r,e);return null!==i?tt(i):null},Rs.prototype.visitBinary=function(t,e){var n=t.values,r=t.valueOffsets;return Ws(n,r,e)},Rs.prototype.visitFixedSizeBinary=function(t,e){var n=t.stride;return t.values.subarray(n*e,n*(e+1))},Rs.prototype.visitDate=function(t,e){return t.type.unit===Ge.DAY?Hs(t,e):Ys(t,e)},Rs.prototype.visitDateDay=Hs,Rs.prototype.visitDateMillisecond=Ys,Rs.prototype.visitTimestamp=function(t,e){switch(t.type.unit){case Xe.SECOND:return Qs(t,e);case Xe.MILLISECOND:return Gs(t,e);case Xe.MICROSECOND:return Xs(t,e);case Xe.NANOSECOND:return Js(t,e)}},Rs.prototype.visitTimestampSecond=Qs,Rs.prototype.visitTimestampMillisecond=Gs,Rs.prototype.visitTimestampMicrosecond=Xs,Rs.prototype.visitTimestampNanosecond=Js,Rs.prototype.visitTime=function(t,e){switch(t.type.unit){case Xe.SECOND:return Zs(t,e);case Xe.MILLISECOND:return tc(t,e);case Xe.MICROSECOND:return ec(t,e);case Xe.NANOSECOND:return nc(t,e)}},Rs.prototype.visitTimeSecond=Zs,Rs.prototype.visitTimeMillisecond=tc,Rs.prototype.visitTimeMicrosecond=ec,Rs.prototype.visitTimeNanosecond=nc,Rs.prototype.visitDecimal=function(t,e){var n=t.values;return Zr.decimal(n.subarray(4*e,4*(e+1)))},Rs.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])},Rs.prototype.visitStruct=function(t,e){return t.bind(e)},Rs.prototype.visitUnion=function(t,e){return t.type.mode===Ze.Dense?rc(t,e):ic(t,e)},Rs.prototype.visitDenseUnion=rc,Rs.prototype.visitSparseUnion=ic,Rs.prototype.visitDictionary=function(t,e){return t.getValue(t.getKey(e))},Rs.prototype.visitInterval=function(t,e){return t.type.unit===tn.DAY_TIME?ac(t,e):oc(t,e)},Rs.prototype.visitIntervalDayTime=ac,Rs.prototype.visitIntervalYearMonth=oc,Rs.prototype.visitFixedSizeList=function(t,e){var n=t.getChildAt(0),r=t.stride;return n.slice(e*r,(e+1)*r)},Rs.prototype.visitMap=function(t,e){return t.bind(e)};var uc=new Rs,sc=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(bn);function cc(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,a=Object(A.a)(ln(n,t.data.offset+(e||0),t.length,n,an));try{for(a.s();!(r=a.n()).done;){if(!r.value)return i;++i}}catch(o){a.e(o)}finally{a.f()}return-1}(t,n);for(var r=zi(e),i=(n||0)-1,a=t.length;++i<a;)if(r(t.get(i)))return i;return-1}function lc(t,e,n){for(var r=zi(e),i=(n||0)-1,a=t.length;++i<a;)if(r(t.get(i)))return i;return-1}sc.prototype.visitNull=function(t,e){return null===e&&t.length>0?0:-1},sc.prototype.visitBool=cc,sc.prototype.visitInt=cc,sc.prototype.visitInt8=cc,sc.prototype.visitInt16=cc,sc.prototype.visitInt32=cc,sc.prototype.visitInt64=cc,sc.prototype.visitUint8=cc,sc.prototype.visitUint16=cc,sc.prototype.visitUint32=cc,sc.prototype.visitUint64=cc,sc.prototype.visitFloat=cc,sc.prototype.visitFloat16=cc,sc.prototype.visitFloat32=cc,sc.prototype.visitFloat64=cc,sc.prototype.visitUtf8=cc,sc.prototype.visitBinary=cc,sc.prototype.visitFixedSizeBinary=cc,sc.prototype.visitDate=cc,sc.prototype.visitDateDay=cc,sc.prototype.visitDateMillisecond=cc,sc.prototype.visitTimestamp=cc,sc.prototype.visitTimestampSecond=cc,sc.prototype.visitTimestampMillisecond=cc,sc.prototype.visitTimestampMicrosecond=cc,sc.prototype.visitTimestampNanosecond=cc,sc.prototype.visitTime=cc,sc.prototype.visitTimeSecond=cc,sc.prototype.visitTimeMillisecond=cc,sc.prototype.visitTimeMicrosecond=cc,sc.prototype.visitTimeNanosecond=cc,sc.prototype.visitDecimal=cc,sc.prototype.visitList=cc,sc.prototype.visitStruct=cc,sc.prototype.visitUnion=cc,sc.prototype.visitDenseUnion=lc,sc.prototype.visitSparseUnion=lc,sc.prototype.visitDictionary=cc,sc.prototype.visitInterval=cc,sc.prototype.visitIntervalDayTime=cc,sc.prototype.visitIntervalYearMonth=cc,sc.prototype.visitFixedSizeList=cc,sc.prototype.visitMap=cc;var fc=new sc,hc=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(bn);function dc(t){if(t.nullCount>0)return function(t){var e=uc.getVisitFn(t);return ln(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===Ke.Timestamp||n===Ke.Int&&64!==e.bitWidth||n===Ke.Time&&64!==e.bitWidth||n===Ke.Float&&e.precision>0)?t.values.subarray(0,r)[Symbol.iterator]():C.mark((function e(n){var i;return C.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)}))(uc.getVisitFn(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){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return n}(bn);function vc(t){var e=t.type,n=t.length,r=t.stride;switch(e.typeId){case Ke.Int:case Ke.Float:case Ke.Decimal:case Ke.Time:case Ke.Timestamp:return t.values.subarray(0,n*r)}return vn(pc.visit(t))}yc.prototype.visitNull=vc,yc.prototype.visitBool=vc,yc.prototype.visitInt=vc,yc.prototype.visitInt8=vc,yc.prototype.visitInt16=vc,yc.prototype.visitInt32=vc,yc.prototype.visitInt64=vc,yc.prototype.visitUint8=vc,yc.prototype.visitUint16=vc,yc.prototype.visitUint32=vc,yc.prototype.visitUint64=vc,yc.prototype.visitFloat=vc,yc.prototype.visitFloat16=vc,yc.prototype.visitFloat32=vc,yc.prototype.visitFloat64=vc,yc.prototype.visitUtf8=vc,yc.prototype.visitBinary=vc,yc.prototype.visitFixedSizeBinary=vc,yc.prototype.visitDate=vc,yc.prototype.visitDateDay=vc,yc.prototype.visitDateMillisecond=vc,yc.prototype.visitTimestamp=vc,yc.prototype.visitTimestampSecond=vc,yc.prototype.visitTimestampMillisecond=vc,yc.prototype.visitTimestampMicrosecond=vc,yc.prototype.visitTimestampNanosecond=vc,yc.prototype.visitTime=vc,yc.prototype.visitTimeSecond=vc,yc.prototype.visitTimeMillisecond=vc,yc.prototype.visitTimeMicrosecond=vc,yc.prototype.visitTimeNanosecond=vc,yc.prototype.visitDecimal=vc,yc.prototype.visitList=vc,yc.prototype.visitStruct=vc,yc.prototype.visitUnion=vc,yc.prototype.visitDenseUnion=vc,yc.prototype.visitSparseUnion=vc,yc.prototype.visitDictionary=vc,yc.prototype.visitInterval=vc,yc.prototype.visitIntervalDayTime=vc,yc.prototype.visitIntervalYearMonth=vc,yc.prototype.visitFixedSizeList=vc,yc.prototype.visitMap=vc;var bc=new yc,mc=function(t,e){return t+e},gc=function(t){return"Cannot compute the byte width of variable-width column ".concat(t)},wc=new(function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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(gc(t))}},{key:"visitUtf8",value:function(t){throw new Error(gc(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===Xe.SECOND?4:8}},{key:"visitInterval",value:function(t){return 4*(t.unit+1)}},{key:"visitList",value:function(t){throw new Error(gc(t))}},{key:"visitStruct",value:function(t){return this.visitFields(t.children).reduce(mc,0)}},{key:"visitUnion",value:function(t){return this.visitFields(t.children).reduce(mc,0)}},{key:"visitFixedSizeBinary",value:function(t){return t.byteWidth}},{key:"visitFixedSizeList",value:function(t){return t.listSize*this.visitFields(t.children).reduce(mc,0)}},{key:"visitMap",value:function(t){return this.visitFields(t.children).reduce(mc,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(mc,0)}}]),n}(bn)),kc=new(function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"visitNull",value:function(){return ks}},{key:"visitBool",value:function(){return Wu}},{key:"visitInt",value:function(){return us}},{key:"visitInt8",value:function(){return ss}},{key:"visitInt16",value:function(){return cs}},{key:"visitInt32",value:function(){return ls}},{key:"visitInt64",value:function(){return fs}},{key:"visitUint8",value:function(){return hs}},{key:"visitUint16",value:function(){return ds}},{key:"visitUint32",value:function(){return ps}},{key:"visitUint64",value:function(){return ys}},{key:"visitFloat",value:function(){return Xu}},{key:"visitFloat16",value:function(){return Ju}},{key:"visitFloat32",value:function(){return Zu}},{key:"visitFloat64",value:function(){return ts}},{key:"visitUtf8",value:function(){return js}},{key:"visitBinary",value:function(){return Vu}},{key:"visitFixedSizeBinary",value:function(){return Qu}},{key:"visitDate",value:function(){return Hu}},{key:"visitDateDay",value:function(){return Yu}},{key:"visitDateMillisecond",value:function(){return $u}},{key:"visitTimestamp",value:function(){return Ss}},{key:"visitTimestampSecond",value:function(){return Ts}},{key:"visitTimestampMillisecond",value:function(){return Is}},{key:"visitTimestampMicrosecond",value:function(){return Es}},{key:"visitTimestampNanosecond",value:function(){return Os}},{key:"visitTime",value:function(){return As}},{key:"visitTimeSecond",value:function(){return Ms}},{key:"visitTimeMillisecond",value:function(){return Ds}},{key:"visitTimeMicrosecond",value:function(){return Bs}},{key:"visitTimeNanosecond",value:function(){return Ns}},{key:"visitDecimal",value:function(){return qu}},{key:"visitList",value:function(){return gs}},{key:"visitStruct",value:function(){return xs}},{key:"visitUnion",value:function(){return Ls}},{key:"visitDenseUnion",value:function(){return Cs}},{key:"visitSparseUnion",value:function(){return Fs}},{key:"visitDictionary",value:function(){return Ku}},{key:"visitInterval",value:function(){return is}},{key:"visitIntervalDayTime",value:function(){return as}},{key:"visitIntervalYearMonth",value:function(){return os}},{key:"visitFixedSizeList",value:function(){return Gu}},{key:"visitMap",value:function(){return ws}}]),n}(bn));function _c(t,e){if(At(e))return qe.from({nullValues:[null,void 0],type:t(),values:e});if(Mt(e))return qe.from({nullValues:[null,void 0],type:t(),values:e});var n=Pe({},e),r=n.values,i=void 0===r?[]:r,a=n.type,o=void 0===a?t():a,u=n.nullValues,s=void 0===u?[null,void 0]:u;return At(i),qe.from(Pe(Pe({nullValues:s},e),{},{type:o}))}qe.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 Object(Hr.a)(kc.getVisitFn(t)(),[t].concat(n))},qe.from=function(t){var e=Pe({nullValues:[null,void 0]},t),n=e.values,r=void 0===n?[]:n,i=Ru(e,["values"]);if(At(r)){var a=vn(xr.throughIterable(i)(r));return 1===a.length?a[0]:Hi.concat(a)}return function(){var t=D(C.mark((function t(e){var n,a,o,u,s,c,l,f;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=xr.throughAsyncIterable(i),a=!0,o=!1,t.prev=3,s=z(n(r));case 5:return t.next=7,s.next();case 7:return c=t.sent,a=c.done,t.next=11,c.value;case 11:if(l=t.sent,a){t.next=18;break}f=l,e.push(f);case 15:a=!0,t.next=5;break;case 18:t.next=24;break;case 20:t.prev=20,t.t0=t.catch(3),o=!0,u=t.t0;case 24:if(t.prev=24,t.prev=25,a||null==s.return){t.next=29;break}return t.next=29,s.return();case 29:if(t.prev=29,!o){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]:Hi.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)}}()([])},zu.prototype.get=function(t){return uc.visit(this,t)},zu.prototype.set=function(t,e){return ja.visit(this,t,e)},zu.prototype.indexOf=function(t,e){return fc.visit(this,t,e)},zu.prototype.toArray=function(){return bc.visit(this)},zu.prototype.getByteWidth=function(){return wc.visit(this.type)},zu.prototype[Symbol.iterator]=function(){return pc.visit(this)},zu.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){un(this.nullBitmap,this.offset+e,!(null===n||void 0===n))&&t.call(this,e,n)}}(this.set));var e},Object.keys(Ke).map((function(t){return Ke[t]})).filter((function(t){return"number"===typeof t})).filter((function(t){return t!==Ke.NONE})).forEach((function(t){var e,n=kc.visit(t);n.prototype.get=(e=uc.getVisitFn(t),function(t){return e(this,t)}),n.prototype.set=Ps(ja.getVisitFn(t)),n.prototype.indexOf=Ps(fc.getVisitFn(t)),n.prototype.toArray=Us(bc.getVisitFn(t)),n.prototype.getByteWidth=function(t){return function(){return t(this.type)}}(wc.getVisitFn(t)),n.prototype[Symbol.iterator]=Us(pc.getVisitFn(t))}));var xc=function(t){rt(n,t);var e=ct(n);function n(){var t;B(this,n);for(var r=null,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];a[0]instanceof aa&&(r=a.shift());var u=Xi(Sc,a);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 Tc(r)),(t=e.call(this,new ir(r.fields),u))._schema=r,t._chunks=u,t}return L(n,[{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:"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 a=this._chunks.map((function(e){return e.getChildAt(t)})).filter((function(t){return null!=t}));if(a.length>0)return i[t]=new Ki(e,a)}return null}},{key:"serialize",value:function(){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t?Mu:Du;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,vn(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 a=(t=this._schema).selectAt.apply(t,r);return new n(a,this._chunks.map((function(t){var e=t.length,n=t.data.childData;return new Sc(a,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=Object(F.a)(t,2),a=i[0],o=i[1],u=r.findIndex((function(t){return t.name===e.name}));return~u?o[u]=n:a.push(n),t}),[[],[]]),a=Object(F.a)(i,2),o=a[0],u=a[1],s=this._schema.assign(t.schema),c=[].concat(vn(r.map((function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u[r];return void 0===a?e.getColumnAt(r):t.getColumnAt(a)}))),vn(o.map((function(e){return t.getColumnAt(e)})))).filter(Boolean);return Object(Hr.a)(n,vn(Uu(s,c)))}}],[{key:"empty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new aa([]);return new n(t,[])}},{key:"from",value:function(t){if(!t)return n.empty();if("object"===typeof t){var e=At(t.values)?function(t){if(t.type instanceof ir)return xc.fromStruct(xs.from(t));return null}(t):Mt(t.values)?function(t){if(t.type instanceof ir)return xs.from(t).then((function(t){return xc.fromStruct(t)}));return null}(t):null;if(null!==e)return e}var r=Oc.from(t);return Ot(r)?D(C.mark((function t(){return C.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,vn(r)):n.empty():function(){var t=D(C.mark((function t(e){var r,i,a,o,u,s,c,l,f,h;return C.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,a=[],!i){t.next=40;break}o=!0,u=!1,t.prev=8,c=z(r);case 10:return t.next=12,c.next();case 12:return l=t.sent,o=l.done,t.next=16,l.value;case 16:if(f=t.sent,o){t.next=23;break}h=f,a.push(h);case 20:o=!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,o||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,a));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(C.mark((function t(e){return C.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 Object(Hr.a)(n,vn(ju(Ji(e))))}}]),n}(Hi);var Sc=function(t){rt(n,t);var e=ct(n);function n(){var t,r;B(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var u,s=a[0];if(a[1]instanceof dr)r=a[1],u=a[2];else{var c=s.fields,l=a[1],f=a[2];r=dr.Struct(new ir(c),0,l,0,null,f)}return(t=e.call(this,r,u))._schema=s,t}return L(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,a=Hi.flatten.apply(Hi,[this].concat(e));return new xc(i,a.map((function(t){var e=t.data;return new n(i,e)})))}},{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=Ic.collect(this))}},{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,vn(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),a=0;a<r;a++)i[a]=arguments[a];var o=(t=this._schema).selectAt.apply(t,i),u=i.map((function(t){return e.data.childData[t]})).filter(Boolean);return new n(o,this.length,u)}}],[{key:"from",value:function(t){return At(t.values),xc.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=Zi(e),a=Object(F.a)(i,2),o=a[0],u=a[1],s=u.filter((function(t){return t instanceof qe}));return Object(Hr.a)(n,vn(Fu(new aa(o),s.map((function(t){return t.data})))))}}]),n}(xs),Tc=function(t){rt(n,t);var e=ct(n);function n(t){return B(this,n),e.call(this,t,0,t.fields.map((function(t){return dr.new(t.type,0,0,0)})))}return n}(Sc),Ic=function(t){rt(n,t);var e=ct(n);function n(){var t;return B(this,n),(t=e.apply(this,arguments)).dictionaries=new Map,t}return L(n,[{key:"visit",value:function(t,e){var n=this;return Bn.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 ir(t.schema.fields)).dictionaries}}]),n}(bn),Ec=C.mark(Rc),Oc=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this))._impl=t,r}return L(n,[{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:"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 Ot(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 Ee.toDOMStream(this.isSync()?je({},Symbol.iterator,(function(){return t})):je({},Symbol.asyncIterator,(function(){return t})))}},{key:"toNodeStream",value:function(){var t=this;return Ee.toNodeStream(this.isSync()?je({},Symbol.iterator,(function(){return t})):je({},Symbol.asyncIterator,(function(){return t})),{objectMode:!0})}}],[{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:Dt(t)?function(t){return new Ac(new Uc(t))}(t):Nt(t)?function(t){return Hc.apply(this,arguments)}(t):Ot(t)?D(C.mark((function e(){return C.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)})))():Lt(t)||Ft(t)||Ut(t)||Mt(t)?function(t){return Wc.apply(this,arguments)}(new Qa(t)):function(t){var e=t.peek(wu+7&-8);return e&&e.byteLength>=4?gu(e)?new Dc(new Fc(t.read())):new Ac(new Lc(t)):new Ac(new Lc(C.mark((function t(){return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))()))}(new Ka(t))}},{key:"readAll",value:function(t){return t instanceof n?t.isSync()?Rc(t):zc(t):Dt(t)||ArrayBuffer.isView(t)||At(t)||Bt(t)?Rc(t):zc(t)}}]),n}(ht),Ac=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._impl=t,r}return L(n,[{key:Symbol.iterator,value:function(){return this._impl[Symbol.iterator]()}},{key:Symbol.asyncIterator,value:function(){var t=this;return R(C.mark((function e(){return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(V(z(t[Symbol.iterator]()),U),"t0",1);case 1:case"end":return e.stop()}}),e)})))()}}]),n}(Oc),Mc=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._impl=t,r}return L(n,[{key:Symbol.iterator,value:function(){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}},{key:Symbol.asyncIterator,value:function(){return this._impl[Symbol.asyncIterator]()}}]),n}(Oc),Dc=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._impl=t,r}return n}(Ac),Bc=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this,t))._impl=t,r}return n}(Mc),Nc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map;B(this,t),this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}return L(t,[{key:"numDictionaries",get:function(){return this._dictionaryIndex}},{key:"numRecordBatches",get:function(){return this._recordBatchIndex}},{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 Sc(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,a=this.dictionaries,o=this.schema,u=a.get(n);if(r||!u){var s=o.dictionaries.get(n);return u&&r?u.concat(qe.new(this._loadVectors(i,e,[s])[0])):qe.new(this._loadVectors(i,e,[s])[0])}return u}},{key:"_loadVectors",value:function(t,e,n){return new oo(e,t.nodes,t.buffers,this.dictionaries).visitMany(n)}}]),t}(),Lc=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this,r))._reader=Dt(t)?new yu(i._handle=t):new du(i._handle=t),i}return L(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=Pc(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):lt}},{key:"return",value:function(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):lt}},{key:"next",value:function(){if(this.closed)return lt;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(),a=e.readMessageBody(t.bodyLength),o=this._loadDictionaryBatch(i,a);this.dictionaries.set(i.id,o)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Tc(this.schema)}):this.return()}},{key:"_readNextMessageAndValidate",value:function(t){return this._reader.readMessage(t)}}]),n}(Nc),Cc=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this,r))._reader=new pu(i._handle=t),i}return L(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(C.mark((function t(){return C.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(C.mark((function t(e){return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed){t.next=10;break}if(this.autoDestroy=Pc(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(C.mark((function t(e){return C.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",lt);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=D(C.mark((function t(e){return C.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",lt);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"next",value:function(){var t=D(C.mark((function t(){var e,n,r,i,a,o,u,s;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.closed){t.next=2;break}return t.abrupt("return",lt);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,a=this._loadRecordBatch(r,i),t.abrupt("return",{done:!1,value:a});case 21:if(!e.isDictionaryBatch()){t.next=29;break}return this._dictionaryIndex++,o=e.header(),t.next=26,n.readMessageBody(e.bodyLength);case 26:u=t.sent,s=this._loadDictionaryBatch(o,u),this.dictionaries.set(o.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 Tc(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(C.mark((function t(e){return C.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}(Nc),Fc=function(t){rt(n,t);var e=ct(n);function n(t,r){return B(this,n),e.call(this,t instanceof Ja?t:new Ja(t),r)}return L(n,[{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}},{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=Object(A.a)(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 Re(Object(it.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(en.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(en.DictionaryBatch);if(n&&n.isDictionaryBatch()){var r=n.header(),i=this._reader.readMessageBody(n.bodyLength),a=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,a)}}}},{key:"_readFooter",value:function(){var t=this._handle,e=t.size-ku,n=t.readInt32(e),r=t.readAt(e-n,n);return Ha.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}}]),n}(Lc),jc=function(t){rt(n,t);var e=ct(n);function n(t){B(this,n);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o="number"!==typeof i[0]?i.shift():void 0,u=i[0]instanceof Map?i.shift():void 0;return e.call(this,t instanceof Za?t:new Za(t,o),u)}return L(n,[{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}},{key:"isFile",value:function(){return!0}},{key:"isAsync",value:function(){return!0}},{key:"open",value:function(){var t=D(C.mark((function t(e){var r,i,a;return C.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=Object(A.a)(this._footer.dictionaryBatches()),t.prev=5,r.s();case 7:if((i=r.n()).done){t.next=15;break}if(a=i.value,t.t0=a,!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,Re(Object(it.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(C.mark((function t(e){var n,r,i,a,o;return C.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(en.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 a=t.sent,o=this._loadRecordBatch(i,a),t.abrupt("return",o);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(C.mark((function t(e){var n,r,i,a,o;return C.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(en.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:a=t.sent,o=this._loadDictionaryBatch(i,a),this.dictionaries.set(i.id,o);case 17:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_readFooter",value:function(){var t=D(C.mark((function t(){var e,n,r,i;return C.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-ku,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",Ha.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(C.mark((function t(e){var n;return C.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)}}()}]),n}(Cc),Uc=function(t){rt(n,t);var e=ct(n);function n(t,r){return B(this,n),e.call(this,t,r)}return L(n,[{key:"_loadVectors",value:function(t,e,n){return new uo(e,t.nodes,t.buffers,this.dictionaries).visitMany(n)}}]),n}(Lc);function Pc(t,e){return e&&"boolean"===typeof e.autoDestroy?e.autoDestroy:t.autoDestroy}function Rc(t){var e;return C.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e=Oc.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()}}),Ec,null,[[1,,6,9]])}function zc(t){return Vc.apply(this,arguments)}function Vc(){return(Vc=R(C.mark((function t(e){var n;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U(Oc.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 Wc(){return(Wc=D(C.mark((function t(e){var n;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peek(wu+7&-8);case 2:if(!((n=t.sent)&&n.byteLength>=4)){t.next=18;break}if(gu(n)){t.next=8;break}t.t1=new Mc(new Cc(e)),t.next=15;break;case 8:return t.t2=Dc,t.t3=Fc,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 Mc(new Cc(R(C.mark((function t(){return C.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 Hc(){return(Hc=D(C.mark((function t(e){var n,r,i;return C.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 Za(e,r),!(r>=_u)){t.next=12;break}return t.t0=gu,t.next=9,i.readAt(0,wu+7&-8);case 9:if(t.t1=t.sent,!(0,t.t0)(t.t1)){t.next=12;break}return t.abrupt("return",new Bc(new jc(i)));case 12:return t.abrupt("return",new Mc(new Cc(i)));case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Yc=function(){function t(e){var n,r,i=this;B(this,t),this._numChunks=0,this._finished=!1,this._bufferedSize=0;var a=e.readableStrategy,o=e.writableStrategy,u=e.queueingStrategy,s=void 0===u?"count":u,c=Ru(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=xr.new(c),this._getSize="bytes"!==s?$c:qc;var l=Pe({},a).highWaterMark,f=void 0===l?"bytes"===s?Math.pow(2,14):1e3:l,h=Pe({},o).highWaterMark,d=void 0===h?"bytes"===s?Math.pow(2,14):1e3:h;this.readable=new ReadableStream((je(n={},"cancel",(function(){i._builder.clear()})),je(n,"pull",(function(t){i._maybeFlush(i._builder,i._controller=t)})),je(n,"start",(function(t){i._maybeFlush(i._builder,i._controller=t)})),n),{highWaterMark:f,size:"bytes"!==s?$c:qc}),this.writable=new WritableStream((je(r={},"abort",(function(){i._builder.clear()})),je(r,"write",(function(){i._maybeFlush(i._builder,i._controller)})),je(r,"close",(function(){i._maybeFlush(i._builder.finish(),i._controller)})),r),{highWaterMark:d,size:function(t){return i._writeValueAndReturnChunkSize(t)}})}return L(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}(),$c=function(t){return t.length},qc=function(t){return t.byteLength};var Kc=function(){function t(){B(this,t)}return L(t,[{key:"eq",value:function(e){return e instanceof t||(e=new Qc(e)),new nl(this,e)}},{key:"le",value:function(e){return e instanceof t||(e=new Qc(e)),new rl(this,e)}},{key:"ge",value:function(e){return e instanceof t||(e=new Qc(e)),new il(this,e)}},{key:"lt",value:function(t){return new al(this.ge(t))}},{key:"gt",value:function(t){return new al(this.le(t))}},{key:"ne",value:function(t){return new al(this.eq(t))}}]),t}(),Qc=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).v=t,r}return n}(Kc),Gc=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).name=t,r}return L(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}(Kc),Xc=function(){function t(){B(this,t)}return L(t,[{key:"and",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Object(Hr.a)(tl,[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 Object(Hr.a)(el,[this].concat(e))}},{key:"not",value:function(){return new al(this)}}]),t}(),Jc=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this)).left=t,i.right=r,i}return L(n,[{key:"bind",value:function(t){return this.left instanceof Qc?this.right instanceof Qc?this._bindLitLit(t,this.left,this.right):this._bindLitCol(t,this.left,this.right):this.right instanceof Qc?this._bindColLit(t,this.left,this.right):this._bindColCol(t,this.left,this.right)}}]),n}(Xc),Zc=function(t){rt(n,t);var e=ct(n);function n(){var t;B(this,n),t=e.call(this);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t.children=i,t}return n}(Xc);Zc.prototype.children=Object.freeze([]);var tl=function(t){rt(n,t);var e=ct(n);function n(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return B(this,n),r=r.reduce((function(t,e){return t.concat(e instanceof n?e.children:e)}),[]),e.call.apply(e,[this].concat(vn(r)))}return L(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}(Zc),el=function(t){rt(n,t);var e=ct(n);function n(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return B(this,n),r=r.reduce((function(t,e){return t.concat(e instanceof n?e.children:e)}),[]),e.call.apply(e,[this].concat(vn(r)))}return L(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}(Zc),nl=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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 Ku){var i,a=e.vector;return a.dictionary!==this.lastDictionary?(i=a.reverseLookup(n.v),this.lastDictionary=a.dictionary,this.lastKey=i):i=this.lastKey,-1===i?function(){return!1}:function(t){return a.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}(Jc),rl=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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}(Jc),il=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(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}(Jc),al=function(t){rt(n,t);var e=ct(n);function n(t){var r;return B(this,n),(r=e.call(this)).child=t,r}return L(n,[{key:"bind",value:function(t){var e=this.child.bind(t);return function(t,n){return!e(t,n)}}}]),n}(Xc);xc.prototype.countBy=function(t){return new ol(this.chunks).countBy(t)},xc.prototype.scan=function(t,e){return new ol(this.chunks).scan(t,e)},xc.prototype.scanReverse=function(t,e){return new ol(this.chunks).scanReverse(t,e)},xc.prototype.filter=function(t){return new ol(this.chunks).filter(t)};var ol=function(t){rt(n,t);var e=ct(n);function n(){return B(this,n),e.apply(this,arguments)}return L(n,[{key:"filter",value:function(t){return new sl(this.chunks,t)}},{key:"scan",value:function(t,e){for(var n=this.chunks,r=n.length,i=-1;++i<r;){var a=n[i];e&&e(a);for(var o=-1,u=a.length;++o<u;)t(o,a)}}},{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 a=i.length;--a>=0;)t(a,i)}}},{key:"countBy",value:function(t){var e=this.chunks,n=e.length,r="string"===typeof t?new Gc(t):t;r.bind(e[n-1]);var i=r.vector;if(!Bn.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");for(var a=Math.ceil(Math.log(i.length)/Math.log(256)),o=new(4==a?Uint32Array:a>=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&&o[h]++}}return new ul(i.dictionary,us.from(o))}}]),n}(xc),ul=function(t){rt(n,t);var e=ct(n);function n(t,r){B(this,n);var i=new aa([new oa("values",t.type),new oa("counts",r.type)]);return e.call(this,new Sc(i,r.length,[t,r]))}return L(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}(xc),sl=function(t){rt(n,t);var e=ct(n);function n(t,r){var i;return B(this,n),(i=e.call(this,t))._predicate=r,i}return L(n,[{key:"scan",value:function(t,e){for(var n=this._chunks,r=n.length,i=-1;++i<r;)for(var a=n[i],o=this._predicate.bind(a),u=!1,s=-1,c=a.length;++s<c;)o(s,a)&&(e&&!u&&(e(a),u=!0),t(s,a))}},{key:"scanReverse",value:function(t,e){for(var n=this._chunks,r=n.length;--r>=0;)for(var i=n[r],a=this._predicate.bind(i),o=!1,u=i.length;--u>=0;)a(u,i)&&(e&&!o&&(e(i),o=!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],a=this._predicate.bind(i),o=-1,u=i.length;++o<u;)a(o,i)&&++t;return t}},{key:Symbol.iterator,value:C.mark((function t(){var e,n,r,i,a,o,u;return C.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],a=this._predicate.bind(i),o=-1,u=i.length;case 7:if(!(++o<u)){t.next=13;break}if(!a(o,i)){t.next=11;break}return t.next=11,i.get(o);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 Gc(t):t;r.bind(e[n-1]);var i=r.vector;if(!Bn.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");for(var a=Math.ceil(Math.log(i.length)/Math.log(256)),o=new(4==a?Uint32Array:a>=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)&&o[d]++}}return new ul(i.dictionary,us.from(o))}}]),n}(ol);Pe(Pe(Pe(Pe(Pe(Pe({},o),s),i),a),r),u);Ee.toDOMStream=function(t,e){if(Mt(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(Pe(Pe({},e),{},{start:function(e){return D(C.mark((function r(){return C.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a(e,n||(n=t[Symbol.asyncIterator]()));case 2:case"end":return r.stop()}}),r)})))()},pull:function(t){return D(C.mark((function e(){return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,a(t,n);case 3:e.next=6;break;case 5:t.close();case 6:case"end":return e.stop()}}),e)})))()},cancel:function(){return D(C.mark((function t(){return C.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)})))()}}),Pe({highWaterMark:r?i:void 0},e));function a(t,e){return o.apply(this,arguments)}function o(){return(o=D(C.mark((function t(e,n){var i,a,o;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=null,o=e.desiredSize||null;case 2:return t.next=4,n.next(r?o:null);case 4:if((a=t.sent).done){t.next=11;break}if(ArrayBuffer.isView(a.value)&&(i=Qt(a.value))&&(null!=o&&r&&(o=o-i.byteLength+1),a.value=i),e.enqueue(a.value),!(null!=o&&--o<=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(At(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(Pe(Pe({},e),{},{start:function(e){a(e,n||(n=t[Symbol.iterator]()))},pull:function(t){n?a(t,n):t.close()},cancel:function(){n&&n.return&&n.return(),n=null}}),Pe({highWaterMark:r?i:void 0},e));function a(t,e){for(var n,i=null,a=t.desiredSize||null;!(i=e.next(r?a:null)).done;)if(ArrayBuffer.isView(i.value)&&(n=Qt(i.value))&&(null!=a&&r&&(a=a-n.byteLength+1),i.value=n),t.enqueue(i.value),null!=a&&--a<=0)return;t.close()}}(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")},xr.throughDOM=function(t){return new Yc(t)},Oc.throughDOM=function(t,e){var n=new qa,r=null,i=new ReadableStream({cancel:function(){return D(C.mark((function t(){return C.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(C.mark((function e(){return C.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,a();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(C.mark((function e(){return C.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,Pe({highWaterMark:Math.pow(2,14)},t)),readable:i};function a(){return o.apply(this,arguments)}function o(){return(o=D(C.mark((function t(){return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Oc.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(C.mark((function t(e,n){var r,i;return C.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)}},Au.throughDOM=function(t,e){var n=new this(t),r=new Qa(n),i=new ReadableStream({type:"bytes",cancel:function(){return D(C.mark((function t(){return C.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(C.mark((function e(){return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(t);case 2:case"end":return e.stop()}}),e)})))()},start:function(t){return D(C.mark((function e(){return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(t);case 2:case"end":return e.stop()}}),e)})))()}},Pe({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(n,t),readable:i};function a(t){return o.apply(this,arguments)}function o(){return(o=D(C.mark((function t(e){var n,i;return C.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 cl,ll=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,a=t<i.headerRows&&e>=i.headerColumns;if(n){var o=["blank"];return e>0&&o.push("level"+t),{type:"blank",classNames:o.join(" "),content:""}}if(a)return{type:"columns",classNames:(o=["col_heading","level"+t,"col"+(s=e-i.headerColumns)]).join(" "),content:i.getContent(i.columnsTable,s,t)};if(r){o=["row_heading","level"+e,"row"+(u=t-i.headerRows)];return{type:"index",id:"T_"+i.uuid+"level"+e+"_row"+u,classNames:o.join(" "),content:i.getContent(i.indexTable,u,e)}}o=["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:o.join(" "),content:c}},this.getContent=function(t,e,n){var r=t.getColumnAt(n);if(null===r)return"";switch(i.getColumnTypeId(t,n)){case Ke.Timestamp:return i.nanosToDate(r.get(e));default:return r.get(e)}},this.dataTable=xc.from(t),this.indexTable=xc.from(e),this.columnsTable=xc.from(n),this.styler=r?{caption:r.caption,displayValuesTable:xc.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}(),fl=function(){return(fl=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"}(cl||(cl={}));var hl=function(){function t(){}return t.API_VERSION=1,t.RENDER_EVENT="streamlit:render",t.events=new O,t.registeredMessageListener=!1,t.setComponentReady=function(){t.registeredMessageListener||(window.addEventListener("message",t.onMessageEvent),t.registeredMessageListener=!0),t.sendBackMsg(cl.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(cl.SET_FRAME_HEIGHT,{height:e}))},t.setComponentValue=function(e){var n;e instanceof ll?(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(cl.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=fl(fl({},n),r);var i={disabled:Boolean(e.disabled),args:n},a=new CustomEvent(t.RENDER_EVENT,{detail:i});t.events.dispatchEvent(a)},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,a=e.styler;return new ll(n,r,i,a)},t.sendBackMsg=function(t,e){window.parent.postMessage(fl({isStreamlitMessage:!0,type:t},e),"*")},t}();var dl=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)}}();!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}dl(e,t),e.prototype.componentDidMount=function(){hl.setFrameHeight()},e.prototype.componentDidUpdate=function(){hl.setFrameHeight()}}(h.a.PureComponent);function pl(t){var e=function(e){function n(n){var r=e.call(this,n)||this;return r.componentDidMount=function(){hl.events.addEventListener(hl.RENDER_EVENT,r.onRenderEvent),hl.setComponentReady()},r.componentDidUpdate=function(){null!=r.state.componentError&&hl.setFrameHeight()},r.componentWillUnmount=function(){hl.events.removeEventListener(hl.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 dl(n,e),n.getDerivedStateFromError=function(t){return{componentError:t}},n}(h.a.PureComponent);return l()(e,t)}},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";n.r(e);var r=n(20);n.d(e,"dispatch",(function(){return r.a}))},,function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(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=o(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++)a.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},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 a(r)}function a(t){this._=t}function o(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,a=t.length;i<a;++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}a.prototype=i.prototype={constructor:a,on:function(t,e){var n,r=this._,i=o(t+"",r),a=-1,c=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++a<c;)if(n=(t=i[a]).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(;++a<c;)if((n=(t=i[a]).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 a(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].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,a=r.length;i<a;++i)r[i].value.apply(e,n)}},e.a=i},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(37)},function(t,e,n){"use strict";var r=n(40),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(t){return r.isMemo(t)?o:u[t.$$typeof]||i}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=o;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 o=l(n);f&&(o=o.concat(f(n)));for(var u=s(e),y=s(n),v=0;v<o.length;++v){var b=o[v];if(!a[b]&&(!r||!r[b])&&(!y||!y[b])&&(!u||!u[b])){var m=h(n,b);try{c(e,b,m)}catch(g){}}}}return e}},function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,c=u||s||Function("return this")(),l=Object.prototype.toString,f=Math.max,h=Math.min,d=function(){return c.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(p(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=p(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var u=i.test(t);return u||a.test(t)?o(t.slice(2),u?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,a,o,u,s,c=0,l=!1,v=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=r,a=i;return r=i=void 0,c=e,o=t.apply(a,n)}function g(t){return c=t,u=setTimeout(k,e),l?m(t):o}function w(t){var n=t-s;return void 0===s||n>=e||n<0||v&&t-c>=a}function k(){var t=d();if(w(t))return _(t);u=setTimeout(k,function(t){var n=e-(t-s);return v?h(n,a-(t-c)):n}(t))}function _(t){return u=void 0,b&&r?m(t):(r=i=void 0,o)}function x(){var t=d(),n=w(t);if(r=arguments,i=this,s=t,n){if(void 0===u)return g(s);if(v)return u=setTimeout(k,e),m(s)}return void 0===u&&(u=setTimeout(k,e)),o}return e=y(e)||0,p(n)&&(l=!!n.leading,a=(v="maxWait"in n)?f(y(n.maxWait)||0,e):a,b="trailing"in n?!!n.trailing:b),x.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=i=u=void 0},x.flush=function(){return void 0===u?o:_(d())},x}}).call(this,n(16))},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i="undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),a="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var o=["top","right","bottom","left","width","height","size","weight"],u="undefined"!==typeof MutationObserver,s=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&s()}function u(){a(o)}function s(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;o.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),c=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},l=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},f=b(0,0,0,0);function h(t){return parseFloat(t)||0}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+h(t["border-"+n+"-width"])}),0)}function p(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return f;var r=l(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],a=t["padding-"+i];e[i]=h(a)}return e}(r),a=i.left+i.right,o=i.top+i.bottom,u=h(r.width),s=h(r.height);if("border-box"===r.boxSizing&&(Math.round(u+a)!==e&&(u-=d(r,"left","right")+a),Math.round(s+o)!==n&&(s-=d(r,"top","bottom")+o)),!function(t){return t===l(t).document.documentElement}(t)){var c=Math.round(u+a)-e,p=Math.round(s+o)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(p)&&(s-=p)}return b(i.left,i.top,u,s)}var y="undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof l(t).SVGGraphicsElement}:function(t){return t instanceof l(t).SVGElement&&"function"===typeof t.getBBox};function v(t){return r?y(t)?function(t){var e=t.getBBox();return b(0,0,e.width,e.height)}(t):p(t):f}function b(t,e,n,r){return{x:t,y:e,width:n,height:r}}var m=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),g=function(t,e){var n=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return c(o,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),o}(e);c(this,{target:t,contentRect:n})},w=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new m(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new g(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),k="undefined"!==typeof WeakMap?new WeakMap:new n,_=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(e,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){_.prototype[t]=function(){var e;return(e=k.get(this))[t].apply(e,arguments)}}));var x="undefined"!==typeof i.ResizeObserver?i.ResizeObserver:_;e.a=x}).call(this,n(16))},function(t,e,n){var r=n(17).dispatch,i=Math.PI/180;function a(t){return t.text}function o(){return"serif"}function u(){return"normal"}function s(t){return Math.sqrt(t.value)}function c(){return 30*(~~(6*Math.random())-3)}function l(){return 1}function f(t,e,n,r){if(!e.sprite){var a=t.context,o=t.ratio;a.clearRect(0,0,2048/o,2048/o);var u=0,s=0,c=0,l=n.length;for(--r;++r<l;){e=n[r],a.save(),a.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var f=a.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var d=Math.sin(e.rotate*i),p=Math.cos(e.rotate*i),y=f*p,v=f*d,b=h*p,m=h*d;f=Math.max(Math.abs(y+m),Math.abs(y-m))+31>>5<<5,h=~~Math.max(Math.abs(v+b),Math.abs(v-b))}else f=f+31>>5<<5;if(h>c&&(c=h),u+f>=2048&&(u=0,s+=c,c=0),s+h>=2048)break;a.translate((u+(f>>1))/o,(s+(h>>1))/o),e.rotate&&a.rotate(e.rotate*i),a.fillText(e.text,0,0),e.padding&&(a.lineWidth=2*e.padding,a.strokeText(e.text,0,0)),a.restore(),e.width=f,e.height=h,e.xoff=u,e.yoff=s,e.x1=f>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,u+=f}for(var g=a.getImageData(0,0,2048/o,2048/o).data,w=[];--r>=0;)if((e=n[r]).hasText){for(var k=(f=e.width)>>5,_=(h=e.y1-e.y0,0);_<h*k;_++)w[_]=0;if(null==(u=e.xoff))return;s=e.yoff;for(var x=0,S=-1,T=0;T<h;T++){for(_=0;_<f;_++){var I=k*T+(_>>5),E=g[2048*(s+T)+(u+_)<<2]?1<<31-_%32:0;w[I]|=E,x|=E}x?S=T:(e.y0++,h--,T--,s++)}e.y1=e.y0+S,e.sprite=w.slice(0,(e.y1-e.y0)*k)}}}function h(t,e,n){n>>=5;for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),u=127&o,s=32-u,c=t.y1-t.y0,l=(t.y+t.y0)*n+(o>>5),f=0;f<c;f++){r=0;for(var h=0;h<=a;h++)if((r<<s|(h<a?(r=i[f*a+h])>>>u:0))&e[l+h])return!0;l+=n}return!1}function d(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function p(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(){return document.createElement("canvas")}function v(t){return"function"===typeof t?t:function(){return t}}t.exports=function(){var t=[256,256],e=a,n=o,i=s,m=u,g=u,w=c,k=l,_=p,x=[],S=1/0,T=r("word","end"),I=null,E=Math.random,O={},A=y;function M(e,n,r){t[0],t[1];for(var i,a,o,u,s,c=n.x,l=n.y,f=Math.sqrt(t[0]*t[0]+t[1]*t[1]),d=_(t),p=E()<.5?1:-1,y=-p;(i=d(y+=p))&&(a=~~i[0],o=~~i[1],!(Math.min(Math.abs(a),Math.abs(o))>=f));)if(n.x=c+a,n.y=l+o,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!h(n,e,t[0]))&&(!r||(s=r,(u=n).x+u.x1>s[0].x&&u.x+u.x0<s[1].x&&u.y+u.y1>s[0].y&&u.y+u.y0<s[1].y))){for(var v,b=n.sprite,m=n.width>>5,g=t[0]>>5,w=n.x-(m<<4),k=127&w,x=32-k,S=n.y1-n.y0,T=(n.y+n.y0)*g+(w>>5),I=0;I<S;I++){v=0;for(var O=0;O<=m;O++)e[T+O]|=v<<x|(O<m?(v=b[I*m+O])>>>k:0);T+=g}return delete n.sprite,!0}return!1}return O.canvas=function(t){return arguments.length?(A=v(t),O):A},O.start=function(){var r=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(A()),a=function(t){var e=[],n=-1;for(;++n<t;)e[n]=0;return e}((t[0]>>5)*t[1]),o=null,u=x.length,s=-1,c=[],l=x.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=m.call(this,t,r),t.weight=g.call(this,t,r),t.rotate=w.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=k.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return I&&clearInterval(I),I=setInterval(h,0),h(),O;function h(){for(var e=Date.now();Date.now()-e<S&&++s<u&&I;){var n=l[s];n.x=t[0]*(E()+.5)>>1,n.y=t[1]*(E()+.5)>>1,f(r,n,l,s),n.hasText&&M(a,n,o)&&(c.push(n),T.call("word",O,n),o?d(o,n):o=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}s>=u&&(O.stop(),T.call("end",O,c,o))}},O.stop=function(){return I&&(clearInterval(I),I=null),O},O.timeInterval=function(t){return arguments.length?(S=null==t?1/0:t,O):S},O.words=function(t){return arguments.length?(x=t,O):x},O.size=function(e){return arguments.length?(t=[+e[0],+e[1]],O):t},O.font=function(t){return arguments.length?(n=v(t),O):n},O.fontStyle=function(t){return arguments.length?(m=v(t),O):m},O.fontWeight=function(t){return arguments.length?(g=v(t),O):g},O.rotate=function(t){return arguments.length?(w=v(t),O):w},O.text=function(t){return arguments.length?(e=v(t),O):e},O.spiral=function(t){return arguments.length?(_=b[t]||t,O):_},O.fontSize=function(t){return arguments.length?(i=v(t),O):i},O.padding=function(t){return arguments.length?(k=v(t),O):k},O.random=function(t){return arguments.length?(E=t,O):E},O.on=function(){var t=T.on.apply(T,arguments);return t===T?O:t},O};var b={archimedean:p,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}}},function(t,e,n){(function(t,n){var r="[object Arguments]",i="[object Function]",a="[object GeneratorFunction]",o="[object Map]",u="[object Set]",s=/\w*$/,c=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,f={};f[r]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object DataView]"]=f["[object Boolean]"]=f["[object Date]"]=f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f[o]=f["[object Number]"]=f["[object Object]"]=f["[object RegExp]"]=f[u]=f["[object String]"]=f["[object Symbol]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f["[object Error]"]=f[i]=f["[object WeakMap]"]=!1;var h="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,p=h||d||Function("return this")(),y=e&&!e.nodeType&&e,v=y&&"object"==typeof n&&n&&!n.nodeType&&n,b=v&&v.exports===y;function m(t,e){return t.set(e[0],e[1]),t}function g(t,e){return t.add(e),t}function w(t,e,n,r){var i=-1,a=t?t.length:0;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}function k(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function _(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function x(t,e){return function(n){return t(e(n))}}function S(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var T=Array.prototype,I=Function.prototype,E=Object.prototype,O=p["__core-js_shared__"],A=function(){var t=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),M=I.toString,D=E.hasOwnProperty,B=E.toString,N=RegExp("^"+M.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=b?p.Buffer:void 0,C=p.Symbol,F=p.Uint8Array,j=x(Object.getPrototypeOf,Object),U=Object.create,P=E.propertyIsEnumerable,R=T.splice,z=Object.getOwnPropertySymbols,V=L?L.isBuffer:void 0,W=x(Object.keys,Object),H=yt(p,"DataView"),Y=yt(p,"Map"),$=yt(p,"Promise"),q=yt(p,"Set"),K=yt(p,"WeakMap"),Q=yt(Object,"create"),G=wt(H),X=wt(Y),J=wt($),Z=wt(q),tt=wt(K),et=C?C.prototype:void 0,nt=et?et.valueOf:void 0;function rt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function at(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){this.__data__=new it(t)}function ut(t,e){var n=_t(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&xt(t)}(t)&&D.call(t,"callee")&&(!P.call(t,"callee")||B.call(t)==r)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],i=n.length,a=!!i;for(var o in t)!e&&!D.call(t,o)||a&&("length"==o||mt(o,i))||n.push(o);return n}function st(t,e,n){var r=t[e];D.call(t,e)&&kt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function ct(t,e){for(var n=t.length;n--;)if(kt(t[n][0],e))return n;return-1}function lt(t,e,n,c,l,h,d){var p;if(c&&(p=h?c(t,l,h,d):c(t)),void 0!==p)return p;if(!It(t))return t;var y=_t(t);if(y){if(p=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&D.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,p)}else{var v=bt(t),b=v==i||v==a;if(St(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if("[object Object]"==v||v==r||b&&!h){if(k(t))return h?t:{};if(p=function(t){return"function"!=typeof t.constructor||gt(t)?{}:(e=j(t),It(e)?U(e):{});var e}(b?{}:t),!e)return function(t,e){return dt(t,vt(t),e)}(t,function(t,e){return t&&dt(e,Et(e),t)}(p,t))}else{if(!f[v])return h?t:{};p=function(t,e,n,r){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return ht(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?ht(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var n=e?ht(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case o:return function(t,e,n){return w(e?n(_(t),!0):_(t),m,new t.constructor)}(t,r,n);case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,s.exec(t));return e.lastIndex=t.lastIndex,e}(t);case u:return function(t,e,n){return w(e?n(S(t),!0):S(t),g,new t.constructor)}(t,r,n);case"[object Symbol]":return a=t,nt?Object(nt.call(a)):{}}var a}(t,v,lt,e)}}d||(d=new ot);var x=d.get(t);if(x)return x;if(d.set(t,p),!y)var T=n?function(t){return function(t,e,n){var r=e(t);return _t(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Et,vt)}(t):Et(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(T||t,(function(r,i){T&&(r=t[i=r]),st(p,i,lt(r,e,n,c,i,t,d))})),p}function ft(t){return!(!It(t)||(e=t,A&&A in e))&&(Tt(t)||k(t)?N:c).test(wt(t));var e}function ht(t){var e=new t.constructor(t.byteLength);return new F(e).set(new F(t)),e}function dt(t,e,n,r){n||(n={});for(var i=-1,a=e.length;++i<a;){var o=e[i],u=r?r(n[o],t[o],o,n,t):void 0;st(n,o,void 0===u?t[o]:u)}return n}function pt(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function yt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return ft(n)?n:void 0}rt.prototype.clear=function(){this.__data__=Q?Q(null):{}},rt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},rt.prototype.get=function(t){var e=this.__data__;if(Q){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return D.call(e,t)?e[t]:void 0},rt.prototype.has=function(t){var e=this.__data__;return Q?void 0!==e[t]:D.call(e,t)},rt.prototype.set=function(t,e){return this.__data__[t]=Q&&void 0===e?"__lodash_hash_undefined__":e,this},it.prototype.clear=function(){this.__data__=[]},it.prototype.delete=function(t){var e=this.__data__,n=ct(e,t);return!(n<0)&&(n==e.length-1?e.pop():R.call(e,n,1),!0)},it.prototype.get=function(t){var e=this.__data__,n=ct(e,t);return n<0?void 0:e[n][1]},it.prototype.has=function(t){return ct(this.__data__,t)>-1},it.prototype.set=function(t,e){var n=this.__data__,r=ct(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},at.prototype.clear=function(){this.__data__={hash:new rt,map:new(Y||it),string:new rt}},at.prototype.delete=function(t){return pt(this,t).delete(t)},at.prototype.get=function(t){return pt(this,t).get(t)},at.prototype.has=function(t){return pt(this,t).has(t)},at.prototype.set=function(t,e){return pt(this,t).set(t,e),this},ot.prototype.clear=function(){this.__data__=new it},ot.prototype.delete=function(t){return this.__data__.delete(t)},ot.prototype.get=function(t){return this.__data__.get(t)},ot.prototype.has=function(t){return this.__data__.has(t)},ot.prototype.set=function(t,e){var n=this.__data__;if(n instanceof it){var r=n.__data__;if(!Y||r.length<199)return r.push([t,e]),this;n=this.__data__=new at(r)}return n.set(t,e),this};var vt=z?x(z,Object):function(){return[]},bt=function(t){return B.call(t)};function mt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||l.test(t))&&t>-1&&t%1==0&&t<e}function gt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||E)}function wt(t){if(null!=t){try{return M.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function kt(t,e){return t===e||t!==t&&e!==e}(H&&"[object DataView]"!=bt(new H(new ArrayBuffer(1)))||Y&&bt(new Y)!=o||$&&"[object Promise]"!=bt($.resolve())||q&&bt(new q)!=u||K&&"[object WeakMap]"!=bt(new K))&&(bt=function(t){var e=B.call(t),n="[object Object]"==e?t.constructor:void 0,r=n?wt(n):void 0;if(r)switch(r){case G:return"[object DataView]";case X:return o;case J:return"[object Promise]";case Z:return u;case tt:return"[object WeakMap]"}return e});var _t=Array.isArray;function xt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Tt(t)}var St=V||function(){return!1};function Tt(t){var e=It(t)?B.call(t):"";return e==i||e==a}function It(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Et(t){return xt(t)?ut(t):function(t){if(!gt(t))return W(t);var e=[];for(var n in Object(t))D.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}n.exports=function(t){return lt(t,!0,!0)}}).call(this,n(16),n(8)(t))},function(t,e,n){var r=n(43),i=n(44),a=n(45),o=n(46),u=n(47),s=n(48),c=n(49);c.alea=r,c.xor128=i,c.xorwow=a,c.xorshift7=o,c.xor4096=u,c.tychei=s,t.exports=c},function(t,e,n){"use strict";var r=n(23),i=n.n(r),a=n(4),o=n.n(a),u={},s=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(u={mouseenter:"mouseover",mouseleave:"mouseout"}));function c(t,e,n){return t=l(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function l(t,e,n){return function(r){var i=s;s=r;try{t.call(this,this.__data__,e,n)}finally{s=i}}}function f(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 h(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++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 d(t,e,n){var r=u.hasOwnProperty(t.type)?c:l;return function(i,a,o){var u,s=this.__on,c=r(e,a,o);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 p(){}var y=function(t){return null==t?p:function(){return this.querySelector(t)}};function v(){return[]}var b=function(t){return null==t?v:function(){return this.querySelectorAll(t)}},m=function(t){return function(){return this.matches(t)}},g=function(t){return new Array(t.length)};function w(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}w.prototype={constructor:w,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 k(t,e,n,r,i,a){for(var o,u=0,s=e.length,c=a.length;u<c;++u)(o=e[u])?(o.__data__=a[u],r[u]=o):n[u]=new w(t,a[u]);for(;u<s;++u)(o=e[u])&&(i[u]=o)}function _(t,e,n,r,i,a,o){var u,s,c,l={},f=e.length,h=a.length,d=new Array(f);for(u=0;u<f;++u)(s=e[u])&&(d[u]=c="$"+o.call(s,s.__data__,u,e),c in l?i[u]=s:l[c]=s);for(u=0;u<h;++u)(s=l[c="$"+o.call(t,a[u],u,a)])?(r[u]=s,s.__data__=a[u],l[c]=null):n[u]=new w(t,a[u]);for(u=0;u<f;++u)(s=e[u])&&l[d[u]]===s&&(i[u]=s)}function x(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var S="http://www.w3.org/1999/xhtml",T={svg:"http://www.w3.org/2000/svg",xhtml:S,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},I=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),T.hasOwnProperty(e)?{space:T[e],local:t}:t};function E(t){return function(){this.removeAttribute(t)}}function O(t){return function(){this.removeAttributeNS(t.space,t.local)}}function A(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function D(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 N=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function L(t){return function(){this.style.removeProperty(t)}}function C(t,e,n){return function(){this.style.setProperty(t,e,n)}}function F(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function j(t,e){return t.style.getPropertyValue(e)||N(t).getComputedStyle(t,null).getPropertyValue(e)}function U(t){return function(){delete this[t]}}function P(t,e){return function(){this[t]=e}}function R(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function z(t){return t.trim().split(/^|\s+/)}function V(t){return t.classList||new W(t)}function W(t){this._node=t,this._names=z(t.getAttribute("class")||"")}function H(t,e){for(var n=V(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Y(t,e){for(var n=V(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function $(t){return function(){H(this,t)}}function q(t){return function(){Y(this,t)}}function K(t,e){return function(){(e.apply(this,arguments)?H:Y)(this,t)}}W.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 Q(){this.textContent=""}function G(t){return function(){this.textContent=t}}function X(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function J(){this.innerHTML=""}function Z(t){return function(){this.innerHTML=t}}function tt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function et(){this.nextSibling&&this.parentNode.appendChild(this)}function nt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===S&&e.documentElement.namespaceURI===S?e.createElement(t):e.createElementNS(n,t)}}function it(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var at=function(t){var e=I(t);return(e.local?it:rt)(e)};function ot(){return null}function ut(){var t=this.parentNode;t&&t.removeChild(this)}function st(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ct(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function lt(t,e,n){var r=N(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 ft(t,e){return function(){return lt(this,t,e)}}function ht(t,e){return function(){return lt(this,t,e.apply(this,arguments))}}var dt=[null];function pt(t,e){this._groups=t,this._parents=e}function yt(){return new pt([[document.documentElement]],dt)}pt.prototype=yt.prototype={constructor:pt,select:function(t){"function"!==typeof t&&(t=y(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,u=e[i],s=u.length,c=r[i]=new Array(s),l=0;l<s;++l)(a=u[l])&&(o=t.call(a,a.__data__,l,u))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new pt(r,this._parents)},selectAll:function(t){"function"!==typeof t&&(t=b(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,u=e[a],s=u.length,c=0;c<s;++c)(o=u[c])&&(r.push(t.call(o,o.__data__,c,u)),i.push(o));return new pt(r,i)},filter:function(t){"function"!==typeof t&&(t=m(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],u=o.length,s=r[i]=[],c=0;c<u;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&s.push(a);return new pt(r,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var n,r=e?_:k,i=this._parents,a=this._groups;"function"!==typeof t&&(n=t,t=function(){return n});for(var o=a.length,u=new Array(o),s=new Array(o),c=new Array(o),l=0;l<o;++l){var f=i[l],h=a[l],d=h.length,p=t.call(f,f&&f.__data__,l,i),y=p.length,v=s[l]=new Array(y),b=u[l]=new Array(y);r(f,h,v,b,c[l]=new Array(d),p,e);for(var m,g,w=0,x=0;w<y;++w)if(m=v[w]){for(w>=x&&(x=w+1);!(g=b[x])&&++x<y;);m._next=g||null}}return(u=new pt(u,i))._enter=s,u._exit=c,u},enter:function(){return new pt(this._enter||this._groups.map(g),this._parents)},exit:function(){return new pt(this._exit||this._groups.map(g),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,c=e[u],l=n[u],f=c.length,h=o[u]=new Array(f),d=0;d<f;++d)(s=c[d]||l[d])&&(h[d]=s);for(;u<r;++u)o[u]=e[u];return new pt(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=x);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,u=n[a],s=u.length,c=i[a]=new Array(s),l=0;l<s;++l)(o=u[l])&&(c[l]=o);c.sort(e)}return new pt(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,a=r.length;i<a;++i){var o=r[i];if(o)return o}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,a=e[n],o=0,u=a.length;o<u;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=I(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?O:E:"function"===typeof e?n.local?B:D:n.local?M:A)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?L:"function"===typeof e?F:C)(t,e,null==n?"":n)):j(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?U:"function"===typeof e?R:P)(t,e)):this.node()[t]},classed:function(t,e){var n=z(t+"");if(arguments.length<2){for(var r=V(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?K:e?$:q)(n,e))},text:function(t){return arguments.length?this.each(null==t?Q:("function"===typeof t?X:G)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?J:("function"===typeof t?tt:Z)(t)):this.node().innerHTML},raise:function(){return this.each(et)},lower:function(){return this.each(nt)},append:function(t){var e="function"===typeof t?t:at(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"===typeof t?t:at(t),r=null==e?ot:"function"===typeof e?e:y(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ut)},clone:function(t){return this.select(t?ct:st)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=f(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?d:h,null==n&&(n=!1),r=0;r<o;++r)this.each(u(a[r],e,n));return this}var u=this.node().__on;if(u)for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<o;++r)if((i=a[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,e){return this.each(("function"===typeof e?ht:ft)(t,e))}};var vt,bt,mt=yt,gt=function(t){return"string"===typeof t?new pt([[document.querySelector(t)]],[document.documentElement]):new pt([[t]],dt)},wt=n(24),kt=n(20),_t=0,xt=0,St=0,Tt=0,It=0,Et=0,Ot="object"===typeof performance&&performance.now?performance:Date,At="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Mt(){return It||(At(Dt),It=Ot.now()+Et)}function Dt(){It=0}function Bt(){this._call=this._time=this._next=null}function Nt(t,e,n){var r=new Bt;return r.restart(t,e,n),r}function Lt(){It=(Tt=Ot.now())+Et,_t=xt=0;try{!function(){Mt(),++_t;for(var t,e=vt;e;)(t=It-e._time)>=0&&e._call.call(null,t),e=e._next;--_t}()}finally{_t=0,function(){var t,e,n=vt,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:vt=e);bt=t,Ft(r)}(),It=0}}function Ct(){var t=Ot.now(),e=t-Tt;e>1e3&&(Et-=e,Tt=t)}function Ft(t){_t||(xt&&(xt=clearTimeout(xt)),t-It>24?(t<1/0&&(xt=setTimeout(Lt,t-Ot.now()-Et)),St&&(St=clearInterval(St))):(St||(Tt=Ot.now(),St=setInterval(Ct,1e3)),_t=1,At(Lt)))}Bt.prototype=Nt.prototype={constructor:Bt,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?Mt():+n)+(null==e?0:+e),this._next||bt===this||(bt?bt._next=this:vt=this,bt=this),this._call=t,this._time=n,Ft()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ft())}};var jt=function(t,e,n){var r=new Bt;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Ut=Object(kt.a)("start","end","cancel","interrupt"),Pt=[],Rt=function(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(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 jt(a);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(jt((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(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 o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].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=Nt((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Ut,tween:Pt,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})};function zt(t,e){var n=Wt(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Vt(t,e){var n=Wt(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Wt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Ht,Yt,$t,qt,Kt=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Qt=180/Math.PI,Gt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Xt=function(t,e,n,r,i,a){var o,u,s;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(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,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*Qt,skewX:Math.atan(s)*Qt,scaleX:o,scaleY:u}};function Jt(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var u=[],s=[];return a=t(a),o=t(o),function(t,r,i,a,o,u){if(t!==i||r!==a){var s=o.push("translate(",null,e,null,n);u.push({i:s-4,x:Kt(t,i)},{i:s-2,x:Kt(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,u,s),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Kt(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,s),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Kt(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,s),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:Kt(t,n)},{i:u-2,x:Kt(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,s),a=o=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 Zt=Jt((function(t){return"none"===t?Gt:(Ht||(Ht=document.createElement("DIV"),Yt=document.documentElement,$t=document.defaultView),Ht.style.transform=t,t=$t.getComputedStyle(Yt.appendChild(Ht),null).getPropertyValue("transform"),Yt.removeChild(Ht),t=t.slice(7,-1).split(","),Xt(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),te=Jt((function(t){return null==t?Gt:(qt||(qt=document.createElementNS("http://www.w3.org/2000/svg","g")),qt.setAttribute("transform",t),(t=qt.transform.baseVal.consolidate())?(t=t.matrix,Xt(t.a,t.b,t.c,t.d,t.e,t.f)):Gt)}),", ",")",")");function ee(t,e){var n,r;return function(){var i=Vt(this,t),a=i.tween;if(a!==n)for(var o=0,u=(r=n=a).length;o<u;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function ne(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var a=Vt(this,t),o=a.tween;if(o!==r){i=(r=o).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)}a.tween=i}}function re(t,e,n){var r=t._id;return t.each((function(){var t=Vt(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Wt(t,r).value[e]}}var ie=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function ae(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function oe(){}var ue="\\s*([+-]?\\d+)\\s*",se="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ce="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",le=/^#([0-9a-f]{3,8})$/,fe=new RegExp("^rgb\\("+[ue,ue,ue]+"\\)$"),he=new RegExp("^rgb\\("+[ce,ce,ce]+"\\)$"),de=new RegExp("^rgba\\("+[ue,ue,ue,se]+"\\)$"),pe=new RegExp("^rgba\\("+[ce,ce,ce,se]+"\\)$"),ye=new RegExp("^hsl\\("+[se,ce,ce]+"\\)$"),ve=new RegExp("^hsla\\("+[se,ce,ce,se]+"\\)$"),be={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 me(){return this.rgb().formatHex()}function ge(){return this.rgb().formatRgb()}function we(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=le.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ke(e):3===n?new Te(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_e(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_e(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=fe.exec(t))?new Te(e[1],e[2],e[3],1):(e=he.exec(t))?new Te(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=de.exec(t))?_e(e[1],e[2],e[3],e[4]):(e=pe.exec(t))?_e(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ye.exec(t))?Ae(e[1],e[2]/100,e[3]/100,1):(e=ve.exec(t))?Ae(e[1],e[2]/100,e[3]/100,e[4]):be.hasOwnProperty(t)?ke(be[t]):"transparent"===t?new Te(NaN,NaN,NaN,0):null}function ke(t){return new Te(t>>16&255,t>>8&255,255&t,1)}function _e(t,e,n,r){return r<=0&&(t=e=n=NaN),new Te(t,e,n,r)}function xe(t){return t instanceof oe||(t=we(t)),t?new Te((t=t.rgb()).r,t.g,t.b,t.opacity):new Te}function Se(t,e,n,r){return 1===arguments.length?xe(t):new Te(t,e,n,null==r?1:r)}function Te(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ie(){return"#"+Oe(this.r)+Oe(this.g)+Oe(this.b)}function Ee(){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 Oe(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ae(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new De(t,e,n,r)}function Me(t){if(t instanceof De)return new De(t.h,t.s,t.l,t.opacity);if(t instanceof oe||(t=we(t)),!t)return new De;if(t instanceof De)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,s=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new De(o,u,s,t.opacity)}function De(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Be(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 Ne(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}ie(oe,we,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:me,formatHex:me,formatHsl:function(){return Me(this).formatHsl()},formatRgb:ge,toString:ge}),ie(Te,Se,ae(oe,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Te(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Te(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:Ie,formatHex:Ie,formatRgb:Ee,toString:Ee})),ie(De,(function(t,e,n,r){return 1===arguments.length?Me(t):new De(t,e,n,null==r?1:r)}),ae(oe,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new De(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new De(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 Te(Be(t>=240?t-240:t+120,i,r),Be(t,i,r),Be(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 Le=function(t){return function(){return t}};function Ce(t,e){return function(n){return t+n*e}}function Fe(t){return 1===(t=+t)?je: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):Le(isNaN(e)?n:e)}}function je(t,e){var n=e-t;return n?Ce(t,n):Le(isNaN(t)?e:t)}var Ue=function t(e){var n=Fe(e);function r(t,e){var r=n((t=Se(t)).r,(e=Se(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=je(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Pe(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=Se(e[n]),a[n]=r.r||0,o[n]=r.g||0,u[n]=r.b||0;return a=t(a),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=u(t),r+""}}}Pe((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],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r<e-1?t[r+2]:2*a-i;return Ne((n-r/e)*e,o,i,a,u)}})),Pe((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],a=t[r%e],o=t[(r+1)%e],u=t[(r+2)%e];return Ne((n-r/e)*e,i,a,o,u)}}));var Re=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ze=new RegExp(Re.source,"g");var Ve=function(t,e){var n,r,i,a=Re.lastIndex=ze.lastIndex=0,o=-1,u=[],s=[];for(t+="",e+="";(n=Re.exec(t))&&(r=ze.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:Kt(n,r)})),a=ze.lastIndex;return a<e.length&&(i=e.slice(a),u[o]?u[o]+=i:u[++o]=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("")})},We=function(t,e){var n;return("number"===typeof e?Kt:e instanceof we?Ue:(n=we(e))?(e=n,Ue):Ve)(t,e)};function He(t){return function(){this.removeAttribute(t)}}function Ye(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $e(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function qe(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function Ke(t,e,n){var r,i,a;return function(){var o,u,s=n(this);if(null!=s)return(o=this.getAttribute(t))===(u=s+"")?null:o===r&&u===i?a:(i=u,a=e(r=o,s));this.removeAttribute(t)}}function Qe(t,e,n){var r,i,a;return function(){var o,u,s=n(this);if(null!=s)return(o=this.getAttributeNS(t.space,t.local))===(u=s+"")?null:o===r&&u===i?a:(i=u,a=e(r=o,s));this.removeAttributeNS(t.space,t.local)}}function Ge(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Xe(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Je(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Xe(t,i)),n}return i._value=e,i}function Ze(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Ge(t,i)),n}return i._value=e,i}function tn(t,e){return function(){zt(this,t).delay=+e.apply(this,arguments)}}function en(t,e){return e=+e,function(){zt(this,t).delay=e}}function nn(t,e){return function(){Vt(this,t).duration=+e.apply(this,arguments)}}function rn(t,e){return e=+e,function(){Vt(this,t).duration=e}}function an(t,e){if("function"!==typeof e)throw new Error;return function(){Vt(this,t).ease=e}}function on(t,e,n){var r,i,a=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)?zt:Vt;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(e,n),o.on=i}}var un=mt.prototype.constructor;function sn(t){return function(){this.style.removeProperty(t)}}function cn(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function ln(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&cn(t,a,n)),r}return a._value=e,a}function fn(t){return function(e){this.textContent=t.call(this,e)}}function hn(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&fn(r)),e}return r._value=t,r}var dn=0;function pn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function yn(){return++dn}var vn=mt.prototype;pn.prototype=function(t){return mt().transition(t)}.prototype={constructor:pn,select:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=y(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var u,s,c=r[o],l=c.length,f=a[o]=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,Rt(f[h],e,n,h,f,Wt(u,n)));return new pn(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=b(t));for(var r=this._groups,i=r.length,a=[],o=[],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=Wt(s,n),y=0,v=d.length;y<v;++y)(h=d[y])&&Rt(h,e,n,y,d,p);a.push(d),o.push(s)}return new pn(a,o,e,n)},filter:function(t){"function"!==typeof t&&(t=m(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],u=o.length,s=r[i]=[],c=0;c<u;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&s.push(a);return new pn(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,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,c=e[u],l=n[u],f=c.length,h=o[u]=new Array(f),d=0;d<f;++d)(s=c[d]||l[d])&&(h[d]=s);for(;u<r;++u)o[u]=e[u];return new pn(o,this._parents,this._name,this._id)},selection:function(){return new un(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=yn(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,u=r[a],s=u.length,c=0;c<s;++c)if(o=u[c]){var l=Wt(o,e);Rt(o,t,n,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new pn(r,this._parents,t,n)},call:vn.call,nodes:vn.nodes,node:vn.node,size:vn.size,empty:vn.empty,each:vn.each,on:function(t,e){var n=this._id;return arguments.length<2?Wt(this.node(),n).on.on(t):this.each(on(n,t,e))},attr:function(t,e){var n=I(t),r="transform"===n?te:We;return this.attrTween(t,"function"===typeof e?(n.local?Qe:Ke)(n,r,re(this,"attr."+t,e)):null==e?(n.local?Ye:He)(n):(n.local?qe:$e)(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=I(t);return this.tween(n,(r.local?Je:Ze)(r,e))},style:function(t,e,n){var r="transform"===(t+="")?Zt:We;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=j(this,t),o=(this.style.removeProperty(t),j(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,sn(t)):"function"===typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=j(this,t),u=n(this),s=u+"";return null==u&&(this.style.removeProperty(t),s=u=j(this,t)),o===s?null:o===r&&s===i?a:(i=s,a=e(r=o,u))}}(t,r,re(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,u="end."+o;return function(){var s=Vt(this,t),c=s.on,l=null==s.value[o]?a||(a=sn(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,a=n+"";return function(){var o=j(this,t);return o===a?null:o===r?i:i=e(r=o,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,ln(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}}(re(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,hn(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=Wt(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?ee:ne)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?tn:en)(e,t)):Wt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?nn:rn)(e,t)):Wt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(an(e,t)):Wt(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var u={value:o},s={value:function(){0===--i&&a()}};n.each((function(){var n=Vt(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 bn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function mn(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return bn.time=Mt(),bn;return n}mt.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[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 a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},mt.prototype.transition=function(t){var e,n;t instanceof pn?(e=t._id,t=t._name):(e=yn(),(n=bn).time=Mt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,u=r[a],s=u.length,c=0;c<s;++c)(o=u[c])&&Rt(o,t,e,c,u,n||mn(o,e));return new pn(r,this._parents,t,e)};var gn=n(2);var wn=n(25),kn=n.n(wn),_n=n(26),xn=n.n(_n),Sn=n(27),Tn=n.n(Sn);function In(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function En(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function On(t){var e=En(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function An(t){return t instanceof En(t).Element||t instanceof Element}function Mn(t){return t instanceof En(t).HTMLElement||t instanceof HTMLElement}function Dn(t){return t?(t.nodeName||"").toLowerCase():null}function Bn(t){return((An(t)?t.ownerDocument:t.document)||window.document).documentElement}function Nn(t){return In(Bn(t)).left+On(t).scrollLeft}function Ln(t){return En(t).getComputedStyle(t)}function Cn(t){var e=Ln(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Fn(t,e,n){void 0===n&&(n=!1);var r=Bn(e),i=In(t),a=Mn(e),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Dn(e)||Cn(r))&&(o=function(t){return t!==En(t)&&Mn(t)?{scrollLeft:(e=t).scrollLeft,scrollTop:e.scrollTop}:On(t);var e}(e)),Mn(e)?((u=In(e)).x+=e.clientLeft,u.y+=e.clientTop):r&&(u.x=Nn(r))),{x:i.left+o.scrollLeft-u.x,y:i.top+o.scrollTop-u.y,width:i.width,height:i.height}}function jn(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function Un(t){return"html"===Dn(t)?t:t.assignedSlot||t.parentNode||t.host||Bn(t)}function Pn(t,e){void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:Mn(e)&&Cn(e)?e:t(Un(e))}(t),r="body"===Dn(n),i=En(n),a=r?[i].concat(i.visualViewport||[],Cn(n)?n:[]):n,o=e.concat(a);return r?o:o.concat(Pn(Un(a)))}function Rn(t){return["table","td","th"].indexOf(Dn(t))>=0}function zn(t){if(!Mn(t)||"fixed"===Ln(t).position)return null;var e=t.offsetParent;if(e){var n=Bn(e);if("body"===Dn(e)&&"static"===Ln(e).position&&"static"!==Ln(n).position)return n}return e}function Vn(t){for(var e=En(t),n=zn(t);n&&Rn(n)&&"static"===Ln(n).position;)n=zn(n);return n&&"body"===Dn(n)&&"static"===Ln(n).position?e:n||function(t){for(var e=Un(t);Mn(e)&&["html","body"].indexOf(Dn(e))<0;){var n=Ln(e);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return e;e=e.parentNode}return null}(t)||e}var Wn="top",Hn="bottom",Yn="right",$n="left",qn=[Wn,Hn,Yn,$n],Kn=qn.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),Qn=[].concat(qn,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),Gn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xn(t){var e=new Map,n=new Set,r=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var i=e.get(r);i&&t(i)}})),r.push(i)}(t)})),r}function Jn(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}var Zn={placement:"bottom",modifiers:[],strategy:"absolute"};function tr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"===typeof t.getBoundingClientRect)}))}function er(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,a=void 0===i?Zn:i;return function(t,e,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Zn),a),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},o=[],u=!1,s={state:i,setOptions:function(n){c(),i.options=Object.assign(Object.assign(Object.assign({},a),i.options),n),i.scrollParents={reference:An(t)?Pn(t):t.contextElement?Pn(t.contextElement):[],popper:Pn(e)};var u=function(t){var e=Xn(t);return Gn.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}(function(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign(Object.assign(Object.assign({},n),e),{},{options:Object.assign(Object.assign({},n.options),e.options),data:Object.assign(Object.assign({},n.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter((function(t){return t.enabled})),i.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,a=t.effect;if("function"===typeof a){var u=a({state:i,name:e,instance:s,options:r});o.push(u||function(){})}})),s.update()},forceUpdate:function(){if(!u){var t=i.elements,e=t.reference,n=t.popper;if(tr(e,n)){i.rects={reference:Fn(e,Vn(n),"fixed"===i.options.strategy),popper:jn(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(t){return i.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],o=a.fn,c=a.options,l=void 0===c?{}:c,f=a.name;"function"===typeof o&&(i=o({state:i,options:l,name:f,instance:s})||i)}else i.reset=!1,r=-1}}},update:Jn((function(){return new Promise((function(t){s.forceUpdate(),t(i)}))})),destroy:function(){c(),u=!0}};if(!tr(t,e))return s;function c(){o.forEach((function(t){return t()})),o=[]}return s.setOptions(n).then((function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)})),s}}var nr={passive:!0};function rr(t){return t.split("-")[0]}function ir(t){return t.split("-")[1]}function ar(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function or(t){var e,n=t.reference,r=t.element,i=t.placement,a=i?rr(i):null,o=i?ir(i):null,u=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Wn:e={x:u,y:n.y-r.height};break;case Hn:e={x:u,y:n.y+n.height};break;case Yn:e={x:n.x+n.width,y:s};break;case $n:e={x:n.x-r.width,y:s};break;default:e={x:n.x,y:n.y}}var c=a?ar(a):null;if(null!=c){var l="y"===c?"height":"width";switch(o){case"start":e[c]=e[c]-(n[l]/2-r[l]/2);break;case"end":e[c]=e[c]+(n[l]/2-r[l]/2)}}return e}var ur={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sr(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.offsets,o=t.position,u=t.gpuAcceleration,s=t.adaptive,c=t.roundOffsets?function(t){var e=t.x,n=t.y,r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(n*r)/r||0}}(a):a,l=c.x,f=void 0===l?0:l,h=c.y,d=void 0===h?0:h,p=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=$n,b=Wn,m=window;if(s){var g=Vn(n);g===En(n)&&(g=Bn(n)),i===Wn&&(b=Hn,d-=g.clientHeight-r.height,d*=u?1:-1),i===$n&&(v=Yn,f-=g.clientWidth-r.width,f*=u?1:-1)}var w,k=Object.assign({position:o},s&&ur);return u?Object.assign(Object.assign({},k),{},((w={})[b]=y?"0":"",w[v]=p?"0":"",w.transform=(m.devicePixelRatio||1)<2?"translate("+f+"px, "+d+"px)":"translate3d("+f+"px, "+d+"px, 0)",w)):Object.assign(Object.assign({},k),{},((e={})[b]=y?d+"px":"",e[v]=p?f+"px":"",e.transform="",e))}var cr={left:"right",right:"left",bottom:"top",top:"bottom"};function lr(t){return t.replace(/left|right|bottom|top/g,(function(t){return cr[t]}))}var fr={start:"end",end:"start"};function hr(t){return t.replace(/start|end/g,(function(t){return fr[t]}))}function dr(t,e){var n,r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&((n=r)instanceof En(n).ShadowRoot||n instanceof ShadowRoot)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function pr(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function yr(t,e){return"viewport"===e?pr(function(t){var e=En(t),n=Bn(t),r=e.visualViewport,i=n.clientWidth,a=n.clientHeight,o=0,u=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,u=r.offsetTop)),{width:i,height:a,x:o+Nn(t),y:u}}(t)):Mn(e)?function(t){var e=In(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):pr(function(t){var e=Bn(t),n=On(t),r=t.ownerDocument.body,i=Math.max(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Nn(t),u=-n.scrollTop;return"rtl"===Ln(r||e).direction&&(o+=Math.max(e.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:u}}(Bn(t)))}function vr(t,e,n){var r="clippingParents"===e?function(t){var e=Pn(Un(t)),n=["absolute","fixed"].indexOf(Ln(t).position)>=0&&Mn(t)?Vn(t):t;return An(n)?e.filter((function(t){return An(t)&&dr(t,n)&&"body"!==Dn(t)})):[]}(t):[].concat(e),i=[].concat(r,[n]),a=i[0],o=i.reduce((function(e,n){var r=yr(t,n);return e.top=Math.max(r.top,e.top),e.right=Math.min(r.right,e.right),e.bottom=Math.min(r.bottom,e.bottom),e.left=Math.max(r.left,e.left),e}),yr(t,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function br(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function mr(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function gr(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,a=n.boundary,o=void 0===a?"clippingParents":a,u=n.rootBoundary,s=void 0===u?"viewport":u,c=n.elementContext,l=void 0===c?"popper":c,f=n.altBoundary,h=void 0!==f&&f,d=n.padding,p=void 0===d?0:d,y=br("number"!==typeof p?p:mr(p,qn)),v="popper"===l?"reference":"popper",b=t.elements.reference,m=t.rects.popper,g=t.elements[h?v:l],w=vr(An(g)?g:g.contextElement||Bn(t.elements.popper),o,s),k=In(b),_=or({reference:k,element:m,strategy:"absolute",placement:i}),x=pr(Object.assign(Object.assign({},m),_)),S="popper"===l?x:k,T={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},I=t.modifiersData.offset;if("popper"===l&&I){var E=I[i];Object.keys(T).forEach((function(t){var e=[Yn,Hn].indexOf(t)>=0?1:-1,n=[Wn,Hn].indexOf(t)>=0?"y":"x";T[t]+=E[n]*e}))}return T}function wr(t,e,n){return Math.max(t,Math.min(e,n))}function kr(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function _r(t){return[Wn,Yn,Hn,$n].some((function(e){return t[e]>=0}))}var xr=er({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,a=void 0===i||i,o=r.resize,u=void 0===o||o,s=En(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach((function(t){t.addEventListener("scroll",n.update,nr)})),u&&s.addEventListener("resize",n.update,nr),function(){a&&c.forEach((function(t){t.removeEventListener("scroll",n.update,nr)})),u&&s.removeEventListener("resize",n.update,nr)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=or({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,u=n.roundOffsets,s=void 0===u||u,c={placement:rr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),sr(Object.assign(Object.assign({},c),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:s})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),sr(Object.assign(Object.assign({},c),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];Mn(i)&&Dn(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Mn(r)&&Dn(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,a=void 0===i?[0,0]:i,o=Qn.reduce((function(t,n){return t[n]=function(t,e,n){var r=rr(t),i=[$n,Wn].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign(Object.assign({},e),{},{placement:t})):n,o=a[0],u=a[1];return o=o||0,u=(u||0)*i,[$n,Yn].indexOf(r)>=0?{x:u,y:o}:{x:o,y:u}}(n,e.rects,a),t}),{}),u=o[e.placement],s=u.x,c=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,u=void 0===o||o,s=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=void 0===d||d,y=n.allowedAutoPlacements,v=e.options.placement,b=rr(v),m=s||(b===v||!p?[lr(v)]:function(t){if("auto"===rr(t))return[];var e=lr(t);return[hr(t),e,hr(e)]}(v)),g=[v].concat(m).reduce((function(t,n){return t.concat("auto"===rr(n)?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,u=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Qn:s,l=ir(r),f=l?u?Kn:Kn.filter((function(t){return ir(t)===l})):qn,h=f.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=f);var d=h.reduce((function(e,n){return e[n]=gr(t,{placement:n,boundary:i,rootBoundary:a,padding:o})[rr(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}(e,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:y}):n)}),[]),w=e.rects.reference,k=e.rects.popper,_=new Map,x=!0,S=g[0],T=0;T<g.length;T++){var I=g[T],E=rr(I),O="start"===ir(I),A=[Wn,Hn].indexOf(E)>=0,M=A?"width":"height",D=gr(e,{placement:I,boundary:l,rootBoundary:f,altBoundary:h,padding:c}),B=A?O?Yn:$n:O?Hn:Wn;w[M]>k[M]&&(B=lr(B));var N=lr(B),L=[];if(a&&L.push(D[E]<=0),u&&L.push(D[B]<=0,D[N]<=0),L.every((function(t){return t}))){S=I,x=!1;break}_.set(I,L)}if(x)for(var C=function(t){var e=g.find((function(e){var n=_.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return S=e,"break"},F=p?3:1;F>0;F--){if("break"===C(F))break}e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,u=void 0!==o&&o,s=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,h=n.tether,d=void 0===h||h,p=n.tetherOffset,y=void 0===p?0:p,v=gr(e,{boundary:s,rootBoundary:c,padding:f,altBoundary:l}),b=rr(e.placement),m=ir(e.placement),g=!m,w=ar(b),k="x"===w?"y":"x",_=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,T="function"===typeof y?y(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):y,I={x:0,y:0};if(_){if(a){var E="y"===w?Wn:$n,O="y"===w?Hn:Yn,A="y"===w?"height":"width",M=_[w],D=_[w]+v[E],B=_[w]-v[O],N=d?-S[A]/2:0,L="start"===m?x[A]:S[A],C="start"===m?-S[A]:-x[A],F=e.elements.arrow,j=d&&F?jn(F):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=U[E],R=U[O],z=wr(0,x[A],j[A]),V=g?x[A]/2-N-z-P-T:L-z-P-T,W=g?-x[A]/2+N+z+R+T:C+z+R+T,H=e.elements.arrow&&Vn(e.elements.arrow),Y=H?"y"===w?H.clientTop||0:H.clientLeft||0:0,$=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,q=_[w]+V-$-Y,K=_[w]+W-$,Q=wr(d?Math.min(D,q):D,M,d?Math.max(B,K):B);_[w]=Q,I[w]=Q-M}if(u){var G="x"===w?Wn:$n,X="x"===w?Hn:Yn,J=_[k],Z=wr(J+v[G],J,J-v[X]);_[k]=Z,I[k]=Z-J}e.modifiersData[r]=I}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=n.elements.arrow,a=n.modifiersData.popperOffsets,o=rr(n.placement),u=ar(o),s=[$n,Yn].indexOf(o)>=0?"height":"width";if(i&&a){var c=n.modifiersData[r+"#persistent"].padding,l=jn(i),f="y"===u?Wn:$n,h="y"===u?Hn:Yn,d=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],p=a[u]-n.rects.reference[u],y=Vn(i),v=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,b=d/2-p/2,m=c[f],g=v-l[s]-c[h],w=v/2-l[s]/2+b,k=wr(m,w,g),_=u;n.modifiersData[r]=((e={})[_]=k,e.centerOffset=k-w,e)}},effect:function(t){var e=t.state,n=t.options,r=t.name,i=n.element,a=void 0===i?"[data-popper-arrow]":i,o=n.padding,u=void 0===o?0:o;null!=a&&("string"!==typeof a||(a=e.elements.popper.querySelector(a)))&&dr(e.elements.popper,a)&&(e.elements.arrow=a,e.modifiersData[r+"#persistent"]={padding:br("number"!==typeof u?u:mr(u,qn))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=gr(e,{elementContext:"reference"}),u=gr(e,{altBoundary:!0}),s=kr(o,r),c=kr(u,i,a),l=_r(s),f=_r(c);e.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Sr={passive:!0,capture:!0};function Tr(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function Ir(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function Er(t,e){return"function"===typeof t?t.apply(void 0,e):t}function Or(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function Ar(t){return[].concat(t)}function Mr(t,e){-1===t.indexOf(e)&&t.push(e)}function Dr(t){return t.split("-")[0]}function Br(t){return[].slice.call(t)}function Nr(){return document.createElement("div")}function Lr(t){return["Element","Fragment"].some((function(e){return Ir(t,e)}))}function Cr(t){return Ir(t,"MouseEvent")}function Fr(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function jr(t){return Lr(t)?[t]:function(t){return Ir(t,"NodeList")}(t)?Br(t):Array.isArray(t)?t:Br(document.querySelectorAll(t))}function Ur(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Pr(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Rr(t){var e=Ar(t)[0];return e&&e.ownerDocument||document}function zr(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}var Vr={isTouch:!1},Wr=0;function Hr(){Vr.isTouch||(Vr.isTouch=!0,window.performance&&document.addEventListener("mousemove",Yr))}function Yr(){var t=performance.now();t-Wr<20&&(Vr.isTouch=!1,document.removeEventListener("mousemove",Yr)),Wr=t}function $r(){var t=document.activeElement;if(Fr(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var qr="undefined"!==typeof window&&"undefined"!==typeof document?navigator.userAgent:"",Kr=/MSIE |Trident\//.test(qr);var Qr={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Gr=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Qr,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Xr=Object.keys(Gr);function Jr(t){var e=(t.plugins||[]).reduce((function(e,n){var r=n.name,i=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:i),e}),{});return Object.assign({},t,{},e)}function Zr(t,e){var n=Object.assign({},e,{content:Er(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Jr(Object.assign({},Gr,{plugins:e}))):Xr).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(i){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},Gr.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function ti(t,e){t.innerHTML=e}function ei(t){var e=Nr();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",Lr(t)?e.appendChild(t):ti(e,t)),e}function ni(t,e){Lr(e.content)?(ti(t,""),t.appendChild(e.content)):"function"!==typeof e.content&&(e.allowHTML?ti(t,e.content):t.textContent=e.content)}function ri(t){var e=t.firstElementChild,n=Br(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function ii(t){var e=Nr(),n=Nr();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Nr();function i(n,r){var i=ri(e),a=i.box,o=i.content,u=i.arrow;r.theme?a.setAttribute("data-theme",r.theme):a.removeAttribute("data-theme"),"string"===typeof r.animation?a.setAttribute("data-animation",r.animation):a.removeAttribute("data-animation"),r.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?a.setAttribute("role",r.role):a.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||ni(o,t.props),r.arrow?u?n.arrow!==r.arrow&&(a.removeChild(u),a.appendChild(ei(r.arrow))):a.appendChild(ei(r.arrow)):u&&a.removeChild(u)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),ni(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,onUpdate:i}}ii.$$tippy=!0;var ai=1,oi=[],ui=[];function si(t,e){var n,r,i,a,o,u,s,c,l,f=Zr(t,Object.assign({},Gr,{},Jr((n=e,Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{}))))),h=!1,d=!1,p=!1,y=!1,v=[],b=Or(K,f.interactiveDebounce),m=ai++,g=(l=f.plugins).filter((function(t,e){return l.indexOf(t)===e})),w={id:m,reference:t,popper:Nr(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)},setProps:function(e){0;if(w.state.isDestroyed)return;L("onBeforeUpdate",[w,e]),$();var n=w.props,r=Zr(t,Object.assign({},w.props,{},e,{ignoreAttributes:!0}));w.props=r,Y(),n.interactiveDebounce!==r.interactiveDebounce&&(j(),b=Or(K,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Ar(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");F(),N(),x&&x(n,r);w.popperInstance&&(J(),tt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));L("onAfterUpdate",[w,e])},setContent:function(t){w.setProps({content:t})},show:function(){0;var t=w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,r=Vr.isTouch&&!w.props.touch,i=Tr(w.props.duration,0,Gr.duration);if(t||e||n||r)return;if(A().hasAttribute("disabled"))return;if(L("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,O()&&(_.style.visibility="visible");N(),z(),w.state.isMounted||(_.style.transition="none");if(O()){var a=D(),o=a.box,u=a.content;Ur([o,u],0)}s=function(){if(w.state.isVisible&&!y){if(y=!0,_.offsetHeight,_.style.transition=w.props.moveTransition,O()&&w.props.animation){var t=D(),e=t.box,n=t.content;Ur([e,n],i),Pr([e,n],"visible")}C(),F(),Mr(ui,w),w.state.isMounted=!0,L("onMount",[w]),w.props.animation&&O()&&function(t,e){W(t,e)}(i,(function(){w.state.isShown=!0,L("onShown",[w])}))}},function(){var t,e=w.props.appendTo,n=A();t=w.props.interactive&&e===Gr.appendTo||"parent"===e?n.parentNode:Er(e,[n]);t.contains(_)||t.appendChild(_);J(),!1}()},hide:function(){0;var t=!w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,r=Tr(w.props.duration,1,Gr.duration);if(t||e||n)return;if(L("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,y=!1,h=!1,O()&&(_.style.visibility="hidden");if(j(),V(),N(),O()){var i=D(),a=i.box,o=i.content;w.props.animation&&(Ur([a,o],r),Pr([a,o],"hidden"))}C(),F(),w.props.animation?O()&&function(t,e){W(t,(function(){!w.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&e()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(t){0;M().addEventListener("mousemove",b),Mr(oi,b),b(t)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){0;w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Z(),tt().forEach((function(t){t._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);ui=ui.filter((function(t){return t!==w})),w.state.isMounted=!1,L("onHidden",[w])},destroy:function(){0;if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),$(),delete t._tippy,w.state.isDestroyed=!0,L("onDestroy",[w])}};if(!f.render)return w;var k=f.render(w),_=k.popper,x=k.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+w.id,w.popper=_,t._tippy=w,_._tippy=w;var S=g.map((function(t){return t.fn(w)})),T=t.hasAttribute("aria-expanded");return Y(),F(),N(),L("onCreate",[w]),f.showOnCreate&&et(),_.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(t){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(M().addEventListener("mousemove",b),b(t))})),w;function I(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function E(){return"hold"===I()[0]}function O(){var t;return!!(null==(t=w.props.render)?void 0:t.$$tippy)}function A(){return c||t}function M(){var t=A().parentNode;return t?Rr(t):document}function D(){return ri(_)}function B(t){return w.state.isMounted&&!w.state.isVisible||Vr.isTouch||o&&"focus"===o.type?0:Tr(w.props.delay,t?0:1,Gr.delay)}function N(){_.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",_.style.zIndex=""+w.props.zIndex}function L(t,e,n){var r;(void 0===n&&(n=!0),S.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(r=w.props)[t].apply(r,e)}function C(){var e=w.props.aria;if(e.content){var n="aria-"+e.content,r=_.id;Ar(w.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(w.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}}))}}function F(){!T&&w.props.aria.expanded&&Ar(w.props.triggerTarget||t).forEach((function(t){w.props.interactive?t.setAttribute("aria-expanded",w.state.isVisible&&t===A()?"true":"false"):t.removeAttribute("aria-expanded")}))}function j(){M().removeEventListener("mousemove",b),oi=oi.filter((function(t){return t!==b}))}function U(t){if((!Vr.isTouch||!p&&"mousedown"!==t.type)&&(!w.props.interactive||!_.contains(t.target))){if(A().contains(t.target)){if(Vr.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout((function(){d=!1})),w.state.isMounted||V())}}function P(){p=!0}function R(){p=!1}function z(){var t=M();t.addEventListener("mousedown",U,!0),t.addEventListener("touchend",U,Sr),t.addEventListener("touchstart",R,Sr),t.addEventListener("touchmove",P,Sr)}function V(){var t=M();t.removeEventListener("mousedown",U,!0),t.removeEventListener("touchend",U,Sr),t.removeEventListener("touchstart",R,Sr),t.removeEventListener("touchmove",P,Sr)}function W(t,e){var n=D().box;function r(t){t.target===n&&(zr(n,"remove",r),e())}if(0===t)return e();zr(n,"remove",u),zr(n,"add",r),u=r}function H(e,n,r){void 0===r&&(r=!1),Ar(w.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),v.push({node:t,eventType:e,handler:n,options:r})}))}function Y(){var t;E()&&(H("touchstart",q,{passive:!0}),H("touchend",Q,{passive:!0})),(t=w.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(H(t,q),t){case"mouseenter":H("mouseleave",Q);break;case"focus":H(Kr?"focusout":"blur",G);break;case"focusin":H("focusout",G)}}))}function $(){v.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),v=[]}function q(t){var e,n=!1;if(w.state.isEnabled&&!X(t)&&!d){var r="focus"===(null==(e=o)?void 0:e.type);o=t,c=t.currentTarget,F(),!w.state.isVisible&&Cr(t)&&oi.forEach((function(e){return e(t)})),"click"===t.type&&(w.props.trigger.indexOf("mouseenter")<0||h)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:et(t),"click"===t.type&&(h=!n),n&&!r&&nt(t)}}function K(t){var e=t.target,n=A().contains(e)||_.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,i=t.popperState,a=t.props.interactiveBorder,o=Dr(i.placement),u=i.modifiersData.offset;if(!u)return!0;var s="bottom"===o?u.top.y:0,c="top"===o?u.bottom.y:0,l="right"===o?u.left.x:0,f="left"===o?u.right.x:0,h=e.top-r+s>a,d=r-e.bottom-c>a,p=e.left-n+l>a,y=n-e.right-f>a;return h||d||p||y}))}(tt().concat(_).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),t)&&(j(),nt(t))}function Q(t){X(t)||w.props.trigger.indexOf("click")>=0&&h||(w.props.interactive?w.hideWithInteractivity(t):nt(t))}function G(t){w.props.trigger.indexOf("focusin")<0&&t.target!==A()||w.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||nt(t)}function X(t){return!!Vr.isTouch&&E()!==t.type.indexOf("touch")>=0}function J(){Z();var e=w.props,n=e.popperOptions,r=e.placement,i=e.offset,a=e.getReferenceClientRect,o=e.moveTransition,u=O()?ri(_).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||A()}:t,l=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(O()){var n=D().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];O()&&u&&l.push({name:"arrow",options:{element:u,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),w.popperInstance=xr(c,_,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:l}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function tt(){return Br(_.querySelectorAll("[data-tippy-root]"))}function et(t){w.clearDelayTimeouts(),t&&L("onTrigger",[w,t]),z();var e=B(!0),n=I(),i=n[0],a=n[1];Vr.isTouch&&"hold"===i&&a&&(e=a),e?r=setTimeout((function(){w.show()}),e):w.show()}function nt(t){if(w.clearDelayTimeouts(),L("onUntrigger",[w,t]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&h)){var e=B(!1);e?i=setTimeout((function(){w.state.isVisible&&w.hide()}),e):a=requestAnimationFrame((function(){w.hide()}))}}else V()}}function ci(t,e){void 0===e&&(e={});var n=Gr.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",Hr,Sr),window.addEventListener("blur",$r);var r=Object.assign({},e,{plugins:n}),i=jr(t).reduce((function(t,e){var n=e&&si(e,r);return n&&t.push(n),t}),[]);return Lr(t)?i[0]:i}ci.defaultProps=Gr,ci.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Gr[e]=t[e]}))},ci.currentInput=Vr;ci.setDefaultProps({render:ii});var li=ci,fi=Math.sqrt(50),hi=Math.sqrt(10),di=Math.sqrt(2),pi=function(t,e,n){var r,i,a,o,u=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=yi(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u<i;)a[u]=(t+u)*o;else for(o=-o,t=Math.ceil(t*o),e=Math.floor(e*o),a=new Array(i=Math.ceil(e-t+1));++u<i;)a[u]=(t+u)/o;return r&&a.reverse(),a};function yi(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=fi?10:a>=hi?5:a>=di?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=fi?10:a>=hi?5:a>=di?2:1)}function vi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var bi=function(t){return(t=vi(Math.abs(t)))?t[1]:NaN},mi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gi(t){if(!(e=mi.exec(t)))throw new Error("invalid format: "+t);var e;return new wi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function wi(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}gi.prototype=wi.prototype,wi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ki,_i,xi,Si,Ti=function(t,e){var n=vi(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Ii={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ti(100*t,e)},r:Ti,s:function(t,e){var n=vi(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(ki=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+vi(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ei=function(t){return t},Oi=Array.prototype.map,Ai=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];_i=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Ei:(e=Oi.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Ei:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Oi.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=gi(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,y=t.comma,v=t.precision,b=t.trim,m=t.type;"n"===m?(y=!0,m="g"):Ii[m]||(void 0===v&&(v=12),b=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var g="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?a:/[%p]/.test(m)?s:"",k=Ii[m],_=/[defgprs%]/.test(m);function x(t){var i,a,s,h=g,x=w;if("c"===m)x=k(t)+x,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:k(Math.abs(t),v),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==f&&(S=!1),h=(S?"("===f?f:c:"-"===f||"("===f?"":f)+h,x=("s"===m?Ai[8+ki/3]:"")+x+(S&&"("===f?")":""),_)for(i=-1,a=t.length;++i<a;)if(48>(s=t.charCodeAt(i))||s>57){x=(46===s?o+t.slice(i+1):t.slice(i))+x,t=t.slice(0,i);break}}y&&!d&&(t=r(t,1/0));var T=h.length+t.length+x.length,I=T<p?new Array(p-T+1).join(e):"";switch(y&&d&&(t=r(I+t,I.length?p-x.length:1/0),I=""),n){case"<":t=h+t+x+I;break;case"=":t=h+I+t+x;break;case"^":t=I.slice(0,T=I.length>>1)+h+t+x+I.slice(T);break;default:t=I+h+t+x}return u(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),x.toString=function(){return t+""},x}return{format:f,formatPrefix:function(t,e){var n=f(((t=gi(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(bi(e)/3))),i=Math.pow(10,-r),a=Ai[8+r/3];return function(t){return n(i*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),xi=_i.format,Si=_i.formatPrefix;var Mi=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Di=function(t){var e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var a=r+i>>>1;n(t[a],e)<0?r=a+1:i=a}return r}return 1===t.length&&(e=function(e,n){return t(e)-n},n=function(t){return function(e,n){return Mi(t(e),n)}}(t)),{left:r,center:function(t,n,i,a){null==i&&(i=0),null==a&&(a=t.length);var o=r(t,n,i,a-1);return o>i&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var a=r+i>>>1;n(t[a],e)>0?i=a:r=a+1}return r}}};n(0);var Bi=Di(Mi),Ni=Bi.right,Li=(Bi.left,Di((function(t){return null===t?NaN:+t})).center,Ni),Ci=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Fi(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ji(){}var Ui="\\s*([+-]?\\d+)\\s*",Pi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ri="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zi=/^#([0-9a-f]{3,8})$/,Vi=new RegExp("^rgb\\("+[Ui,Ui,Ui]+"\\)$"),Wi=new RegExp("^rgb\\("+[Ri,Ri,Ri]+"\\)$"),Hi=new RegExp("^rgba\\("+[Ui,Ui,Ui,Pi]+"\\)$"),Yi=new RegExp("^rgba\\("+[Ri,Ri,Ri,Pi]+"\\)$"),$i=new RegExp("^hsl\\("+[Pi,Ri,Ri]+"\\)$"),qi=new RegExp("^hsla\\("+[Pi,Ri,Ri,Pi]+"\\)$"),Ki={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 Qi(){return this.rgb().formatHex()}function Gi(){return this.rgb().formatRgb()}function Xi(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=zi.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ji(e):3===n?new na(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Zi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Zi(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=Vi.exec(t))?new na(e[1],e[2],e[3],1):(e=Wi.exec(t))?new na(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Hi.exec(t))?Zi(e[1],e[2],e[3],e[4]):(e=Yi.exec(t))?Zi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=$i.exec(t))?oa(e[1],e[2]/100,e[3]/100,1):(e=qi.exec(t))?oa(e[1],e[2]/100,e[3]/100,e[4]):Ki.hasOwnProperty(t)?Ji(Ki[t]):"transparent"===t?new na(NaN,NaN,NaN,0):null}function Ji(t){return new na(t>>16&255,t>>8&255,255&t,1)}function Zi(t,e,n,r){return r<=0&&(t=e=n=NaN),new na(t,e,n,r)}function ta(t){return t instanceof ji||(t=Xi(t)),t?new na((t=t.rgb()).r,t.g,t.b,t.opacity):new na}function ea(t,e,n,r){return 1===arguments.length?ta(t):new na(t,e,n,null==r?1:r)}function na(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ra(){return"#"+aa(this.r)+aa(this.g)+aa(this.b)}function ia(){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 aa(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function oa(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new sa(t,e,n,r)}function ua(t){if(t instanceof sa)return new sa(t.h,t.s,t.l,t.opacity);if(t instanceof ji||(t=Xi(t)),!t)return new sa;if(t instanceof sa)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,s=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new sa(o,u,s,t.opacity)}function sa(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ca(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 la(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Ci(ji,Xi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Qi,formatHex:Qi,formatHsl:function(){return ua(this).formatHsl()},formatRgb:Gi,toString:Gi}),Ci(na,ea,Fi(ji,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new na(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new na(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:ra,formatHex:ra,formatRgb:ia,toString:ia})),Ci(sa,(function(t,e,n,r){return 1===arguments.length?ua(t):new sa(t,e,n,null==r?1:r)}),Fi(ji,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new sa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new sa(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 na(ca(t>=240?t-240:t+120,i,r),ca(t,i,r),ca(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 fa=function(t){return function(){return t}};function ha(t,e){return function(n){return t+n*e}}function da(t){return 1===(t=+t)?pa: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):fa(isNaN(e)?n:e)}}function pa(t,e){var n=e-t;return n?ha(t,n):fa(isNaN(t)?e:t)}var ya=function t(e){var n=da(e);function r(t,e){var r=n((t=ea(t)).r,(e=ea(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=pa(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function va(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=ea(e[n]),a[n]=r.r||0,o[n]=r.g||0,u[n]=r.b||0;return a=t(a),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=u(t),r+""}}}va((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],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r<e-1?t[r+2]:2*a-i;return la((n-r/e)*e,o,i,a,u)}})),va((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],a=t[r%e],o=t[(r+1)%e],u=t[(r+2)%e];return la((n-r/e)*e,i,a,o,u)}}));var ba=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}};function ma(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function ga(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=Ia(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}var wa=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},ka=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},_a=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=Ia(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},xa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sa=new RegExp(xa.source,"g");var Ta=function(t,e){var n,r,i,a=xa.lastIndex=Sa.lastIndex=0,o=-1,u=[],s=[];for(t+="",e+="";(n=xa.exec(t))&&(r=Sa.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:ka(n,r)})),a=Sa.lastIndex;return a<e.length&&(i=e.slice(a),u[o]?u[o]+=i:u[++o]=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("")})},Ia=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?fa(e):("number"===r?ka:"string"===r?(n=Xi(e))?(e=n,ya):Ta:e instanceof Xi?ya:e instanceof Date?wa:ma(e)?ba:Array.isArray(e)?ga:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?_a:ka)(t,e)},Ea=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function Oa(t){return+t}var Aa=[0,1];function Ma(t){return t}function Da(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Ba(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=Da(i,r),a=n(o,a)):(r=Da(r,i),a=n(a,o)),function(t){return a(r(t))}}function Na(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Da(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=Li(t,e,1,r)-1;return a[n](i[n](e))}}function La(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ca(){var t,e,n,r,i,a,o=Aa,u=Aa,s=Ia,c=Ma;function l(){var t=Math.min(o.length,u.length);return c!==Ma&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(o[0],o[t-1])),r=t>2?Na:Ba,i=a=null,f}function f(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),u,s)))(t(c(e)))}return f.invert=function(n){return c(e((a||(a=r(u,o.map(t),ka)))(n)))},f.domain=function(t){return arguments.length?(o=Array.from(t,Oa),l()):o.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=Ea,l()},f.clamp=function(t){return arguments.length?(c=!!t||Ma,l()):c!==Ma},f.interpolate=function(t){return arguments.length?(s=t,l()):s},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function Fa(){return Ca()(Ma,Ma)}function ja(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Ua(t){return Math.log(t)}function Pa(t){return Math.exp(t)}function Ra(t){return-Math.log(-t)}function za(t){return-Math.exp(-t)}function Va(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Wa(t){return function(e){return-t(-e)}}function Ha(t){var e,n,r=t(Ua,Pa),i=r.domain,a=10;function o(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),n=function(t){return 10===t?Va:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),i()[0]<0?(e=Wa(e),n=Wa(n),t(Ra,za)):t(Ua,Pa),r}return r.base=function(t){return arguments.length?(a=+t,o()):a},r.domain=function(t){return arguments.length?(i(t),o()):i()},r.ticks=function(t){var r,o=i(),u=o[0],s=o[o.length-1];(r=s<u)&&(h=u,u=s,s=h);var c,l,f,h=e(u),d=e(s),p=null==t?10:+t,y=[];if(!(a%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(l=1,c=n(h);l<a;++l)if(!((f=c*l)<u)){if(f>s)break;y.push(f)}}else for(;h<=d;++h)for(l=a-1,c=n(h);l>=1;--l)if(!((f=c*l)<u)){if(f>s)break;y.push(f)}2*y.length<p&&(y=pi(u,s,p))}else y=pi(h,d,Math.min(d-h,p)).map(n);return r?y.reverse():y},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!==typeof i&&(i=xi(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a<a-.5&&(r*=a),r<=o?i(t):""}},r.nice=function(){return i(function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Ya(){var t=Ha(Ca()).domain([1,10]);return t.copy=function(){return La(t,Ya()).base(t.base())},ja.apply(t,arguments),t}function $a(t,e,n,r){var i,a=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=fi?i*=10:a>=hi?i*=5:a>=di&&(i*=2),e<t?-i:i}(t,e,n);switch((r=gi(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(bi(e)/3)))-bi(Math.abs(t)))}(a,o))||(r.precision=i),Si(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,bi(e)-bi(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-bi(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return xi(r)}function qa(t){var e=t.domain;return t.ticks=function(t){var n=e();return pi(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return $a(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,u=a.length-1,s=a[o],c=a[u],l=10;for(c<s&&(i=s,s=c,c=i,i=o,o=u,u=i);l-- >0;){if((i=yi(s,c,n))===r)return a[o]=s,a[u]=c,e(a);if(i>0)s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Ka(){var t=Fa();return t.copy=function(){return La(t,Ka())},ja.apply(t,arguments),qa(t)}function Qa(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ga(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Xa(t){return t<0?-t*t:t*t}function Ja(t){var e=t(Ma,Ma),n=1;function r(){return 1===n?t(Ma,Ma):.5===n?t(Ga,Xa):t(Qa(n),Qa(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},qa(e)}function Za(){var t=Ja(Ca());return t.copy=function(){return La(t,Za()).exponent(t.exponent())},ja.apply(t,arguments),t}function to(){return Za.apply(null,arguments).exponent(.5)}var eo=Symbol("implicit");var no=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function ro(){return(ro=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)}var io=Math.PI/180;function ao(t){return t.text}function oo(){return"serif"}function uo(){return"normal"}function so(t){return Math.sqrt(t.value)}function co(){return 30*(~~(6*Math.random())-3)}function lo(){return 1}function fo(t,e,n,r){if(!e.sprite){var i=t.context,a=t.ratio;i.clearRect(0,0,2048/a,2048/a);var o=0,u=0,s=0,c=n.length;for(--r;++r<c;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/a)+"px "+e.font;var l=i.measureText(e.text+"m").width*a,f=e.size<<1;if(e.rotate){var h=Math.sin(e.rotate*io),d=Math.cos(e.rotate*io),p=l*d,y=l*h,v=f*d,b=f*h;l=Math.max(Math.abs(p+b),Math.abs(p-b))+31>>5<<5,f=~~Math.max(Math.abs(y+v),Math.abs(y-v))}else l=l+31>>5<<5;if(f>s&&(s=f),o+l>=2048&&(o=0,u+=s,s=0),u+f>=2048)break;i.translate((o+(l>>1))/a,(u+(f>>1))/a),e.rotate&&i.rotate(e.rotate*io),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=l,e.height=f,e.xoff=o,e.yoff=u,e.x1=l>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=l}for(var m=i.getImageData(0,0,2048/a,2048/a).data,g=[];--r>=0;)if((e=n[r]).hasText){for(var w=(l=e.width)>>5,k=(f=e.y1-e.y0,0);k<f*w;k++)g[k]=0;if(null==(o=e.xoff))return;u=e.yoff;for(var _=0,x=-1,S=0;S<f;S++){for(k=0;k<l;k++){var T=m[2048*(u+S)+(o+k)<<2]?1<<31-k%32:0;g[w*S+(k>>5)]|=T,_|=T}_?x=S:(e.y0++,f--,S--,u++)}e.y1=e.y0+x,e.sprite=g.slice(0,(e.y1-e.y0)*w)}}}function ho(t,e,n){for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),u=127&o,s=32-u,c=t.y1-t.y0,l=(t.y+t.y0)*(n>>=5)+(o>>5),f=0;f<c;f++){r=0;for(var h=0;h<=a;h++)if((r<<s|(h<a?(r=i[f*a+h])>>>u:0))&e[l+h])return!0;l+=n}return!1}function po(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function yo(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function vo(){return document.createElement("canvas")}function bo(t){return"function"==typeof t?t:function(){return t}}var mo={archimedean:yo,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};function go(t,e){return t[Math.floor(e()*t.length)]}function wo(t){return t.size+"px"}function ko(t){return t.text}function _o(t){return"translate("+t.x+", "+t.y+")"+("number"==typeof t.rotate?"rotate("+t.rotate+")":"")}function xo(t){var e,n=t.callbacks,r=t.maxWords,i=t.options,a=t.selection,o=t.size,u=i.deterministic,c=i.enableOptimizations,l=i.fontFamily,f=i.fontStyle,h=i.fontSizes,d=i.fontWeight,p=i.padding,y=i.randomSeed,v=i.rotations,b=i.rotationAngles,m=i.spiral,g=i.scale,w=t.words.concat().sort((function(t,e){return function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}(t.value,e.value)})).slice(0,r),k=Tn()(u?y||"deterministic":null);(e=c?function(){var t=[256,256],e=ao,n=oo,r=so,i=uo,a=uo,o=co,u=lo,s=yo,c=[],l=1/0,f=Object(kt.a)("word","end"),h=Math.random,d={},p=vo,y=!1;function v(e,n,r){for(var i,a,o,u,c,l=n.x,f=n.y,d=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=s(t),y=h()<.5?1:-1,v=-y;(i=p(v+=y))&&(a=~~i[0],o=~~i[1],!(Math.min(Math.abs(a),Math.abs(o))>=d));)if(n.x=l+a,n.y=f+o,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&ho(n,e,t[0])||r&&!((u=n).x+u.x1>(c=r)[0].x&&u.x+u.x0<c[1].x&&u.y+u.y1>c[0].y&&u.y+u.y0<c[1].y))){for(var b,m=n.sprite,g=n.width>>5,w=t[0]>>5,k=n.x-(g<<4),_=127&k,x=32-_,S=n.y1-n.y0,T=(n.y+n.y0)*w+(k>>5),I=0;I<S;I++){b=0;for(var E=0;E<=g;E++)e[T+E]|=b<<x|(E<g?(b=m[I*g+E])>>>_:0);T+=w}return delete n.sprite,!0}return!1}return d.canvas=function(t){return arguments.length?(p=bo(t),d):p},d.start=function(){var s=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(p()),l=new Uint32Array((t[0]>>5)*t[1]),b=null,m=[],g=c.map((function(t,s){return t.text=e.call(this,t,s),t.font=n.call(this,t,s),t.style=i.call(this,t,s),t.weight=a.call(this,t,s),t.rotate=o.call(this,t,s),t.size=~~r.call(this,t,s),t.padding=u.call(this,t,s),t})).sort((function(t,e){return e.size-t.size}));return setTimeout((function(){return function e(n){var r=50*n,i=Math.min(50*(n+1),c.length);!function(e,n){for(var r=e;r<n;r+=1){var i=g[r];i.x=t[0]*(h()+.5)>>1,i.y=t[1]*(h()+.5)>>1,fo(s,i,g,r),i.hasText&&v(l,i,b)&&(m.push(i),f.call("word",d,i),b?po(b,i):b=[{x:i.x+i.x0,y:i.y+i.y0},{x:i.x+i.x1,y:i.y+i.y1}],i.x-=t[0]>>1,i.y-=t[1]>>1)}}(r,i),y||(i<c.length?setTimeout((function(){return e(n+1)}),0):(d.stop(),f.call("end",d,m,b)))}(0)}),0),d},d.revive=function(){return y=!1,d},d.stop=function(){return y=!0,d},d.timeInterval=function(t){return arguments.length?(l=null==t?1/0:t,d):l},d.words=function(t){return arguments.length?(c=t,d):c},d.size=function(e){return arguments.length?(t=[+e[0],+e[1]],d):t},d.font=function(t){return arguments.length?(n=bo(t),d):n},d.fontStyle=function(t){return arguments.length?(i=bo(t),d):i},d.fontWeight=function(t){return arguments.length?(a=bo(t),d):a},d.rotate=function(t){return arguments.length?(o=bo(t),d):o},d.text=function(t){return arguments.length?(e=bo(t),d):e},d.spiral=function(t){return arguments.length?(s=mo[t]||t,d):s},d.fontSize=function(t){return arguments.length?(r=bo(t),d):r},d.padding=function(t){return arguments.length?(u=bo(t),d):u},d.random=function(t){return arguments.length?(h=t,d):h},d.on=function(){var t=f.on.apply(f,arguments);return t===f?d:t},d}():kn()()).size(o).padding(p).words(xn()(w)).rotate((function(){return void 0===v?30*(~~(6*k())-3):function(t,e,n){if(t<1)return 0;var r=[];if(1===t)r=[e[0]];else{r=[].concat(e);for(var i=(e[1]-e[0])/(t-1),a=e[0]+i;a<e[1];)r.push(a),a+=i}return go(r,n)}(v,b,k)})).spiral(m).random(k).text(ko).font(l).fontStyle(f).fontWeight(d),function t(r,o){void 0===o&&(o=1),c&&e.revive(),e.fontSize((function(t){return function(t,e,n){var r,i=function(t,e){var n;if(void 0===e){var r,i=Object(gn.a)(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}}catch(l){i.e(l)}finally{i.f()}}else{var o,u=-1,s=Object(gn.a)(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;null!=(c=e(c,++u,t))&&(n>c||void 0===n&&c>=c)&&(n=c)}}catch(l){s.e(l)}finally{s.f()}}return n}(t,(function(t){return Number(t.value)})),a=function(t,e){var n;if(void 0===e){var r,i=Object(gn.a)(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;null!=a&&(n<a||void 0===n&&a>=a)&&(n=a)}}catch(l){i.e(l)}finally{i.f()}}else{var o,u=-1,s=Object(gn.a)(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;null!=(c=e(c,++u,t))&&(n<c||void 0===n&&c>=c)&&(n=c)}}catch(l){s.e(l)}finally{s.f()}}return n}(t,(function(t){return Number(t.value)}));switch(n){case"log":r=Ya;break;case"sqrt":r=to;break;case"linear":default:r=Ka}return r().domain([i,a]).range(e)}(w,r,g)(t.value)})).on("end",(function(e){if(w.length!==e.length&&o<=10){10===o&&console.warn("Unable to layout "+(w.length-e.length)+" word(s) after "+o+" attempts.  Consider: (1) Increasing the container/component size. (2) Lowering the max font size. (3) Limiting the rotation angles.");var u=Math.max(.95*r[0],1);t([u,Math.max(.95*r[1],u)],o+1)}else!function(t){var e,n=t.callbacks,r=t.options,i=t.random,a=t.words,o=n.getWordColor,u=n.getWordTooltip,c=n.onWordClick,l=n.onWordMouseOver,f=n.onWordMouseOut,h=r.colors,d=r.enableTooltip,p=r.fontStyle,y=r.fontWeight,v=r.textAttributes,b=r.tooltipOptions,m=r.fontFamily,g=r.transitionDuration;function w(t){return o?o(t):go(h,i)}t.selection.selectAll("text").data(a).join((function(t){var n=t.append("text").on("click",(function(t){c&&c(t,s)})).on("mouseover",(function(t){d&&(e=li(s.target,ro({animation:"scale",arrow:!0,content:function(){return u(t)}},b))),l&&l(t,s)})).on("mouseout",(function(t){e&&e.destroy(),f&&f(t,s)})).attr("cursor",c?"pointer":"default").attr("fill",w).attr("font-family",m).attr("font-style",p).attr("font-weight",y).attr("text-anchor","middle").attr("transform","translate(0, 0) rotate(0)");"object"==typeof v&&Object.keys(v).forEach((function(t){n=n.attr(t,v[t])})),n=n.call((function(t){return t.transition().duration(g).attr("font-size",wo).attr("transform",_o).text(ko)}))}),(function(t){t.transition().duration(g).attr("fill",w).attr("font-family",m).attr("font-size",wo).attr("transform",_o).text(ko)}),(function(t){t.transition().duration(g).attr("fill-opacity",0).remove()}))}({callbacks:n,options:i,random:k,selection:a,words:e})})).start()}(h)}var So={getWordTooltip:function(t){return t.text+" ("+t.value+")"}},To={colors:function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}(20).map((function(t){return t.toString()})).map(function t(){var e=new Map,n=[],r=[],i=eo;function a(t){var a=t+"",o=e.get(a);if(!o){if(i!==eo)return i;e.set(a,o=n.push(t))}return r[(o-1)%r.length]}return a.domain=function(t){if(!arguments.length)return n.slice();n=[],e=new Map;var r,i=Object(gn.a)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,u=o+"";e.has(u)||e.set(u,n.push(o))}}catch(s){i.e(s)}finally{i.f()}return a},a.range=function(t){return arguments.length?(r=Array.from(t),a):r.slice()},a.unknown=function(t){return arguments.length?(i=t,a):i},a.copy=function(){return t(n,r).unknown(i)},ja.apply(a,arguments),a}(no)),deterministic:!1,enableOptimizations:!1,enableTooltip:!0,fontFamily:"times new roman",fontSizes:[4,32],fontStyle:"normal",fontWeight:"normal",padding:1,rotationAngles:[-90,90],scale:"sqrt",spiral:"rectangular",tooltipOptions:{},transitionDuration:600};function Io(t){var e=t.callbacks,n=t.maxWords,r=void 0===n?100:n,u=t.minSize,s=t.options,c=t.size,l=t.words,f=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||(i[n]=t[n]);return i}(t,["callbacks","maxWords","minSize","options","size","words"]),h=ro({},So,e),d=ro({},To,s),p=function(t,e,n){var r=Object(a.useRef)(),i=Object(a.useState)(e),o=i[0],u=i[1],s=Object(a.useState)(null),c=s[0],l=s[1];return Object(a.useEffect)((function(){var i=r.current,a=gt(i).append("svg").style("display","block");"object"==typeof n&&Object.keys(n).forEach((function(t){a=a.attr(t,n[t])}));var o=a.append("g");function s(t,e){a.attr("height",e).attr("width",t),o.attr("transform","translate("+t/2+", "+e/2+")"),u([t,e])}l(o);var c=0,f=0;void 0===e?(c=i.parentElement.offsetWidth,f=i.parentElement.offsetHeight):(c=e[0],f=e[1]),s(c=Math.max(c,t[0]),f=Math.max(f,t[1]));var h=new wt.a((function(t){if(t&&0!==t.length&&void 0===e){var n=t[0].contentRect;s(n.width,n.height)}}));return h.observe(i),function(){h.unobserve(i),gt(i).selectAll("*").remove()}}),[e,t,n]),[r,c,o]}(u,c,s.svgAttributes),y=p[0],v=p[1],b=p[2],m=Object(a.useRef)(i()(xo,100));return Object(a.useEffect)((function(){v&&m.current({callbacks:h,maxWords:r,options:d,selection:v,size:b,words:l})}),[r,h,d,v,b,l]),o.a.createElement("div",ro({ref:y,style:{height:"100%",width:"100%"}},f))}Io.defaultProps={callbacks:So,maxWords:100,minSize:[300,300],options:To};e.a=Io},,,,,,,,function(t,e,n){"use strict";var r=n(19),i="function"===typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=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 m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function w(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||m}function k(){}function _(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||m}w.prototype.isReactComponent={},w.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")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},k.prototype=w.prototype;var x=_.prototype=new k;x.constructor=_,r(x,w.prototype),x.isPureReactComponent=!0;var S={current:null},T=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};function E(t,e,n){var r,i={},o=null,u=null;if(null!=e)for(r in void 0!==e.ref&&(u=e.ref),void 0!==e.key&&(o=""+e.key),e)T.call(e,r)&&!I.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:a,type:t,key:o,ref:u,props:i,_owner:S.current}}function O(t){return"object"===typeof t&&null!==t&&t.$$typeof===a}var A=/\/+/g,M=[];function D(t,e,n,r){if(M.length){var i=M.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 B(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>M.length&&M.push(t)}function N(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 a:case o:s=!0}}if(s)return r(i,e,""===n?"."+L(e,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=n+L(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+L(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 L(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 C(t,e){t.func.call(t.context,e,t.count++)}function F(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?j(t,r,n,(function(t){return t})):null!=t&&(O(t)&&(t=function(t,e){return{$$typeof:a,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 j(t,e,n,r,i){var a="";null!=n&&(a=(""+n).replace(A,"$&/")+"/"),N(t,F,e=D(e,a,r,i)),B(e)}var U={current:null};function P(){var t=U.current;if(null===t)throw Error(b(321));return t}var R={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return j(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;N(t,C,e=D(null,null,e,n)),B(e)},count:function(t){return N(t,(function(){return null}),null)},toArray:function(t){var e=[];return j(t,e,null,(function(t){return t})),e},only:function(t){if(!O(t))throw Error(b(143));return t}},e.Component=w,e.Fragment=u,e.Profiler=c,e.PureComponent=_,e.StrictMode=s,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(b(267,t));var i=r({},t.props),o=t.key,u=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(u=e.ref,s=S.current),void 0!==e.key&&(o=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in e)T.call(e,l)&&!I.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:a,type:t.type,key:o,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=O,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 P().useCallback(t,e)},e.useContext=function(t,e){return P().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return P().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return P().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return P().useLayoutEffect(t,e)},e.useMemo=function(t,e){return P().useMemo(t,e)},e.useReducer=function(t,e,n){return P().useReducer(t,e,n)},e.useRef=function(t){return P().useRef(t)},e.useState=function(t){return P().useState(t)},e.version="16.14.0"},function(t,e,n){"use strict";var r=n(4),i=n(19),a=n(38);function o(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(o(227));function u(t,e,n,r,i,a,o,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,a,o,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,a,u,h,p){if(d.apply(this,arguments),s){if(!s)throw Error(o(198));var y=c;s=!1,c=null,l||(l=!0,f=y)}}(r,e,void 0,t),t.currentTarget=null}var m=null,g={};function w(){if(m)for(var t in g){var e=g[t],n=m.indexOf(t);if(!(-1<n))throw Error(o(96,t));if(!_[n]){if(!e.extractEvents)throw Error(o(97,t));for(var r in _[n]=e,n=e.eventTypes){var i=void 0,a=n[r],u=e,s=r;if(x.hasOwnProperty(s))throw Error(o(99,s));x[s]=a;var c=a.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&k(c[i],u,s);i=!0}else a.registrationName?(k(a.registrationName,u,s),i=!0):i=!1;if(!i)throw Error(o(98,r,t))}}}}function k(t,e,n){if(S[t])throw Error(o(100,t));S[t]=e,T[t]=e.eventTypes[n].dependencies}var _=[],x={},S={},T={};function I(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!g.hasOwnProperty(e)||g[e]!==r){if(g[e])throw Error(o(102,e));g[e]=r,n=!0}}n&&w()}var E=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),O=null,A=null,M=null;function D(t){if(t=y(t)){if("function"!==typeof O)throw Error(o(280));var e=t.stateNode;e&&(e=p(e),O(t.stateNode,t.type,e))}}function B(t){A?M?M.push(t):M=[t]:A=t}function N(){if(A){var t=A,e=M;if(M=A=null,D(t),e)for(t=0;t<e.length;t++)D(e[t])}}function L(t,e){return t(e)}function C(t,e,n,r,i){return t(e,n,r,i)}function F(){}var j=L,U=!1,P=!1;function R(){null===A&&null===M||(F(),N())}function z(t,e,n){if(P)return t(e,n);P=!0;try{return j(t,e,n)}finally{P=!1,R()}}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]*$/,W=Object.prototype.hasOwnProperty,H={},Y={};function $(t,e,n,r,i,a){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=a}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){q[t]=new $(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];q[e]=new $(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){q[t]=new $(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){q[t]=new $(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){q[t]=new $(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){q[t]=new $(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){q[t]=new $(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){q[t]=new $(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){q[t]=new $(t,5,!1,t.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Q(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(K,Q);q[e]=new $(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(K,Q);q[e]=new $(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(K,Q);q[e]=new $(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){q[t]=new $(t,1,!1,t.toLowerCase(),null,!1)})),q.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){q[t]=new $(t,1,!1,t.toLowerCase(),null,!0)}));var G=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(t,e,n,r){var i=q.hasOwnProperty(e)?q[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!!W.call(Y,t)||!W.call(H,t)&&(V.test(t)?Y[t]=!0:(H[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))))}G.hasOwnProperty("ReactCurrentDispatcher")||(G.ReactCurrentDispatcher={current:null}),G.hasOwnProperty("ReactCurrentBatchConfig")||(G.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,tt=Z?Symbol.for("react.element"):60103,et=Z?Symbol.for("react.portal"):60106,nt=Z?Symbol.for("react.fragment"):60107,rt=Z?Symbol.for("react.strict_mode"):60108,it=Z?Symbol.for("react.profiler"):60114,at=Z?Symbol.for("react.provider"):60109,ot=Z?Symbol.for("react.context"):60110,ut=Z?Symbol.for("react.concurrent_mode"):60111,st=Z?Symbol.for("react.forward_ref"):60112,ct=Z?Symbol.for("react.suspense"):60113,lt=Z?Symbol.for("react.suspense_list"):60120,ft=Z?Symbol.for("react.memo"):60115,ht=Z?Symbol.for("react.lazy"):60116,dt=Z?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 ot:return"Context.Consumer";case at: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,a=vt(t.type);n=null,r&&(n=vt(r.type)),r=a,a="",i?a=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+a}e+=n,t=t.return}while(t);return e}function mt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function gt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function wt(t){t._valueTracker||(t._valueTracker=function(t){var e=gt(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,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,a.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 kt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=gt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function _t(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=mt(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 St(t,e){null!=(e=e.checked)&&X(t,"checked",e,!1)}function Tt(t,e){St(t,e);var n=mt(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,mt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function It(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 Ot(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=""+mt(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 Mt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(o(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Dt(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:mt(n)}}function Bt(t,e){var n=mt(e.value),r=mt(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 Nt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Lt="http://www.w3.org/1999/xhtml",Ct="http://www.w3.org/2000/svg";function Ft(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 jt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Ft(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Ut,Pt=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!==Ct||"innerHTML"in t)t.innerHTML=e;else{for((Ut=Ut||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Rt(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")},Wt={},Ht={};function Yt(t){if(Wt[t])return Wt[t];if(!Vt[t])return t;var e,n=Vt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Ht)return Wt[t]=n[e];return t}E&&(Ht=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 $t=Yt("animationend"),qt=Yt("animationiteration"),Kt=Yt("animationstart"),Qt=Yt("transitionend"),Gt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xt=new("function"===typeof WeakMap?WeakMap:Map);function Jt(t){var e=Xt.get(t);return void 0===e&&(e=new Map,Xt.set(t,e)),e}function Zt(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(Zt(t)!==t)throw Error(o(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Zt(t)))throw Error(o(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return ee(i),t;if(a===r)return ee(i),e;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=a;break}if(s===r){u=!0,r=i,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=i;break}if(s===r){u=!0,r=a,n=i;break}s=s.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(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(o(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 ae=null;function oe(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&&(ae=re(ae,t)),t=ae,ae=null,t){if(ie(t,oe),ae)throw Error(o(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 a=t.nativeEvent,o=t.eventSystemFlags;0===n&&(o|=64);for(var u=null,s=0;s<_.length;s++){var c=_[s];c&&(c=c.extractEvents(r,e,a,i,o))&&(u=re(u,c))}ue(u)}}function pe(t,e,n){if(!n.has(t)){switch(t){case"scroll":Ke(e,"scroll",!0);break;case"focus":case"blur":Ke(e,"focus",!0),Ke(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ce(t)&&Ke(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Gt.indexOf(t)&&qe(t,e)}n.set(t,null)}}var ye,ve,be,me=!1,ge=[],we=null,ke=null,_e=null,xe=new Map,Se=new Map,Te=[],Ie="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 Oe(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":we=null;break;case"dragenter":case"dragleave":ke=null;break;case"mouseover":case"mouseout":_e=null;break;case"pointerover":case"pointerout":xe.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Se.delete(e.pointerId)}}function Me(t,e,n,r,i,a){return null===t||t.nativeEvent!==a?(t=Oe(e,n,r,i,a),null!==e&&(null!==(e=On(e))&&ve(e)),t):(t.eventSystemFlags|=r,t)}function De(t){var e=En(t.target);if(null!==e){var n=Zt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=te(n)))return t.blockedOn=e,void a.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 Be(t){if(null!==t.blockedOn)return!1;var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=On(e);return null!==n&&ve(n),t.blockedOn=e,!1}return!0}function Ne(t,e,n){Be(t)&&n.delete(e)}function Le(){for(me=!1;0<ge.length;){var t=ge[0];if(null!==t.blockedOn){null!==(t=On(t.blockedOn))&&ye(t);break}var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:ge.shift()}null!==we&&Be(we)&&(we=null),null!==ke&&Be(ke)&&(ke=null),null!==_e&&Be(_e)&&(_e=null),xe.forEach(Ne),Se.forEach(Ne)}function Ce(t,e){t.blockedOn===e&&(t.blockedOn=null,me||(me=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Le)))}function Fe(t){function e(e){return Ce(e,t)}if(0<ge.length){Ce(ge[0],t);for(var n=1;n<ge.length;n++){var r=ge[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==we&&Ce(we,t),null!==ke&&Ce(ke,t),null!==_e&&Ce(_e,t),xe.forEach(e),Se.forEach(e),n=0;n<Te.length;n++)(r=Te[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Te.length&&null===(n=Te[0]).blockedOn;)De(n),null===n.blockedOn&&Te.shift()}var je={},Ue=new Map,Pe=new Map,Re=["abort","abort",$t,"animationEnd",qt,"animationIteration",Kt,"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",Qt,"transitionEnd","waiting","waiting"];function ze(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],a="on"+(i[0].toUpperCase()+i.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:e},Pe.set(r,e),Ue.set(r,a),je[i]=a}}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(Re,2);for(var Ve="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),We=0;We<Ve.length;We++)Pe.set(Ve[We],0);var He=a.unstable_UserBlockingPriority,Ye=a.unstable_runWithPriority,$e=!0;function qe(t,e){Ke(e,t,!1)}function Ke(t,e,n){var r=Pe.get(e);switch(void 0===r?2:r){case 0:r=Qe.bind(null,e,1,t);break;case 1:r=Ge.bind(null,e,1,t);break;default:r=Xe.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Qe(t,e,n,r){U||F();var i=Xe,a=U;U=!0;try{C(i,t,e,n,r)}finally{(U=a)||R()}}function Ge(t,e,n,r){Ye(He,Xe.bind(null,t,e,n,r))}function Xe(t,e,n,r){if($e)if(0<ge.length&&-1<Ie.indexOf(t))t=Oe(null,t,e,n,r),ge.push(t);else{var i=Je(t,e,n,r);if(null===i)Ae(t,r);else if(-1<Ie.indexOf(t))t=Oe(i,t,e,n,r),ge.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return we=Me(we,t,e,n,r,i),!0;case"dragenter":return ke=Me(ke,t,e,n,r,i),!0;case"mouseover":return _e=Me(_e,t,e,n,r,i),!0;case"pointerover":var a=i.pointerId;return xe.set(a,Me(xe.get(a)||null,t,e,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Se.set(a,Me(Se.get(a)||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 Je(t,e,n,r){if(null!==(n=En(n=se(r)))){var i=Zt(n);if(null===i)n=null;else{var a=i.tag;if(13===a){if(null!==(n=te(i)))return n;n=null}else if(3===a){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 Ze={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||Ze.hasOwnProperty(t)&&Ze[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(Ze).forEach((function(t){tn.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ze[e]=Ze[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 an(t,e){if(e){if(rn[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(o(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(o(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(o(62,""))}}function on(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=Lt;function sn(t,e){var n=Jt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=T[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 mn(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 gn="function"===typeof setTimeout?setTimeout:void 0,wn="function"===typeof clearTimeout?clearTimeout:void 0;function kn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function _n(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),Sn="__reactInternalInstance$"+xn,Tn="__reactEventHandlers$"+xn,In="__reactContainere$"+xn;function En(t){var e=t[Sn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[In]||n[Sn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=_n(t);null!==t;){if(n=t[Sn])return n;t=_n(t)}return e}n=(t=n).parentNode}return null}function On(t){return!(t=t[Sn]||t[In])||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(o(33))}function Mn(t){return t[Tn]||null}function Dn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Bn(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(o(231,e,typeof n));return n}function Nn(t,e,n){(e=Bn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Ln(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Dn(e);for(e=n.length;0<e--;)Nn(n[e],"captured",t);for(e=0;e<n.length;e++)Nn(n[e],"bubbled",t)}}function Cn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=Bn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Fn(t){t&&t.dispatchConfig.registrationName&&Cn(t._targetInst,null,t)}function jn(t){ie(t,Ln)}var Un=null,Pn=null,Rn=null;function zn(){if(Rn)return Rn;var t,e,n=Pn,r=n.length,i="value"in Un?Un.value:Un.textContent,a=i.length;for(t=0;t<r&&n[t]===i[t];t++);var o=r-t;for(e=1;e<=o&&n[r-e]===i[a-e];e++);return Rn=i.slice(t,1<e?1-e:void 0)}function Vn(){return!0}function Wn(){return!1}function Hn(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:Wn,this.isPropagationStopped=Wn,this}function Yn(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 $n(t){if(!(t instanceof this))throw Error(o(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function qn(t){t.eventPool=[],t.getPooled=Yn,t.release=$n}i(Hn.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:Wn,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=Wn,this._dispatchInstances=this._dispatchListeners=null}}),Hn.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},Hn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var a=new e;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,qn(n),n},qn(Hn);var Kn=Hn.extend({data:null}),Qn=Hn.extend({data:null}),Gn=[9,13,27,32],Xn=E&&"CompositionEvent"in window,Jn=null;E&&"documentMode"in document&&(Jn=document.documentMode);var Zn=E&&"TextEvent"in window&&!Jn,tr=E&&(!Xn||Jn&&8<Jn&&11>=Jn),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!==Gn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ar(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var or=!1;var ur={eventTypes:nr,extractEvents:function(t,e,n,r){var i;if(Xn)t:{switch(t){case"compositionstart":var a=nr.compositionStart;break t;case"compositionend":a=nr.compositionEnd;break t;case"compositionupdate":a=nr.compositionUpdate;break t}a=void 0}else or?ir(t,n)&&(a=nr.compositionEnd):"keydown"===t&&229===n.keyCode&&(a=nr.compositionStart);return a?(tr&&"ko"!==n.locale&&(or||a!==nr.compositionStart?a===nr.compositionEnd&&or&&(i=zn()):(Pn="value"in(Un=r)?Un.value:Un.textContent,or=!0)),a=Kn.getPooled(a,e,n,r),i?a.data=i:null!==(i=ar(n))&&(a.data=i),jn(a),i=a):i=null,(t=Zn?function(t,e){switch(t){case"compositionend":return ar(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(or)return"compositionend"===t||!Xn&&ir(t,e)?(t=zn(),Rn=Pn=Un=null,or=!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=Qn.getPooled(nr.beforeInput,e,n,r)).data=t,jn(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=Hn.getPooled(lr.change,t,e,n)).type="change",B(n),jn(t),t}var hr=null,dr=null;function pr(t){ue(t)}function yr(t){if(kt(An(t)))return t}function vr(t,e){if("change"===t)return e}var br=!1;function mr(){hr&&(hr.detachEvent("onpropertychange",gr),dr=hr=null)}function gr(t){if("value"===t.propertyName&&yr(dr))if(t=fr(dr,t,se(t)),U)ue(t);else{U=!0;try{L(pr,t)}finally{U=!1,R()}}}function wr(t,e,n){"focus"===t?(mr(),dr=n,(hr=e).attachEvent("onpropertychange",gr)):"blur"===t&&mr()}function kr(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return yr(dr)}function _r(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 Sr={eventTypes:lr,_isInputEventSupported:br,extractEvents:function(t,e,n,r){var i=e?An(e):window,a=i.nodeName&&i.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===i.type)var o=vr;else if(cr(i))if(br)o=xr;else{o=kr;var u=wr}else(a=i.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=_r);if(o&&(o=o(t,e)))return fr(o,n,r);u&&u(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Et(i,"number",i.value)}},Tr=Hn.extend({view:null,detail:null}),Ir={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Er(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Ir[t])&&!!e[t]}function Or(){return Er}var Ar=0,Mr=0,Dr=!1,Br=!1,Nr=Tr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Or,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,Dr?"mousemove"===t.type?t.screenX-e:0:(Dr=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Mr;return Mr=t.screenY,Br?"mousemove"===t.type?t.screenY-e:0:(Br=!0,0)}}),Lr=Nr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Cr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Fr={eventTypes:Cr,extractEvents:function(t,e,n,r,i){var a="mouseover"===t||"pointerover"===t,o="mouseout"===t||"pointerout"===t;if(a&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!o&&!a)return null;(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,o)?(o=e,null!==(e=(e=n.relatedTarget||n.toElement)?En(e):null)&&(e!==Zt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):o=null;if(o===e)return null;if("mouseout"===t||"mouseover"===t)var u=Nr,s=Cr.mouseLeave,c=Cr.mouseEnter,l="mouse";else"pointerout"!==t&&"pointerover"!==t||(u=Lr,s=Cr.pointerLeave,c=Cr.pointerEnter,l="pointer");if(t=null==o?a:An(o),a=null==e?a:An(e),(s=u.getPooled(s,o,n,r)).type=l+"leave",s.target=t,s.relatedTarget=a,(n=u.getPooled(c,e,n,r)).type=l+"enter",n.target=a,n.relatedTarget=t,l=e,(r=o)&&l)t:{for(c=l,o=0,t=u=r;t;t=Dn(t))o++;for(t=0,e=c;e;e=Dn(e))t++;for(;0<o-t;)u=Dn(u),o--;for(;0<t-o;)c=Dn(c),t--;for(;o--;){if(u===c||u===c.alternate)break t;u=Dn(u),c=Dn(c)}u=null}else u=null;for(c=u,u=[];r&&r!==c&&(null===(o=r.alternate)||o!==c);)u.push(r),r=Dn(r);for(r=[];l&&l!==c&&(null===(o=l.alternate)||o!==c);)r.push(l),l=Dn(l);for(l=0;l<u.length;l++)Cn(u[l],"bubbled",s);for(l=r.length;0<l--;)Cn(r[l],"captured",n);return 0===(64&i)?[s]:[s,n]}};var jr="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},Ur=Object.prototype.hasOwnProperty;function Pr(t,e){if(jr(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(!Ur.call(e,n[r])||!jr(t[n[r]],e[n[r]]))return!1;return!0}var Rr=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,Wr=null,Hr=null,Yr=!1;function $r(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Yr||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},Hr&&Pr(Hr,n)?null:(Hr=n,(t=Hn.getPooled(zr.select,Wr,t,e)).type="select",t.target=Vr,jn(t),t))}var qr={eventTypes:zr,extractEvents:function(t,e,n,r,i,a){if(!(a=!(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Jt(i),a=T.onSelect;for(var o=0;o<a.length;o++)if(!i.has(a[o])){i=!1;break t}i=!0}a=!i}if(a)return null;switch(i=e?An(e):window,t){case"focus":(cr(i)||"true"===i.contentEditable)&&(Vr=i,Wr=e,Hr=null);break;case"blur":Hr=Wr=Vr=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,$r(n,r);case"selectionchange":if(Rr)break;case"keydown":case"keyup":return $r(n,r)}return null}},Kr=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qr=Hn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Gr=Tr.extend({relatedTarget:null});function Xr(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 Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={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=Tr.extend({key:function(t){if(t.key){var e=Jr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Xr(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Zr[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Or,charCode:function(t){return"keypress"===t.type?Xr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Xr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),ei=Nr.extend({dataTransfer:null}),ni=Tr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Or}),ri=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Nr.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}),ai={eventTypes:je,extractEvents:function(t,e,n,r){var i=Ue.get(t);if(!i)return null;switch(t){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":t=ti;break;case"blur":case"focus":t=Gr;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=Nr;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 $t:case qt:case Kt:t=Kr;break;case Qt:t=ri;break;case"scroll":t=Tr;break;case"wheel":t=ii;break;case"copy":case"cut":case"paste":t=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Lr;break;default:t=Hn}return jn(e=t.getPooled(i,e,n,r)),e}};if(m)throw Error(o(101));m=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),p=Mn,y=On,v=An,I({SimpleEventPlugin:ai,EnterLeaveEventPlugin:Fr,ChangeEventPlugin:Sr,SelectEventPlugin:qr,BeforeInputEventPlugin:ur});var oi=[],ui=-1;function si(t){0>ui||(t.current=oi[ui],oi[ui]=null,ui--)}function ci(t,e){ui++,oi[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,a={};for(i in n)a[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}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(o(168));ci(fi,e),ci(hi,n)}function mi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,vt(e)||"Unknown",a));return i({},n,{},r)}function gi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||li,di=fi.current,ci(fi,t),ci(hi,hi.current),!0}function wi(t,e,n){var r=t.stateNode;if(!r)throw Error(o(169));n?(t=mi(t,e,di),r.__reactInternalMemoizedMergedChildContext=t,si(hi),si(fi),ci(fi,t)):si(hi),ci(hi,n)}var ki=a.unstable_runWithPriority,_i=a.unstable_scheduleCallback,xi=a.unstable_cancelCallback,Si=a.unstable_requestPaint,Ti=a.unstable_now,Ii=a.unstable_getCurrentPriorityLevel,Ei=a.unstable_ImmediatePriority,Oi=a.unstable_UserBlockingPriority,Ai=a.unstable_NormalPriority,Mi=a.unstable_LowPriority,Di=a.unstable_IdlePriority,Bi={},Ni=a.unstable_shouldYield,Li=void 0!==Si?Si:function(){},Ci=null,Fi=null,ji=!1,Ui=Ti(),Pi=1e4>Ui?Ti:function(){return Ti()-Ui};function Ri(){switch(Ii()){case Ei:return 99;case Oi:return 98;case Ai:return 97;case Mi:return 96;case Di:return 95;default:throw Error(o(332))}}function zi(t){switch(t){case 99:return Ei;case 98:return Oi;case 97:return Ai;case 96:return Mi;case 95:return Di;default:throw Error(o(332))}}function Vi(t,e){return t=zi(t),ki(t,e)}function Wi(t,e,n){return t=zi(t),_i(t,e,n)}function Hi(t){return null===Ci?(Ci=[t],Fi=_i(Ei,$i)):Ci.push(t),Bi}function Yi(){if(null!==Fi){var t=Fi;Fi=null,xi(t)}$i()}function $i(){if(!ji&&null!==Ci){ji=!0;var t=0;try{var e=Ci;Vi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Ci=null}catch(n){throw null!==Ci&&(Ci=Ci.slice(t+1)),_i(Ei,Yi),n}finally{ji=!1}}}function qi(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function Ki(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 Qi={current:null},Gi=null,Xi=null,Ji=null;function Zi(){Ji=Xi=Gi=null}function ta(t){var e=Qi.current;si(Qi),t.type._context._currentValue=e}function ea(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 na(t,e){Gi=t,Ji=Xi=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Mo=!0),t.firstContext=null)}function ra(t,e){if(Ji!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Ji=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Xi){if(null===Gi)throw Error(o(308));Xi=e,Gi.dependencies={expirationTime:0,firstContext:e,responders:null}}else Xi=Xi.next=e;return t._currentValue}var ia=!1;function aa(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function oa(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function ua(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function sa(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 ca(t,e){var n=t.alternate;null!==n&&oa(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function la(t,e,n,r){var a=t.updateQueue;ia=!1;var o=a.baseQueue,u=a.shared.pending;if(null!==u){if(null!==o){var s=o.next;o.next=u.next,u.next=s}o=u,a.shared.pending=null,null!==(s=t.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=u))}if(null!==o){s=o.next;var c=a.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}),as(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:ia=!0}}null!==p.callback&&(t.effectTag|=32,null===(u=a.effects)?a.effects=[p]:u.push(p))}if(null===(p=p.next)||p===s){if(null===(u=a.shared.pending))break;p=o.next=u.next,u.next=s,a.baseQueue=o=u,a.shared.pending=null}}null===d?f=c:d.next=h,a.baseState=f,a.baseQueue=d,os(l),t.expirationTime=l,t.memoizedState=c}}function fa(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(o(191,r));r.call(i)}}}var ha=G.ReactCurrentBatchConfig,da=(new r.Component).refs;function pa(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 ya={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Zt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=$u(),i=ha.suspense;(i=ua(r=qu(r,t,i),i)).payload=e,void 0!==n&&null!==n&&(i.callback=n),sa(t,i),Ku(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=$u(),i=ha.suspense;(i=ua(r=qu(r,t,i),i)).tag=1,i.payload=e,void 0!==n&&null!==n&&(i.callback=n),sa(t,i),Ku(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=$u(),r=ha.suspense;(r=ua(n=qu(n,t,r),r)).tag=2,void 0!==e&&null!==e&&(r.callback=e),sa(t,r),Ku(t,n)}};function va(t,e,n,r,i,a,o){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,a,o):!e.prototype||!e.prototype.isPureReactComponent||(!Pr(n,r)||!Pr(i,a))}function ba(t,e,n){var r=!1,i=li,a=e.contextType;return"object"===typeof a&&null!==a?a=ra(a):(i=yi(e)?di:fi.current,a=(r=null!==(r=e.contextTypes)&&void 0!==r)?pi(t,i):li),e=new e(n,a),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=ya,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=a),e}function ma(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&&ya.enqueueReplaceState(e,e.state,null)}function ga(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=da,aa(t);var a=e.contextType;"object"===typeof a&&null!==a?i.context=ra(a):(a=yi(e)?di:fi.current,i.context=pi(t,a)),la(t,n,i,r),i.state=t.memoizedState,"function"===typeof(a=e.getDerivedStateFromProps)&&(pa(t,e,a,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&&ya.enqueueReplaceState(i,i.state,null),la(t,n,i,r),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.effectTag|=4)}var wa=Array.isArray;function ka(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(o(309));var r=n.stateNode}if(!r)throw Error(o(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===da&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!==typeof t)throw Error(o(284));if(!n._owner)throw Error(o(290,t))}return t}function _a(t,e){if("textarea"!==t.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function xa(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=Is(t,e)).index=0,t.sibling=null,t}function a(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=ka(t,e,n),r.return=t,r):((r=Es(n.type,n.key,n.props,null,t.mode,r)).ref=ka(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=Ms(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,a){return null===e||7!==e.tag?((e=Os(n,t.mode,r,a)).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=ka(t,null,e),n.return=t,n;case et:return(e=Ms(e,t.mode,n)).return=t,e}if(wa(e)||yt(e))return(e=Os(e,t.mode,n,null)).return=t,e;_a(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(wa(n)||yt(n))return null!==i?null:f(t,e,n,r,null);_a(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(wa(r)||yt(r))return f(e,t=t.get(n)||null,r,i,null);_a(e,r)}return null}function y(i,o,u,s){for(var c=null,l=null,f=o,y=o=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),o=a(b,o,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))&&(o=a(f,o,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),o=a(v,o,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(o(150));if(null==(s=l.call(s)))throw Error(o(151));for(var f=l=null,y=u,v=u=0,b=null,m=s.next();null!==y&&!m.done;v++,m=s.next()){y.index>v?(b=y,y=null):b=y.sibling;var g=d(i,y,m.value,c);if(null===g){null===y&&(y=b);break}t&&y&&null===g.alternate&&e(i,y),u=a(g,u,v),null===f?l=g:f.sibling=g,f=g,y=b}if(m.done)return n(i,y),l;if(null===y){for(;!m.done;v++,m=s.next())null!==(m=h(i,m.value,c))&&(u=a(m,u,v),null===f?l=m:f.sibling=m,f=m);return l}for(y=r(i,y);!m.done;v++,m=s.next())null!==(m=p(y,i,v,m.value,c))&&(t&&null!==m.alternate&&y.delete(null===m.key?v:m.key),u=a(m,u,v),null===f?l=m:f.sibling=m,f=m);return t&&y.forEach((function(t){return e(i,t)})),l}return function(t,r,a,s){var c="object"===typeof a&&null!==a&&a.type===nt&&null===a.key;c&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case tt:t:{for(l=a.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(a.type===nt){n(t,c.sibling),(r=i(c,a.props.children)).return=t,t=r;break t}break;default:if(c.elementType===a.type){n(t,c.sibling),(r=i(c,a.props)).ref=ka(t,c,a),r.return=t,t=r;break t}}n(t,c);break}e(t,c),c=c.sibling}a.type===nt?((r=Os(a.props.children,t.mode,s,a.key)).return=t,t=r):((s=Es(a.type,a.key,a.props,null,t.mode,s)).ref=ka(t,r,a),s.return=t,t=s)}return u(t);case et:t:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(t,r.sibling),(r=i(r,a.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Ms(a,t.mode,s)).return=t,t=r}return u(t)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,a)).return=t,t=r):(n(t,r),(r=As(a,t.mode,s)).return=t,t=r),u(t);if(wa(a))return y(t,r,a,s);if(yt(a))return v(t,r,a,s);if(l&&_a(t,a),"undefined"===typeof a&&!c)switch(t.tag){case 1:case 0:throw t=t.type,Error(o(152,t.displayName||t.name||"Component"))}return n(t,r)}}var Sa=xa(!0),Ta=xa(!1),Ia={},Ea={current:Ia},Oa={current:Ia},Aa={current:Ia};function Ma(t){if(t===Ia)throw Error(o(174));return t}function Da(t,e){switch(ci(Aa,e),ci(Oa,t),ci(Ea,Ia),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:jt(null,"");break;default:e=jt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}si(Ea),ci(Ea,e)}function Ba(){si(Ea),si(Oa),si(Aa)}function Na(t){Ma(Aa.current);var e=Ma(Ea.current),n=jt(e,t.type);e!==n&&(ci(Oa,t),ci(Ea,n))}function La(t){Oa.current===t&&(si(Ea),si(Oa))}var Ca={current:0};function Fa(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 ja(t,e){return{responder:t,props:e}}var Ua=G.ReactCurrentDispatcher,Pa=G.ReactCurrentBatchConfig,Ra=0,za=null,Va=null,Wa=null,Ha=!1;function Ya(){throw Error(o(321))}function $a(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!jr(t[n],e[n]))return!1;return!0}function qa(t,e,n,r,i,a){if(Ra=a,za=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Ua.current=null===t||null===t.memoizedState?bo:mo,t=n(r,i),e.expirationTime===Ra){a=0;do{if(e.expirationTime=0,!(25>a))throw Error(o(301));a+=1,Wa=Va=null,e.updateQueue=null,Ua.current=go,t=n(r,i)}while(e.expirationTime===Ra)}if(Ua.current=vo,e=null!==Va&&null!==Va.next,Ra=0,Wa=Va=za=null,Ha=!1,e)throw Error(o(300));return t}function Ka(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wa?za.memoizedState=Wa=t:Wa=Wa.next=t,Wa}function Qa(){if(null===Va){var t=za.alternate;t=null!==t?t.memoizedState:null}else t=Va.next;var e=null===Wa?za.memoizedState:Wa.next;if(null!==e)Wa=e,Va=t;else{if(null===t)throw Error(o(310));t={memoizedState:(Va=t).memoizedState,baseState:Va.baseState,baseQueue:Va.baseQueue,queue:Va.queue,next:null},null===Wa?za.memoizedState=Wa=t:Wa=Wa.next=t}return Wa}function Ga(t,e){return"function"===typeof e?e(t):e}function Xa(t){var e=Qa(),n=e.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=t;var r=Va,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var u=i.next;i.next=a.next,a.next=u}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=u=a=null,c=i;do{var l=c.expirationTime;if(l<Ra){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(u=s=f,a=r):s=s.next=f,l>za.expirationTime&&(za.expirationTime=l,os(l))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),as(l,c.suspenseConfig),r=c.eagerReducer===t?c.eagerState:t(r,c.action);c=c.next}while(null!==c&&c!==i);null===s?a=r:s.next=u,jr(r,e.memoizedState)||(Mo=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=s,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function Ja(t){var e=Qa(),n=e.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,a=e.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{a=t(a,u.action),u=u.next}while(u!==i);jr(a,e.memoizedState)||(Mo=!0),e.memoizedState=a,null===e.baseQueue&&(e.baseState=a),n.lastRenderedState=a}return[a,r]}function Za(t){var e=Ka();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:t}).dispatch=yo.bind(null,za,t),[e.memoizedState,t]}function to(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=za.updateQueue)?(e={lastEffect:null},za.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 eo(){return Qa().memoizedState}function no(t,e,n,r){var i=Ka();za.effectTag|=t,i.memoizedState=to(1|e,n,void 0,void 0===r?null:r)}function ro(t,e,n,r){var i=Qa();r=void 0===r?null:r;var a=void 0;if(null!==Va){var o=Va.memoizedState;if(a=o.destroy,null!==r&&$a(r,o.deps))return void to(e,n,a,r)}za.effectTag|=t,i.memoizedState=to(1|e,n,a,r)}function io(t,e){return no(516,4,t,e)}function ao(t,e){return ro(516,4,t,e)}function oo(t,e){return ro(4,2,t,e)}function uo(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 so(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ro(4,2,uo.bind(null,e,t),n)}function co(){}function lo(t,e){return Ka().memoizedState=[t,void 0===e?null:e],t}function fo(t,e){var n=Qa();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&$a(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function ho(t,e){var n=Qa();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&$a(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function po(t,e,n){var r=Ri();Vi(98>r?98:r,(function(){t(!0)})),Vi(97<r?97:r,(function(){var r=Pa.suspense;Pa.suspense=void 0===e?null:e;try{t(!1),n()}finally{Pa.suspense=r}}))}function yo(t,e,n){var r=$u(),i=ha.suspense;i={expirationTime:r=qu(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var a=e.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),e.pending=i,a=t.alternate,t===za||null!==a&&a===za)Ha=!0,i.expirationTime=Ra,za.expirationTime=Ra;else{if(0===t.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=e.lastRenderedReducer))try{var o=e.lastRenderedState,u=a(o,n);if(i.eagerReducer=a,i.eagerState=u,jr(u,o))return}catch(s){}Ku(t,r)}}var vo={readContext:ra,useCallback:Ya,useContext:Ya,useEffect:Ya,useImperativeHandle:Ya,useLayoutEffect:Ya,useMemo:Ya,useReducer:Ya,useRef:Ya,useState:Ya,useDebugValue:Ya,useResponder:Ya,useDeferredValue:Ya,useTransition:Ya},bo={readContext:ra,useCallback:lo,useContext:ra,useEffect:io,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,no(4,2,uo.bind(null,e,t),n)},useLayoutEffect:function(t,e){return no(4,2,t,e)},useMemo:function(t,e){var n=Ka();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ka();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=yo.bind(null,za,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Ka().memoizedState=t},useState:Za,useDebugValue:co,useResponder:ja,useDeferredValue:function(t,e){var n=Za(t),r=n[0],i=n[1];return io((function(){var n=Pa.suspense;Pa.suspense=void 0===e?null:e;try{i(t)}finally{Pa.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Za(!1),n=e[0];return e=e[1],[lo(po.bind(null,e,t),[e,t]),n]}},mo={readContext:ra,useCallback:fo,useContext:ra,useEffect:ao,useImperativeHandle:so,useLayoutEffect:oo,useMemo:ho,useReducer:Xa,useRef:eo,useState:function(){return Xa(Ga)},useDebugValue:co,useResponder:ja,useDeferredValue:function(t,e){var n=Xa(Ga),r=n[0],i=n[1];return ao((function(){var n=Pa.suspense;Pa.suspense=void 0===e?null:e;try{i(t)}finally{Pa.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Xa(Ga),n=e[0];return e=e[1],[fo(po.bind(null,e,t),[e,t]),n]}},go={readContext:ra,useCallback:fo,useContext:ra,useEffect:ao,useImperativeHandle:so,useLayoutEffect:oo,useMemo:ho,useReducer:Ja,useRef:eo,useState:function(){return Ja(Ga)},useDebugValue:co,useResponder:ja,useDeferredValue:function(t,e){var n=Ja(Ga),r=n[0],i=n[1];return ao((function(){var n=Pa.suspense;Pa.suspense=void 0===e?null:e;try{i(t)}finally{Pa.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Ja(Ga),n=e[0];return e=e[1],[fo(po.bind(null,e,t),[e,t]),n]}},wo=null,ko=null,_o=!1;function xo(t,e){var n=Ss(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 So(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 To(t){if(_o){var e=ko;if(e){var n=e;if(!So(t,e)){if(!(e=kn(n.nextSibling))||!So(t,e))return t.effectTag=-1025&t.effectTag|2,_o=!1,void(wo=t);xo(wo,n)}wo=t,ko=kn(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,_o=!1,wo=t}}function Io(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;wo=t}function Eo(t){if(t!==wo)return!1;if(!_o)return Io(t),_o=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!mn(e,t.memoizedProps))for(e=ko;e;)xo(t,e),e=kn(e.nextSibling);if(Io(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(o(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){ko=kn(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}ko=null}}else ko=wo?kn(t.stateNode.nextSibling):null;return!0}function Oo(){ko=wo=null,_o=!1}var Ao=G.ReactCurrentOwner,Mo=!1;function Do(t,e,n,r){e.child=null===t?Ta(e,null,n,r):Sa(e,t.child,n,r)}function Bo(t,e,n,r,i){n=n.render;var a=e.ref;return na(e,i),r=qa(t,e,n,r,a,i),null===t||Mo?(e.effectTag|=1,Do(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ko(t,e,i))}function No(t,e,n,r,i,a){if(null===t){var o=n.type;return"function"!==typeof o||Ts(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Es(n.type,null,r,null,e.mode,a)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=o,Lo(t,e,o,r,i,a))}return o=t.child,i<a&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:Pr)(i,r)&&t.ref===e.ref)?Ko(t,e,a):(e.effectTag|=1,(t=Is(o,r)).ref=e.ref,t.return=e,e.child=t)}function Lo(t,e,n,r,i,a){return null!==t&&Pr(t.memoizedProps,r)&&t.ref===e.ref&&(Mo=!1,i<a)?(e.expirationTime=t.expirationTime,Ko(t,e,a)):Fo(t,e,n,r,a)}function Co(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Fo(t,e,n,r,i){var a=yi(n)?di:fi.current;return a=pi(e,a),na(e,i),n=qa(t,e,n,r,a,i),null===t||Mo?(e.effectTag|=1,Do(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ko(t,e,i))}function jo(t,e,n,r,i){if(yi(n)){var a=!0;gi(e)}else a=!1;if(na(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),ba(e,n,r),ga(e,n,r,i),r=!0;else if(null===t){var o=e.stateNode,u=e.memoizedProps;o.props=u;var s=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=ra(c):c=pi(e,c=yi(n)?di:fi.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==r||s!==c)&&ma(e,o,r,c),ia=!1;var h=e.memoizedState;o.state=h,la(e,r,o,i),s=e.memoizedState,u!==r||h!==s||hi.current||ia?("function"===typeof l&&(pa(e,n,l,r),s=e.memoizedState),(u=ia||va(e,n,u,r,h,s,c))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(e.effectTag|=4)):("function"===typeof o.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=s),o.props=r,o.state=s,o.context=c,r=u):("function"===typeof o.componentDidMount&&(e.effectTag|=4),r=!1)}else o=e.stateNode,oa(t,e),u=e.memoizedProps,o.props=e.type===e.elementType?u:Ki(e.type,u),s=o.context,"object"===typeof(c=n.contextType)&&null!==c?c=ra(c):c=pi(e,c=yi(n)?di:fi.current),(f="function"===typeof(l=n.getDerivedStateFromProps)||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==r||s!==c)&&ma(e,o,r,c),ia=!1,s=e.memoizedState,o.state=s,la(e,r,o,i),h=e.memoizedState,u!==r||s!==h||hi.current||ia?("function"===typeof l&&(pa(e,n,l,r),h=e.memoizedState),(l=ia||va(e,n,u,r,s,h,c))?(f||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,c),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,c)),"function"===typeof o.componentDidUpdate&&(e.effectTag|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!==typeof o.componentDidUpdate||u===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=h),o.props=r,o.state=h,o.context=c,r=l):("function"!==typeof o.componentDidUpdate||u===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=256),r=!1);return Uo(t,e,n,r,a,i)}function Uo(t,e,n,r,i,a){Co(t,e);var o=0!==(64&e.effectTag);if(!r&&!o)return i&&wi(e,n,!1),Ko(t,e,a);r=e.stateNode,Ao.current=e;var u=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&o?(e.child=Sa(e,t.child,null,a),e.child=Sa(e,null,u,a)):Do(t,e,u,a),e.memoizedState=r.state,i&&wi(e,n,!0),e.child}function Po(t){var e=t.stateNode;e.pendingContext?bi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&bi(0,e.context,!1),Da(t,e.containerInfo)}var Ro,zo,Vo,Wo={dehydrated:null,retryTime:0};function Ho(t,e,n){var r,i=e.mode,a=e.pendingProps,o=Ca.current,u=!1;if((r=0!==(64&e.effectTag))||(r=0!==(2&o)&&(null===t||null!==t.memoizedState)),r?(u=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),ci(Ca,1&o),null===t){if(void 0!==a.fallback&&To(e),u){if(u=a.fallback,(a=Os(null,i,0,null)).return=e,0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,a.child=t;null!==t;)t.return=a,t=t.sibling;return(n=Os(u,i,n,null)).return=e,a.sibling=n,e.memoizedState=Wo,e.child=a,n}return i=a.children,e.memoizedState=null,e.child=Ta(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,u){if(a=a.fallback,(n=Is(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=Is(i,a)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=Wo,e.child=n,i}return n=Sa(e,t.child,a.children,n),e.memoizedState=null,e.child=n}if(t=t.child,u){if(u=a.fallback,(a=Os(null,i,0,null)).return=e,a.child=t,null!==t&&(t.return=a),0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,a.child=t;null!==t;)t.return=a,t=t.sibling;return(n=Os(u,i,n,null)).return=e,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,e.memoizedState=Wo,e.child=a,n}return e.memoizedState=null,e.child=Sa(e,t,a.children,n)}function Yo(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),ea(t.return,e)}function $o(t,e,n,r,i,a){var o=t.memoizedState;null===o?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:a}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailExpiration=0,o.tailMode=i,o.lastEffect=a)}function qo(t,e,n){var r=e.pendingProps,i=r.revealOrder,a=r.tail;if(Do(t,e,r.children,n),0!==(2&(r=Ca.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&&Yo(t,n);else if(19===t.tag)Yo(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(Ca,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===Fa(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),$o(e,!1,i,n,a,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Fa(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}$o(e,!0,n,null,a,e.lastEffect);break;case"together":$o(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Ko(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&os(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(o(153));if(null!==e.child){for(n=Is(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Is(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Qo(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 Go(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 Ba(),si(hi),si(fi),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Eo(e)||(e.effectTag|=4),null;case 5:La(e),n=Ma(Aa.current);var a=e.type;if(null!==t&&null!=e.stateNode)zo(t,e,a,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(o(166));return null}if(t=Ma(Ea.current),Eo(e)){r=e.stateNode,a=e.type;var u=e.memoizedProps;switch(r[Sn]=e,r[Tn]=u,a){case"iframe":case"object":case"embed":qe("load",r);break;case"video":case"audio":for(t=0;t<Gt.length;t++)qe(Gt[t],r);break;case"source":qe("error",r);break;case"img":case"image":case"link":qe("error",r),qe("load",r);break;case"form":qe("reset",r),qe("submit",r);break;case"details":qe("toggle",r);break;case"input":xt(r,u),qe("invalid",r),sn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},qe("invalid",r),sn(n,"onChange");break;case"textarea":Dt(r,u),qe("invalid",r),sn(n,"onChange")}for(var s in an(a,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]):S.hasOwnProperty(s)&&null!=c&&sn(n,s)}switch(a){case"input":wt(r),It(r,u,!0);break;case"textarea":wt(r),Nt(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=Ft(a)),t===un?"script"===a?((t=s.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=s.createElement(a,{is:r.is}):(t=s.createElement(a),"select"===a&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,a),t[Sn]=e,t[Tn]=r,Ro(t,e),e.stateNode=t,s=on(a,r),a){case"iframe":case"object":case"embed":qe("load",t),c=r;break;case"video":case"audio":for(c=0;c<Gt.length;c++)qe(Gt[c],t);c=r;break;case"source":qe("error",t),c=r;break;case"img":case"image":case"link":qe("error",t),qe("load",t),c=r;break;case"form":qe("reset",t),qe("submit",t),c=r;break;case"details":qe("toggle",t),c=r;break;case"input":xt(t,r),c=_t(t,r),qe("invalid",t),sn(n,"onChange");break;case"option":c=Ot(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),qe("invalid",t),sn(n,"onChange");break;case"textarea":Dt(t,r),c=Mt(t,r),qe("invalid",t),sn(n,"onChange");break;default:c=r}an(a,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)&&Pt(t,f):"children"===u?"string"===typeof f?("textarea"!==a||""!==f)&&Rt(t,f):"number"===typeof f&&Rt(t,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(S.hasOwnProperty(u)?null!=f&&sn(n,u):null!=f&&X(t,u,f,s))}switch(a){case"input":wt(t),It(t,r,!1);break;case"textarea":wt(t),Nt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+mt(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(a,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Vo(0,e,t.memoizedProps,r);else{if("string"!==typeof r&&null===e.stateNode)throw Error(o(166));n=Ma(Aa.current),Ma(Ea.current),Eo(e)?(n=e.stateNode,r=e.memoizedProps,n[Sn]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sn]=e,e.stateNode=n)}return null;case 13:return si(Ca),r=e.memoizedState,0!==(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Eo(e):(r=null!==(a=t.memoizedState),n||null===a||null!==(a=t.child.sibling)&&(null!==(u=e.firstEffect)?(e.firstEffect=a,a.nextEffect=u):(e.firstEffect=e.lastEffect=a,a.nextEffect=null),a.effectTag=8)),n&&!r&&0!==(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!==(1&Ca.current)?Eu===wu&&(Eu=ku):(Eu!==wu&&Eu!==ku||(Eu=_u),0!==Bu&&null!==Su&&(Ns(Su,Iu),Ls(Su,Bu)))),(n||r)&&(e.effectTag|=4),null);case 4:return Ba(),null;case 10:return ta(e),null;case 17:return yi(e.type)&&vi(),null;case 19:if(si(Ca),null===(r=e.memoizedState))return null;if(a=0!==(64&e.effectTag),null===(u=r.rendering)){if(a)Qo(r,!1);else if(Eu!==wu||null!==t&&0!==(64&t.effectTag))for(u=e.child;null!==u;){if(null!==(t=Fa(u))){for(e.effectTag|=64,Qo(r,!1),null!==(a=t.updateQueue)&&(e.updateQueue=a,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)u=n,(a=r).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(t=a.alternate)?(a.childExpirationTime=0,a.expirationTime=u,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=t.childExpirationTime,a.expirationTime=t.expirationTime,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,u=t.dependencies,a.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return ci(Ca,1&Ca.current|2),e.child}u=u.sibling}}else{if(!a)if(null!==(t=Fa(u))){if(e.effectTag|=64,a=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),Qo(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Pi()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,a=!0,Qo(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=Pi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Pi(),n.sibling=null,e=Ca.current,ci(Ca,a?1&e|2:1&e),n):null}throw Error(o(156,e.tag))}function Xo(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(Ba(),si(hi),si(fi),0!==(64&(e=t.effectTag)))throw Error(o(285));return t.effectTag=-4097&e|64,t;case 5:return La(t),null;case 13:return si(Ca),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return si(Ca),null;case 4:return Ba(),null;case 10:return ta(t),null;default:return null}}function Jo(t,e){return{value:t,source:e,stack:bt(e)}}Ro=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}},zo=function(t,e,n,r,a){var o=t.memoizedProps;if(o!==r){var u,s,c=e.stateNode;switch(Ma(Ea.current),t=null,n){case"input":o=_t(c,o),r=_t(c,r),t=[];break;case"option":o=Ot(c,o),r=Ot(c,r),t=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":o=Mt(c,o),r=Mt(c,r),t=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(c.onclick=cn)}for(u in an(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u)for(s in c=o[u])c.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(S.hasOwnProperty(u)?t||(t=[]):(t=t||[]).push(u,null));for(u in r){var l=r[u];if(c=null!=o?o[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&&(S.hasOwnProperty(u)?(null!=l&&sn(a,u),t||c===l||(t=[])):(t=t||[]).push(u,l))}n&&(t=t||[]).push("style",n),a=t,(e.updateQueue=a)&&(e.effectTag|=4)}},Vo=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var Zo="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){ms(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:Ki(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(o(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 au(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:Ki(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&fa(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}fa(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&&Fe(n)))));case 19:case 17:case 20:case 21:return}throw Error(o(163))}function ou(t,e,n){switch("function"===typeof _s&&_s(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(a){ms(i,a)}}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){ms(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(o(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(o(161))}16&n.effectTag&&(Rt(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,a=5===i||6===i;if(a)e=a?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,a=5===i||6===i;if(a)e=a?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,a=e,u=!1;;){if(!u){u=a.return;t:for(;;){if(null===u)throw Error(o(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===a.tag||6===a.tag){t:for(var s=t,c=a,l=n,f=c;;)if(ou(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=a.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,i=!0,a.child.return=a,a=a.child;continue}}else if(ou(t,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;4===(a=a.return).tag&&(u=!1)}a.sibling.return=a.return,a=a.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 a=e.updateQueue;if(e.updateQueue=null,null!==a){for(n[Tn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&St(n,r),on(t,i),e=on(t,r),i=0;i<a.length;i+=2){var u=a[i],s=a[i+1];"style"===u?nn(n,s):"dangerouslySetInnerHTML"===u?Pt(n,s):"children"===u?Rt(n,s):X(n,u,s,e)}switch(t){case"input":Tt(n,r);break;case"textarea":Bt(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(o(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Fe(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Lu=Pi()),null!==n)t:for(t=n;;){if(5===t.tag)a=t.stateNode,r?"function"===typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=t.stateNode,i=void 0!==(i=t.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,a.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){(a=t.child.sibling).return=t,t=a;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(o(163))}function hu(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Zo),e.forEach((function(e){var r=ws.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=ua(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Fu||(Fu=!0,ju=r),tu(t,e)},n}function yu(t,e,n){(n=ua(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 a=t.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Uu?Uu=new Set([this]):Uu.add(this),tu(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var vu,bu=Math.ceil,mu=G.ReactCurrentDispatcher,gu=G.ReactCurrentOwner,wu=0,ku=3,_u=4,xu=0,Su=null,Tu=null,Iu=0,Eu=wu,Ou=null,Au=1073741823,Mu=1073741823,Du=null,Bu=0,Nu=!1,Lu=0,Cu=null,Fu=!1,ju=null,Uu=null,Pu=!1,Ru=null,zu=90,Vu=null,Wu=0,Hu=null,Yu=0;function $u(){return 0!==(48&xu)?1073741821-(Pi()/10|0):0!==Yu?Yu:Yu=1073741821-(Pi()/10|0)}function qu(t,e,n){if(0===(2&(e=e.mode)))return 1073741823;var r=Ri();if(0===(4&e))return 99===r?1073741823:1073741822;if(0!==(16&xu))return Iu;if(null!==n)t=qi(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=qi(t,150,100);break;case 97:case 96:t=qi(t,5e3,250);break;case 95:t=2;break;default:throw Error(o(326))}return null!==Su&&t===Iu&&--t,t}function Ku(t,e){if(50<Wu)throw Wu=0,Hu=null,Error(o(185));if(null!==(t=Qu(t,e))){var n=Ri();1073741823===e?0!==(8&xu)&&0===(48&xu)?Zu(t):(Xu(t),0===xu&&Yi()):Xu(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 Qu(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&&(Su===i&&(os(e),Eu===_u&&Ns(i,Iu)),Ls(i,e)),i}function Gu(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!Bs(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Xu(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Hi(Zu.bind(null,t));else{var e=Gu(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=$u();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!==Bi&&xi(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Hi(Zu.bind(null,t)):Wi(r,Ju.bind(null,t),{timeout:10*(1073741821-e)-Pi()}),t.callbackNode=e}}}function Ju(t,e){if(Yu=0,e)return Cs(t,e=$u()),Xu(t),null;var n=Gu(t);if(0!==n){if(e=t.callbackNode,0!==(48&xu))throw Error(o(327));if(ys(),t===Su&&n===Iu||ns(t,n),null!==Tu){var r=xu;xu|=16;for(var i=is();;)try{ss();break}catch(s){rs(t,s)}if(Zi(),xu=r,mu.current=i,1===Eu)throw e=Ou,ns(t,n),Ns(t,n),Xu(t),e;if(null===Tu)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Eu,Su=null,r){case wu:case 1:throw Error(o(345));case 2:Cs(t,2<n?2:n);break;case ku:if(Ns(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fs(i)),1073741823===Au&&10<(i=Lu+500-Pi())){if(Nu){var a=t.lastPingedTime;if(0===a||a>=n){t.lastPingedTime=n,ns(t,n);break}}if(0!==(a=Gu(t))&&a!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=gn(hs.bind(null,t),i);break}hs(t);break;case _u:if(Ns(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fs(i)),Nu&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,ns(t,n);break}if(0!==(i=Gu(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Mu?r=10*(1073741821-Mu)-Pi():1073741823===Au?r=0:(r=10*(1073741821-Au)-5e3,0>(r=(i=Pi())-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=gn(hs.bind(null,t),r);break}hs(t);break;case 5:if(1073741823!==Au&&null!==Du){a=Au;var u=Du;if(0>=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(a=Pi()-(10*(1073741821-a)-(0|u.timeoutMs||5e3)))<=i?0:i+r-a),10<r){Ns(t,n),t.timeoutHandle=gn(hs.bind(null,t),r);break}}hs(t);break;default:throw Error(o(329))}if(Xu(t),t.callbackNode===e)return Ju.bind(null,t)}}return null}function Zu(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!==(48&xu))throw Error(o(327));if(ys(),t===Su&&e===Iu||ns(t,e),null!==Tu){var n=xu;xu|=16;for(var r=is();;)try{us();break}catch(i){rs(t,i)}if(Zi(),xu=n,mu.current=r,1===Eu)throw n=Ou,ns(t,e),Ns(t,e),Xu(t),n;if(null!==Tu)throw Error(o(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,Su=null,hs(t),Xu(t)}return null}function ts(t,e){var n=xu;xu|=1;try{return t(e)}finally{0===(xu=n)&&Yi()}}function es(t,e){var n=xu;xu&=-2,xu|=8;try{return t(e)}finally{0===(xu=n)&&Yi()}}function ns(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,wn(n)),null!==Tu)for(n=Tu.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&vi();break;case 3:Ba(),si(hi),si(fi);break;case 5:La(r);break;case 4:Ba();break;case 13:case 19:si(Ca);break;case 10:ta(r)}n=n.return}Su=t,Tu=Is(t.current,null),Iu=e,Eu=wu,Ou=null,Mu=Au=1073741823,Du=null,Bu=0,Nu=!1}function rs(t,e){for(;;){try{if(Zi(),Ua.current=vo,Ha)for(var n=za.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ra=0,Wa=Va=za=null,Ha=!1,null===Tu||null===Tu.return)return Eu=1,Ou=e,Tu=null;t:{var i=t,a=Tu.return,o=Tu,u=e;if(e=Iu,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var s=u;if(0===(2&o.mode)){var c=o.alternate;c?(o.updateQueue=c.updateQueue,o.memoizedState=c.memoizedState,o.expirationTime=c.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var l=0!==(1&Ca.current),f=a;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,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var b=ua(1073741823,null);b.tag=2,sa(o,b)}o.expirationTime=1073741823;break t}u=void 0,o=e;var m=i.pingCache;if(null===m?(m=i.pingCache=new du,u=new Set,m.set(s,u)):void 0===(u=m.get(s))&&(u=new Set,m.set(s,u)),!u.has(o)){u.add(o);var g=gs.bind(null,i,s,o);s.then(g,g)}f.effectTag|=4096,f.expirationTime=e;break t}f=f.return}while(null!==f);u=Error((vt(o.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(o))}5!==Eu&&(Eu=2),u=Jo(u,o),f=a;do{switch(f.tag){case 3:s=u,f.effectTag|=4096,f.expirationTime=e,ca(f,pu(f,s,e));break t;case 1:s=u;var w=f.type,k=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Uu||!Uu.has(k)))){f.effectTag|=4096,f.expirationTime=e,ca(f,yu(f,s,e));break t}}f=f.return}while(null!==f)}Tu=ls(Tu)}catch(_){e=_;continue}break}}function is(){var t=mu.current;return mu.current=vo,null===t?vo:t}function as(t,e){t<Au&&2<t&&(Au=t),null!==e&&t<Mu&&2<t&&(Mu=t,Du=e)}function os(t){t>Bu&&(Bu=t)}function us(){for(;null!==Tu;)Tu=cs(Tu)}function ss(){for(;null!==Tu&&!Ni();)Tu=cs(Tu)}function cs(t){var e=vu(t.alternate,t,Iu);return t.memoizedProps=t.pendingProps,null===e&&(e=ls(t)),gu.current=null,e}function ls(t){Tu=t;do{var e=Tu.alternate;if(t=Tu.return,0===(2048&Tu.effectTag)){if(e=Go(e,Tu,Iu),1===Iu||1!==Tu.childExpirationTime){for(var n=0,r=Tu.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}Tu.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Tu.firstEffect),null!==Tu.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Tu.firstEffect),t.lastEffect=Tu.lastEffect),1<Tu.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=Tu:t.firstEffect=Tu,t.lastEffect=Tu))}else{if(null!==(e=Xo(Tu)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=Tu.sibling))return e;Tu=t}while(null!==Tu);return Eu===wu&&(Eu=5),null}function fs(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function hs(t){var e=Ri();return Vi(99,ds.bind(null,t,e)),null}function ds(t,e){do{ys()}while(null!==Ru);if(0!==(48&xu))throw Error(o(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(o(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===Su&&(Tu=Su=null,Iu=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var a=xu;xu|=32,gu.current=null,yn=$e;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(I){s=null;break t}var h=0,d=-1,p=-1,y=0,v=0,b=u,m=null;e:for(;;){for(var g;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!==(g=b.firstChild);)m=b,b=g;for(;;){if(b===u)break e;if(m===s&&++y===l&&(d=h),m===f&&++v===c&&(p=h),null!==(g=b.nextSibling))break;m=(b=m).parentNode}b=g}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},$e=!1,Cu=i;do{try{ps()}catch(I){if(null===Cu)throw Error(o(330));ms(Cu,I),Cu=Cu.nextEffect}}while(null!==Cu);Cu=i;do{try{for(u=t,s=e;null!==Cu;){var w=Cu.effectTag;if(16&w&&Rt(Cu.stateNode,""),128&w){var k=Cu.alternate;if(null!==k){var _=k.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&w){case 2:cu(Cu),Cu.effectTag&=-3;break;case 6:cu(Cu),Cu.effectTag&=-3,fu(Cu.alternate,Cu);break;case 1024:Cu.effectTag&=-1025;break;case 1028:Cu.effectTag&=-1025,fu(Cu.alternate,Cu);break;case 4:fu(Cu.alternate,Cu);break;case 8:lu(u,l=Cu,s),uu(l)}Cu=Cu.nextEffect}}catch(I){if(null===Cu)throw Error(o(330));ms(Cu,I),Cu=Cu.nextEffect}}while(null!==Cu);if(_=vn,k=dn(),w=_.focusedElem,s=_.selectionRange,k!==w&&w&&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))))}(w.ownerDocument.documentElement,w)){null!==s&&pn(w)&&(k=s.start,void 0===(_=s.end)&&(_=k),"selectionStart"in w?(w.selectionStart=k,w.selectionEnd=Math.min(_,w.value.length)):(_=(k=w.ownerDocument||document)&&k.defaultView||window).getSelection&&(_=_.getSelection(),l=w.textContent.length,u=Math.min(s.start,l),s=void 0===s.end?u:Math.min(s.end,l),!_.extend&&u>s&&(l=s,s=u,u=l),l=hn(w,u),f=hn(w,s),l&&f&&(1!==_.rangeCount||_.anchorNode!==l.node||_.anchorOffset!==l.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&((k=k.createRange()).setStart(l.node,l.offset),_.removeAllRanges(),u>s?(_.addRange(k),_.extend(f.node,f.offset)):(k.setEnd(f.node,f.offset),_.addRange(k))))),k=[];for(_=w;_=_.parentNode;)1===_.nodeType&&k.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<k.length;w++)(_=k[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}$e=!!yn,vn=yn=null,t.current=n,Cu=i;do{try{for(w=t;null!==Cu;){var x=Cu.effectTag;if(36&x&&au(w,Cu.alternate,Cu),128&x){k=void 0;var S=Cu.ref;if(null!==S){var T=Cu.stateNode;switch(Cu.tag){case 5:k=T;break;default:k=T}"function"===typeof S?S(k):S.current=k}}Cu=Cu.nextEffect}}catch(I){if(null===Cu)throw Error(o(330));ms(Cu,I),Cu=Cu.nextEffect}}while(null!==Cu);Cu=null,Li(),xu=a}else t.current=n;if(Pu)Pu=!1,Ru=t,zu=e;else for(Cu=i;null!==Cu;)e=Cu.nextEffect,Cu.nextEffect=null,Cu=e;if(0===(e=t.firstPendingTime)&&(Uu=null),1073741823===e?t===Hu?Wu++:(Wu=0,Hu=t):Wu=0,"function"===typeof ks&&ks(n.stateNode,r),Xu(t),Fu)throw Fu=!1,t=ju,ju=null,t;return 0!==(8&xu)||Yi(),null}function ps(){for(;null!==Cu;){var t=Cu.effectTag;0!==(256&t)&&nu(Cu.alternate,Cu),0===(512&t)||Pu||(Pu=!0,Wi(97,(function(){return ys(),null}))),Cu=Cu.nextEffect}}function ys(){if(90!==zu){var t=97<zu?97:zu;return zu=90,Vi(t,vs)}}function vs(){if(null===Ru)return!1;var t=Ru;if(Ru=null,0!==(48&xu))throw Error(o(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(o(330));ms(t,r)}n=t.nextEffect,t.nextEffect=null,t=n}return xu=e,Yi(),!0}function bs(t,e,n){sa(t,e=pu(t,e=Jo(n,e),1073741823)),null!==(t=Qu(t,1073741823))&&Xu(t)}function ms(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===Uu||!Uu.has(r))){sa(n,t=yu(n,t=Jo(e,t),1073741823)),null!==(n=Qu(n,1073741823))&&Xu(n);break}}n=n.return}}function gs(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),Su===t&&Iu===n?Eu===_u||Eu===ku&&1073741823===Au&&Pi()-Lu<500?ns(t,Iu):Nu=!0:Bs(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Xu(t)))}function ws(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=qu(e=$u(),t,null)),null!==(t=Qu(t,e))&&Xu(t)}vu=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||hi.current)Mo=!0;else{if(r<n){switch(Mo=!1,e.tag){case 3:Po(e),Oo();break;case 5:if(Na(e),4&e.mode&&1!==n&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:yi(e.type)&&gi(e);break;case 4:Da(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,i=e.type._context,ci(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Ho(t,e,n):(ci(Ca,1&Ca.current),null!==(e=Ko(t,e,n))?e.sibling:null);ci(Ca,1&Ca.current);break;case 19:if(r=e.childExpirationTime>=n,0!==(64&t.effectTag)){if(r)return qo(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),ci(Ca,Ca.current),!r)return null}return Ko(t,e,n)}Mo=!1}}else Mo=!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),na(e,n),i=qa(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 a=!0;gi(e)}else a=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(e);var u=r.getDerivedStateFromProps;"function"===typeof u&&pa(e,r,u,t),i.updater=ya,e.stateNode=i,i._reactInternalFiber=e,ga(e,r,t,n),e=Uo(null,e,r,!0,a,n)}else e.tag=0,Do(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,a=e.tag=function(t){if("function"===typeof t)return Ts(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=Ki(i,t),a){case 0:e=Fo(null,e,i,t,n);break t;case 1:e=jo(null,e,i,t,n);break t;case 11:e=Bo(null,e,i,t,n);break t;case 14:e=No(null,e,i,Ki(i.type,t),r,n);break t}throw Error(o(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Fo(t,e,r,i=e.elementType===r?i:Ki(r,i),n);case 1:return r=e.type,i=e.pendingProps,jo(t,e,r,i=e.elementType===r?i:Ki(r,i),n);case 3:if(Po(e),r=e.updateQueue,null===t||null===r)throw Error(o(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,oa(t,e),la(e,r,null,n),(r=e.memoizedState.element)===i)Oo(),e=Ko(t,e,n);else{if((i=e.stateNode.hydrate)&&(ko=kn(e.stateNode.containerInfo.firstChild),wo=e,i=_o=!0),i)for(n=Ta(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Do(t,e,r,n),Oo();e=e.child}return e;case 5:return Na(e),null===t&&To(e),r=e.type,i=e.pendingProps,a=null!==t?t.memoizedProps:null,u=i.children,mn(r,i)?u=null:null!==a&&mn(r,a)&&(e.effectTag|=16),Co(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Do(t,e,u,n),e=e.child),e;case 6:return null===t&&To(e),null;case 13:return Ho(t,e,n);case 4:return Da(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Sa(e,null,r,n):Do(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Bo(t,e,r,i=e.elementType===r?i:Ki(r,i),n);case 7:return Do(t,e,e.pendingProps,n),e.child;case 8:case 12:return Do(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,u=e.memoizedProps,a=i.value;var s=e.type._context;if(ci(Qi,s._currentValue),s._currentValue=a,null!==u)if(s=u.value,0===(a=jr(s,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(u.children===i.children&&!hi.current){e=Ko(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&a)){1===s.tag&&((l=ua(n,null)).tag=2,sa(s,l)),s.expirationTime<n&&(s.expirationTime=n),null!==(l=s.alternate)&&l.expirationTime<n&&(l.expirationTime=n),ea(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}Do(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(a=e.pendingProps).children,na(e,n),r=r(i=ra(i,a.unstable_observedBits)),e.effectTag|=1,Do(t,e,r,n),e.child;case 14:return a=Ki(i=e.type,e.pendingProps),No(t,e,i,a=Ki(i.type,a),r,n);case 15:return Lo(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ki(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,yi(r)?(t=!0,gi(e)):t=!1,na(e,n),ba(e,r,i),ga(e,r,i,n),Uo(null,e,r,!0,t,n);case 19:return qo(t,e,n)}throw Error(o(156,e.tag))};var ks=null,_s=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 Ss(t,e,n,r){return new xs(t,e,n,r)}function Ts(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Is(t,e){var n=t.alternate;return null===n?((n=Ss(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,a){var u=2;if(r=t,"function"===typeof t)Ts(t)&&(u=1);else if("string"===typeof t)u=5;else t:switch(t){case nt:return Os(n.children,i,a,e);case ut:u=8,i|=7;break;case rt:u=8,i|=1;break;case it:return(t=Ss(12,n,e,8|i)).elementType=it,t.type=it,t.expirationTime=a,t;case ct:return(t=Ss(13,n,e,i)).type=ct,t.elementType=ct,t.expirationTime=a,t;case lt:return(t=Ss(19,n,e,i)).elementType=lt,t.expirationTime=a,t;default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case at:u=10;break t;case ot: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(o(130,null==t?t:typeof t,""))}return(e=Ss(u,n,e,i)).elementType=t,e.type=r,e.expirationTime=a,e}function Os(t,e,n,r){return(t=Ss(7,t,r,e)).expirationTime=n,t}function As(t,e,n){return(t=Ss(6,t,null,e)).expirationTime=n,t}function Ms(t,e,n){return(e=Ss(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Ds(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 Bs(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Ns(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 Ls(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 Cs(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Fs(t,e,n,r){var i=e.current,a=$u(),u=ha.suspense;a=qu(a,i,u);t:if(n){e:{if(Zt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(o(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(o(171))}if(1===n.tag){var c=n.type;if(yi(c)){n=mi(n,c,s);break t}}n=s}else n=li;return null===e.context?e.context=n:e.pendingContext=n,(e=ua(a,u)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),sa(i,e),Ku(i,a),a}function js(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Us(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Ps(t,e){Us(t,e),(t=t.alternate)&&Us(t,e)}function Rs(t,e,n){var r=new Ds(t,e,n=null!=n&&!0===n.hydrate),i=Ss(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,aa(i),t[In]=r.current,n&&0!==e&&function(t,e){var n=Jt(e);Ie.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 a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var u=i;i=function(){var t=js(o);u.call(t)}}Fs(e,o,t,i)}else{if(a=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 Rs(t,0,e?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var s=i;i=function(){var t=js(o);s.call(t)}}es((function(){Fs(e,o,t,i)}))}return js(o)}function Ws(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 Hs(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!zs(e))throw Error(o(200));return Ws(t,e,null,n)}Rs.prototype.render=function(t){Fs(t,this._internalRoot,null,null)},Rs.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Fs(null,t,null,(function(){e[In]=null}))},ye=function(t){if(13===t.tag){var e=qi($u(),150,100);Ku(t,e),Ps(t,e)}},ve=function(t){13===t.tag&&(Ku(t,3),Ps(t,3))},be=function(t){if(13===t.tag){var e=$u();Ku(t,e=qu(e,t,null)),Ps(t,e)}},O=function(t,e,n){switch(e){case"input":if(Tt(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=Mn(r);if(!i)throw Error(o(90));kt(r),Tt(r,i)}}}break;case"textarea":Bt(t,n);break;case"select":null!=(e=n.value)&&At(t,!!n.multiple,e,!1)}},L=ts,C=function(t,e,n,r,i){var a=xu;xu|=4;try{return Vi(98,t.bind(null,e,n,r,i))}finally{0===(xu=a)&&Yi()}},F=function(){0===(49&xu)&&(function(){if(null!==Vu){var t=Vu;Vu=null,t.forEach((function(t,e){Cs(e,t),Xu(e)})),Yi()}}(),ys())},j=function(t,e){var n=xu;xu|=2;try{return t(e)}finally{0===(xu=n)&&Yi()}};var Ys={Events:[On,An,Mn,I,x,jn,function(t){ie(t,Fn)},B,N,Xe,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);ks=function(t){try{e.onCommitFiberRoot(n,t,void 0,64===(64&t.current.effectTag))}catch(r){}},_s=function(t){try{e.onCommitFiberUnmount(n,t)}catch(r){}}}catch(r){}})(i({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.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=Ys,e.createPortal=Hs,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(o(188));throw Error(o(268,Object.keys(t)))}return t=null===(t=ne(e))?null:t.stateNode},e.flushSync=function(t,e){if(0!==(48&xu))throw Error(o(187));var n=xu;xu|=1;try{return Vi(99,t.bind(null,e))}finally{xu=n,Yi()}},e.hydrate=function(t,e,n){if(!zs(e))throw Error(o(200));return Vs(null,t,e,!0,n)},e.render=function(t,e,n){if(!zs(e))throw Error(o(200));return Vs(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!zs(t))throw Error(o(40));return!!t._reactRootContainer&&(es((function(){Vs(null,null,t,!1,(function(){t._reactRootContainer=null,t[In]=null}))})),!0)},e.unstable_batchedUpdates=ts,e.unstable_createPortal=function(t,e){return Hs(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(o(200));if(null==t||void 0===t._reactInternalFiber)throw Error(o(38));return Vs(t,e,n,!1,r)},e.version="16.14.0"},function(t,e,n){"use strict";t.exports=n(39)},function(t,e,n){"use strict";var r,i,a,o,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)},a=function(){clearTimeout(c)},o=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 m=!1,g=null,w=-1,k=5,_=0;o=function(){return e.unstable_now()>=_},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"):k=0<t?Math.floor(1e3/t):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==g){var t=e.unstable_now();_=t+k;try{g(!0,t)?S.postMessage(null):(m=!1,g=null)}catch(n){throw S.postMessage(null),n}}else m=!1},r=function(t){g=t,m||(m=!0,S.postMessage(null))},i=function(t,n){w=p((function(){t(e.unstable_now())}),n)},a=function(){y(w),w=-1}}function T(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<O(i,e)))break t;t[r]=e,t[n]=i,n=r}}function I(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 a=2*(r+1)-1,o=t[a],u=a+1,s=t[u];if(void 0!==o&&0>O(o,n))void 0!==s&&0>O(s,o)?(t[r]=s,t[u]=n,r=u):(t[r]=o,t[a]=n,r=a);else{if(!(void 0!==s&&0>O(s,n)))break t;t[r]=s,t[u]=n,r=u}}}return e}return null}function O(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var A=[],M=[],D=1,B=null,N=3,L=!1,C=!1,F=!1;function j(t){for(var e=I(M);null!==e;){if(null===e.callback)E(M);else{if(!(e.startTime<=t))break;E(M),e.sortIndex=e.expirationTime,T(A,e)}e=I(M)}}function U(t){if(F=!1,j(t),!C)if(null!==I(A))C=!0,r(P);else{var e=I(M);null!==e&&i(U,e.startTime-t)}}function P(t,n){C=!1,F&&(F=!1,a()),L=!0;var r=N;try{for(j(n),B=I(A);null!==B&&(!(B.expirationTime>n)||t&&!o());){var u=B.callback;if(null!==u){B.callback=null,N=B.priorityLevel;var s=u(B.expirationTime<=n);n=e.unstable_now(),"function"===typeof s?B.callback=s:B===I(A)&&E(A),j(n)}else E(A);B=I(A)}if(null!==B)var c=!0;else{var l=I(M);null!==l&&i(U,l.startTime-n),c=!1}return c}finally{B=null,N=r,L=!1}}function R(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(){C||L||(C=!0,r(P))},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return I(A)},e.unstable_next=function(t){switch(N){case 1:case 2:case 3:var e=3;break;default:e=N}var n=N;N=e;try{return t()}finally{N=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=N;N=t;try{return e()}finally{N=n}},e.unstable_scheduleCallback=function(t,n,o){var u=e.unstable_now();if("object"===typeof o&&null!==o){var s=o.delay;s="number"===typeof s&&0<s?u+s:u,o="number"===typeof o.timeout?o.timeout:R(t)}else o=R(t),s=u;return t={id:D++,callback:n,priorityLevel:t,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>u?(t.sortIndex=s,T(M,t),null===I(A)&&t===I(M)&&(F?a():F=!0,i(U,s-u))):(t.sortIndex=o,T(A,t),C||L||(C=!0,r(P))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();j(t);var n=I(A);return n!==B&&null!==B&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<B.expirationTime||o()},e.unstable_wrapCallback=function(t){var e=N;return function(){var n=N;N=e;try{return t.apply(this,arguments)}finally{N=n}}}},function(t,e,n){"use strict";t.exports=n(41)},function(t,e,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=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,m=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;function _(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case f:case h:case o: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 a:return e}}}function x(t){return _(t)===h}e.AsyncMode=f,e.ConcurrentMode=h,e.ContextConsumer=l,e.ContextProvider=c,e.Element=i,e.ForwardRef=d,e.Fragment=o,e.Lazy=b,e.Memo=v,e.Portal=a,e.Profiler=s,e.StrictMode=u,e.Suspense=p,e.isAsyncMode=function(t){return x(t)||_(t)===f},e.isConcurrentMode=x,e.isContextConsumer=function(t){return _(t)===l},e.isContextProvider=function(t){return _(t)===c},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return _(t)===d},e.isFragment=function(t){return _(t)===o},e.isLazy=function(t){return _(t)===b},e.isMemo=function(t){return _(t)===v},e.isPortal=function(t){return _(t)===a},e.isProfiler=function(t){return _(t)===s},e.isStrictMode=function(t){return _(t)===u},e.isSuspense=function(t){return _(t)===p},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===o||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===g||t.$$typeof===w||t.$$typeof===k||t.$$typeof===m)},e.typeOf=_},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",a=r.asyncIterator||"@@asyncIterator",o=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(I){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof f?e:f,a=Object.create(i.prototype),o=new x(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var u=w(o,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,o),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(I){return{type:"throw",arg:I}}}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(S([])));v&&v!==e&&n.call(v,i)&&(p=v);var b=d.prototype=f.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){var r;this._invoke=function(i,a){function o(){return new e((function(r,o){!function r(i,a,o,u){var s=c(t[i],t,a);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,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(f).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,u)}))}u(s.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function w(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,w(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 k(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(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,a=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 a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=b.constructor=d,d.constructor=h,h.displayName=u(d,o,"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,o,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},m(g.prototype),g.prototype[a]=function(){return this},t.AsyncIterator=g,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new g(s(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},m(b),u(b,o,"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=S,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(_),!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 o.type="throw",o.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 a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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 a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},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),_(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;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(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){(function(t){var r;!function(t,i,a){function o(t){var e=this,n=function(){var t=4022871197;return function(e){e=String(e);for(var n=0;n<e.length;n++){var r=.02519603282416938*(t+=e.charCodeAt(n));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)}}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=n(" "),e.s1=n(" "),e.s2=n(" "),e.s0-=n(t),e.s0<0&&(e.s0+=1),e.s1-=n(t),e.s1<0&&(e.s1+=1),e.s2-=n(t),e.s2<0&&(e.s2+=1),n=null}function u(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function s(t,e){var n=new o(t),r=e&&e.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,r&&("object"==typeof r&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=s:n(6)&&n(9)?void 0===(r=function(){return s}.call(e,n,e,i))||(i.exports=r):this.alea=s}(0,t,n(6))}).call(this,n(8)(t))},function(t,e,n){(function(t){var r;!function(t,i,a){function o(t){var e=this,n="";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:n+=t;for(var r=0;r<n.length+64;r++)e.x^=0|n.charCodeAt(r),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function s(t,e){var n=new o(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=s:n(6)&&n(9)?void 0===(r=function(){return s}.call(e,n,e,i))||(i.exports=r):this.xor128=s}(0,t,n(6))}).call(this,n(8)(t))},function(t,e,n){(function(t){var r;!function(t,i,a){function o(t){var e=this,n="";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:n+=t;for(var r=0;r<n.length+64;r++)e.x^=0|n.charCodeAt(r),r==n.length&&(e.d=e.x<<10^e.x>>>4),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function s(t,e){var n=new o(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=s:n(6)&&n(9)?void 0===(r=function(){return s}.call(e,n,e,i))||(i.exports=r):this.xorwow=s}(0,t,n(6))}).call(this,n(8)(t))},function(t,e,n){(function(t){var r;!function(t,i,a){function o(t){var e=this;e.next=function(){var t,n,r=e.x,i=e.i;return t=r[i],n=(t^=t>>>7)^t<<24,n^=(t=r[i+1&7])^t>>>10,n^=(t=r[i+3&7])^t>>>3,n^=(t=r[i+4&7])^t<<7,t=r[i+7&7],n^=(t^=t<<13)^t<<9,r[i]=n,e.i=i+1&7,n},function(t,e){var n,r=[];if(e===(0|e))r[0]=e;else for(e=""+e,n=0;n<e.length;++n)r[7&n]=r[7&n]<<15^e.charCodeAt(n)+r[n+1&7]<<13;for(;r.length<8;)r.push(0);for(n=0;n<8&&0===r[n];++n);for(8==n?r[7]=-1:r[n],t.x=r,t.i=0,n=256;n>0;--n)t.next()}(e,t)}function u(t,e){return e.x=t.x.slice(),e.i=t.i,e}function s(t,e){null==t&&(t=+new Date);var n=new o(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&(r.x&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=s:n(6)&&n(9)?void 0===(r=function(){return s}.call(e,n,e,i))||(i.exports=r):this.xorshift7=s}(0,t,n(6))}).call(this,n(8)(t))},function(t,e,n){(function(t){var r;!function(t,i,a){function o(t){var e=this;e.next=function(){var t,n,r=e.w,i=e.X,a=e.i;return e.w=r=r+1640531527|0,n=i[a+34&127],t=i[a=a+1&127],n^=n<<13,t^=t<<17,n^=n>>>15,t^=t>>>12,n=i[a]=n^t,e.i=a,n+(r^r>>>16)|0},function(t,e){var n,r,i,a,o,u=[],s=128;for(e===(0|e)?(r=e,e=null):(e+="\0",r=0,s=Math.max(s,e.length)),i=0,a=-32;a<s;++a)e&&(r^=e.charCodeAt((a+32)%e.length)),0===a&&(o=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,a>=0&&(o=o+1640531527|0,i=0==(n=u[127&a]^=r+o)?i+1:0);for(i>=128&&(u[127&(e&&e.length||0)]=-1),i=127,a=512;a>0;--a)r=u[i+34&127],n=u[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,u[i]=r^n;t.w=o,t.X=u,t.i=i}(e,t)}function u(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function s(t,e){null==t&&(t=+new Date);var n=new o(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&(r.X&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=s:n(6)&&n(9)?void 0===(r=function(){return s}.call(e,n,e,i))||(i.exports=r):this.xor4096=s}(0,t,n(6))}).call(this,n(8)(t))},function(t,e,n){(function(t){var r;!function(t,i,a){function o(t){var e=this,n="";e.next=function(){var t=e.b,n=e.c,r=e.d,i=e.a;return t=t<<25^t>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^n,e.c=n=n-r|0,e.d=r<<16^n>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):n+=t;for(var r=0;r<n.length+20;r++)e.b^=0|n.charCodeAt(r),e.next()}function u(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function s(t,e){var n=new o(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=s:n(6)&&n(9)?void 0===(r=function(){return s}.call(e,n,e,i))||(i.exports=r):this.tychei=s}(0,t,n(6))}).call(this,n(8)(t))},function(t,e,n){var r;!function(i,a,o){var u,s=o.pow(256,6),c=o.pow(2,52),l=2*c;function f(t,e,n){var r=[],f=p(function t(e,n){var r,i=[],a=typeof e;if(n&&"object"==a)for(r in e)try{i.push(t(e[r],n-1))}catch(o){}return i.length?i:"string"==a?e:e+"\0"}((e=1==e?{entropy:!0}:e||{}).entropy?[t,y(a)]:null==t?function(){try{var t;return u&&(t=u.randomBytes)?t=t(256):(t=new Uint8Array(256),(i.crypto||i.msCrypto).getRandomValues(t)),y(t)}catch(r){var e=i.navigator,n=e&&e.plugins;return[+new Date,i,n,i.screen,y(a)]}}():t,3),r),v=new h(r),b=function(){for(var t=v.g(6),e=s,n=0;t<c;)t=256*(t+n),e*=256,n=v.g(1);for(;t>=l;)t/=2,e/=2,n>>>=1;return(t+n)/e};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,p(y(v.S),a),(e.pass||n||function(t,e,n,r){return r&&(r.S&&d(r,v),t.state=function(){return d(v,{})}),n?(o.random=t,e):t})(b,f,"global"in e?e.global:this==o,e.state)}function h(t){var e,n=t.length,r=this,i=0,a=r.i=r.j=0,o=r.S=[];for(n||(t=[n++]);i<256;)o[i]=i++;for(i=0;i<256;i++)o[i]=o[a=255&a+t[i%n]+(e=o[i])],o[a]=e;(r.g=function(t){for(var e,n=0,i=r.i,a=r.j,o=r.S;t--;)e=o[i=255&i+1],n=256*n+o[255&(o[i]=o[a=255&a+e])+(o[a]=e)];return r.i=i,r.j=a,n})(256)}function d(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function p(t,e){for(var n,r=t+"",i=0;i<r.length;)e[255&i]=255&(n^=19*e[255&i])+r.charCodeAt(i++);return y(e)}function y(t){return String.fromCharCode.apply(0,t)}if(p(o.random(),a),t.exports){t.exports=f;try{u=n(50)}catch(v){}}else void 0===(r=function(){return f}.call(e,n,e,t))||(t.exports=r)}("undefined"!==typeof self?self:this,[],Math)},,function(t,e,n){},function(t,e,n){},function(t,e,n){}]]);
  //# sourceMappingURL=2.1b79fe21.chunk.js.map