@imtbl/sdk 1.46.2-alpha.3 → 1.46.2-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blockchain_data.js +2 -2
- package/dist/checkout.js +4 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.js +7 -7
- package/dist/minting_backend.js +2 -2
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +4 -4
- package/dist/webhook.js +1 -1
- package/dist/x.js +3 -3
- package/package.json +2 -2
- package/dist/browser/checkout/BridgeWidget-69ef3783.js +0 -1
- package/dist/browser/checkout/CheckoutWidget-044ccde3.js +0 -1
- package/dist/browser/checkout/OnRampWidget-f68e31ac.js +0 -2
- package/dist/browser/checkout/SaleWidget-dff8ba88.js +0 -1
- package/dist/browser/checkout/SpendingCapHero-617b015a.js +0 -1
- package/dist/browser/checkout/SwapWidget-33b911a4.js +0 -1
- package/dist/browser/checkout/TopUpView-07d43ea1.js +0 -1
- package/dist/browser/checkout/WalletWidget-28f8d229.js +0 -1
- package/dist/browser/checkout/auto-track-128940e6.js +0 -1
- package/dist/browser/checkout/balance-02a997c2.js +0 -1
- package/dist/browser/checkout/index-160882ca.js +0 -100
- package/dist/browser/checkout/index-4e2eeff8.js +0 -1
- package/dist/browser/checkout/index-68cda8f5.js +0 -60
- package/dist/browser/checkout/index-96577f2f.js +0 -1
- package/dist/browser/checkout/index-9769b9c3.js +0 -1
- package/dist/browser/checkout/index-ac227ef4.js +0 -773
- package/dist/browser/checkout/index-d3fdff35.js +0 -1
- package/dist/browser/checkout/index-d4812548.js +0 -1
- package/dist/browser/checkout/index.umd-193f43db.js +0 -1
- package/dist/browser/checkout/is-plan-event-enabled-80f76ce6.js +0 -1
- package/dist/browser/checkout/retry-f0ac2e4f.js +0 -1
- package/dist/browser/checkout/sdk.js +0 -75
- package/dist/browser/checkout/widgets-esm.js +0 -1
- package/dist/browser/checkout/widgets.js +0 -932
|
@@ -1,773 +0,0 @@
|
|
|
1
|
-
import{cE as r,cF as e}from"./index-160882ca.js";for(var t={},n={},o=[],a=0;a<64;)o[a]=0|4294967296*Math.sin(++a%Math.PI);var i=r(Object.freeze({__proto__:null,default:function(r){var e,t,n,i=[e=1732584193,t=4023233417,~e,~t],u=[],f=unescape(encodeURI(r))+"",c=f.length;for(r=--c/4+2|15,u[--r]=8*c;~c;)u[c>>2]|=f.charCodeAt(c)<<8*c--;for(a=f=0;a<r;a+=16){for(c=i;f<64;c=[n=c[3],e+((n=c[0]+[e&t|~e&n,n&e|~n&t,e^t^n,t^(e|~n)][c=f>>4]+o[f]+~~u[a|15&[f,5*f+1,3*f+5,7*f][c]])<<(c=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*c+f++%4])|n>>>-c),e,t])e=0|c[1],t=c[2];for(f=4;f;)i[--f]+=c[f]}for(r="";f<32;)r+=(i[f>>3]>>4*(1^f++)&15).toString(16);return r}})),u={exports:{}};u.exports=function(r,e,t,n,o){for(e=e.split?e.split("."):e,n=0;n<e.length;n++)r=r?r[e[n]]:o;return r===o?t:r};var f=u.exports,c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;
|
|
2
|
-
/**
|
|
3
|
-
* @license Apache-2.0
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*/var s=
|
|
19
|
-
/**
|
|
20
|
-
* @license Apache-2.0
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
23
|
-
*
|
|
24
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
25
|
-
* you may not use this file except in compliance with the License.
|
|
26
|
-
* You may obtain a copy of the License at
|
|
27
|
-
*
|
|
28
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29
|
-
*
|
|
30
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
31
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
32
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
33
|
-
* See the License for the specific language governing permissions and
|
|
34
|
-
* limitations under the License.
|
|
35
|
-
*/
|
|
36
|
-
function(r){return r!=r},p=c,y=l;
|
|
37
|
-
/**
|
|
38
|
-
* @license Apache-2.0
|
|
39
|
-
*
|
|
40
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
41
|
-
*
|
|
42
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
43
|
-
* you may not use this file except in compliance with the License.
|
|
44
|
-
* You may obtain a copy of the License at
|
|
45
|
-
*
|
|
46
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
47
|
-
*
|
|
48
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
49
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
50
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
51
|
-
* See the License for the specific language governing permissions and
|
|
52
|
-
* limitations under the License.
|
|
53
|
-
*/var v=function(r){return r===p||r===y},d="function"==typeof Object.defineProperty?Object.defineProperty:null;
|
|
54
|
-
/**
|
|
55
|
-
* @license Apache-2.0
|
|
56
|
-
*
|
|
57
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
58
|
-
*
|
|
59
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
60
|
-
* you may not use this file except in compliance with the License.
|
|
61
|
-
* You may obtain a copy of the License at
|
|
62
|
-
*
|
|
63
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
64
|
-
*
|
|
65
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
66
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
67
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
68
|
-
* See the License for the specific language governing permissions and
|
|
69
|
-
* limitations under the License.
|
|
70
|
-
*/var h=function(){try{return d({},"x",{}),!0}catch(r){return!1}},b=Object.defineProperty,g=Object.prototype,m=g.toString,_=g.__defineGetter__,w=g.__defineSetter__,A=g.__lookupGetter__,j=g.__lookupSetter__;
|
|
71
|
-
/**
|
|
72
|
-
* @license Apache-2.0
|
|
73
|
-
*
|
|
74
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
75
|
-
*
|
|
76
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
77
|
-
* you may not use this file except in compliance with the License.
|
|
78
|
-
* You may obtain a copy of the License at
|
|
79
|
-
*
|
|
80
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
81
|
-
*
|
|
82
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
83
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
84
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
85
|
-
* See the License for the specific language governing permissions and
|
|
86
|
-
* limitations under the License.
|
|
87
|
-
*/var O=b,k=function(r,e,t){var n,o,a,i;if("object"!=typeof r||null===r||"[object Array]"===m.call(r))throw new TypeError("invalid argument. First argument must be an object. Value: `"+r+"`.");if("object"!=typeof t||null===t||"[object Array]"===m.call(t))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+t+"`.");if((o="value"in t)&&(A.call(r,e)||j.call(r,e)?(n=r.__proto__,r.__proto__=g,delete r[e],r[e]=t.value,r.__proto__=n):r[e]=t.value),a="get"in t,i="set"in t,o&&(a||i))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return a&&_&&_.call(r,e,t.get),i&&w&&w.call(r,e,t.set),r},N=h()?O:k;
|
|
88
|
-
/**
|
|
89
|
-
* @license Apache-2.0
|
|
90
|
-
*
|
|
91
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
92
|
-
*
|
|
93
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
94
|
-
* you may not use this file except in compliance with the License.
|
|
95
|
-
* You may obtain a copy of the License at
|
|
96
|
-
*
|
|
97
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
98
|
-
*
|
|
99
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
100
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
101
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
102
|
-
* See the License for the specific language governing permissions and
|
|
103
|
-
* limitations under the License.
|
|
104
|
-
*/var S=function(r,e,t){N(r,e,{configurable:!1,enumerable:!1,writable:!1,value:t})};
|
|
105
|
-
/**
|
|
106
|
-
* @license Apache-2.0
|
|
107
|
-
*
|
|
108
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
109
|
-
*
|
|
110
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
111
|
-
* you may not use this file except in compliance with the License.
|
|
112
|
-
* You may obtain a copy of the License at
|
|
113
|
-
*
|
|
114
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
115
|
-
*
|
|
116
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
117
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
118
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
|
-
* See the License for the specific language governing permissions and
|
|
120
|
-
* limitations under the License.
|
|
121
|
-
*/var E=
|
|
122
|
-
/**
|
|
123
|
-
* @license Apache-2.0
|
|
124
|
-
*
|
|
125
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
126
|
-
*
|
|
127
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
128
|
-
* you may not use this file except in compliance with the License.
|
|
129
|
-
* You may obtain a copy of the License at
|
|
130
|
-
*
|
|
131
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
132
|
-
*
|
|
133
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
134
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
135
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
136
|
-
* See the License for the specific language governing permissions and
|
|
137
|
-
* limitations under the License.
|
|
138
|
-
*/
|
|
139
|
-
function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
140
|
-
/**
|
|
141
|
-
* @license Apache-2.0
|
|
142
|
-
*
|
|
143
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
144
|
-
*
|
|
145
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
146
|
-
* you may not use this file except in compliance with the License.
|
|
147
|
-
* You may obtain a copy of the License at
|
|
148
|
-
*
|
|
149
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
150
|
-
*
|
|
151
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
152
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
153
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
154
|
-
* See the License for the specific language governing permissions and
|
|
155
|
-
* limitations under the License.
|
|
156
|
-
*/var U=function(){return E&&"symbol"==typeof Symbol.toStringTag},I=Object.prototype.toString,P=I;
|
|
157
|
-
/**
|
|
158
|
-
* @license Apache-2.0
|
|
159
|
-
*
|
|
160
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
161
|
-
*
|
|
162
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
163
|
-
* you may not use this file except in compliance with the License.
|
|
164
|
-
* You may obtain a copy of the License at
|
|
165
|
-
*
|
|
166
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
167
|
-
*
|
|
168
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
169
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
170
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
171
|
-
* See the License for the specific language governing permissions and
|
|
172
|
-
* limitations under the License.
|
|
173
|
-
*/var F=function(r){return P.call(r)},M=Object.prototype.hasOwnProperty;
|
|
174
|
-
/**
|
|
175
|
-
* @license Apache-2.0
|
|
176
|
-
*
|
|
177
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
178
|
-
*
|
|
179
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
-
* you may not use this file except in compliance with the License.
|
|
181
|
-
* You may obtain a copy of the License at
|
|
182
|
-
*
|
|
183
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
-
*
|
|
185
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
186
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
-
* See the License for the specific language governing permissions and
|
|
189
|
-
* limitations under the License.
|
|
190
|
-
*/var x=function(r,e){return null!=r&&M.call(r,e)},T="function"==typeof Symbol?Symbol.toStringTag:"",C=x,H=T,J=I;
|
|
191
|
-
/**
|
|
192
|
-
* @license Apache-2.0
|
|
193
|
-
*
|
|
194
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
195
|
-
*
|
|
196
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
197
|
-
* you may not use this file except in compliance with the License.
|
|
198
|
-
* You may obtain a copy of the License at
|
|
199
|
-
*
|
|
200
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
201
|
-
*
|
|
202
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
203
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
204
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
|
-
* See the License for the specific language governing permissions and
|
|
206
|
-
* limitations under the License.
|
|
207
|
-
*/var G=F,L=function(r){var e,t,n;if(null==r)return J.call(r);t=r[H],e=C(r,H);try{r[H]=void 0}catch(e){return J.call(r)}return n=J.call(r),e?r[H]=t:delete r[H],n},D=U()?L:G,R=D,V="function"==typeof Uint32Array;
|
|
208
|
-
/**
|
|
209
|
-
* @license Apache-2.0
|
|
210
|
-
*
|
|
211
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
212
|
-
*
|
|
213
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
214
|
-
* you may not use this file except in compliance with the License.
|
|
215
|
-
* You may obtain a copy of the License at
|
|
216
|
-
*
|
|
217
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
218
|
-
*
|
|
219
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
220
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
221
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
222
|
-
* See the License for the specific language governing permissions and
|
|
223
|
-
* limitations under the License.
|
|
224
|
-
*/var W="function"==typeof Uint32Array?Uint32Array:null,B=function(r){return V&&r instanceof Uint32Array||"[object Uint32Array]"===R(r)},Q=W;
|
|
225
|
-
/**
|
|
226
|
-
* @license Apache-2.0
|
|
227
|
-
*
|
|
228
|
-
* Copyright (c) 2018 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 Y=function(){var r,e;if("function"!=typeof Q)return!1;try{e=new Q(e=[1,3.14,-3.14,4294967296,4294967297]),r=B(e)&&1===e[0]&&3===e[1]&&4294967293===e[2]&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
242
|
-
/**
|
|
243
|
-
* @license Apache-2.0
|
|
244
|
-
*
|
|
245
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
246
|
-
*
|
|
247
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
248
|
-
* you may not use this file except in compliance with the License.
|
|
249
|
-
* You may obtain a copy of the License at
|
|
250
|
-
*
|
|
251
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
252
|
-
*
|
|
253
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
254
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
255
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
256
|
-
* See the License for the specific language governing permissions and
|
|
257
|
-
* limitations under the License.
|
|
258
|
-
*/var q="function"==typeof Uint32Array?Uint32Array:void 0,z=
|
|
259
|
-
/**
|
|
260
|
-
* @license Apache-2.0
|
|
261
|
-
*
|
|
262
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
263
|
-
*
|
|
264
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
265
|
-
* you may not use this file except in compliance with the License.
|
|
266
|
-
* You may obtain a copy of the License at
|
|
267
|
-
*
|
|
268
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
269
|
-
*
|
|
270
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
271
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
272
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
273
|
-
* See the License for the specific language governing permissions and
|
|
274
|
-
* limitations under the License.
|
|
275
|
-
*/
|
|
276
|
-
function(){throw new Error("not implemented")},K=Y()?q:z,X=D,Z="function"==typeof Float64Array;
|
|
277
|
-
/**
|
|
278
|
-
* @license Apache-2.0
|
|
279
|
-
*
|
|
280
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
281
|
-
*
|
|
282
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
283
|
-
* you may not use this file except in compliance with the License.
|
|
284
|
-
* You may obtain a copy of the License at
|
|
285
|
-
*
|
|
286
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
287
|
-
*
|
|
288
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
289
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
290
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
291
|
-
* See the License for the specific language governing permissions and
|
|
292
|
-
* limitations under the License.
|
|
293
|
-
*/var $="function"==typeof Float64Array?Float64Array:null,rr=function(r){return Z&&r instanceof Float64Array||"[object Float64Array]"===X(r)},er=$;
|
|
294
|
-
/**
|
|
295
|
-
* @license Apache-2.0
|
|
296
|
-
*
|
|
297
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
298
|
-
*
|
|
299
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
300
|
-
* you may not use this file except in compliance with the License.
|
|
301
|
-
* You may obtain a copy of the License at
|
|
302
|
-
*
|
|
303
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
304
|
-
*
|
|
305
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
306
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
307
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
308
|
-
* See the License for the specific language governing permissions and
|
|
309
|
-
* limitations under the License.
|
|
310
|
-
*/var tr=function(){var r,e;if("function"!=typeof er)return!1;try{e=new er([1,3.14,-3.14,NaN]),r=rr(e)&&1===e[0]&&3.14===e[1]&&-3.14===e[2]&&e[3]!=e[3]}catch(e){r=!1}return r};
|
|
311
|
-
/**
|
|
312
|
-
* @license Apache-2.0
|
|
313
|
-
*
|
|
314
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
315
|
-
*
|
|
316
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
317
|
-
* you may not use this file except in compliance with the License.
|
|
318
|
-
* You may obtain a copy of the License at
|
|
319
|
-
*
|
|
320
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
321
|
-
*
|
|
322
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
323
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
324
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
325
|
-
* See the License for the specific language governing permissions and
|
|
326
|
-
* limitations under the License.
|
|
327
|
-
*/var nr="function"==typeof Float64Array?Float64Array:void 0,or=
|
|
328
|
-
/**
|
|
329
|
-
* @license Apache-2.0
|
|
330
|
-
*
|
|
331
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
332
|
-
*
|
|
333
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
334
|
-
* you may not use this file except in compliance with the License.
|
|
335
|
-
* You may obtain a copy of the License at
|
|
336
|
-
*
|
|
337
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
338
|
-
*
|
|
339
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
340
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
341
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
342
|
-
* See the License for the specific language governing permissions and
|
|
343
|
-
* limitations under the License.
|
|
344
|
-
*/
|
|
345
|
-
function(){throw new Error("not implemented")},ar=tr()?nr:or,ir=D,ur="function"==typeof Uint8Array;
|
|
346
|
-
/**
|
|
347
|
-
* @license Apache-2.0
|
|
348
|
-
*
|
|
349
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
350
|
-
*
|
|
351
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
352
|
-
* you may not use this file except in compliance with the License.
|
|
353
|
-
* You may obtain a copy of the License at
|
|
354
|
-
*
|
|
355
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
356
|
-
*
|
|
357
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
358
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
359
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
360
|
-
* See the License for the specific language governing permissions and
|
|
361
|
-
* limitations under the License.
|
|
362
|
-
*/var fr="function"==typeof Uint8Array?Uint8Array:null,cr=function(r){return ur&&r instanceof Uint8Array||"[object Uint8Array]"===ir(r)},lr=fr;
|
|
363
|
-
/**
|
|
364
|
-
* @license Apache-2.0
|
|
365
|
-
*
|
|
366
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
367
|
-
*
|
|
368
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
369
|
-
* you may not use this file except in compliance with the License.
|
|
370
|
-
* You may obtain a copy of the License at
|
|
371
|
-
*
|
|
372
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
373
|
-
*
|
|
374
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
375
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
376
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
377
|
-
* See the License for the specific language governing permissions and
|
|
378
|
-
* limitations under the License.
|
|
379
|
-
*/var sr=function(){var r,e;if("function"!=typeof lr)return!1;try{e=new lr(e=[1,3.14,-3.14,256,257]),r=cr(e)&&1===e[0]&&3===e[1]&&253===e[2]&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
380
|
-
/**
|
|
381
|
-
* @license Apache-2.0
|
|
382
|
-
*
|
|
383
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
384
|
-
*
|
|
385
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
386
|
-
* you may not use this file except in compliance with the License.
|
|
387
|
-
* You may obtain a copy of the License at
|
|
388
|
-
*
|
|
389
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
390
|
-
*
|
|
391
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
392
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
393
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
394
|
-
* See the License for the specific language governing permissions and
|
|
395
|
-
* limitations under the License.
|
|
396
|
-
*/var pr="function"==typeof Uint8Array?Uint8Array:void 0,yr=
|
|
397
|
-
/**
|
|
398
|
-
* @license Apache-2.0
|
|
399
|
-
*
|
|
400
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
401
|
-
*
|
|
402
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
403
|
-
* you may not use this file except in compliance with the License.
|
|
404
|
-
* You may obtain a copy of the License at
|
|
405
|
-
*
|
|
406
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
407
|
-
*
|
|
408
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
409
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
410
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
411
|
-
* See the License for the specific language governing permissions and
|
|
412
|
-
* limitations under the License.
|
|
413
|
-
*/
|
|
414
|
-
function(){throw new Error("not implemented")},vr=sr()?pr:yr,dr=D,hr="function"==typeof Uint16Array;
|
|
415
|
-
/**
|
|
416
|
-
* @license Apache-2.0
|
|
417
|
-
*
|
|
418
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
419
|
-
*
|
|
420
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
421
|
-
* you may not use this file except in compliance with the License.
|
|
422
|
-
* You may obtain a copy of the License at
|
|
423
|
-
*
|
|
424
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
425
|
-
*
|
|
426
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
427
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
428
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
429
|
-
* See the License for the specific language governing permissions and
|
|
430
|
-
* limitations under the License.
|
|
431
|
-
*/var br="function"==typeof Uint16Array?Uint16Array:null,gr=function(r){return hr&&r instanceof Uint16Array||"[object Uint16Array]"===dr(r)},mr=br;
|
|
432
|
-
/**
|
|
433
|
-
* @license Apache-2.0
|
|
434
|
-
*
|
|
435
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
436
|
-
*
|
|
437
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
438
|
-
* you may not use this file except in compliance with the License.
|
|
439
|
-
* You may obtain a copy of the License at
|
|
440
|
-
*
|
|
441
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
442
|
-
*
|
|
443
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
444
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
445
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
446
|
-
* See the License for the specific language governing permissions and
|
|
447
|
-
* limitations under the License.
|
|
448
|
-
*/var _r=function(){var r,e;if("function"!=typeof mr)return!1;try{e=new mr(e=[1,3.14,-3.14,65536,65537]),r=gr(e)&&1===e[0]&&3===e[1]&&65533===e[2]&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
449
|
-
/**
|
|
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 wr,Ar="function"==typeof Uint16Array?Uint16Array:void 0,jr=
|
|
466
|
-
/**
|
|
467
|
-
* @license Apache-2.0
|
|
468
|
-
*
|
|
469
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
470
|
-
*
|
|
471
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
472
|
-
* you may not use this file except in compliance with the License.
|
|
473
|
-
* You may obtain a copy of the License at
|
|
474
|
-
*
|
|
475
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
476
|
-
*
|
|
477
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
478
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
479
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
480
|
-
* See the License for the specific language governing permissions and
|
|
481
|
-
* limitations under the License.
|
|
482
|
-
*/
|
|
483
|
-
function(){throw new Error("not implemented")},Or={uint16:_r()?Ar:jr,uint8:vr};
|
|
484
|
-
/**
|
|
485
|
-
* @license Apache-2.0
|
|
486
|
-
*
|
|
487
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
488
|
-
*
|
|
489
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
490
|
-
* you may not use this file except in compliance with the License.
|
|
491
|
-
* You may obtain a copy of the License at
|
|
492
|
-
*
|
|
493
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
494
|
-
*
|
|
495
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
496
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
497
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
498
|
-
* See the License for the specific language governing permissions and
|
|
499
|
-
* limitations under the License.
|
|
500
|
-
*/(wr=new Or.uint16(1))[0]=4660;var kr,Nr,Sr=52===new Or.uint8(wr.buffer)[0];
|
|
501
|
-
/**
|
|
502
|
-
* @license Apache-2.0
|
|
503
|
-
*
|
|
504
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
505
|
-
*
|
|
506
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
507
|
-
* you may not use this file except in compliance with the License.
|
|
508
|
-
* You may obtain a copy of the License at
|
|
509
|
-
*
|
|
510
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
511
|
-
*
|
|
512
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
513
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
514
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
515
|
-
* See the License for the specific language governing permissions and
|
|
516
|
-
* limitations under the License.
|
|
517
|
-
*/!0===Sr?(kr=1,Nr=0):(kr=0,Nr=1);var Er=K,Ur={HIGH:kr,LOW:Nr},Ir=new ar(1),Pr=new Er(Ir.buffer),Fr=Ur.HIGH,Mr=Ur.LOW;
|
|
518
|
-
/**
|
|
519
|
-
* @license Apache-2.0
|
|
520
|
-
*
|
|
521
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
522
|
-
*
|
|
523
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
524
|
-
* you may not use this file except in compliance with the License.
|
|
525
|
-
* You may obtain a copy of the License at
|
|
526
|
-
*
|
|
527
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
528
|
-
*
|
|
529
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
530
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
531
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
532
|
-
* See the License for the specific language governing permissions and
|
|
533
|
-
* limitations under the License.
|
|
534
|
-
*/var xr=function(r,e,t,n){return Ir[0]=r,e[n]=Pr[Fr],e[n+t]=Pr[Mr],e},Tr=xr;
|
|
535
|
-
/**
|
|
536
|
-
* @license Apache-2.0
|
|
537
|
-
*
|
|
538
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
539
|
-
*
|
|
540
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
541
|
-
* you may not use this file except in compliance with the License.
|
|
542
|
-
* You may obtain a copy of the License at
|
|
543
|
-
*
|
|
544
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
545
|
-
*
|
|
546
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
547
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
548
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
549
|
-
* See the License for the specific language governing permissions and
|
|
550
|
-
* limitations under the License.
|
|
551
|
-
*/var Cr=function(r){return Tr(r,[0,0],1,0)};
|
|
552
|
-
/**
|
|
553
|
-
* @license Apache-2.0
|
|
554
|
-
*
|
|
555
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
556
|
-
*
|
|
557
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
558
|
-
* you may not use this file except in compliance with the License.
|
|
559
|
-
* You may obtain a copy of the License at
|
|
560
|
-
*
|
|
561
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
562
|
-
*
|
|
563
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
564
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
565
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
566
|
-
* See the License for the specific language governing permissions and
|
|
567
|
-
* limitations under the License.
|
|
568
|
-
*/S(Cr,"assign",xr);var Hr=Cr,Jr=K,Gr=!0===Sr?1:0,Lr=new ar(1),Dr=new Jr(Lr.buffer);
|
|
569
|
-
/**
|
|
570
|
-
* @license Apache-2.0
|
|
571
|
-
*
|
|
572
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
573
|
-
*
|
|
574
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
575
|
-
* you may not use this file except in compliance with the License.
|
|
576
|
-
* You may obtain a copy of the License at
|
|
577
|
-
*
|
|
578
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
579
|
-
*
|
|
580
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
581
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
582
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
583
|
-
* See the License for the specific language governing permissions and
|
|
584
|
-
* limitations under the License.
|
|
585
|
-
*/var Rr,Vr,Wr=function(r){return Lr[0]=r,Dr[Gr]};
|
|
586
|
-
/**
|
|
587
|
-
* @license Apache-2.0
|
|
588
|
-
*
|
|
589
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
590
|
-
*
|
|
591
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
592
|
-
* you may not use this file except in compliance with the License.
|
|
593
|
-
* You may obtain a copy of the License at
|
|
594
|
-
*
|
|
595
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
596
|
-
*
|
|
597
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
598
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
599
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
600
|
-
* See the License for the specific language governing permissions and
|
|
601
|
-
* limitations under the License.
|
|
602
|
-
*/!0===Sr?(Rr=1,Vr=0):(Rr=0,Vr=1);var Br=K,Qr={HIGH:Rr,LOW:Vr},Yr=new ar(1),qr=new Br(Yr.buffer),zr=Qr.HIGH,Kr=Qr.LOW;
|
|
603
|
-
/**
|
|
604
|
-
* @license Apache-2.0
|
|
605
|
-
*
|
|
606
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
607
|
-
*
|
|
608
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
609
|
-
* you may not use this file except in compliance with the License.
|
|
610
|
-
* You may obtain a copy of the License at
|
|
611
|
-
*
|
|
612
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
613
|
-
*
|
|
614
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
615
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
616
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
617
|
-
* See the License for the specific language governing permissions and
|
|
618
|
-
* limitations under the License.
|
|
619
|
-
*/var Xr=function(r,e){return qr[zr]=r,qr[Kr]=e,Yr[0]},Zr=Xr,$r=Hr,re=Wr,ee=Zr,te=[0,0];
|
|
620
|
-
/**
|
|
621
|
-
* @license Apache-2.0
|
|
622
|
-
*
|
|
623
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
624
|
-
*
|
|
625
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
626
|
-
* you may not use this file except in compliance with the License.
|
|
627
|
-
* You may obtain a copy of the License at
|
|
628
|
-
*
|
|
629
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
630
|
-
*
|
|
631
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
632
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
633
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
634
|
-
* See the License for the specific language governing permissions and
|
|
635
|
-
* limitations under the License.
|
|
636
|
-
*/var ne=function(r,e){var t,n;return $r.assign(r,te,1,0),t=te[0],t&=2147483647,n=re(e),ee(t|=n&=2147483648,te[1])};
|
|
637
|
-
/**
|
|
638
|
-
* @license Apache-2.0
|
|
639
|
-
*
|
|
640
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
641
|
-
*
|
|
642
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
643
|
-
* you may not use this file except in compliance with the License.
|
|
644
|
-
* You may obtain a copy of the License at
|
|
645
|
-
*
|
|
646
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
647
|
-
*
|
|
648
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
649
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
650
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
651
|
-
* See the License for the specific language governing permissions and
|
|
652
|
-
* limitations under the License.
|
|
653
|
-
*/var oe=v,ae=s,ie=
|
|
654
|
-
/**
|
|
655
|
-
* @license Apache-2.0
|
|
656
|
-
*
|
|
657
|
-
* Copyright (c) 2021 The Stdlib Authors.
|
|
658
|
-
*
|
|
659
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
660
|
-
* you may not use this file except in compliance with the License.
|
|
661
|
-
* You may obtain a copy of the License at
|
|
662
|
-
*
|
|
663
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
664
|
-
*
|
|
665
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
666
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
667
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
668
|
-
* See the License for the specific language governing permissions and
|
|
669
|
-
* limitations under the License.
|
|
670
|
-
*/
|
|
671
|
-
function(r){return Math.abs(r)};
|
|
672
|
-
/**
|
|
673
|
-
* @license Apache-2.0
|
|
674
|
-
*
|
|
675
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
676
|
-
*
|
|
677
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
678
|
-
* you may not use this file except in compliance with the License.
|
|
679
|
-
* You may obtain a copy of the License at
|
|
680
|
-
*
|
|
681
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
682
|
-
*
|
|
683
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
684
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
685
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
686
|
-
* See the License for the specific language governing permissions and
|
|
687
|
-
* limitations under the License.
|
|
688
|
-
*/var ue=function(r,e,t,n){return ae(r)||oe(r)?(e[n]=r,e[n+t]=0,e):0!==r&&ie(r)<22250738585072014e-324?(e[n]=4503599627370496*r,e[n+t]=-52,e):(e[n]=r,e[n+t]=0,e)},fe=ue;
|
|
689
|
-
/**
|
|
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, software
|
|
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 ce=function(r){return fe(r,[0,0],1,0)};
|
|
706
|
-
/**
|
|
707
|
-
* @license Apache-2.0
|
|
708
|
-
*
|
|
709
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
710
|
-
*
|
|
711
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
712
|
-
* you may not use this file except in compliance with the License.
|
|
713
|
-
* You may obtain a copy of the License at
|
|
714
|
-
*
|
|
715
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
716
|
-
*
|
|
717
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
718
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
719
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
720
|
-
* See the License for the specific language governing permissions and
|
|
721
|
-
* limitations under the License.
|
|
722
|
-
*/S(ce,"assign",ue);var le=Wr;
|
|
723
|
-
/**
|
|
724
|
-
* @license Apache-2.0
|
|
725
|
-
*
|
|
726
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
727
|
-
*
|
|
728
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
729
|
-
* you may not use this file except in compliance with the License.
|
|
730
|
-
* You may obtain a copy of the License at
|
|
731
|
-
*
|
|
732
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
733
|
-
*
|
|
734
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
735
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
736
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
737
|
-
* See the License for the specific language governing permissions and
|
|
738
|
-
* limitations under the License.
|
|
739
|
-
*/var se=function(r){var e=le(r);return(e=(2146435072&e)>>>20)-1023|0},pe=c,ye=l,ve=s,de=v,he=ne,be=ce,ge=se,me=Hr,_e=Zr,we=[0,0],Ae=[0,0];
|
|
740
|
-
/**
|
|
741
|
-
* @license Apache-2.0
|
|
742
|
-
*
|
|
743
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
744
|
-
*
|
|
745
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
746
|
-
* you may not use this file except in compliance with the License.
|
|
747
|
-
* You may obtain a copy of the License at
|
|
748
|
-
*
|
|
749
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
750
|
-
*
|
|
751
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
752
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
753
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
754
|
-
* See the License for the specific language governing permissions and
|
|
755
|
-
* limitations under the License.
|
|
756
|
-
*/var je=function(r,e){var t,n;return 0===r||ve(r)||de(r)?r:(be(we),e+=we[1],(e+=ge(r=we[0]))<-1074?he(0,r):e>1023?r<0?ye:pe:(e<=-1023?(e+=52,n=2220446049250313e-31):n=1,me(Ae),t=Ae[0],t&=2148532223,n*_e(t|=e+1023<<20,Ae[1])))},Oe=je,ke={};
|
|
757
|
-
/**
|
|
758
|
-
* @license Apache-2.0
|
|
759
|
-
*
|
|
760
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
761
|
-
*
|
|
762
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
763
|
-
* you may not use this file except in compliance with the License.
|
|
764
|
-
* You may obtain a copy of the License at
|
|
765
|
-
*
|
|
766
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
767
|
-
*
|
|
768
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
769
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
770
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
771
|
-
* See the License for the specific language governing permissions and
|
|
772
|
-
* limitations under the License.
|
|
773
|
-
*/ke.dset=function(r,e,t){e.split&&(e=e.split("."));for(var n,o,a=0,i=e.length,u=r;a<i&&"__proto__"!==(o=e[a++])&&"constructor"!==o&&"prototype"!==o;)u=u[o]=a===i?t:typeof(n=u[o])==typeof e?n:0*e[a]!=0||~(""+e[a]).indexOf(".")?{}:[]};var Ne={},Se=e&&e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.unset=void 0;var Ee=Se(f);Ne.unset=function(r,e){if((0,Ee.default)(r,e)){for(var t=e.split("."),n=t.pop();t.length&&"\\"===t[t.length-1].slice(-1);)n=t.pop().slice(0,-1)+"."+n;for(;t.length;)r=r[e=t.shift()];return delete r[n]}return!0};var Ue=e&&e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:!0});var Ie=Ue(i),Pe=Ue(f),Fe=Ue(Oe),Me=ke,xe=Ne;function Te(r,e){He(r,e.drop,(function(r,e){e.forEach((function(e){return delete r[e]}))}))}function Ce(r,e){He(r,e.allow,(function(r,e){Object.keys(r).forEach((function(t){e.includes(t)||delete r[t]}))}))}function He(r,e,t){Object.entries(e).forEach((function(e){var n=e[0],o=e[1],a=function(r){"object"==typeof r&&null!==r&&t(r,o)},i=""===n?r:(0,Pe.default)(r,n);Array.isArray(i)?i.forEach(a):a(i)}))}function Je(r,e){var t=JSON.parse(JSON.stringify(r));for(var n in e.map)if(e.map.hasOwnProperty(n)){var o=e.map[n],a=n.split("."),i=void 0;if(a.length>1?(a.pop(),i=(0,Pe.default)(t,a.join("."))):i=r,"object"==typeof i){if(o.copy){var u=(0,Pe.default)(t,o.copy);void 0!==u&&(0,Me.dset)(r,n,u)}else if(o.move){var f=(0,Pe.default)(t,o.move);void 0!==f&&(0,Me.dset)(r,n,f),(0,xe.unset)(r,o.move)}else o.hasOwnProperty("set")&&(0,Me.dset)(r,n,o.set);if(o.to_string){var c=(0,Pe.default)(r,n);if("string"==typeof c||"object"==typeof c&&null!==c)continue;void 0!==c?(0,Me.dset)(r,n,JSON.stringify(c)):(0,Me.dset)(r,n,"undefined")}}}}function Ge(r,e){return!(e.sample.percent<=0)&&(e.sample.percent>=1||(e.sample.path?function(r,e){var t=(0,Pe.default)(r,e.sample.path),n=(0,Ie.default)(JSON.stringify(t)),o=-64,a=[];Le(n.slice(0,8),a);for(var i=0,u=0;u<64&&1!==a[u];u++)i++;if(0!==i){var f=[];Le(n.slice(9,16),f),o-=i,a.splice(0,i),f.splice(64-i),a=a.concat(f)}return a[63]=0===a[63]?1:0,(0,Fe.default)(parseInt(a.join(""),2),o)<e.sample.percent}(r,e):(t=e.sample.percent,Math.random()<=t)));var t}function Le(r,e){for(var t=0;t<8;t++)for(var n=r[t],o=128;o>=1;o/=2)n-o>=0?(n-=o,e.push(1)):e.push(0)}n.default=function(r,e){for(var t=r,n=0,o=e;n<o.length;n++){var a=o[n];switch(a.type){case"drop":return null;case"drop_properties":Te(t,a.config);break;case"allow_properties":Ce(t,a.config);break;case"sample_event":if(Ge(t,a.config))break;return null;case"map_properties":Je(t,a.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(a.type,'" is unsupported.'))}}return t};var De={},Re=e&&e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(De,"__esModule",{value:!0});var Ve=Re(f);function We(r,e){if(!Array.isArray(r))return!0===Be(r,e);var t=r[0];switch(t){case"!":return!We(r[1],e);case"or":for(var n=1;n<r.length;n++)if(We(r[n],e))return!0;return!1;case"and":for(n=1;n<r.length;n++)if(!We(r[n],e))return!1;return!0;case"=":case"!=":return function(r,e,t,n){Qe(r)&&(r=We(r,n));Qe(e)&&(e=We(e,n));"object"==typeof r&&"object"==typeof e&&(r=JSON.stringify(r),e=JSON.stringify(e));switch(t){case"=":return r===e;case"!=":return r!==e;default:throw new Error("Invalid operator in compareItems: ".concat(t))}}(Be(r[1],e),Be(r[2],e),t,e);case"<=":case"<":case">":case">=":return function(r,e,t,n){Qe(r)&&(r=We(r,n));Qe(e)&&(e=We(e,n));if("number"!=typeof r||"number"!=typeof e)return!1;switch(t){case"<=":return r<=e;case">=":return r>=e;case"<":return r<e;case">":return r>e;default:throw new Error("Invalid operator in compareNumbers: ".concat(t))}}(Be(r[1],e),Be(r[2],e),t,e);case"in":return function(r,e,t){return void 0!==e.find((function(e){return Be(e,t)===r}))}(Be(r[1],e),Be(r[2],e),e);case"contains":return function(r,e){if("string"!=typeof r||"string"!=typeof e)return!1;return-1!==r.indexOf(e)}(Be(r[1],e),Be(r[2],e));case"match":return function(r,e){if("string"!=typeof r||"string"!=typeof e)return!1;return function(r,e){var t,n;r:for(;r.length>0;){var o=void 0,a=void 0;if(o=(t=Ye(r)).star,a=t.chunk,r=t.pattern,o&&""===a)return!0;var i=qe(a,e),u=i.t,f=i.ok,c=i.err;if(c)return!1;if(!f||!(0===u.length||r.length>0)){if(o)for(var l=0;l<e.length;l++){if(u=(n=qe(a,e.slice(l+1))).t,f=n.ok,c=n.err,f){if(0===r.length&&u.length>0)continue;e=u;continue r}if(c)return!1}return!1}e=u}return 0===e.length}(e,r)}(Be(r[1],e),Be(r[2],e));case"lowercase":var o=Be(r[1],e);return"string"!=typeof o?null:o.toLowerCase();case"typeof":return typeof Be(r[1],e);case"length":return function(r){if(null===r)return 0;if(!Array.isArray(r)&&"string"!=typeof r)return NaN;return r.length}(Be(r[1],e));default:throw new Error("FQL IR could not evaluate for token: ".concat(t))}}function Be(r,e){return Array.isArray(r)?r:"object"==typeof r?r.value:(0,Ve.default)(e,r)}function Qe(r){return!!Array.isArray(r)&&(("lowercase"===r[0]||"length"===r[0]||"typeof"===r[0])&&2===r.length||("contains"===r[0]||"match"===r[0])&&3===r.length)}function Ye(r){for(var e={star:!1,chunk:"",pattern:""};r.length>0&&"*"===r[0];)r=r.slice(1),e.star=!0;var t,n=!1;r:for(t=0;t<r.length;t++)switch(r[t]){case"\\":t+1<r.length&&t++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break r}return e.chunk=r.slice(0,t),e.pattern=r.slice(t),e}function qe(r,e){for(var t,n,o={t:"",ok:!1,err:!1};r.length>0;){if(0===e.length)return o;switch(r[0]){case"[":var a=e[0];e=e.slice(1);var i=!0;(r=r.slice(1)).length>0&&"^"===r[0]&&(i=!1,r=r.slice(1));for(var u=!1,f=0;;){if(r.length>0&&"]"===r[0]&&f>0){r=r.slice(1);break}var c,l="";if(c=(t=ze(r)).char,r=t.newChunk,t.err)return o;if(l=c,"-"===r[0]&&(l=(n=ze(r.slice(1))).char,r=n.newChunk,n.err))return o;c<=a&&a<=l&&(u=!0),f++}if(u!==i)return o;break;case"?":e=e.slice(1),r=r.slice(1);break;case"\\":if(0===(r=r.slice(1)).length)return o.err=!0,o;default:if(r[0]!==e[0])return o;e=e.slice(1),r=r.slice(1)}}return o.t=e,o.ok=!0,o.err=!1,o}function ze(r){var e={char:"",newChunk:"",err:!1};return 0===r.length||"-"===r[0]||"]"===r[0]||"\\"===r[0]&&0===(r=r.slice(1)).length?(e.err=!0,e):(e.char=r[0],e.newChunk=r.slice(1),0===e.newChunk.length&&(e.err=!0),e)}De.default=function(r,e){if(!e)throw new Error("No matcher supplied!");switch(e.type){case"all":return!0;case"fql":return function(r,e){if(!r)return!1;try{r=JSON.parse(r)}catch(e){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(r,'": ').concat(e))}var t=We(r,e);if("boolean"!=typeof t)return!1;return t}(e.ir,r);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}};var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0});var Xe=function(){function r(r){this.rules=[],this.rules=r||[]}return r.prototype.getRulesByDestinationName=function(r){for(var e=[],t=0,n=this.rules;t<n.length;t++){var o=n[t];o.destinationName!==r&&void 0!==o.destinationName||e.push(o)}return e},r}();Ke.default=Xe,function(r){var t=e&&e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var o=n;Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return t(o).default}});var a=De;Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return t(a).default}});var i=Ke;Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return t(i).default}})}(t);var Ze=function(r){return function(e){var n=e.payload,o=e.integration,a=e.next;new t.Store(r).getRulesByDestinationName(o).forEach((function(r){for(var e=r.matchers,o=r.transformers,i=0;i<e.length;i++)if(t.matches(n.obj,e[i])&&(n.obj=t.transform(n.obj,o[i]),null===n.obj))return a(null)})),a(n)}};export{Ze as tsubMiddleware};
|