@livetiles/reach-components-react 0.5.0-preview.102 → 0.5.0-preview.1021
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/ChannelFilter.d.ts +3 -0
- package/ChannelSelectorWrapper.d.ts +3 -0
- package/CompactLayoutList.d.ts +2 -1
- package/EmojiPicker.esm.esm.js +1 -1
- package/EmojiPicker.esm.esm2.js +1 -0
- package/ErrorWrapper.d.ts +3 -2
- package/EventDetail.d.ts +10 -1
- package/EventGridCard.d.ts +6 -4
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsGrid.d.ts +2 -2
- package/EventsList.d.ts +2 -2
- package/ManageChannels.d.ts +1 -0
- package/NewsDetail.d.ts +5 -0
- package/NewsDetailViewMetaInfo.d.ts +4 -1
- package/NewsGrid.d.ts +4 -3
- package/NewsGridCard.d.ts +8 -6
- package/NewsHero.d.ts +14 -4
- package/NewsList.d.ts +8 -3
- package/PageDetail.d.ts +10 -1
- package/PageGridCard.d.ts +3 -2
- package/PageItemContextProvider.d.ts +4 -0
- package/PageItemPreviewContextProvider.d.ts +5 -0
- package/PageTableOfContents.d.ts +3 -2
- package/PagesGrid.d.ts +3 -2
- package/PagesList.d.ts +2 -2
- package/PublishableItemCompactCard.d.ts +6 -1
- package/PublishableItemGrid.d.ts +4 -2
- package/PublishableItemList.d.ts +4 -3
- package/ReachContext.d.ts +15 -0
- package/SharedItemDetailPreview.d.ts +16 -0
- package/ToolbarBookmarkButton.d.ts +4 -0
- package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/{ToolbarManageNewsItemButton.d.ts → ToolbarManageItemButton.d.ts} +3 -0
- package/ar-dz.async.esm.esm.js +1 -1
- package/ar-ma.async.esm.esm.js +1 -1
- package/ar-sa.async.esm.esm.js +1 -1
- package/ar-tn.async.esm.esm.js +1 -1
- package/ar.async.esm.esm.js +1 -1
- package/asn1.esm.js +1 -0
- package/auto-track-3044a81d.esm.js +1 -0
- package/bg.async.esm.esm.js +1 -1
- package/bn.async.esm.esm.js +1 -1
- package/ca.async.esm.esm.js +1 -1
- package/common/CommentCountIconWithTooltip.d.ts +3 -1
- package/common/filter/LibNewsFilterDefinition.d.ts +7 -0
- package/common/hero/Hero.d.ts +9 -11
- package/common/hero/HeroPaging.d.ts +5 -0
- package/common/hero/HeroSlide.d.ts +18 -5
- package/common/hooks/useBannerOnResize.d.ts +5 -0
- package/common/utils.d.ts +1 -3
- package/cs.async.esm.esm.js +1 -1
- package/da.async.esm.esm.js +1 -1
- package/da.async.esm2.esm.js +1 -1
- package/de-at.async.esm.esm.js +1 -1
- package/de.async.esm.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/editor/EventEditorContextProvider.d.ts +9 -1
- package/editor/PageEditor.d.ts +6 -0
- package/editor/PageEditorContextProvider.d.ts +11 -0
- package/editor/PageEditorPanel.d.ts +5 -0
- package/editor/PageEditorToolbarStateActions.d.ts +2 -0
- package/el.async.esm.esm.js +1 -1
- package/emoji.esm.js +1 -0
- package/en-au.async.esm.esm.js +1 -1
- package/en-ca.async.esm.esm.js +1 -1
- package/en-gb.async.esm.esm.js +1 -1
- package/en-ie.async.esm.esm.js +1 -1
- package/en-nz.async.esm.esm.js +1 -1
- package/en-us.async.esm.esm.js +1 -1
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm.esm.js +1 -1
- package/es.async.esm2.esm.js +1 -1
- package/et.async.esm.esm.js +1 -1
- package/fa-ir.async.esm.esm.js +1 -1
- package/fi.async.esm.esm.js +1 -1
- package/fr-ca.async.esm.esm.js +1 -1
- package/fr-ch.async.esm.esm.js +1 -1
- package/fr.async.esm.esm.js +1 -1
- package/fr.async.esm2.esm.js +1 -1
- package/gu.async.esm.esm.js +1 -1
- package/he.async.esm.esm.js +1 -1
- package/hi.async.esm.esm.js +1 -1
- package/hr.async.esm.esm.js +1 -1
- package/hu.async.esm.esm.js +1 -1
- package/id.async.esm.esm.js +1 -1
- package/index-28074e12.esm.js +1 -0
- package/index-5e113ba7.esm.js +790 -0
- package/index-6542329b.esm.js +1 -0
- package/index-788b2f42.esm.js +1 -0
- package/index-904b1d06.esm.js +1 -0
- package/index-b417cb34.esm.js +1 -0
- package/index.d.ts +563 -253
- package/index.esm.js +1 -1
- package/index.esm2.js +125 -23
- package/index.esm4.js +1 -1
- package/index.esm5.js +1 -0
- package/index.esm6.js +1 -0
- package/index.esm7.js +1 -0
- package/index.esm8.js +1 -0
- package/index.umd-c9cf1445.esm.js +1 -0
- package/index.umd.js +934 -27
- package/index10.esm.js +4 -0
- package/input-shims.esm.js +4 -0
- package/ios.transition.esm.js +4 -0
- package/is-plan-event-enabled-d9660f36.esm.js +1 -0
- package/it-ch.async.esm.esm.js +1 -1
- package/it.async.esm.esm.js +1 -1
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/javascript.esm.js +1 -0
- package/kn.async.esm.esm.js +1 -1
- package/ko.async.esm.esm.js +1 -1
- package/lt.async.esm.esm.js +1 -1
- package/lv.async.esm.esm.js +1 -1
- package/md.transition.esm.js +4 -0
- package/mllike.esm.js +1 -0
- package/ms.async.esm.esm.js +1 -1
- package/nb.async.esm.esm.js +1 -1
- package/nl-be.async.esm.esm.js +1 -1
- package/nl.async.esm.esm.js +1 -1
- package/package.json +1 -1
- package/pl.async.esm.esm.js +1 -1
- package/pt-br.async.esm.esm.js +1 -1
- package/pt.async.esm.esm.js +1 -1
- package/python.esm.js +1 -0
- package/ro.async.esm.esm.js +1 -1
- package/rpm.esm.js +1 -0
- package/ru.async.esm.esm.js +1 -1
- package/sk.async.esm.esm.js +1 -1
- package/skeletons/CompactListShimmer.d.ts +7 -0
- package/skeletons/EventGridShimmerItem.d.ts +2 -0
- package/skeletons/EventShimmerListItem.d.ts +2 -0
- package/skeletons/ListShimmer.d.ts +7 -0
- package/skeletons/NewsGridShimmerItem.d.ts +4 -0
- package/skeletons/NewsHeroShimmer.d.ts +6 -0
- package/skeletons/NewsShimmerListItem.d.ts +4 -0
- package/skeletons/PageGridShimmerItem.d.ts +4 -0
- package/skeletons/PageShimmerListItem.d.ts +2 -0
- package/skeletons/PublishableItemGridShimmer.d.ts +9 -0
- package/skeletons/utils.d.ts +1 -0
- package/sl.async.esm.esm.js +1 -1
- package/sql.esm.js +1 -0
- package/sr-latn.async.esm.esm.js +1 -1
- package/sr.async.esm.esm.js +1 -1
- package/status-tap.esm.js +4 -0
- package/sv.async.esm.esm.js +1 -1
- package/swipe-back.esm.js +4 -0
- package/swiper.bundle.esm.js +4 -0
- package/ta.async.esm.esm.js +1 -1
- package/te.async.esm.esm.js +1 -1
- package/th.async.esm.esm.js +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/tr.async.esm2.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/uk.async.esm.esm.js +1 -1
- package/vi.async.esm.esm.js +1 -1
- package/web.esm.js +1 -0
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/zh-cn.async.esm.esm.js +1 -1
- package/zh-hk.async.esm.esm.js +1 -1
- package/zh-tw.async.esm.esm.js +1 -1
- package/NewsDetailPreview.d.ts +0 -7
- package/ar-dz.async.esm2.esm.js +0 -1
- package/ar-kw.async.esm.esm.js +0 -1
- package/ar-ly.async.esm.esm.js +0 -1
- package/ar-ma.async.esm2.esm.js +0 -1
- package/ar-sa.async.esm2.esm.js +0 -1
- package/ar.esm.js +0 -1
- package/bg.async.esm2.esm.js +0 -1
- package/bn.async.esm2.esm.js +0 -1
- package/ca.async.esm2.esm.js +0 -1
- package/cs.async.esm2.esm.js +0 -1
- package/de-ch.async.esm.esm.js +0 -1
- package/de.async.esm3.esm.js +0 -1
- package/de.esm.js +0 -1
- package/el.async.esm2.esm.js +0 -1
- package/en-au.async.esm2.esm.js +0 -1
- package/en-ca.async.esm2.esm.js +0 -1
- package/en-gb.async.esm2.esm.js +0 -1
- package/en-il.async.esm.esm.js +0 -1
- package/en-nz.async.esm2.esm.js +0 -1
- package/en-sg.async.esm.esm.js +0 -1
- package/en.esm.js +0 -1
- package/es-do.async.esm.esm.js +0 -1
- package/es-us.async.esm.esm.js +0 -1
- package/es.async.esm3.esm.js +0 -1
- package/es.esm.js +0 -1
- package/et.async.esm2.esm.js +0 -1
- package/fa.async.esm.esm.js +0 -1
- package/fi.async.esm2.esm.js +0 -1
- package/fr-ca.async.esm2.esm.js +0 -1
- package/fr-ch.async.esm2.esm.js +0 -1
- package/fr.async.esm3.esm.js +0 -1
- package/fr.esm.js +0 -1
- package/gu.async.esm2.esm.js +0 -1
- package/he.async.esm2.esm.js +0 -1
- package/hi.async.esm2.esm.js +0 -1
- package/hr.async.esm2.esm.js +0 -1
- package/hu.async.esm2.esm.js +0 -1
- package/id.async.esm2.esm.js +0 -1
- package/it.async.esm3.esm.js +0 -1
- package/it.esm.js +0 -1
- package/ja.async.esm3.esm.js +0 -1
- package/ja.esm.js +0 -1
- package/kn.async.esm2.esm.js +0 -1
- package/ko.async.esm2.esm.js +0 -1
- package/lt.async.esm2.esm.js +0 -1
- package/lv.async.esm2.esm.js +0 -1
- package/ml.async.esm.esm.js +0 -1
- package/mr.async.esm.esm.js +0 -1
- package/ms-my.async.esm.esm.js +0 -1
- package/ms.async.esm2.esm.js +0 -1
- package/ms.esm.js +0 -1
- package/nb.async.esm2.esm.js +0 -1
- package/nl-be.async.esm2.esm.js +0 -1
- package/nl.async.esm2.esm.js +0 -1
- package/nl.esm.js +0 -1
- package/pl.async.esm2.esm.js +0 -1
- package/pt-br.async.esm2.esm.js +0 -1
- package/pt.async.esm2.esm.js +0 -1
- package/pt.esm.js +0 -1
- package/ro.async.esm2.esm.js +0 -1
- package/ru.async.esm2.esm.js +0 -1
- package/sk.async.esm2.esm.js +0 -1
- package/sl.async.esm2.esm.js +0 -1
- package/sr-cyrl.async.esm.esm.js +0 -1
- package/sr.async.esm2.esm.js +0 -1
- package/sr.esm.js +0 -1
- package/sv.async.esm2.esm.js +0 -1
- package/sw.async.esm.esm.js +0 -1
- package/ta.async.esm2.esm.js +0 -1
- package/te.async.esm2.esm.js +0 -1
- package/th.async.esm2.esm.js +0 -1
- package/tr.async.esm3.esm.js +0 -1
- package/tr.esm.js +0 -1
- package/uk.async.esm2.esm.js +0 -1
- package/vi.async.esm2.esm.js +0 -1
- package/zh-cn.async.esm3.esm.js +0 -1
- package/zh-tw.async.esm3.esm.js +0 -1
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
import{F as r,y as e,z as t}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";const n=Object.freeze(Object.defineProperty({__proto__:null,default: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}},Symbol.toStringTag,{value:"Module"}));for(var o={},a={},i=[],u=0;u<64;)i[u]=0|4294967296*Math.sin(++u%Math.PI);const c=Object.freeze(Object.defineProperty({__proto__:null,default:function(r){var e,t,n,o=[e=1732584193,t=4023233417,~e,~t],a=[],c=unescape(encodeURI(r))+"",f=c.length;for(r=--f/4+2|15,a[--r]=8*f;~f;)a[f>>2]|=c.charCodeAt(f)<<8*f--;for(u=c=0;u<r;u+=16){for(f=o;c<64;f=[n=f[3],e+((n=f[0]+[e&t|~e&n,n&e|~n&t,e^t^n,t^(e|~n)][f=c>>4]+i[c]+~~a[u|15&[c,5*c+1,3*c+5,7*c][f]])<<(f=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*f+c++%4])|n>>>-f),e,t])e=0|f[1],t=f[2];for(c=4;c;)o[--c]+=f[c]}for(r="";c<32;)r+=(o[c>>3]>>4*(1^c++)&15).toString(16);return r}},Symbol.toStringTag,{value:"Module"})),f=e(c),l=e(n);
|
|
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=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY;
|
|
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
|
+
*/var y=
|
|
36
|
+
/**
|
|
37
|
+
* @license Apache-2.0
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
40
|
+
*
|
|
41
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
|
+
* you may not use this file except in compliance with the License.
|
|
43
|
+
* You may obtain a copy of the License at
|
|
44
|
+
*
|
|
45
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
46
|
+
*
|
|
47
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
48
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
49
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
50
|
+
* See the License for the specific language governing permissions and
|
|
51
|
+
* limitations under the License.
|
|
52
|
+
*/
|
|
53
|
+
function(r){return r!=r},v=y,d=s,h=p;
|
|
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 m=function(r){return r===d||r===h},b=m,g="function"==typeof Object.defineProperty?Object.defineProperty:null;
|
|
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 _=function(){try{return g({},"x",{}),!0}catch(r){return!1}},w=Object.defineProperty,j=Object.prototype,A=j.toString,O=j.__defineGetter__,k=j.__defineSetter__,S=j.__lookupGetter__,N=j.__lookupSetter__;
|
|
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 E=function(r,e,t){var n,o,a,i;if("object"!=typeof r||null===r||"[object Array]"===A.call(r))throw new TypeError("invalid argument. First argument must be an object. Value: `"+r+"`.");if("object"!=typeof t||null===t||"[object Array]"===A.call(t))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+t+"`.");if((o="value"in t)&&(S.call(r,e)||N.call(r,e)?(n=r.__proto__,r.__proto__=j,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&&O&&O.call(r,e,t.get),i&&k&&k.call(r,e,t.set),r},U=w,I=E,P=_()?U:I;
|
|
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 M=function(r,e,t){P(r,e,{configurable:!1,enumerable:!1,writable:!1,value:t})},F=M;
|
|
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
|
+
*/var T=
|
|
139
|
+
/**
|
|
140
|
+
* @license Apache-2.0
|
|
141
|
+
*
|
|
142
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
143
|
+
*
|
|
144
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
145
|
+
* you may not use this file except in compliance with the License.
|
|
146
|
+
* You may obtain a copy of the License at
|
|
147
|
+
*
|
|
148
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
149
|
+
*
|
|
150
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
151
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
152
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
153
|
+
* See the License for the specific language governing permissions and
|
|
154
|
+
* limitations under the License.
|
|
155
|
+
*/
|
|
156
|
+
function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
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 H=function(){return T&&"symbol"==typeof Symbol.toStringTag},C=Object.prototype.toString,J=C;
|
|
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 D=function(r){return J.call(r)},G=Object.prototype.hasOwnProperty;
|
|
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 L=function(r,e){return null!=r&&G.call(r,e)},x=L,R="function"==typeof Symbol?Symbol.toStringTag:"",V=x,W=R,z=C;
|
|
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 B=function(r){var e,t,n;if(null==r)return z.call(r);t=r[W],e=V(r,W);try{r[W]=void 0}catch(e){return z.call(r)}return n=z.call(r),e?r[W]=t:delete r[W],n},Q=D,Y=B,q=H()?Y:Q,K=q,X="function"==typeof Uint32Array;
|
|
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 Z=function(r){return X&&r instanceof Uint32Array||"[object Uint32Array]"===K(r)},$="function"==typeof Uint32Array?Uint32Array:null,rr=Z,er=4294967295,tr=$;
|
|
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 nr=function(){var r,e;if("function"!=typeof tr)return!1;try{e=new tr(e=[1,3.14,-3.14,er+1,er+2]),r=rr(e)&&1===e[0]&&3===e[1]&&e[2]===er-2&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
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
|
+
*/var or="function"==typeof Uint32Array?Uint32Array:void 0,ar=
|
|
276
|
+
/**
|
|
277
|
+
* @license Apache-2.0
|
|
278
|
+
*
|
|
279
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
280
|
+
*
|
|
281
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
282
|
+
* you may not use this file except in compliance with the License.
|
|
283
|
+
* You may obtain a copy of the License at
|
|
284
|
+
*
|
|
285
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
286
|
+
*
|
|
287
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
288
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
289
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
290
|
+
* See the License for the specific language governing permissions and
|
|
291
|
+
* limitations under the License.
|
|
292
|
+
*/
|
|
293
|
+
function(){throw new Error("not implemented")},ir=nr()?or:ar,ur=q,cr="function"==typeof Float64Array;
|
|
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 fr=function(r){return cr&&r instanceof Float64Array||"[object Float64Array]"===ur(r)},lr="function"==typeof Float64Array?Float64Array:null,sr=fr,pr=lr;
|
|
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 yr=function(){var r,e;if("function"!=typeof pr)return!1;try{e=new pr([1,3.14,-3.14,NaN]),r=sr(e)&&1===e[0]&&3.14===e[1]&&-3.14===e[2]&&e[3]!=e[3]}catch(e){r=!1}return r};
|
|
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
|
+
*/var vr="function"==typeof Float64Array?Float64Array:void 0,dr=
|
|
345
|
+
/**
|
|
346
|
+
* @license Apache-2.0
|
|
347
|
+
*
|
|
348
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
349
|
+
*
|
|
350
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
351
|
+
* you may not use this file except in compliance with the License.
|
|
352
|
+
* You may obtain a copy of the License at
|
|
353
|
+
*
|
|
354
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
355
|
+
*
|
|
356
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
357
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
358
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
359
|
+
* See the License for the specific language governing permissions and
|
|
360
|
+
* limitations under the License.
|
|
361
|
+
*/
|
|
362
|
+
function(){throw new Error("not implemented")},hr=yr()?vr:dr,mr=q,br="function"==typeof Uint8Array;
|
|
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 gr=function(r){return br&&r instanceof Uint8Array||"[object Uint8Array]"===mr(r)},_r="function"==typeof Uint8Array?Uint8Array:null,wr=gr,jr=_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 Ar=function(){var r,e;if("function"!=typeof jr)return!1;try{e=new jr(e=[1,3.14,-3.14,256,257]),r=wr(e)&&1===e[0]&&3===e[1]&&253===e[2]&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
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
|
+
*/var Or="function"==typeof Uint8Array?Uint8Array:void 0,kr=
|
|
414
|
+
/**
|
|
415
|
+
* @license Apache-2.0
|
|
416
|
+
*
|
|
417
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
418
|
+
*
|
|
419
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
420
|
+
* you may not use this file except in compliance with the License.
|
|
421
|
+
* You may obtain a copy of the License at
|
|
422
|
+
*
|
|
423
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
424
|
+
*
|
|
425
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
426
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
427
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
428
|
+
* See the License for the specific language governing permissions and
|
|
429
|
+
* limitations under the License.
|
|
430
|
+
*/
|
|
431
|
+
function(){throw new Error("not implemented")},Sr=Ar()?Or:kr,Nr=q,Er="function"==typeof Uint16Array;
|
|
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 Ur=function(r){return Er&&r instanceof Uint16Array||"[object Uint16Array]"===Nr(r)},Ir="function"==typeof Uint16Array?Uint16Array:null,Pr=Ur,Mr=65535,Fr=Ir;
|
|
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 Tr=function(){var r,e;if("function"!=typeof Fr)return!1;try{e=new Fr(e=[1,3.14,-3.14,Mr+1,Mr+2]),r=Pr(e)&&1===e[0]&&3===e[1]&&e[2]===Mr-2&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
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
|
+
*/var Hr,Cr="function"==typeof Uint16Array?Uint16Array:void 0,Jr=
|
|
483
|
+
/**
|
|
484
|
+
* @license Apache-2.0
|
|
485
|
+
*
|
|
486
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
487
|
+
*
|
|
488
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
489
|
+
* you may not use this file except in compliance with the License.
|
|
490
|
+
* You may obtain a copy of the License at
|
|
491
|
+
*
|
|
492
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
493
|
+
*
|
|
494
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
495
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
496
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
497
|
+
* See the License for the specific language governing permissions and
|
|
498
|
+
* limitations under the License.
|
|
499
|
+
*/
|
|
500
|
+
function(){throw new Error("not implemented")},Dr={uint16:Tr()?Cr:Jr,uint8:Sr};
|
|
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
|
+
*/(Hr=new Dr.uint16(1))[0]=4660;var Gr,Lr,xr=52===new Dr.uint8(Hr.buffer)[0];
|
|
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
|
+
*/!0===xr?(Gr=1,Lr=0):(Gr=0,Lr=1);var Rr=ir,Vr={HIGH:Gr,LOW:Lr},Wr=new hr(1),zr=new Rr(Wr.buffer),Br=Vr.HIGH,Qr=Vr.LOW;
|
|
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 Yr=function(r,e,t,n){return Wr[0]=r,e[n]=zr[Br],e[n+t]=zr[Qr],e},qr=Yr;
|
|
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
|
+
*/var Kr=function(r){return qr(r,[0,0],1,0)},Xr=Kr;
|
|
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
|
+
*/F(Xr,"assign",Yr);var Zr=Xr,$r=ir,re=!0===xr?1:0,ee=new hr(1),te=new $r(ee.buffer);
|
|
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
|
+
*/var ne,oe,ae=function(r){return ee[0]=r,te[re]},ie=ae;
|
|
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
|
+
*/!0===xr?(ne=1,oe=0):(ne=0,oe=1);var ue=ir,ce={HIGH:ne,LOW:oe},fe=new hr(1),le=new ue(fe.buffer),se=ce.HIGH,pe=ce.LOW;
|
|
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 ye=function(r,e){return le[se]=r,le[pe]=e,fe[0]},ve=ye,de=Zr,he=ie,me=ve,be=[0,0];
|
|
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 ge=function(r,e){var t,n;return de.assign(r,be,1,0),t=be[0],t&=2147483647,n=he(e),me(t|=n&=2147483648,be[1])},_e=ge;
|
|
654
|
+
/**
|
|
655
|
+
* @license Apache-2.0
|
|
656
|
+
*
|
|
657
|
+
* Copyright (c) 2018 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
|
+
*/var we=
|
|
671
|
+
/**
|
|
672
|
+
* @license Apache-2.0
|
|
673
|
+
*
|
|
674
|
+
* Copyright (c) 2021 The Stdlib Authors.
|
|
675
|
+
*
|
|
676
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
677
|
+
* you may not use this file except in compliance with the License.
|
|
678
|
+
* You may obtain a copy of the License at
|
|
679
|
+
*
|
|
680
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
681
|
+
*
|
|
682
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
683
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
684
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
685
|
+
* See the License for the specific language governing permissions and
|
|
686
|
+
* limitations under the License.
|
|
687
|
+
*/
|
|
688
|
+
function(r){return Math.abs(r)},je=b,Ae=v,Oe=we;
|
|
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 ke=function(r,e,t,n){return Ae(r)||je(r)?(e[n]=r,e[n+t]=0,e):0!==r&&Oe(r)<22250738585072014e-324?(e[n]=4503599627370496*r,e[n+t]=-52,e):(e[n]=r,e[n+t]=0,e)},Se=ke;
|
|
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
|
+
*/var Ne=function(r){return Se(r,[0,0],1,0)},Ee=Ne;
|
|
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
|
+
*/F(Ee,"assign",ke);var Ue=ie;
|
|
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 Ie=function(r){var e=Ue(r);return(e=(2146435072&e)>>>20)-1023|0},Pe=s,Me=p,Fe=v,Te=b,He=_e,Ce=Ee,Je=Ie,De=Zr,Ge=ve,Le=[0,0],xe=[0,0];
|
|
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
|
+
*/var Re=function(r,e){var t,n;return 0===r||Fe(r)||Te(r)?r:(Ce(Le),e+=Le[1],(e+=Je(r=Le[0]))<-1074?He(0,r):e>1023?r<0?Me:Pe:(e<=-1023?(e+=52,n=2220446049250313e-31):n=1,De(xe),t=xe[0],t&=2148532223,n*Ge(t|=e+1023<<20,xe[1])))},Ve=Re;
|
|
774
|
+
/**
|
|
775
|
+
* @license Apache-2.0
|
|
776
|
+
*
|
|
777
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
778
|
+
*
|
|
779
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
780
|
+
* you may not use this file except in compliance with the License.
|
|
781
|
+
* You may obtain a copy of the License at
|
|
782
|
+
*
|
|
783
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
784
|
+
*
|
|
785
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
786
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
787
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
788
|
+
* See the License for the specific language governing permissions and
|
|
789
|
+
* limitations under the License.
|
|
790
|
+
*/const We=e(t);var ze={},Be=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ze,"__esModule",{value:!0}),ze.unset=void 0;var Qe=Be(l);ze.unset=function(r,e){if((0,Qe.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 Ye=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(a,"__esModule",{value:!0});var qe=Ye(f),Ke=Ye(l),Xe=Ye(Ve),Ze=We,$e=ze;function rt(r,e){tt(r,e.drop,(function(r,e){e.forEach((function(e){return delete r[e]}))}))}function et(r,e){tt(r,e.allow,(function(r,e){Object.keys(r).forEach((function(t){e.includes(t)||delete r[t]}))}))}function tt(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,Ke.default)(r,n);Array.isArray(i)?i.forEach(a):a(i)}))}function nt(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,Ke.default)(t,a.join("."))):i=r,"object"==typeof i){if(o.copy){var u=(0,Ke.default)(t,o.copy);void 0!==u&&(0,Ze.dset)(r,n,u)}else if(o.move){var c=(0,Ke.default)(t,o.move);void 0!==c&&(0,Ze.dset)(r,n,c),(0,$e.unset)(r,o.move)}else o.hasOwnProperty("set")&&(0,Ze.dset)(r,n,o.set);if(o.to_string){var f=(0,Ke.default)(r,n);if("string"==typeof f||"object"==typeof f&&null!==f)continue;void 0!==f?(0,Ze.dset)(r,n,JSON.stringify(f)):(0,Ze.dset)(r,n,"undefined")}}}}function ot(r,e){return!(e.sample.percent<=0)&&(e.sample.percent>=1||(e.sample.path?function(r,e){var t=(0,Ke.default)(r,e.sample.path),n=(0,qe.default)(JSON.stringify(t)),o=-64,a=[];at(n.slice(0,8),a);for(var i=0,u=0;u<64&&1!==a[u];u++)i++;if(0!==i){var c=[];at(n.slice(9,16),c),o-=i,a.splice(0,i),c.splice(64-i),a=a.concat(c)}return a[63]=0===a[63]?1:0,(0,Xe.default)(parseInt(a.join(""),2),o)<e.sample.percent}(r,e):function(r){return Math.random()<=r}(e.sample.percent)))}function at(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)}a.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":rt(t,a.config);break;case"allow_properties":et(t,a.config);break;case"sample_event":if(ot(t,a.config))break;return null;case"map_properties":nt(t,a.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(a.type,'" is unsupported.'))}}return t};var it={},ut=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(it,"__esModule",{value:!0});var ct=ut(l);function ft(r,e){if(!Array.isArray(r))return!0===lt(r,e);var t=r[0];switch(t){case"!":return!ft(r[1],e);case"or":for(var n=1;n<r.length;n++)if(ft(r[n],e))return!0;return!1;case"and":for(n=1;n<r.length;n++)if(!ft(r[n],e))return!1;return!0;case"=":case"!=":return function(r,e,t,n){switch(st(r)&&(r=ft(r,n)),st(e)&&(e=ft(e,n)),"object"==typeof r&&"object"==typeof e&&(r=JSON.stringify(r),e=JSON.stringify(e)),t){case"=":return r===e;case"!=":return r!==e;default:throw new Error("Invalid operator in compareItems: ".concat(t))}}(lt(r[1],e),lt(r[2],e),t,e);case"<=":case"<":case">":case">=":return function(r,e,t,n){if(st(r)&&(r=ft(r,n)),st(e)&&(e=ft(e,n)),"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))}}(lt(r[1],e),lt(r[2],e),t,e);case"in":return function(r,e,t){return void 0!==e.find((function(e){return lt(e,t)===r}))}(lt(r[1],e),lt(r[2],e),e);case"contains":return function(r,e){return"string"==typeof r&&"string"==typeof e&&-1!==r.indexOf(e)}(lt(r[1],e),lt(r[2],e));case"match":return function(r,e){return"string"==typeof r&&"string"==typeof e&&function(r,e){var t,n;r:for(;r.length>0;){var o=void 0,a=void 0;if(o=(t=pt(r)).star,a=t.chunk,r=t.pattern,o&&""===a)return!0;var i=yt(a,e),u=i.t,c=i.ok,f=i.err;if(f)return!1;if(!c||!(0===u.length||r.length>0)){if(o)for(var l=0;l<e.length;l++){if(u=(n=yt(a,e.slice(l+1))).t,c=n.ok,f=n.err,c){if(0===r.length&&u.length>0)continue;e=u;continue r}if(f)return!1}return!1}e=u}return 0===e.length}(e,r)}(lt(r[1],e),lt(r[2],e));case"lowercase":var o=lt(r[1],e);return"string"!=typeof o?null:o.toLowerCase();case"typeof":return typeof lt(r[1],e);case"length":return function(r){return null===r?0:Array.isArray(r)||"string"==typeof r?r.length:NaN}(lt(r[1],e));default:throw new Error("FQL IR could not evaluate for token: ".concat(t))}}function lt(r,e){return Array.isArray(r)?r:"object"==typeof r?r.value:(0,ct.default)(e,r)}function st(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 pt(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 yt(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,c=0;;){if(r.length>0&&"]"===r[0]&&c>0){r=r.slice(1);break}var f,l="";if(f=(t=vt(r)).char,r=t.newChunk,t.err||(l=f,"-"===r[0]&&(l=(n=vt(r.slice(1))).char,r=n.newChunk,n.err)))return o;f<=a&&a<=l&&(u=!0),c++}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 vt(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)}it.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=ft(r,e);return"boolean"==typeof t&&t}(e.ir,r);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}};var dt={};Object.defineProperty(dt,"__esModule",{value:!0});var ht=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}();dt.default=ht,function(e){var t=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.Store=e.matches=e.transform=void 0;var n=a;Object.defineProperty(e,"transform",{enumerable:!0,get:function(){return t(n).default}});var o=it;Object.defineProperty(e,"matches",{enumerable:!0,get:function(){return t(o).default}});var i=dt;Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return t(i).default}})}(o);var mt=function(r){return function(e){var t=e.payload,n=e.integration,a=e.next;new o.Store(r).getRulesByDestinationName(n).forEach((function(r){for(var e=r.matchers,n=r.transformers,i=0;i<e.length;i++)if(o.matches(t.obj,e[i])&&(t.obj=o.transform(t.obj,n[i]),null===t.obj))return a(null)})),a(t)}};export{mt as tsubMiddleware};
|