vendor: 4,267 bytes, lines 1-86
1import{au as Wr,aA as $}from"./index-D6EGPuBX.js";var h={},X={};for(var ur=[],p=0;p<64;)ur[p]=0|4294967296*Math.sin(++p%Math.PI);function Hr(r){var a,e,t,n=[a=1732584193,e=4023233417,~a,~e],i=[],o=unescape(encodeURI(r))+"Â",l=o.length;for(r=--l/4+2|15,i[--r]=8*l;~l;)i[l>>2]|=o.charCodeAt(l)<<8*l--;for(p=o=0;p<r;p+=16){for(l=n;o<64;l=[t=l[3],a+((t=l[0]+[a&e|~a&t,t&a|~t&e,a^e^t,e^(a|~t)][l=o>>4]+ur[o]+~~i[p|15&[o,5*o+1,3*o+5,7*o][l]])<<(l=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*l+o++%4])|t>>>-l),a,e])a=0|l[1],e=l[2];for(o=4;o;)n[--o]+=l[o]}for(r="";o<32;)r+=(n[o>>3]>>4*(1^o++)&15).toString(16);return r}const Gr=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),jr=Wr(Gr);var vr={exports:{}};(function(r,a){(function(e,t){r.exports=function(n,i,o,l,f){for(i=i.split?i.split("."):i,l=0;l<i.length;l++)n=n?n[i[l]]:f;return n===f?o:n}})()})(vr);var B=vr.exports;/** 2* @license Apache-2.0 3* 4* Copyright (c) 2018 The Stdlib Authors. 5* 6* Licensed under the Apache License, Version 2.0 (the "License"); 7* you may not use this file except in compliance with the License. 8* You may obtain a copy of the License at 9* 10* http://www.apache.org/licenses/LICENSE-2.0 11* 12* Unless required by applicable law or agreed to in writing, software 13* distributed under the License is distributed on an "AS IS" BASIS, 14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15* See the License for the specific language governing permissions and 16* limitations under the License. 17*/var Rr=Number.POSITIVE_INFINITY,sr=Rr;/** 18* @license Apache-2.0 19* 20* Copyright (c) 2018 The Stdlib Authors. 21* 22* Licensed under the Apache License, Version 2.0 (the "License"); 23* you may not use this file except in compliance with the License. 24* You may obtain a copy of the License at 25* 26* http://www.apache.org/licenses/LICENSE-2.0 27* 28* Unless required by applicable law or agreed to in writing, software 29* distributed under the License is distributed on an "AS IS" BASIS, 30* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 31* See the License for the specific language governing permissions and 32* limitations under the License. 33*/var Cr=Number;/** 34* @license Apache-2.0 35* 36* Copyright (c) 2018 The Stdlib Authors. 37* 38* Licensed under the Apache License, Version 2.0 (the "License"); 39* you may not use this file except in compliance with the License. 40* You may obtain a copy of the License at 41* 42* http://www.apache.org/licenses/LICENSE-2.0 43* 44* Unless required by applicable law or agreed to in writing, software 45* distributed under the License is distributed on an "AS IS" BASIS, 46* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 47* See the License for the specific language governing permissions and 48* limitations under the License. 49*/var Dr=Cr,Xr=Dr;/** 50* @license Apache-2.0 51* 52* Copyright (c) 2018 The Stdlib Authors. 53* 54* Licensed under the Apache License, Version 2.0 (the "License"); 55* you may not use this file except in compliance with the License. 56* You may obtain a copy of the License at 57* 58* http://www.apache.org/licenses/LICENSE-2.0 59* 60* Unless required by applicable law or agreed to in writing, software 61* distributed under the License is distributed on an "AS IS" BASIS, 62* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 63* See the License for the specific language governing permissions and 64* limitations under the License. 65*/var Br=Xr,Vr=Br.NEGATIVE_INFINITY,cr=Vr;/** 66* @license Apache-2.0 67* 68* Copyright (c) 2018 The Stdlib Authors. 69* 70* Licensed under the Apache License, Version 2.0 (the "License"); 71* you may not use this file except in compliance with the License. 72* You may obtain a copy of the License at 73* 74* http://www.apache.org/licenses/LICENSE-2.0 75* 76* Unless required by applicable law or agreed to in writing, software 77* distributed under the License is distributed on an "AS IS" BASIS, 78* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 79* See the License for the specific language governing permissions and 80* limitations under the License. 81*/var xr=1023,$r=xr;/** 82* @license Apache-2.0 83* 84* Copyright (c) 2018 The Stdlib Authors. 85* 86* Licensed under the Apache License, Version 2.0 (the "License");
87* you may not use this file except in compliance with the License. 88* You may obtain a copy of the License at 89* 90* http://www.apache.org/licenses/LICENSE-2.0 91* 92* Unless required by applicable law or agreed to in writing, software 93* distributed under the License is distributed on an "AS IS" BASIS, 94* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 95* See the License for the specific language governing permissions and 96* limitations under the License. 97*/var Jr=1023,qr=Jr;/** 98* @license Apache-2.0 99* 100* Copyright (c) 2018 The Stdlib Authors. 101* 102* Licensed under the Apache License, Version 2.0 (the "License"); 103* you may not use this file except in compliance with the License. 104* You may obtain a copy of the License at 105* 106* http://www.apache.org/licenses/LICENSE-2.0 107* 108* Unless required by applicable law or agreed to in writing, software 109* distributed under the License is distributed on an "AS IS" BASIS, 110* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 111* See the License for the specific language governing permissions and 112* limitations under the License. 113*/var zr=-1023,Kr=zr;/** 114* @license Apache-2.0 115* 116* Copyright (c) 2018 The Stdlib Authors. 117* 118* Licensed under the Apache License, Version 2.0 (the "License"); 119* you may not use this file except in compliance with the License. 120* You may obtain a copy of the License at 121* 122* http://www.apache.org/licenses/LICENSE-2.0 123* 124* Unless required by applicable law or agreed to in writing, software 125* distributed under the License is distributed on an "AS IS" BASIS, 126* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127* See the License for the specific language governing permissions and 128* limitations under the License. 129*/var Qr=-1074,Yr=Qr;/** 130* @license Apache-2.0 131* 132* Copyright (c) 2018 The Stdlib Authors. 133* 134* Licensed under the Apache License, Version 2.0 (the "License"); 135* you may not use this file except in compliance with the License. 136* You may obtain a copy of the License at 137* 138* http://www.apache.org/licenses/LICENSE-2.0 139* 140* Unless required by applicable law or agreed to in writing, software 141* distributed under the License is distributed on an "AS IS" BASIS, 142* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 143* See the License for the specific language governing permissions and 144* limitations under the License. 145*/function Zr(r){return r!==r}var kr=Zr;/** 146* @license Apache-2.0 147* 148* Copyright (c) 2018 The Stdlib Authors. 149* 150* Licensed under the Apache License, Version 2.0 (the "License"); 151* you may not use this file except in compliance with the License. 152* You may obtain a copy of the License at 153* 154* http://www.apache.org/licenses/LICENSE-2.0 155* 156* Unless required by applicable law or agreed to in writing, software 157* distributed under the License is distributed on an "AS IS" BASIS, 158* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 159* See the License for the specific language governing permissions and 160* limitations under the License. 161*/var ra=kr,pr=ra;/** 162* @license Apache-2.0 163* 164* Copyright (c) 2018 The Stdlib Authors. 165* 166* Licensed under the Apache License, Version 2.0 (the "License"); 167* you may not use this file except in compliance with the License. 168* You may obtain a copy of the License at 169* 170* http://www.apache.org/licenses/LICENSE-2.0 171* 172* Unless required by applicable law or agreed to in writing, software 173* distributed under the License is distributed on an "AS IS" BASIS, 174* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 175* See the License for the specific language governing permissions and 176* limitations under the License. 177*/var aa=sr,ea=cr;function ta(r){return r===aa||r===ea}var na=ta;/** 178* @license Apache-2.0 179* 180* Copyright (c) 2018 The Stdlib Authors. 181* 182* Licensed under the Apache License, Version 2.0 (the "License"); 183* you may not use this file except in compliance with the License. 184* You may obtain a copy of the License at 185* 186* http://www.apache.org/licenses/LICENSE-2.0 187* 188* Unless required by applicable law or agreed to in writing, softw
188are 189* distributed under the License is distributed on an "AS IS" BASIS, 190* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 191* See the License for the specific language governing permissions and 192* limitations under the License. 193*/var ia=na,yr=ia;/** 194* @license Apache-2.0 195* 196* Copyright (c) 2022 The Stdlib Authors. 197* 198* Licensed under the Apache License, Version 2.0 (the "License"); 199* you may not use this file except in compliance with the License. 200* You may obtain a copy of the License at 201* 202* http://www.apache.org/licenses/LICENSE-2.0 203* 204* Unless required by applicable law or agreed to in writing, software 205* distributed under the License is distributed on an "AS IS" BASIS, 206* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 207* See the License for the specific language governing permissions and 208* limitations under the License. 209*/var la=2147483648,oa=la;/** 210* @license Apache-2.0 211* 212* Copyright (c) 2022 The Stdlib Authors. 213* 214* Licensed under the Apache License, Version 2.0 (the "License"); 215* you may not use this file except in compliance with the License. 216* You may obtain a copy of the License at 217* 218* http://www.apache.org/licenses/LICENSE-2.0 219* 220* Unless required by applicable law or agreed to in writing, software 221* distributed under the License is distributed on an "AS IS" BASIS, 222* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 223* See the License for the specific language governing permissions and 224* limitations under the License. 225*/var fa=2147483647,ua=fa;/** 226* @license Apache-2.0 227* 228* Copyright (c) 2021 The Stdlib Authors. 229* 230* Licensed under the Apache License, Version 2.0 (the "License"); 231* you may not use this file except in compliance with the License. 232* You may obtain a copy of the License at 233* 234* http://www.apache.org/licenses/LICENSE-2.0 235* 236* Unless required by applicable law or agreed to in writing, software 237* distributed under the License is distributed on an "AS IS" BASIS, 238* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 239* See the License for the specific language governing permissions and 240* limitations under the License. 241*/var va=typeof Object.defineProperty=="function"?Object.defineProperty:null,sa=va;/** 242* @license Apache-2.0 243* 244* Copyright (c) 2021 The Stdlib Authors. 245* 246* Licensed under the Apache License, Version 2.0 (the "License"); 247* you may not use this file except in compliance with the License. 248* You may obtain a copy of the License at 249* 250* http://www.apache.org/licenses/LICENSE-2.0 251* 252* Unless required by applicable law or agreed to in writing, software 253* distributed under the License is distributed on an "AS IS" BASIS, 254* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 255* See the License for the specific language governing permissions and 256* limitations under the License. 257*/var ca=sa;function $a(){try{return ca({},"x",{}),!0}catch{return!1}}var pa=$a;/** 258* @license Apache-2.0 259* 260* Copyright (c) 2018 The Stdlib Authors. 261* 262* Licensed under the Apache License, Version 2.0 (the "License"); 263* you may not use this file except in compliance with the License. 264* You may obtain a copy of the License at 265* 266* http://www.apache.org/licenses/LICENSE-2.0 267* 268* Unless required by applicable law or agreed to in writing, software 269* distributed under the License is distributed on an "AS IS" BASIS, 270* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 271* See the License for the specific language governing permissions and 272* limitations under the License. 273*/var ya=Object.defineProperty,_a=ya;/** 274* @license Apache-2.0 275* 276* Copyright (c) 2018 The Stdlib Authors. 277* 278* Licensed under the Apache License, Version 2.0 (the "License"); 279* you may not use this file except in compliance with the License. 280* You may obtain a copy of the License at 281* 282* http://www.apache.org/licenses/LICENSE-2.0 283* 284* Unless required by applicable law or agreed to in writing, software 285* distributed under the License is distributed on an "AS IS" BASIS, 286* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 287* See the License for the specific language governing permissions and 288* limitations under the License. 289*/var _=Object.prototype,Q=_.toString,Y=_.__defineGetter__,Z=_.__defineSetter__,ba=_.__lookupGetter__,Aa=_.__lookupSetter__;function da(r,a,e){var t,n,i,o;if(typeof r!="object"||r===null||Q.call(r)==="[object Array]")throw new TypeError("invalid argument. First argument must be an object. Value: `"+r+"`.");if(typeof e!="object"||e===null||Q.call(e)==="[object Array]")throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+e+"`.");if(n="value"in e,n&&(ba.call(r,a)||Aa.call(r,a)?(t=r.__proto__,r.__proto__=_,delete r[a],r[a]=e.value,r.__proto__=t):r[a]=e.value),i="get"in e,o="set"in e,n&&(i||o))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return i&&Y&&Y.call(r,a,e.get),o&&Z&&Z.call(r,a,e.set),r}var ha=da;/** 290* @license Apache-2.0 291* 292* Copyright (c) 2018 The Stdlib Authors. 293* 294* Licensed under the Apache License, Version 2.0 (the "License");
295* you may not use this file except in compliance with the License. 296* You may obtain a copy of the License at 297* 298* http://www.apache.org/licenses/LICENSE-2.0 299* 300* Unless required by applicable law or agreed to in writing, software 301* distributed under the License is distributed on an "AS IS" BASIS, 302* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 303* See the License for the specific language governing permissions and 304* limitations under the License. 305*/var ma=pa,ga=_a,Sa=ha,T;ma()?T=ga:T=Sa;var Oa=T;/** 306* @license Apache-2.0 307* 308* Copyright (c) 2018 The Stdlib Authors. 309* 310* Licensed under the Apache License, Version 2.0 (the "License"); 311* you may not use this file except in compliance with the License. 312* You may obtain a copy of the License at 313* 314* http://www.apache.org/licenses/LICENSE-2.0 315* 316* Unless required by applicable law or agreed to in writing, software 317* distributed under the License is distributed on an "AS IS" BASIS, 318* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 319* See the License for the specific language governing permissions and 320* limitations under the License. 321*/var wa=Oa;function Na(r,a,e){wa(r,a,{configurable:!1,enumerable:!1,writable:!1,value:e})}var Ia=Na;/** 322* @license Apache-2.0 323* 324* Copyright (c) 2018 The Stdlib Authors. 325* 326* Licensed under the Apache License, Version 2.0 (the "License"); 327* you may not use this file except in compliance with the License. 328* You may obtain a copy of the License at 329* 330* http://www.apache.org/licenses/LICENSE-2.0 331* 332* Unless required by applicable law or agreed to in writing, software 333* distributed under the License is distributed on an "AS IS" BASIS, 334* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 335* See the License for the specific language governing permissions and 336* limitations under the License. 337*/var Ea=Ia,_r=Ea;/** 338* @license Apache-2.0 339* 340* Copyright (c) 2018 The Stdlib Authors. 341* 342* Licensed under the Apache License, Version 2.0 (the "License"); 343* you may not use this file except in compliance with the License. 344* You may obtain a copy of the License at 345* 346* http://www.apache.org/licenses/LICENSE-2.0 347* 348* Unless required by applicable law or agreed to in writing, software 349* distributed under the License is distributed on an "AS IS" BASIS, 350* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 351* See the License for the specific language governing permissions and 352* limitations under the License. 353*/function Ua(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}var Pa=Ua;/** 354* @license Apache-2.0 355* 356* Copyright (c) 2018 The Stdlib Authors. 357* 358* Licensed under the Apache License, Version 2.0 (the "License"); 359* you may not use this file except in compliance with the License. 360* You may obtain a copy of the License at 361* 362* http://www.apache.org/licenses/LICENSE-2.0 363* 364* Unless required by applicable law or agreed to in writing, software 365* distributed under the License is distributed on an "AS IS" BASIS, 366* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 367* See the License for the specific language governing permissions and 368* limitations under the License. 369*/var Ta=Pa,Fa=Ta;/** 370* @license Apache-2.0 371* 372* Copyright (c) 2018 The Stdlib Authors. 373* 374* Licensed under the Apache License, Version 2.0 (the "License"); 375* you may not use this file except in compliance with the License. 376* You may obtain a copy of the License at 377* 378* http://www.apache.org/licenses/LICENSE-2.0 379* 380* Unless required by applicable law or agreed to in writing, software 381* distributed under the License is distributed on an "AS IS" BASIS, 382* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 383* See the License for the specific language governing permissions and 384* limitations under the License. 385*/var La=Fa,Ma=La();function Wa(){return Ma&&typeof Symbol.toStringTag=="symbol"}var Ha=Wa;/** 386* @license Apache-2.0 387* 388* Copyright (c) 2018 The Stdlib Authors. 389* 390* Licensed under the Apache License, Version 2.0 (the "License"); 391* you may not use this file except in compliance with the License. 392* You may obtain a copy of the License at 393* 394* http://www.apache.org/licenses/LICENSE-2.0 395* 396* Unless required by applicable law or agreed to in writing, softw
396are 397* distributed under the License is distributed on an "AS IS" BASIS, 398* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 399* See the License for the specific language governing permissions and 400* limitations under the License. 401*/var Ga=Ha,ja=Ga;/** 402* @license Apache-2.0 403* 404* Copyright (c) 2018 The Stdlib Authors. 405* 406* Licensed under the Apache License, Version 2.0 (the "License"); 407* you may not use this file except in compliance with the License. 408* You may obtain a copy of the License at 409* 410* http://www.apache.org/licenses/LICENSE-2.0 411* 412* Unless required by applicable law or agreed to in writing, software 413* distributed under the License is distributed on an "AS IS" BASIS, 414* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 415* See the License for the specific language governing permissions and 416* limitations under the License. 417*/var Ra=Object.prototype.toString,br=Ra;/** 418* @license Apache-2.0 419* 420* Copyright (c) 2018 The Stdlib Authors. 421* 422* Licensed under the Apache License, Version 2.0 (the "License"); 423* you may not use this file except in compliance with the License. 424* You may obtain a copy of the License at 425* 426* http://www.apache.org/licenses/LICENSE-2.0 427* 428* Unless required by applicable law or agreed to in writing, software 429* distributed under the License is distributed on an "AS IS" BASIS, 430* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 431* See the License for the specific language governing permissions and 432* limitations under the License. 433*/var Ca=br;function Da(r){return Ca.call(r)}var Xa=Da;/** 434* @license Apache-2.0 435* 436* Copyright (c) 2018 The Stdlib Authors. 437* 438* Licensed under the Apache License, Version 2.0 (the "License"); 439* you may not use this file except in compliance with the License. 440* You may obtain a copy of the License at 441* 442* http://www.apache.org/licenses/LICENSE-2.0 443* 444* Unless required by applicable law or agreed to in writing, software 445* distributed under the License is distributed on an "AS IS" BASIS, 446* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 447* See the License for the specific language governing permissions and 448* limitations under the License. 449*/var Ba=Object.prototype.hasOwnProperty;function Va(r,a){return r==null?!1:Ba.call(r,a)}var xa=Va;/** 450* @license Apache-2.0 451* 452* Copyright (c) 2018 The Stdlib Authors. 453* 454* Licensed under the Apache License, Version 2.0 (the "License"); 455* you may not use this file except in compliance with the License. 456* You may obtain a copy of the License at 457* 458* http://www.apache.org/licenses/LICENSE-2.0 459* 460* Unless required by applicable law or agreed to in writing, software 461* distributed under the License is distributed on an "AS IS" BASIS, 462* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 463* See the License for the specific language governing permissions and 464* limitations under the License. 465*/var Ja=xa,qa=Ja;/** 466* @license Apache-2.0 467* 468* Copyright (c) 2018 The Stdlib Authors. 469* 470* Licensed under the Apache License, Version 2.0 (the "License"); 471* you may not use this file except in compliance with the License. 472* You may obtain a copy of the License at 473* 474* http://www.apache.org/licenses/LICENSE-2.0 475* 476* Unless required by applicable law or agreed to in writing, software 477* distributed under the License is distributed on an "AS IS" BASIS, 478* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 479* See the License for the specific language governing permissions and 480* limitations under the License. 481*/var za=typeof Symbol=="function"?Symbol.toStringTag:"",Ka=za;/** 482* @license Apache-2.0 483* 484* Copyright (c) 2018 The Stdlib Authors. 485* 486* Licensed under the Apache License, Version 2.0 (the "License"); 487* you may not use this file except in compliance with the License. 488* You may obtain a copy of the License at 489* 490* http://www.apache.org/licenses/LICENSE-2.0 491* 492* Unless required by applicable law or agreed to in writing, software 493* distributed under the License is distributed on an "AS IS" BASIS, 494* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 495* See the License for the specific language governing permissions and 496* limitations under the License. 497*/var Qa=qa,b=Ka,O=br;function Ya(r){var a,e,t;if(r==null)return O.call(r);e=r[b],a=Qa(r,b);try{r[b]=void 0}catch{return O.call(r)}return t=O.call(r),a?r[b]=e:delete r[b],t}var Za=Ya;/** 498* @license Apache-2.0 499* 500* Copyright (c) 2018 The Stdlib Authors. 501* 502* Licensed under the Apache License, Version 2.0 (the "License");
503* you may not use this file except in compliance with the License. 504* You may obtain a copy of the License at 505* 506* http://www.apache.org/licenses/LICENSE-2.0 507* 508* Unless required by applicable law or agreed to in writing, software 509* distributed under the License is distributed on an "AS IS" BASIS, 510* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 511* See the License for the specific language governing permissions and 512* limitations under the License. 513*/var ka=ja,re=Xa,ae=Za,F;ka()?F=ae:F=re;var g=F;/** 514* @license Apache-2.0 515* 516* Copyright (c) 2018 The Stdlib Authors. 517* 518* Licensed under the Apache License, Version 2.0 (the "License"); 519* you may not use this file except in compliance with the License. 520* You may obtain a copy of the License at 521* 522* http://www.apache.org/licenses/LICENSE-2.0 523* 524* Unless required by applicable law or agreed to in writing, software 525* distributed under the License is distributed on an "AS IS" BASIS, 526* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 527* See the License for the specific language governing permissions and 528* limitations under the License. 529*/var ee=g,te=typeof Uint32Array=="function";function ne(r){return te&&r instanceof Uint32Array||ee(r)==="[object Uint32Array]"}var ie=ne;/** 530* @license Apache-2.0 531* 532* Copyright (c) 2018 The Stdlib Authors. 533* 534* Licensed under the Apache License, Version 2.0 (the "License"); 535* you may not use this file except in compliance with the License. 536* You may obtain a copy of the License at 537* 538* http://www.apache.org/licenses/LICENSE-2.0 539* 540* Unless required by applicable law or agreed to in writing, software 541* distributed under the License is distributed on an "AS IS" BASIS, 542* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 543* See the License for the specific language governing permissions and 544* limitations under the License. 545*/var le=ie,oe=le;/** 546* @license Apache-2.0 547* 548* Copyright (c) 2018 The Stdlib Authors. 549* 550* Licensed under the Apache License, Version 2.0 (the "License"); 551* you may not use this file except in compliance with the License. 552* You may obtain a copy of the License at 553* 554* http://www.apache.org/licenses/LICENSE-2.0 555* 556* Unless required by applicable law or agreed to in writing, software 557* distributed under the License is distributed on an "AS IS" BASIS, 558* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 559* See the License for the specific language governing permissions and 560* limitations under the License. 561*/var fe=4294967295,ue=fe;/** 562* @license Apache-2.0 563* 564* Copyright (c) 2018 The Stdlib Authors. 565* 566* Licensed under the Apache License, Version 2.0 (the "License"); 567* you may not use this file except in compliance with the License. 568* You may obtain a copy of the License at 569* 570* http://www.apache.org/licenses/LICENSE-2.0 571* 572* Unless required by applicable law or agreed to in writing, software 573* distributed under the License is distributed on an "AS IS" BASIS, 574* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 575* See the License for the specific language governing permissions and 576* limitations under the License. 577*/var ve=typeof Uint32Array=="function"?Uint32Array:null,se=ve;/** 578* @license Apache-2.0 579* 580* Copyright (c) 2018 The Stdlib Authors. 581* 582* Licensed under the Apache License, Version 2.0 (the "License"); 583* you may not use this file except in compliance with the License. 584* You may obtain a copy of the License at 585* 586* http://www.apache.org/licenses/LICENSE-2.0 587* 588* Unless required by applicable law or agreed to in writing, software 589* distributed under the License is distributed on an "AS IS" BASIS, 590* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 591* See the License for the specific language governing permissions and 592* limitations under the License. 593*/var ce=oe,w=ue,k=se;function $e(){var r,a;if(typeof k!="function")return!1;try{a=[1,3.14,-3.14,w+1,w+2],a=new k(a),r=ce(a)&&a[0]===1&&a[1]===3&&a[2]===w-2&&a[3]===0&&a[4]===1}catch{r=!1}return r}var pe=$e;/** 594* @license Apache-2.0 595* 596* Copyright (c) 2018 The Stdlib Authors. 597* 598* Licensed under the Apache License, Version 2.0 (the "License");
599* you may not use this file except in compliance with the License. 600* You may obtain a copy of the License at 601* 602* http://www.apache.org/licenses/LICENSE-2.0 603* 604* Unless required by applicable law or agreed to in writing, software 605* distributed under the License is distributed on an "AS IS" BASIS, 606* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 607* See the License for the specific language governing permissions and 608* limitations under the License. 609*/var ye=pe,_e=ye;/** 610* @license Apache-2.0 611* 612* Copyright (c) 2018 The Stdlib Authors. 613* 614* Licensed under the Apache License, Version 2.0 (the "License"); 615* you may not use this file except in compliance with the License. 616* You may obtain a copy of the License at 617* 618* http://www.apache.org/licenses/LICENSE-2.0 619* 620* Unless required by applicable law or agreed to in writing, software 621* distributed under the License is distributed on an "AS IS" BASIS, 622* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 623* See the License for the specific language governing permissions and 624* limitations under the License. 625*/var be=typeof Uint32Array=="function"?Uint32Array:void 0,Ae=be;/** 626* @license Apache-2.0 627* 628* Copyright (c) 2018 The Stdlib Authors. 629* 630* Licensed under the Apache License, Version 2.0 (the "License"); 631* you may not use this file except in compliance with the License. 632* You may obtain a copy of the License at 633* 634* http://www.apache.org/licenses/LICENSE-2.0 635* 636* Unless required by applicable law or agreed to in writing, software 637* distributed under the License is distributed on an "AS IS" BASIS, 638* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 639* See the License for the specific language governing permissions and 640* limitations under the License. 641*/function de(){throw new Error("not implemented")}var he=de;/** 642* @license Apache-2.0 643* 644* Copyright (c) 2018 The Stdlib Authors. 645* 646* Licensed under the Apache License, Version 2.0 (the "License"); 647* you may not use this file except in compliance with the License. 648* You may obtain a copy of the License at 649* 650* http://www.apache.org/licenses/LICENSE-2.0 651* 652* Unless required by applicable law or agreed to in writing, software 653* distributed under the License is distributed on an "AS IS" BASIS, 654* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 655* See the License for the specific language governing permissions and 656* limitations under the License. 657*/var me=_e,ge=Ae,Se=he,L;me()?L=ge:L=Se;var V=L;/** 658* @license Apache-2.0 659* 660* Copyright (c) 2018 The Stdlib Authors. 661* 662* Licensed under the Apache License, Version 2.0 (the "License"); 663* you may not use this file except in compliance with the License. 664* You may obtain a copy of the License at 665* 666* http://www.apache.org/licenses/LICENSE-2.0 667* 668* Unless required by applicable law or agreed to in writing, software 669* distributed under the License is distributed on an "AS IS" BASIS, 670* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 671* See the License for the specific language governing permissions and 672* limitations under the License. 673*/var Oe=g,we=typeof Float64Array=="function";function Ne(r){return we&&r instanceof Float64Array||Oe(r)==="[object Float64Array]"}var Ie=Ne;/** 674* @license Apache-2.0 675* 676* Copyright (c) 2018 The Stdlib Authors. 677* 678* Licensed under the Apache License, Version 2.0 (the "License"); 679* you may not use this file except in compliance with the License. 680* You may obtain a copy of the License at 681* 682* http://www.apache.org/licenses/LICENSE-2.0 683* 684* Unless required by applicable law or agreed to in writing, software 685* distributed under the License is distributed on an "AS IS" BASIS, 686* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 687* See the License for the specific language governing permissions and 688* limitations under the License. 689*/var Ee=Ie,Ue=Ee;/** 690* @license Apache-2.0 691* 692* Copyright (c) 2018 The Stdlib Authors. 693* 694* Licensed under the Apache License, Version 2.0 (the "License"); 695* you may not use this file except in compliance with the License. 696* You may obtain a copy of the License at 697* 698* http://www.apache.org/licenses/LICENSE-2.0 699* 700* Unless required by applicable law or agreed to in writing, softw
700are 701* distributed under the License is distributed on an "AS IS" BASIS, 702* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 703* See the License for the specific language governing permissions and 704* limitations under the License. 705*/var Pe=typeof Float64Array=="function"?Float64Array:null,Te=Pe;/** 706* @license Apache-2.0 707* 708* Copyright (c) 2018 The Stdlib Authors. 709* 710* Licensed under the Apache License, Version 2.0 (the "License"); 711* you may not use this file except in compliance with the License. 712* You may obtain a copy of the License at 713* 714* http://www.apache.org/licenses/LICENSE-2.0 715* 716* Unless required by applicable law or agreed to in writing, software 717* distributed under the License is distributed on an "AS IS" BASIS, 718* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 719* See the License for the specific language governing permissions and 720* limitations under the License. 721*/var Fe=Ue,rr=Te;function Le(){var r,a;if(typeof rr!="function")return!1;try{a=new rr([1,3.14,-3.14,NaN]),r=Fe(a)&&a[0]===1&&a[1]===3.14&&a[2]===-3.14&&a[3]!==a[3]}catch{r=!1}return r}var Me=Le;/** 722* @license Apache-2.0 723* 724* Copyright (c) 2018 The Stdlib Authors. 725* 726* Licensed under the Apache License, Version 2.0 (the "License"); 727* you may not use this file except in compliance with the License. 728* You may obtain a copy of the License at 729* 730* http://www.apache.org/licenses/LICENSE-2.0 731* 732* Unless required by applicable law or agreed to in writing, software 733* distributed under the License is distributed on an "AS IS" BASIS, 734* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 735* See the License for the specific language governing permissions and 736* limitations under the License. 737*/var We=Me,He=We;/** 738* @license Apache-2.0 739* 740* Copyright (c) 2018 The Stdlib Authors. 741* 742* Licensed under the Apache License, Version 2.0 (the "License"); 743* you may not use this file except in compliance with the License. 744* You may obtain a copy of the License at 745* 746* http://www.apache.org/licenses/LICENSE-2.0 747* 748* Unless required by applicable law or agreed to in writing, software 749* distributed under the License is distributed on an "AS IS" BASIS, 750* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 751* See the License for the specific language governing permissions and 752* limitations under the License. 753*/var Ge=typeof Float64Array=="function"?Float64Array:void 0,je=Ge;/** 754* @license Apache-2.0 755* 756* Copyright (c) 2018 The Stdlib Authors. 757* 758* Licensed under the Apache License, Version 2.0 (the "License"); 759* you may not use this file except in compliance with the License. 760* You may obtain a copy of the License at 761* 762* http://www.apache.org/licenses/LICENSE-2.0 763* 764* Unless required by applicable law or agreed to in writing, software 765* distributed under the License is distributed on an "AS IS" BASIS, 766* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 767* See the License for the specific language governing permissions and 768* limitations under the License. 769*/function Re(){throw new Error("not implemented")}var Ce=Re;/** 770* @license Apache-2.0 771* 772* Copyright (c) 2018 The Stdlib Authors. 773* 774* Licensed under the Apache License, Version 2.0 (the "License"); 775* you may not use this file except in compliance with the License. 776* You may obtain a copy of the License at 777* 778* http://www.apache.org/licenses/LICENSE-2.0 779* 780* Unless required by applicable law or agreed to in writing, software 781* distributed under the License is distributed on an "AS IS" BASIS, 782* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 783* See the License for the specific language governing permissions and 784* limitations under the License. 785*/var De=He,Xe=je,Be=Ce,M;De()?M=Xe:M=Be;var x=M;/** 786* @license Apache-2.0 787* 788* Copyright (c) 2018 The Stdlib Authors. 789* 790* Licensed under the Apache License, Version 2.0 (the "License"); 791* you may not use this file except in compliance with the License. 792* You may obtain a copy of the License at 793* 794* http://www.apache.org/licenses/LICENSE-2.0 795* 796* Unless required by applicable law or agreed to in writing, softw
796are 797* distributed under the License is distributed on an "AS IS" BASIS, 798* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 799* See the License for the specific language governing permissions and 800* limitations under the License. 801*/var Ve=g,xe=typeof Uint8Array=="function";function Je(r){return xe&&r instanceof Uint8Array||Ve(r)==="[object Uint8Array]"}var qe=Je;/** 802* @license Apache-2.0 803* 804* Copyright (c) 2018 The Stdlib Authors. 805* 806* Licensed under the Apache License, Version 2.0 (the "License"); 807* you may not use this file except in compliance with the License. 808* You may obtain a copy of the License at 809* 810* http://www.apache.org/licenses/LICENSE-2.0 811* 812* Unless required by applicable law or agreed to in writing, software 813* distributed under the License is distributed on an "AS IS" BASIS, 814* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 815* See the License for the specific language governing permissions and 816* limitations under the License. 817*/var ze=qe,Ke=ze;/** 818* @license Apache-2.0 819* 820* Copyright (c) 2018 The Stdlib Authors. 821* 822* Licensed under the Apache License, Version 2.0 (the "License"); 823* you may not use this file except in compliance with the License. 824* You may obtain a copy of the License at 825* 826* http://www.apache.org/licenses/LICENSE-2.0 827* 828* Unless required by applicable law or agreed to in writing, software 829* distributed under the License is distributed on an "AS IS" BASIS, 830* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 831* See the License for the specific language governing permissions and 832* limitations under the License. 833*/var Qe=255,Ye=Qe;/** 834* @license Apache-2.0 835* 836* Copyright (c) 2018 The Stdlib Authors. 837* 838* Licensed under the Apache License, Version 2.0 (the "License"); 839* you may not use this file except in compliance with the License. 840* You may obtain a copy of the License at 841* 842* http://www.apache.org/licenses/LICENSE-2.0 843* 844* Unless required by applicable law or agreed to in writing, software 845* distributed under the License is distributed on an "AS IS" BASIS, 846* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 847* See the License for the specific language governing permissions and 848* limitations under the License. 849*/var Ze=typeof Uint8Array=="function"?Uint8Array:null,ke=Ze;/** 850* @license Apache-2.0 851* 852* Copyright (c) 2018 The Stdlib Authors. 853* 854* Licensed under the Apache License, Version 2.0 (the "License"); 855* you may not use this file except in compliance with the License. 856* You may obtain a copy of the License at 857* 858* http://www.apache.org/licenses/LICENSE-2.0 859* 860* Unless required by applicable law or agreed to in writing, software 861* distributed under the License is distributed on an "AS IS" BASIS, 862* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 863* See the License for the specific language governing permissions and 864* limitations under the License. 865*/var rt=Ke,N=Ye,ar=ke;function at(){var r,a;if(typeof ar!="function")return!1;try{a=[1,3.14,-3.14,N+1,N+2],a=new ar(a),r=rt(a)&&a[0]===1&&a[1]===3&&a[2]===N-2&&a[3]===0&&a[4]===1}catch{r=!1}return r}var et=at;/** 866* @license Apache-2.0 867* 868* Copyright (c) 2018 The Stdlib Authors. 869* 870* Licensed under the Apache License, Version 2.0 (the "License"); 871* you may not use this file except in compliance with the License. 872* You may obtain a copy of the License at 873* 874* http://www.apache.org/licenses/LICENSE-2.0 875* 876* Unless required by applicable law or agreed to in writing, software 877* distributed under the License is distributed on an "AS IS" BASIS, 878* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 879* See the License for the specific language governing permissions and 880* limitations under the License. 881*/var tt=et,nt=tt;/** 882* @license Apache-2.0 883* 884* Copyright (c) 2018 The Stdlib Authors. 885* 886* Licensed under the Apache License, Version 2.0 (the "License"); 887* you may not use this file except in compliance with the License. 888* You may obtain a copy of the License at 889* 890* http://www.apache.org/licenses/LICENSE-2.0 891* 892* Unless required by applicable law or agreed to in writing, softw
892are 893* distributed under the License is distributed on an "AS IS" BASIS, 894* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 895* See the License for the specific language governing permissions and 896* limitations under the License. 897*/var it=typeof Uint8Array=="function"?Uint8Array:void 0,lt=it;/** 898* @license Apache-2.0 899* 900* Copyright (c) 2018 The Stdlib Authors. 901* 902* Licensed under the Apache License, Version 2.0 (the "License"); 903* you may not use this file except in compliance with the License. 904* You may obtain a copy of the License at 905* 906* http://www.apache.org/licenses/LICENSE-2.0 907* 908* Unless required by applicable law or agreed to in writing, software 909* distributed under the License is distributed on an "AS IS" BASIS, 910* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 911* See the License for the specific language governing permissions and 912* limitations under the License. 913*/function ot(){throw new Error("not implemented")}var ft=ot;/** 914* @license Apache-2.0 915* 916* Copyright (c) 2018 The Stdlib Authors. 917* 918* Licensed under the Apache License, Version 2.0 (the "License"); 919* you may not use this file except in compliance with the License. 920* You may obtain a copy of the License at 921* 922* http://www.apache.org/licenses/LICENSE-2.0 923* 924* Unless required by applicable law or agreed to in writing, software 925* distributed under the License is distributed on an "AS IS" BASIS, 926* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 927* See the License for the specific language governing permissions and 928* limitations under the License. 929*/var ut=nt,vt=lt,st=ft,W;ut()?W=vt:W=st;var ct=W;/** 930* @license Apache-2.0 931* 932* Copyright (c) 2018 The Stdlib Authors. 933* 934* Licensed under the Apache License, Version 2.0 (the "License"); 935* you may not use this file except in compliance with the License. 936* You may obtain a copy of the License at 937* 938* http://www.apache.org/licenses/LICENSE-2.0 939* 940* Unless required by applicable law or agreed to in writing, software 941* distributed under the License is distributed on an "AS IS" BASIS, 942* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 943* See the License for the specific language governing permissions and 944* limitations under the License. 945*/var $t=g,pt=typeof Uint16Array=="function";function yt(r){return pt&&r instanceof Uint16Array||$t(r)==="[object Uint16Array]"}var _t=yt;/** 946* @license Apache-2.0 947* 948* Copyright (c) 2018 The Stdlib Authors. 949* 950* Licensed under the Apache License, Version 2.0 (the "License"); 951* you may not use this file except in compliance with the License. 952* You may obtain a copy of the License at 953* 954* http://www.apache.org/licenses/LICENSE-2.0 955* 956* Unless required by applicable law or agreed to in writing, software 957* distributed under the License is distributed on an "AS IS" BASIS, 958* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 959* See the License for the specific language governing permissions and 960* limitations under the License. 961*/var bt=_t,At=bt;/** 962* @license Apache-2.0 963* 964* Copyright (c) 2018 The Stdlib Authors. 965* 966* Licensed under the Apache License, Version 2.0 (the "License"); 967* you may not use this file except in compliance with the License. 968* You may obtain a copy of the License at 969* 970* http://www.apache.org/licenses/LICENSE-2.0 971* 972* Unless required by applicable law or agreed to in writing, software 973* distributed under the License is distributed on an "AS IS" BASIS, 974* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 975* See the License for the specific language governing permissions and 976* limitations under the License. 977*/var dt=65535,ht=dt;/** 978* @license Apache-2.0 979* 980* Copyright (c) 2018 The Stdlib Authors. 981* 982* Licensed under the Apache License, Version 2.0 (the "License"); 983* you may not use this file except in compliance with the License. 984* You may obtain a copy of the License at 985* 986* http://www.apache.org/licenses/LICENSE-2.0 987* 988* Unless required by applicable law or agreed to in writing, software 989* distributed under the License is distributed on an "AS IS" BASIS, 990* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 991* See the License for the specific language governing permissions and 992* limitations under the License. 993*/var mt=typeof Uint16Array=="function"?Uint16Array:null,gt=mt;/** 994* @license Apache-2.0 995* 996* Copyright (c) 2018 The Stdlib Authors. 997* 998* Licensed under the Apache License, Version 2.0 (the "License");
999* you may not use this file except in compliance with the License. 1000* You may obtain a copy of the License at 1001* 1002* http://www.apache.org/licenses/LICENSE-2.0 1003* 1004* Unless required by applicable law or agreed to in writing, software 1005* distributed under the License is distributed on an "AS IS" BASIS, 1006* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1007* See the License for the specific language governing permissions and 1008* limitations under the License. 1009*/var St=At,I=ht,er=gt;function Ot(){var r,a;if(typeof er!="function")return!1;try{a=[1,3.14,-3.14,I+1,I+2],a=new er(a),r=St(a)&&a[0]===1&&a[1]===3&&a[2]===I-2&&a[3]===0&&a[4]===1}catch{r=!1}return r}var wt=Ot;/** 1010* @license Apache-2.0 1011* 1012* Copyright (c) 2018 The Stdlib Authors. 1013* 1014* Licensed under the Apache License, Version 2.0 (the "License"); 1015* you may not use this file except in compliance with the License. 1016* You may obtain a copy of the License at 1017* 1018* http://www.apache.org/licenses/LICENSE-2.0 1019* 1020* Unless required by applicable law or agreed to in writing, software 1021* distributed under the License is distributed on an "AS IS" BASIS, 1022* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1023* See the License for the specific language governing permissions and 1024* limitations under the License. 1025*/var Nt=wt,It=Nt;/** 1026* @license Apache-2.0 1027* 1028* Copyright (c) 2018 The Stdlib Authors. 1029* 1030* Licensed under the Apache License, Version 2.0 (the "License"); 1031* you may not use this file except in compliance with the License. 1032* You may obtain a copy of the License at 1033* 1034* http://www.apache.org/licenses/LICENSE-2.0 1035* 1036* Unless required by applicable law or agreed to in writing, software 1037* distributed under the License is distributed on an "AS IS" BASIS, 1038* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1039* See the License for the specific language governing permissions and 1040* limitations under the License. 1041*/var Et=typeof Uint16Array=="function"?Uint16Array:void 0,Ut=Et;/** 1042* @license Apache-2.0 1043* 1044* Copyright (c) 2018 The Stdlib Authors. 1045* 1046* Licensed under the Apache License, Version 2.0 (the "License"); 1047* you may not use this file except in compliance with the License. 1048* You may obtain a copy of the License at 1049* 1050* http://www.apache.org/licenses/LICENSE-2.0 1051* 1052* Unless required by applicable law or agreed to in writing, software 1053* distributed under the License is distributed on an "AS IS" BASIS, 1054* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1055* See the License for the specific language governing permissions and 1056* limitations under the License. 1057*/function Pt(){throw new Error("not implemented")}var Tt=Pt;/** 1058* @license Apache-2.0 1059* 1060* Copyright (c) 2018 The Stdlib Authors. 1061* 1062* Licensed under the Apache License, Version 2.0 (the "License"); 1063* you may not use this file except in compliance with the License. 1064* You may obtain a copy of the License at 1065* 1066* http://www.apache.org/licenses/LICENSE-2.0 1067* 1068* Unless required by applicable law or agreed to in writing, software 1069* distributed under the License is distributed on an "AS IS" BASIS, 1070* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1071* See the License for the specific language governing permissions and 1072* limitations under the License. 1073*/var Ft=It,Lt=Ut,Mt=Tt,H;Ft()?H=Lt:H=Mt;var Wt=H;/** 1074* @license Apache-2.0 1075* 1076* Copyright (c) 2018 The Stdlib Authors. 1077* 1078* Licensed under the Apache License, Version 2.0 (the "License"); 1079* you may not use this file except in compliance with the License. 1080* You may obtain a copy of the License at 1081* 1082* http://www.apache.org/licenses/LICENSE-2.0 1083* 1084* Unless required by applicable law or agreed to in writing, software 1085* distributed under the License is distributed on an "AS IS" BASIS, 1086* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1087* See the License for the specific language governing permissions and 1088* limitations under the License. 1089*/var Ht=ct,Gt=Wt,jt={uint16:Gt,uint8:Ht},Rt=jt;/** 1090* @license Apache-2.0 1091* 1092* Copyright (c) 2018 The Stdlib Authors. 1093* 1094* Licensed under the Apache License, Version 2.0 (the "License");
1095* you may not use this file except in compliance with the License. 1096* You may obtain a copy of the License at 1097* 1098* http://www.apache.org/licenses/LICENSE-2.0 1099* 1100* Unless required by applicable law or agreed to in writing, software 1101* distributed under the License is distributed on an "AS IS" BASIS, 1102* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1103* See the License for the specific language governing permissions and 1104* limitations under the License. 1105*/var tr=Rt,Ar;function Ct(){var r,a;return r=new tr.uint16(1),r[0]=4660,a=new tr.uint8(r.buffer),a[0]===52}Ar=Ct();var Dt=Ar;/** 1106* @license Apache-2.0 1107* 1108* Copyright (c) 2018 The Stdlib Authors. 1109* 1110* Licensed under the Apache License, Version 2.0 (the "License"); 1111* you may not use this file except in compliance with the License. 1112* You may obtain a copy of the License at 1113* 1114* http://www.apache.org/licenses/LICENSE-2.0 1115* 1116* Unless required by applicable law or agreed to in writing, software 1117* distributed under the License is distributed on an "AS IS" BASIS, 1118* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1119* See the License for the specific language governing permissions and 1120* limitations under the License. 1121*/var Xt=Dt,J=Xt;/** 1122* @license Apache-2.0 1123* 1124* Copyright (c) 2018 The Stdlib Authors. 1125* 1126* Licensed under the Apache License, Version 2.0 (the "License"); 1127* you may not use this file except in compliance with the License. 1128* You may obtain a copy of the License at 1129* 1130* http://www.apache.org/licenses/LICENSE-2.0 1131* 1132* Unless required by applicable law or agreed to in writing, software 1133* distributed under the License is distributed on an "AS IS" BASIS, 1134* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1135* See the License for the specific language governing permissions and 1136* limitations under the License. 1137*/var Bt=J,dr,G,j;Bt===!0?(G=1,j=0):(G=0,j=1);dr={HIGH:G,LOW:j};var Vt=dr;/** 1138* @license Apache-2.0 1139* 1140* Copyright (c) 2018 The Stdlib Authors. 1141* 1142* Licensed under the Apache License, Version 2.0 (the "License"); 1143* you may not use this file except in compliance with the License. 1144* You may obtain a copy of the License at 1145* 1146* http://www.apache.org/licenses/LICENSE-2.0 1147* 1148* Unless required by applicable law or agreed to in writing, software 1149* distributed under the License is distributed on an "AS IS" BASIS, 1150* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1151* See the License for the specific language governing permissions and 1152* limitations under the License. 1153*/var xt=V,Jt=x,hr=Vt,mr=new Jt(1),nr=new xt(mr.buffer),qt=hr.HIGH,zt=hr.LOW;function Kt(r,a,e,t){return mr[0]=r,a[t]=nr[qt],a[t+e]=nr[zt],a}var gr=Kt;/** 1154* @license Apache-2.0 1155* 1156* Copyright (c) 2018 The Stdlib Authors. 1157* 1158* Licensed under the Apache License, Version 2.0 (the "License"); 1159* you may not use this file except in compliance with the License. 1160* You may obtain a copy of the License at 1161* 1162* http://www.apache.org/licenses/LICENSE-2.0 1163* 1164* Unless required by applicable law or agreed to in writing, software 1165* distributed under the License is distributed on an "AS IS" BASIS, 1166* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1167* See the License for the specific language governing permissions and 1168* limitations under the License. 1169*/var Qt=gr;function Yt(r){return Qt(r,[0,0],1,0)}var Zt=Yt;/** 1170* @license Apache-2.0 1171* 1172* Copyright (c) 2018 The Stdlib Authors. 1173* 1174* Licensed under the Apache License, Version 2.0 (the "License"); 1175* you may not use this file except in compliance with the License. 1176* You may obtain a copy of the License at 1177* 1178* http://www.apache.org/licenses/LICENSE-2.0 1179* 1180* Unless required by applicable law or agreed to in writing, software 1181* distributed under the License is distributed on an "AS IS" BASIS, 1182* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1183* See the License for the specific language governing permissions and 1184* limitations under the License. 1185*/var kt=_r,Sr=Zt,rn=gr;kt(Sr,"assign",rn);var Or=Sr;/** 1186* @license Apache-2.0 1187* 1188* Copyright (c) 2018 The Stdlib Authors. 1189* 1190* Licensed under the Apache License, Version 2.0 (the "License");
1191* you may not use this file except in compliance with the License. 1192* You may obtain a copy of the License at 1193* 1194* http://www.apache.org/licenses/LICENSE-2.0 1195* 1196* Unless required by applicable law or agreed to in writing, software 1197* distributed under the License is distributed on an "AS IS" BASIS, 1198* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1199* See the License for the specific language governing permissions and 1200* limitations under the License. 1201*/var an=J,R;an===!0?R=1:R=0;var en=R;/** 1202* @license Apache-2.0 1203* 1204* Copyright (c) 2018 The Stdlib Authors. 1205* 1206* Licensed under the Apache License, Version 2.0 (the "License"); 1207* you may not use this file except in compliance with the License. 1208* You may obtain a copy of the License at 1209* 1210* http://www.apache.org/licenses/LICENSE-2.0 1211* 1212* Unless required by applicable law or agreed to in writing, software 1213* distributed under the License is distributed on an "AS IS" BASIS, 1214* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1215* See the License for the specific language governing permissions and 1216* limitations under the License. 1217*/var tn=V,nn=x,ln=en,wr=new nn(1),on=new tn(wr.buffer);function fn(r){return wr[0]=r,on[ln]}var un=fn;/** 1218* @license Apache-2.0 1219* 1220* Copyright (c) 2018 The Stdlib Authors. 1221* 1222* Licensed under the Apache License, Version 2.0 (the "License"); 1223* you may not use this file except in compliance with the License. 1224* You may obtain a copy of the License at 1225* 1226* http://www.apache.org/licenses/LICENSE-2.0 1227* 1228* Unless required by applicable law or agreed to in writing, software 1229* distributed under the License is distributed on an "AS IS" BASIS, 1230* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1231* See the License for the specific language governing permissions and 1232* limitations under the License. 1233*/var vn=un,Nr=vn;/** 1234* @license Apache-2.0 1235* 1236* Copyright (c) 2018 The Stdlib Authors. 1237* 1238* Licensed under the Apache License, Version 2.0 (the "License"); 1239* you may not use this file except in compliance with the License. 1240* You may obtain a copy of the License at 1241* 1242* http://www.apache.org/licenses/LICENSE-2.0 1243* 1244* Unless required by applicable law or agreed to in writing, software 1245* distributed under the License is distributed on an "AS IS" BASIS, 1246* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1247* See the License for the specific language governing permissions and 1248* limitations under the License. 1249*/var sn=J,Ir,C,D;sn===!0?(C=1,D=0):(C=0,D=1);Ir={HIGH:C,LOW:D};var cn=Ir;/** 1250* @license Apache-2.0 1251* 1252* Copyright (c) 2018 The Stdlib Authors. 1253* 1254* Licensed under the Apache License, Version 2.0 (the "License"); 1255* you may not use this file except in compliance with the License. 1256* You may obtain a copy of the License at 1257* 1258* http://www.apache.org/licenses/LICENSE-2.0 1259* 1260* Unless required by applicable law or agreed to in writing, software 1261* distributed under the License is distributed on an "AS IS" BASIS, 1262* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1263* See the License for the specific language governing permissions and 1264* limitations under the License. 1265*/var $n=V,pn=x,Er=cn,Ur=new pn(1),ir=new $n(Ur.buffer),yn=Er.HIGH,_n=Er.LOW;function bn(r,a){return ir[yn]=r,ir[_n]=a,Ur[0]}var An=bn;/** 1266* @license Apache-2.0 1267* 1268* Copyright (c) 2018 The Stdlib Authors. 1269* 1270* Licensed under the Apache License, Version 2.0 (the "License"); 1271* you may not use this file except in compliance with the License. 1272* You may obtain a copy of the License at 1273* 1274* http://www.apache.org/licenses/LICENSE-2.0 1275* 1276* Unless required by applicable law or agreed to in writing, software 1277* distributed under the License is distributed on an "AS IS" BASIS, 1278* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1279* See the License for the specific language governing permissions and 1280* limitations under the License. 1281*/var dn=An,Pr=dn;/** 1282* @license Apache-2.0 1283* 1284* Copyright (c) 2018 The Stdlib Authors. 1285* 1286* Licensed under the Apache License, Version 2.0 (the "License"); 1287* you may not use this file except in compliance with the License. 1288* You may obtain a copy of the License at 1289* 1290* http://www.apache.org/licenses/LICENSE-2.0 1291* 1292* Unless required by applicable law or agreed to in writing, softw
1292are 1293* distributed under the License is distributed on an "AS IS" BASIS, 1294* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1295* See the License for the specific language governing permissions and 1296* limitations under the License. 1297*/var hn=oa,mn=ua,gn=Or,Sn=Nr,On=Pr,E=[0,0];function wn(r,a){var e,t;return gn.assign(r,E,1,0),e=E[0],e&=mn,t=Sn(a),t&=hn,e|=t,On(e,E[1])}var Nn=wn;/** 1298* @license Apache-2.0 1299* 1300* Copyright (c) 2018 The Stdlib Authors. 1301* 1302* Licensed under the Apache License, Version 2.0 (the "License"); 1303* you may not use this file except in compliance with the License. 1304* You may obtain a copy of the License at 1305* 1306* http://www.apache.org/licenses/LICENSE-2.0 1307* 1308* Unless required by applicable law or agreed to in writing, software 1309* distributed under the License is distributed on an "AS IS" BASIS, 1310* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1311* See the License for the specific language governing permissions and 1312* limitations under the License. 1313*/var In=Nn,En=In;
1313/** 1314* @license Apache-2.0 1315* 1316* Copyright (c) 2018 The Stdlib Authors. 1317* 1318* Licensed under the Apache License, Version 2.0 (the "License"); 1319* you may not use this file except in compliance with the License. 1320* You may obtain a copy of the License at 1321* 1322* http://www.apache.org/licenses/LICENSE-2.0 1323* 1324* Unless required by applicable law or agreed to in writing, software 1325* distributed under the License is distributed on an "AS IS" BASIS, 1326* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1327* See the License for the specific language governing permissions and 1328* limitations under the License. 1329*/var Un=22250738585072014e-324,Pn=Un;/** 1330* @license Apache-2.0 1331* 1332* Copyright (c) 2021 The Stdlib Authors. 1333* 1334* Licensed under the Apache License, Version 2.0 (the "License"); 1335* you may not use this file except in compliance with the License. 1336* You may obtain a copy of the License at 1337* 1338* http://www.apache.org/licenses/LICENSE-2.0 1339* 1340* Unless required by applicable law or agreed to in writing, software 1341* distributed under the License is distributed on an "AS IS" BASIS, 1342* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1343* See the License for the specific language governing permissions and 1344* limitations under the License. 1345*/function Tn(r){return Math.abs(r)}var Fn=Tn;/** 1346* @license Apache-2.0 1347* 1348* Copyright (c) 2018 The Stdlib Authors. 1349* 1350* Licensed under the Apache License, Version 2.0 (the "License"); 1351* you may not use this file except in compliance with the License. 1352* You may obtain a copy of the License at 1353* 1354* http://www.apache.org/licenses/LICENSE-2.0 1355* 1356* Unless required by applicable law or agreed to in writing, software 1357* distributed under the License is distributed on an "AS IS" BASIS, 1358* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1359* See the License for the specific language governing permissions and 1360* limitations under the License. 1361*/var Ln=Fn,Mn=Ln;/** 1362* @license Apache-2.0 1363* 1364* Copyright (c) 2018 The Stdlib Authors. 1365* 1366* Licensed under the Apache License, Version 2.0 (the "License"); 1367* you may not use this file except in compliance with the License. 1368* You may obtain a copy of the License at 1369* 1370* http://www.apache.org/licenses/LICENSE-2.0 1371* 1372* Unless required by applicable law or agreed to in writing, software 1373* distributed under the License is distributed on an "AS IS" BASIS, 1374* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1375* See the License for the specific language governing permissions and 1376* limitations under the License. 1377*/var Wn=Pn,Hn=yr,Gn=pr,jn=Mn,Rn=4503599627370496;function Cn(r,a,e,t){return Gn(r)||Hn(r)?(a[t]=r,a[t+e]=0,a):r!==0&&jn(r)<Wn?(a[t]=r*Rn,a[t+e]=-52,a):(a[t]=r,a[t+e]=0,a)}var Tr=Cn;/** 1378* @license Apache-2.0 1379* 1380* Copyright (c) 2018 The Stdlib Authors. 1381* 1382* Licensed under the Apache License, Version 2.0 (the "License"); 1383* you may not use this file except in compliance with the License. 1384* You may obtain a copy of the License at 1385* 1386* http://www.apache.org/licenses/LICENSE-2.0 1387* 1388* Unless required by applicable law or agreed to in writing, software 1389* distributed under the License is distributed on an "AS IS" BASIS, 1390* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1391* See the License for the specific language governing permissions and 1392* limitations under the License. 1393*/var Dn=Tr;function Xn(r){return Dn(r,[0,0],1,0)}var Bn=Xn;/** 1394* @license Apache-2.0 1395* 1396* Copyright (c) 2018 The Stdlib Authors. 1397* 1398* Licensed under the Apache License, Version 2.0 (the "License"); 1399* you may not use this file except in compliance with the License. 1400* You may obtain a copy of the License at 1401* 1402* http://www.apache.org/licenses/LICENSE-2.0 1403* 1404* Unless required by applicable law or agreed to in writing, software 1405* distributed under the License is distributed on an "AS IS" BASIS, 1406* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1407* See the License for the specific language governing permissions and 1408* limitations under the License. 1409*/var Vn=_r,Fr=Bn,xn=Tr;Vn(Fr,"assign",xn);var Jn=Fr;/** 1410* @license Apache-2.0 1411* 1412* Copyright (c) 2018 The Stdlib Authors. 1413* 1414* Licensed under the Apache License, Version 2.0 (the "License");
1415* you may not use this file except in compliance with the License. 1416* You may obtain a copy of the License at 1417* 1418* http://www.apache.org/licenses/LICENSE-2.0 1419* 1420* Unless required by applicable law or agreed to in writing, software 1421* distributed under the License is distributed on an "AS IS" BASIS, 1422* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1423* See the License for the specific language governing permissions and 1424* limitations under the License. 1425*/var qn=2146435072,zn=qn;/** 1426* @license Apache-2.0 1427* 1428* Copyright (c) 2018 The Stdlib Authors. 1429* 1430* Licensed under the Apache License, Version 2.0 (the "License"); 1431* you may not use this file except in compliance with the License. 1432* You may obtain a copy of the License at 1433* 1434* http://www.apache.org/licenses/LICENSE-2.0 1435* 1436* Unless required by applicable law or agreed to in writing, software 1437* distributed under the License is distributed on an "AS IS" BASIS, 1438* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1439* See the License for the specific language governing permissions and 1440* limitations under the License. 1441*/var Kn=Nr,Qn=zn,Yn=$r;function Zn(r){var a=Kn(r);return a=(a&Qn)>>>20,a-Yn|0}var kn=Zn;/** 1442* @license Apache-2.0 1443* 1444* Copyright (c) 2018 The Stdlib Authors. 1445* 1446* Licensed under the Apache License, Version 2.0 (the "License"); 1447* you may not use this file except in compliance with the License. 1448* You may obtain a copy of the License at 1449* 1450* http://www.apache.org/licenses/LICENSE-2.0 1451* 1452* Unless required by applicable law or agreed to in writing, software 1453* distributed under the License is distributed on an "AS IS" BASIS, 1454* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1455* See the License for the specific language governing permissions and 1456* limitations under the License. 1457*/var ri=kn,ai=ri;/** 1458* @license Apache-2.0 1459* 1460* Copyright (c) 2018 The Stdlib Authors. 1461* 1462* Licensed under the Apache License, Version 2.0 (the "License"); 1463* you may not use this file except in compliance with the License. 1464* You may obtain a copy of the License at 1465* 1466* http://www.apache.org/licenses/LICENSE-2.0 1467* 1468* Unless required by applicable law or agreed to in writing, software 1469* distributed under the License is distributed on an "AS IS" BASIS, 1470* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1471* See the License for the specific language governing permissions and 1472* limitations under the License. 1473*/var ei=sr,ti=cr,ni=$r,ii=qr,li=Kr,oi=Yr,fi=pr,ui=yr,vi=En,si=Jn,ci=ai,$i=Or,pi=Pr,yi=2220446049250313e-31,_i=2148532223,U=[0,0],P=[0,0];function bi(r,a){var e,t;return r===0||fi(r)||ui(r)?r:(si(U),r=U[0],a+=U[1],a+=ci(r),a<oi?vi(0,r):a>ii?r<0?ti:ei:(a<=li?(a+=52,t=yi):t=1,$i(P),e=P[0],e&=_i,e|=a+ni<<20,t*pi(e,P[1])))}var Ai=bi;/** 1474* @license Apache-2.0 1475* 1476* Copyright (c) 2018 The Stdlib Authors. 1477* 1478* Licensed under the Apache License, Version 2.0 (the "License"); 1479* you may not use this file except in compliance with the License. 1480* You may obtain a copy of the License at 1481* 1482* http://www.apache.org/licenses/LICENSE-2.0 1483* 1484* Unless required by applicable law or agreed to in writing, software 1485* distributed under the License is distributed on an "AS IS" BASIS, 1486* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1487* See the License for the specific language governing permissions and 1488* limitations under the License. 1489*/var di=Ai,hi=di,Lr={};function mi(r,a,e){a.split&&(a=a.split("."));for(var t=0,n=a.length,i=r,o,l;t<n&&(l=a[t++],!(l==="__proto__"||l==="constructor"||l==="prototype"));)i=i[l]=t===n?e:typeof(o=i[l])==typeof a?o:a[t]*0!==0||~(""+a[t]).indexOf(".")?{}:[]}Lr.dset=mi;var S={},gi=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(S,"__esModule",{value:!0});S.unset=void 0;var Si=gi(B);function Oi(r,a){if((0,Si.default)(r,a)){for(var e=a.split("."),t=e.pop();e.length&&e[e.length-1].slice(-1)==="\\";)t=e.pop().slice(0,-1)+"."+t;for(;e.length;)r=r[a=e.shift()];return delete r[t]}return!0}S.unset=Oi;var q=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(X,"__esModule",{value:!0});var wi=q(jr),y=q(B),Ni=q(hi),A=Lr,Ii=S;function Ei(r,a){for(var e=r,t=0,n=a;t<n.length;t++){var i=n[t];switch(i.type){case"drop":return null;case"drop_properties":Ui(e,i.config);break;case"allow_properties":Pi(e,i.config);break;case"sample_event":if(Fi(e,i.config))break;return null;case"map_properties":Ti(e,i.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(i.type,'" is unsupported.'))}}return e}X.default=Ei;function Ui(r,a){Mr(r,a.drop,function(e,t){t.forEach(function(n){return delete e[n]})})}function Pi(r,a){Mr(r,a.allow,function(e,t){Object.keys(e).forEach(function(n){t.includes(n)||delete e[n]})})}
1489function Mr(r,a,e){Object.entries(a).forEach(function(t){var n=t[0],i=t[1],o=function(f){typeof f!="object"||f===null||e(f,i)},l=n===""?r:(0,y.default)(r,n);Array.isArray(l)?l.forEach(o):o(l)})}function Ti(r,a){var e=JSON.parse(JSON.stringify(r));for(var t in a.map)if(a.map.hasOwnProperty(t)){var n=a.map[t],i=t.split("."),o=void 0;if(i.length>1?(i.pop(),o=(0,y.default)(e,i.join("."))):o=r,typeof o=="object"){if(n.copy){var l=(0,y.default)(e,n.copy);l!==void 0&&(0,A.dset)(r,t,l)}else if(n.move){var f=(0,y.default)(e,n.move);f!==void 0&&(0,A.dset)(r,t,f),(0,Ii.unset)(r,n.move)}else n.hasOwnProperty("set")&&(0,A.dset)(r,t,n.set);if(n.to_string){var u=(0,y.default)(r,t);if(typeof u=="string"||typeof u=="object"&&u!==null)continue;u!==void 0?(0,A.dset)(r,t,JSON.stringify(u)):(0,A.dset)(r,t,"undefined")}}}}function Fi(r,a){return a.sample.percent<=0?!1:a.sample.percent>=1?!0:a.sample.path?Mi(r,a):Li(a.sample.percent)}function Li(r){return Math.random()<=r}function Mi(r,a){var e=(0,y.default)(r,a.sample.path),t=(0,wi.default)(JSON.stringify(e)),n=-64,i=[];lr(t.slice(0,8),i);for(var o=0,l=0;l<64&&i[l]!==1;l++)o++;if(o!==0){var f=[];lr(t.slice(9,16),f),n-=o,i.splice(0,o),f.splice(64-o),i=i.concat(f)}return i[63]=i[63]===0?1:0,(0,Ni.default)(parseInt(i.join(""),2),n)<a.sample.percent}function lr(r,a){for(var e=0;e<8;e++)for(var t=r[e],n=128;n>=1;n/=2)t-n>=0?(t-=n,a.push(1)):a.push(0)}var z={},Wi=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(z,"__esModule",{value:!0});var Hi=Wi(B);function Gi(r,a){if(!a)throw new Error("No matcher supplied!");switch(a.type){case"all":return ji();case"fql":return Ri(a.ir,r);default:throw new Error("Matcher of type ".concat(a.type," unsupported."))}}z.default=Gi;function ji(){return!0}function Ri(r,a){if(!r)return!1;try{r=JSON.parse(r)}catch(t){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(r,'": ').concat(t))}var e=c(r,a);return typeof e!="boolean"?!1:e}function c(r,a){if(!Array.isArray(r))return v(r,a)===!0;var e=r[0];switch(e){case"!":return!c(r[1],a);case"or":for(var t=1;t<r.length;t++)if(c(r[t],a))return!0;return!1;case"and":for(var t=1;t<r.length;t++)if(!c(r[t],a))return!1;return!0;case"=":case"!=":return Xi(v(r[1],a),v(r[2],a),e,a);case"<=":case"<":case">":case">=":return Di(v(r[1],a),v(r[2],a),e,a);case"in":return Ci(v(r[1],a),v(r[2],a),a);case"contains":return Bi(v(r[1],a),v(r[2],a));case"match":return Vi(v(r[1],a),v(r[2],a));case"lowercase":var n=v(r[1],a);return typeof n!="string"?null:n.toLowerCase();case"typeof":return typeof v(r[1],a);case"length":return xi(v(r[1],a));default:throw new Error("FQL IR could not evaluate for token: ".concat(e))}}function v(r,a){return Array.isArray(r)?r:typeof r=="object"?r.value:(0,Hi.default)(a,r)}function Ci(r,a,e){return a.find(function(t){return v(t,e)===r})!==void 0}function Di(r,a,e,t){if(m(r)&&(r=c(r,t)),m(a)&&(a=c(a,t)),typeof r!="number"||typeof a!="number")return!1;switch(e){case"<=":return r<=a;case">=":return r>=a;case"<":return r<a;case">":return r>a;default:throw new Error("Invalid operator in compareNumbers: ".concat(e))}}function Xi(r,a,e,t){switch(m(r)&&(r=c(r,t)),m(a)&&(a=c(a,t)),typeof r=="object"&&typeof a=="object"&&(r=JSON.stringify(r),a=JSON.stringify(a)),e){case"=":return r===a;case"!=":return r!==a;default:throw new Error("Invalid operator in compareItems: ".concat(e))}}function Bi(r,a){return typeof r!="string"||typeof a!="string"?!1:r.indexOf(a)!==-1}function Vi(r,a){return typeof r!="string"||typeof a!="string"?!1:Ji(a,r)}function xi(r){return r===null?0:!Array.isArray(r)&&typeof r!="string"?NaN:r.length}function m(r){return Array.isArray(r)?(r[0]==="lowercase"||r[0]==="length"||r[0]==="typeof")&&r.length===2||(r[0]==="contains"||r[0]==="match")&&r.length===3:!1}function Ji(r,a){var e,t;r:for(;r.length>0;){var n=void 0,i=void 0;if(e=qi(r),n=e.star,i=e.chunk,r=e.pattern,n&&i==="")return!0;var o=or(i,a),l=o.t,f=o.ok,u=o.err;if(u)return!1;if(f&&(l.length===0||r.length>0)){a=l;continue}if(n)for(var s=0;s<a.length;s++){if(t=or(i,a.slice(s+1)),l=t.t,f=t.ok,u=t.err,f){if(r.length===0&&l.length>0)continue;a=l;continue r}if(u)return!1}return!1}return a.length===0}function qi(r){for(var a={star:!1,chunk:"",pattern:""};r.length>0&&r[0]==="*";)r=r.slice(1),a.star=!0;var e=!1,t;r:for(t=0;t<r.length;t++)switch(r[t]){case"\\":t+1<r.length&&t++;break;case"[":e=!0;break;case"]":e=!1;break;case"*":if(!e)break r}return a.chunk=r.slice(0,t),a.pattern=r.slice(t),a}function or(r,a){for(var e,t,n={t:"",ok:!1,err:!1};r.length>0;){if(a.length===0)return n;switch(r[0]){case"[":var i=a[0];a=a.slice(1),r=r.slice(1);var o=!0;r.length>0&&r[0]==="^"&&(o=!1,r=r.slice(1));for(var l=!1,f=0;;){if(r.length>0&&r[0]==="]"&&f>0){r=r.slice(1);break}var u="",s="",d=void 0;if(e=fr(r),u=e.char,r=e.newChunk,d=e.err,d||(s=u,r[0]==="-"&&(t=fr(r.slice(1)),s=t.char,r=t.newChunk,d=t.err,d))
1489)return n;u<=i&&i<=s&&(l=!0),f++}if(l!==o)return n;break;case"?":a=a.slice(1),r=r.slice(1);break;case"\\":if(r=r.slice(1),r.length===0)return n.err=!0,n;default:if(r[0]!==a[0])return n;a=a.slice(1),r=r.slice(1)}}return n.t=a,n.ok=!0,n.err=!1,n}function fr(r){var a={char:"",newChunk:"",err:!1};return r.length===0||r[0]==="-"||r[0]==="]"||r[0]==="\\"&&(r=r.slice(1),r.length===0)?(a.err=!0,a):(a.char=r[0],a.newChunk=r.slice(1),a.newChunk.length===0&&(a.err=!0),a)}var K={};Object.defineProperty(K,"__esModule",{value:!0});var zi=function(){function r(a){this.rules=[],this.rules=a||[]}return r.prototype.getRulesByDestinationName=function(a){for(var e=[],t=0,n=this.rules;t<n.length;t++){var i=n[t];(i.destinationName===a||i.destinationName===void 0)&&e.push(i)}return e},r}();K.default=zi;(function(r){var a=$&&$.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var e=X;Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return a(e).default}});var t=z;Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return a(t).default}});var n=K;Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return a(n).default}})})(h);var Qi=function(r){return function(a){var e=a.payload,t=a.integration,n=a.next,i=new h.Store(r),o=i.getRulesByDestinationName(t);o.forEach(function(l){for(var f=l.matchers,u=l.transformers,s=0;s<f.length;s++)if(h.matches(e.obj,f[s])&&(e.obj=h.transform(e.obj,u[s]),e.obj===null))return n(null)}),n(e)}};export{Qi as tsubMiddleware};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.