Spaces:
Sleeping
Sleeping
File size: 241,486 Bytes
be5030f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory(global.Arrow = global.Arrow || {}));
}(this, (function (exports) {var g,k=k||{};k.scope={};k.wd=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};k.cf=function(a){return{next:k.wd(a)}};k.Ac=!1;k.fg=!1;k.gg=!1;k.ig=!1;k.defineProperty=k.Ac||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};k.Df=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};k.global=k.Df(this);k.Pe="jscomp_symbol_";
k.l=function(){k.l=function(){};k.global.Symbol||(k.global.Symbol=k.Symbol)};function ba(a,b){this.Ke=a;k.defineProperty(this,"description",{configurable:!0,writable:!0,value:b})}ba.prototype.toString=function(){return this.Ke};k.Symbol=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ba(k.Pe+(c||"")+"_"+b++,c)}var b=0;return a}();
k.D=function(){k.l();var a=k.global.Symbol.iterator;a||(a=k.global.Symbol.iterator=k.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&k.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return k.Gf(k.wd(this))}});k.D=function(){}};k.N=function(){k.l();var a=k.global.Symbol.asyncIterator;a||(a=k.global.Symbol.asyncIterator=k.global.Symbol("Symbol.asyncIterator"));k.N=function(){}};
k.Gf=function(a){k.D();a={next:a};a[k.global.Symbol.iterator]=function(){return this};return a};k.w=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):k.cf(a)};k.bf=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};k.o=function(a){return a instanceof Array?a:k.bf(k.w(a))};k.Mf=k.Ac||"function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};
k.eg=function(){var a={af:!0},b={};try{return b.__proto__=a,b.af}catch(c){}return!1};k.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:k.eg()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;
k.b=function(a,b){a.prototype=k.Mf(b.prototype);a.prototype.constructor=a;if(k.setPrototypeOf){var c=k.setPrototypeOf;c(a,b)}else for(c in b)if("prototype"!=c)if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(b,c);f&&Object.defineProperty(a,c,f)}else a[c]=b[c];a.vh=b.prototype};k.C={};k.C.Yd=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
function ca(){this.ib=!1;this.ra=null;this.m=void 0;this.j=1;this.ia=this.ua=0;this.$d=this.fa=null}function da(a){if(a.ib)throw new TypeError("Generator is already running");a.ib=!0}ca.prototype.kb=function(a){this.m=a};ca.prototype.mb=function(a){this.fa={Zd:a,de:!0};this.j=this.ua||this.ia};ca.prototype.return=function(a){this.fa={return:a};this.j=this.ia};function p(a,b,c){a.j=c;return{value:b}}
function ea(a,b,c){b=k.w(b);var f=b.next();k.C.Yd(f);if(f.done)a.m=f.value,a.j=c;else return a.ra=b,p(a,f.value,c)}ca.prototype.i=function(a){this.j=a};function ha(a,b){a.ua=0;a.ia=b||0}function ia(a){a.ua=0;var b=a.fa.Zd;a.fa=null;return b}function ja(a){a.$d=[a.fa];a.ua=0;a.ia=0}function ka(a){var b=a.$d.splice(0)[0];(b=a.fa=a.fa||b)?b.de?a.j=a.ua||a.ia:void 0!=b.i&&a.ia<b.i?(a.j=b.i,a.fa=null):a.j=a.ia:a.j=0}function la(a){this.K=new ca;this.Nf=a}
la.prototype.kb=function(a){da(this.K);if(this.K.ra)return ma(this,this.K.ra.next,a,this.K.kb);this.K.kb(a);return na(this)};function pa(a,b){da(a.K);var c=a.K.ra;if(c)return ma(a,"return"in c?c["return"]:function(f){return{value:f,done:!0}},b,a.K.return);a.K.return(b);return na(a)}la.prototype.mb=function(a){da(this.K);if(this.K.ra)return ma(this,this.K.ra["throw"],a,this.K.kb);this.K.mb(a);return na(this)};
function ma(a,b,c,f){try{var d=b.call(a.K.ra,c);k.C.Yd(d);if(!d.done)return a.K.ib=!1,d;var e=d.value}catch(h){return a.K.ra=null,a.K.mb(h),na(a)}a.K.ra=null;f.call(a.K,e);return na(a)}function na(a){for(;a.K.j;)try{var b=a.Nf(a.K);if(b)return a.K.ib=!1,{value:b.value,done:!1}}catch(c){a.K.m=void 0,a.K.mb(c)}a.K.ib=!1;if(a.K.fa){b=a.K.fa;a.K.fa=null;if(b.de)throw b.Zd;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
function qa(a){this.next=function(b){return a.kb(b)};this.throw=function(b){return a.mb(b)};this.return=function(b){return pa(a,b)};k.D();this[Symbol.iterator]=function(){return this}}k.C.H=function(a,b){b=new qa(new la(b));k.setPrototypeOf&&k.setPrototypeOf(b,a.prototype);return b};k.ee=function(a,b){if(b){var c=k.global;a=a.split(".");for(var f=0;f<a.length-1;f++){var d=a[f];d in c||(c[d]={});c=c[d]}a=a[a.length-1];f=c[a];b=b(f);b!=f&&null!=b&&k.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
k.Me=!1;
k.ee("Promise",function(a){function b(h){this.lb=0;this.vc=void 0;this.Ka=[];var l=this.jc();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}function c(){this.ta=null}function f(h){return h instanceof b?h:new b(function(l){l(h)})}if(a&&!k.Me)return a;c.prototype.xd=function(h){if(null==this.ta){this.ta=[];var l=this;this.yd(function(){l.yf()})}this.ta.push(h)};var d=k.global.setTimeout;c.prototype.yd=function(h){d(h,0)};c.prototype.yf=function(){for(;this.ta&&this.ta.length;){var h=this.ta;this.ta=
[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.df(n)}}}this.ta=null};c.prototype.df=function(h){this.yd(function(){throw h;})};b.prototype.jc=function(){function h(n){return function(r){m||(m=!0,n.call(l,r))}}var l=this,m=!1;return{resolve:h(this.Qf),reject:h(this.uc)}};b.prototype.Qf=function(h){if(h===this)this.uc(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Rf(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=
!0;break a;default:l=!1}l?this.Pf(h):this.ae(h)}};b.prototype.Pf=function(h){var l=void 0;try{l=h.then}catch(m){this.uc(m);return}"function"==typeof l?this.Sf(l,h):this.ae(h)};b.prototype.uc=function(h){this.fe(2,h)};b.prototype.ae=function(h){this.fe(1,h)};b.prototype.fe=function(h,l){if(0!=this.lb)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.lb);this.lb=h;this.vc=l;this.zf()};b.prototype.zf=function(){if(null!=this.Ka){for(var h=0;h<this.Ka.length;++h)e.xd(this.Ka[h]);
this.Ka=null}};var e=new c;b.prototype.Rf=function(h){var l=this.jc();h.Eb(l.resolve,l.reject)};b.prototype.Sf=function(h,l){var m=this.jc();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};b.prototype.then=function(h,l){function m(y,A){return"function"==typeof y?function(Z){try{n(y(Z))}catch(fa){r(fa)}}:A}var n,r,v=new b(function(y,A){n=y;r=A});this.Eb(m(h,n),m(l,r));return v};b.prototype.catch=function(h){return this.then(void 0,h)};b.prototype.Eb=function(h,l){function m(){switch(n.lb){case 1:h(n.vc);
break;case 2:l(n.vc);break;default:throw Error("Unexpected state: "+n.lb);}}var n=this;null==this.Ka?e.xd(m):this.Ka.push(m)};b.resolve=f;b.reject=function(h){return new b(function(l,m){m(h)})};b.race=function(h){return new b(function(l,m){for(var n=k.w(h),r=n.next();!r.done;r=n.next())f(r.value).Eb(l,m)})};b.all=function(h){var l=k.w(h),m=l.next();return m.done?f([]):new b(function(n,r){function v(Z){return function(fa){y[Z]=fa;A--;0==A&&n(y)}}var y=[],A=0;do y.push(void 0),A++,f(m.value).Eb(v(y.length-
1),r),m=l.next();while(!m.done)})};return b});k.ee("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});k.zd=function(a){function b(f){return a.next(f)}function c(f){return a.throw(f)}return new Promise(function(f,d){function e(h){h.done?f(h.value):Promise.resolve(h.value).then(b,c).then(e,d)}e(a.next())})};k.lg=function(a){return k.zd(a())};
k.u=function(a){return k.zd(new qa(new la(a)))};k.Ja=function(a){k.N();var b=a[Symbol.asyncIterator];return void 0!==b?b.call(a):new ra(k.w(a))};function ra(a){this[Symbol.asyncIterator]=function(){return this};this[Symbol.iterator]=function(){return a};this.next=function(b){return Promise.resolve(a.next(b))};void 0!==a["throw"]&&(this["throw"]=function(b){return Promise.resolve(a["throw"](b))});void 0!==a["return"]&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})}
function q(a,b){this.action=a;this.value=b}function sa(a,b,c,f){this.method=a;this.za=b;this.resolve=c;this.reject=f}function ta(a){this.frame=a;this.next=null}function ua(){this.Lb=this.ja=null}ua.prototype.first=function(){if(this.ja)return this.ja.frame;throw Error("no frames in executionQueue");};function va(a){a.ja&&(a.ja=a.ja.next,a.ja||(a.Lb=null))}ua.prototype.enqueue=function(a){a=new ta(a);this.Lb?this.Lb.next=a:this.ja=a;this.Lb=a};
function wa(a){this.be=a;this.ba=null;this.W=new ua;k.N();this[Symbol.asyncIterator]=function(){return this};var b=this;this.gf=function(c){var f=b.W.first();!0===c.done?(b.ba=null,f.method="next",f.za=c.value):(f.resolve({value:c.value,done:!1}),va(b.W));xa(b)};this.ff=function(c){ya(b,c)};this.gc=function(c){za(b,c)}}function Aa(a,b,c){return new Promise(function(f,d){var e=null===a.W.ja;a.W.enqueue(new sa(b,c,f,d));e&&xa(a)})}wa.prototype.next=function(a){return Aa(this,"next",a)};
wa.prototype.return=function(a){return Aa(this,"return",new q(0,a))};wa.prototype.throw=function(a){return Aa(this,"throw",a)};function xa(a){if(null!==a.W.ja)try{if(a.ba){if(!a.ba)throw Error("no delegate to perform execution");var b=a.W.first();if(b.method in a.ba)try{a.ba[b.method](b.za).then(a.gf,a.ff).catch(a.gc)}catch(c){ya(a,c)}else a.ba=null,xa(a)}else Ba(a)}catch(c){za(a,c)}}
function Ba(a){var b=a.W.first();try{var c=a.be[b.method](b.za);if(c.value instanceof q)switch(c.value.action){case 0:Promise.resolve(c.value.value).then(function(f){b.resolve({value:f,done:c.done});va(a.W);xa(a)},function(f){b.reject(f);va(a.W);xa(a)}).catch(a.gc);break;case 1:a.ba=k.Ja(c.value.value);b.method="next";b.za=void 0;xa(a);break;case 2:Promise.resolve(c.value.value).then(function(f){b.method="next";b.za=f;xa(a)},function(f){b.method="throw";b.za=f;xa(a)}).catch(a.gc);break;default:throw Error("Unrecognized AsyncGeneratorWrapper$ActionEnum");
}else b.resolve(c),va(a.W),xa(a)}catch(f){b.reject(f),va(a.W),xa(a)}}function ya(a,b){var c=a.W.first();a.ba=null;c.method="throw";c.za=b;xa(a)}function za(a,b){null!==a.W.ja&&(a.W.first().reject(b),va(a.W));a.ba&&"return"in a.ba&&(a.ba["return"](void 0),a.ba=null);a.be["return"](void 0);xa(a)}var Ca=new Int32Array(2);new Float32Array(Ca.buffer);new Float64Array(Ca.buffer);new Uint16Array((new Uint8Array([1,0])).buffer);function Da(a,b){this.low=a|0;this.high=b|0}
Da.prototype.equals=function(a){return this.low==a.low&&this.high==a.high};var Ea=new Da(0,0);function Fa(){this.a=new Ga(new Uint8Array(1024));this.M=1024;this.jb=1;this.pa=null;this.yc=0;this.hb=!1;this.qc=0;this.nb=[];this.xc=0;this.Ha=!1}g=Fa.prototype;g.clear=function(){this.a.clear();this.M=this.a.F.length;this.jb=1;this.pa=null;this.yc=0;this.hb=!1;this.qc=0;this.nb=[];this.xc=0;this.Ha=!1};function Ha(a){return a.a.ma().subarray(a.a.position(),a.a.position()+a.offset())}
function Ia(a,b,c){b>a.jb&&(a.jb=b);for(var f=~(a.a.F.length-a.M+c)+1&b-1;a.M<f+b+c;){var d=a.a.F.length,e=a,h=a.a,l=h.F.length;if(l&3221225472)throw Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var m=l<<1,n=new Ga(new Uint8Array(m));n.setPosition(m-l);n.ma().set(h.ma(),m-l);e.a=n;a.M+=a.a.F.length-d}Ja(a,f)}function Ja(a,b){for(var c=0;c<b;c++)a.a.Pa(--a.M,0)}g.Pa=function(a){this.a.Pa(--this.M,a)};g.zc=function(a){this.a.zc(this.M-=2,a)};g.da=function(a){this.a.da(this.M-=4,a)};
g.qa=function(a){this.a.qa(this.M-=8,a)};function Ka(a,b){Ia(a,2,0);a.zc(b)}function La(a,b,c,f){if(a.Ha||c!=f)Ia(a,1,0),a.Pa(c),a.slot(b)}function Ma(a,b,c){if(a.Ha||b!=c)Ka(a,b),a.slot(0)}function Na(a,b,c,f){if(a.Ha||c!=f)Ia(a,4,0),a.da(c),a.slot(b)}function Oa(a,b,c,f){if(a.Ha||!c.equals(f))Ia(a,8,0),a.qa(c),a.slot(b)}function Pa(a,b,c){if(a.Ha||0!=c)Qa(a,c),a.slot(b)}function Ra(a){if(a.hb)throw Error("FlatBuffers: object serialization must not be nested.");}g.slot=function(a){this.pa[a]=this.offset()};
g.offset=function(){return this.a.F.length-this.M};function Qa(a,b){Ia(a,4,0);a.da(a.offset()-b+4)}function t(a,b){Ra(a);null==a.pa&&(a.pa=[]);a.yc=b;for(var c=0;c<b;c++)a.pa[c]=0;a.hb=!0;a.qc=a.offset()}
function u(a){if(null==a.pa||!a.hb)throw Error("FlatBuffers: endObject called without startObject");Ia(a,4,0);a.da(0);for(var b=a.offset(),c=a.yc-1;0<=c&&0==a.pa[c];c--);for(var f=c+1;0<=c;c--)Ka(a,0!=a.pa[c]?b-a.pa[c]:0);Ka(a,b-a.qc);f=2*(f+2);Ka(a,f);var d=0,e=a.M;c=0;a:for(;c<a.nb.length;c++){var h=a.a.F.length-a.nb[c];if(f==Sa(a.a,h)){for(var l=2;l<f;l+=2)if(Sa(a.a,e+l)!=Sa(a.a,h+l))continue a;d=a.nb[c];break}}d?(a.M=a.a.F.length-b,a.a.da(a.M,d-b)):(a.nb.push(a.offset()),a.a.da(a.a.F.length-b,
a.offset()-b));a.hb=!1;return b}g.finish=function(a,b){if(b){Ia(this,this.jb,8);if(4!=b.length)throw Error("FlatBuffers: file identifier must be length 4");for(var c=3;0<=c;c--)this.Pa(b.charCodeAt(c))}Ia(this,this.jb,4);Qa(this,a);this.a.setPosition(this.M)};function Ta(a,b,c,f){Ra(a);a.xc=c;Ia(a,4,b*c);Ia(a,f,b*c)}function Ua(a){a.da(a.xc);return a.offset()}
function Va(a,b){if(b instanceof Uint8Array)var c=b;else{c=[];for(var f=0;f<b.length;){var d=b.charCodeAt(f++);if(!(55296>d||56320<=d)){var e=b.charCodeAt(f++);d=(d<<10)+e+-56613888}128>d?c.push(d):(2048>d?c.push(d>>6&31|192):(65536>d?c.push(d>>12&15|224):c.push(d>>18&7|240,d>>12&63|128),c.push(d>>6&63|128)),c.push(d&63|128))}}Ia(a,1,0);a.Pa(0);Ta(a,1,c.length,1);a.a.setPosition(a.M-=c.length);f=0;b=a.M;for(d=a.a.ma();f<c.length;f++)d[b++]=c[f];return Ua(a)}
g.oa=function(a,b){return 0==a&&0==b?Ea:new Da(a,b)};function Ga(a){this.F=a;this.rc=0}g=Ga.prototype;g.clear=function(){this.rc=0};g.ma=function(){return this.F};g.position=function(){return this.rc};g.setPosition=function(a){this.rc=a};function Wa(a,b){return a.F[b]}function Sa(a,b){return(a.F[b]|a.F[b+1]<<8)<<16>>16}g.v=function(a){return this.F[a]|this.F[a+1]<<8|this.F[a+2]<<16|this.F[a+3]<<24};function Xa(a,b){return new Da(a.v(b),a.v(b+4))}g.Pa=function(a,b){this.F[a]=b};
g.zc=function(a,b){this.F[a]=b;this.F[a+1]=b>>8};g.da=function(a,b){this.F[a]=b;this.F[a+1]=b>>8;this.F[a+2]=b>>16;this.F[a+3]=b>>24};g.qa=function(a,b){this.da(a,b.low);this.da(a+4,b.high)};function w(a,b,c){b-=a.v(b);return c<Sa(a,b)?Sa(a,b+c):0}function Ya(a,b,c){b.c=c+a.v(c);b.a=a;return b}
function Za(a,b,c){b+=a.v(b);var f=a.v(b),d="",e=0;b+=4;if(1===c)return a.F.subarray(b,b+f);for(;e<f;){c=Wa(a,b+e++);if(!(192>c)){var h=Wa(a,b+e++);if(224>c)c=(c&31)<<6|h&63;else{var l=Wa(a,b+e++);if(240>c)c=(c&15)<<12|(h&63)<<6|l&63;else{var m=Wa(a,b+e++);c=(c&7)<<18|(h&63)<<12|(l&63)<<6|m&63}}}65536>c?d+=String.fromCharCode(c):(c-=65536,d+=String.fromCharCode((c>>10)+55296,(c&1023)+56320))}return d}function $a(a,b){return b+a.v(b)}function ab(a,b){return b+a.v(b)+4}
function bb(a,b){return a.v(b+a.v(b))}g.oa=function(a,b){return 0==a&&0==b?Ea:new Da(a,b)};function cb(a){if(void 0===a)return{};if(a===Object(a))return a;throw TypeError("Could not convert argument to dictionary");}function db(a){this.Aa=[].slice.call(a)}db.prototype={endOfStream:function(){return!this.Aa.length},read:function(){return this.Aa.length?this.Aa.shift():-1},prepend:function(a){if(Array.isArray(a))for(;a.length;)this.Aa.unshift(a.pop());else this.Aa.unshift(a)},push:function(a){if(Array.isArray(a))for(;a.length;)this.Aa.push(a.shift());else this.Aa.push(a)}};
function eb(a){if(a)throw TypeError("Decoder error");return 65533}function fb(a,b){if(!(this instanceof fb))return new fb(a,b);a=void 0!==a?String(a).toLowerCase():"utf-8";if("utf-8"!==a)throw Error("Encoding not supported. Only utf-8 is supported");b=cb(b);this.pb=this.xa=!1;this.vb=null;this.Ic=!!b.fatal;this.Kc=!!b.ignoreBOM;Object.defineProperty(this,"encoding",{value:"utf-8"});Object.defineProperty(this,"fatal",{value:this.Ic});Object.defineProperty(this,"ignoreBOM",{value:this.Kc})}
fb.prototype={decode:function(a,b){a="object"===typeof a&&a instanceof ArrayBuffer?new Uint8Array(a):"object"===typeof a&&"buffer"in a&&a.buffer instanceof ArrayBuffer?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(0);b=cb(b);this.xa||(this.vb=new gb({fatal:this.Ic}),this.pb=!1);this.xa=!!b.stream;a=new db(a);b=[];for(var c;!a.endOfStream();){c=this.vb.gb(a,a.read());if(-1===c)break;null!==c&&(Array.isArray(c)?b.push.apply(b,c):b.push(c))}if(!this.xa){do{c=this.vb.gb(a,a.read());
if(-1===c)break;null!==c&&(Array.isArray(c)?b.push.apply(b,c):b.push(c))}while(!a.endOfStream());this.vb=null}!b.length||-1===["utf-8"].indexOf(this.encoding)||this.Kc||this.pb||(65279===b[0]?(this.pb=!0,b.shift()):this.pb=!0);a="";for(c=0;c<b.length;++c){var f=b[c];65535>=f?a+=String.fromCharCode(f):(f-=65536,a+=String.fromCharCode((f>>10)+55296,(f&1023)+56320))}return a}};
function hb(a,b){if(!(this instanceof hb))return new hb(a,b);a=void 0!==a?String(a).toLowerCase():"utf-8";if("utf-8"!==a)throw Error("Encoding not supported. Only utf-8 is supported");cb(b);this.xa=!1;this.xb=null;Object.defineProperty(this,"encoding",{value:"utf-8"})}
hb.prototype={encode:function(a,b){a=a?String(a):"";b=cb(b);this.xa||(this.xb=new ib);this.xa=!!b.stream;b=[];for(var c=String(a),f=c.length,d=0,e=[];d<f;){var h=c.charCodeAt(d);if(55296>h||57343<h)e.push(h);else if(56320<=h&&57343>=h)e.push(65533);else if(55296<=h&&56319>=h)if(d===f-1)e.push(65533);else{var l=a.charCodeAt(d+1);56320<=l&&57343>=l?(e.push(65536+((h&1023)<<10)+(l&1023)),d+=1):e.push(65533)}d+=1}for(a=new db(e);!a.endOfStream();){c=this.xb.gb(a,a.read());if(-1===c)break;Array.isArray(c)?
b.push.apply(b,c):b.push(c)}if(!this.xa){for(;;){c=this.xb.gb(a,a.read());if(-1===c)break;Array.isArray(c)?b.push.apply(b,c):b.push(c)}this.xb=null}return new Uint8Array(b)}};
function gb(a){var b=a.fatal,c=0,f=0,d=0,e=128,h=191;this.gb=function(l,m){if(-1===m&&0!==d)return d=0,eb(b);if(-1===m)return-1;if(0===d){if(0<=m&&127>=m)return m;if(194<=m&&223>=m)d=1,c=m-192;else if(224<=m&&239>=m)224===m&&(e=160),237===m&&(h=159),d=2,c=m-224;else if(240<=m&&244>=m)240===m&&(e=144),244===m&&(h=143),d=3,c=m-240;else return eb(b);c<<=6*d;return null}if(!(e<=m&&m<=h))return c=d=f=0,e=128,h=191,l.prepend(m),eb(b);e=128;h=191;f+=1;c+=m-128<<6*(d-f);if(f!==d)return null;l=c;c=d=f=0;return l}}
function ib(){this.gb=function(a,b){if(-1===b)return-1;if(0<=b&&127>=b)return b;if(128<=b&&2047>=b){var c=1;var f=192}else 2048<=b&&65535>=b?(c=2,f=224):65536<=b&&1114111>=b&&(c=3,f=240);for(a=[(b>>6*c)+f];0<c;)a.push(128|b>>6*(c-1)&63),--c;return a}};var jb="function"===typeof Buffer?Buffer:null,kb="function"===typeof TextDecoder&&"function"===typeof TextEncoder,lb=function(a){if(kb||!jb){var b=new a("utf-8");return function(c){return b.decode(c)}}return function(c){c=x(c);return jb.from(c.buffer,c.byteOffset,c.length).toString()}}("undefined"!==typeof TextDecoder?TextDecoder:fb),mb=function(a){if(kb||!jb){var b=new a;return function(c){return b.encode(c)}}return function(c){return x(jb.from(void 0===c?"":c,"utf8"))}}("undefined"!==typeof TextEncoder?
TextEncoder:hb);var nb=Object.freeze({done:!0,value:void 0});function ob(a){this.Ua=a}k.global.Object.defineProperties(ob.prototype,{schema:{configurable:!0,enumerable:!0,get:function(){return this.Ua.schema}},Ad:{configurable:!0,enumerable:!0,get:function(){return this.Ua.batches||[]}},dictionaries:{configurable:!0,enumerable:!0,get:function(){return this.Ua.dictionaries||[]}}});function pb(){}pb.prototype.tee=function(){return qb(this).tee()};function rb(a,b,c){return rb(a.Oc||(a.Oc=a.toNodeStream()),b,c)}
pb.prototype.pipeTo=function(a,b){return qb(this).pipeTo(a,b)};pb.prototype.pipeThrough=function(a,b){return qb(this).pipeThrough(a,b)};function qb(a){return a.Ec||(a.Ec=a.toDOMStream())}k.l();k.N();function sb(){var a=this;this.B=[];this.Na=[];this.Tb=new Promise(function(b){return a.X=b})}k.b(sb,pb);sb.prototype.cancel=function(a){var b=this;return k.u(function(c){return p(c,b.return(a),0)})};
sb.prototype.write=function(a){if(!this.X)throw Error(this+" is closed");0>=this.Na.length?this.B.push(a):this.Na.shift().resolve({done:!1,value:a})};sb.prototype.abort=function(a){this.X&&(0>=this.Na.length?this.Vb={error:a}:this.Na.shift().reject({done:!0,value:a}))};sb.prototype.close=function(){if(this.X){for(var a=this.Na;0<a.length;)a.shift().resolve(nb);this.X();this.X=void 0}};sb.prototype[Symbol.asyncIterator]=function(){return this};g=sb.prototype;
g.toDOMStream=function(a){return tb(this.X||this.Vb?this:this.B,a)};g.toNodeStream=function(){return ub()};g.throw=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.abort(a),2):c.return(nb)})};g.return=function(){var a=this;return k.u(function(b){return 1==b.j?p(b,a.close(),2):b.return(nb)})};g.read=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.next(a,"read"),2):c.return(c.m.value)})};
g.peek=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.next(a,"peek"),2):c.return(c.m.value)})};g.next=function(a){for(var b=0;b<arguments.length;++b);var c=this;return 0<this.B.length?Promise.resolve({done:!1,value:this.B.shift()}):this.Vb?Promise.reject({done:!0,value:this.Vb.error}):this.X?new Promise(function(f,d){c.Na.push({resolve:f,reject:d})}):Promise.resolve(nb)};k.global.Object.defineProperties(sb.prototype,{closed:{configurable:!0,enumerable:!0,get:function(){return this.Tb}}});var vb=k.w(function(){function a(){throw Error("BigInt is not available in this environment");}function b(){throw a();}b.jg=function(){throw a();};b.kg=function(){throw a();};return"undefined"!==typeof BigInt?[BigInt,!0]:[b,!1]}()),wb=vb.next().value,xb=vb.next().value,yb=k.w(function(){function a(){throw b();}function b(){throw Error("BigInt64Array is not available in this environment");}a.of=function(){throw b();};a.from=function(){throw b();};k.global.Object.defineProperties(a,{BYTES_PER_ELEMENT:{configurable:!0,
enumerable:!0,get:function(){return 8}}});return"undefined"!==typeof BigInt64Array?[BigInt64Array,!0]:[a,!1]}()),zb=yb.next().value;yb.next();
var Ab=k.w(function(){function a(){throw b();}function b(){throw Error("BigUint64Array is not available in this environment");}a.of=function(){throw b();};a.from=function(){throw b();};k.global.Object.defineProperties(a,{BYTES_PER_ELEMENT:{configurable:!0,enumerable:!0,get:function(){return 8}}});return"undefined"!==typeof BigUint64Array?[BigUint64Array,!0]:[a,!1]}()),Bb=Ab.next().value;Ab.next();function Cb(a){return"function"===typeof a}function Db(a){return null!=a&&Object(a)===a}
function Eb(a){return Db(a)&&Cb(a.then)}function Fb(a){k.l();k.D();return Db(a)&&Cb(a[Symbol.iterator])}function Gb(a){k.l();k.N();return Db(a)&&Cb(a[Symbol.asyncIterator])}function Hb(a){return Db(a)&&Db(a.schema)}function Ib(a){return Db(a)&&Cb(a.cancel)&&Cb(a.getReader)&&!(a instanceof pb)}function Jb(a){return Db(a)&&Cb(a.read)&&Cb(a.pipe)&&"boolean"===typeof a.readable&&!(a instanceof pb)};var Kb="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function Lb(a){for(var b=a[0]?[a[0]]:[],c,f,d,e,h,l,m=0,n=0,r=a.length;++m<r;)h=b[n],l=a[m],!h||!l||h.buffer!==l.buffer||l.byteOffset<h.byteOffset?l&&(b[++n]=l):(f=h,c=f.byteOffset,d=f.byteLength,e=l,f=e.byteOffset,e=e.byteLength,c+d<f||f+e<c?l&&(b[++n]=l):b[n]=new Uint8Array(h.buffer,c,f-c+e));return b}
function Mb(a,b,c,f){c=void 0===c?0:c;f=void 0===f?b.byteLength:f;var d=a.byteLength,e=new Uint8Array(a.buffer,a.byteOffset,d);b=new Uint8Array(b.buffer,b.byteOffset,Math.min(f,d));e.set(b,c);return a}
function Nb(a,b){a=Lb(a);for(var c=a.reduce(function(n,r){return n+r.byteLength},0),f,d,e=0,h=-1,l=Math.min(b||Infinity,c),m=a.length;++h<m;){b=a[h];f=b.subarray(0,Math.min(b.length,l-e));if(l<=e+f.length){f.length<b.length?a[h]=b.subarray(f.length):f.length===b.length&&h++;d?Mb(d,f,e):d=f;break}Mb(d||(d=new Uint8Array(l)),f,e);e+=f.length}return[d||new Uint8Array(0),a.slice(h),c-(d?d.byteLength:0)]}
function z(a,b){b=Db(b)&&"done"in b&&"value"in b?b.value:b;if(b instanceof a)return a===Uint8Array?new a(b.buffer,b.byteOffset,b.byteLength):b;if(!b)return new a(0);"string"===typeof b&&(b=mb(b));return b instanceof ArrayBuffer||b instanceof Kb?new a(b):b instanceof Ga?z(a,b.ma()):ArrayBuffer.isView(b)?0>=b.byteLength?new a(0):new a(b.buffer,b.byteOffset,b.byteLength/a.BYTES_PER_ELEMENT):a.from(b)}function Ob(a){return z(Int32Array,a)}function Pb(a){return z(zb,a)}
function x(a){return z(Uint8Array,a)}function Qb(a){return z(Bb,a)}function Rb(a){a.next();return a}
function Tb(a,b){var c,f;return k.C.H(Tb,function(d){c=function l(h){return k.C.H(l,function(m){return p(m,h,0)})};f="string"===typeof b?c(b):ArrayBuffer.isView(b)?c(b):b instanceof ArrayBuffer?c(b):b instanceof Kb?c(b):Fb(b)?b:c(b);k.l();k.D();return ea(d,Rb(function m(l){var n,r,v;return k.C.H(m,function(y){1==y.j&&(n=null);if(5!=y.j)return r=l,v=r.next,p(y,z(a,n),5);n=v.call(r,y.m);if(!n.done)return y.i(2);y.j=0})}(f[Symbol.iterator]())),0)})}function Ub(a){return Tb(Uint8Array,a)}
function Vb(a,b){return new wa(function f(){var d,e,h,l,m,n,r;return k.C.H(f,function(v){switch(v.j){case 1:if(!Eb(b)){v.i(2);break}d=q;e=1;h=Vb;l=a;return p(v,new q(2,b),4);case 4:return p(v,new d(e,h(l,v.m)),3);case 3:return v.return(v.m);case 2:return m=function(y){return new wa(function Z(){var fa,C;return k.C.H(Z,function(aa){return 1==aa.j?(fa=q,C=0,p(aa,new q(2,y),3)):p(aa,new fa(C,aa.m),0)})}())},n=function(y){return new wa(function Z(){return k.C.H(Z,function(fa){k.l();k.D();return p(fa,
new q(1,Rb(function Sb(aa){var T,oa,Ie;return k.C.H(Sb,function(hc){1==hc.j&&(T=null);if(5!=hc.j)return oa=aa,Ie=oa.next,p(hc,T&&T.value,5);T=Ie.call(oa,hc.m);if(!T.done)return hc.i(2);hc.j=0})}(y[Symbol.iterator]()))),0)})}())},r="string"===typeof b?m(b):ArrayBuffer.isView(b)?m(b):b instanceof ArrayBuffer?m(b):b instanceof Kb?m(b):Fb(b)?n(b):Gb(b)?b:m(b),k.l(),k.N(),p(v,new q(1,Rb(function(y){return new wa(function Z(){var fa,C,aa,Sb,T;return k.C.H(Z,function(oa){switch(oa.j){case 1:fa=null;case 2:return C=
q,aa=2,Sb=y,T=Sb.next,p(oa,new q(0,z(a,fa)),6);case 6:return p(oa,new C(aa,T.call(Sb,oa.m)),5);case 5:fa=oa.m,fa.done?oa.j=0:oa.i(2)}})}())}(r[Symbol.asyncIterator]()))),0)}})}())}function Wb(a){return Vb(Uint8Array,a)}function Xb(a,b,c){if(0!==a){c=c.slice(0,b+1);for(var f=-1;++f<=b;)c[f]+=a}return c}function Yb(a,b){var c=0,f=a.length;if(f!==b.length)return!1;if(0<f){do if(a[c]!==b[c])return!1;while(++c<f)}return!0}var B={};B.compareArrayLike=Yb;B.joinUint8Arrays=Nb;B.memcpy=Mb;
B.rebaseValueOffsets=Xb;B.toArrayBufferView=z;B.toArrayBufferViewAsyncIterator=Vb;B.toArrayBufferViewIterator=Tb;B.toBigInt64Array=Pb;B.toBigUint64Array=Qb;B.toFloat32Array=function(a){return z(Float32Array,a)};B.toFloat32ArrayAsyncIterator=function(a){return Vb(Float32Array,a)};B.toFloat32ArrayIterator=function(a){return Tb(Float32Array,a)};B.toFloat64Array=function(a){return z(Float64Array,a)};B.toFloat64ArrayAsyncIterator=function(a){return Vb(Float64Array,a)};
B.toFloat64ArrayIterator=function(a){return Tb(Float64Array,a)};B.toInt16Array=function(a){return z(Int16Array,a)};B.toInt16ArrayAsyncIterator=function(a){return Vb(Int16Array,a)};B.toInt16ArrayIterator=function(a){return Tb(Int16Array,a)};B.toInt32Array=Ob;B.toInt32ArrayAsyncIterator=function(a){return Vb(Int32Array,a)};B.toInt32ArrayIterator=function(a){return Tb(Int32Array,a)};B.toInt8Array=function(a){return z(Int8Array,a)};B.toInt8ArrayAsyncIterator=function(a){return Vb(Int8Array,a)};
B.toInt8ArrayIterator=function(a){return Tb(Int8Array,a)};B.toUint16Array=function(a){return z(Uint16Array,a)};B.toUint16ArrayAsyncIterator=function(a){return Vb(Uint16Array,a)};B.toUint16ArrayIterator=function(a){return Tb(Uint16Array,a)};B.toUint32Array=function(a){return z(Uint32Array,a)};B.toUint32ArrayAsyncIterator=function(a){return Vb(Uint32Array,a)};B.toUint32ArrayIterator=function(a){return Tb(Uint32Array,a)};B.toUint8Array=x;B.toUint8ArrayAsyncIterator=Wb;B.toUint8ArrayIterator=Ub;
B.toUint8ClampedArray=function(a){return z(Uint8ClampedArray,a)};B.toUint8ClampedArrayAsyncIterator=function(a){return Vb(Uint8ClampedArray,a)};B.toUint8ClampedArrayIterator=function(a){return Tb(Uint8ClampedArray,a)};function tb(){throw Error('"toDOMStream" not available in this environment');}function ub(){throw Error('"toNodeStream" not available in this environment');}function Zb(a){a.next();return a}
function $b(a){var b,c,f,d,e,h,l,m,n,r,v,y;return k.C.H($b,function(A){switch(A.j){case 1:return c=!1,f=[],l=0,p(A,null,2);case 2:m=A.m,e=m.na,h=m.size,k.l(),k.D(),n=Ub(a)[Symbol.iterator](),A.ua=3,A.ia=4;case 6:if(r=isNaN(h-l)?n.next(void 0):n.next(h-l),b=r.done,d=r.value,!b&&0<d.byteLength&&(f.push(d),l+=d.byteLength),!(b||h<=l)){A.i(8);break}case 10:if("peek"===e)var Z=Nb(f,h)[0];else Z=k.w(Nb(f,h)),d=Z.next().value,f=Z.next().value,l=Z.next().value,Z=d;return p(A,Z,13);case 13:if(v=A.m,e=v.na,
h=v.size,h<l){A.i(10);break}case 8:if(!b){A.i(6);break}case 4:ja(A);!1===c&&"function"===typeof n.return&&n.return();ka(A);break;case 3:y=ia(A),(c=!0,"function"===typeof n.throw)&&n.throw(y),A.i(4)}})}
function ac(a){return new wa(function c(){var f,d,e,h,l,m,n,r,v,y,A,Z,fa;return k.C.H(c,function(C){switch(C.j){case 1:return d=!1,e=[],n=0,p(C,new q(0,null),2);case 2:r=C.m,l=r.na,m=r.size,k.l(),k.N(),v=Wb(a)[Symbol.asyncIterator](),C.ua=3,C.ia=4;case 6:return isNaN(m-n)?p(C,new q(2,v.next(void 0)),12):p(C,new q(2,v.next(m-n)),11);case 11:y=C.m;C.i(10);break;case 12:y=C.m;case 10:if(A=y,f=A.done,h=A.value,!f&&0<h.byteLength&&(e.push(h),n+=h.byteLength),!(f||m<=n)){C.i(8);break}case 14:if("peek"===
l)var aa=Nb(e,m)[0];else aa=k.w(Nb(e,m)),h=aa.next().value,e=aa.next().value,n=aa.next().value,aa=h;return p(C,new q(0,aa),17);case 17:if(Z=C.m,l=Z.na,m=Z.size,m<n){C.i(14);break}case 8:if(!f){C.i(6);break}case 4:ja(C);if(!1!==d||"function"!==typeof v.return){C.i(18);break}return p(C,new q(2,v.return()),19);case 19:case 18:ka(C);break;case 3:fa=ia(C);if(d=!0,"function"!==typeof v.throw){C.i(20);break}return p(C,new q(2,v.throw(fa)),21);case 21:case 20:C.i(4)}})}())}
function bc(a){return new wa(function c(){var f,d,e,h,l,m,n,r,v,y,A,Z,fa;return k.C.H(c,function(C){switch(C.j){case 1:return d=f=!1,e=[],n=0,p(C,new q(0,null),2);case 2:r=C.m,l=r.na,m=r.size,v=new cc(a),C.ua=3,C.ia=4;case 6:return isNaN(m-n)?p(C,new q(2,v.read(void 0)),12):p(C,new q(2,v.read(m-n)),11);case 11:y=C.m;C.i(10);break;case 12:y=C.m;case 10:if(A=y,f=A.done,h=A.value,!f&&0<h.byteLength&&(e.push(x(h)),n+=h.byteLength),!(f||m<=n)){C.i(8);break}case 14:if("peek"===l)var aa=Nb(e,m)[0];else aa=
k.w(Nb(e,m)),h=aa.next().value,e=aa.next().value,n=aa.next().value,aa=h;return p(C,new q(0,aa),17);case 17:if(Z=C.m,l=Z.na,m=Z.size,m<n){C.i(14);break}case 8:if(!f){C.i(6);break}case 4:ja(C);if(!1!==d){a.locked&&v.releaseLock();C.i(18);break}return p(C,new q(2,v.cancel()),19);case 19:case 18:ka(C);break;case 3:return fa=ia(C),d=!0,p(C,new q(2,v.cancel(fa)),21);case 21:case 20:C.i(4)}})}())}
function cc(a){this.source=a;this.Ga=this.Fa=null;try{this.Ie=!!(this.ka=dc(this))}catch(b){this.Ie=!(this.ka=ec(this))}}cc.prototype.releaseLock=function(){this.ka&&this.ka.releaseLock();this.ka=this.Fa=this.Ga=null};cc.prototype.cancel=function(a){var b=this,c,f,d;return k.u(function(e){if(1==e.j)return c=b,f=c.ka,d=c.source,f?p(e,f.cancel(a).catch(function(){}),3):e.i(2);d&&d.locked&&b.releaseLock();e.j=0})};
cc.prototype.read=function(a){var b=this,c,f;return k.u(function(d){switch(d.j){case 1:return 0===a?d.return({done:null==b.ka,value:new Uint8Array(0)}):b.Ie&&"number"===typeof a?p(d,fc(b,a),4):p(d,ec(b).read(),5);case 4:c=d.m;d.i(3);break;case 5:c=d.m;case 3:return f=c,!f.done&&(f.value=x(f)),d.return(f)}})};function ec(a){a.Fa&&a.releaseLock();a.Ga||(a.Ga=a.source.getReader(),a.Ga.closed.catch(function(){}));return a.ka=a.Ga}
function dc(a){a.Ga&&a.releaseLock();a.Fa||(a.Fa=a.source.getReader({mode:"byob"}),a.Fa.closed.catch(function(){}));return a.ka=a.Fa}function fc(a,b){return k.u(function(c){return 1==c.j?p(c,gc(dc(a),new ArrayBuffer(b),0,b),2):c.return(c.m)})}k.global.Object.defineProperties(cc.prototype,{closed:{configurable:!0,enumerable:!0,get:function(){return this.ka?this.ka.closed.catch(function(){}):Promise.resolve()}}});
function gc(a,b,c,f){var d,e,h;return k.u(function(l){switch(l.j){case 1:return c>=f?l.return({done:!1,value:new Uint8Array(b,0,f)}):p(l,a.read(new Uint8Array(b,c,f-c)),2);case 2:d=l.m;e=d.done;h=d.value;if(!((c+=h.byteLength)<f)||e){l.i(3);break}return p(l,gc(a,h.buffer,c,f),4);case 4:return l.return(l.m);case 3:return l.return({done:e,value:new Uint8Array(h.buffer,0,c)})}})}function ic(a,b){function c(d){return f([b,d])}var f;return[b,c,new Promise(function(d){return(f=d)&&a.once(b,c)})]}
function jc(a){return new wa(function c(){function f(){if("peek"===n)return Nb(y,r)[0];var T=k.w(Nb(y,r));A=T.next().value;y=T.next().value;v=T.next().value;return A}function d(T,oa){A=y=null;return new Promise(function(Ie,hc){var ig,Ke,Gi,jg,Hi,Ii,Ji;return k.u(function(dm){ig=k.w(T);for(Ke=ig.next();!Ke.done;Ke=ig.next())Gi=Ke.value,jg=k.w(Gi),Hi=jg.next().value,Ii=jg.next().value,a.off(Hi,Ii);try{(Ji=a.destroy)&&Ji.call(a,oa),oa=void 0}catch(em){oa=em||oa}finally{null!=oa?hc(oa):Ie()}dm.j=0})})}
var e,h,l,m,n,r,v,y,A,Z,fa,C,aa,Sb;return k.C.H(c,function(T){switch(T.j){case 1:return e=[],h="error",l=!1,m=null,v=0,y=[],p(T,new q(0,null),2);case 2:Z=T.m;n=Z.na;r=Z.size;if(!a.isTTY){T.i(3);break}return p(T,new q(0,new Uint8Array(0)),4);case 4:return T.return(T.m);case 3:ha(T,5),e[0]=ic(a,"end"),e[1]=ic(a,"error");case 7:return e[2]=ic(a,"readable"),fa=k,C=fa.w,p(T,new q(2,Promise.race(e.map(function(oa){return oa[2]}))),10);case 10:aa=C.call(fa,T.m);h=aa.next().value;m=aa.next().value;if("error"===
h){T.i(5);break}(l="end"===h)||(isFinite(r-v)?(A=x(a.read(r-v)),A.byteLength<r-v&&(A=x(a.read(void 0)))):A=x(a.read(void 0)),0<A.byteLength&&(y.push(A),v+=A.byteLength));if(!(l||r<=v)){T.i(9);break}case 12:return p(T,new q(0,f()),15);case 15:if(Sb=T.m,n=Sb.na,r=Sb.size,r<v){T.i(12);break}case 9:if(!l){T.i(7);break}case 5:return ja(T),p(T,new q(2,d(e,"error"===h?m:null)),16);case 16:ka(T)}})}())};function D(){};var E,kc=E||(E={}),lc=kc.f||(kc.f={}),mc=lc.g||(lc.g={}),nc=mc.h||(mc.h={}),oc=nc.MetadataVersion||(nc.MetadataVersion={});oc[oc.V1=0]="V1";oc[oc.V2=1]="V2";oc[oc.V3=2]="V3";oc[oc.V4=3]="V4";var pc=E||(E={}),qc=pc.f||(pc.f={}),rc=qc.g||(qc.g={}),sc=rc.h||(rc.h={}),tc=sc.UnionMode||(sc.UnionMode={});tc[tc.Sparse=0]="Sparse";tc[tc.Dense=1]="Dense";var uc=E||(E={}),vc=uc.f||(uc.f={}),wc=vc.g||(vc.g={}),xc=wc.h||(wc.h={}),yc=xc.Precision||(xc.Precision={});yc[yc.HALF=0]="HALF";yc[yc.SINGLE=1]="SINGLE";
yc[yc.DOUBLE=2]="DOUBLE";var zc=E||(E={}),Ac=zc.f||(zc.f={}),Bc=Ac.g||(Ac.g={}),Cc=Bc.h||(Bc.h={}),Dc=Cc.DateUnit||(Cc.DateUnit={});Dc[Dc.DAY=0]="DAY";Dc[Dc.MILLISECOND=1]="MILLISECOND";var Ec=E||(E={}),Fc=Ec.f||(Ec.f={}),Gc=Fc.g||(Fc.g={}),Hc=Gc.h||(Gc.h={}),Ic=Hc.TimeUnit||(Hc.TimeUnit={});Ic[Ic.SECOND=0]="SECOND";Ic[Ic.MILLISECOND=1]="MILLISECOND";Ic[Ic.MICROSECOND=2]="MICROSECOND";Ic[Ic.NANOSECOND=3]="NANOSECOND";
var Jc=E||(E={}),Kc=Jc.f||(Jc.f={}),Lc=Kc.g||(Kc.g={}),Mc=Lc.h||(Lc.h={}),Nc=Mc.IntervalUnit||(Mc.IntervalUnit={});Nc[Nc.YEAR_MONTH=0]="YEAR_MONTH";Nc[Nc.DAY_TIME=1]="DAY_TIME";var Oc=E||(E={}),Pc=Oc.f||(Oc.f={}),Qc=Pc.g||(Pc.g={}),Rc=Qc.h||(Qc.h={}),F=Rc.Type||(Rc.Type={});F[F.NONE=0]="NONE";F[F.Null=1]="Null";F[F.Int=2]="Int";F[F.FloatingPoint=3]="FloatingPoint";F[F.Binary=4]="Binary";F[F.Utf8=5]="Utf8";F[F.Bool=6]="Bool";F[F.Decimal=7]="Decimal";F[F.Date=8]="Date";F[F.Time=9]="Time";
F[F.Timestamp=10]="Timestamp";F[F.Interval=11]="Interval";F[F.List=12]="List";F[F.Struct_=13]="Struct_";F[F.Union=14]="Union";F[F.FixedSizeBinary=15]="FixedSizeBinary";F[F.FixedSizeList=16]="FixedSizeList";F[F.Map=17]="Map";F[F.Duration=18]="Duration";F[F.LargeBinary=19]="LargeBinary";F[F.LargeUtf8=20]="LargeUtf8";F[F.LargeList=21]="LargeList";var Sc=E||(E={}),Tc=Sc.f||(Sc.f={}),Uc=Tc.g||(Tc.g={}),Vc=Uc.h||(Uc.h={}),Wc=Vc.Nb||(Vc.Nb={});Wc[Wc.Little=0]="Little";Wc[Wc.Big=1]="Big";
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.kh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.Be=function(e){t(e,0)};d.Rd=function(e){return u(e)};d.Ig=function(e){d.Be(e);return d.Rd(e)};f.Null=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.nh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.Ee=function(e){t(e,0)};d.Ud=function(e){return u(e)};d.Lg=function(e){d.Ee(e);return d.Ud(e)};f.Struct_=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.ih=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.ye=function(e){t(e,0)};d.Od=function(e){return u(e)};d.Fg=function(e){d.ye(e);return d.Od(e)};f.List=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.gh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.Yf=function(e){t(e,0)};d.wf=function(e){return u(e)};d.Dg=function(e){d.Yf(e);return d.wf(e)};f.LargeList=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.$g=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.listSize=function(){var e=w(this.a,this.c,4);return e?this.a.v(this.c+e):0};d.te=function(e){t(e,1)};d.kd=function(e,h){Na(e,0,h,0)};d.Jd=function(e){return u(e)};d.wg=function(e,h){d.te(e);d.kd(e,h);return d.Jd(e)};f.FixedSizeList=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||
(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.jh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.keysSorted=function(){var e=w(this.a,this.c,4);return e?!!(this.a.F[this.c+e]<<24>>24):!1};d.ze=function(e){t(e,1)};d.hd=function(e,h){La(e,0,+h,0)};d.Pd=function(e){return u(e)};d.Gg=function(e,h){d.ze(e);d.hd(e,h);return d.Pd(e)};f.Map=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||
(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.qh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.mode=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.UnionMode.Sparse};d.prototype.typeIds=function(e){var h=w(this.a,this.c,6);return h?this.a.v(ab(this.a,this.c+h)+4*e):0};d.prototype.cg=function(){var e=w(this.a,this.c,6);return e?new Int32Array(this.a.ma().buffer,
this.a.ma().byteOffset+ab(this.a,this.c+e),bb(this.a,this.c+e)):null};d.Ge=function(e){t(e,2)};d.ld=function(e,h){Ma(e,h,a.f.g.h.UnionMode.Sparse)};d.ud=function(e,h){Pa(e,1,h)};d.rf=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--){var m=e,n=h[l];Ia(m,4,0);m.da(n)}return Ua(e)};d.bg=function(e,h){Ta(e,4,h,4)};d.Wd=function(e){return u(e)};d.Og=function(e,h,l){d.Ge(e);d.ld(e,h);d.ud(e,l);return d.Wd(e)};f.Union=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.bh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.bitWidth=function(){var e=w(this.a,this.c,4);return e?this.a.v(this.c+e):0};d.prototype.isSigned=function(){var e=w(this.a,this.c,6);return e?!!(this.a.F[this.c+e]<<24>>24):!1};d.we=function(e){t(e,2)};d.ab=function(e,h){Na(e,0,h,0)};d.gd=function(e,h){La(e,1,+h,0)};d.Md=
function(e){return u(e)};d.zg=function(e,h,l){d.we(e);d.ab(e,h);d.gd(e,l);return d.Md(e)};f.Int=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.ah=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.precision=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.Precision.HALF};d.ue=function(e){t(e,1)};d.cb=function(e,h){Ma(e,h,a.f.g.h.Precision.HALF)};d.Kd=function(e){return u(e)};d.xg=function(e,h){d.ue(e);d.cb(e,h);return d.Kd(e)};f.FloatingPoint=
d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.rh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.He=function(e){t(e,0)};d.Xd=function(e){return u(e)};d.Pg=function(e){d.He(e);return d.Xd(e)};f.Utf8=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Rg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.ie=function(e){t(e,0)};d.Bd=function(e){return u(e)};d.ng=function(e){d.ie(e);return d.Bd(e)};f.Binary=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.hh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.Zf=function(e){t(e,0)};d.xf=function(e){return u(e)};d.Eg=function(e){d.Zf(e);return d.xf(e)};f.LargeUtf8=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.fh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.Xf=function(e){t(e,0)};d.vf=function(e){return u(e)};d.Cg=function(e){d.Xf(e);return d.vf(e)};f.LargeBinary=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Zg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.byteWidth=function(){var e=w(this.a,this.c,4);return e?this.a.v(this.c+e):0};d.se=function(e){t(e,1)};d.Uc=function(e,h){Na(e,0,h,0)};d.Id=function(e){return u(e)};d.vg=function(e,h){d.se(e);d.Uc(e,h);return d.Id(e)};f.FixedSizeBinary=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||
(a.f={}))})(E||(E={}));(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Sg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.je=function(e){t(e,0)};d.Cd=function(e){return u(e)};d.og=function(e){d.je(e);return d.Cd(e)};f.Bool=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Ug=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.precision=function(){var e=w(this.a,this.c,4);return e?this.a.v(this.c+e):0};d.prototype.scale=function(){var e=w(this.a,this.c,6);return e?this.a.v(this.c+e):0};d.oe=function(e){t(e,2)};d.cb=function(e,h){Na(e,0,h,0)};d.qd=function(e,h){Na(e,1,h,0)};d.Ed=function(e){return u(e)};
d.qg=function(e,h,l){d.oe(e);d.cb(e,h);d.qd(e,l);return d.Ed(e)};f.Decimal=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Tg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.DateUnit.MILLISECOND};d.me=function(e){t(e,1)};d.Z=function(e,h){Ma(e,h,a.f.g.h.DateUnit.MILLISECOND)};d.Dd=function(e){return u(e)};d.pg=function(e,h){d.me(e);d.Z(e,h);return d.Dd(e)};f.Date=d})(c.h||
(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.oh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.TimeUnit.MILLISECOND};d.prototype.bitWidth=function(){var e=w(this.a,this.c,6);return e?this.a.v(this.c+e):32};d.startTime=function(e){t(e,2)};d.Z=function(e,h){Ma(e,h,a.f.g.h.TimeUnit.MILLISECOND)};
d.ab=function(e,h){Na(e,1,h,32)};d.endTime=function(e){return u(e)};d.Mg=function(e,h,l){d.startTime(e);d.Z(e,h);d.ab(e,l);return d.endTime(e)};f.Time=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.ph=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.TimeUnit.SECOND};d.prototype.timezone=function(e){var h=w(this.a,this.c,6);return h?Za(this.a,this.c+h,e):null};d.Fe=function(e){t(e,2)};d.Z=function(e,h){Ma(e,h,a.f.g.h.TimeUnit.SECOND)};d.sd=
function(e,h){Pa(e,1,h)};d.Vd=function(e){return u(e)};d.Ng=function(e,h,l){d.Fe(e);d.Z(e,h);d.sd(e,l);return d.Vd(e)};f.Timestamp=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.dh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.IntervalUnit.YEAR_MONTH};d.xe=function(e){t(e,1)};d.Z=function(e,h){Ma(e,h,a.f.g.h.IntervalUnit.YEAR_MONTH)};d.Nd=function(e){return u(e)};d.Ag=function(e,h){d.xe(e);d.Z(e,h);return d.Nd(e)};f.Interval=
d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Xg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.TimeUnit.MILLISECOND};d.Vf=function(e){t(e,1)};d.Z=function(e,h){Ma(e,h,a.f.g.h.TimeUnit.MILLISECOND)};d.uf=function(e){return u(e)};d.tg=function(e,h){d.Vf(e);d.Z(e,h);return d.uf(e)};f.Duration=
d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.eh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.key=function(e){var h=w(this.a,this.c,4);return h?Za(this.a,this.c+h,e):null};d.prototype.value=function(e){var h=w(this.a,this.c,6);return h?Za(this.a,this.c+h,e):null};d.wc=function(e){t(e,2)};d.ec=function(e,h){Pa(e,0,h)};d.fc=function(e,h){Pa(e,1,h)};d.mc=function(e){return u(e)};
d.Bg=function(e,h,l){d.wc(e);d.ec(e,h);d.fc(e,l);return d.mc(e)};f.ob=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Wg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.id=function(){var e=w(this.a,this.c,4);return e?Xa(this.a,this.c+e):this.a.oa(0,0)};d.prototype.ce=function(){var e=w(this.a,this.c,6);return e?(new a.f.g.h.Int).s($a(this.a,this.c+e),this.a):null};d.prototype.isOrdered=function(){var e=w(this.a,this.c,8);return e?!!(this.a.F[this.c+
e]<<24>>24):!1};d.qe=function(e){t(e,3)};d.bb=function(e,h){Oa(e,0,h,e.oa(0,0))};d.cd=function(e,h){Pa(e,1,h)};d.ed=function(e,h){La(e,2,+h,0)};d.Gd=function(e){return u(e)};d.sg=function(e,h,l,m){d.qe(e);d.bb(e,h);d.cd(e,l);d.ed(e,m);return d.Gd(e)};f.Cc=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Yg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.name=function(e){var h=w(this.a,this.c,4);return h?Za(this.a,this.c+h,e):null};d.prototype.nullable=function(){var e=w(this.a,this.c,6);return e?!!(this.a.F[this.c+e]<<24>>24):!1};d.prototype.dg=function(){var e=w(this.a,this.c,8);return e?this.a.F[this.c+e]:a.f.g.h.Type.NONE};
d.prototype.type=function(e){var h=w(this.a,this.c,10);return h?Ya(this.a,e,this.c+h):null};d.prototype.dictionary=function(e){var h=w(this.a,this.c,12);return h?(e||new a.f.g.h.Cc).s($a(this.a,this.c+h),this.a):null};d.prototype.children=function(e,h){var l=w(this.a,this.c,14);return l?(h||new a.f.g.h.Field).s($a(this.a,ab(this.a,this.c+l)+4*e),this.a):null};d.prototype.lf=function(){var e=w(this.a,this.c,14);return e?bb(this.a,this.c+e):0};d.prototype.kc=function(e){var h=w(this.a,this.c,16);return h?
(new a.f.g.h.ob).s($a(this.a,ab(this.a,this.c+h)+4*e),this.a):null};d.prototype.lc=function(){var e=w(this.a,this.c,16);return e?bb(this.a,this.c+e):0};d.re=function(e){t(e,7)};d.md=function(e,h){Pa(e,0,h)};d.od=function(e,h){La(e,1,+h,0)};d.vd=function(e,h){La(e,2,h,a.f.g.h.Type.NONE)};d.td=function(e,h){Pa(e,3,h)};d.Yc=function(e,h){Pa(e,4,h)};d.Vc=function(e,h){Pa(e,5,h)};d.nf=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.uh=function(e,h){Ta(e,4,h,4)};
d.ya=function(e,h){Pa(e,6,h)};d.Gb=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.ke=function(e,h){Ta(e,4,h,4)};d.Hd=function(e){return u(e)};d.ug=function(e,h,l,m,n,r,v,y){d.re(e);d.md(e,h);d.od(e,l);d.vd(e,m);d.td(e,n);d.Yc(e,r);d.Vc(e,v);d.ya(e,y);return d.Hd(e)};f.Field=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.prototype.offset=function(){return Xa(this.a,this.c)};d.prototype.length=function(){return Xa(this.a,this.c+8)};d.createBuffer=function(e,h,l){Ia(e,8,16);e.qa(l);e.qa(h);return e.offset()};f.Bc=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.mh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.fields=function(e,h){var l=w(this.a,this.c,6);return l?(h||new a.f.g.h.Field).s($a(this.a,ab(this.a,this.c+l)+4*e),this.a):null};d.prototype.Af=function(){var e=w(this.a,this.c,6);return e?bb(this.a,this.c+e):0};d.prototype.kc=function(e){var h=w(this.a,this.c,8);return h?
(new a.f.g.h.ob).s($a(this.a,ab(this.a,this.c+h)+4*e),this.a):null};d.prototype.lc=function(){var e=w(this.a,this.c,8);return e?bb(this.a,this.c+e):0};d.De=function(e){t(e,3)};d.Zc=function(e,h){Ma(e,h,a.f.g.h.Nb.Oe)};d.$c=function(e,h){Pa(e,1,h)};d.qf=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.Wf=function(e,h){Ta(e,4,h,4)};d.ya=function(e,h){Pa(e,2,h)};d.Gb=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.ke=
function(e,h){Ta(e,4,h,4)};d.Td=function(e){return u(e)};d.Qg=function(e,h){e.finish(h)};d.Kg=function(e,h,l,m){d.De(e);d.Zc(e,h);d.$c(e,l);d.ya(e,m);return d.Td(e)};f.Schema=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));var Xc,Yc=Xc||(Xc={}),Zc=Yc.f||(Yc.f={}),$c=Zc.g||(Zc.g={});($c.h||($c.h={})).Schema=E.f.g.h.Schema;var ad=Xc||(Xc={}),bd=ad.f||(ad.f={}),cd=bd.g||(bd.g={}),dd=cd.h||(cd.h={}),ed=dd.MessageHeader||(dd.MessageHeader={});ed[ed.NONE=0]="NONE";ed[ed.Schema=1]="Schema";ed[ed.DictionaryBatch=2]="DictionaryBatch";ed[ed.RecordBatch=3]="RecordBatch";ed[ed.Tensor=4]="Tensor";ed[ed.SparseTensor=5]="SparseTensor";
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.prototype.length=function(){return Xa(this.a,this.c)};d.prototype.nullCount=function(){return Xa(this.a,this.c+8)};d.pf=function(e,h,l){Ia(e,8,16);e.qa(l);e.qa(h);return e.offset()};f.Dc=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Xc||(Xc={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.lh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.length=function(){var e=w(this.a,this.c,4);return e?Xa(this.a,this.c+e):this.a.oa(0,0)};d.prototype.$=function(e,h){var l=w(this.a,this.c,6);return l?(h||new a.f.g.h.Dc).s(ab(this.a,this.c+l)+16*e,this.a):null};d.prototype.Kf=function(){var e=w(this.a,this.c,6);return e?
bb(this.a,this.c+e):0};d.prototype.buffers=function(e,h){var l=w(this.a,this.c,8);return l?(h||new E.f.g.h.Bc).s(ab(this.a,this.c+l)+16*e,this.a):null};d.prototype.jf=function(){var e=w(this.a,this.c,8);return e?bb(this.a,this.c+e):0};d.Ce=function(e){t(e,3)};d.jd=function(e,h){Oa(e,0,h,e.oa(0,0))};d.nd=function(e,h){Pa(e,1,h)};d.$f=function(e,h){Ta(e,16,h,8)};d.Tc=function(e,h){Pa(e,2,h)};d.Tf=function(e,h){Ta(e,16,h,8)};d.Sd=function(e){return u(e)};d.Jg=function(e,h,l,m){d.Ce(e);d.jd(e,h);d.nd(e,
l);d.Tc(e,m);return d.Sd(e)};f.RecordBatch=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Xc||(Xc={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Vg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.id=function(){var e=w(this.a,this.c,4);return e?Xa(this.a,this.c+e):this.a.oa(0,0)};d.prototype.data=function(e){var h=w(this.a,this.c,6);return h?(e||new a.f.g.h.RecordBatch).s($a(this.a,this.c+h),this.a):null};d.prototype.Ib=function(){var e=w(this.a,this.c,8);return e?
!!(this.a.F[this.c+e]<<24>>24):!1};d.pe=function(e){t(e,3)};d.bb=function(e,h){Oa(e,0,h,e.oa(0,0))};d.Wc=function(e,h){Pa(e,1,h)};d.dd=function(e,h){La(e,2,+h,0)};d.Fd=function(e){return u(e)};d.rg=function(e,h,l,m){d.pe(e);d.bb(e,h);d.Wc(e,l);d.dd(e,m);return d.Fd(e)};f.DictionaryBatch=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Xc||(Xc={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Ff=function(e){return(new d).s(e.v(e.position())+e.position(),e)};d.prototype.version=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):E.f.g.h.MetadataVersion.V1};d.prototype.headerType=function(){var e=w(this.a,this.c,6);return e?this.a.F[this.c+e]:a.f.g.h.MessageHeader.NONE};d.prototype.header=function(e){var h=w(this.a,this.c,8);return h?
Ya(this.a,e,this.c+h):null};d.prototype.bodyLength=function(){var e=w(this.a,this.c,10);return e?Xa(this.a,this.c+e):this.a.oa(0,0)};d.prototype.kc=function(e){var h=w(this.a,this.c,12);return h?(new E.f.g.h.ob).s($a(this.a,ab(this.a,this.c+h)+4*e),this.a):null};d.prototype.lc=function(){var e=w(this.a,this.c,12);return e?bb(this.a,this.c+e):0};d.Ae=function(e){t(e,5)};d.eb=function(e,h){Ma(e,h,E.f.g.h.MetadataVersion.V1)};d.bd=function(e,h){La(e,1,h,a.f.g.h.MessageHeader.NONE)};d.ad=function(e,h){Pa(e,
2,h)};d.Sc=function(e,h){Oa(e,3,h,e.oa(0,0))};d.ya=function(e,h){Pa(e,4,h)};d.Gb=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.ke=function(e,h){Ta(e,4,h,4)};d.Qd=function(e){return u(e)};d.Cf=function(e,h){e.finish(h)};d.Hg=function(e,h,l,m,n,r){d.Ae(e);d.eb(e,h);d.bd(e,l);d.ad(e,m);d.Sc(e,n);d.ya(e,r);return d.Qd(e)};f.Message=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Xc||(Xc={}));var fd=E.f.g.h.Type,gd=E.f.g.h.DateUnit,G=E.f.g.h.TimeUnit,hd=E.f.g.h.Precision,id=E.f.g.h.UnionMode,jd=E.f.g.h.IntervalUnit,H=Xc.f.g.h.MessageHeader,kd=E.f.g.h.MetadataVersion,I,J=I||(I={});J[J.NONE=0]="NONE";J[J.Null=1]="Null";J[J.Int=2]="Int";J[J.Float=3]="Float";J[J.Binary=4]="Binary";J[J.Utf8=5]="Utf8";J[J.Bool=6]="Bool";J[J.Decimal=7]="Decimal";J[J.Date=8]="Date";J[J.Time=9]="Time";J[J.Timestamp=10]="Timestamp";J[J.Interval=11]="Interval";J[J.List=12]="List";J[J.Struct=13]="Struct";
J[J.Union=14]="Union";J[J.FixedSizeBinary=15]="FixedSizeBinary";J[J.FixedSizeList=16]="FixedSizeList";J[J.Map=17]="Map";J[J.Dictionary=-1]="Dictionary";J[J.Int8=-2]="Int8";J[J.Int16=-3]="Int16";J[J.Int32=-4]="Int32";J[J.Int64=-5]="Int64";J[J.Uint8=-6]="Uint8";J[J.Uint16=-7]="Uint16";J[J.Uint32=-8]="Uint32";J[J.Uint64=-9]="Uint64";J[J.Float16=-10]="Float16";J[J.Float32=-11]="Float32";J[J.Float64=-12]="Float64";J[J.DateDay=-13]="DateDay";J[J.DateMillisecond=-14]="DateMillisecond";
J[J.TimestampSecond=-15]="TimestampSecond";J[J.TimestampMillisecond=-16]="TimestampMillisecond";J[J.TimestampMicrosecond=-17]="TimestampMicrosecond";J[J.TimestampNanosecond=-18]="TimestampNanosecond";J[J.TimeSecond=-19]="TimeSecond";J[J.TimeMillisecond=-20]="TimeMillisecond";J[J.TimeMicrosecond=-21]="TimeMicrosecond";J[J.TimeNanosecond=-22]="TimeNanosecond";J[J.DenseUnion=-23]="DenseUnion";J[J.SparseUnion=-24]="SparseUnion";J[J.IntervalDayTime=-25]="IntervalDayTime";J[J.IntervalYearMonth=-26]="IntervalYearMonth";
var K,ld=K||(K={});ld[ld.OFFSET=0]="OFFSET";ld[ld.DATA=1]="DATA";ld[ld.VALIDITY=2]="VALIDITY";ld[ld.TYPE=3]="TYPE";function md(a,b,c,f){return 0!==(c&1<<f)}function nd(a,b,c,f){return(c&1<<f)>>f}function od(a,b,c){return c?!!(a[b>>3]|=1<<b%8)||!0:!(a[b>>3]&=~(1<<b%8))&&!1}function pd(a,b,c){var f=c.byteLength+7&-8;if(0<a||c.byteLength<f){var d=new Uint8Array(f);d.set(0===a%8?c.subarray(a>>3):qd(rd(c,a,b,null,md)).subarray(0,f));return d}return c}
function qd(a){var b=[],c=0,f=0,d=0;a=k.w(a);for(var e=a.next();!e.done;e=a.next())e.value&&(d|=1<<f),8===++f&&(b[c++]=d,d=f=0);if(0===c||0<f)b[c++]=d;c=new Uint8Array(b.length+7&-8);c.set(b);return c}function rd(a,b,c,f,d){var e,h,l,m,n;return k.C.H(rd,function(r){switch(r.j){case 1:e=b%8,h=b>>3,l=0,m=c;case 2:if(!(0<m)){r.i(0);break}n=a[h++];case 5:return p(r,d(f,l++,n,e),7);case 7:0<--m&&8>++e?r.i(5):(e=0,r.i(2))}})}
function sd(a,b,c){if(0>=c-b)return 0;if(8>c-b){var f=0;a=k.w(rd(a,b,c-b,a,nd));for(b=a.next();!b.done;b=a.next())f+=b.value;return f}f=c>>3<<3;var d=b+(0===b%8?0:8-b%8);return sd(a,b,d)+sd(a,f,c)+td(a,d>>3,f-d>>3)}function td(a,b,c){var f=0;b|=0;var d=new DataView(a.buffer,a.byteOffset,a.byteLength);for(a=void 0===c?a.byteLength:b+c;4<=a-b;)f+=ud(d.getUint32(b)),b+=4;for(;2<=a-b;)f+=ud(d.getUint16(b)),b+=2;for(;1<=a-b;)f+=ud(d.getUint8(b)),b+=1;return f}
function ud(a){a|=0;a-=a>>>1&1431655765;a=(a&858993459)+(a>>>2&858993459);return 16843009*(a+(a>>>4)&252645135)>>>24}var vd={};vd.getBit=nd;vd.getBool=md;vd.iterateBits=rd;vd.packBools=qd;vd.popcnt_array=td;vd.popcnt_bit_range=sd;vd.popcnt_uint32=ud;vd.setBool=od;vd.truncateBitmap=pd;function wd(){}g=wd.prototype;g.visitMany=function(a,b){for(var c=[],f=1;f<arguments.length;++f)c[f-1]=arguments[f];var d=this;return a.map(function(e,h){return d.visit.apply(d,[e].concat(k.o(c.map(function(l){return l[h]}))))})};g.visit=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.getVisitFn(b[0],!1).apply(this,b)};g.getVisitFn=function(a,b){return xd(this,a,void 0===b?!0:b)};g.visitNull=function(a,b){for(var c=1;c<arguments.length;++c);return null};
g.visitBool=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitInt=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitFloat=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitUtf8=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitBinary=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitFixedSizeBinary=function(a,b){for(var c=1;c<arguments.length;++c);return null};
g.visitDate=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitTimestamp=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitTime=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitDecimal=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitList=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitStruct=function(a,b){for(var c=1;c<arguments.length;++c);return null};
g.visitUnion=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitDictionary=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitInterval=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitFixedSizeList=function(a,b){for(var c=1;c<arguments.length;++c);return null};g.visitMap=function(a,b){for(var c=1;c<arguments.length;++c);return null};
function xd(a,b,c){c=void 0===c?!0:c;var f=null,d=I.NONE;b instanceof L?d=yd(b.type):b instanceof D?d=yd(b.type):b instanceof M?d=yd(b):"number"!==typeof(d=b)&&(d=I[b]);switch(d){case I.Null:f=a.visitNull;break;case I.Bool:f=a.visitBool;break;case I.Int:f=a.visitInt;break;case I.Int8:f=a.visitInt8||a.visitInt;break;case I.Int16:f=a.visitInt16||a.visitInt;break;case I.Int32:f=a.visitInt32||a.visitInt;break;case I.Int64:f=a.visitInt64||a.visitInt;break;case I.Uint8:f=a.visitUint8||a.visitInt;break;
case I.Uint16:f=a.visitUint16||a.visitInt;break;case I.Uint32:f=a.visitUint32||a.visitInt;break;case I.Uint64:f=a.visitUint64||a.visitInt;break;case I.Float:f=a.visitFloat;break;case I.Float16:f=a.visitFloat16||a.visitFloat;break;case I.Float32:f=a.visitFloat32||a.visitFloat;break;case I.Float64:f=a.visitFloat64||a.visitFloat;break;case I.Utf8:f=a.visitUtf8;break;case I.Binary:f=a.visitBinary;break;case I.FixedSizeBinary:f=a.visitFixedSizeBinary;break;case I.Date:f=a.visitDate;break;case I.DateDay:f=
a.visitDateDay||a.visitDate;break;case I.DateMillisecond:f=a.visitDateMillisecond||a.visitDate;break;case I.Timestamp:f=a.visitTimestamp;break;case I.TimestampSecond:f=a.visitTimestampSecond||a.visitTimestamp;break;case I.TimestampMillisecond:f=a.visitTimestampMillisecond||a.visitTimestamp;break;case I.TimestampMicrosecond:f=a.visitTimestampMicrosecond||a.visitTimestamp;break;case I.TimestampNanosecond:f=a.visitTimestampNanosecond||a.visitTimestamp;break;case I.Time:f=a.visitTime;break;case I.TimeSecond:f=
a.visitTimeSecond||a.visitTime;break;case I.TimeMillisecond:f=a.visitTimeMillisecond||a.visitTime;break;case I.TimeMicrosecond:f=a.visitTimeMicrosecond||a.visitTime;break;case I.TimeNanosecond:f=a.visitTimeNanosecond||a.visitTime;break;case I.Decimal:f=a.visitDecimal;break;case I.List:f=a.visitList;break;case I.Struct:f=a.visitStruct;break;case I.Union:f=a.visitUnion;break;case I.DenseUnion:f=a.visitDenseUnion||a.visitUnion;break;case I.SparseUnion:f=a.visitSparseUnion||a.visitUnion;break;case I.Dictionary:f=
a.visitDictionary;break;case I.Interval:f=a.visitInterval;break;case I.IntervalDayTime:f=a.visitIntervalDayTime||a.visitInterval;break;case I.IntervalYearMonth:f=a.visitIntervalYearMonth||a.visitInterval;break;case I.FixedSizeList:f=a.visitFixedSizeList;break;case I.Map:f=a.visitMap}if("function"===typeof f)return f;if(!c)return function(){return null};throw Error("Unrecognized type '"+I[d]+"'");}
function yd(a){switch(a.typeId){case I.Null:return I.Null;case I.Int:var b=a.isSigned;switch(a.bitWidth){case 8:return b?I.Int8:I.Uint8;case 16:return b?I.Int16:I.Uint16;case 32:return b?I.Int32:I.Uint32;case 64:return b?I.Int64:I.Uint64}return I.Int;case I.Float:switch(a.precision){case hd.HALF:return I.Float16;case hd.SINGLE:return I.Float32;case hd.DOUBLE:return I.Float64}return I.Float;case I.Binary:return I.Binary;case I.Utf8:return I.Utf8;case I.Bool:return I.Bool;case I.Decimal:return I.Decimal;
case I.Time:switch(a.unit){case G.SECOND:return I.TimeSecond;case G.MILLISECOND:return I.TimeMillisecond;case G.MICROSECOND:return I.TimeMicrosecond;case G.NANOSECOND:return I.TimeNanosecond}return I.Time;case I.Timestamp:switch(a.unit){case G.SECOND:return I.TimestampSecond;case G.MILLISECOND:return I.TimestampMillisecond;case G.MICROSECOND:return I.TimestampMicrosecond;case G.NANOSECOND:return I.TimestampNanosecond}return I.Timestamp;case I.Date:switch(a.unit){case gd.DAY:return I.DateDay;case gd.MILLISECOND:return I.DateMillisecond}return I.Date;
case I.Interval:switch(a.unit){case jd.DAY_TIME:return I.IntervalDayTime;case jd.YEAR_MONTH:return I.IntervalYearMonth}return I.Interval;case I.Map:return I.Map;case I.List:return I.List;case I.Struct:return I.Struct;case I.Union:switch(a.mode){case id.Dense:return I.DenseUnion;case id.Sparse:return I.SparseUnion}return I.Union;case I.FixedSizeBinary:return I.FixedSizeBinary;case I.FixedSizeList:return I.FixedSizeList;case I.Dictionary:return I.Dictionary}throw Error("Unrecognized type '"+I[a.typeId]+
"'");}g.visitInt8=null;g.visitInt16=null;g.visitInt32=null;g.visitInt64=null;g.visitUint8=null;g.visitUint16=null;g.visitUint32=null;g.visitUint64=null;g.visitFloat16=null;g.visitFloat32=null;g.visitFloat64=null;g.visitDateDay=null;g.visitDateMillisecond=null;g.visitTimestampSecond=null;g.visitTimestampMillisecond=null;g.visitTimestampMicrosecond=null;g.visitTimestampNanosecond=null;g.visitTimeSecond=null;g.visitTimeMillisecond=null;g.visitTimeMicrosecond=null;g.visitTimeNanosecond=null;
g.visitDenseUnion=null;g.visitSparseUnion=null;g.visitIntervalDayTime=null;g.visitIntervalYearMonth=null;function zd(){}k.b(zd,wd);function Ad(a,b){return a===b||Array.isArray(a)&&Array.isArray(b)&&a.length===b.length&&a.every(function(c,f){return Bd(c,b[f])})}function Bd(a,b){return a===b||b instanceof a.constructor&&a.name===b.name&&a.nullable===b.nullable&&Cd.visit(a.type,b.type)}function Dd(a,b){return b instanceof a.constructor}function Ed(a,b){return a===b||Dd(a,b)}function Fd(a,b){return a===b||Dd(a,b)&&a.bitWidth===b.bitWidth&&a.isSigned===b.isSigned}
function Gd(a,b){return a===b||Dd(a,b)&&a.precision===b.precision}function Hd(a,b){return a===b||Dd(a,b)&&a.unit===b.unit}function Id(a,b){return a===b||Dd(a,b)&&a.unit===b.unit&&a.timezone===b.timezone}function Jd(a,b){return a===b||Dd(a,b)&&a.unit===b.unit&&a.bitWidth===b.bitWidth}function Kd(a,b){return a===b||Dd(a,b)&&a.mode===b.mode&&a.typeIds.every(function(c,f){return c===b.typeIds[f]})&&Ad(a.children,b.children)}function Ld(a,b){return a===b||Dd(a,b)&&a.unit===b.unit}g=zd.prototype;
g.visitNull=Ed;g.visitBool=Ed;g.visitInt=Fd;g.visitInt8=Fd;g.visitInt16=Fd;g.visitInt32=Fd;g.visitInt64=Fd;g.visitUint8=Fd;g.visitUint16=Fd;g.visitUint32=Fd;g.visitUint64=Fd;g.visitFloat=Gd;g.visitFloat16=Gd;g.visitFloat32=Gd;g.visitFloat64=Gd;g.visitUtf8=Ed;g.visitBinary=Ed;g.visitFixedSizeBinary=function(a,b){return a===b||Dd(a,b)&&a.byteWidth===b.byteWidth};g.visitDate=Hd;g.visitDateDay=Hd;g.visitDateMillisecond=Hd;g.visitTimestamp=Id;g.visitTimestampSecond=Id;g.visitTimestampMillisecond=Id;
g.visitTimestampMicrosecond=Id;g.visitTimestampNanosecond=Id;g.visitTime=Jd;g.visitTimeSecond=Jd;g.visitTimeMillisecond=Jd;g.visitTimeMicrosecond=Jd;g.visitTimeNanosecond=Jd;g.visitDecimal=Ed;g.visitList=function(a,b){return a===b||Dd(a,b)&&a.children.length===b.children.length&&Ad(a.children,b.children)};g.visitStruct=function(a,b){return a===b||Dd(a,b)&&a.children.length===b.children.length&&Ad(a.children,b.children)};g.visitUnion=Kd;g.visitDenseUnion=Kd;g.visitSparseUnion=Kd;
g.visitDictionary=function(a,b){return a===b||Dd(a,b)&&a.id===b.id&&a.isOrdered===b.isOrdered&&Cd.visit(a.indices,b.indices)&&Cd.visit(a.dictionary,b.dictionary)};g.visitInterval=Ld;g.visitIntervalDayTime=Ld;g.visitIntervalYearMonth=Ld;g.visitFixedSizeList=function(a,b){return a===b||Dd(a,b)&&a.listSize===b.listSize&&a.children.length===b.children.length&&Ad(a.children,b.children)};
g.visitMap=function(a,b){return a===b||Dd(a,b)&&a.keysSorted===b.keysSorted&&a.children.length===b.children.length&&Ad(a.children,b.children)};var Cd=new zd;function M(){}M.isNull=function(a){return a&&a.typeId===I.Null};M.isInt=function(a){return a&&a.typeId===I.Int};M.isFloat=function(a){return a&&a.typeId===I.Float};M.isBinary=function(a){return a&&a.typeId===I.Binary};M.isUtf8=function(a){return a&&a.typeId===I.Utf8};M.isBool=function(a){return a&&a.typeId===I.Bool};M.isDecimal=function(a){return a&&a.typeId===I.Decimal};M.isDate=function(a){return a&&a.typeId===I.Date};M.isTime=function(a){return a&&a.typeId===I.Time};
M.isTimestamp=function(a){return a&&a.typeId===I.Timestamp};M.isInterval=function(a){return a&&a.typeId===I.Interval};M.isList=function(a){return a&&a.typeId===I.List};M.isStruct=function(a){return a&&a.typeId===I.Struct};M.isUnion=function(a){return a&&a.typeId===I.Union};M.isFixedSizeBinary=function(a){return a&&a.typeId===I.FixedSizeBinary};M.isFixedSizeList=function(a){return a&&a.typeId===I.FixedSizeList};M.isMap=function(a){return a&&a.typeId===I.Map};
M.isDictionary=function(a){return a&&a.typeId===I.Dictionary};M.prototype.compareTo=function(a){return Cd.visit(this,a)};k.global.Object.defineProperties(M.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.NONE}}});k.l();var Md=Symbol.toStringTag,Nd,Od=M.prototype;Od.children=null;Od.ArrayType=Array;k.l();Nd=Od[Symbol.toStringTag]="DataType";M[Md]=Nd;function Pd(){}k.b(Pd,M);Pd.prototype.toString=function(){return"Null"};
k.global.Object.defineProperties(Pd.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Null}}});k.l();var Qd=Symbol.toStringTag,Rd,Sd=Pd.prototype;k.l();Rd=Sd[Symbol.toStringTag]="Null";Pd[Qd]=Rd;function Td(a,b){this.isSigned=a;this.bitWidth=b}k.b(Td,M);Td.prototype.toString=function(){return(this.isSigned?"I":"Ui")+"nt"+this.bitWidth};
k.global.Object.defineProperties(Td.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Int}},ArrayType:{configurable:!0,enumerable:!0,get:function(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?Int32Array:Uint32Array}k.l();throw Error("Unrecognized "+this[Symbol.toStringTag]+" type");}}});k.l();
var Ud=Symbol.toStringTag,Vd,Wd=Td.prototype;Wd.isSigned=null;Wd.bitWidth=null;k.l();Vd=Wd[Symbol.toStringTag]="Int";Td[Ud]=Vd;function Xd(){Td.call(this,!0,8)}k.b(Xd,Td);function Yd(){Td.call(this,!0,16)}k.b(Yd,Td);function Zd(){Td.call(this,!0,32)}k.b(Zd,Td);function $d(){Td.call(this,!0,64)}k.b($d,Td);function ae(){Td.call(this,!1,8)}k.b(ae,Td);function be(){Td.call(this,!1,16)}k.b(be,Td);function ce(){Td.call(this,!1,32)}k.b(ce,Td);function de(){Td.call(this,!1,64)}k.b(de,Td);
Object.defineProperty(Xd.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(Yd.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(Zd.prototype,"ArrayType",{value:Int32Array});Object.defineProperty($d.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(ae.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(be.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(ce.prototype,"ArrayType",{value:Uint32Array});
Object.defineProperty(de.prototype,"ArrayType",{value:Uint32Array});function ee(a){this.precision=a}k.b(ee,M);ee.prototype.toString=function(){return"Float"+(this.precision<<5||16)};
k.global.Object.defineProperties(ee.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Float}},ArrayType:{configurable:!0,enumerable:!0,get:function(){switch(this.precision){case hd.HALF:return Uint16Array;case hd.SINGLE:return Float32Array;case hd.DOUBLE:return Float64Array}k.l();throw Error("Unrecognized "+this[Symbol.toStringTag]+" type");}}});k.l();var fe=Symbol.toStringTag,ge,he=ee.prototype;he.precision=null;k.l();ge=he[Symbol.toStringTag]="Float";ee[fe]=ge;
function ie(){this.precision=hd.HALF}k.b(ie,ee);function je(){this.precision=hd.SINGLE}k.b(je,ee);function ke(){this.precision=hd.DOUBLE}k.b(ke,ee);Object.defineProperty(ie.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(je.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(ke.prototype,"ArrayType",{value:Float64Array});function le(){}k.b(le,M);le.prototype.toString=function(){return"Binary"};
k.global.Object.defineProperties(le.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Binary}}});k.l();var me=Symbol.toStringTag,ne,oe=le.prototype;oe.ArrayType=Uint8Array;k.l();ne=oe[Symbol.toStringTag]="Binary";le[me]=ne;function pe(){}k.b(pe,M);pe.prototype.toString=function(){return"Utf8"};k.global.Object.defineProperties(pe.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Utf8}}});k.l();var qe=Symbol.toStringTag,re,se=pe.prototype;se.ArrayType=Uint8Array;
k.l();re=se[Symbol.toStringTag]="Utf8";pe[qe]=re;function te(){}k.b(te,M);te.prototype.toString=function(){return"Bool"};k.global.Object.defineProperties(te.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Bool}}});k.l();var ue=Symbol.toStringTag,ve,we=te.prototype;we.ArrayType=Uint8Array;k.l();ve=we[Symbol.toStringTag]="Bool";te[ue]=ve;function xe(a,b){this.scale=a;this.precision=b}k.b(xe,M);
xe.prototype.toString=function(){return"Decimal["+this.precision+"e"+(0<this.scale?"+":"")+this.scale+"]"};k.global.Object.defineProperties(xe.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Decimal}}});k.l();var ye=Symbol.toStringTag,ze,Ae=xe.prototype;Ae.scale=null;Ae.precision=null;Ae.ArrayType=Uint32Array;k.l();ze=Ae[Symbol.toStringTag]="Decimal";xe[ye]=ze;function Be(a){this.unit=a}k.b(Be,M);
Be.prototype.toString=function(){return"Date"+32*(this.unit+1)+"<"+gd[this.unit]+">"};k.global.Object.defineProperties(Be.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Date}}});k.l();var Ce=Symbol.toStringTag,De,Ee=Be.prototype;Ee.unit=null;Ee.ArrayType=Int32Array;k.l();De=Ee[Symbol.toStringTag]="Date";Be[Ce]=De;function Fe(){this.unit=gd.DAY}k.b(Fe,Be);function Ge(){this.unit=gd.MILLISECOND}k.b(Ge,Be);function He(a,b){this.unit=a;this.bitWidth=b}k.b(He,M);
He.prototype.toString=function(){return"Time"+this.bitWidth+"<"+G[this.unit]+">"};k.global.Object.defineProperties(He.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Time}}});k.l();var Je=Symbol.toStringTag,Le,Me=He.prototype;Me.unit=null;Me.bitWidth=null;Me.ArrayType=Int32Array;k.l();Le=Me[Symbol.toStringTag]="Time";He[Je]=Le;function Ne(){He.call(this,G.SECOND,32)}k.b(Ne,He);function Oe(){He.call(this,G.MILLISECOND,32)}k.b(Oe,He);
function Pe(){He.call(this,G.MICROSECOND,64)}k.b(Pe,He);function Qe(){He.call(this,G.NANOSECOND,64)}k.b(Qe,He);function Re(a,b){this.unit=a;this.timezone=b}k.b(Re,M);Re.prototype.toString=function(){return"Timestamp<"+G[this.unit]+(this.timezone?", "+this.timezone:"")+">"};k.global.Object.defineProperties(Re.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Timestamp}}});k.l();var Se=Symbol.toStringTag,Te,Ue=Re.prototype;Ue.unit=null;Ue.timezone=null;Ue.ArrayType=Int32Array;
k.l();Te=Ue[Symbol.toStringTag]="Timestamp";Re[Se]=Te;function Ve(a){Re.call(this,G.SECOND,a)}k.b(Ve,Re);function We(a){Re.call(this,G.MILLISECOND,a)}k.b(We,Re);function Xe(a){Re.call(this,G.MICROSECOND,a)}k.b(Xe,Re);function Ye(a){Re.call(this,G.NANOSECOND,a)}k.b(Ye,Re);function Ze(a){this.unit=a}k.b(Ze,M);Ze.prototype.toString=function(){return"Interval<"+jd[this.unit]+">"};k.global.Object.defineProperties(Ze.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Interval}}});
k.l();var $e=Symbol.toStringTag,af,bf=Ze.prototype;bf.unit=null;bf.ArrayType=Int32Array;k.l();af=bf[Symbol.toStringTag]="Interval";Ze[$e]=af;function cf(){this.unit=jd.DAY_TIME}k.b(cf,Ze);function df(){this.unit=jd.YEAR_MONTH}k.b(df,Ze);function ef(a){this.children=[a]}k.b(ef,M);ef.prototype.toString=function(){return"List<"+this.valueType+">"};
k.global.Object.defineProperties(ef.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.List}},valueType:{configurable:!0,enumerable:!0,get:function(){return this.children[0].type}},valueField:{configurable:!0,enumerable:!0,get:function(){return this.children[0]}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.valueType.ArrayType}}});k.l();var ff=Symbol.toStringTag,gf,hf=ef.prototype;hf.children=null;k.l();gf=hf[Symbol.toStringTag]="List";ef[ff]=gf;
function jf(a){this.children=a}k.b(jf,M);jf.prototype.toString=function(){return"Struct<{"+this.children.map(function(a){return a.name+":"+a.type}).join(", ")+"}>"};k.global.Object.defineProperties(jf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Struct}}});k.l();var kf=Symbol.toStringTag,lf,mf=jf.prototype;mf.children=null;k.l();lf=mf[Symbol.toStringTag]="Struct";jf[kf]=lf;
function nf(a,b,c){this.mode=a;this.children=c;this.typeIds=b=Int32Array.from(b);this.typeIdToChildIndex=b.reduce(function(f,d,e){return(f[d]=e)&&f||f},Object.create(null))}k.b(nf,M);nf.prototype.toString=function(){k.l();return this[Symbol.toStringTag]+"<"+this.children.map(function(a){return""+a.type}).join(" | ")+">"};k.global.Object.defineProperties(nf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Union}}});k.l();var of=Symbol.toStringTag,pf,qf=nf.prototype;
qf.mode=null;qf.typeIds=null;qf.children=null;qf.typeIdToChildIndex=null;qf.ArrayType=Int8Array;k.l();pf=qf[Symbol.toStringTag]="Union";nf[of]=pf;function rf(a,b){nf.call(this,id.Dense,a,b)}k.b(rf,nf);function sf(a,b){nf.call(this,id.Sparse,a,b)}k.b(sf,nf);function tf(a){this.byteWidth=a}k.b(tf,M);tf.prototype.toString=function(){return"FixedSizeBinary["+this.byteWidth+"]"};k.global.Object.defineProperties(tf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.FixedSizeBinary}}});
k.l();var uf=Symbol.toStringTag,vf,wf=tf.prototype;wf.byteWidth=null;wf.ArrayType=Uint8Array;k.l();vf=wf[Symbol.toStringTag]="FixedSizeBinary";tf[uf]=vf;function xf(a,b){this.listSize=a;this.children=[b]}k.b(xf,M);xf.prototype.toString=function(){return"FixedSizeList["+this.listSize+"]<"+this.valueType+">"};
k.global.Object.defineProperties(xf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.FixedSizeList}},valueType:{configurable:!0,enumerable:!0,get:function(){return this.children[0].type}},valueField:{configurable:!0,enumerable:!0,get:function(){return this.children[0]}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.valueType.ArrayType}}});k.l();var yf=Symbol.toStringTag,zf,Af=xf.prototype;Af.children=null;Af.listSize=null;k.l();
zf=Af[Symbol.toStringTag]="FixedSizeList";xf[yf]=zf;function Bf(a,b){this.children=[a];this.keysSorted=void 0===b?!1:b}k.b(Bf,M);Bf.prototype.toString=function(){return"Map<{"+this.children[0].type.children.map(function(a){return a.name+":"+a.type}).join(", ")+"}>"};
k.global.Object.defineProperties(Bf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Map}},keyType:{configurable:!0,enumerable:!0,get:function(){return this.children[0].type.children[0].type}},valueType:{configurable:!0,enumerable:!0,get:function(){return this.children[0].type.children[1].type}}});k.l();var Cf=Symbol.toStringTag,Df,Ef=Bf.prototype;Ef.children=null;Ef.keysSorted=null;k.l();Df=Ef[Symbol.toStringTag]="Map_";Bf[Cf]=Df;var Ff=function(a){return function(){return++a}}(-1);
function Gf(a,b,c,f){this.indices=b;this.dictionary=a;this.isOrdered=f||!1;this.id=null==c?Ff():"number"===typeof c?c:c.low}k.b(Gf,M);Gf.prototype.toString=function(){return"Dictionary<"+this.indices+", "+this.dictionary+">"};
k.global.Object.defineProperties(Gf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Dictionary}},children:{configurable:!0,enumerable:!0,get:function(){return this.dictionary.children}},valueType:{configurable:!0,enumerable:!0,get:function(){return this.dictionary}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.dictionary.ArrayType}}});k.l();var Hf=Symbol.toStringTag,If,Jf=Gf.prototype;Jf.id=null;Jf.indices=null;Jf.isOrdered=null;Jf.dictionary=null;k.l();
If=Jf[Symbol.toStringTag]="Dictionary";Gf[Hf]=If;function Kf(a){switch(a.typeId){case I.Decimal:return 4;case I.Timestamp:return 2;case I.Date:return 1+a.unit;case I.Interval:return 1+a.unit;case I.Int:return 1+ +(32<a.bitWidth);case I.Time:return 1+ +(32<a.bitWidth);case I.FixedSizeList:return a.listSize;case I.FixedSizeBinary:return a.byteWidth;default:return 1}};function L(a,b,c,f,d,e,h){this.type=a;this.dictionary=h;this.offset=Math.floor(Math.max(b||0,0));this.length=Math.floor(Math.max(c||0,0));this.wa=Math.floor(Math.max(f||0,-1));this.childData=(e||[]).map(function(m){return m instanceof L?m:m.data});var l;d instanceof L?(this.stride=d.stride,this.values=d.values,this.typeIds=d.typeIds,this.nullBitmap=d.nullBitmap,this.valueOffsets=d.valueOffsets):(this.stride=Kf(a),d&&((l=d[0])&&(this.valueOffsets=l),(l=d[1])&&(this.values=l),(l=d[2])&&(this.nullBitmap=
l),(l=d[3])&&(this.typeIds=l)))}L.prototype.clone=function(a,b,c,f,d,e){b=void 0===b?this.offset:b;c=void 0===c?this.length:c;f=void 0===f?this.wa:f;e=void 0===e?this.childData:e;return new L(a,b,c,f,void 0===d?this:d,e,this.dictionary)};
L.prototype.slice=function(a,b){var c=this.stride,f=this.typeId,d=this.childData,e=+(0===this.wa)-1,h=16===f?c:1,l,m=this.buffers;(l=m[K.TYPE])&&(m[K.TYPE]=l.subarray(a,a+b));(l=m[K.OFFSET])&&(m[K.OFFSET]=l.subarray(a,a+b+1))||(l=m[K.DATA])&&(m[K.DATA]=6===f?l:l.subarray(c*a,c*(a+b)));return this.clone(this.type,this.offset+a,b,e,m,!d.length||this.valueOffsets?d:Lf(d,h*a,h*b))};
function Mf(a,b){if(a.typeId===I.Null)return a.clone(a.type,0,b,0);var c=a.length,f=a.nullCount,d=(new Uint8Array((b+63&-64)>>3)).fill(255,0,c>>3);d[c>>3]=(1<<c-(c&-8))-1;0<f&&d.set(pd(a.offset,c,a.nullBitmap),0);var e=a.buffers;e[K.VALIDITY]=d;return a.clone(a.type,0,b,f+(b-c),e)}function Lf(a,b,c){return a.map(function(f){return f.slice(b,c)})}
L.new=function(a,b,c,f,d,e,h){d instanceof L?d=d.buffers:d||(d=[]);switch(a.typeId){case I.Null:return L.Null(a,b,c);case I.Int:return L.Int(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[]);case I.Dictionary:return L.Dictionary(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[],h);case I.Float:return L.Float(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[]);case I.Bool:return L.Bool(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[]);case I.Decimal:return L.Decimal(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[]);case I.Date:return L.Date(a,b,c,f||
0,d[K.VALIDITY],d[K.DATA]||[]);case I.Time:return L.Time(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[]);case I.Timestamp:return L.Timestamp(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[]);case I.Interval:return L.Interval(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[]);case I.FixedSizeBinary:return L.FixedSizeBinary(a,b,c,f||0,d[K.VALIDITY],d[K.DATA]||[]);case I.Binary:return L.Binary(a,b,c,f||0,d[K.VALIDITY],d[K.OFFSET]||[],d[K.DATA]||[]);case I.Utf8:return L.Utf8(a,b,c,f||0,d[K.VALIDITY],d[K.OFFSET]||[],d[K.DATA]||[]);
case I.List:return L.List(a,b,c,f||0,d[K.VALIDITY],d[K.OFFSET]||[],(e||[])[0]);case I.FixedSizeList:return L.FixedSizeList(a,b,c,f||0,d[K.VALIDITY],(e||[])[0]);case I.Struct:return L.Struct(a,b,c,f||0,d[K.VALIDITY],e||[]);case I.Map:return L.Map(a,b,c,f||0,d[K.VALIDITY],d[K.OFFSET]||[],(e||[])[0]);case I.Union:return L.Union(a,b,c,f||0,d[K.VALIDITY],d[K.TYPE]||[],d[K.OFFSET]||e,e)}throw Error("Unrecognized typeId "+a.typeId);};L.Null=function(a,b,c){return new L(a,b,c,0)};
L.Int=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};L.Dictionary=function(a,b,c,f,d,e,h){return new L(a,b,c,f,[void 0,z(a.indices.ArrayType,e),x(d)],[],h)};L.Float=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};L.Bool=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};L.Decimal=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};
L.Date=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};L.Time=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};L.Timestamp=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};L.Interval=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};L.FixedSizeBinary=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,z(a.ArrayType,e),x(d)])};
L.Binary=function(a,b,c,f,d,e,h){return new L(a,b,c,f,[Ob(e),x(h),x(d)])};L.Utf8=function(a,b,c,f,d,e,h){return new L(a,b,c,f,[Ob(e),x(h),x(d)])};L.List=function(a,b,c,f,d,e,h){return new L(a,b,c,f,[Ob(e),void 0,x(d)],[h])};L.FixedSizeList=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,void 0,x(d)],[e])};L.Struct=function(a,b,c,f,d,e){return new L(a,b,c,f,[void 0,void 0,x(d)],e)};L.Map=function(a,b,c,f,d,e,h){return new L(a,b,c,f,[Ob(e),void 0,x(d)],[h])};
L.Union=function(a,b,c,f,d,e,h,l){d=[void 0,void 0,x(d),z(a.ArrayType,e)];if(a.mode===id.Sparse)return new L(a,b,c,f,d,h);d[K.OFFSET]=Ob(h);return new L(a,b,c,f,d,l)};
k.global.Object.defineProperties(L.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return this.type.typeId}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.type.ArrayType}},buffers:{configurable:!0,enumerable:!0,get:function(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}},byteLength:{configurable:!0,enumerable:!0,get:function(){var a=0,b=this.valueOffsets,c=this.values,f=this.nullBitmap,d=this.typeIds;b&&(a+=b.byteLength);c&&(a+=c.byteLength);
f&&(a+=f.byteLength);d&&(a+=d.byteLength);return this.childData.reduce(function(e,h){return e+h.byteLength},a)}},nullCount:{configurable:!0,enumerable:!0,get:function(){var a=this.wa,b;-1>=a&&(b=this.nullBitmap)&&(this.wa=a=this.length-sd(b,this.offset,this.offset+this.length));return a}}});L.prototype.childData=Object.freeze([]);function Nf(a){if(null===a)return"null";if(void 0===a)return"undefined";switch(typeof a){case "number":return""+a;case "bigint":return""+a;case "string":return'"'+a+'"'}k.l();return"function"===typeof a[Symbol.toPrimitive]?(k.l(),a[Symbol.toPrimitive]("string")):ArrayBuffer.isView(a)?"["+a+"]":JSON.stringify(a)};function Of(a){if(!a||0>=a.length)return function(){return!0};var b="",c=a.filter(function(f){return f===f});0<c.length&&(b="\n switch (x) {"+c.map(function(f){return"\n case "+("bigint"!==typeof f?Nf(f):xb?Nf(f)+"n":'"'+Nf(f)+'"')+":"}).join("")+"\n return false;\n }");a.length!==c.length&&(b="if (x !== x) return false;\n"+b);return new Function("x",b+"\nreturn true;")};function Pf(a,b){return(a*b+63&-64||64)/b}function Qf(a,b){b=void 0===b?1:b;this.buffer=a;this.stride=b;this.BYTES_PER_ELEMENT=a.BYTES_PER_ELEMENT;this.ArrayType=a.constructor;this.Ya(this.length=a.length/b|0)}g=Qf.prototype;g.set=function(){return this};g.append=function(a){return this.set(this.length,a)};function Rf(a,b){if(0<b){a.length+=b;b=a.length*a.stride;var c=a.buffer.length;b>=c&&a.Ya(0===c?Pf(1*b,a.BYTES_PER_ELEMENT):Pf(2*b,a.BYTES_PER_ELEMENT))}return a}
g.flush=function(a){a=void 0===a?this.length:a;a=Pf(a*this.stride,this.BYTES_PER_ELEMENT);var b=this.buffer;a=void 0===a?0:a;b=b.length>=a?b.subarray(0,a):Mb(new b.constructor(a),b,0);this.clear();return b};g.clear=function(){this.length=0;this.Ya(0);return this};g.Ya=function(a){return this.buffer=Mb(new this.ArrayType(a),this.buffer)};
k.global.Object.defineProperties(Qf.prototype,{byteLength:{configurable:!0,enumerable:!0,get:function(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}},reservedLength:{configurable:!0,enumerable:!0,get:function(){return this.buffer.length/this.stride}},reservedByteLength:{configurable:!0,enumerable:!0,get:function(){return this.buffer.byteLength}}});Qf.prototype.offset=0;function Sf(){Qf.apply(this,arguments)}k.b(Sf,Qf);Sf.prototype.get=function(a){return this.buffer[a]};
Sf.prototype.set=function(a,b){Rf(this,a-this.length+1);this.buffer[a*this.stride]=b;return this};function Tf(a){a=void 0===a?new Uint8Array(0):a;Sf.call(this,a,.125);this.Jb=0}k.b(Tf,Sf);Tf.prototype.get=function(a){return this.buffer[a>>3]>>a%8&1};Tf.prototype.set=function(a,b){var c=Rf(this,a-this.length+1).buffer,f=a>>3;a%=8;var d=c[f]>>a&1;b?0===d&&(c[f]|=1<<a,++this.Jb):1===d&&(c[f]&=~(1<<a),--this.Jb);return this};Tf.prototype.clear=function(){this.Jb=0;return Sf.prototype.clear.call(this)};
k.global.Object.defineProperties(Tf.prototype,{Lf:{configurable:!0,enumerable:!0,get:function(){return this.length-this.Jb}}});function Uf(a){a=void 0===a?new Int32Array(1):a;Sf.call(this,a,1)}k.b(Uf,Sf);Uf.prototype.append=function(a){return this.set(this.length-1,a)};Uf.prototype.set=function(a,b){var c=this.length-1,f=Rf(this,a-c+1).buffer;c<a++&&f.fill(f[c],c,a);f[a]=f[a-1]+b;return this};
Uf.prototype.flush=function(a){a=void 0===a?this.length-1:a;a>this.length&&this.set(a-1,0);return Sf.prototype.flush.call(this,a+1)};function Vf(){Qf.apply(this,arguments)}k.b(Vf,Qf);Vf.prototype.set=function(a,b){Rf(this,a-this.length+1);switch(typeof b){case "bigint":this.hc[a]=b;break;case "number":this.buffer[a*this.stride]=b;break;default:this.buffer.set(b,a*this.stride)}return this};
Vf.prototype.Ya=function(a){a=Qf.prototype.Ya.call(this,a);var b=a.byteLength/(this.BYTES_PER_ELEMENT*this.stride);xb&&(this.hc=new this.Le(a.buffer,a.byteOffset,b));return a};k.global.Object.defineProperties(Vf.prototype,{Le:{configurable:!0,enumerable:!0,get:function(){return this.Qe||(this.Qe=this.buffer instanceof Int32Array?zb:Bb)}}});function N(a){var b=a.type;a=a.nullValues;this.length=0;this.finished=!1;this.type=b;this.children=[];this.nullValues=a;this.stride=Kf(b);this.S=new Tf;a&&0<a.length&&(this.Mc=Of(a))}N.new=function(){};N.throughNode=function(){throw Error('"throughNode" not available in this environment');};N.throughDOM=function(){throw Error('"throughDOM" not available in this environment');};N.throughIterable=function(a){return Wf(a)};N.throughAsyncIterable=function(a){return Xf(a)};g=N.prototype;g.toVector=function(){return D.new(this.flush())};
g.append=function(a){return this.set(this.length,a)};g.isValid=function(a){return this.Mc(a)};g.set=function(a,b){this.setValid(a,this.isValid(b))&&this.setValue(a,b);return this};g.setValue=function(a,b){this.Ab(this,a,b)};g.setValid=function(a,b){this.length=this.S.set(a,+b).length;return b};g.addChild=function(){throw Error('Cannot append children to non-nested type "'+this.type+'"');};g.getChildAt=function(a){return this.children[a]||null};
g.flush=function(){var a=[],b=this.B,c=this.O,f=this.ha,d=this.length,e=this.nullCount;f?(a[K.TYPE]=f.flush(d),c&&(a[K.OFFSET]=c.flush(d))):c?(b&&(a[K.DATA]=b.flush(c.get(c.length-1))),a[K.OFFSET]=c.flush(d)):b&&(a[K.DATA]=b.flush(d));0<e&&(a[K.VALIDITY]=this.S.flush(d));a=L.new(this.type,0,d,e,a,this.children.map(function(h){return h.flush()}));this.clear();return a};g.finish=function(){this.finished=!0;this.children.forEach(function(a){return a.finish()});return this};
g.clear=function(){this.length=0;this.O&&this.O.clear();this.B&&this.B.clear();this.S&&this.S.clear();this.ha&&this.ha.clear();this.children.forEach(function(a){return a.clear()});return this};
k.global.Object.defineProperties(N.prototype,{ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.type.ArrayType}},nullCount:{configurable:!0,enumerable:!0,get:function(){return this.S.Lf}},numChildren:{configurable:!0,enumerable:!0,get:function(){return this.children.length}},byteLength:{configurable:!0,enumerable:!0,get:function(){var a=0;this.O&&(a+=this.O.byteLength);this.B&&(a+=this.B.byteLength);this.S&&(a+=this.S.byteLength);this.ha&&(a+=this.ha.byteLength);return this.children.reduce(function(b,
c){return b+c.byteLength},a)}},reservedLength:{configurable:!0,enumerable:!0,get:function(){return this.S.reservedLength}},reservedByteLength:{configurable:!0,enumerable:!0,get:function(){var a=0;this.O&&(a+=this.O.reservedByteLength);this.B&&(a+=this.B.reservedByteLength);this.S&&(a+=this.S.reservedByteLength);this.ha&&(a+=this.ha.reservedByteLength);return this.children.reduce(function(b,c){return b+c.reservedByteLength},a)}},valueOffsets:{configurable:!0,enumerable:!0,get:function(){return this.O?
this.O.buffer:null}},values:{configurable:!0,enumerable:!0,get:function(){return this.B?this.B.buffer:null}},nullBitmap:{configurable:!0,enumerable:!0,get:function(){return this.S?this.S.buffer:null}},typeIds:{configurable:!0,enumerable:!0,get:function(){return this.ha?this.ha.buffer:null}}});g=N.prototype;g.length=1;g.stride=1;g.children=null;g.finished=!1;g.nullValues=null;g.Mc=function(){return!0};function Yf(a){N.call(this,a);this.B=new Sf(new this.ArrayType(0),this.stride)}k.b(Yf,N);
Yf.prototype.setValue=function(a,b){var c=this.B;Rf(c,a-c.length+1);return N.prototype.setValue.call(this,a,b)};function Zf(a){N.call(this,a);this.Y=0;this.O=new Uf}k.b(Zf,N);g=Zf.prototype;g.setValue=function(a,b){var c=this.R||(this.R=new Map),f=c.get(a);f&&(this.Y-=f.length);this.Y+=b.length;c.set(a,b)};g.setValid=function(a,b){return N.prototype.setValid.call(this,a,b)?!0:((this.R||(this.R=new Map)).set(a,void 0),!1)};g.clear=function(){this.Y=0;this.R=void 0;return N.prototype.clear.call(this)};
g.flush=function(){$f(this);return N.prototype.flush.call(this)};g.finish=function(){$f(this);return N.prototype.finish.call(this)};function $f(a){var b=a.R,c=a.Y;a.Y=0;a.R=void 0;b&&0<b.size&&a.Da(b,c)}
function Wf(a){var b=a.queueingStrategy;b=void 0===b?"count":b;var c=a.highWaterMark,f=void 0===c?"bytes"!==b?1E3:Math.pow(2,14):c,d="bytes"!==b?"length":"byteLength";return function l(h){var m,n,r,v,y;return k.C.H(l,function(A){switch(A.j){case 1:m=0,n=N.new(a),r=k.w(h),v=r.next();case 2:if(v.done){if(!(0<n.finish().length||0===m)){A.i(0);break}return p(A,n.toVector(),0)}y=v.value;if(!(n.append(y)[d]>=f)){A.i(3);break}if(!++m){A.i(6);break}return p(A,n.toVector(),7);case 7:case 6:case 3:v=r.next(),
A.i(2)}})}}
function Xf(a){var b=a.queueingStrategy;b=void 0===b?"count":b;var c=a.highWaterMark,f=void 0===c?"bytes"!==b?1E3:Math.pow(2,14):c,d="bytes"!==b?"length":"byteLength";return function(e){return new wa(function l(){var m,n,r,v,y;return k.C.H(l,function(A){switch(A.j){case 1:m=0,n=N.new(a),r=k.Ja(e);case 2:return p(A,new q(2,r.next()),5);case 5:v=A.m;if(v.done){A.i(4);break}y=v.value;if(!(n.append(y)[d]>=f)){A.i(2);break}if(!++m){A.i(7);break}return p(A,new q(0,n.toVector()),8);case 8:case 7:A.i(2);break;
case 4:if(0<n.finish().length||0===m)return p(A,new q(0,n.toVector()),0);A.i(0)}})}())}};function ag(a){N.call(this,a);this.B=new Tf}k.b(ag,N);ag.prototype.setValue=function(a,b){this.B.set(a,+b)};function bg(){N.apply(this,arguments)}k.b(bg,N);bg.prototype.setValue=function(){};bg.prototype.setValid=function(a,b){this.length=Math.max(a+1,this.length);return b};function cg(){Yf.apply(this,arguments)}k.b(cg,Yf);function dg(){cg.apply(this,arguments)}k.b(dg,cg);function eg(){cg.apply(this,arguments)}k.b(eg,cg);function fg(){Yf.apply(this,arguments)}k.b(fg,Yf);function gg(a){var b=a.type,c=a.nullValues;a=a.dictionaryHashFunction;N.call(this,{type:new Gf(b.dictionary,b.indices,b.id,b.isOrdered)});this.S=null;this.wb=0;this.Nc=Object.create(null);this.indices=N.new({type:this.type.indices,nullValues:c});this.dictionary=N.new({type:this.type.dictionary,nullValues:null});"function"===typeof a&&(this.valueToKey=a)}k.b(gg,N);g=gg.prototype;g.isValid=function(a){return this.indices.isValid(a)};
g.setValid=function(a,b){var c=this.indices;b=c.setValid(a,b);this.length=c.length;return b};g.setValue=function(a,b){var c=this.Nc,f=this.valueToKey(b),d=c[f];void 0===d&&(c[f]=d=this.wb+this.dictionary.append(b).length-1);return this.indices.setValue(a,d)};g.flush=function(){var a=this.type,b=this.Ue,c=this.dictionary.toVector();a=this.indices.flush().clone(a);a.dictionary=b?b.concat(c):c;this.finished||(this.wb+=c.length);this.Ue=a.dictionary;this.clear();return a};
g.finish=function(){this.indices.finish();this.dictionary.finish();this.wb=0;this.Nc=Object.create(null);return N.prototype.finish.call(this)};g.clear=function(){this.indices.clear();this.dictionary.clear();return N.prototype.clear.call(this)};g.valueToKey=function(a){return"string"===typeof a?a:""+a};
k.global.Object.defineProperties(gg.prototype,{values:{configurable:!0,enumerable:!0,get:function(){return this.indices.values}},nullCount:{configurable:!0,enumerable:!0,get:function(){return this.indices.nullCount}},nullBitmap:{configurable:!0,enumerable:!0,get:function(){return this.indices.nullBitmap}},byteLength:{configurable:!0,enumerable:!0,get:function(){return this.indices.byteLength+this.dictionary.byteLength}},reservedLength:{configurable:!0,enumerable:!0,get:function(){return this.indices.reservedLength+
this.dictionary.reservedLength}},reservedByteLength:{configurable:!0,enumerable:!0,get:function(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}}});function hg(){Yf.apply(this,arguments)}k.b(hg,Yf);var kg=new Float64Array(1),lg=new Uint32Array(kg.buffer);function mg(a){var b=(a&31744)>>10,c=(a&1023)/1024;a=Math.pow(-1,(a&32768)>>15);switch(b){case 31:return a*(c?NaN:1/0);case 0:return a*(c?6.103515625E-5*c:0)}return a*Math.pow(2,b-15)*(1+c)}
function ng(a){if(a!==a)return 32256;kg[0]=a;a=(lg[1]&2147483648)>>16&65535;var b=lg[1]&2146435072,c=0;1089470464<=b?0<lg[0]?b=31744:(b=(b&2080374784)>>16,c=(lg[1]&1048575)>>10):1056964608>=b?(c=1048576+(lg[1]&1048575),c=1048576+(c<<(b>>20)-998)>>21,b=0):(b=b-1056964608>>10,c=(lg[1]&1048575)+512>>10);return a|b|c&65535}var og={};og.float64ToUint16=ng;og.uint16ToFloat64=mg;function pg(){Yf.apply(this,arguments)}k.b(pg,Yf);function qg(){pg.apply(this,arguments)}k.b(qg,pg);qg.prototype.setValue=function(a,b){this.B.set(a,ng(b))};function rg(){pg.apply(this,arguments)}k.b(rg,pg);rg.prototype.setValue=function(a,b){this.B.set(a,b)};function sg(){pg.apply(this,arguments)}k.b(sg,pg);sg.prototype.setValue=function(a,b){this.B.set(a,b)};k.l();var tg=Symbol.for("isArrowBigNum");function ug(a,b){for(var c=[],f=1;f<arguments.length;++f)c[f-1]=arguments[f];return 0===c.length?Object.setPrototypeOf(z(this.TypedArray,a),this.constructor.prototype):Object.setPrototypeOf(new (Function.prototype.bind.apply(this.TypedArray,[null,a].concat(k.o(c)))),this.constructor.prototype)}ug.prototype[tg]=!0;ug.prototype.toJSON=function(){return'"'+vg(this)+'"'};ug.prototype.valueOf=function(){return wg(this)};ug.prototype.toString=function(){return vg(this)};
k.l();ug.prototype[Symbol.toPrimitive]=function(a){switch(void 0===a?"default":a){case "number":return wg(this);case "default":return xg(this)}return vg(this)};function yg(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return ug.apply(this,b)}function zg(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return ug.apply(this,b)}function Ag(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return ug.apply(this,b)}Object.setPrototypeOf(yg.prototype,Object.create(Int32Array.prototype));
Object.setPrototypeOf(zg.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Ag.prototype,Object.create(Uint32Array.prototype));Object.assign(yg.prototype,ug.prototype,{constructor:yg,signed:!0,TypedArray:Int32Array,BigIntArray:zb});Object.assign(zg.prototype,ug.prototype,{constructor:zg,signed:!1,TypedArray:Uint32Array,BigIntArray:Bb});Object.assign(Ag.prototype,ug.prototype,{constructor:Ag,signed:!0,TypedArray:Uint32Array,BigIntArray:Bb});
function wg(a){var b=a.signed;a=new Int32Array(a.buffer,a.byteOffset,a.length);for(var c=0,f=0,d=a.length,e,h;f<d;)h=a[f++],e=a[f++],b||(e>>>=0),c+=(h>>>0)+e*Math.pow(f,32);return c}var vg,xg;xb?(xg=function(a){return 8===a.byteLength?(new a.BigIntArray(a.buffer,a.byteOffset,1))[0]:Bg(a)},vg=function(a){return 8===a.byteLength?""+(new a.BigIntArray(a.buffer,a.byteOffset,1))[0]:Bg(a)}):xg=vg=Bg;
function Bg(a){var b="",c=new Uint32Array(2);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);var f=new Uint32Array((a=(new Uint16Array(a)).reverse()).buffer),d,e=a.length-1;do{for(c[0]=a[d=0];d<e;)a[d++]=c[1]=c[0]/10,c[0]=(c[0]-10*c[1]<<16)+a[d];a[d]=c[1]=c[0]/10;c[0]-=10*c[1];b=""+c[0]+b}while(f[0]||f[1]||f[2]||f[3]);return b?b:"0"}function Cg(a,b){return Cg.new(a,b)}
Cg.new=function(a,b){switch(b){case !0:return new yg(a);case !1:return new zg(a)}switch(a.constructor){case Int8Array:case Int16Array:case Int32Array:case zb:return new yg(a)}return 16===a.byteLength?new Ag(a):new zg(a)};Cg.he=function(a){return new yg(a)};Cg.wh=function(a){return new zg(a)};Cg.sf=function(a){return new Ag(a)};var Dg={};Dg.BN=Cg;Dg.bignumToBigInt=xg;Dg.bignumToString=vg;Dg.isArrowBigNumSymbol=tg;function Eg(){Yf.apply(this,arguments)}k.b(Eg,Yf);Eg.prototype.setValue=function(a,b){this.B.set(a,b)};function Fg(){Eg.apply(this,arguments)}k.b(Fg,Eg);function Gg(){Eg.apply(this,arguments)}k.b(Gg,Eg);function Hg(){Eg.apply(this,arguments)}k.b(Hg,Eg);function Ig(a){a.nullValues&&(a.nullValues=a.nullValues.map(Jg));Eg.call(this,a);this.B=new Vf(new Int32Array(0),2)}k.b(Ig,Eg);Ig.prototype.isValid=function(a){return Eg.prototype.isValid.call(this,Jg(a))};
k.global.Object.defineProperties(Ig.prototype,{values64:{configurable:!0,enumerable:!0,get:function(){return this.B.hc}}});function Kg(){Eg.apply(this,arguments)}k.b(Kg,Eg);function Lg(){Eg.apply(this,arguments)}k.b(Lg,Eg);function Mg(){Eg.apply(this,arguments)}k.b(Mg,Eg);function Ng(a){a.nullValues&&(a.nullValues=a.nullValues.map(Jg));Eg.call(this,a);this.B=new Vf(new Uint32Array(0),2)}k.b(Ng,Eg);Ng.prototype.isValid=function(a){return Eg.prototype.isValid.call(this,Jg(a))};
k.global.Object.defineProperties(Ng.prototype,{values64:{configurable:!0,enumerable:!0,get:function(){return this.B.hc}}});var Jg=function(a){return function(b){ArrayBuffer.isView(b)&&(a.buffer=b.buffer,a.byteOffset=b.byteOffset,a.byteLength=b.byteLength,b=xg(a),a.buffer=null);return b}}({BigIntArray:zb});function Og(){Yf.apply(this,arguments)}k.b(Og,Yf);function Pg(){Og.apply(this,arguments)}k.b(Pg,Og);function Qg(){Og.apply(this,arguments)}k.b(Qg,Og);function Rg(){Og.apply(this,arguments)}k.b(Rg,Og);function Sg(){Og.apply(this,arguments)}k.b(Sg,Og);function Tg(){Yf.apply(this,arguments)}k.b(Tg,Yf);function Ug(){Tg.apply(this,arguments)}k.b(Ug,Tg);function Vg(){Tg.apply(this,arguments)}k.b(Vg,Tg);function Wg(){Tg.apply(this,arguments)}k.b(Wg,Tg);function Xg(){Tg.apply(this,arguments)}k.b(Xg,Tg);function Yg(){Yf.apply(this,arguments)}k.b(Yg,Yf);function Zg(){Yg.apply(this,arguments)}k.b(Zg,Yg);function $g(){Yg.apply(this,arguments)}k.b($g,Yg);function ah(a){Zf.call(this,a);this.B=new Qf(new Uint8Array(0))}k.b(ah,Zf);ah.prototype.setValue=function(a,b){return Zf.prototype.setValue.call(this,a,x(b))};ah.prototype.Da=function(a,b){var c=this.O;b=Rf(this.B,b).buffer;var f,d=0;a=k.w(a);for(f=a.next();!f.done;f=a.next()){var e=k.w(f.value);f=e.next().value;var h=e.next().value;void 0===h?c.set(f,0):(e=h.length,b.set(h,d),c.set(f,e),d+=e)}};
k.global.Object.defineProperties(ah.prototype,{byteLength:{configurable:!0,enumerable:!0,get:function(){var a=this.Y+4*this.length;this.O&&(a+=this.O.byteLength);this.B&&(a+=this.B.byteLength);this.S&&(a+=this.S.byteLength);return a}}});function bh(a){Zf.call(this,a);this.B=new Qf(new Uint8Array(0))}k.b(bh,Zf);bh.prototype.setValue=function(a,b){return Zf.prototype.setValue.call(this,a,mb(b))};bh.prototype.Da=function(){};k.global.Object.defineProperties(bh.prototype,{byteLength:{configurable:!0,enumerable:!0,get:function(){var a=this.Y+4*this.length;this.O&&(a+=this.O.byteLength);this.B&&(a+=this.B.byteLength);this.S&&(a+=this.S.byteLength);return a}}});bh.prototype.Da=ah.prototype.Da;function ch(){}ch.prototype.get=function(a){return this.B[a]};ch.prototype.clear=function(){this.B=null;return this};ch.prototype.bind=function(a){if(a instanceof D)return a;this.B=a;return this};k.global.Object.defineProperties(ch.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.B.length}}});k.l();var dh=Symbol.for("parent");k.l();var eh=Symbol.for("rowIndex");k.l();var fh=Symbol.for("keyToIdx");k.l();var gh=Symbol.for("idxToVal");k.l();var hh=Symbol.for("nodejs.util.inspect.custom");k.l();k.D();function ih(a,b){this[dh]=a;this.size=b}g=ih.prototype;g.entries=function(){k.l();k.D();return this[Symbol.iterator]()};g.has=function(a){return void 0!==this.get(a)};
g.get=function(a){var b=void 0;if(null!==a&&void 0!==a){var c=this[fh]||(this[fh]=new Map),f=c.get(a);void 0!==f?(a=this[gh]||(this[gh]=Array(this.size)),void 0!==(b=a[f])||(a[f]=b=this.getValue(f))):-1<(f=this.nc(a))&&(c.set(a,f),a=this[gh]||(this[gh]=Array(this.size)),void 0!==(b=a[f])||(a[f]=b=this.getValue(f)))}return b};
g.set=function(a,b){if(null!==a&&void 0!==a){var c=this[fh]||(this[fh]=new Map),f=c.get(a);void 0===f&&c.set(a,f=this.nc(a));-1<f&&((this[gh]||(this[gh]=Array(this.size)))[f]=this.setValue(f,b))}return this};g.clear=function(){k.l();throw Error("Clearing "+this[Symbol.toStringTag]+" not supported.");};g.delete=function(){k.l();throw Error("Deleting "+this[Symbol.toStringTag]+" values not supported.");};
ih.prototype[Symbol.iterator]=function jh(){var b=this,c,f,d,e,h,l,m,n,r;return k.C.H(jh,function(v){1==v.j&&(c=b.keys(),f=b.values(),d=b[fh]||(b[fh]=new Map),e=b[gh]||(b[gh]=Array(b.size)),l=h=void 0,m=0,r=n=void 0);if(3!=v.j){if((n=c.next()).done||(r=f.next()).done)return v.i(0);h=n.value;l=r.value;e[m]=l;d.has(h)||d.set(h,m);return p(v,[h,l],3)}++m;return v.i(2)})};
ih.prototype.forEach=function(a,b){for(var c=this.keys(),f=this.values(),d=void 0===b?a:function(v,y,A){return a.call(b,v,y,A)},e=this[fh]||(this[fh]=new Map),h=this[gh]||(this[gh]=Array(this.size)),l=void 0,m=void 0,n=0,r=l=void 0;!(l=c.next()).done&&!(r=f.next()).done;++n)l=l.value,m=r.value,h[n]=m,e.has(l)||e.set(l,n),d(m,l,this)};ih.prototype.toArray=function(){return[].concat(k.o(this.values()))};ih.prototype.toJSON=function(){var a={};this.forEach(function(b,c){return a[c]=b});return a};
ih.prototype[hh]=function(){return this.toString()};ih.prototype.toString=function(){var a=[];this.forEach(function(b,c){c=Nf(c);b=Nf(b);a.push(c+": "+b)});return"{ "+a.join(", ")+" }"};k.l();var kh=Symbol.toStringTag,lh,mh=ih.prototype,nh={};Object.defineProperties(mh,(nh.size={writable:!0,enumerable:!1,configurable:!1,value:0},nh[dh]={writable:!0,enumerable:!1,configurable:!1,value:null},nh[eh]={writable:!0,enumerable:!1,configurable:!1,value:-1},nh));k.l();lh=mh[Symbol.toStringTag]="Row";
ih[kh]=lh;function oh(a){ih.call(this,a,a.length);return ph(this)}k.b(oh,ih);g=oh.prototype;g.keys=function(){k.l();k.D();return this[dh].getChildAt(0)[Symbol.iterator]()};g.values=function(){k.l();k.D();return this[dh].getChildAt(1)[Symbol.iterator]()};g.getKey=function(a){return this[dh].getChildAt(0).get(a)};g.nc=function(a){return this[dh].getChildAt(0).indexOf(a)};g.getValue=function(a){return this[dh].getChildAt(1).get(a)};g.setValue=function(a,b){this[dh].getChildAt(1).set(a,b)};
function qh(a){ih.call(this,a,a.type.children.length);return rh(this)}k.b(qh,ih);g=qh.prototype;g.keys=function sh(){var b=this,c,f,d;return k.C.H(sh,function(e){1==e.j&&(c=k.w(b[dh].type.children),f=c.next());if(3!=e.j){if(f.done)return e.i(0);d=f.value;return p(e,d.name,3)}f=c.next();return e.i(2)})};g.values=function th(){var b=this,c,f,d;return k.C.H(th,function(e){1==e.j&&(c=k.w(b[dh].type.children),f=c.next());if(3!=e.j){if(f.done)return e.i(0);d=f.value;return p(e,b[d.name],3)}f=c.next();return e.i(2)})};
g.getKey=function(a){return this[dh].type.children[a].name};g.nc=function(a){return this[dh].type.children.findIndex(function(b){return b.name===a})};g.getValue=function(a){return this[dh].getChildAt(a).get(this[eh])};g.setValue=function(a,b){return this[dh].getChildAt(a).set(this[eh],b)};Object.setPrototypeOf(ih.prototype,Map.prototype);
var rh=function(){var a={enumerable:!0,configurable:!1,get:null,set:null};return function(b){function c(m){return function(n){return this.set(m,n)}}function f(m){return function(){return this.get(m)}}for(var d=-1,e=b[fh]||(b[fh]=new Map),h=k.w(b.keys()),l=h.next();!l.done;l=h.next())l=l.value,e.set(l,++d),a.get=f(l),a.set=c(l),b.hasOwnProperty(l)||(a.enumerable=!0,Object.defineProperty(b,l,a)),b.hasOwnProperty(d)||(a.enumerable=!1,Object.defineProperty(b,d,a));a.get=a.set=null;return b}}(),ph=function(){if("undefined"===
typeof Proxy)return rh;var a=ih.prototype.has,b=ih.prototype.get,c=ih.prototype.set,f=ih.prototype.getKey,d={isExtensible:function(){return!1},deleteProperty:function(){return!1},preventExtensions:function(){return!0},ownKeys:function(e){return[].concat(k.o(e.keys())).map(function(h){return""+h})},has:function(e,h){k.l();k.D();k.l();switch(h){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 dh:case eh:case gh:case fh:case hh:return!0}"number"!==
typeof h||e.has(h)||(h=e.getKey(h));return e.has(h)},get:function(e,h,l){k.l();k.D();k.l();switch(h){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 dh:case eh:case gh:case fh:case hh:return Reflect.get(e,
h,l)}"number"!==typeof h||a.call(l,h)||(h=f.call(l,h));return b.call(l,h)},set:function(e,h,l,m){k.l();k.D();k.l();switch(h){case dh:case eh:case gh:case fh:return Reflect.set(e,h,l,m);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}"number"!==
typeof h||a.call(m,h)||(h=f.call(m,h));return a.call(m,h)?!!c.call(m,h,l):!1}};return function(e){return new Proxy(e,d)}}();var uh;function vh(a,b,c,f){var d=void 0===a.length?0:a.length;b="number"!==typeof b?0:b;c="number"!==typeof c?d:c;0>b&&(b=(b%d+d)%d);0>c&&(c=(c%d+d)%d);c<b&&(uh=b,b=c,c=uh);c>d&&(c=d);return f?f(a,b,c):[b,c]}var wh=xb?wb(0):0;function xh(a){return a!==a}
function yh(a){var b=typeof a;if("object"!==b||null===a)return xh(a)?xh:"bigint"!==b?function(f){return f===a}:function(f){return wh+f===a};if(a instanceof Date){var c=a.valueOf();return function(f){return f instanceof Date?f.valueOf()===c:!1}}return ArrayBuffer.isView(a)?function(f){return f?Yb(a,f):!1}:a instanceof Map?zh(a):Array.isArray(a)?Ah(a):a instanceof D?Bh(a):Ch(a)}function Ah(a){for(var b=[],c=-1,f=a.length;++c<f;)b[c]=yh(a[c]);return Dh(b)}
function zh(a){var b=-1,c=[];a.forEach(function(f){return c[++b]=yh(f)});return Dh(c)}function Bh(a){for(var b=[],c=-1,f=a.length;++c<f;)b[c]=yh(a.get(c));return Dh(b)}function Ch(a){var b=Object.keys(a);if(0===b.length)return function(){return!1};for(var c=[],f=-1,d=b.length;++f<d;)c[f]=yh(a[b[f]]);return Dh(c,b)}
function Dh(a,b){return function(c){if(!c||"object"!==typeof c)return!1;switch(c.constructor){case Array:a:{var f=a.length;if(c.length!==f)c=!1;else{for(var d=-1;++d<f;)if(!a[d](c[d])){c=!1;break a}c=!0}}return c;case Map:case oh:case qh:return Eh(a,c,c.keys());case Object:case void 0:return Eh(a,c,b||Object.keys(c))}if(c instanceof D)a:if(f=a.length,c.length!==f)c=!1;else{for(d=-1;++d<f;)if(!a[d](c.get(d))){c=!1;break a}c=!0}else c=!1;return c}}
function Eh(a,b,c){k.l();k.D();c=c[Symbol.iterator]();k.l();k.D();var f=b instanceof Map?b.keys():Object.keys(b)[Symbol.iterator]();k.l();k.D();b=b instanceof Map?b.values():Object.values(b)[Symbol.iterator]();for(var d=0,e=a.length,h=b.next(),l=c.next(),m=f.next();d<e&&!l.done&&!m.done&&!h.done&&l.value===m.value&&a[d](h.value);++d,l=c.next(),m=f.next(),h=b.next());if(d===e&&l.done&&m.done&&h.done)return!0;c.return&&c.return();f.return&&f.return();b.return&&b.return();return!1}
var Fh={clampIndex:function(a,b,c){var f=a.length;b=-1<b?b:f+b%f;return c?c(a,b):b}};Fh.clampRange=vh;Fh.createElementComparator=yh;k.l();k.D();function O(a,b,c){b=void 0===b?[]:b;if(void 0===c){c=b;for(var f=new Uint32Array((c||[]).length+1),d=f[0]=0,e=f.length,h=0;++h<e;)f[h]=d+=c[h-1].length;c=f}this.wa=-1;this.ga=a;this.I=b;this.Sb=c;this.Va=c[c.length-1];this.Xb=(this.ga.children||[]).length}k.b(O,D);O.flatten=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return Gh(D,b,[],0)};
O.concat=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=O.flatten.apply(O,k.o(b));return new O(b[0].type,b)};O.prototype[Symbol.iterator]=function Hh(){var b=this,c,f,d;return k.C.H(Hh,function(e){1==e.j&&(c=k.w(b.I),f=c.next());if(3!=e.j){if(f.done)return e.i(0);d=f.value;return ea(e,d,3)}f=c.next();return e.i(2)})};g=O.prototype;g.clone=function(a){a=void 0===a?this.I:a;return new O(this.ga,a)};
g.concat=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.clone(O.flatten.apply(O,[this].concat(k.o(b))))};g.slice=function(a,b){return vh(this,a,b,this.ac)};g.getChildAt=function(a){if(0>a||a>=this.Xb)return null;var b=this.ea||(this.ea=[]),c;if(c=b[a])return c;if(c=(this.ga.children||[])[a]){var f=this.I.map(function(d){return d.getChildAt(a)}).filter(function(d){return null!=d});if(0<f.length)return b[a]=new O(c.type,f)}return null};
g.search=function(a,b){var c=this.Sb,f=c.length-1;if(0>a||a>=c[f])return null;if(1>=f)return b?b(this,0,a):[0,a];var d=0,e=0;do{if(d+1===f)return b?b(this,d,a-e):[d,a-e];var h=d+(f-d)/2|0;a>=c[h]?d=h:f=h}while(a<c[f]&&a>=(e=c[d]));return null};g.isValid=function(a){return!!this.search(a,this.isValidInternal)};g.get=function(a){return this.search(a,this.getInternal)};g.set=function(a,b){this.search(a,function(c,f,d){return c.chunks[f].set(d,b)})};
g.indexOf=function(a,b){var c=this;return b&&"number"===typeof b?this.search(b,function(f,d,e){return c.indexOfInternal(f,d,e,a)}):this.indexOfInternal(this,0,Math.max(0,b||0),a)};g.toArray=function(){var a=this.chunks,b=a.length,c=this.ga.ArrayType;if(0>=b)return new c(0);if(1>=b)return a[0].toArray();for(var f=0,d=Array(b),e=-1;++e<b;)f+=(d[e]=a[e].toArray()).length;c!==d[0].constructor&&(c=d[0].constructor);a=new c(f);c=c===Array?Ih:Jh;f=-1;for(e=0;++f<b;)e=c(d[f],a,e);return a};
g.getInternal=function(a,b,c){return a.I[b].get(c)};g.isValidInternal=function(a,b,c){return a.I[b].isValid(c)};g.indexOfInternal=function(a,b,c,f){a=a.I;--b;var d=a.length,e=c;for(c=0;++b<d;){if(~(e=a[b].indexOf(f,e)))return c+e;e=0;c+=a[b].length}return-1};g.ac=function(a,b,c){for(var f=[],d=a.chunks,e=a.Sb,h=-1,l=d.length;++h<l;){var m=d[h],n=m.length,r=e[h];if(r>=c)break;b>=r+n||(r>=b&&r+n<=c?f.push(m):f.push(m.slice(Math.max(0,b-r),Math.min(c-r,n))))}return a.clone(f)};
k.global.Object.defineProperties(O.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.ga}},length:{configurable:!0,enumerable:!0,get:function(){return this.Va}},chunks:{configurable:!0,enumerable:!0,get:function(){return this.I}},typeId:{configurable:!0,enumerable:!0,get:function(){return this.ga.typeId}},VectorName:{configurable:!0,enumerable:!0,get:function(){return"Chunked<"+this.ga+">"}},data:{configurable:!0,enumerable:!0,get:function(){return this.I[0]?this.I[0].data:
null}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.ga.ArrayType}},numChildren:{configurable:!0,enumerable:!0,get:function(){return this.Xb}},stride:{configurable:!0,enumerable:!0,get:function(){return this.I[0]?this.I[0].stride:1}},byteLength:{configurable:!0,enumerable:!0,get:function(){return this.I.reduce(function(a,b){return a+b.byteLength},0)}},nullCount:{configurable:!0,enumerable:!0,get:function(){var a=this.wa;0>a&&(this.wa=a=this.I.reduce(function(b,c){return b+c.nullCount},
0));return a}},indices:{configurable:!0,enumerable:!0,get:function(){if(M.isDictionary(this.ga)){if(!this.Lc){var a=this.I;this.Lc=1===a.length?a[0].indices:O.concat.apply(O,k.o(a.map(function(b){return b.indices})))}return this.Lc}return null}},dictionary:{configurable:!0,enumerable:!0,get:function(){return M.isDictionary(this.ga)?this.I[this.I.length-1].data.dictionary:null}}});function Jh(a,b,c){b.set(a,c);return c+a.length}
function Ih(a,b,c){for(var f=-1,d=a.length;++f<d;)b[c++]=a[f];return c};function Kh(a,b,c){b=void 0===b?[]:b;b=O.flatten.apply(O,k.o(b));O.call(this,a.type,b,c);this.Ta=a;if(1===b.length&&!(this instanceof Lh))return new Lh(a,b[0],this.Sb)}k.b(Kh,O);
Kh.new=function(a,b,c){for(var f=[],d=2;d<arguments.length;++d)f[d-2]=arguments[d];f=O.flatten(Array.isArray(b)?[].concat(k.o(b),k.o(f)):b instanceof D?[b].concat(k.o(f)):[D.new.apply(D,[b].concat(k.o(f)))]);"string"===typeof a?a=new P(a,f[0].data.type,!0):!a.nullable&&f.some(function(e){return 0<e.nullCount})&&(a=a.clone({nullable:!0}));return new Kh(a,f)};Kh.prototype.clone=function(a){a=void 0===a?this.I:a;return new Kh(this.Ta,a)};
Kh.prototype.getChildAt=function(a){if(0>a||a>=this.numChildren)return null;var b=this.ea||(this.ea=[]),c;if(c=b[a])return c;if(c=(this.type.children||[])[a]){var f=this.I.map(function(d){return d.getChildAt(a)}).filter(function(d){return null!=d});if(0<f.length)return b[a]=new Kh(c,f)}return null};
k.global.Object.defineProperties(Kh.prototype,{field:{configurable:!0,enumerable:!0,get:function(){return this.Ta}},name:{configurable:!0,enumerable:!0,get:function(){return this.Ta.name}},nullable:{configurable:!0,enumerable:!0,get:function(){return this.Ta.nullable}},metadata:{configurable:!0,enumerable:!0,get:function(){return this.Ta.metadata}}});function Lh(a,b,c){a=Kh.call(this,a,[b],c)||this;a.ub=b;return a}k.b(Lh,Kh);g=Lh.prototype;g.search=function(a,b){return b?b(this,0,a):[0,a]};
g.isValid=function(a){return this.ub.isValid(a)};g.get=function(a){return this.ub.get(a)};g.set=function(a,b){this.ub.set(a,b)};g.indexOf=function(a,b){return this.ub.indexOf(a,b)};var Mh=Array.isArray;function Nh(a){a=k.w(Oh(a,[[],[]]));var b=a.next().value;return a.next().value.map(function(c,f){return c instanceof Kh?Kh.new(c.field.clone(b[f]),c):c instanceof D?Kh.new(b[f],c):Kh.new(b[f],[])})}function Ph(a,b,c,f){for(var d,e=-1,h=b.length;++e<h;)Mh(d=b[e])?f=Ph(a,d,c,f).length:d instanceof a&&(c[f++]=d);return c}
function Gh(a,b,c,f){for(var d,e=-1,h=b.length;++e<h;)Mh(d=b[e])?f=Gh(a,d,c,f).length:d instanceof O?f=Gh(a,d.chunks,c,f).length:d instanceof a&&(c[f++]=d);return c}function Qh(a,b,c,f){for(var d,e=-1,h=b.length;++e<h;)Mh(d=b[e])?f=Qh(a,d,c,f).length:d instanceof a?f=Ph(D,d.schema.fields.map(function(l,m){return d.getChildAt(m)}),c,f).length:d instanceof D&&(c[f++]=d);return c}
function Rh(a,b,c,f){for(var d,e=-1,h=b.length;++e<h;)Mh(d=b[e])?f=Rh(a,d,c,f).length:d instanceof a?f=Ph(Kh,d.schema.fields.map(function(l,m){return Kh.new(l,d.getChildAt(m))}),c,f).length:d instanceof Kh&&(c[f++]=d);return c}function Sh(a,b,c){var f=k.w(b);b=f.next().value;f=f.next().value;return a[0][c]=b,a[1][c]=f,a}
function Oh(a,b){var c;switch(c=a.length){case 0:return b;case 1:var f=b[0];if(!a[0])return b;if(Mh(a[0]))return Oh(a[0],b);a[0]instanceof L||a[0]instanceof D||a[0]instanceof M||(a=k.w(Object.entries(a[0]).reduce(Sh,b)),f=a.next().value,a=a.next().value);break;default:Mh(f=a[c-1])?a=Mh(a[0])?a[0]:a.slice(0,c-1):(a=Mh(a[0])?a[0]:a,f=[])}var d=c=-1,e=-1,h=a.length;var l=k.w(b);for(var m=l.next().value,n=l.next().value;++e<h;)if(l=a[e],l instanceof Kh&&(n[++d]=l))m[++c]=l.field.clone(f[e],l.type,!0);
else{var r=f[e];r=void 0===r?e:r;l instanceof M&&(n[++d]=l)?m[++c]=P.new(r,l,!0):l&&l.type&&(n[++d]=l)&&(l instanceof L&&(n[d]=l=D.new(l)),m[++c]=P.new(r,l.type,!0))}return b};k.l();function Q(a,b,c){this.fields=(a=void 0===a?[]:a)||[];this.metadata=b||new Map;c||(c=Th(a));this.dictionaries=c}Q.from=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return Q.new(b[0],b[1])};Q.new=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return new Q(Oh(b,[[],[]])[0])};g=Q.prototype;g.toString=function(){return"Schema<{ "+this.fields.map(function(a,b){return b+": "+a}).join(", ")+" }>"};
g.compareTo=function(a){return this===a||a instanceof this.constructor&&Ad(this.fields,a.fields)};g.select=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=b.reduce(function(d,e){return d[e]=!0,d},Object.create(null));return new Q(this.fields.filter(function(d){return f[d.name]}),this.metadata)};g.selectAt=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=this;return new Q(b.map(function(d){return f.fields[d]}).filter(Boolean),this.metadata)};
g.assign=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=b[0]instanceof Q?b[0]:new Q(Ph(P,b,[],0));var f=[].concat(k.o(this.fields));b=Uh(Uh(new Map,this.metadata),c.metadata);c=c.fields.filter(function(e){var h=f.findIndex(function(l){return l.name===e.name});return~h?(f[h]=e.clone({metadata:Uh(Uh(new Map,f[h].metadata),e.metadata)}))&&!1:!0});var d=Th(c,new Map);return new Q([].concat(k.o(f),k.o(c)),b,new Map([].concat(k.o(this.dictionaries),k.o(d))))};var Vh={};
k.global.Object.defineProperties(Q.prototype,(Vh[Symbol.toStringTag]={configurable:!0,enumerable:!0,get:function(){return"Schema"}},Vh));k.l();function P(a,b,c,f){this.name=a;this.type=b;this.nullable=void 0===c?!1:c;this.metadata=f||new Map}
P.new=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=k.w(b);c=f.next().value;var d=f.next().value,e=f.next().value;f=f.next().value;b[0]&&"object"===typeof b[0]&&(c=b[0].name,void 0===d&&(d=b[0].type),void 0===e&&(e=b[0].nullable),void 0===f&&(f=b[0].metadata));return new P(""+c,d,e,f)};P.prototype.toString=function(){return this.name+": "+this.type};P.prototype.compareTo=function(a){return Bd(this,a)};
P.prototype.clone=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=this;c=k.w(b);var d=c.next().value,e=c.next().value,h=c.next().value,l=c.next().value;b[0]&&"object"===typeof b[0]?function(){var m=b[0];d=void 0===m.name?f.name:m.name;e=void 0===m.type?f.type:m.type;h=void 0===m.nullable?f.nullable:m.nullable;l=void 0===m.metadata?f.metadata:m.metadata;return m}():function(){var m=k.w(b),n=m.next().value;d=void 0===n?f.name:n;n=m.next().value;e=void 0===n?f.type:n;n=
m.next().value;h=void 0===n?f.nullable:n;m=m.next().value;l=void 0===m?f.metadata:m;return b}();return P.new(d,e,h,l)};var Wh={};k.global.Object.defineProperties(P.prototype,(Wh.typeId={configurable:!0,enumerable:!0,get:function(){return this.type.typeId}},Wh[Symbol.toStringTag]={configurable:!0,enumerable:!0,get:function(){return"Field"}},Wh));function Uh(a,b){return new Map([].concat(k.o(a||new Map),k.o(b||new Map)))}
function Th(a,b){b=void 0===b?new Map:b;for(var c=-1,f=a.length;++c<f;){var d=a[c].type;if(M.isDictionary(d))if(!b.has(d.id))b.set(d.id,d.dictionary);else if(b.get(d.id)!==d.dictionary)throw Error("Cannot create Schema containing two different dictionaries with the same Id");d.children&&0<d.children.length&&Th(d.children,b)}return b}Q.prototype.fields=null;Q.prototype.metadata=null;Q.prototype.dictionaries=null;P.prototype.type=null;P.prototype.name=null;P.prototype.nullable=null;
P.prototype.metadata=null;function Xh(a){Zf.call(this,a);this.Za=new ch;this.O=new Uf}k.b(Xh,Zf);Xh.prototype.addChild=function(a,b){if(0<this.numChildren)throw Error("ListBuilder can only have one child.");this.children[this.numChildren]=a;this.type=new ef(new P(void 0===b?"0":b,a.type,!0));return this.numChildren-1};Xh.prototype.clear=function(){this.Za.clear();return Zf.prototype.clear.call(this)};
Xh.prototype.Da=function(a){var b=this.Za,c=this.O,f=this.Ab,d;a=k.w(a);for(d=a.next();!d.done;d=a.next()){var e=k.w(d.value);d=e.next().value;e=e.next().value;void 0===e?c.set(d,0):(c.set(d,e.length),f(this,d,b.bind(e)))}};function Yh(){N.apply(this,arguments);this.Za=new ch}k.b(Yh,N);Yh.prototype.setValue=function(a,b){N.prototype.setValue.call(this,a,this.Za.bind(b))};Yh.prototype.addChild=function(a,b){b=void 0===b?"0":b;if(0<this.numChildren)throw Error("FixedSizeListBuilder can only have one child.");var c=this.children.push(a);this.type=new xf(this.type.listSize,new P(b,a.type,!0));return c};Yh.prototype.clear=function(){this.Za.clear();return N.prototype.clear.call(this)};function Zh(){Zf.apply(this,arguments)}k.b(Zh,Zf);Zh.prototype.set=function(a,b){return Zf.prototype.set.call(this,a,b)};Zh.prototype.setValue=function(a,b){b=b instanceof Map?b:new Map(Object.entries(b));var c=this.R||(this.R=new Map),f=c.get(a);f&&(this.Y-=f.size);this.Y+=b.size;c.set(a,b)};
Zh.prototype.addChild=function(a,b){b=void 0===b?""+this.numChildren:b;if(0<this.numChildren)throw Error("ListBuilder can only have one child.");this.children[this.numChildren]=a;this.type=new Bf(new P(b,a.type,!0),this.type.keysSorted);return this.numChildren-1};Zh.prototype.Da=function(a){var b=this,c=this.O,f=this.Ab;a.forEach(function(d,e){void 0===d?c.set(e,0):(c.set(e,d.size),f(b,e,d))})};function $h(){N.apply(this,arguments)}k.b($h,N);$h.prototype.addChild=function(a,b){b=void 0===b?""+this.numChildren:b;var c=this.children.push(a);this.type=new jf([].concat(k.o(this.type.children),[new P(b,a.type,!0)]));return c};function ai(a){N.call(this,a);this.ha=new Sf(new Int8Array(0),1);"function"===typeof a.valueToChildTypeId&&(this.Pc=a.valueToChildTypeId)}k.b(ai,N);g=ai.prototype;g.append=function(a,b){return this.set(this.length,a,b)};g.set=function(a,b,c){void 0===c&&(c=this.Pc(this,b,a));this.setValid(a,this.isValid(b))&&this.setValue(a,b,c);return this};g.setValue=function(a,b,c){this.ha.set(a,c);N.prototype.setValue.call(this,a,b)};
g.addChild=function(a,b){b=void 0===b?""+this.children.length:b;var c=this.children.push(a),f=this.type,d=f.mode,e=f.typeIds;a=[].concat(k.o(f.children),[new P(b,a.type)]);this.type=new nf(d,[].concat(k.o(e),[c]),a);return c};g.Pc=function(){throw 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.");};
k.global.Object.defineProperties(ai.prototype,{typeIdToChildIndex:{configurable:!0,enumerable:!0,get:function(){return this.type.typeIdToChildIndex}}});function bi(){ai.apply(this,arguments)}k.b(bi,ai);function ci(a){ai.call(this,a);this.O=new Sf(new Int32Array(0))}k.b(ci,ai);ci.prototype.setValue=function(a,b,c){this.O.set(a,this.getChildAt(this.type.typeIdToChildIndex[c]).length);return ai.prototype.setValue.call(this,a,b,c)};function di(){}k.b(di,wd);function ei(a,b,c,f){var d=b[c];b=b[c+1];null!=d&&null!=b&&a.set(f.subarray(0,b-d),d)}function fi(a,b,c){a.values[b]=c.valueOf()/864E5|0}function gi(a,b,c){a=a.values;b*=2;c=c.valueOf();a[b]=c%4294967296|0;a[b+1]=c/4294967296|0}function hi(a,b,c){a.values[a.stride*b]=c}function ii(a,b,c){a.values[a.stride*b]=ng(c)}
function ji(a,b,c){switch(typeof c){case "bigint":a.values64[b]=c;break;case "number":a.values[b*a.stride]=c;break;default:var f=a.stride;c=z(a.ArrayType,c);a.values.set(c.subarray(0,f),f*b)}}function ki(a,b,c){a=a.values;b*=2;c/=1E3;a[b]=c%4294967296|0;a[b+1]=c/4294967296|0}function li(a,b,c){a=a.values;b*=2;a[b]=c%4294967296|0;a[b+1]=c/4294967296|0}function mi(a,b,c){a=a.values;b*=2;a[b]=1E3*c%4294967296|0;a[b+1]=1E3*c/4294967296|0}
function ni(a,b,c){a=a.values;b*=2;a[b]=1E6*c%4294967296|0;a[b+1]=1E6*c/4294967296|0}function oi(a,b,c){a.values[a.stride*b]=c}function pi(a,b,c){a.values[a.stride*b]=c}function qi(a,b,c){a.values.set(c.subarray(0,2),2*b)}function ri(a,b,c){a.values.set(c.subarray(0,2),2*b)}function si(a,b){return function(c,f,d){return c&&c.set(a,b[d])}}function ti(a,b){return function(c,f,d){return c&&c.set(a,b.get(d))}}function ui(a,b){return function(c,f){return c&&c.set(a,b.get(f.name))}}
function vi(a,b){return function(c,f){return c&&c.set(a,b[f.name])}}function wi(a,b,c){var f=a.getChildAt(a.typeIdToChildIndex[a.typeIds[b]]);f&&f.set(a.valueOffsets[b],c)}function xi(a,b,c){(a=a.getChildAt(a.typeIdToChildIndex[a.typeIds[b]]))&&a.set(b,c)}function yi(a,b,c){a.values.set(c.subarray(0,2),2*b)}function zi(a,b,c){a.values[b]=12*c[0]+c[1]%12}g=di.prototype;g.visitBool=function(a,b,c){var f=a.values;a=a.offset+b;c?f[a>>3]|=1<<a%8:f[a>>3]&=~(1<<a%8)};
g.visitInt=function(a,b,c){64>a.type.bitWidth?hi(a,b,c):ji(a,b,c)};g.visitInt8=hi;g.visitInt16=hi;g.visitInt32=hi;g.visitInt64=ji;g.visitUint8=hi;g.visitUint16=hi;g.visitUint32=hi;g.visitUint64=ji;g.visitFloat=function(a,b,c){a.type.precision!==hd.HALF?hi(a,b,c):ii(a,b,c)};g.visitFloat16=ii;g.visitFloat32=hi;g.visitFloat64=hi;g.visitUtf8=function(a,b,c){ei(a.values,a.valueOffsets,b,mb(c))};g.visitBinary=function(a,b,c){return ei(a.values,a.valueOffsets,b,c)};
g.visitFixedSizeBinary=function(a,b,c){var f=a.stride;a.values.set(c.subarray(0,f),f*b)};g.visitDate=function(a,b,c){a.type.unit===gd.DAY?fi(a,b,c):gi(a,b,c)};g.visitDateDay=fi;g.visitDateMillisecond=gi;g.visitTimestamp=function(a,b,c){switch(a.type.unit){case G.SECOND:return ki(a,b,c);case G.MILLISECOND:return li(a,b,c);case G.MICROSECOND:return mi(a,b,c);case G.NANOSECOND:return ni(a,b,c)}};g.visitTimestampSecond=ki;g.visitTimestampMillisecond=li;g.visitTimestampMicrosecond=mi;
g.visitTimestampNanosecond=ni;g.visitTime=function(a,b,c){switch(a.type.unit){case G.SECOND:return oi(a,b,c);case G.MILLISECOND:return pi(a,b,c);case G.MICROSECOND:return qi(a,b,c);case G.NANOSECOND:return ri(a,b,c)}};g.visitTimeSecond=oi;g.visitTimeMillisecond=pi;g.visitTimeMicrosecond=qi;g.visitTimeNanosecond=ri;g.visitDecimal=function(a,b,c){a.values.set(c.subarray(0,4),4*b)};g.visitList=function(a,b,c){var f=a.getChildAt(0),d=a.valueOffsets;a=-1;var e=d[b];for(b=d[b+1];e<b;)f.set(e++,c.get(++a))};
g.visitStruct=function(a,b,c){var f=c instanceof Map?ui(b,c):c instanceof D?ti(b,c):Array.isArray(c)?si(b,c):vi(b,c);a.type.children.forEach(function(d,e){return f(a.getChildAt(e),d,e)})};g.visitUnion=function(a,b,c){a.type.mode===id.Dense?wi(a,b,c):xi(a,b,c)};g.visitDenseUnion=wi;g.visitSparseUnion=xi;g.visitDictionary=function(a,b,c){b=a.getKey(b);null!==b&&a.setValue(b,c)};g.visitInterval=function(a,b,c){a.type.unit===jd.DAY_TIME?yi(a,b,c):zi(a,b,c)};g.visitIntervalDayTime=yi;
g.visitIntervalYearMonth=zi;g.visitFixedSizeList=function(a,b,c){var f=a.getChildAt(0);a=a.stride;var d=-1;for(b*=a;++d<a;)f.set(b+d,c.get(d))};g.visitMap=function(a,b,c){var f=a.getChildAt(0);a=a.valueOffsets;c=c instanceof Map?[].concat(k.o(c)):Object.entries(c);var d=-1,e=a[b];for(b=a[b+1];e<b;)f.set(e++,c[++d])};var Ai=new di;function Bi(){}k.b(Bi,wd);g=Bi.prototype;g.visitNull=function(){return bg};g.visitBool=function(){return ag};g.visitInt=function(){return Eg};g.visitInt8=function(){return Fg};g.visitInt16=function(){return Gg};g.visitInt32=function(){return Hg};g.visitInt64=function(){return Ig};g.visitUint8=function(){return Kg};g.visitUint16=function(){return Lg};g.visitUint32=function(){return Mg};g.visitUint64=function(){return Ng};g.visitFloat=function(){return pg};g.visitFloat16=function(){return qg};
g.visitFloat32=function(){return rg};g.visitFloat64=function(){return sg};g.visitUtf8=function(){return bh};g.visitBinary=function(){return ah};g.visitFixedSizeBinary=function(){return hg};g.visitDate=function(){return cg};g.visitDateDay=function(){return dg};g.visitDateMillisecond=function(){return eg};g.visitTimestamp=function(){return Tg};g.visitTimestampSecond=function(){return Ug};g.visitTimestampMillisecond=function(){return Vg};g.visitTimestampMicrosecond=function(){return Wg};
g.visitTimestampNanosecond=function(){return Xg};g.visitTime=function(){return Og};g.visitTimeSecond=function(){return Pg};g.visitTimeMillisecond=function(){return Qg};g.visitTimeMicrosecond=function(){return Rg};g.visitTimeNanosecond=function(){return Sg};g.visitDecimal=function(){return fg};g.visitList=function(){return Xh};g.visitStruct=function(){return $h};g.visitUnion=function(){return ai};g.visitDenseUnion=function(){return ci};g.visitSparseUnion=function(){return bi};g.visitDictionary=function(){return gg};
g.visitInterval=function(){return Yg};g.visitIntervalDayTime=function(){return Zg};g.visitIntervalYearMonth=function(){return $g};g.visitFixedSizeList=function(){return Yh};g.visitMap=function(){return Zh};var Ci=new Bi;N.new=Di;function Di(a){var b=a.type,c=new (Ci.getVisitFn(b)())(a);if(b.children&&0<b.children.length){var f=a.children||[],d={nullValues:a.nullValues},e=Array.isArray(f)?function(h,l){return f[l]||d}:function(h){return f[h.name]||d};b.children.forEach(function(h,l){var m=h.type;h=e(h,l);c.children.push(Di(Object.assign({},h,{type:m})))})}return c}Object.keys(I).map(function(a){return I[a]}).filter(function(a){return"number"===typeof a&&a!==I.NONE}).forEach(function(a){Ci.visit(a).prototype.Ab=Ai.getVisitFn(a)});
bh.prototype.Ab=Ai.visitBinary;var Ei;
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Ef=function(e){return(new d).s(e.v(e.position())+e.position(),e)};d.prototype.version=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):E.f.g.h.MetadataVersion.V1};d.prototype.schema=function(e){var h=w(this.a,this.c,6);return h?(e||new E.f.g.h.Schema).s($a(this.a,this.c+h),this.a):null};d.prototype.dictionaries=function(e,h){var l=w(this.a,
this.c,8);return l?(h||new a.f.g.h.Mb).s(ab(this.a,this.c+l)+24*e,this.a):null};d.prototype.tf=function(){var e=w(this.a,this.c,8);return e?bb(this.a,this.c+e):0};d.prototype.tc=function(e,h){var l=w(this.a,this.c,10);return l?(h||new a.f.g.h.Mb).s(ab(this.a,this.c+l)+24*e,this.a):null};d.prototype.Of=function(){var e=w(this.a,this.c,10);return e?bb(this.a,this.c+e):0};d.ve=function(e){t(e,4)};d.eb=function(e,h){Ma(e,h,E.f.g.h.MetadataVersion.V1)};d.rd=function(e,h){Pa(e,1,h)};d.Xc=function(e,h){Pa(e,
2,h)};d.Uf=function(e,h){Ta(e,24,h,8)};d.pd=function(e,h){Pa(e,3,h)};d.ag=function(e,h){Ta(e,24,h,8)};d.Ld=function(e){return u(e)};d.Bf=function(e,h){e.finish(h)};d.yg=function(e,h,l,m,n){d.ve(e);d.eb(e,h);d.rd(e,l);d.Xc(e,m);d.pd(e,n);return d.Ld(e)};f.Ne=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Ei||(Ei={}));
(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.prototype.offset=function(){return Xa(this.a,this.c)};d.prototype.oc=function(){return this.a.v(this.c+8)};d.prototype.bodyLength=function(){return Xa(this.a,this.c+16)};d.mf=function(e,h,l,m){Ia(e,8,24);e.qa(m);Ja(e,4);e.da(l);e.qa(h);return e.offset()};f.Mb=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Ei||(Ei={}));var Fi=Ei.f.g.h.Mb,Ki=Ei.f.g.h.Ne;function Li(a,b,c,f){b=void 0===b?kd.V4:b;this.schema=a;this.version=b;c&&(this.sa=c);f&&(this.Hc=f)}Li.decode=function(a){a=new Ga(x(a));a=Ki.Ef(a);var b=Q.decode(a.schema());return new Mi(b,a)};
Li.encode=function(a){var b=new Fa,c=Q.encode(b,a.schema);Ki.ag(b,a.numRecordBatches);[].concat(k.o(a.tc())).slice().reverse().forEach(function(d){return Ni.encode(b,d)});var f=Ua(b);Ki.Uf(b,a.numDictionaries);[].concat(k.o(Oi(a))).slice().reverse().forEach(function(d){return Ni.encode(b,d)});a=Ua(b);Ki.ve(b);Ki.rd(b,c);Ki.eb(b,kd.V4);Ki.pd(b,f);Ki.Xc(b,a);Ki.Bf(b,Ki.Ld(b));return Ha(b)};
Li.prototype.tc=function Pi(){var b=this,c,f,d;return k.C.H(Pi,function(e){1==e.j&&(c=void 0,f=-1,d=b.numRecordBatches);return++f<d?(c=b.Ia(f))?p(e,c,2):e.i(2):e.i(0)})};var Oi=function Qi(a){var c,f,d;return k.C.H(Qi,function(e){1==e.j&&(c=void 0,f=-1,d=a.numDictionaries);return++f<d?(c=a.Hb(f))?p(e,c,2):e.i(2):e.i(0)})};Li.prototype.Ia=function(a){return 0<=a&&a<this.numRecordBatches&&this.sa[a]||null};Li.prototype.Hb=function(a){return 0<=a&&a<this.numDictionaries&&this.Hc[a]||null};
k.global.Object.defineProperties(Li.prototype,{numRecordBatches:{configurable:!0,enumerable:!0,get:function(){return this.sa.length}},numDictionaries:{configurable:!0,enumerable:!0,get:function(){return this.Hc.length}}});function Mi(a,b){Li.call(this,a,b.version());this.A=b}k.b(Mi,Li);Mi.prototype.Ia=function(a){return 0<=a&&a<this.numRecordBatches&&(a=this.A.tc(a))?Ni.decode(a):null};Mi.prototype.Hb=function(a){return 0<=a&&a<this.numDictionaries&&(a=this.A.dictionaries(a))?Ni.decode(a):null};
k.global.Object.defineProperties(Mi.prototype,{numRecordBatches:{configurable:!0,enumerable:!0,get:function(){return this.A.Of()}},numDictionaries:{configurable:!0,enumerable:!0,get:function(){return this.A.tf()}}});function Ni(a,b,c){this.oc=a;this.offset="number"===typeof c?c:c.low;this.bodyLength="number"===typeof b?b:b.low}Ni.decode=function(a){return new Ni(a.oc(),a.bodyLength(),a.offset())};Ni.encode=function(a,b){return Fi.mf(a,new Da(b.offset,0),b.oc,new Da(b.bodyLength,0))};function Ri(){sb.apply(this,arguments)}k.b(Ri,sb);Ri.prototype.write=function(a){if(0<(a=x(a)).byteLength)return sb.prototype.write.call(this,a)};Ri.prototype.toString=function(a){return(void 0===a?0:a)?lb(this.toUint8Array(!0)):this.toUint8Array(!1).then(lb)};
Ri.prototype.toUint8Array=function(a){var b=this;return(void 0===a?0:a)?Nb(this.B)[0]:function(){var c,f,d,e,h;return k.u(function(l){switch(l.j){case 1:c=[],f=0,d=k.Ja(b);case 2:return p(l,d.next(),5);case 5:e=l.m;if(e.done){l.i(4);break}h=e.value;c.push(h);f+=h.byteLength;l.i(2);break;case 4:return l.return(Nb(c,f)[0])}})}()};k.l();k.D();function Si(a){a&&(this.source=new Ti(Zb($b(a))))}Si.prototype[Symbol.iterator]=function(){return this};g=Si.prototype;g.next=function(a){return this.source.next(a)};
g.throw=function(a){return this.source.throw(a)};g.return=function(a){return this.source.return(a)};g.peek=function(a){return this.source.peek(a)};g.read=function(a){return this.source.read(a)};k.l();k.N();
function Ui(a){a instanceof Ui?this.source=a.source:a instanceof Ri?this.source=new Vi(Zb(ac(a))):Jb(a)?this.source=new Vi(Zb(jc(a))):Ib(a)?this.source=new Vi(Zb(bc(a))):Db(a)&&Ib(a.body)?this.source=new Vi(Zb(bc(a.body))):Fb(a)?this.source=new Vi(Zb($b(a))):Eb(a)?this.source=new Vi(Zb(ac(a))):Gb(a)&&(this.source=new Vi(Zb(ac(a))))}Ui.prototype[Symbol.asyncIterator]=function(){return this};g=Ui.prototype;g.next=function(a){return this.source.next(a)};g.throw=function(a){return this.source.throw(a)};
g.return=function(a){return this.source.return(a)};g.cancel=function(a){return this.source.cancel(a)};g.peek=function(a){return this.source.peek(a)};g.read=function(a){return this.source.read(a)};k.global.Object.defineProperties(Ui.prototype,{closed:{configurable:!0,enumerable:!0,get:function(){return this.source.closed}}});function Ti(a){this.source=a}g=Ti.prototype;g.cancel=function(a){this.return(a)};g.peek=function(a){return this.next(a,"peek").value};g.read=function(a){return this.next(a,"read").value};
g.next=function(a,b){return this.source.next({na:void 0===b?"read":b,size:a})};g.throw=function(a){return Object.create(this.source.throw&&this.source.throw(a)||nb)};g.return=function(a){return Object.create(this.source.return&&this.source.return(a)||nb)};function Vi(a){var b=this;this.source=a;this.Tb=new Promise(function(c){return b.X=c})}g=Vi.prototype;g.cancel=function(a){var b=this;return k.u(function(c){return p(c,b.return(a),0)})};
g.read=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.next(a,"read"),2):c.return(c.m.value)})};g.peek=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.next(a,"peek"),2):c.return(c.m.value)})};g.next=function(a,b){b=void 0===b?"read":b;var c=this;return k.u(function(f){return 1==f.j?p(f,c.source.next({na:b,size:a}),2):f.return(f.m)})};
g.throw=function(a){var b=this,c,f;return k.u(function(d){if(1==d.j)return(c=b.source.throw)?p(d,b.source.throw(a),3):d.i(2);2!=d.j&&(c=d.m);f=c||nb;b.X&&b.X();b.X=void 0;return d.return(Object.create(f))})};g.return=function(a){var b=this,c,f;return k.u(function(d){if(1==d.j)return(c=b.source.return)?p(d,b.source.return(a),3):d.i(2);2!=d.j&&(c=d.m);f=c||nb;b.X&&b.X();b.X=void 0;return d.return(Object.create(f))})};
k.global.Object.defineProperties(Vi.prototype,{closed:{configurable:!0,enumerable:!0,get:function(){return this.Tb}}});function Wi(a,b){Si.call(this);this.position=0;this.buffer=x(a);this.size="undefined"===typeof b?this.buffer.byteLength:b}k.b(Wi,Si);g=Wi.prototype;g.v=function(a){a=this.La(a,4);return(new DataView(a.buffer,a.byteOffset)).getInt32(0,!0)};g.seek=function(a){this.position=Math.min(a,this.size);return a<this.size};
g.read=function(a){var b=this.buffer,c=this.size,f=this.position;return b&&f<c?("number"!==typeof a&&(a=Infinity),this.position=Math.min(c,f+Math.min(c-f,a)),b.subarray(f,this.position)):null};g.La=function(a,b){var c=this.buffer,f=Math.min(this.size,a+b);return c?c.subarray(a,f):new Uint8Array(b)};g.close=function(){this.buffer&&(this.buffer=null)};g.throw=function(a){this.close();return{done:!0,value:a}};g.return=function(a){this.close();return{done:!0,value:a}};
function Xi(a,b){Ui.call(this);var c=this;this.position=0;this.V=a;"number"===typeof b?this.size=b:this.R=function(){var f;return k.u(function(d){if(1==d.j)return f=c,p(d,a.stat(),2);f.size=d.m.size;delete c.R;d.j=0})}()}k.b(Xi,Ui);g=Xi.prototype;g.v=function(a){var b=this,c,f,d;return k.u(function(e){if(1==e.j)return p(e,b.La(a,4),2);c=e.m;f=c.buffer;d=c.byteOffset;return e.return((new DataView(f,d)).getInt32(0,!0))})};
g.seek=function(a){var b=this;return k.u(function(c){if(1==c.j)return b.R?p(c,b.R,3):c.i(2);b.position=Math.min(a,b.size);return c.return(a<b.size)})};
g.read=function(a){var b=this,c,f,d,e,h,l,m,n,r,v;return k.u(function(y){switch(y.j){case 1:if(!b.R){y.i(2);break}return p(y,b.R,3);case 3:case 2:c=b;f=c.V;d=c.size;e=c.position;if(!(f&&e<d)){y.i(4);break}"number"!==typeof a&&(a=Infinity);h=e;m=l=0;n=Math.min(d,h+Math.min(d-h,a));r=new Uint8Array(Math.max(0,(b.position=n)-h));case 5:if(!((h+=m)<n&&(l+=m)<r.byteLength)){y.i(6);break}return p(y,f.read(r,l,r.byteLength-l,h),7);case 7:v=y.m;m=v.mg;y.i(5);break;case 6:return y.return(r);case 4:return y.return(null)}})};
g.La=function(a,b){var c=this,f,d,e,h,l;return k.u(function(m){switch(m.j){case 1:if(!c.R){m.i(2);break}return p(m,c.R,3);case 3:case 2:f=c;d=f.V;e=f.size;if(!(d&&a+b<e)){m.i(4);break}h=Math.min(e,a+b);l=new Uint8Array(h-a);return p(m,d.read(l,0,b,a),5);case 5:return m.return(m.m.buffer);case 4:return m.return(new Uint8Array(b))}})};g.close=function(){var a=this,b;return k.u(function(c){if(1==c.j)return b=a.V,a.V=null,b?p(c,b.close(),3):c.i(2);c.j=0})};
g.throw=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.close(),2):c.return({done:!0,value:a})})};g.return=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.close(),2):c.return({done:!0,value:a})})};function Yi(a){0>a&&(a=4294967295+a+1);return"0x"+a.toString(16)}var Zi=[1,10,100,1E3,1E4,1E5,1E6,1E7,1E8];function $i(a){this.buffer=a}g=$i.prototype;g.high=function(){return this.buffer[1]};g.low=function(){return this.buffer[0]};
function aj(a,b){var c=new Uint32Array([a.buffer[1]>>>16,a.buffer[1]&65535,a.buffer[0]>>>16,a.buffer[0]&65535]);b=new Uint32Array([b.buffer[1]>>>16,b.buffer[1]&65535,b.buffer[0]>>>16,b.buffer[0]&65535]);var f=c[3]*b[3];a.buffer[0]=f&65535;var d=f>>>16;f=c[2]*b[3];d+=f;f=c[3]*b[2]>>>0;d+=f;a.buffer[0]+=d<<16;a.buffer[1]=d>>>0<f?65536:0;a.buffer[1]+=d>>>16;a.buffer[1]+=c[1]*b[3]+c[2]*b[2]+c[3]*b[1];a.buffer[1]+=c[0]*b[3]+c[1]*b[2]+c[2]*b[1]+c[3]*b[0]<<16}
function bj(a,b){var c=a.buffer[0]+b.buffer[0]>>>0;a.buffer[1]+=b.buffer[1];c<a.buffer[0]>>>0&&++a.buffer[1];a.buffer[0]=c}g.lessThan=function(a){return this.buffer[1]<a.buffer[1]||this.buffer[1]===a.buffer[1]&&this.buffer[0]<a.buffer[0]};g.equals=function(a){return this.buffer[1]===a.buffer[1]&&this.buffer[0]==a.buffer[0]};g.greaterThan=function(a){return a.lessThan(this)};g.hex=function(){return Yi(this.buffer[1])+" "+Yi(this.buffer[0])};function R(){$i.apply(this,arguments)}k.b(R,$i);
R.prototype.times=function(a){aj(this,a);return this};R.prototype.plus=function(a){bj(this,a);return this};R.from=function(a,b){b=void 0===b?new Uint32Array(2):b;return R.fromString("string"===typeof a?a:a.toString(),b)};R.fromNumber=function(a,b){b=void 0===b?new Uint32Array(2):b;return R.fromString(a.toString(),b)};
R.fromString=function(a,b){b=void 0===b?new Uint32Array(2):b;var c=a.length;b=new R(b);for(var f=0;f<c;){var d=8<c-f?8:c-f,e=new R(new Uint32Array([parseInt(a.substr(f,d),10),0]));b.times(new R(new Uint32Array([Zi[d],0])));b.plus(e);f+=d}return b};R.convertArray=function(a){for(var b=new Uint32Array(2*a.length),c=-1,f=a.length;++c<f;)R.from(a[c],new Uint32Array(b.buffer,b.byteOffset+8*c,2));return b};R.multiply=function(a,b){return(new R(new Uint32Array(a.buffer))).times(b)};R.add=function(a,b){return(new R(new Uint32Array(a.buffer))).plus(b)};
function cj(){$i.apply(this,arguments)}k.b(cj,$i);cj.prototype.negate=function(){this.buffer[0]=~this.buffer[0]+1;this.buffer[1]=~this.buffer[1];0==this.buffer[0]&&++this.buffer[1];return this};cj.prototype.times=function(a){aj(this,a);return this};cj.prototype.plus=function(a){bj(this,a);return this};cj.prototype.lessThan=function(a){var b=this.buffer[1]<<0,c=a.buffer[1]<<0;return b<c||b===c&&this.buffer[0]<a.buffer[0]};
cj.from=function(a,b){b=void 0===b?new Uint32Array(2):b;return cj.fromString("string"===typeof a?a:a.toString(),b)};cj.fromNumber=function(a,b){b=void 0===b?new Uint32Array(2):b;return cj.fromString(a.toString(),b)};
cj.fromString=function(a,b){b=void 0===b?new Uint32Array(2):b;var c=a.startsWith("-"),f=a.length;b=new cj(b);for(var d=c?1:0;d<f;){var e=8<f-d?8:f-d,h=new cj(new Uint32Array([parseInt(a.substr(d,e),10),0]));b.times(new cj(new Uint32Array([Zi[e],0])));b.plus(h);d+=e}return c?b.negate():b};cj.convertArray=function(a){for(var b=new Uint32Array(2*a.length),c=-1,f=a.length;++c<f;)cj.from(a[c],new Uint32Array(b.buffer,b.byteOffset+8*c,2));return b};cj.multiply=function(a,b){return(new cj(new Uint32Array(a.buffer))).times(b)};
cj.add=function(a,b){return(new cj(new Uint32Array(a.buffer))).plus(b)};function dj(a){this.buffer=a}g=dj.prototype;g.high=function(){return new cj(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))};g.low=function(){return new cj(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))};
g.negate=function(){this.buffer[0]=~this.buffer[0]+1;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];return this};
g.times=function(a){var b=new R(new Uint32Array([this.buffer[3],0])),c=new R(new Uint32Array([this.buffer[2],0])),f=new R(new Uint32Array([this.buffer[1],0])),d=new R(new Uint32Array([this.buffer[0],0])),e=new R(new Uint32Array([a.buffer[3],0])),h=new R(new Uint32Array([a.buffer[2],0])),l=new R(new Uint32Array([a.buffer[1],0]));a=new R(new Uint32Array([a.buffer[0],0]));var m=R.multiply(d,a);this.buffer[0]=m.low();var n=new R(new Uint32Array([m.high(),0]));m=R.multiply(f,a);n.plus(m);m=R.multiply(d,
l);n.plus(m);this.buffer[1]=n.low();this.buffer[3]=n.lessThan(m)?1:0;this.buffer[2]=n.high();(new R(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))).plus(R.multiply(c,a)).plus(R.multiply(f,l)).plus(R.multiply(d,h));this.buffer[3]+=R.multiply(b,a).plus(R.multiply(c,l)).plus(R.multiply(f,h)).plus(R.multiply(d,e)).low();return this};
g.plus=function(a){var b=new Uint32Array(4);b[3]=this.buffer[3]+a.buffer[3]>>>0;b[2]=this.buffer[2]+a.buffer[2]>>>0;b[1]=this.buffer[1]+a.buffer[1]>>>0;b[0]=this.buffer[0]+a.buffer[0]>>>0;b[0]<this.buffer[0]>>>0&&++b[1];b[1]<this.buffer[1]>>>0&&++b[2];b[2]<this.buffer[2]>>>0&&++b[3];this.buffer[3]=b[3];this.buffer[2]=b[2];this.buffer[1]=b[1];this.buffer[0]=b[0];return this};g.hex=function(){return Yi(this.buffer[3])+" "+Yi(this.buffer[2])+" "+Yi(this.buffer[1])+" "+Yi(this.buffer[0])};
dj.multiply=function(a,b){return(new dj(new Uint32Array(a.buffer))).times(b)};dj.add=function(a,b){return(new dj(new Uint32Array(a.buffer))).plus(b)};dj.from=function(a,b){b=void 0===b?new Uint32Array(4):b;return dj.fromString("string"===typeof a?a:a.toString(),b)};dj.fromNumber=function(a,b){b=void 0===b?new Uint32Array(4):b;return dj.fromString(a.toString(),b)};
dj.fromString=function(a,b){b=void 0===b?new Uint32Array(4):b;var c=a.startsWith("-"),f=a.length;b=new dj(b);for(var d=c?1:0;d<f;){var e=8<f-d?8:f-d,h=new dj(new Uint32Array([parseInt(a.substr(d,e),10),0,0,0]));b.times(new dj(new Uint32Array([Zi[e],0,0,0])));b.plus(h);d+=e}return c?b.negate():b};dj.convertArray=function(a){for(var b=new Uint32Array(4*a.length),c=-1,f=a.length;++c<f;)dj.from(a[c],new Uint32Array(b.buffer,b.byteOffset+16*c,4));return b};var ej={};ej.BaseInt64=$i;ej.Int128=dj;
ej.Int64=cj;ej.Uint64=R;function fj(a,b,c,f){this.hf=this.Jf=-1;this.ma=a;this.$=b;this.buffers=c;this.dictionaries=f}k.b(fj,wd);g=fj.prototype;g.visit=function(a){return wd.prototype.visit.call(this,a instanceof P?a.type:a)};g.visitNull=function(a,b){b=(void 0===b?gj(this):b).length;return L.Null(a,0,b)};g.visitBool=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Bool(a,0,b.length,c,this.P(a,c),this.U(a))};
g.visitInt=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Int(a,0,b.length,c,this.P(a,c),this.U(a))};g.visitFloat=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Float(a,0,b.length,c,this.P(a,c),this.U(a))};g.visitUtf8=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Utf8(a,0,b.length,c,this.P(a,c),this.Ma(a),this.U(a))};g.visitBinary=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Binary(a,0,b.length,c,this.P(a,c),this.Ma(a),this.U(a))};
g.visitFixedSizeBinary=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.FixedSizeBinary(a,0,b.length,c,this.P(a,c),this.U(a))};g.visitDate=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Date(a,0,b.length,c,this.P(a,c),this.U(a))};g.visitTimestamp=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Timestamp(a,0,b.length,c,this.P(a,c),this.U(a))};
g.visitTime=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Time(a,0,b.length,c,this.P(a,c),this.U(a))};g.visitDecimal=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Decimal(a,0,b.length,c,this.P(a,c),this.U(a))};g.visitList=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.List(a,0,b.length,c,this.P(a,c),this.Ma(a),this.visit(a.children[0]))};
g.visitStruct=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Struct(a,0,b.length,c,this.P(a,c),this.visitMany(a.children))};g.visitUnion=function(a){return a.mode===id.Sparse?this.visitSparseUnion(a):this.visitDenseUnion(a)};g.visitDenseUnion=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Union(a,0,b.length,c,this.P(a,c),this.sc(a),this.Ma(a),this.visitMany(a.children))};
g.visitSparseUnion=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Union(a,0,b.length,c,this.P(a,c),this.sc(a),this.visitMany(a.children))};g.visitDictionary=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Dictionary(a,0,b.length,c,this.P(a,c),this.U(a.indices),this.dictionaries.get(a.id))};g.visitInterval=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Interval(a,0,b.length,c,this.P(a,c),this.U(a))};
g.visitFixedSizeList=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.FixedSizeList(a,0,b.length,c,this.P(a,c),this.visit(a.children[0]))};g.visitMap=function(a,b){b=void 0===b?gj(this):b;var c=b.nullCount;return L.Map(a,0,b.length,c,this.P(a,c),this.Ma(a),this.visit(a.children[0]))};function gj(a){return a.$[++a.Jf]}function hj(a){return a.buffers[++a.hf]}g.P=function(a,b){var c=void 0===c?hj(this):c;return 0<b&&this.U(a,c)||new Uint8Array(0)};g.Ma=function(a){return this.U(a,void 0)};
g.sc=function(a){return this.U(a,void 0)};g.U=function(a,b){a=void 0===b?hj(this):b;b=a.offset;return this.ma.subarray(b,b+a.length)};function ij(a,b,c,f){fj.call(this,new Uint8Array(0),b,c,f);this.Kb=a}k.b(ij,fj);ij.prototype.P=function(a,b){a=hj(this).offset;return 0>=b?new Uint8Array(0):qd(this.Kb[a])};ij.prototype.Ma=function(){var a=hj(this).offset;return z(Uint8Array,z(Int32Array,this.Kb[a]))};ij.prototype.sc=function(a){var b=hj(this).offset;return z(Uint8Array,z(a.ArrayType,this.Kb[b]))};
ij.prototype.U=function(a,b){b=(void 0===b?hj(this):b).offset;var c=this.Kb;return M.isTimestamp(a)||(M.isInt(a)||M.isTime(a))&&64===a.bitWidth||M.isDate(a)&&a.unit===gd.MILLISECOND?z(Uint8Array,cj.convertArray(c[b])):M.isDecimal(a)?z(Uint8Array,dj.convertArray(c[b])):M.isBinary(a)||M.isFixedSizeBinary(a)?jj(c[b]):M.isBool(a)?qd(c[b]):M.isUtf8(a)?mb(c[b].join("")):z(Uint8Array,z(a.ArrayType,c[b].map(function(f){return+f})))};
function jj(a){a=a.join("");for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c>>1]=parseInt(a.substr(c,2),16);return b};var kj=E.f.g.h.Null,lj=E.f.g.h.Int,mj=E.f.g.h.FloatingPoint,nj=E.f.g.h.Binary,oj=E.f.g.h.Bool,pj=E.f.g.h.Utf8,qj=E.f.g.h.Decimal,rj=E.f.g.h.Date,sj=E.f.g.h.Time,tj=E.f.g.h.Timestamp,uj=E.f.g.h.Interval,vj=E.f.g.h.List,wj=E.f.g.h.Struct_,xj=E.f.g.h.Union,yj=E.f.g.h.Cc,zj=E.f.g.h.FixedSizeBinary,Aj=E.f.g.h.FixedSizeList,Bj=E.f.g.h.Map;function Cj(){}k.b(Cj,wd);g=Cj.prototype;g.visit=function(a,b){return null==a||null==b?void 0:wd.prototype.visit.call(this,a,b)};g.visitNull=function(a,b){kj.Be(b);return kj.Rd(b)};
g.visitInt=function(a,b){lj.we(b);lj.ab(b,a.bitWidth);lj.gd(b,a.isSigned);return lj.Md(b)};g.visitFloat=function(a,b){mj.ue(b);mj.cb(b,a.precision);return mj.Kd(b)};g.visitBinary=function(a,b){nj.ie(b);return nj.Bd(b)};g.visitBool=function(a,b){oj.je(b);return oj.Cd(b)};g.visitUtf8=function(a,b){pj.He(b);return pj.Xd(b)};g.visitDecimal=function(a,b){qj.oe(b);qj.qd(b,a.scale);qj.cb(b,a.precision);return qj.Ed(b)};g.visitDate=function(a,b){rj.me(b);rj.Z(b,a.unit);return rj.Dd(b)};
g.visitTime=function(a,b){sj.startTime(b);sj.Z(b,a.unit);sj.ab(b,a.bitWidth);return sj.endTime(b)};g.visitTimestamp=function(a,b){var c=a.timezone&&Va(b,a.timezone)||void 0;tj.Fe(b);tj.Z(b,a.unit);void 0!==c&&tj.sd(b,c);return tj.Vd(b)};g.visitInterval=function(a,b){uj.xe(b);uj.Z(b,a.unit);return uj.Nd(b)};g.visitList=function(a,b){vj.ye(b);return vj.Od(b)};g.visitStruct=function(a,b){wj.Ee(b);return wj.Ud(b)};
g.visitUnion=function(a,b){xj.bg(b,a.typeIds.length);var c=xj.rf(b,a.typeIds);xj.Ge(b);xj.ld(b,a.mode);xj.ud(b,c);return xj.Wd(b)};g.visitDictionary=function(a,b){var c=this.visit(a.indices,b);yj.qe(b);yj.bb(b,new Da(a.id,0));yj.ed(b,a.isOrdered);void 0!==c&&yj.cd(b,c);return yj.Gd(b)};g.visitFixedSizeBinary=function(a,b){zj.se(b);zj.Uc(b,a.byteWidth);return zj.Id(b)};g.visitFixedSizeList=function(a,b){Aj.te(b);Aj.kd(b,a.listSize);return Aj.Jd(b)};
g.visitMap=function(a,b){Bj.ze(b);Bj.hd(b,a.keysSorted);return Bj.Pd(b)};var Dj=new Cj;function Ej(a){return new Fj(a.count,Gj(a.columns),Hj(a.columns))}function Ij(a,b){return(a.fields||[]).filter(Boolean).map(function(c){return P.fromJSON(c,b)})}function Jj(a,b){return(a.children||[]).filter(Boolean).map(function(c){return P.fromJSON(c,b)})}function Gj(a){return(a||[]).reduce(function(b,c){return[].concat(k.o(b),[new Kj(c.count,Lj(c.VALIDITY))],k.o(Gj(c.children)))},[])}
function Hj(a,b){b=void 0===b?[]:b;for(var c=-1,f=(a||[]).length;++c<f;){var d=a[c];d.VALIDITY&&b.push(new Mj(b.length,d.VALIDITY.length));d.TYPE&&b.push(new Mj(b.length,d.TYPE.length));d.OFFSET&&b.push(new Mj(b.length,d.OFFSET.length));d.DATA&&b.push(new Mj(b.length,d.DATA.length));b=Hj(d.children,b)}return b}function Lj(a){return(a||[]).reduce(function(b,c){return b+ +(0===c)},0)}function Nj(a){return new Td(a.isSigned,a.bitWidth)}
function Oj(a,b){var c=a.type.name;switch(c){case "NONE":return new Pd;case "null":return new Pd;case "binary":return new le;case "utf8":return new pe;case "bool":return new te;case "list":return new ef((b||[])[0]);case "struct":return new jf(b||[]);case "struct_":return new jf(b||[])}switch(c){case "int":return b=a.type,new Td(b.isSigned,b.bitWidth);case "floatingpoint":return new ee(hd[a.type.precision]);case "decimal":return b=a.type,new xe(b.scale,b.precision);case "date":return new Be(gd[a.type.unit]);
case "time":return b=a.type,new He(G[b.unit],b.bitWidth);case "timestamp":return b=a.type,new Re(G[b.unit],b.timezone);case "interval":return new Ze(jd[a.type.unit]);case "union":return a=a.type,new nf(id[a.mode],a.typeIds||[],b||[]);case "fixedsizebinary":return new tf(a.type.byteWidth);case "fixedsizelist":return new xf(a.type.listSize,(b||[])[0]);case "map":return new Bf((b||[])[0],a.type.keysSorted)}throw Error('Unrecognized type: "'+c+'"');};var Pj=E.f.g.h.Type,Qj=E.f.g.h.Field,Rj=E.f.g.h.Schema,Sj=E.f.g.h.Bc,Tj=Xc.f.g.h.Message,Uj=E.f.g.h.ob,Vj=Xc.f.g.h.Dc,Wj=E.f.g.h.Nb,Xj=Xc.f.g.h.RecordBatch,Yj=Xc.f.g.h.DictionaryBatch;function Zj(a,b,c,f){this.$e=b;this.We=c;this.body=new Uint8Array(0);f&&(this.Ub=function(){return f});this.Re="number"===typeof a?a:a.low}Zj.fromJSON=function(a,b){var c=new Zj(0,kd.V4,b);c.Ub=ak(a,b);return c};
Zj.decode=function(a){a=new Ga(x(a));a=Tj.Ff(a);var b=a.bodyLength(),c=a.version(),f=a.headerType();b=new Zj(b,c,f);b.Ub=bk(a,f);return b};Zj.encode=function(a){var b=new Fa,c=-1;a.isSchema()?c=Q.encode(b,a.header()):a.isRecordBatch()?c=Fj.encode(b,a.header()):a.isDictionaryBatch()&&(c=ck.encode(b,a.header()));Tj.Ae(b);Tj.eb(b,kd.V4);Tj.ad(b,c);Tj.bd(b,a.headerType);Tj.Sc(b,new Da(a.bodyLength,0));Tj.Cf(b,Tj.Qd(b));return Ha(b)};
Zj.from=function(a,b){b=void 0===b?0:b;if(a instanceof Q)return new Zj(0,kd.V4,H.Schema,a);if(a instanceof Fj)return new Zj(b,kd.V4,H.RecordBatch,a);if(a instanceof ck)return new Zj(b,kd.V4,H.DictionaryBatch,a);throw Error("Unrecognized Message header: "+a);};Zj.prototype.header=function(){return this.Ub()};Zj.prototype.isSchema=function(){return this.headerType===H.Schema};Zj.prototype.isRecordBatch=function(){return this.headerType===H.RecordBatch};
Zj.prototype.isDictionaryBatch=function(){return this.headerType===H.DictionaryBatch};k.global.Object.defineProperties(Zj.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.headerType}},version:{configurable:!0,enumerable:!0,get:function(){return this.$e}},headerType:{configurable:!0,enumerable:!0,get:function(){return this.We}},bodyLength:{configurable:!0,enumerable:!0,get:function(){return this.Re}}});
function Fj(a,b,c){this.Wb=b;this.Rb=c;this.Va="number"===typeof a?a:a.low}k.global.Object.defineProperties(Fj.prototype,{$:{configurable:!0,enumerable:!0,get:function(){return this.Wb}},length:{configurable:!0,enumerable:!0,get:function(){return this.Va}},buffers:{configurable:!0,enumerable:!0,get:function(){return this.Rb}}});function ck(a,b,c){this.Te=a;this.Ye=void 0===c?!1:c;this.Xe="number"===typeof b?b:b.low}
k.global.Object.defineProperties(ck.prototype,{id:{configurable:!0,enumerable:!0,get:function(){return this.Xe}},data:{configurable:!0,enumerable:!0,get:function(){return this.Te}},Ib:{configurable:!0,enumerable:!0,get:function(){return this.Ye}},length:{configurable:!0,enumerable:!0,get:function(){return this.data.length}},$:{configurable:!0,enumerable:!0,get:function(){return this.data.$}},buffers:{configurable:!0,enumerable:!0,get:function(){return this.data.buffers}}});
function Mj(a,b){this.offset="number"===typeof a?a:a.low;this.length="number"===typeof b?b:b.low}function Kj(a,b){this.length="number"===typeof a?a:a.low;this.nullCount="number"===typeof b?b:b.low}function ak(a,b){return function(){switch(b){case H.Schema:return Q.fromJSON(a);case H.RecordBatch:return Fj.fromJSON(a);case H.DictionaryBatch:return ck.fromJSON(a)}throw Error("Unrecognized Message type: { name: "+H[b]+", type: "+b+" }");}}
function bk(a,b){return function(){switch(b){case H.Schema:return Q.decode(a.header(new Rj));case H.RecordBatch:return Fj.decode(a.header(new Xj),a.version());case H.DictionaryBatch:return ck.decode(a.header(new Yj),a.version())}throw Error("Unrecognized Message type: { name: "+H[b]+", type: "+b+" }");}}P.encode=dk;P.decode=ek;
P.fromJSON=function(a,b){var c,f;if(b&&(f=a.dictionary)){if(b.has(c=f.id)){var d=(d=f.indexType)?Nj(d):new Zd;c=new Gf(b.get(c),d,c,f.isOrdered)}else d=(d=f.indexType)?Nj(d):new Zd,b.set(c,b=Oj(a,Jj(a,b))),c=new Gf(b,d,c,f.isOrdered);a=new P(a.name,c,a.nullable,new Map(Object.entries(a.customMetadata||{})))}else b=Oj(a,Jj(a,b)),a=new P(a.name,b,a.nullable,new Map(Object.entries(a.customMetadata||{})));return a||null};Q.encode=fk;Q.decode=gk;
Q.fromJSON=function(a,b){b=void 0===b?new Map:b;return new Q(Ij(a,b),new Map(Object.entries(a.customMetadata||{})),b)};Fj.encode=hk;Fj.decode=ik;Fj.fromJSON=Ej;ck.encode=jk;ck.decode=kk;ck.fromJSON=function(a){return new ck(Ej(a.data),a.id,a.isDelta)};Kj.encode=lk;Kj.decode=mk;Mj.encode=nk;Mj.decode=ok;function gk(a,b){for(var c=b=void 0===b?new Map:b,f=[],d,e=-1,h=-1,l=a.Af();++e<l;)if(d=a.fields(e))f[++h]=P.decode(d,c);return new Q(f,pk(a),b)}
function ik(a,b){b=void 0===b?kd.V4:b;for(var c=a.length(),f=[],d,e=-1,h=-1,l=a.Kf();++e<l;)if(d=a.$(e))f[++h]=Kj.decode(d);d=[];l=h=-1;for(var m=a.jf();++h<m;)if(e=a.buffers(h))b<kd.V4&&(e.c+=8*(h+1)),d[++l]=Mj.decode(e);return new Fj(c,f,d)}function kk(a,b){b=void 0===b?kd.V4:b;return new ck(Fj.decode(a.data(),b),a.id(),a.Ib())}function ok(a){return new Mj(a.offset(),a.length())}function mk(a){return new Kj(a.length(),a.nullCount())}
function qk(a,b){for(var c=[],f,d=-1,e=-1,h=a.lf();++d<h;)if(f=a.children(d))c[++e]=P.decode(f,b);return c}function ek(a,b){var c,f;if(b&&(f=a.dictionary())){if(b.has(c=f.id().low)){var d=(d=f.ce())?rk(d):new Zd;c=new Gf(b.get(c),d,c,f.isOrdered())}else d=(d=f.ce())?rk(d):new Zd,b.set(c,b=sk(a,qk(a,b))),c=new Gf(b,d,c,f.isOrdered());a=new P(a.name(),c,a.nullable(),pk(a))}else b=sk(a,qk(a,b)),a=new P(a.name(),b,a.nullable(),pk(a));return a||null}
function pk(a){var b=new Map;if(a)for(var c=void 0,f=void 0,d=-1,e=a.lc()|0;++d<e;)(c=a.kc(d))&&null!=(f=c.key())&&b.set(f,c.value());return b}function rk(a){return new Td(a.isSigned(),a.bitWidth())}
function sk(a,b){var c=a.dg();switch(c){case Pj.NONE:return new Pd;case Pj.Null:return new Pd;case Pj.Binary:return new le;case Pj.Utf8:return new pe;case Pj.Bool:return new te;case Pj.List:return new ef((b||[])[0]);case Pj.Struct_:return new jf(b||[])}switch(c){case Pj.Int:return b=a.type(new E.f.g.h.Int),new Td(b.isSigned(),b.bitWidth());case Pj.FloatingPoint:return b=a.type(new E.f.g.h.FloatingPoint),new ee(b.precision());case Pj.Decimal:return b=a.type(new E.f.g.h.Decimal),new xe(b.scale(),b.precision());
case Pj.Date:return b=a.type(new E.f.g.h.Date),new Be(b.unit());case Pj.Time:return b=a.type(new E.f.g.h.Time),new He(b.unit(),b.bitWidth());case Pj.Timestamp:return b=a.type(new E.f.g.h.Timestamp),new Re(b.unit(),b.timezone());case Pj.Interval:return b=a.type(new E.f.g.h.Interval),new Ze(b.unit());case Pj.Union:return a=a.type(new E.f.g.h.Union),new nf(a.mode(),a.cg()||[],b||[]);case Pj.FixedSizeBinary:return b=a.type(new E.f.g.h.FixedSizeBinary),new tf(b.byteWidth());case Pj.FixedSizeList:return a=
a.type(new E.f.g.h.FixedSizeList),new xf(a.listSize(),(b||[])[0]);case Pj.Map:return a=a.type(new E.f.g.h.Map),new Bf((b||[])[0],a.keysSorted())}throw Error('Unrecognized type: "'+Pj[c]+'" ('+c+")");}
function fk(a,b){var c=b.fields.map(function(f){return P.encode(a,f)});Rj.Wf(a,c.length);c=Rj.qf(a,c);b=b.metadata&&0<b.metadata.size?Rj.Gb(a,[].concat(k.o(b.metadata)).map(function(f){var d=k.w(f);f=d.next().value;d=d.next().value;f=Va(a,""+f);d=Va(a,""+d);Uj.wc(a);Uj.ec(a,f);Uj.fc(a,d);return Uj.mc(a)})):-1;Rj.De(a);Rj.$c(a,c);Rj.Zc(a,tk?Wj.Oe:Wj.hg);-1!==b&&Rj.ya(a,b);return Rj.Td(a)}
function dk(a,b){var c=-1,f=-1,d=-1,e=b.type,h=b.typeId;M.isDictionary(e)?(h=e.dictionary.typeId,d=Dj.visit(e,a),f=Dj.visit(e.dictionary,a)):f=Dj.visit(e,a);e=(e.children||[]).map(function(m){return P.encode(a,m)});e=Qj.nf(a,e);var l=b.metadata&&0<b.metadata.size?Qj.Gb(a,[].concat(k.o(b.metadata)).map(function(m){var n=k.w(m);m=n.next().value;n=n.next().value;m=Va(a,""+m);n=Va(a,""+n);Uj.wc(a);Uj.ec(a,m);Uj.fc(a,n);return Uj.mc(a)})):-1;b.name&&(c=Va(a,b.name));Qj.re(a);Qj.td(a,f);Qj.vd(a,h);Qj.Vc(a,
e);Qj.od(a,!!b.nullable);-1!==c&&Qj.md(a,c);-1!==d&&Qj.Yc(a,d);-1!==l&&Qj.ya(a,l);return Qj.Hd(a)}function hk(a,b){var c=b.$||[],f=b.buffers||[];Xj.$f(a,c.length);c.slice().reverse().forEach(function(d){return Kj.encode(a,d)});c=Ua(a);Xj.Tf(a,f.length);f.slice().reverse().forEach(function(d){return Mj.encode(a,d)});f=Ua(a);Xj.Ce(a);Xj.jd(a,new Da(b.length,0));Xj.nd(a,c);Xj.Tc(a,f);return Xj.Sd(a)}
function jk(a,b){var c=Fj.encode(a,b.data);Yj.pe(a);Yj.bb(a,new Da(b.id,0));Yj.dd(a,b.Ib);Yj.Wc(a,c);return Yj.Fd(a)}function lk(a,b){return Vj.pf(a,new Da(b.length,0),new Da(b.nullCount,0))}function nk(a,b){return Sj.createBuffer(a,new Da(b.offset,0),new Da(b.length,0))}var uk=new ArrayBuffer(2);(new DataView(uk)).setInt16(0,256,!0);var tk=256===(new Int16Array(uk))[0];function vk(a){return"Expected "+H[a]+" Message in stream, but was null or length 0."}function wk(a){return"Header pointer of flatbuffer-encoded "+H[a]+" Message is null or length 0."}function xk(a,b){return"Expected to read "+a+" metadata bytes, but only read "+b+"."}function yk(a,b){return"Expected to read "+a+" bytes for message body, but only read "+b+"."}k.l();k.D();function zk(a){this.source=a instanceof Si?a:new Si(a)}zk.prototype[Symbol.iterator]=function(){return this};g=zk.prototype;
g.next=function(){var a;return(a=this.readMetadataLength()).done||-1===a.value&&(a=this.readMetadataLength()).done||(a=this.readMetadata(a.value)).done?nb:a};g.throw=function(a){return this.source.throw(a)};g.return=function(a){return this.source.return(a)};g.readMessage=function(a){var b;if((b=this.next()).done)return null;if(null!=a&&b.value.headerType!==a)throw Error(vk(a));return b.value};
g.readMessageBody=function(a){if(0>=a)return new Uint8Array(0);var b=x(this.source.read(a));if(b.byteLength<a)throw Error(yk(a,b.byteLength));return 0===b.byteOffset%8&&b.byteOffset+b.byteLength<=b.buffer.byteLength?b:b.slice()};g.readSchema=function(a){a=void 0===a?!1:a;var b=H.Schema,c=this.readMessage(b);c=c&&c.header();if(a&&!c)throw Error(wk(b));return c};g.readMetadataLength=function(){var a=this.source.read(4);a=(a=a&&new Ga(a))&&a.v(0)||0;return{done:0===a,value:a}};
g.readMetadata=function(a){var b=this.source.read(a);if(!b)return nb;if(b.byteLength<a)throw Error(xk(a,b.byteLength));return{done:!1,value:Zj.decode(b)}};k.l();k.N();function Ak(a,b){this.source=a instanceof Ui?a:Db(a)&&Cb(a.stat)&&"number"===typeof a.fd?new Xi(a,b):new Ui(a)}Ak.prototype[Symbol.asyncIterator]=function(){return this};g=Ak.prototype;
g.next=function(){var a=this,b,c;return k.u(function(f){switch(f.j){case 1:return p(f,a.readMetadataLength(),2);case 2:if((b=f.m).done)return f.return(nb);if(!(c=-1===b.value)){f.i(3);break}return p(f,a.readMetadataLength(),4);case 4:c=(b=f.m).done;case 3:return c?f.return(nb):p(f,a.readMetadata(b.value),5);case 5:return(b=f.m).done?f.return(nb):f.return(b)}})};g.throw=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.source.throw(a),2):c.return(c.m)})};
g.return=function(a){var b=this;return k.u(function(c){return 1==c.j?p(c,b.source.return(a),2):c.return(c.m)})};g.readMessage=function(a){var b=this,c;return k.u(function(f){if(1==f.j)return p(f,b.next(),2);if((c=f.m).done)return f.return(null);if(null!=a&&c.value.headerType!==a)throw Error(vk(a));return f.return(c.value)})};
g.readMessageBody=function(a){var b=this,c,f;return k.u(function(d){if(1==d.j){if(0>=a)return d.return(new Uint8Array(0));c=x;return p(d,b.source.read(a),2)}f=c(d.m);if(f.byteLength<a)throw Error(yk(a,f.byteLength));return d.return(0===f.byteOffset%8&&f.byteOffset+f.byteLength<=f.buffer.byteLength?f:f.slice())})};g.readSchema=function(a){a=void 0===a?!1:a;var b=this,c,f,d;return k.u(function(e){if(1==e.j)return c=H.Schema,p(e,b.readMessage(c),2);d=(f=e.m)&&f.header();if(a&&!d)throw Error(wk(c));return e.return(d)})};
g.readMetadataLength=function(){var a=this,b,c,f;return k.u(function(d){if(1==d.j)return p(d,a.source.read(4),2);f=(c=(b=d.m)&&new Ga(b))&&c.v(0)||0;return d.return({done:0===f,value:f})})};g.readMetadata=function(a){var b=this,c;return k.u(function(f){if(1==f.j)return p(f,b.source.read(a),2);c=f.m;if(!c)return f.return(nb);if(c.byteLength<a)throw Error(xk(a,c.byteLength));return f.return({done:!1,value:Zj.decode(c)})})};
function Bk(a){zk.call(this,new Uint8Array(0));this.J=!1;this.sb=[];this.la=this.Fc=0;this.Ua=a instanceof ob?a:new ob(a)}k.b(Bk,zk);
Bk.prototype.next=function(){var a=this.Ua;if(!this.J)return this.J=!0,{done:!1,value:Zj.fromJSON(a.schema,H.Schema)};if(this.la<a.dictionaries.length)return a=a.dictionaries[this.la++],this.sb=a.data.columns,{done:!1,value:Zj.fromJSON(a,H.DictionaryBatch)};if(this.Fc<a.Ad.length)return a=a.Ad[this.Fc++],this.sb=a.columns,{done:!1,value:Zj.fromJSON(a,H.RecordBatch)};this.sb=[];return nb};
Bk.prototype.readMessageBody=function(){function a(b){return(b||[]).reduce(function(c,f){return[].concat(k.o(c),k.o(f.VALIDITY&&[f.VALIDITY]||[]),k.o(f.TYPE&&[f.TYPE]||[]),k.o(f.OFFSET&&[f.OFFSET]||[]),k.o(f.DATA&&[f.DATA]||[]),k.o(a(f.children)))},[])}return a(this.sb)};Bk.prototype.readMessage=function(a){var b;if((b=this.next()).done)return null;if(null!=a&&b.value.headerType!==a)throw Error(vk(a));return b.value};
Bk.prototype.readSchema=function(){var a=H.Schema,b=this.readMessage(a),c=b&&b.header();if(!b||!c)throw Error(wk(a));return c};for(var Ck=new Uint8Array(6),Dk=0;6>Dk;Dk+=1)Ck[Dk]="ARROW1".charCodeAt(Dk);function Ek(a,b){b=void 0===b?0:b;for(var c=-1,f=Ck.length;++c<f;)if(Ck[c]!==a[b+c])return!1;return!0}var Fk=Ck.length,Gk=Fk+4,Hk=2*Fk+4;function Ik(){this.tb=0;this.Wb=[];this.Rb=[];this.Se=[]}k.b(Ik,wd);Ik.fb=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=new Ik;b=Qh(Jk,b,[],0);b=k.w(c.visitMany(b)).next().value;return void 0===b?c:b};
Ik.prototype.visit=function(a){if(!M.isDictionary(a.type)){var b=a.data,c=a.length,f=a.nullCount;if(2147483647<c)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");M.isNull(a.type)||Kk.call(this,0>=f?new Uint8Array(0):pd(b.offset,c,b.nullBitmap));this.$.push(new Kj(c,f))}return wd.prototype.visit.call(this,a)};Ik.prototype.visitNull=function(){return this};Ik.prototype.visitDictionary=function(a){return this.visit(a.indices)};
k.global.Object.defineProperties(Ik.prototype,{$:{configurable:!0,enumerable:!0,get:function(){return this.Wb}},buffers:{configurable:!0,enumerable:!0,get:function(){return this.Rb}},byteLength:{configurable:!0,enumerable:!0,get:function(){return this.tb}},ic:{configurable:!0,enumerable:!0,get:function(){return this.Se}}});function Kk(a){var b=a.byteLength+7&-8;this.buffers.push(a);this.ic.push(new Mj(this.tb,b));this.tb+=b;return this}
function Lk(a){return Kk.call(this,a.values.subarray(0,a.length*a.stride))}function Mk(a){var b=a.length,c=a.values;a=a.valueOffsets;var f=a[0],d=Math.min(a[b]-f,c.byteLength-f);Kk.call(this,Xb(-a[0],b,a));Kk.call(this,c.subarray(f,f+d));return this}function Nk(a){var b=a.length,c=a.valueOffsets;c&&Kk.call(this,Xb(c[0],b,c));return this.visit(a.getChildAt(0))}function Ok(a){return this.visitMany(a.type.children.map(function(b,c){return a.getChildAt(c)}).filter(Boolean))[0]}g=Ik.prototype;
g.visitBool=function(a){var b;return a.nullCount>=a.length?Kk.call(this,new Uint8Array(0)):(b=a.values)instanceof Uint8Array?Kk.call(this,pd(a.offset,a.length,b)):Kk.call(this,qd(a))};g.visitInt=Lk;g.visitFloat=Lk;g.visitUtf8=Mk;g.visitBinary=Mk;g.visitFixedSizeBinary=Lk;g.visitDate=Lk;g.visitTimestamp=Lk;g.visitTime=Lk;g.visitDecimal=Lk;g.visitList=Nk;g.visitStruct=Ok;
g.visitUnion=function(a){var b=a.type,c=a.length,f=a.typeIds,d=a.valueOffsets;Kk.call(this,f);if(b.mode===id.Sparse)return Ok.call(this,a);if(b.mode===id.Dense){if(0>=a.offset)return Kk.call(this,d),Ok.call(this,a);var e=f.reduce(function(v,y){return Math.max(v,y)},f[0]),h=new Int32Array(e+1);e=(new Int32Array(e+1)).fill(-1);var l=new Int32Array(c);d=Xb(-d[0],c,d);for(var m=void 0,n=void 0,r=-1;++r<c;)-1===(n=e[m=f[r]])&&(n=e[m]=d[m]),l[r]=d[r]-n,++h[m];Kk.call(this,l);f=void 0;l=-1;for(d=b.children.length;++l<
d;)if(f=a.getChildAt(l))m=b.typeIds[l],this.visit(f.slice(e[m],Math.min(c,h[m])))}return this};g.visitInterval=Lk;g.visitFixedSizeList=Nk;g.visitMap=Nk;function Pk(){}k.b(Pk,wd);g=Pk.prototype;g.visit=function(a){return null==a?void 0:wd.prototype.visit.call(this,a)};g.visitNull=function(a){return{name:fd[a.typeId].toLowerCase()}};g.visitInt=function(a){return{name:fd[a.typeId].toLowerCase(),bitWidth:a.bitWidth,isSigned:a.isSigned}};g.visitFloat=function(a){return{name:fd[a.typeId].toLowerCase(),precision:hd[a.precision]}};g.visitBinary=function(a){return{name:fd[a.typeId].toLowerCase()}};g.visitBool=function(a){return{name:fd[a.typeId].toLowerCase()}};
g.visitUtf8=function(a){return{name:fd[a.typeId].toLowerCase()}};g.visitDecimal=function(a){return{name:fd[a.typeId].toLowerCase(),scale:a.scale,precision:a.precision}};g.visitDate=function(a){return{name:fd[a.typeId].toLowerCase(),unit:gd[a.unit]}};g.visitTime=function(a){return{name:fd[a.typeId].toLowerCase(),unit:G[a.unit],bitWidth:a.bitWidth}};g.visitTimestamp=function(a){return{name:fd[a.typeId].toLowerCase(),unit:G[a.unit],timezone:a.timezone}};
g.visitInterval=function(a){return{name:fd[a.typeId].toLowerCase(),unit:jd[a.unit]}};g.visitList=function(a){return{name:fd[a.typeId].toLowerCase()}};g.visitStruct=function(a){return{name:fd[a.typeId].toLowerCase()}};g.visitUnion=function(a){return{name:fd[a.typeId].toLowerCase(),mode:id[a.mode],typeIds:[].concat(k.o(a.typeIds))}};g.visitDictionary=function(a){return this.visit(a.dictionary)};g.visitFixedSizeBinary=function(a){return{name:fd[a.typeId].toLowerCase(),byteWidth:a.byteWidth}};
g.visitFixedSizeList=function(a){return{name:fd[a.typeId].toLowerCase(),listSize:a.listSize}};g.visitMap=function(a){return{name:fd[a.typeId].toLowerCase(),keysSorted:a.keysSorted}};function Qk(){}k.b(Qk,wd);Qk.fb=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(new Qk).visitMany(Rh(Jk,b,[],0))};g=Qk.prototype;
g.visit=function(a){var b=a.data,c=a.name,f=a.length,d=b.offset,e=b.nullCount,h=b.nullBitmap;a=M.isDictionary(a.type)?a.type.indices:a.type;var l={};l=Object.assign([],b.buffers,(l[K.VALIDITY]=void 0,l));return Object.assign({},{name:c,count:f,VALIDITY:M.isNull(a)?void 0:0>=e?Array.from({length:f},function(){return 1}):[].concat(k.o(rd(h,d,f,null,nd)))},wd.prototype.visit.call(this,D.new(b.clone(a,d,f,0,l))))};g.visitNull=function(){return{}};
g.visitBool=function(a){return{DATA:[].concat(k.o(rd(a.values,a.offset,a.length,null,md)))}};g.visitInt=function(a){return{DATA:64>a.type.bitWidth?[].concat(k.o(a.values)):[].concat(k.o(Rk(a.values,2)))}};g.visitFloat=function(a){return{DATA:[].concat(k.o(a.values))}};g.visitUtf8=function(a){return{DATA:[].concat(k.o(a)),OFFSET:[].concat(k.o(a.valueOffsets))}};g.visitBinary=function(a){return{DATA:[].concat(k.o(Sk(a))),OFFSET:[].concat(k.o(a.valueOffsets))}};g.visitFixedSizeBinary=function(a){return{DATA:[].concat(k.o(Sk(a)))}};
g.visitDate=function(a){return{DATA:a.type.unit===gd.DAY?[].concat(k.o(a.values)):[].concat(k.o(Rk(a.values,2)))}};g.visitTimestamp=function(a){return{DATA:[].concat(k.o(Rk(a.values,2)))}};g.visitTime=function(a){return{DATA:a.type.unit<G.MICROSECOND?[].concat(k.o(a.values)):[].concat(k.o(Rk(a.values,2)))}};g.visitDecimal=function(a){return{DATA:[].concat(k.o(Rk(a.values,4)))}};
g.visitList=function(a){var b=this;return{OFFSET:[].concat(k.o(a.valueOffsets)),children:a.type.children.map(function(c,f){return b.visit(new Kh(c,[a.getChildAt(f)]))})}};g.visitStruct=function(a){var b=this;return{children:a.type.children.map(function(c,f){return b.visit(new Kh(c,[a.getChildAt(f)]))})}};
g.visitUnion=function(a){var b=this;return{TYPE:[].concat(k.o(a.typeIds)),OFFSET:a.type.mode===id.Dense?[].concat(k.o(a.valueOffsets)):void 0,children:a.type.children.map(function(c,f){return b.visit(new Kh(c,[a.getChildAt(f)]))})}};g.visitInterval=function(a){return{DATA:[].concat(k.o(a.values))}};g.visitFixedSizeList=function(a){var b=this;return{children:a.type.children.map(function(c,f){return b.visit(new Kh(c,[a.getChildAt(f)]))})}};
g.visitMap=function(a){var b=this;return{OFFSET:[].concat(k.o(a.valueOffsets)),children:a.type.children.map(function(c,f){return b.visit(new Kh(c,[a.getChildAt(f)]))})}};function Sk(a){var b,c,f;return k.C.H(Sk,function(d){1==d.j&&(b=k.w(a),c=b.next());if(3!=d.j){if(c.done)return d.i(0);f=c.value;return p(d,f.reduce(function(e,h){return""+e+("0"+(h&255).toString(16)).slice(-2)},"").toUpperCase(),3)}c=b.next();return d.i(2)})}
function Rk(a,b){var c,f;return k.C.H(Rk,function(d){1==d.j&&(c=-1,f=a.length/b);return++c<f?p(d,""+Cg.new(a.subarray((c+0)*b,(c+1)*b),!1),2):d.i(0)})};k.l();k.N();function Tk(a){this.Wa=0;this.$a=!1;this.T=new Ri;this.J=null;this.Sa=[];this.zb=[];this.Ca=new Map;Db(a)||(a={autoDestroy:!0,Je:!1});this.qb="boolean"===typeof a.autoDestroy?a.autoDestroy:!0;this.cc="boolean"===typeof a.Je?a.Je:!1}k.b(Tk,pb);Tk.throughNode=function(){throw Error('"throughNode" not available in this environment');};Tk.throughDOM=function(){throw Error('"throughDOM" not available in this environment');};
Tk.prototype.toString=function(a){return this.T.toString(void 0===a?!1:a)};Tk.prototype.toUint8Array=function(a){return this.T.toUint8Array(void 0===a?!1:a)};Tk.prototype.writeAll=function(a){var b=this;return Eb(a)?a.then(function(c){return b.writeAll(c)}):Gb(a)?Uk(this,a):Vk(this,a)};Tk.prototype[Symbol.asyncIterator]=function(){k.l();k.N();return this.T[Symbol.asyncIterator]()};g=Tk.prototype;g.toDOMStream=function(a){return this.T.toDOMStream(a)};g.toNodeStream=function(a){return this.T.toNodeStream(a)};
g.close=function(){return this.reset().T.close()};g.abort=function(a){return this.reset().T.abort(a)};g.finish=function(){this.qb?this.close():this.reset(this.T,this.J);return this};
g.reset=function(a,b){a=void 0===a?this.T:a;b=void 0===b?null:b;a===this.T||a instanceof Ri?this.T=a:(this.T=new Ri,a&&Db(a)&&Cb(a.abort)&&Cb(a.getWriter)&&!(a instanceof pb)?this.toDOMStream({type:"bytes"}).pipeTo(a):a&&Db(a)&&Cb(a.end)&&Cb(a.write)&&"boolean"===typeof a.writable&&!(a instanceof pb)&&rb(this.toNodeStream({th:!1}),a));this.$a&&this.J&&this.Cb(this.J);this.$a=!1;this.Sa=[];this.zb=[];this.Ca=new Map;b&&b.compareTo(this.J)||(null===b?(this.Wa=0,this.J=null):(this.$a=!0,this.J=b,this.dc(b)));
return this};g.write=function(a){var b=null;if(this.T){if(null===a||void 0===a||a instanceof S&&!(b=a.schema)||a instanceof Jk&&!(b=a.schema))return this.finish()&&void 0}else throw Error("RecordBatchWriter is closed");if(b&&!b.compareTo(this.J)){if(this.$a&&this.qb)return this.close();this.reset(this.T,b)}a instanceof Jk?a instanceof Wk||this.Rc(a):a instanceof S?this.writeAll(a.chunks):Fb(a)&&this.writeAll(a)};
g.Db=function(a){var b=Zj.encode(a),c=b.byteLength,f=this.cc?4:8,d=c+f+7&-8,e=d-c-f;a.headerType===H.RecordBatch?this.zb.push(new Ni(d,a.bodyLength,this.Wa)):a.headerType===H.DictionaryBatch&&this.Sa.push(new Ni(d,a.bodyLength,this.Wa));this.cc||Xk(this,Int32Array.of(-1));Xk(this,Int32Array.of(d-f));0<c&&Xk(this,b);return Yk(this,e)};function Xk(a,b){a.$a&&(b=x(b))&&0<b.byteLength&&(a.T.write(b),a.Wa+=b.byteLength);return a}g.dc=function(a){this.Db(Zj.from(a))};
g.Cb=function(){return this.cc?Xk(this,Int32Array.of(0)):Xk(this,Int32Array.of(-1,0))};function Yk(a,b){return 0<b?Xk(a,new Uint8Array(b)):a}g.Rc=function(a){var b=Ik.fb(a),c=b.buffers;b=Zj.from(new Fj(a.length,b.$,b.ic),b.byteLength);Zk(this.Bb(a).Db(b),c)};g.Qc=function(a,b,c){c=void 0===c?!1:c;this.Ca.set(b,a.length+(this.Ca.get(b)||0));var f=Ik.fb(a),d=f.buffers;a=Zj.from(new ck(new Fj(a.length,f.$,f.ic),b,c),f.byteLength);Zk(this.Db(a),d)};
function Zk(a,b){for(var c,f,d,e=-1,h=b.length;++e<h;)(c=b[e])&&0<(f=c.byteLength)&&(Xk(a,c),0<(d=(f+7&-8)-f)&&Yk(a,d))}g.Bb=function(a){a=k.w(a.dictionaries);for(var b=a.next();!b.done;b=a.next()){var c=k.w(b.value);b=c.next().value;var f=c.next().value;c=this.Ca.get(b)||0;if(0===c||0<(f=f.slice(c)).length){f=k.w("chunks"in f?f.chunks:[f]);for(var d=f.next();!d.done;d=f.next())d=d.value,this.Qc(d,b,0<c),c+=d.length}}return this};
k.global.Object.defineProperties(Tk.prototype,{closed:{configurable:!0,enumerable:!0,get:function(){return this.T.closed}}});function $k(){Tk.apply(this,arguments)}k.b($k,Tk);$k.writeAll=function(a,b){var c=new $k(b);return Eb(a)?a.then(function(f){return c.writeAll(f)}):Gb(a)?Uk(c,a):Vk(c,a)};function al(){Tk.call(this);this.qb=!0}k.b(al,Tk);al.writeAll=function(a){var b=new al;return Eb(a)?a.then(function(c){return b.writeAll(c)}):Gb(a)?Uk(b,a):Vk(b,a)};
al.prototype.dc=function(){Yk(Xk(this,Ck),2)};al.prototype.Cb=function(a){var b=Li.encode(new Li(a,kd.V4,this.zb,this.Sa));return Xk(Xk(Xk(Tk.prototype.Cb.call(this,a),b),Int32Array.of(b.byteLength)),Ck)};function bl(){Tk.call(this);this.qb=!0;this.sa=[];this.Ba=[]}k.b(bl,Tk);bl.writeAll=function(a){return(new bl).writeAll(a)};g=bl.prototype;g.Db=function(){return this};g.Cb=function(){return this};g.dc=function(a){Xk(this,'{\n "schema": '+JSON.stringify({fields:a.fields.map(cl)},null,2))};
g.Bb=function(a){0<a.dictionaries.size&&this.Ba.push(a);return this};g.Qc=function(a,b,c){c=void 0===c?!1:c;this.Ca.set(b,a.length+(this.Ca.get(b)||0));Xk(this,0===this.Sa.length?" ":",\n ");c=void 0===c?!1:c;var f=Qk.fb(new Kh(new P(""+b,a.type,0<a.nullCount),[a]));a=JSON.stringify({id:b,isDelta:c,data:{count:a.length,columns:f}},null,2);Xk(this,""+a);this.Sa.push(new Ni(0,0,0))};g.Rc=function(a){this.Bb(a);this.sa.push(a)};
g.close=function(){if(0<this.Ba.length){Xk(this,',\n "dictionaries": [\n');for(var a=k.w(this.Ba),b=a.next();!b.done;b=a.next())Tk.prototype.Bb.call(this,b.value);Xk(this,"\n ]")}if(0<this.sa.length){a=-1;for(b=this.sa.length;++a<b;){Xk(this,0===a?',\n "batches": [\n ':",\n ");var c=this.sa[a];c=JSON.stringify({count:c.length,columns:Qk.fb(c)},null,2);Xk(this,""+c);this.zb.push(new Ni(0,0,0))}Xk(this,"\n ]")}this.J&&Xk(this,"\n}");this.Ba=[];this.sa=[];return Tk.prototype.close.call(this)};
function Vk(a,b){var c=b;b instanceof S&&(c=b.chunks,a.reset(void 0,b.schema));b=k.w(c);for(c=b.next();!c.done;c=b.next())a.write(c.value);return a.finish()}function Uk(a,b){var c,f,d;return k.u(function(e){switch(e.j){case 1:c=k.Ja(b);case 2:return p(e,c.next(),5);case 5:f=e.m;if(f.done){e.i(4);break}d=f.value;a.write(d);e.i(2);break;case 4:return e.return(a.finish())}})}
function cl(a){var b=a.type,c=new Pk;return{name:a.name,nullable:a.nullable,type:c.visit(b),children:(b.children||[]).map(cl),dictionary:M.isDictionary(b)?{id:b.id,isOrdered:b.isOrdered,indexType:c.visit(b.indices)}:void 0}};var dl=new Uint8Array(0);function el(a,b){var c=void 0===c?b.reduce(function(n,r){return Math.max(n,r.length)},0):c;for(var f,d=-1,e=b.length,h=[].concat(k.o(a.fields)),l=[],m=(c+63&-64)>>3;++d<e;)(f=b[d])&&f.length===c?l[d]=f:((a=h[d]).nullable||(h[d]=h[d].clone({nullable:!0})),l[d]=f?Mf(f,c):L.new(a.type,0,c,c,[dl,dl,new Uint8Array(m),dl]));return[new Q(h),c,l]}function fl(a){return gl(new Q(a.map(function(b){return b.field})),a)}
function gl(a,b){return hl(a,b.map(function(c){return c instanceof O?c.chunks.map(function(f){return f.data}):[c.data]}))}
function hl(a,b){for(var c=[].concat(k.o(a.fields)),f=[],d={pc:b.reduce(function(v,y){return Math.max(v,y.length)},0)},e=0,h=0,l=-1,m=b.length,n,r=[];0<d.pc--;){h=Number.POSITIVE_INFINITY;for(l=-1;++l<m;)r[l]=n=b[l].shift(),h=Math.min(h,n?n.length:h);isFinite(h)&&(r=il(c,h,r,b,d),0<h&&(f[e++]=[h,r.slice()]))}return[a=new Q(c,a.metadata),f.map(function(v){return new (Function.prototype.bind.apply(Jk,[null,a].concat(k.o(v))))})]}
function il(a,b,c,f,d){for(var e,h,l=0,m=-1,n=f.length,r=(b+63&-64)>>3;++m<n;)(e=c[m])&&(l=e.length)>=b?l===b?c[m]=e:(c[m]=e.slice(0,b),e=e.slice(b,l-b),d.pc=Math.max(d.pc,f[m].unshift(e))):((h=a[m]).nullable||(a[m]=h.clone({nullable:!0})),c[m]=e?Mf(e,b):L.new(h.type,0,b,b,[dl,dl,new Uint8Array(r),dl]));return c};k.l();function U(a,b){this.ea=b;this.numChildren=a.childData.length;this.Gc(this.data=a)}k.b(U,D);g=U.prototype;g.clone=function(a,b){b=void 0===b?this.ea:b;return D.new(a,b)};g.concat=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return O.concat.apply(O,[this].concat(k.o(b)))};g.slice=function(a,b){return vh(this,a,b,this.ac)};g.isValid=function(a){return 0<this.nullCount?(a=this.offset+a,0!==(this.nullBitmap[a>>3]&1<<a%8)):!0};
g.getChildAt=function(a){return 0>a||a>=this.numChildren?null:(this.ea||(this.ea=[]))[a]||(this.ea[a]=D.new(this.data.childData[a]))};g.toJSON=function(){return[].concat(k.o(this))};g.ac=function(a,b,c){return a.clone(a.data.slice(b,c-b),null)};g.Gc=function(){};var jl={};
k.global.Object.defineProperties(U.prototype,(jl.type={configurable:!0,enumerable:!0,get:function(){return this.data.type}},jl.typeId={configurable:!0,enumerable:!0,get:function(){return this.data.typeId}},jl.length={configurable:!0,enumerable:!0,get:function(){return this.data.length}},jl.offset={configurable:!0,enumerable:!0,get:function(){return this.data.offset}},jl.stride={configurable:!0,enumerable:!0,get:function(){return this.data.stride}},jl.nullCount={configurable:!0,enumerable:!0,get:function(){return this.data.nullCount}},
jl.byteLength={configurable:!0,enumerable:!0,get:function(){return this.data.byteLength}},jl.VectorName={configurable:!0,enumerable:!0,get:function(){return I[this.typeId]+"Vector"}},jl.ArrayType={configurable:!0,enumerable:!0,get:function(){return this.type.ArrayType}},jl.values={configurable:!0,enumerable:!0,get:function(){return this.data.values}},jl.typeIds={configurable:!0,enumerable:!0,get:function(){return this.data.typeIds}},jl.nullBitmap={configurable:!0,enumerable:!0,get:function(){return this.data.nullBitmap}},
jl.valueOffsets={configurable:!0,enumerable:!0,get:function(){return this.data.valueOffsets}},jl[Symbol.toStringTag]={configurable:!0,enumerable:!0,get:function(){k.l();return this.VectorName+"<"+this.type[Symbol.toStringTag]+">"}},jl));k.l();U.prototype[Symbol.sh]=!0;function kl(){U.apply(this,arguments)}k.b(kl,U);kl.prototype.asUtf8=function(){return D.new(this.data.clone(new pe))};function ll(){U.apply(this,arguments)}k.b(ll,U);ll.from=function(a){return ml(function(){return new te},a)};function nl(){U.apply(this,arguments)}k.b(nl,U);nl.from=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 2===b.length?ml(function(){return b[1]===gd.DAY?new Fe:new Ge},b[0]):ml(function(){return new Ge},b[0])};function ol(){nl.apply(this,arguments)}k.b(ol,nl);function pl(){nl.apply(this,arguments)}k.b(pl,nl);function ql(){U.apply(this,arguments)}k.b(ql,U);function rl(a){U.call(this,a);this.indices=D.new(a.clone(this.type.indices))}k.b(rl,U);rl.from=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(3===b.length){var f=k.w(b);c=f.next().value;var d=f.next().value;f=f.next().value;d=new Gf(c.type,d,null,null);return D.new(L.Dictionary(d,0,f.length,0,null,f,c))}return ml(function(){return b[0].type},b[0])};g=rl.prototype;g.reverseLookup=function(a){return this.dictionary.indexOf(a)};g.getKey=function(a){return this.indices.get(a)};
g.getValue=function(a){return this.dictionary.get(a)};g.setKey=function(a,b){return this.indices.set(a,b)};g.setValue=function(a,b){return this.dictionary.set(a,b)};k.global.Object.defineProperties(rl.prototype,{dictionary:{configurable:!0,enumerable:!0,get:function(){return this.data.dictionary}}});rl.prototype.indices=null;function sl(){U.apply(this,arguments)}k.b(sl,U);function tl(){U.apply(this,arguments)}k.b(tl,U);function ul(){U.apply(this,arguments)}k.b(ul,U);
ul.from=function(a){var b=vl(this);if(a instanceof ArrayBuffer||ArrayBuffer.isView(a)){var c=wl(a.constructor)||b;null===b&&(b=c);if(b&&b===c){c=new b;var f=a.byteLength/c.ArrayType.BYTES_PER_ELEMENT;if(b!==ie||a.constructor===Uint16Array)return D.new(L.Float(c,0,f,0,null,a))}}if(b)return ml(function(){return new b},a);if(a instanceof DataView||a instanceof ArrayBuffer)throw new TypeError("Cannot infer float type from instance of "+a.constructor.name);throw new TypeError("Unrecognized FloatVector input");
};function xl(){ul.apply(this,arguments)}k.b(xl,ul);xl.prototype.toFloat32Array=function(){return new Float32Array(this)};xl.prototype.toFloat64Array=function(){return new Float64Array(this)};function yl(){ul.apply(this,arguments)}k.b(yl,ul);function zl(){ul.apply(this,arguments)}k.b(zl,ul);function wl(a){switch(a){case Uint16Array:return ie;case Float32Array:return je;case Float64Array:return ke;default:return null}}
function vl(a){switch(a){case xl:return ie;case yl:return je;case zl:return ke;default:return null}};function Al(){U.apply(this,arguments)}k.b(Al,U);function Bl(){Al.apply(this,arguments)}k.b(Bl,Al);function Cl(){Al.apply(this,arguments)}k.b(Cl,Al);function Dl(){U.apply(this,arguments)}k.b(Dl,U);
Dl.from=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=k.w(b);b=c.next().value;c=c.next().value;c=void 0===c?!1:c;var f=El(this,c);if(b instanceof ArrayBuffer||ArrayBuffer.isView(b))if(c=Fl(b.constructor,c)||f,null===f&&(f=c),f&&f===c){c=new f;var d=b.byteLength/c.ArrayType.BYTES_PER_ELEMENT;Gl(f,b.constructor)&&(d*=.5);return D.new(L.Int(c,0,d,0,null,b))}if(f)return ml(function(){return new f},b);if(b instanceof DataView||b instanceof ArrayBuffer)throw new TypeError("Cannot infer integer type from instance of "+
b.constructor.name);throw new TypeError("Unrecognized IntVector input");};function Hl(){Dl.apply(this,arguments)}k.b(Hl,Dl);function Il(){Dl.apply(this,arguments)}k.b(Il,Dl);function Jl(){Dl.apply(this,arguments)}k.b(Jl,Dl);function Kl(){Dl.apply(this,arguments)}k.b(Kl,Dl);Kl.prototype.toBigInt64Array=function(){return Pb(this.values)};k.global.Object.defineProperties(Kl.prototype,{values64:{configurable:!0,enumerable:!0,get:function(){return this.bc||(this.bc=this.toBigInt64Array())}}});
function Ll(){Dl.apply(this,arguments)}k.b(Ll,Dl);function Ml(){Dl.apply(this,arguments)}k.b(Ml,Dl);function Nl(){Dl.apply(this,arguments)}k.b(Nl,Dl);function Ol(){Dl.apply(this,arguments)}k.b(Ol,Dl);Ol.prototype.toBigUint64Array=function(){return Qb(this.values)};k.global.Object.defineProperties(Ol.prototype,{values64:{configurable:!0,enumerable:!0,get:function(){return this.bc||(this.bc=this.toBigUint64Array())}}});function Gl(a,b){return(a===$d||a===de)&&(b===Int32Array||b===Uint32Array)}
function Fl(a,b){switch(a){case Int8Array:return Xd;case Int16Array:return Yd;case Int32Array:return b?$d:Zd;case zb:return $d;case Uint8Array:return ae;case Uint16Array:return be;case Uint32Array:return b?de:ce;case Bb:return de;default:return null}}function El(a,b){switch(a){case Hl:return Xd;case Il:return Yd;case Jl:return b?$d:Zd;case Kl:return $d;case Ll:return ae;case Ml:return be;case Nl:return b?de:ce;case Ol:return de;default:return null}};function Pl(){U.apply(this,arguments)}k.b(Pl,U);function Ql(){U.apply(this,arguments)}k.b(Ql,U);Ql.prototype.asList=function(){return D.new(this.data.clone(new ef(this.type.children[0])))};Ql.prototype.bind=function(a){var b=this.getChildAt(0),c=this.valueOffsets;return new oh(b.slice(c[a],c[a+1]))};function Rl(){U.apply(this,arguments)}k.b(Rl,U);k.l();var Sl=Symbol.for("rowIndex");function Tl(){U.apply(this,arguments)}k.b(Tl,U);Tl.prototype.bind=function(a){var b=this.Ze||(this.Ze=new qh(this));b=Object.create(b);b[Sl]=a;return b};function Ul(){U.apply(this,arguments)}k.b(Ul,U);function Vl(){Ul.apply(this,arguments)}k.b(Vl,Ul);function Wl(){Ul.apply(this,arguments)}k.b(Wl,Ul);function Xl(){Ul.apply(this,arguments)}k.b(Xl,Ul);function Yl(){Ul.apply(this,arguments)}k.b(Yl,Ul);function Zl(){U.apply(this,arguments)}k.b(Zl,U);function $l(){Zl.apply(this,arguments)}k.b($l,Zl);function am(){Zl.apply(this,arguments)}k.b(am,Zl);function bm(){Zl.apply(this,arguments)}k.b(bm,Zl);function cm(){Zl.apply(this,arguments)}k.b(cm,Zl);function fm(){U.apply(this,arguments)}k.b(fm,U);k.global.Object.defineProperties(fm.prototype,{typeIdToChildIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.type.typeIdToChildIndex}}});function gm(){fm.apply(this,arguments)}k.b(gm,fm);k.global.Object.defineProperties(gm.prototype,{valueOffsets:{configurable:!0,enumerable:!0,get:function(){return this.data.valueOffsets}}});function hm(){fm.apply(this,arguments)}k.b(hm,fm);function im(){U.apply(this,arguments)}k.b(im,U);im.from=function(a){return ml(function(){return new pe},a)};im.prototype.asBinary=function(){return D.new(this.data.clone(new le))};function jm(a){return function(){return a(this)}}function km(a){return function(b){return a(this,b)}}function lm(a){return function(b,c){return a(this,b,c)}};function mm(){}k.b(mm,wd);function nm(a,b){return 4294967296*a[b+1]+(a[b]>>>0)}function om(a,b,c){var f=b[c];b=b[c+1];return null!=f&&null!=b?a.subarray(f,b):null}function pm(a,b){return new Date(864E5*a.values[b])}function qm(a,b){return new Date(nm(a.values,2*b))}function rm(a,b){return a.values[a.stride*b]}function sm(a,b){return mg(a.values[a.stride*b])}function tm(a,b){var c=a.stride;return Cg.new(a.values.subarray(c*b,c*(b+1)),a.type.isSigned)}function um(a,b){return 1E3*nm(a.values,2*b)}
function vm(a,b){return nm(a.values,2*b)}function wm(a,b){a=a.values;b*=2;return a[b+1]/1E3*4294967296+(a[b]>>>0)/1E3}function xm(a,b){a=a.values;b*=2;return a[b+1]/1E6*4294967296+(a[b]>>>0)/1E6}function ym(a,b){return a.values[a.stride*b]}function zm(a,b){return a.values[a.stride*b]}function Am(a,b){return Cg.he(a.values.subarray(2*b,2*(b+1)))}function Bm(a,b){return Cg.he(a.values.subarray(2*b,2*(b+1)))}
function Cm(a,b){var c=a.getChildAt(a.typeIdToChildIndex[a.typeIds[b]]);return c?c.get(a.valueOffsets[b]):null}function Dm(a,b){return(a=a.getChildAt(a.typeIdToChildIndex[a.typeIds[b]]))?a.get(b):null}function Em(a,b){return a.values.subarray(2*b,2*(b+1))}function Fm(a,b){a=a.values[b];b=new Int32Array(2);b[0]=a/12|0;b[1]=a%12|0;return b}g=mm.prototype;g.visitNull=function(){return null};g.visitBool=function(a,b){b=a.offset+b;return 0!==(a.values[b>>3]&1<<b%8)};
g.visitInt=function(a,b){return 64>a.type.bitWidth?rm(a,b):tm(a,b)};g.visitInt8=rm;g.visitInt16=rm;g.visitInt32=rm;g.visitInt64=tm;g.visitUint8=rm;g.visitUint16=rm;g.visitUint32=rm;g.visitUint64=tm;g.visitFloat=function(a,b){return a.type.precision!==hd.HALF?rm(a,b):sm(a,b)};g.visitFloat16=sm;g.visitFloat32=rm;g.visitFloat64=rm;g.visitUtf8=function(a,b){a=om(a.values,a.valueOffsets,b);return null!==a?lb(a):null};g.visitBinary=function(a,b){return om(a.values,a.valueOffsets,b)};
g.visitFixedSizeBinary=function(a,b){var c=a.stride;return a.values.subarray(c*b,c*(b+1))};g.visitDate=function(a,b){return a.type.unit===gd.DAY?pm(a,b):qm(a,b)};g.visitDateDay=pm;g.visitDateMillisecond=qm;g.visitTimestamp=function(a,b){switch(a.type.unit){case G.SECOND:return um(a,b);case G.MILLISECOND:return vm(a,b);case G.MICROSECOND:return wm(a,b);case G.NANOSECOND:return xm(a,b)}};g.visitTimestampSecond=um;g.visitTimestampMillisecond=vm;g.visitTimestampMicrosecond=wm;
g.visitTimestampNanosecond=xm;g.visitTime=function(a,b){switch(a.type.unit){case G.SECOND:return ym(a,b);case G.MILLISECOND:return zm(a,b);case G.MICROSECOND:return Am(a,b);case G.NANOSECOND:return Bm(a,b)}};g.visitTimeSecond=ym;g.visitTimeMillisecond=zm;g.visitTimeMicrosecond=Am;g.visitTimeNanosecond=Bm;g.visitDecimal=function(a,b){return Cg.sf(a.values.subarray(4*b,4*(b+1)))};g.visitList=function(a,b){var c=a.getChildAt(0),f=a.valueOffsets;a=a.stride;return c.slice(f[b*a],f[b*a+1])};
g.visitStruct=function(a,b){return a.bind(b)};g.visitUnion=function(a,b){return a.type.mode===id.Dense?Cm(a,b):Dm(a,b)};g.visitDenseUnion=Cm;g.visitSparseUnion=Dm;g.visitDictionary=function(a,b){return a.getValue(a.getKey(b))};g.visitInterval=function(a,b){return a.type.unit===jd.DAY_TIME?Em(a,b):Fm(a,b)};g.visitIntervalDayTime=Em;g.visitIntervalYearMonth=Fm;g.visitFixedSizeList=function(a,b){var c=a.getChildAt(0);a=a.stride;return c.slice(b*a,(b+1)*a)};g.visitMap=function(a,b){return a.bind(b)};
var Gm=new mm;function Hm(){}k.b(Hm,wd);function V(a,b,c){if(void 0===b)return-1;if(null===b){a:{var f=a.nullBitmap;if(f&&!(0>=a.nullCount))for(b=0,a=k.w(rd(f,a.data.offset+(c||0),a.length,f,md)),c=a.next();!c.done;c=a.next()){if(!c.value){a=b;break a}++b}a=-1}return a}b=yh(b);c=(c||0)-1;for(f=a.length;++c<f;)if(b(a.get(c)))return c;return-1}function Im(a,b,c){b=yh(b);c=(c||0)-1;for(var f=a.length;++c<f;)if(b(a.get(c)))return c;return-1}g=Hm.prototype;g.visitNull=function(a,b){return null===b&&0<a.length?0:-1};
g.visitBool=V;g.visitInt=V;g.visitInt8=V;g.visitInt16=V;g.visitInt32=V;g.visitInt64=V;g.visitUint8=V;g.visitUint16=V;g.visitUint32=V;g.visitUint64=V;g.visitFloat=V;g.visitFloat16=V;g.visitFloat32=V;g.visitFloat64=V;g.visitUtf8=V;g.visitBinary=V;g.visitFixedSizeBinary=V;g.visitDate=V;g.visitDateDay=V;g.visitDateMillisecond=V;g.visitTimestamp=V;g.visitTimestampSecond=V;g.visitTimestampMillisecond=V;g.visitTimestampMicrosecond=V;g.visitTimestampNanosecond=V;g.visitTime=V;g.visitTimeSecond=V;
g.visitTimeMillisecond=V;g.visitTimeMicrosecond=V;g.visitTimeNanosecond=V;g.visitDecimal=V;g.visitList=V;g.visitStruct=V;g.visitUnion=V;g.visitDenseUnion=Im;g.visitSparseUnion=Im;g.visitDictionary=V;g.visitInterval=V;g.visitIntervalDayTime=V;g.visitIntervalYearMonth=V;g.visitFixedSizeList=V;g.visitMap=V;var Jm=new Hm;function Km(){}k.b(Km,wd);function Lm(a){var b=Gm.getVisitFn(a);return rd(a.nullBitmap,a.offset,a.length,a,function(c,f,d,e){return 0!==(d&1<<e)?b(c,f):null})}
function W(a){if(0<a.nullCount)return Lm(a);var b=a.type,c=a.typeId,f=a.length;return 1===a.stride&&(c===I.Timestamp||c===I.Int&&64!==b.bitWidth||c===I.Time&&64!==b.bitWidth||c===I.Float&&0<b.precision)?(k.l(),k.D(),a.values.subarray(0,f)[Symbol.iterator]()):function h(e){var l;return k.C.H(h,function(m){1==m.j&&(l=-1);return++l<f?p(m,e(a,l),2):m.i(0)})}(Gm.getVisitFn(a))}g=Km.prototype;g.visitNull=W;g.visitBool=W;g.visitInt=W;g.visitInt8=W;g.visitInt16=W;g.visitInt32=W;g.visitInt64=W;
g.visitUint8=W;g.visitUint16=W;g.visitUint32=W;g.visitUint64=W;g.visitFloat=W;g.visitFloat16=W;g.visitFloat32=W;g.visitFloat64=W;g.visitUtf8=W;g.visitBinary=W;g.visitFixedSizeBinary=W;g.visitDate=W;g.visitDateDay=W;g.visitDateMillisecond=W;g.visitTimestamp=W;g.visitTimestampSecond=W;g.visitTimestampMillisecond=W;g.visitTimestampMicrosecond=W;g.visitTimestampNanosecond=W;g.visitTime=W;g.visitTimeSecond=W;g.visitTimeMillisecond=W;g.visitTimeMicrosecond=W;g.visitTimeNanosecond=W;g.visitDecimal=W;
g.visitList=W;g.visitStruct=W;g.visitUnion=W;g.visitDenseUnion=W;g.visitSparseUnion=W;g.visitDictionary=W;g.visitInterval=W;g.visitIntervalDayTime=W;g.visitIntervalYearMonth=W;g.visitFixedSizeList=W;g.visitMap=W;var Mm=new Km;function Nm(){}k.b(Nm,wd);function X(a){var b=a.length,c=a.stride;switch(a.type.typeId){case I.Int:case I.Float:case I.Decimal:case I.Time:case I.Timestamp:return a.values.subarray(0,b*c)}return[].concat(k.o(Mm.visit(a)))}g=Nm.prototype;g.visitNull=X;g.visitBool=X;g.visitInt=X;g.visitInt8=X;g.visitInt16=X;g.visitInt32=X;g.visitInt64=X;g.visitUint8=X;g.visitUint16=X;g.visitUint32=X;g.visitUint64=X;g.visitFloat=X;g.visitFloat16=X;g.visitFloat32=X;g.visitFloat64=X;g.visitUtf8=X;g.visitBinary=X;
g.visitFixedSizeBinary=X;g.visitDate=X;g.visitDateDay=X;g.visitDateMillisecond=X;g.visitTimestamp=X;g.visitTimestampSecond=X;g.visitTimestampMillisecond=X;g.visitTimestampMicrosecond=X;g.visitTimestampNanosecond=X;g.visitTime=X;g.visitTimeSecond=X;g.visitTimeMillisecond=X;g.visitTimeMicrosecond=X;g.visitTimeNanosecond=X;g.visitDecimal=X;g.visitList=X;g.visitStruct=X;g.visitUnion=X;g.visitDenseUnion=X;g.visitSparseUnion=X;g.visitDictionary=X;g.visitInterval=X;g.visitIntervalDayTime=X;
g.visitIntervalYearMonth=X;g.visitFixedSizeList=X;g.visitMap=X;var Om=new Nm;function Pm(a,b){return a+b}function Qm(a){return"Cannot compute the byte width of variable-width column "+a}function Rm(){}k.b(Rm,wd);g=Rm.prototype;g.visitNull=function(){return 0};g.visitInt=function(a){return a.bitWidth/8};g.visitFloat=function(a){return a.ArrayType.BYTES_PER_ELEMENT};g.visitBinary=function(a){throw Error(Qm(a));};g.visitUtf8=function(a){throw Error(Qm(a));};g.visitBool=function(){return.125};g.visitDecimal=function(){return 16};g.visitDate=function(a){return 4*(a.unit+1)};
g.visitTime=function(a){return a.bitWidth/8};g.visitTimestamp=function(a){return a.unit===G.SECOND?4:8};g.visitInterval=function(a){return 4*(a.unit+1)};g.visitList=function(a){throw Error(Qm(a));};g.visitStruct=function(a){return Sm(this,a.children).reduce(Pm,0)};g.visitUnion=function(a){return Sm(this,a.children).reduce(Pm,0)};g.visitFixedSizeBinary=function(a){return a.byteWidth};g.visitFixedSizeList=function(a){return a.listSize*Sm(this,a.children).reduce(Pm,0)};
g.visitMap=function(a){return Sm(this,a.children).reduce(Pm,0)};g.visitDictionary=function(a){return this.visit(a.indices)};function Sm(a,b){return(b||[]).map(function(c){return a.visit(c.type)})}var Tm=new Rm;function Um(){}k.b(Um,wd);g=Um.prototype;g.visitNull=function(){return Rl};g.visitBool=function(){return ll};g.visitInt=function(){return Dl};g.visitInt8=function(){return Hl};g.visitInt16=function(){return Il};g.visitInt32=function(){return Jl};g.visitInt64=function(){return Kl};g.visitUint8=function(){return Ll};g.visitUint16=function(){return Ml};g.visitUint32=function(){return Nl};g.visitUint64=function(){return Ol};g.visitFloat=function(){return ul};g.visitFloat16=function(){return xl};
g.visitFloat32=function(){return yl};g.visitFloat64=function(){return zl};g.visitUtf8=function(){return im};g.visitBinary=function(){return kl};g.visitFixedSizeBinary=function(){return sl};g.visitDate=function(){return nl};g.visitDateDay=function(){return ol};g.visitDateMillisecond=function(){return pl};g.visitTimestamp=function(){return Ul};g.visitTimestampSecond=function(){return Vl};g.visitTimestampMillisecond=function(){return Wl};g.visitTimestampMicrosecond=function(){return Xl};
g.visitTimestampNanosecond=function(){return Yl};g.visitTime=function(){return Zl};g.visitTimeSecond=function(){return $l};g.visitTimeMillisecond=function(){return am};g.visitTimeMicrosecond=function(){return bm};g.visitTimeNanosecond=function(){return cm};g.visitDecimal=function(){return ql};g.visitList=function(){return Pl};g.visitStruct=function(){return Tl};g.visitUnion=function(){return fm};g.visitDenseUnion=function(){return gm};g.visitSparseUnion=function(){return hm};g.visitDictionary=function(){return rl};
g.visitInterval=function(){return Al};g.visitIntervalDayTime=function(){return Bl};g.visitIntervalYearMonth=function(){return Cl};g.visitFixedSizeList=function(){return tl};g.visitMap=function(){return Ql};var Vm=new Um;D.new=Wm;D.from=Xm;function Wm(a,b){for(var c=[],f=1;f<arguments.length;++f)c[f-1]=arguments[f];return new (Function.prototype.bind.apply(Vm.getVisitFn(a)(),[null,a].concat(k.o(c))))}function ml(a,b){if(Fb(b)||Gb(b))return D.from({nullValues:[null,void 0],type:a(),values:b});var c=Object.assign({},b),f=void 0===c.values?[]:c.values;a=void 0===c.type?a():c.type;c=void 0===c.nullValues?[null,void 0]:c.nullValues;return Fb(f),D.from(Object.assign({},{nullValues:c},b,{type:a}))}
function Xm(a){a=Object.assign({},{nullValues:[null,void 0]},a);var b=Object.assign({},a),c=void 0===a.values?[]:a.values,f=(delete b.values,b);return Fb(c)?(a=[].concat(k.o(N.throughIterable(f)(c))),1===a.length?a[0]:O.concat(a)):function(d){var e,h,l,m;return k.u(function(n){switch(n.j){case 1:e=N.throughAsyncIterable(f),h=k.Ja(e(c));case 2:return p(n,h.next(),5);case 5:l=n.m;if(l.done){n.i(4);break}m=l.value;d.push(m);n.i(2);break;case 4:return n.return(1===d.length?d[0]:O.concat(d))}})}([])}
g=U.prototype;g.get=function(a){return Gm.visit(this,a)};g.set=function(a,b){return Ai.visit(this,a,b)};g.indexOf=function(a,b){return Jm.visit(this,a,b)};g.toArray=function(){return Om.visit(this)};g.getByteWidth=function(){return Tm.visit(this.type)};k.l();k.D();U.prototype[Symbol.iterator]=function(){return Mm.visit(this)};U.prototype.Gc=Ym;
Object.keys(I).map(function(a){return I[a]}).filter(function(a){return"number"===typeof a}).filter(function(a){return a!==I.NONE}).forEach(function(a){var b=Vm.visit(a);b.prototype.get=km(Gm.getVisitFn(a));b.prototype.set=lm(Ai.getVisitFn(a));b.prototype.indexOf=lm(Jm.getVisitFn(a));b.prototype.toArray=jm(Om.getVisitFn(a));b.prototype.getByteWidth=Zm(Tm.getVisitFn(a));k.l();k.D();b.prototype[Symbol.iterator]=jm(Mm.getVisitFn(a))});function Zm(a){return function(){return a(this.type)}}
function $m(a){return function(b){return this.isValid(b)?a.call(this,b):null}}function an(a){return function(b,c){od(this.nullBitmap,this.offset+b,!(null===c||void 0===c))&&a.call(this,b,c)}}function Ym(){var a=this.nullBitmap;a&&0<a.byteLength&&(this.get=$m(this.get),this.set=an(this.set))};function S(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=null;b[0]instanceof Q&&(c=b.shift());b=Ph(Jk,b,[],0);if(!c&&!(c=b[0]&&b[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");b[0]||(b[0]=new Wk(c));O.call(this,new jf(c.fields),b);this.J=c;this.I=b}k.b(S,O);S.empty=function(a){a=void 0===a?new Q([]):a;return new S(a,[])};
S.from=function(a){if(!a)return S.empty();if("object"===typeof a){var b=Fb(a.values)?a.type instanceof jf?S.fromStruct(Tl.from(a)):null:Gb(a.values)?bn(a):null;if(null!==b)return b}var c=cn.from(a);return Eb(c)?function(){var f,d;return k.u(function(e){return 1==e.j?(f=S,d=S.from,p(e,c,3)):2!=e.j?p(e,d.call(f,e.m),2):e.return(e.m)})}():c.isSync()&&(c=c.open())?c.schema?new S(c.schema,[].concat(k.o(c))):S.empty():function(f){var d,e,h,l,m,n;return k.u(function(r){switch(r.j){case 1:return p(r,f,2);
case 2:d=r.m;e=d.schema;h=[];if(!e){r.i(3);break}l=k.Ja(d);case 4:return p(r,l.next(),7);case 7:m=r.m;if(m.done){r.i(6);break}n=m.value;h.push(n);r.i(4);break;case 6:return r.return(new S(e,h));case 3:return r.return(S.empty())}})}(c.open())};S.fromAsync=function(a){return k.u(function(b){return 1==b.j?p(b,S.from(a),2):b.return(b.m)})};S.fromStruct=function(a){return S.new(a.data.childData,a.type.children)};
S.new=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return new (Function.prototype.bind.apply(S,[null].concat(k.o(fl(Nh(b))))))};g=S.prototype;g.clone=function(a){a=void 0===a?this.I:a;return new S(this.J,a)};g.getColumn=function(a){return this.getColumnAt(this.getColumnIndex(a))};g.getColumnAt=function(a){return this.getChildAt(a)};g.getColumnIndex=function(a){return this.J.fields.findIndex(function(b){return b.name===a})};
g.getChildAt=function(a){if(0>a||a>=this.numChildren)return null;var b,c=this.J.fields,f=this.ea||(this.ea=[]);if(b=f[a])return b;if(b=c[a])if(c=this.I.map(function(d){return d.getChildAt(a)}).filter(function(d){return null!=d}),0<c.length)return f[a]=new Kh(b,c);return null};g.serialize=function(a,b){return(void 0===b||b?$k:al).writeAll(this).toUint8Array(!0)};g.count=function(){return this.Va};
g.select=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=this.J.fields.reduce(function(d,e,h){return d.set(e.name,h)},new Map);return this.selectAt.apply(this,k.o(b.map(function(d){return f.get(d)}).filter(function(d){return-1<d})))};g.selectAt=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=this.J.selectAt.apply(this.J,k.o(b));return new S(f,this.I.map(function(d){var e=d.data.childData;return new Jk(f,d.length,b.map(function(h){return e[h]}).filter(Boolean))}))};
g.assign=function(a){var b=this,c=this.J.fields,f=k.w(a.schema.fields.reduce(function(h,l,m){var n=k.w(h),r=n.next().value;n=n.next().value;var v=c.findIndex(function(y){return y.name===l.name});~v?n[v]=m:r.push(m);return h},[[],[]])),d=f.next().value,e=f.next().value;f=this.J.assign(a.schema);d=[].concat(k.o(c.map(function(h,l,m,n){n=void 0===n?e[l]:n;return void 0===n?b.getColumnAt(l):a.getColumnAt(n)})),k.o(d.map(function(h){return a.getColumnAt(h)}))).filter(Boolean);return new (Function.prototype.bind.apply(S,
[null].concat(k.o(gl(f,d)))))};k.global.Object.defineProperties(S.prototype,{schema:{configurable:!0,enumerable:!0,get:function(){return this.J}},length:{configurable:!0,enumerable:!0,get:function(){return this.Va}},chunks:{configurable:!0,enumerable:!0,get:function(){return this.I}},numCols:{configurable:!0,enumerable:!0,get:function(){return this.Xb}}});function bn(a){return a.type instanceof jf?Tl.from(a).then(function(b){return S.fromStruct(b)}):null};function Jk(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=b[0];if(b[1]instanceof L){var f=k.w(b);f.next();var d=f.next().value;f=f.next().value}else{d=c.fields;var e=k.w(b);e.next();b=e.next().value;e=e.next().value;d=L.Struct(new jf(d),0,b,0,null,e)}Tl.call(this,d,f);this.J=c}k.b(Jk,Tl);Jk.from=function(a){Fb(a.values);return S.from(a)};
Jk.new=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=k.w(Oh(b,[[],[]]));b=c.next().value;c=c.next().value.filter(function(f){return f instanceof D});return new (Function.prototype.bind.apply(Jk,[null].concat(k.o(el(new Q(b),c.map(function(f){return f.data}))))))};Jk.prototype.clone=function(a,b){b=void 0===b?this.ea:b;return new Jk(this.J,a,b)};
Jk.prototype.concat=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=this.J;b=O.flatten.apply(O,[this].concat(k.o(b)));return new S(f,b.map(function(d){return new Jk(f,d.data)}))};Jk.prototype.select=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=this.J.fields.reduce(function(d,e,h){return d.set(e.name,h)},new Map);return this.selectAt.apply(this,k.o(b.map(function(d){return f.get(d)}).filter(function(d){return-1<d})))};
Jk.prototype.selectAt=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var f=this;c=this.J.selectAt.apply(this.J,k.o(b));b=b.map(function(d){return f.data.childData[d]}).filter(Boolean);return new Jk(c,this.length,b)};
k.global.Object.defineProperties(Jk.prototype,{schema:{configurable:!0,enumerable:!0,get:function(){return this.J}},numCols:{configurable:!0,enumerable:!0,get:function(){return this.J.fields.length}},dictionaries:{configurable:!0,enumerable:!0,get:function(){return this.Ba||(this.Ba=(new dn).visit(this.data,new jf(this.schema.fields)).dictionaries)}}});function Wk(a){Jk.call(this,a,0,a.fields.map(function(b){return L.new(b.type,0,0,0)}))}k.b(Wk,Jk);function dn(){this.dictionaries=new Map}k.b(dn,wd);
dn.prototype.visit=function(a,b){var c=this;if(M.isDictionary(b))return this.visitDictionary(a,b);a.childData.forEach(function(f,d){return c.visit(f,b.children[d].type)});return this};dn.prototype.visitDictionary=function(a,b){(a=a.dictionary)&&0<a.length&&this.dictionaries.set(b.id,a);return this};k.l();k.D();k.l();k.N();function cn(a){this.G=a}k.b(cn,pb);g=cn.prototype;g.isSync=function(){return this.G.isSync()};g.isAsync=function(){return this.G.isAsync()};g.isFile=function(){return this.G.isFile()};g.isStream=function(){return this.G.isStream()};g.next=function(){return this.G.next()};g.throw=function(a){return this.G.throw(a)};g.return=function(a){return this.G.return(a)};g.cancel=function(){return this.G.cancel()};g.reset=function(a){this.G.reset(a);this.Oc=this.Ec=void 0;return this};
g.open=function(a){var b=this;a=this.G.open(a);return Eb(a)?a.then(function(){return b}):this};g.readRecordBatch=function(a){return this.G.isFile()?this.G.readRecordBatch(a):null};cn.prototype[Symbol.iterator]=function(){k.l();k.D();return this.G[Symbol.iterator]()};cn.prototype[Symbol.asyncIterator]=function(){k.l();k.N();return this.G[Symbol.asyncIterator]()};
cn.prototype.toDOMStream=function(){var a=this;k.l();k.D();k.l();k.N();var b={},c={};return tb(this.isSync()?(b[Symbol.iterator]=function(){return a},b):(c[Symbol.asyncIterator]=function(){return a},c))};cn.prototype.toNodeStream=function(){var a=this;k.l();k.D();k.l();k.N();var b={},c={};return ub(this.isSync()?(b[Symbol.iterator]=function(){return a},b):(c[Symbol.asyncIterator]=function(){return a},c))};cn.throughNode=function(){throw Error('"throughNode" not available in this environment');};
cn.throughDOM=function(){throw Error('"throughDOM" not available in this environment');};cn.from=function(a){return a instanceof cn?a:Hb(a)?new en(new fn(a)):Db(a)&&Cb(a.stat)&&"number"===typeof a.fd?gn(a):Eb(a)?function(){var b,c;return k.u(function(f){return 1==f.j?(b=cn,c=cn.from,p(f,a,3)):2!=f.j?p(f,c.call(b,f.m),2):f.return(f.m)})}():Db(a)&&Ib(a.body)||Ib(a)||Jb(a)||Gb(a)?hn(new Ui(a)):jn(new Si(a))};
cn.readAll=function(a){return a instanceof cn?a.isSync()?kn(a):ln(a):Hb(a)||ArrayBuffer.isView(a)||Fb(a)||Db(a)&&"done"in a&&"value"in a?kn(a):ln(a)};
k.global.Object.defineProperties(cn.prototype,{closed:{configurable:!0,enumerable:!0,get:function(){return this.G.closed}},schema:{configurable:!0,enumerable:!0,get:function(){return this.G.schema}},autoDestroy:{configurable:!0,enumerable:!0,get:function(){return this.G.autoDestroy}},dictionaries:{configurable:!0,enumerable:!0,get:function(){return this.G.dictionaries}},numDictionaries:{configurable:!0,enumerable:!0,get:function(){return this.G.numDictionaries}},numRecordBatches:{configurable:!0,
enumerable:!0,get:function(){return this.G.numRecordBatches}},footer:{configurable:!0,enumerable:!0,get:function(){return this.G.isFile()?this.G.footer:null}}});k.l();k.D();k.l();k.N();function en(a){this.G=this.G=a}k.b(en,cn);en.prototype[Symbol.iterator]=function(){k.l();k.D();return this.G[Symbol.iterator]()};en.prototype[Symbol.asyncIterator]=function(){var a=this;return new wa(function c(){return k.C.H(c,function(f){k.l();k.D();return p(f,new q(1,a[Symbol.iterator]()),0)})}())};k.l();k.D();k.l();
k.N();function mn(a){this.G=this.G=a}k.b(mn,cn);mn.prototype[Symbol.iterator]=function(){throw Error("AsyncRecordBatchStreamReader is not Iterable");};mn.prototype[Symbol.asyncIterator]=function(){k.l();k.N();return this.G[Symbol.asyncIterator]()};function nn(a){en.call(this,a);this.G=a}k.b(nn,en);function on(a){mn.call(this,a);this.G=a}k.b(on,mn);function pn(a){a=void 0===a?new Map:a;this.closed=!1;this.autoDestroy=!0;this.aa=this.la=0;this.dictionaries=a}g=pn.prototype;g.isSync=function(){return!1};
g.isAsync=function(){return!1};g.isFile=function(){return!1};g.isStream=function(){return!1};g.reset=function(a){this.aa=this.la=0;this.schema=a;this.dictionaries=new Map;return this};function qn(a,b,c){return new Jk(a.schema,b.length,a.yb(b,c,a.schema.fields))}function rn(a,b,c){var f=b.id,d=b.Ib;b=b.data;var e=a.schema,h=a.dictionaries.get(f);return d||!h?(f=e.dictionaries.get(f),h&&d?h.concat(D.new(a.yb(b,c,[f])[0])):D.new(a.yb(b,c,[f])[0])):h}
g.yb=function(a,b,c){return(new fj(b,a.$,a.buffers,this.dictionaries)).visitMany(c)};k.global.Object.defineProperties(pn.prototype,{numDictionaries:{configurable:!0,enumerable:!0,get:function(){return this.la}},numRecordBatches:{configurable:!0,enumerable:!0,get:function(){return this.aa}}});k.l();k.D();function sn(a,b){pn.call(this,b);this.L=Hb(a)?new Bk(this.V=a):new zk(this.V=a)}k.b(sn,pn);sn.prototype.isSync=function(){return!0};sn.prototype.isStream=function(){return!0};
sn.prototype[Symbol.iterator]=function(){return this};g=sn.prototype;g.cancel=function(){!this.closed&&(this.closed=!0)&&(this.reset().L.return(),this.dictionaries=this.L=null)};g.open=function(a){this.closed||(this.autoDestroy=tn(this,a),this.schema||(this.schema=this.L.readSchema())||this.cancel());return this};g.throw=function(a){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset().L.throw(a):nb};
g.return=function(a){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset().L.return(a):nb};
g.next=function(){if(this.closed)return nb;for(var a,b=this.L;a=this.Xa();)if(a.isSchema())this.reset(a.header());else{if(a.isRecordBatch()){this.aa++;var c=a.header();b=b.readMessageBody(a.bodyLength);return{done:!1,value:qn(this,c,b)}}a.isDictionaryBatch()&&(this.la++,c=a.header(),a=b.readMessageBody(a.bodyLength),a=rn(this,c,a),this.dictionaries.set(c.id,a))}return this.schema&&0===this.aa?(this.aa++,{done:!1,value:new Wk(this.schema)}):this.return()};g.Xa=function(){return this.L.readMessage(void 0)};
k.l();k.N();function un(a,b){pn.call(this,b);this.L=new Ak(this.V=a)}k.b(un,pn);un.prototype.isAsync=function(){return!0};un.prototype.isStream=function(){return!0};un.prototype[Symbol.asyncIterator]=function(){return this};g=un.prototype;g.cancel=function(){var a=this;return k.u(function(b){if(1==b.j)return a.closed||!(a.closed=!0)?b.i(0):p(b,a.reset().L.return(),3);a.L=null;a.dictionaries=null;b.j=0})};
g.open=function(a){var b=this,c,f;return k.u(function(d){switch(d.j){case 1:if(b.closed){d.i(2);break}b.autoDestroy=tn(b,a);if(c=b.schema){d.i(3);break}f=b;return p(d,b.L.readSchema(),4);case 4:c=f.schema=d.m;case 3:if(c){d.i(2);break}return p(d,b.cancel(),2);case 2:return d.return(b)}})};g.throw=function(a){var b=this;return k.u(function(c){return 1==c.j?!b.closed&&b.autoDestroy&&(b.closed=!0)?p(c,b.reset().L.throw(a),3):c.i(2):2!=c.j?c.return(c.m):c.return(nb)})};
g.return=function(a){var b=this;return k.u(function(c){return 1==c.j?!b.closed&&b.autoDestroy&&(b.closed=!0)?p(c,b.reset().L.return(a),3):c.i(2):2!=c.j?c.return(c.m):c.return(nb)})};
g.next=function(){var a=this,b,c,f,d,e,h,l,m,n;return k.u(function(r){switch(r.j){case 1:if(a.closed)return r.return(nb);c=a;f=c.L;case 2:return p(r,a.Xa(),4);case 4:if(!(b=r.m))return a.schema&&0===a.aa?(a.aa++,r.return({done:!1,value:new Wk(a.schema)})):p(r,a.return(),13);if(b.isSchema())return p(r,a.reset(b.header()),2);if(b.isRecordBatch())return a.aa++,l=b.header(),p(r,f.readMessageBody(b.bodyLength),11);if(!b.isDictionaryBatch()){r.i(2);break}a.la++;d=b.header();return p(r,f.readMessageBody(b.bodyLength),
10);case 10:e=r.m;h=rn(a,d,e);a.dictionaries.set(d.id,h);r.i(2);break;case 11:return m=r.m,n=qn(a,l,m),r.return({done:!1,value:n});case 13:return r.return(r.m)}})};g.Xa=function(){var a=this;return k.u(function(b){return 1==b.j?p(b,a.L.readMessage(void 0),2):b.return(b.m)})};function vn(a,b){sn.call(this,a instanceof Wi?a:new Wi(a),b)}k.b(vn,sn);g=vn.prototype;g.isSync=function(){return!0};g.isFile=function(){return!0};
g.open=function(a){if(!this.closed&&!this.A){this.schema=(this.A=this.$b()).schema;for(var b=k.w(Oi(this.A)),c=b.next();!c.done;c=b.next())c.value&&this.Zb(this.la++)}return sn.prototype.open.call(this,a)};g.readRecordBatch=function(a){if(this.closed)return null;this.A||this.open();if((a=this.A&&this.A.Ia(a))&&this.V.seek(a.offset)){var b=this.L.readMessage(H.RecordBatch);if(b&&b.isRecordBatch())return a=b.header(),b=this.L.readMessageBody(b.bodyLength),qn(this,a,b)}return null};
g.Zb=function(a){if((a=this.A&&this.A.Hb(a))&&this.V.seek(a.offset)){var b=this.L.readMessage(H.DictionaryBatch);b&&b.isDictionaryBatch()&&(a=b.header(),b=this.L.readMessageBody(b.bodyLength),b=rn(this,a,b),this.dictionaries.set(a.id,b))}};g.$b=function(){var a=this.V,b=a.size-Gk,c=a.v(b);a=a.La(b-c,c);return Li.decode(a)};g.Xa=function(){this.A||this.open();if(this.A&&this.aa<this.numRecordBatches){var a=this.A&&this.A.Ia(this.aa);if(a&&this.V.seek(a.offset))return this.L.readMessage(void 0)}return null};
k.global.Object.defineProperties(vn.prototype,{footer:{configurable:!0,enumerable:!0,get:function(){return this.A}},numDictionaries:{configurable:!0,enumerable:!0,get:function(){return this.A?this.A.numDictionaries:0}},numRecordBatches:{configurable:!0,enumerable:!0,get:function(){return this.A?this.A.numRecordBatches:0}}});
function wn(a,b){for(var c=[],f=1;f<arguments.length;++f)c[f-1]=arguments[f];f="number"!==typeof c[0]?c.shift():void 0;c=c[0]instanceof Map?c.shift():void 0;un.call(this,a instanceof Xi?a:new Xi(a,f),c)}k.b(wn,un);g=wn.prototype;g.isFile=function(){return!0};g.isAsync=function(){return!0};
g.open=function(a){var b=this,c,f,d,e,h;return k.u(function(l){switch(l.j){case 1:if(b.closed||b.A){l.i(2);break}f=c=b;return p(l,b.$b(),3);case 3:c.schema=(f.A=l.m).schema,d=k.w(Oi(b.A)),e=d.next();case 4:if(e.done){l.i(2);break}h=e.value;if(!h){l.i(7);break}return p(l,b.Zb(b.la++),8);case 8:case 7:e=d.next();l.i(4);break;case 2:return p(l,un.prototype.open.call(b,a),9);case 9:return l.return(l.m)}})};
g.readRecordBatch=function(a){var b=this,c,f,d,e,h,l;return k.u(function(m){switch(m.j){case 1:if(b.closed)return m.return(null);if(b.A){m.i(2);break}return p(m,b.open(),2);case 2:c=b.A&&b.A.Ia(a);if(!(f=c)){m.i(4);break}return p(m,b.V.seek(c.offset),5);case 5:f=m.m;case 4:if(!f){m.i(6);break}return p(m,b.L.readMessage(H.RecordBatch),7);case 7:d=m.m;if(!d||!d.isRecordBatch()){m.i(6);break}e=d.header();return p(m,b.L.readMessageBody(d.bodyLength),9);case 9:return h=m.m,l=qn(b,e,h),m.return(l);case 6:return m.return(null)}})};
g.Zb=function(a){var b=this,c,f,d,e,h,l;return k.u(function(m){switch(m.j){case 1:c=b.A&&b.A.Hb(a);if(!(f=c)){m.i(2);break}return p(m,b.V.seek(c.offset),3);case 3:f=m.m;case 2:if(!f){m.i(0);break}return p(m,b.L.readMessage(H.DictionaryBatch),5);case 5:d=m.m;if(!d||!d.isDictionaryBatch()){m.i(0);break}e=d.header();return p(m,b.L.readMessageBody(d.bodyLength),7);case 7:h=m.m,l=rn(b,e,h),b.dictionaries.set(e.id,l),m.j=0}})};
g.$b=function(){var a=this,b,c,f,d,e;return k.u(function(h){switch(h.j){case 1:b=a;c=b.V;if(!c.R){h.i(2);break}return p(h,c.R,3);case 3:case 2:return f=c.size-Gk,p(h,c.v(f),4);case 4:return d=h.m,p(h,c.La(f-d,d),5);case 5:return e=h.m,h.return(Li.decode(e))}})};
g.Xa=function(){var a=this,b,c;return k.u(function(f){switch(f.j){case 1:if(a.A){f.i(2);break}return p(f,a.open(),2);case 2:if(!(a.A&&a.aa<a.numRecordBatches)){f.i(4);break}b=a.A.Ia(a.aa);if(!(c=b)){f.i(5);break}return p(f,a.V.seek(b.offset),6);case 6:c=f.m;case 5:if(!c){f.i(4);break}return p(f,a.L.readMessage(void 0),8);case 8:return f.return(f.m);case 4:return f.return(null)}})};
k.global.Object.defineProperties(wn.prototype,{footer:{configurable:!0,enumerable:!0,get:function(){return this.A}},numDictionaries:{configurable:!0,enumerable:!0,get:function(){return this.A?this.A.numDictionaries:0}},numRecordBatches:{configurable:!0,enumerable:!0,get:function(){return this.A?this.A.numRecordBatches:0}}});function fn(a,b){sn.call(this,a,b)}k.b(fn,sn);fn.prototype.yb=function(a,b,c){return(new ij(b,a.$,a.buffers,this.dictionaries)).visitMany(c)};
function tn(a,b){return b&&"boolean"===typeof b.autoDestroy?b.autoDestroy:a.autoDestroy}function kn(a){var b;return k.C.H(kn,function(c){switch(c.j){case 1:if(b=cn.from(a),ha(c,2),b.open({autoDestroy:!1}).closed){c.i(2);break}case 5:return p(c,b,7);case 7:if(!b.reset().open().closed){c.i(5);break}case 2:ja(c),b.cancel(),ka(c)}})}
function ln(a){return new wa(function c(){var f;return k.C.H(c,function(d){switch(d.j){case 1:return p(d,new q(2,cn.from(a)),2);case 2:return f=d.m,ha(d,3),p(d,new q(2,f.open({autoDestroy:!1})),5);case 5:if(d.m.closed){d.i(3);break}case 7:return p(d,new q(0,f),9);case 9:return p(d,new q(2,f.reset().open()),11);case 11:if(!d.m.closed){d.i(7);break}case 3:return ja(d),p(d,new q(2,f.cancel()),12);case 12:ka(d)}})}())}
function jn(a){var b=a.peek(Fk+7&-8);return b&&4<=b.byteLength?Ek(b)?new nn(new vn(a.read())):new en(new sn(a)):new en(new sn(function f(){return k.C.H(f,function(d){d.j=0})}()))}
function hn(a){var b,c,f,d,e;return k.u(function(h){switch(h.j){case 1:return p(h,a.peek(Fk+7&-8),2);case 2:b=h.m;if(!(b&&4<=b.byteLength)){c=new mn(new un(function(){return new wa(function m(){return k.C.H(m,function(n){n.j=0})}())}()));h.i(3);break}if(!Ek(b)){f=new mn(new un(a));h.i(4);break}d=nn;e=vn;return p(h,a.read(),5);case 5:f=new d(new e(h.m));case 4:c=f;case 3:return h.return(c)}})}
function gn(a){var b,c,f,d;return k.u(function(e){switch(e.j){case 1:return p(e,a.stat(),2);case 2:b=e.m;c=b.size;f=new Xi(a,c);if(!(c>=Hk)){e.i(3);break}d=Ek;return p(e,f.La(0,Fk+7&-8),4);case 4:if(d(e.m))return e.return(new on(new wn(f)));case 3:return e.return(new mn(new un(f)))}})};function xn(a,b){function c(h,l){for(var m,n,r=h.desiredSize||null;!(n=l.next(d?r:null)).done;)if(ArrayBuffer.isView(n.value)&&(m=x(n.value))&&(null!=r&&d&&(r=r-m.byteLength+1),n.value=m),h.enqueue(n.value),null!=r&&0>=--r)return;h.close()}var f=null,d=b&&"bytes"===b.type||!1,e=b&&b.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign({},b,{start:function(h){k.l();k.D();c(h,f||(f=a[Symbol.iterator]()))},pull:function(h){f?c(h,f):h.close()},cancel:function(){f&&f.return&&f.return();
f=null}}),Object.assign({},{highWaterMark:d?e:void 0},b))}
function yn(a,b){function c(h,l){var m,n,r;return k.u(function(v){switch(v.j){case 1:n=null,r=h.desiredSize||null;case 2:return p(v,l.next(d?r:null),4);case 4:if((n=v.m).done){v.i(3);break}ArrayBuffer.isView(n.value)&&(m=x(n.value))&&(null!=r&&d&&(r=r-m.byteLength+1),n.value=m);h.enqueue(n.value);if(null!=r&&0>=--r)return v.return();v.i(2);break;case 3:h.close(),v.j=0}})}var f=null,d=b&&"bytes"===b.type||!1,e=b&&b.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign({},b,{start:function(h){return k.u(function(l){k.l();
k.N();return p(l,c(h,f||(f=a[Symbol.asyncIterator]())),0)})},pull:function(h){return k.u(function(l){if(1==l.j)return f?p(l,c(h,f),3):(h.close(),l.i(2));l.j=0})},cancel:function(){return k.u(function(h){switch(h.j){case 1:if(!f){h.i(2);break}if(!f.return){h.i(3);break}return p(h,f.return(),4);case 4:case 3:case 2:f=null,h.j=0}})}}),Object.assign({},{highWaterMark:d?e:void 0},b))};function zn(a){var b=this;this.Yb=0;this.Jc=!1;this.Qa=0;var c=Object.assign({},a),f=a.readableStrategy,d=a.writableStrategy;a=a.queueingStrategy;a=void 0===a?"count":a;c=(delete c.readableStrategy,delete c.writableStrategy,delete c.queueingStrategy,c);this.Ra=null;this.va=N.new(c);this.Ve="bytes"!==a?An:Bn;f=Object.assign({},f).highWaterMark;f=void 0===f?"bytes"===a?Math.pow(2,14):1E3:f;d=Object.assign({},d).highWaterMark;d=void 0===d?"bytes"===a?Math.pow(2,14):1E3:d;c={};this.readable=new ReadableStream((c.cancel=
function(){b.va.clear()},c.pull=function(e){Cn(b,b.va,b.Ra=e)},c.start=function(e){Cn(b,b.va,b.Ra=e)},c),{highWaterMark:f,size:"bytes"!==a?An:Bn});a={};this.writable=new WritableStream((a.abort=function(){b.va.clear()},a.write=function(){Cn(b,b.va,b.Ra)},a.close=function(){Cn(b,b.va.finish(),b.Ra)},a),{highWaterMark:d,size:function(e){var h=b.Qa;b.Qa=b.Ve(b.va.append(e));return b.Qa-h}})}
function Cn(a,b,c){null!==c&&(a.Qa>=c.desiredSize&&++a.Yb&&Dn(a,c,b.toVector()),b.finished&&((0<b.length||0===a.Yb)&&++a.Yb&&Dn(a,c,b.toVector()),!a.Jc&&(a.Jc=!0)&&Dn(a,c,null)))}function Dn(a,b,c){a.Qa=0;a.Ra=null;null===c?b.close():b.enqueue(c)}function An(a){return a.length}function Bn(a){return a.byteLength};function En(){}g=En.prototype;g.eq=function(a){a instanceof En||(a=new Fn(a));return new Gn(this,a)};g.le=function(a){a instanceof En||(a=new Fn(a));return new Hn(this,a)};g.ge=function(a){a instanceof En||(a=new Fn(a));return new In(this,a)};g.lt=function(a){return new Jn(this.ge(a))};g.gt=function(a){return new Jn(this.le(a))};g.ne=function(a){return new Jn(this.eq(a))};function Fn(a){this.ca=a}k.b(Fn,En);function Kn(a){this.name=a}k.b(Kn,En);
Kn.prototype.bind=function(a){if(!this.Fb){this.Fb=-1;for(var b=a.schema.fields,c=-1;++c<b.length;)if(b[c].name===this.name){this.Fb=c;break}if(0>this.Fb)throw Error('Failed to bind Col "'+this.name+'"');}var f=this.Oa=a.getChildAt(this.Fb);return function(d){return f.get(d)}};function Ln(){}Ln.prototype.and=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return new (Function.prototype.bind.apply(Mn,[null,this].concat(k.o(b))))};
Ln.prototype.or=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return new (Function.prototype.bind.apply(Nn,[null,this].concat(k.o(b))))};Ln.prototype.not=function(){return new Jn(this)};function On(a,b){this.left=a;this.right=b}k.b(On,Ln);On.prototype.bind=function(a){return this.left instanceof Fn?this.right instanceof Fn?this.Qb(this.left,this.right):this.Pb(a,this.left,this.right):this.right instanceof Fn?this.rb(a,this.left,this.right):this.Ob(a,this.left,this.right)};
function Pn(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.children=b}k.b(Pn,Ln);Pn.prototype.children=Object.freeze([]);function Mn(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=b.reduce(function(f,d){return f.concat(d instanceof Mn?d.children:d)},[]);Pn.apply(this,k.o(b))}k.b(Mn,Pn);Mn.prototype.bind=function(a){var b=this.children.map(function(c){return c.bind(a)});return function(c,f){return b.every(function(d){return d(c,f)})}};
function Nn(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=b.reduce(function(f,d){return f.concat(d instanceof Nn?d.children:d)},[]);Pn.apply(this,k.o(b))}k.b(Nn,Pn);Nn.prototype.bind=function(a){var b=this.children.map(function(c){return c.bind(a)});return function(c,f){return b.some(function(d){return d(c,f)})}};function Gn(){On.apply(this,arguments)}k.b(Gn,On);Gn.prototype.Qb=function(a,b){var c=a.ca==b.ca;return function(){return c}};
Gn.prototype.Ob=function(a,b,c){var f=b.bind(a),d=c.bind(a);return function(e,h){return f(e,h)==d(e,h)}};Gn.prototype.rb=function(a,b,c){var f=b.bind(a);if(b.Oa instanceof rl){var d=b.Oa;if(d.dictionary!==this.Hf){var e=d.reverseLookup(c.ca);this.Hf=d.dictionary;this.If=e}else e=this.If;return-1===e?function(){return!1}:function(h){return d.getKey(h)===e}}return function(h,l){return f(h,l)==c.ca}};Gn.prototype.Pb=function(a,b,c){return this.rb(a,c,b)};function Hn(){On.apply(this,arguments)}
k.b(Hn,On);Hn.prototype.Qb=function(a,b){var c=a.ca<=b.ca;return function(){return c}};Hn.prototype.Ob=function(a,b,c){var f=b.bind(a),d=c.bind(a);return function(e,h){return f(e,h)<=d(e,h)}};Hn.prototype.rb=function(a,b,c){var f=b.bind(a);return function(d,e){return f(d,e)<=c.ca}};Hn.prototype.Pb=function(a,b,c){var f=c.bind(a);return function(d,e){return b.ca<=f(d,e)}};function In(){On.apply(this,arguments)}k.b(In,On);In.prototype.Qb=function(a,b){var c=a.ca>=b.ca;return function(){return c}};
In.prototype.Ob=function(a,b,c){var f=b.bind(a),d=c.bind(a);return function(e,h){return f(e,h)>=d(e,h)}};In.prototype.rb=function(a,b,c){var f=b.bind(a);return function(d,e){return f(d,e)>=c.ca}};In.prototype.Pb=function(a,b,c){var f=c.bind(a);return function(d,e){return b.ca>=f(d,e)}};function Jn(a){this.kf=a}k.b(Jn,Ln);Jn.prototype.bind=function(a){var b=this.kf.bind(a);return function(c,f){return!b(c,f)}};function Qn(a,b){this.next=a;this.ef=b}k.b(Qn,Ln);
Qn.prototype.bind=function(a){this.ef(a);return this.next};var Rn={};Rn.And=Mn;Rn.Col=Kn;Rn.CombinationPredicate=Pn;Rn.ComparisonPredicate=On;Rn.CustomPredicate=Qn;Rn.Equals=Gn;Rn.GTeq=In;Rn.LTeq=Hn;Rn.Literal=Fn;Rn.Not=Jn;Rn.Or=Nn;Rn.Predicate=Ln;Rn.Value=En;Rn.and=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return new (Function.prototype.bind.apply(Mn,[null].concat(k.o(b))))};Rn.col=function(a){return new Kn(a)};Rn.custom=function(a,b){return new Qn(a,b)};Rn.lit=function(a){return new Fn(a)};
Rn.or=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return new (Function.prototype.bind.apply(Nn,[null].concat(k.o(b))))};S.prototype.countBy=function(a){return(new Sn(this.chunks)).countBy(a)};S.prototype.scan=function(a,b){return(new Sn(this.chunks)).scan(a,b)};S.prototype.scanReverse=function(a,b){return(new Sn(this.chunks)).scanReverse(a,b)};S.prototype.filter=function(a){return(new Sn(this.chunks)).filter(a)};function Sn(){S.apply(this,arguments)}k.b(Sn,S);Sn.prototype.filter=function(a){return new Tn(this.chunks,a)};
Sn.prototype.scan=function(a,b){for(var c=this.chunks,f=c.length,d=-1;++d<f;){var e=c[d];b&&b(e);for(var h=-1,l=e.length;++h<l;)a(h,e)}};Sn.prototype.scanReverse=function(a,b){for(var c=this.chunks,f=c.length;0<=--f;){var d=c[f];b&&b(d);for(var e=d.length;0<=--e;)a(e,d)}};
Sn.prototype.countBy=function(a){var b=this.chunks,c=b.length;a="string"===typeof a?new Kn(a):a;a.bind(b[c-1]);var f=a.Oa;if(!M.isDictionary(f.type))throw Error("countBy currently only supports dictionary-encoded columns");var d=Math.ceil(Math.log(f.length)/Math.log(256));d=new (4==d?Uint32Array:2<=d?Uint16Array:Uint8Array)(f.dictionary.length);for(var e=-1;++e<c;){var h=b[e];a.bind(h);var l=a.Oa.indices,m=-1;for(h=h.length;++m<h;){var n=l.get(m);null!==n&&d[n]++}}return new Un(f.dictionary,Dl.from(d))};
function Un(a,b){var c=new Q([new P("values",a.type),new P("counts",b.type)]);S.call(this,new Jk(c,b.length,[a,b]))}k.b(Un,S);Un.prototype.toJSON=function(){for(var a=this.getColumnAt(0),b=this.getColumnAt(1),c={},f=-1;++f<this.length;)c[a.get(f)]=b.get(f);return c};k.l();k.D();function Tn(a,b){Sn.call(this,a);this.Ea=b}k.b(Tn,Sn);Tn.prototype.scan=function(a,b){for(var c=this.I,f=c.length,d=-1;++d<f;)for(var e=c[d],h=this.Ea.bind(e),l=!1,m=-1,n=e.length;++m<n;)h(m,e)&&(b&&!l&&(b(e),l=!0),a(m,e))};
Tn.prototype.scanReverse=function(a,b){for(var c=this.I,f=c.length;0<=--f;)for(var d=c[f],e=this.Ea.bind(d),h=!1,l=d.length;0<=--l;)e(l,d)&&(b&&!h&&(b(d),h=!0),a(l,d))};Tn.prototype.count=function(){for(var a=0,b=this.I,c=b.length,f=-1;++f<c;)for(var d=b[f],e=this.Ea.bind(d),h=-1,l=d.length;++h<l;)e(h,d)&&++a;return a};
Tn.prototype[Symbol.iterator]=function Vn(){var b=this,c,f,d,e,h,l,m;return k.C.H(Vn,function(n){1==n.j&&(c=b.I,f=c.length,d=-1);if(5!=n.j){if(!(++d<f))return n.i(0);e=c[d];h=b.Ea.bind(e);l=-1;m=e.length}return++l<m?h(l,e)?p(n,e.get(l),5):n.i(5):n.i(2)})};Tn.prototype.filter=function(a){return new Tn(this.I,this.Ea.and(a))};
Tn.prototype.countBy=function(a){var b=this.I,c=b.length;a="string"===typeof a?new Kn(a):a;a.bind(b[c-1]);var f=a.Oa;if(!M.isDictionary(f.type))throw Error("countBy currently only supports dictionary-encoded columns");var d=Math.ceil(Math.log(f.length)/Math.log(256));d=new (4==d?Uint32Array:2<=d?Uint16Array:Uint8Array)(f.dictionary.length);for(var e=-1;++e<c;){var h=b[e],l=this.Ea.bind(h);a.bind(h);for(var m=a.Oa.indices,n=-1,r=h.length;++n<r;){var v=m.get(n);null!==v&&l(n,h)&&d[v]++}}return new Un(f.dictionary,
Dl.from(d))};var Wn=Object.assign({},Dg,ej,vd,og,B,Fh);tb=function(a,b){if(Gb(a))return yn(a,b);if(Fb(a))return xn(a,b);throw Error("toDOMStream() must be called with an Iterable or AsyncIterable");};N.throughDOM=function(a){return new zn(a)};
cn.throughDOM=function(a,b){function c(){var l;return k.u(function(m){return 1==m.j?(l=b,p(m,cn.from(d),3)):2!=m.j?p(m,m.m.open(l),2):m.return(m.m)})}function f(l,m){var n,r;return k.u(function(v){switch(v.j){case 1:n=l.desiredSize,r=null;case 2:return p(v,m.next(),4);case 4:if((r=v.m).done){v.i(3);break}l.enqueue(r.value);if(null!=n&&0>=--n)return v.return();v.i(2);break;case 3:l.close(),v.j=0}})}var d=new Ri,e=null,h=new ReadableStream({cancel:function(){return k.u(function(l){return p(l,d.close(),
0)})},start:function(l){var m,n,r;return k.u(function(v){if(1==v.j)return m=f,n=l,(r=e)?v.i(3):p(v,c(),4);3!=v.j&&(r=e=v.m);return p(v,m(n,r),0)})},pull:function(l){return k.u(function(m){if(1==m.j)return e?p(m,f(l,e),3):(l.close(),m.i(2));m.j=0})}});return{writable:new WritableStream(d,Object.assign({},{highWaterMark:Math.pow(2,14)},a)),readable:h}};
Tk.throughDOM=function(a,b){function c(e){var h,l;return k.u(function(m){switch(m.j){case 1:h=null,l=e.desiredSize;case 2:return p(m,d.read(l||null),4);case 4:if(!(h=m.m)){m.i(3);break}e.enqueue(h);if(null!=l&&0>=(l-=h.byteLength))return m.return();m.i(2);break;case 3:e.close(),m.j=0}})}var f=new this(a),d=new Ui(f);b=new ReadableStream({type:"bytes",cancel:function(){return k.u(function(e){return p(e,d.cancel(),0)})},pull:function(e){return k.u(function(h){return p(h,c(e),0)})},start:function(e){return k.u(function(h){return p(h,
c(e),0)})}},Object.assign({},{highWaterMark:Math.pow(2,14)},b));return{writable:new WritableStream(f,a),readable:b}};var Y={};Y.ArrowType=fd;Y.AsyncByteQueue=Ri;Y.AsyncByteStream=Ui;Y.AsyncMessageReader=Ak;Y.AsyncRecordBatchFileReader=on;Y.AsyncRecordBatchStreamReader=mn;Y.BaseVector=U;Y.Binary=le;Y.BinaryBuilder=ah;Y.BinaryVector=kl;Y.Bool=te;Y.BoolBuilder=ag;Y.BoolVector=ll;Y.BufferType=K;Y.Builder=N;Y.ByteStream=Si;Y.Chunked=O;Y.Column=Kh;Y.CountByResult=Un;Y.Data=L;Y.DataFrame=Sn;Y.DataType=M;
Y.DateBuilder=cg;Y.DateDay=Fe;Y.DateDayBuilder=dg;Y.DateDayVector=ol;Y.DateMillisecond=Ge;Y.DateMillisecondBuilder=eg;Y.DateMillisecondVector=pl;Y.DateUnit=gd;Y.DateVector=nl;Y.Date_=Be;Y.Decimal=xe;Y.DecimalBuilder=fg;Y.DecimalVector=ql;Y.DenseUnion=rf;Y.DenseUnionBuilder=ci;Y.DenseUnionVector=gm;Y.Dictionary=Gf;Y.DictionaryBuilder=gg;Y.DictionaryVector=rl;Y.Field=P;Y.FilteredDataFrame=Tn;Y.FixedSizeBinary=tf;Y.FixedSizeBinaryBuilder=hg;Y.FixedSizeBinaryVector=sl;Y.FixedSizeList=xf;
Y.FixedSizeListBuilder=Yh;Y.FixedSizeListVector=tl;Y.Float=ee;Y.Float16=ie;Y.Float16Builder=qg;Y.Float16Vector=xl;Y.Float32=je;Y.Float32Builder=rg;Y.Float32Vector=yl;Y.Float64=ke;Y.Float64Builder=sg;Y.Float64Vector=zl;Y.FloatBuilder=pg;Y.FloatVector=ul;Y.Int=Td;Y.Int16=Yd;Y.Int16Builder=Gg;Y.Int16Vector=Il;Y.Int32=Zd;Y.Int32Builder=Hg;Y.Int32Vector=Jl;Y.Int64=$d;Y.Int64Builder=Ig;Y.Int64Vector=Kl;Y.Int8=Xd;Y.Int8Builder=Fg;Y.Int8Vector=Hl;Y.IntBuilder=Eg;Y.IntVector=Dl;Y.Interval=Ze;
Y.IntervalBuilder=Yg;Y.IntervalDayTime=cf;Y.IntervalDayTimeBuilder=Zg;Y.IntervalDayTimeVector=Bl;Y.IntervalUnit=jd;Y.IntervalVector=Al;Y.IntervalYearMonth=df;Y.IntervalYearMonthBuilder=$g;Y.IntervalYearMonthVector=Cl;Y.JSONMessageReader=Bk;Y.List=ef;Y.ListBuilder=Xh;Y.ListVector=Pl;Y.MapBuilder=Zh;Y.MapVector=Ql;Y.Map_=Bf;Y.Message=Zj;Y.MessageHeader=H;Y.MessageReader=zk;Y.MetadataVersion=kd;Y.Null=Pd;Y.NullBuilder=bg;Y.NullVector=Rl;Y.Precision=hd;Y.RecordBatch=Jk;Y.RecordBatchFileReader=nn;
Y.RecordBatchFileWriter=al;Y.RecordBatchJSONWriter=bl;Y.RecordBatchReader=cn;Y.RecordBatchStreamReader=en;Y.RecordBatchStreamWriter=$k;Y.RecordBatchWriter=Tk;Y.Schema=Q;Y.SparseUnion=sf;Y.SparseUnionBuilder=bi;Y.SparseUnionVector=hm;Y.Struct=jf;Y.StructBuilder=$h;Y.StructVector=Tl;Y.Table=S;Y.Time=He;Y.TimeBuilder=Og;Y.TimeMicrosecond=Pe;Y.TimeMicrosecondBuilder=Rg;Y.TimeMicrosecondVector=bm;Y.TimeMillisecond=Oe;Y.TimeMillisecondBuilder=Qg;Y.TimeMillisecondVector=am;Y.TimeNanosecond=Qe;
Y.TimeNanosecondBuilder=Sg;Y.TimeNanosecondVector=cm;Y.TimeSecond=Ne;Y.TimeSecondBuilder=Pg;Y.TimeSecondVector=$l;Y.TimeUnit=G;Y.TimeVector=Zl;Y.Timestamp=Re;Y.TimestampBuilder=Tg;Y.TimestampMicrosecond=Xe;Y.TimestampMicrosecondBuilder=Wg;Y.TimestampMicrosecondVector=Xl;Y.TimestampMillisecond=We;Y.TimestampMillisecondBuilder=Vg;Y.TimestampMillisecondVector=Wl;Y.TimestampNanosecond=Ye;Y.TimestampNanosecondBuilder=Xg;Y.TimestampNanosecondVector=Yl;Y.TimestampSecond=Ve;Y.TimestampSecondBuilder=Ug;
Y.TimestampSecondVector=Vl;Y.TimestampVector=Ul;Y.Type=I;Y.Uint16=be;Y.Uint16Builder=Lg;Y.Uint16Vector=Ml;Y.Uint32=ce;Y.Uint32Builder=Mg;Y.Uint32Vector=Nl;Y.Uint64=de;Y.Uint64Builder=Ng;Y.Uint64Vector=Ol;Y.Uint8=ae;Y.Uint8Builder=Kg;Y.Uint8Vector=Ll;Y.Union=nf;Y.UnionBuilder=ai;Y.UnionMode=id;Y.UnionVector=fm;Y.Utf8=pe;Y.Utf8Builder=bh;Y.Utf8Vector=im;Y.Vector=D;Y.Visitor=wd;Y.predicate=Rn;Y.util=Wn;Object.assign(arguments[0],Y);}.bind(this))));
//# sourceMappingURL=Arrow.es5.min.js.map
|