@viibe/impulse-integration-js 202605.3.0 → 202605.4.0
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/coverage/clover.xml +53 -54
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/index.html +15 -15
- package/coverage/lcov-report/index.js.html +15 -18
- package/coverage/lcov.info +100 -103
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.js +7 -8
- package/test/dist.test.js +9 -9
package/coverage/clover.xml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1779896223399" clover="3.2.0">
|
|
3
|
+
<project timestamp="1779896223399" name="All files">
|
|
4
|
+
<metrics statements="105" coveredstatements="45" conditionals="68" coveredconditionals="22" methods="22" coveredmethods="6" elements="195" coveredelements="73" complexity="0" loc="105" ncloc="105" packages="1" files="1" classes="1"/>
|
|
5
5
|
<file name="index.js" path="/home/jenkins/workspace/VIIBE_viibe-impulse_main/impulse-integration-js/src/index.js">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="105" coveredstatements="45" conditionals="68" coveredconditionals="22" methods="22" coveredmethods="6"/>
|
|
7
7
|
<line num="1" count="1" type="stmt"/>
|
|
8
8
|
<line num="4" count="8" type="stmt"/>
|
|
9
9
|
<line num="5" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
@@ -52,64 +52,63 @@
|
|
|
52
52
|
<line num="144" count="9" type="stmt"/>
|
|
53
53
|
<line num="145" count="9" type="stmt"/>
|
|
54
54
|
<line num="146" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
55
|
-
<line num="147" count="8" type="
|
|
56
|
-
<line num="
|
|
57
|
-
<line num="
|
|
58
|
-
<line num="
|
|
59
|
-
<line num="156" count="
|
|
60
|
-
<line num="
|
|
61
|
-
<line num="160" count="
|
|
62
|
-
<line num="
|
|
63
|
-
<line num="
|
|
55
|
+
<line num="147" count="8" type="stmt"/>
|
|
56
|
+
<line num="149" count="8" type="stmt"/>
|
|
57
|
+
<line num="151" count="8" type="stmt"/>
|
|
58
|
+
<line num="155" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
59
|
+
<line num="156" count="1" type="stmt"/>
|
|
60
|
+
<line num="159" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
61
|
+
<line num="160" count="1" type="stmt"/>
|
|
62
|
+
<line num="163" count="1" type="stmt"/>
|
|
63
|
+
<line num="165" count="1" type="stmt"/>
|
|
64
64
|
<line num="166" count="1" type="stmt"/>
|
|
65
65
|
<line num="167" count="1" type="stmt"/>
|
|
66
|
-
<line num="
|
|
67
|
-
<line num="
|
|
68
|
-
<line num="174" count="
|
|
69
|
-
<line num="
|
|
70
|
-
<line num="178" count="
|
|
71
|
-
<line num="
|
|
72
|
-
<line num="
|
|
73
|
-
<line num="
|
|
66
|
+
<line num="169" count="1" type="stmt"/>
|
|
67
|
+
<line num="173" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
68
|
+
<line num="174" count="1" type="stmt"/>
|
|
69
|
+
<line num="177" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
70
|
+
<line num="178" count="1" type="stmt"/>
|
|
71
|
+
<line num="181" count="1" type="stmt"/>
|
|
72
|
+
<line num="183" count="1" type="stmt"/>
|
|
73
|
+
<line num="185" count="1" type="stmt"/>
|
|
74
74
|
<line num="186" count="1" type="stmt"/>
|
|
75
75
|
<line num="187" count="1" type="stmt"/>
|
|
76
76
|
<line num="188" count="1" type="stmt"/>
|
|
77
|
-
<line num="
|
|
78
|
-
<line num="
|
|
79
|
-
<line num="
|
|
80
|
-
<line num="
|
|
81
|
-
<line num="
|
|
82
|
-
<line num="
|
|
83
|
-
<line num="228" count="
|
|
84
|
-
<line num="
|
|
85
|
-
<line num="
|
|
86
|
-
<line num="247" count="0" type="
|
|
87
|
-
<line num="248" count="0" type="
|
|
88
|
-
<line num="
|
|
89
|
-
<line num="258" count="0" type="
|
|
90
|
-
<line num="
|
|
91
|
-
<line num="262" count="0" type="
|
|
92
|
-
<line num="
|
|
93
|
-
<line num="267" count="0" type="
|
|
94
|
-
<line num="
|
|
95
|
-
<line num="271" count="0" type="
|
|
96
|
-
<line num="
|
|
97
|
-
<line num="
|
|
98
|
-
<line num="
|
|
77
|
+
<line num="190" count="1" type="stmt"/>
|
|
78
|
+
<line num="192" count="1" type="stmt"/>
|
|
79
|
+
<line num="205" count="2" type="stmt"/>
|
|
80
|
+
<line num="207" count="2" type="stmt"/>
|
|
81
|
+
<line num="209" count="2" type="stmt"/>
|
|
82
|
+
<line num="227" count="2" type="stmt"/>
|
|
83
|
+
<line num="228" count="28" type="cond" truecount="2" falsecount="0"/>
|
|
84
|
+
<line num="231" count="2" type="stmt"/>
|
|
85
|
+
<line num="246" count="0" type="stmt"/>
|
|
86
|
+
<line num="247" count="0" type="cond" truecount="0" falsecount="3"/>
|
|
87
|
+
<line num="248" count="0" type="stmt"/>
|
|
88
|
+
<line num="257" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
89
|
+
<line num="258" count="0" type="stmt"/>
|
|
90
|
+
<line num="261" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
91
|
+
<line num="262" count="0" type="stmt"/>
|
|
92
|
+
<line num="266" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
93
|
+
<line num="267" count="0" type="stmt"/>
|
|
94
|
+
<line num="270" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
95
|
+
<line num="271" count="0" type="stmt"/>
|
|
96
|
+
<line num="274" count="0" type="stmt"/>
|
|
97
|
+
<line num="286" count="1" type="cond" truecount="2" falsecount="3"/>
|
|
98
|
+
<line num="289" count="0" type="stmt"/>
|
|
99
99
|
<line num="290" count="0" type="stmt"/>
|
|
100
100
|
<line num="291" count="0" type="stmt"/>
|
|
101
|
-
<line num="
|
|
102
|
-
<line num="
|
|
103
|
-
<line num="
|
|
104
|
-
<line num="
|
|
101
|
+
<line num="294" count="1" type="stmt"/>
|
|
102
|
+
<line num="300" count="1" type="stmt"/>
|
|
103
|
+
<line num="304" count="0" type="stmt"/>
|
|
104
|
+
<line num="313" count="0" type="stmt"/>
|
|
105
105
|
<line num="314" count="0" type="stmt"/>
|
|
106
|
-
<line num="
|
|
107
|
-
<line num="
|
|
108
|
-
<line num="
|
|
109
|
-
<line num="324" count="1" type="
|
|
110
|
-
<line num="
|
|
111
|
-
<line num="328" count="1" type="
|
|
112
|
-
<line num="329" count="1" type="stmt"/>
|
|
106
|
+
<line num="316" count="0" type="stmt"/>
|
|
107
|
+
<line num="321" count="1" type="stmt"/>
|
|
108
|
+
<line num="323" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
109
|
+
<line num="324" count="1" type="stmt"/>
|
|
110
|
+
<line num="327" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
111
|
+
<line num="328" count="1" type="stmt"/>
|
|
113
112
|
</file>
|
|
114
113
|
</project>
|
|
115
114
|
</coverage>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
{"/home/jenkins/workspace/VIIBE_viibe-impulse_main/impulse-integration-js/src/index.js": {"path":"/home/jenkins/workspace/VIIBE_viibe-impulse_main/impulse-integration-js/src/index.js","statementMap":{"0":{"start":{"line":1,"column":11},"end":{"line":1,"column":24}},"1":{"start":{"line":4,"column":2},"end":{"line":6,"column":4}},"2":{"start":{"line":5,"column":4},"end":{"line":5,"column":74}},"3":{"start":{"line":10,"column":14},"end":{"line":10,"column":26}},"4":{"start":{"line":11,"column":17},"end":{"line":11,"column":47}},"5":{"start":{"line":13,"column":16},"end":{"line":13,"column":19}},"6":{"start":{"line":14,"column":17},"end":{"line":14,"column":20}},"7":{"start":{"line":15,"column":14},"end":{"line":15,"column":15}},"8":{"start":{"line":16,"column":32},"end":{"line":16,"column":35}},"9":{"start":{"line":18,"column":15},"end":{"line":18,"column":58}},"10":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":23},"end":{"line":33,"column":3}},"12":{"start":{"line":36,"column":2},"end":{"line":104,"column":5}},"13":{"start":{"line":37,"column":16},"end":{"line":37,"column":74}},"14":{"start":{"line":39,"column":4},"end":{"line":42,"column":5}},"15":{"start":{"line":41,"column":6},"end":{"line":41,"column":38}},"16":{"start":{"line":45,"column":23},"end":{"line":51,"column":29}},"17":{"start":{"line":46,"column":6},"end":{"line":49,"column":7}},"18":{"start":{"line":47,"column":8},"end":{"line":47,"column":18}},"19":{"start":{"line":48,"column":8},"end":{"line":48,"column":18}},"20":{"start":{"line":56,"column":6},"end":{"line":56,"column":35}},"21":{"start":{"line":62,"column":6},"end":{"line":62,"column":55}},"22":{"start":{"line":63,"column":6},"end":{"line":63,"column":32}},"23":{"start":{"line":68,"column":6},"end":{"line":70,"column":7}},"24":{"start":{"line":69,"column":8},"end":{"line":69,"column":20}},"25":{"start":{"line":73,"column":6},"end":{"line":76,"column":7}},"26":{"start":{"line":74,"column":8},"end":{"line":74,"column":18}},"27":{"start":{"line":75,"column":8},"end":{"line":75,"column":34}},"28":{"start":{"line":78,"column":6},"end":{"line":81,"column":7}},"29":{"start":{"line":79,"column":8},"end":{"line":79,"column":18}},"30":{"start":{"line":80,"column":8},"end":{"line":80,"column":33}},"31":{"start":{"line":84,"column":6},"end":{"line":98,"column":7}},"32":{"start":{"line":85,"column":8},"end":{"line":96,"column":9}},"33":{"start":{"line":87,"column":10},"end":{"line":87,"column":20}},"34":{"start":{"line":89,"column":10},"end":{"line":89,"column":37}},"35":{"start":{"line":91,"column":10},"end":{"line":91,"column":20}},"36":{"start":{"line":93,"column":10},"end":{"line":93,"column":36}},"37":{"start":{"line":100,"column":6},"end":{"line":100,"column":18}},"38":{"start":{"line":103,"column":4},"end":{"line":103,"column":50}},"39":{"start":{"line":107,"column":26},"end":{"line":107,"column":42}},"40":{"start":{"line":108,"column":26},"end":{"line":108,"column":31}},"41":{"start":{"line":113,"column":4},"end":{"line":113,"column":21}},"42":{"start":{"line":117,"column":23},"end":{"line":117,"column":40}},"43":{"start":{"line":118,"column":16},"end":{"line":118,"column":97}},"44":{"start":{"line":120,"column":4},"end":{"line":120,"column":30}},"45":{"start":{"line":144,"column":4},"end":{"line":144,"column":23}},"46":{"start":{"line":145,"column":4},"end":{"line":145,"column":29}},"47":{"start":{"line":146,"column":4},"end":{"line":146,"column":101}},"48":{"start":{"line":147,"column":4},"end":{"line":147,"column":103}},"49":{"start":{"line":148,"column":4},"end":{"line":148,"column":33}},"50":{"start":{"line":150,"column":4},"end":{"line":150,"column":55}},"51":{"start":{"line":152,"column":4},"end":{"line":152,"column":66}},"52":{"start":{"line":156,"column":4},"end":{"line":158,"column":5}},"53":{"start":{"line":157,"column":6},"end":{"line":157,"column":34}},"54":{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},"55":{"start":{"line":161,"column":6},"end":{"line":161,"column":36}},"56":{"start":{"line":164,"column":19},"end":{"line":164,"column":51}},"57":{"start":{"line":166,"column":4},"end":{"line":166,"column":75}},"58":{"start":{"line":167,"column":4},"end":{"line":167,"column":41}},"59":{"start":{"line":168,"column":4},"end":{"line":168,"column":74}},"60":{"start":{"line":170,"column":4},"end":{"line":170,"column":18}},"61":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"62":{"start":{"line":175,"column":6},"end":{"line":175,"column":34}},"63":{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},"64":{"start":{"line":179,"column":6},"end":{"line":179,"column":36}},"65":{"start":{"line":182,"column":16},"end":{"line":182,"column":47}},"66":{"start":{"line":184,"column":19},"end":{"line":184,"column":51}},"67":{"start":{"line":186,"column":4},"end":{"line":186,"column":75}},"68":{"start":{"line":187,"column":4},"end":{"line":187,"column":72}},"69":{"start":{"line":188,"column":4},"end":{"line":188,"column":21}},"70":{"start":{"line":189,"column":4},"end":{"line":189,"column":98}},"71":{"start":{"line":191,"column":4},"end":{"line":191,"column":65}},"72":{"start":{"line":191,"column":41},"end":{"line":191,"column":63}},"73":{"start":{"line":193,"column":4},"end":{"line":193,"column":18}},"74":{"start":{"line":206,"column":8},"end":{"line":206,"column":14}},"75":{"start":{"line":208,"column":16},"end":{"line":208,"column":65}},"76":{"start":{"line":210,"column":22},"end":{"line":225,"column":5}},"77":{"start":{"line":228,"column":4},"end":{"line":230,"column":5}},"78":{"start":{"line":229,"column":6},"end":{"line":229,"column":79}},"79":{"start":{"line":229,"column":58},"end":{"line":229,"column":79}},"80":{"start":{"line":232,"column":4},"end":{"line":232,"column":47}},"81":{"start":{"line":247,"column":4},"end":{"line":249,"column":52}},"82":{"start":{"line":248,"column":25},"end":{"line":248,"column":120}},"83":{"start":{"line":249,"column":22},"end":{"line":249,"column":50}},"84":{"start":{"line":258,"column":4},"end":{"line":260,"column":5}},"85":{"start":{"line":259,"column":6},"end":{"line":259,"column":18}},"86":{"start":{"line":262,"column":4},"end":{"line":264,"column":5}},"87":{"start":{"line":263,"column":6},"end":{"line":263,"column":95}},"88":{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},"89":{"start":{"line":268,"column":6},"end":{"line":268,"column":76}},"90":{"start":{"line":271,"column":4},"end":{"line":273,"column":5}},"91":{"start":{"line":272,"column":6},"end":{"line":272,"column":76}},"92":{"start":{"line":275,"column":4},"end":{"line":275,"column":16}},"93":{"start":{"line":287,"column":4},"end":{"line":293,"column":5}},"94":{"start":{"line":290,"column":6},"end":{"line":290,"column":23}},"95":{"start":{"line":291,"column":6},"end":{"line":291,"column":25}},"96":{"start":{"line":292,"column":6},"end":{"line":292,"column":20}},"97":{"start":{"line":295,"column":20},"end":{"line":299,"column":5}},"98":{"start":{"line":301,"column":4},"end":{"line":301,"column":32}},"99":{"start":{"line":305,"column":4},"end":{"line":305,"column":47}},"100":{"start":{"line":314,"column":31},"end":{"line":314,"column":48}},"101":{"start":{"line":315,"column":16},"end":{"line":315,"column":82}},"102":{"start":{"line":317,"column":4},"end":{"line":317,"column":30}},"103":{"start":{"line":322,"column":0},"end":{"line":322,"column":23}},"104":{"start":{"line":324,"column":0},"end":{"line":326,"column":1}},"105":{"start":{"line":325,"column":2},"end":{"line":325,"column":23}},"106":{"start":{"line":328,"column":0},"end":{"line":330,"column":1}},"107":{"start":{"line":329,"column":2},"end":{"line":329,"column":25}}},"fnMap":{"0":{"name":"isFromOrigin","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":21}},"loc":{"start":{"line":3,"column":30},"end":{"line":7,"column":1}},"line":3},"1":{"name":"isEventFromOrigin","decl":{"start":{"line":4,"column":18},"end":{"line":4,"column":35}},"loc":{"start":{"line":4,"column":43},"end":{"line":6,"column":3}},"line":4},"2":{"name":"openAuthPopup","decl":{"start":{"line":9,"column":9},"end":{"line":9,"column":22}},"loc":{"start":{"line":9,"column":28},"end":{"line":105,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":21},"end":{"line":36,"column":22}},"loc":{"start":{"line":36,"column":42},"end":{"line":104,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":45,"column":35},"end":{"line":45,"column":36}},"loc":{"start":{"line":45,"column":41},"end":{"line":51,"column":5}},"line":45},"5":{"name":"onClose","decl":{"start":{"line":54,"column":13},"end":{"line":54,"column":20}},"loc":{"start":{"line":54,"column":23},"end":{"line":57,"column":5}},"line":54},"6":{"name":"destroy","decl":{"start":{"line":61,"column":13},"end":{"line":61,"column":20}},"loc":{"start":{"line":61,"column":23},"end":{"line":64,"column":5}},"line":61},"7":{"name":"onMessage","decl":{"start":{"line":67,"column":13},"end":{"line":67,"column":22}},"loc":{"start":{"line":67,"column":30},"end":{"line":101,"column":5}},"line":67},"8":{"name":"(anonymous_8)","decl":{"start":{"line":112,"column":2},"end":{"line":112,"column":3}},"loc":{"start":{"line":112,"column":40},"end":{"line":114,"column":3}},"line":112},"9":{"name":"(anonymous_9)","decl":{"start":{"line":116,"column":2},"end":{"line":116,"column":3}},"loc":{"start":{"line":116,"column":26},"end":{"line":121,"column":3}},"line":116},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":2},"end":{"line":140,"column":3}},"loc":{"start":{"line":140,"column":23},"end":{"line":153,"column":3}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":155,"column":2},"end":{"line":155,"column":3}},"loc":{"start":{"line":155,"column":29},"end":{"line":171,"column":3}},"line":155},"12":{"name":"(anonymous_12)","decl":{"start":{"line":173,"column":2},"end":{"line":173,"column":3}},"loc":{"start":{"line":173,"column":33},"end":{"line":194,"column":3}},"line":173},"13":{"name":"(anonymous_13)","decl":{"start":{"line":191,"column":32},"end":{"line":191,"column":33}},"loc":{"start":{"line":191,"column":41},"end":{"line":191,"column":63}},"line":191},"14":{"name":"(anonymous_14)","decl":{"start":{"line":196,"column":2},"end":{"line":196,"column":3}},"loc":{"start":{"line":196,"column":33},"end":{"line":233,"column":3}},"line":196},"15":{"name":"(anonymous_15)","decl":{"start":{"line":246,"column":2},"end":{"line":246,"column":3}},"loc":{"start":{"line":246,"column":50},"end":{"line":250,"column":3}},"line":246},"16":{"name":"(anonymous_16)","decl":{"start":{"line":248,"column":14},"end":{"line":248,"column":15}},"loc":{"start":{"line":248,"column":25},"end":{"line":248,"column":120}},"line":248},"17":{"name":"(anonymous_17)","decl":{"start":{"line":249,"column":11},"end":{"line":249,"column":12}},"loc":{"start":{"line":249,"column":22},"end":{"line":249,"column":50}},"line":249},"18":{"name":"(anonymous_18)","decl":{"start":{"line":257,"column":2},"end":{"line":257,"column":3}},"loc":{"start":{"line":257,"column":19},"end":{"line":276,"column":3}},"line":257},"19":{"name":"(anonymous_19)","decl":{"start":{"line":286,"column":2},"end":{"line":286,"column":3}},"loc":{"start":{"line":286,"column":30},"end":{"line":302,"column":3}},"line":286},"20":{"name":"(anonymous_20)","decl":{"start":{"line":304,"column":2},"end":{"line":304,"column":3}},"loc":{"start":{"line":304,"column":23},"end":{"line":306,"column":3}},"line":304},"21":{"name":"(anonymous_21)","decl":{"start":{"line":313,"column":2},"end":{"line":313,"column":3}},"loc":{"start":{"line":313,"column":25},"end":{"line":318,"column":3}},"line":313}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":19},"end":{"line":5,"column":72}},"type":"binary-expr","locations":[{"start":{"line":5,"column":19},"end":{"line":5,"column":34}},{"start":{"line":5,"column":38},"end":{"line":5,"column":72}}],"line":5},"1":{"loc":{"start":{"line":39,"column":4},"end":{"line":42,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":42,"column":5}},{"start":{},"end":{}}],"line":39},"2":{"loc":{"start":{"line":46,"column":6},"end":{"line":49,"column":7}},"type":"if","locations":[{"start":{"line":46,"column":6},"end":{"line":49,"column":7}},{"start":{},"end":{}}],"line":46},"3":{"loc":{"start":{"line":68,"column":6},"end":{"line":70,"column":7}},"type":"if","locations":[{"start":{"line":68,"column":6},"end":{"line":70,"column":7}},{"start":{},"end":{}}],"line":68},"4":{"loc":{"start":{"line":73,"column":6},"end":{"line":76,"column":7}},"type":"if","locations":[{"start":{"line":73,"column":6},"end":{"line":76,"column":7}},{"start":{},"end":{}}],"line":73},"5":{"loc":{"start":{"line":78,"column":6},"end":{"line":81,"column":7}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":81,"column":7}},{"start":{},"end":{}}],"line":78},"6":{"loc":{"start":{"line":84,"column":6},"end":{"line":98,"column":7}},"type":"if","locations":[{"start":{"line":84,"column":6},"end":{"line":98,"column":7}},{"start":{},"end":{}}],"line":84},"7":{"loc":{"start":{"line":84,"column":10},"end":{"line":84,"column":62}},"type":"binary-expr","locations":[{"start":{"line":84,"column":10},"end":{"line":84,"column":20}},{"start":{"line":84,"column":24},"end":{"line":84,"column":40}},{"start":{"line":84,"column":44},"end":{"line":84,"column":62}}],"line":84},"8":{"loc":{"start":{"line":85,"column":8},"end":{"line":96,"column":9}},"type":"switch","locations":[{"start":{"line":86,"column":8},"end":{"line":89,"column":37}},{"start":{"line":90,"column":8},"end":{"line":93,"column":36}},{"start":{"line":94,"column":8},"end":{"line":94,"column":16}}],"line":85},"9":{"loc":{"start":{"line":112,"column":14},"end":{"line":112,"column":38}},"type":"default-arg","locations":[{"start":{"line":112,"column":21},"end":{"line":112,"column":38}}],"line":112},"10":{"loc":{"start":{"line":146,"column":23},"end":{"line":146,"column":100}},"type":"cond-expr","locations":[{"start":{"line":146,"column":54},"end":{"line":146,"column":75}},{"start":{"line":146,"column":78},"end":{"line":146,"column":100}}],"line":146},"11":{"loc":{"start":{"line":147,"column":21},"end":{"line":147,"column":102}},"type":"cond-expr","locations":[{"start":{"line":147,"column":52},"end":{"line":147,"column":73}},{"start":{"line":147,"column":76},"end":{"line":147,"column":102}}],"line":147},"12":{"loc":{"start":{"line":156,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":156,"column":4},"end":{"line":158,"column":5}},{"start":{},"end":{}}],"line":156},"13":{"loc":{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},"type":"if","locations":[{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},{"start":{},"end":{}}],"line":160},"14":{"loc":{"start":{"line":173,"column":19},"end":{"line":173,"column":31}},"type":"default-arg","locations":[{"start":{"line":173,"column":29},"end":{"line":173,"column":31}}],"line":173},"15":{"loc":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},{"start":{},"end":{}}],"line":174},"16":{"loc":{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},"type":"if","locations":[{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},{"start":{},"end":{}}],"line":178},"17":{"loc":{"start":{"line":196,"column":20},"end":{"line":196,"column":31}},"type":"default-arg","locations":[{"start":{"line":196,"column":29},"end":{"line":196,"column":31}}],"line":196},"18":{"loc":{"start":{"line":200,"column":6},"end":{"line":200,"column":17}},"type":"default-arg","locations":[{"start":{"line":200,"column":12},"end":{"line":200,"column":17}}],"line":200},"19":{"loc":{"start":{"line":223,"column":18},"end":{"line":223,"column":72}},"type":"cond-expr","locations":[{"start":{"line":223,"column":55},"end":{"line":223,"column":65}},{"start":{"line":223,"column":68},"end":{"line":223,"column":72}}],"line":223},"20":{"loc":{"start":{"line":224,"column":11},"end":{"line":224,"column":51}},"type":"cond-expr","locations":[{"start":{"line":224,"column":41},"end":{"line":224,"column":44}},{"start":{"line":224,"column":47},"end":{"line":224,"column":51}}],"line":224},"21":{"loc":{"start":{"line":229,"column":6},"end":{"line":229,"column":79}},"type":"if","locations":[{"start":{"line":229,"column":6},"end":{"line":229,"column":79}},{"start":{},"end":{}}],"line":229},"22":{"loc":{"start":{"line":248,"column":25},"end":{"line":248,"column":120}},"type":"binary-expr","locations":[{"start":{"line":248,"column":25},"end":{"line":248,"column":56}},{"start":{"line":248,"column":61},"end":{"line":248,"column":80}},{"start":{"line":248,"column":85},"end":{"line":248,"column":118}}],"line":248},"23":{"loc":{"start":{"line":258,"column":4},"end":{"line":260,"column":5}},"type":"if","locations":[{"start":{"line":258,"column":4},"end":{"line":260,"column":5}},{"start":{},"end":{}}],"line":258},"24":{"loc":{"start":{"line":262,"column":4},"end":{"line":264,"column":5}},"type":"if","locations":[{"start":{"line":262,"column":4},"end":{"line":264,"column":5}},{"start":{},"end":{}}],"line":262},"25":{"loc":{"start":{"line":262,"column":8},"end":{"line":262,"column":38}},"type":"binary-expr","locations":[{"start":{"line":262,"column":8},"end":{"line":262,"column":18}},{"start":{"line":262,"column":22},"end":{"line":262,"column":38}}],"line":262},"26":{"loc":{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},"type":"if","locations":[{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},{"start":{},"end":{}}],"line":267},"27":{"loc":{"start":{"line":267,"column":8},"end":{"line":267,"column":38}},"type":"binary-expr","locations":[{"start":{"line":267,"column":8},"end":{"line":267,"column":18}},{"start":{"line":267,"column":22},"end":{"line":267,"column":38}}],"line":267},"28":{"loc":{"start":{"line":271,"column":4},"end":{"line":273,"column":5}},"type":"if","locations":[{"start":{"line":271,"column":4},"end":{"line":273,"column":5}},{"start":{},"end":{}}],"line":271},"29":{"loc":{"start":{"line":271,"column":8},"end":{"line":271,"column":38}},"type":"binary-expr","locations":[{"start":{"line":271,"column":8},"end":{"line":271,"column":18}},{"start":{"line":271,"column":22},"end":{"line":271,"column":38}}],"line":271},"30":{"loc":{"start":{"line":287,"column":4},"end":{"line":293,"column":5}},"type":"if","locations":[{"start":{"line":287,"column":4},"end":{"line":293,"column":5}},{"start":{},"end":{}}],"line":287},"31":{"loc":{"start":{"line":287,"column":8},"end":{"line":289,"column":35}},"type":"binary-expr","locations":[{"start":{"line":287,"column":8},"end":{"line":287,"column":34}},{"start":{"line":288,"column":8},"end":{"line":288,"column":39}},{"start":{"line":289,"column":8},"end":{"line":289,"column":35}}],"line":287},"32":{"loc":{"start":{"line":298,"column":18},"end":{"line":298,"column":45}},"type":"cond-expr","locations":[{"start":{"line":298,"column":27},"end":{"line":298,"column":38}},{"start":{"line":298,"column":41},"end":{"line":298,"column":45}}],"line":298},"33":{"loc":{"start":{"line":324,"column":0},"end":{"line":326,"column":1}},"type":"if","locations":[{"start":{"line":324,"column":0},"end":{"line":326,"column":1}},{"start":{},"end":{}}],"line":324},"34":{"loc":{"start":{"line":328,"column":0},"end":{"line":330,"column":1}},"type":"if","locations":[{"start":{"line":328,"column":0},"end":{"line":330,"column":1}},{"start":{},"end":{}}],"line":328}},"s":{"0":1,"1":8,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":1,"41":0,"42":0,"43":0,"44":0,"45":9,"46":9,"47":8,"48":8,"49":8,"50":8,"51":8,"52":3,"53":1,"54":2,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":3,"62":1,"63":2,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":0,"73":1,"74":2,"75":2,"76":2,"77":2,"78":28,"79":10,"80":2,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":1,"94":0,"95":0,"96":0,"97":1,"98":1,"99":0,"100":0,"101":0,"102":0,"103":1,"104":1,"105":1,"106":1,"107":1},"f":{"0":8,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":9,"11":3,"12":3,"13":0,"14":2,"15":0,"16":0,"17":0,"18":0,"19":1,"20":0,"21":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0],"8":[0,0,0],"9":[0],"10":[1,7],"11":[1,7],"12":[1,2],"13":[1,1],"14":[3],"15":[1,2],"16":[1,1],"17":[0],"18":[1],"19":[1,1],"20":[2,0],"21":[10,18],"22":[0,0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,1],"31":[1,0,0],"32":[1,0],"33":[1,0],"34":[1,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"35b81857f4528d5cd18605e658ad3e14abb940f3"}
|
|
1
|
+
{"/home/jenkins/workspace/VIIBE_viibe-impulse_main/impulse-integration-js/src/index.js": {"path":"/home/jenkins/workspace/VIIBE_viibe-impulse_main/impulse-integration-js/src/index.js","statementMap":{"0":{"start":{"line":1,"column":11},"end":{"line":1,"column":24}},"1":{"start":{"line":4,"column":2},"end":{"line":6,"column":4}},"2":{"start":{"line":5,"column":4},"end":{"line":5,"column":74}},"3":{"start":{"line":10,"column":14},"end":{"line":10,"column":26}},"4":{"start":{"line":11,"column":17},"end":{"line":11,"column":47}},"5":{"start":{"line":13,"column":16},"end":{"line":13,"column":19}},"6":{"start":{"line":14,"column":17},"end":{"line":14,"column":20}},"7":{"start":{"line":15,"column":14},"end":{"line":15,"column":15}},"8":{"start":{"line":16,"column":32},"end":{"line":16,"column":35}},"9":{"start":{"line":18,"column":15},"end":{"line":18,"column":58}},"10":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":23},"end":{"line":33,"column":3}},"12":{"start":{"line":36,"column":2},"end":{"line":104,"column":5}},"13":{"start":{"line":37,"column":16},"end":{"line":37,"column":74}},"14":{"start":{"line":39,"column":4},"end":{"line":42,"column":5}},"15":{"start":{"line":41,"column":6},"end":{"line":41,"column":38}},"16":{"start":{"line":45,"column":23},"end":{"line":51,"column":29}},"17":{"start":{"line":46,"column":6},"end":{"line":49,"column":7}},"18":{"start":{"line":47,"column":8},"end":{"line":47,"column":18}},"19":{"start":{"line":48,"column":8},"end":{"line":48,"column":18}},"20":{"start":{"line":56,"column":6},"end":{"line":56,"column":35}},"21":{"start":{"line":62,"column":6},"end":{"line":62,"column":55}},"22":{"start":{"line":63,"column":6},"end":{"line":63,"column":32}},"23":{"start":{"line":68,"column":6},"end":{"line":70,"column":7}},"24":{"start":{"line":69,"column":8},"end":{"line":69,"column":20}},"25":{"start":{"line":73,"column":6},"end":{"line":76,"column":7}},"26":{"start":{"line":74,"column":8},"end":{"line":74,"column":18}},"27":{"start":{"line":75,"column":8},"end":{"line":75,"column":34}},"28":{"start":{"line":78,"column":6},"end":{"line":81,"column":7}},"29":{"start":{"line":79,"column":8},"end":{"line":79,"column":18}},"30":{"start":{"line":80,"column":8},"end":{"line":80,"column":33}},"31":{"start":{"line":84,"column":6},"end":{"line":98,"column":7}},"32":{"start":{"line":85,"column":8},"end":{"line":96,"column":9}},"33":{"start":{"line":87,"column":10},"end":{"line":87,"column":20}},"34":{"start":{"line":89,"column":10},"end":{"line":89,"column":37}},"35":{"start":{"line":91,"column":10},"end":{"line":91,"column":20}},"36":{"start":{"line":93,"column":10},"end":{"line":93,"column":36}},"37":{"start":{"line":100,"column":6},"end":{"line":100,"column":18}},"38":{"start":{"line":103,"column":4},"end":{"line":103,"column":50}},"39":{"start":{"line":107,"column":26},"end":{"line":107,"column":42}},"40":{"start":{"line":108,"column":26},"end":{"line":108,"column":31}},"41":{"start":{"line":113,"column":4},"end":{"line":113,"column":21}},"42":{"start":{"line":117,"column":23},"end":{"line":117,"column":40}},"43":{"start":{"line":118,"column":16},"end":{"line":118,"column":97}},"44":{"start":{"line":120,"column":4},"end":{"line":120,"column":30}},"45":{"start":{"line":144,"column":4},"end":{"line":144,"column":23}},"46":{"start":{"line":145,"column":4},"end":{"line":145,"column":29}},"47":{"start":{"line":146,"column":4},"end":{"line":146,"column":101}},"48":{"start":{"line":147,"column":4},"end":{"line":147,"column":57}},"49":{"start":{"line":149,"column":4},"end":{"line":149,"column":55}},"50":{"start":{"line":151,"column":4},"end":{"line":151,"column":66}},"51":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"52":{"start":{"line":156,"column":6},"end":{"line":156,"column":34}},"53":{"start":{"line":159,"column":4},"end":{"line":161,"column":5}},"54":{"start":{"line":160,"column":6},"end":{"line":160,"column":48}},"55":{"start":{"line":163,"column":19},"end":{"line":163,"column":51}},"56":{"start":{"line":165,"column":4},"end":{"line":165,"column":75}},"57":{"start":{"line":166,"column":4},"end":{"line":166,"column":41}},"58":{"start":{"line":167,"column":4},"end":{"line":167,"column":74}},"59":{"start":{"line":169,"column":4},"end":{"line":169,"column":18}},"60":{"start":{"line":173,"column":4},"end":{"line":175,"column":5}},"61":{"start":{"line":174,"column":6},"end":{"line":174,"column":34}},"62":{"start":{"line":177,"column":4},"end":{"line":179,"column":5}},"63":{"start":{"line":178,"column":6},"end":{"line":178,"column":118}},"64":{"start":{"line":181,"column":16},"end":{"line":181,"column":47}},"65":{"start":{"line":183,"column":19},"end":{"line":183,"column":51}},"66":{"start":{"line":185,"column":4},"end":{"line":185,"column":75}},"67":{"start":{"line":186,"column":4},"end":{"line":186,"column":72}},"68":{"start":{"line":187,"column":4},"end":{"line":187,"column":21}},"69":{"start":{"line":188,"column":4},"end":{"line":188,"column":98}},"70":{"start":{"line":190,"column":4},"end":{"line":190,"column":65}},"71":{"start":{"line":190,"column":41},"end":{"line":190,"column":63}},"72":{"start":{"line":192,"column":4},"end":{"line":192,"column":18}},"73":{"start":{"line":205,"column":8},"end":{"line":205,"column":14}},"74":{"start":{"line":207,"column":16},"end":{"line":207,"column":65}},"75":{"start":{"line":209,"column":22},"end":{"line":224,"column":5}},"76":{"start":{"line":227,"column":4},"end":{"line":229,"column":5}},"77":{"start":{"line":228,"column":6},"end":{"line":228,"column":79}},"78":{"start":{"line":228,"column":58},"end":{"line":228,"column":79}},"79":{"start":{"line":231,"column":4},"end":{"line":231,"column":47}},"80":{"start":{"line":246,"column":4},"end":{"line":248,"column":52}},"81":{"start":{"line":247,"column":25},"end":{"line":247,"column":120}},"82":{"start":{"line":248,"column":22},"end":{"line":248,"column":50}},"83":{"start":{"line":257,"column":4},"end":{"line":259,"column":5}},"84":{"start":{"line":258,"column":6},"end":{"line":258,"column":18}},"85":{"start":{"line":261,"column":4},"end":{"line":263,"column":5}},"86":{"start":{"line":262,"column":6},"end":{"line":262,"column":95}},"87":{"start":{"line":266,"column":4},"end":{"line":268,"column":5}},"88":{"start":{"line":267,"column":6},"end":{"line":267,"column":76}},"89":{"start":{"line":270,"column":4},"end":{"line":272,"column":5}},"90":{"start":{"line":271,"column":6},"end":{"line":271,"column":76}},"91":{"start":{"line":274,"column":4},"end":{"line":274,"column":16}},"92":{"start":{"line":286,"column":4},"end":{"line":292,"column":5}},"93":{"start":{"line":289,"column":6},"end":{"line":289,"column":23}},"94":{"start":{"line":290,"column":6},"end":{"line":290,"column":25}},"95":{"start":{"line":291,"column":6},"end":{"line":291,"column":20}},"96":{"start":{"line":294,"column":20},"end":{"line":298,"column":5}},"97":{"start":{"line":300,"column":4},"end":{"line":300,"column":32}},"98":{"start":{"line":304,"column":4},"end":{"line":304,"column":47}},"99":{"start":{"line":313,"column":31},"end":{"line":313,"column":48}},"100":{"start":{"line":314,"column":16},"end":{"line":314,"column":82}},"101":{"start":{"line":316,"column":4},"end":{"line":316,"column":30}},"102":{"start":{"line":321,"column":0},"end":{"line":321,"column":23}},"103":{"start":{"line":323,"column":0},"end":{"line":325,"column":1}},"104":{"start":{"line":324,"column":2},"end":{"line":324,"column":23}},"105":{"start":{"line":327,"column":0},"end":{"line":329,"column":1}},"106":{"start":{"line":328,"column":2},"end":{"line":328,"column":25}}},"fnMap":{"0":{"name":"isFromOrigin","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":21}},"loc":{"start":{"line":3,"column":30},"end":{"line":7,"column":1}},"line":3},"1":{"name":"isEventFromOrigin","decl":{"start":{"line":4,"column":18},"end":{"line":4,"column":35}},"loc":{"start":{"line":4,"column":43},"end":{"line":6,"column":3}},"line":4},"2":{"name":"openAuthPopup","decl":{"start":{"line":9,"column":9},"end":{"line":9,"column":22}},"loc":{"start":{"line":9,"column":28},"end":{"line":105,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":21},"end":{"line":36,"column":22}},"loc":{"start":{"line":36,"column":42},"end":{"line":104,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":45,"column":35},"end":{"line":45,"column":36}},"loc":{"start":{"line":45,"column":41},"end":{"line":51,"column":5}},"line":45},"5":{"name":"onClose","decl":{"start":{"line":54,"column":13},"end":{"line":54,"column":20}},"loc":{"start":{"line":54,"column":23},"end":{"line":57,"column":5}},"line":54},"6":{"name":"destroy","decl":{"start":{"line":61,"column":13},"end":{"line":61,"column":20}},"loc":{"start":{"line":61,"column":23},"end":{"line":64,"column":5}},"line":61},"7":{"name":"onMessage","decl":{"start":{"line":67,"column":13},"end":{"line":67,"column":22}},"loc":{"start":{"line":67,"column":30},"end":{"line":101,"column":5}},"line":67},"8":{"name":"(anonymous_8)","decl":{"start":{"line":112,"column":2},"end":{"line":112,"column":3}},"loc":{"start":{"line":112,"column":40},"end":{"line":114,"column":3}},"line":112},"9":{"name":"(anonymous_9)","decl":{"start":{"line":116,"column":2},"end":{"line":116,"column":3}},"loc":{"start":{"line":116,"column":26},"end":{"line":121,"column":3}},"line":116},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":2},"end":{"line":140,"column":3}},"loc":{"start":{"line":140,"column":23},"end":{"line":152,"column":3}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":154,"column":2},"end":{"line":154,"column":3}},"loc":{"start":{"line":154,"column":29},"end":{"line":170,"column":3}},"line":154},"12":{"name":"(anonymous_12)","decl":{"start":{"line":172,"column":2},"end":{"line":172,"column":3}},"loc":{"start":{"line":172,"column":33},"end":{"line":193,"column":3}},"line":172},"13":{"name":"(anonymous_13)","decl":{"start":{"line":190,"column":32},"end":{"line":190,"column":33}},"loc":{"start":{"line":190,"column":41},"end":{"line":190,"column":63}},"line":190},"14":{"name":"(anonymous_14)","decl":{"start":{"line":195,"column":2},"end":{"line":195,"column":3}},"loc":{"start":{"line":195,"column":33},"end":{"line":232,"column":3}},"line":195},"15":{"name":"(anonymous_15)","decl":{"start":{"line":245,"column":2},"end":{"line":245,"column":3}},"loc":{"start":{"line":245,"column":50},"end":{"line":249,"column":3}},"line":245},"16":{"name":"(anonymous_16)","decl":{"start":{"line":247,"column":14},"end":{"line":247,"column":15}},"loc":{"start":{"line":247,"column":25},"end":{"line":247,"column":120}},"line":247},"17":{"name":"(anonymous_17)","decl":{"start":{"line":248,"column":11},"end":{"line":248,"column":12}},"loc":{"start":{"line":248,"column":22},"end":{"line":248,"column":50}},"line":248},"18":{"name":"(anonymous_18)","decl":{"start":{"line":256,"column":2},"end":{"line":256,"column":3}},"loc":{"start":{"line":256,"column":19},"end":{"line":275,"column":3}},"line":256},"19":{"name":"(anonymous_19)","decl":{"start":{"line":285,"column":2},"end":{"line":285,"column":3}},"loc":{"start":{"line":285,"column":30},"end":{"line":301,"column":3}},"line":285},"20":{"name":"(anonymous_20)","decl":{"start":{"line":303,"column":2},"end":{"line":303,"column":3}},"loc":{"start":{"line":303,"column":23},"end":{"line":305,"column":3}},"line":303},"21":{"name":"(anonymous_21)","decl":{"start":{"line":312,"column":2},"end":{"line":312,"column":3}},"loc":{"start":{"line":312,"column":25},"end":{"line":317,"column":3}},"line":312}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":19},"end":{"line":5,"column":72}},"type":"binary-expr","locations":[{"start":{"line":5,"column":19},"end":{"line":5,"column":34}},{"start":{"line":5,"column":38},"end":{"line":5,"column":72}}],"line":5},"1":{"loc":{"start":{"line":39,"column":4},"end":{"line":42,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":42,"column":5}},{"start":{},"end":{}}],"line":39},"2":{"loc":{"start":{"line":46,"column":6},"end":{"line":49,"column":7}},"type":"if","locations":[{"start":{"line":46,"column":6},"end":{"line":49,"column":7}},{"start":{},"end":{}}],"line":46},"3":{"loc":{"start":{"line":68,"column":6},"end":{"line":70,"column":7}},"type":"if","locations":[{"start":{"line":68,"column":6},"end":{"line":70,"column":7}},{"start":{},"end":{}}],"line":68},"4":{"loc":{"start":{"line":73,"column":6},"end":{"line":76,"column":7}},"type":"if","locations":[{"start":{"line":73,"column":6},"end":{"line":76,"column":7}},{"start":{},"end":{}}],"line":73},"5":{"loc":{"start":{"line":78,"column":6},"end":{"line":81,"column":7}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":81,"column":7}},{"start":{},"end":{}}],"line":78},"6":{"loc":{"start":{"line":84,"column":6},"end":{"line":98,"column":7}},"type":"if","locations":[{"start":{"line":84,"column":6},"end":{"line":98,"column":7}},{"start":{},"end":{}}],"line":84},"7":{"loc":{"start":{"line":84,"column":10},"end":{"line":84,"column":62}},"type":"binary-expr","locations":[{"start":{"line":84,"column":10},"end":{"line":84,"column":20}},{"start":{"line":84,"column":24},"end":{"line":84,"column":40}},{"start":{"line":84,"column":44},"end":{"line":84,"column":62}}],"line":84},"8":{"loc":{"start":{"line":85,"column":8},"end":{"line":96,"column":9}},"type":"switch","locations":[{"start":{"line":86,"column":8},"end":{"line":89,"column":37}},{"start":{"line":90,"column":8},"end":{"line":93,"column":36}},{"start":{"line":94,"column":8},"end":{"line":94,"column":16}}],"line":85},"9":{"loc":{"start":{"line":112,"column":14},"end":{"line":112,"column":38}},"type":"default-arg","locations":[{"start":{"line":112,"column":21},"end":{"line":112,"column":38}}],"line":112},"10":{"loc":{"start":{"line":146,"column":23},"end":{"line":146,"column":100}},"type":"cond-expr","locations":[{"start":{"line":146,"column":54},"end":{"line":146,"column":75}},{"start":{"line":146,"column":78},"end":{"line":146,"column":100}}],"line":146},"11":{"loc":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"type":"if","locations":[{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},{"start":{},"end":{}}],"line":155},"12":{"loc":{"start":{"line":159,"column":4},"end":{"line":161,"column":5}},"type":"if","locations":[{"start":{"line":159,"column":4},"end":{"line":161,"column":5}},{"start":{},"end":{}}],"line":159},"13":{"loc":{"start":{"line":172,"column":19},"end":{"line":172,"column":31}},"type":"default-arg","locations":[{"start":{"line":172,"column":29},"end":{"line":172,"column":31}}],"line":172},"14":{"loc":{"start":{"line":173,"column":4},"end":{"line":175,"column":5}},"type":"if","locations":[{"start":{"line":173,"column":4},"end":{"line":175,"column":5}},{"start":{},"end":{}}],"line":173},"15":{"loc":{"start":{"line":177,"column":4},"end":{"line":179,"column":5}},"type":"if","locations":[{"start":{"line":177,"column":4},"end":{"line":179,"column":5}},{"start":{},"end":{}}],"line":177},"16":{"loc":{"start":{"line":195,"column":20},"end":{"line":195,"column":31}},"type":"default-arg","locations":[{"start":{"line":195,"column":29},"end":{"line":195,"column":31}}],"line":195},"17":{"loc":{"start":{"line":199,"column":6},"end":{"line":199,"column":17}},"type":"default-arg","locations":[{"start":{"line":199,"column":12},"end":{"line":199,"column":17}}],"line":199},"18":{"loc":{"start":{"line":222,"column":18},"end":{"line":222,"column":72}},"type":"cond-expr","locations":[{"start":{"line":222,"column":55},"end":{"line":222,"column":65}},{"start":{"line":222,"column":68},"end":{"line":222,"column":72}}],"line":222},"19":{"loc":{"start":{"line":223,"column":11},"end":{"line":223,"column":51}},"type":"cond-expr","locations":[{"start":{"line":223,"column":41},"end":{"line":223,"column":44}},{"start":{"line":223,"column":47},"end":{"line":223,"column":51}}],"line":223},"20":{"loc":{"start":{"line":228,"column":6},"end":{"line":228,"column":79}},"type":"if","locations":[{"start":{"line":228,"column":6},"end":{"line":228,"column":79}},{"start":{},"end":{}}],"line":228},"21":{"loc":{"start":{"line":247,"column":25},"end":{"line":247,"column":120}},"type":"binary-expr","locations":[{"start":{"line":247,"column":25},"end":{"line":247,"column":56}},{"start":{"line":247,"column":61},"end":{"line":247,"column":80}},{"start":{"line":247,"column":85},"end":{"line":247,"column":118}}],"line":247},"22":{"loc":{"start":{"line":257,"column":4},"end":{"line":259,"column":5}},"type":"if","locations":[{"start":{"line":257,"column":4},"end":{"line":259,"column":5}},{"start":{},"end":{}}],"line":257},"23":{"loc":{"start":{"line":261,"column":4},"end":{"line":263,"column":5}},"type":"if","locations":[{"start":{"line":261,"column":4},"end":{"line":263,"column":5}},{"start":{},"end":{}}],"line":261},"24":{"loc":{"start":{"line":261,"column":8},"end":{"line":261,"column":38}},"type":"binary-expr","locations":[{"start":{"line":261,"column":8},"end":{"line":261,"column":18}},{"start":{"line":261,"column":22},"end":{"line":261,"column":38}}],"line":261},"25":{"loc":{"start":{"line":266,"column":4},"end":{"line":268,"column":5}},"type":"if","locations":[{"start":{"line":266,"column":4},"end":{"line":268,"column":5}},{"start":{},"end":{}}],"line":266},"26":{"loc":{"start":{"line":266,"column":8},"end":{"line":266,"column":38}},"type":"binary-expr","locations":[{"start":{"line":266,"column":8},"end":{"line":266,"column":18}},{"start":{"line":266,"column":22},"end":{"line":266,"column":38}}],"line":266},"27":{"loc":{"start":{"line":270,"column":4},"end":{"line":272,"column":5}},"type":"if","locations":[{"start":{"line":270,"column":4},"end":{"line":272,"column":5}},{"start":{},"end":{}}],"line":270},"28":{"loc":{"start":{"line":270,"column":8},"end":{"line":270,"column":38}},"type":"binary-expr","locations":[{"start":{"line":270,"column":8},"end":{"line":270,"column":18}},{"start":{"line":270,"column":22},"end":{"line":270,"column":38}}],"line":270},"29":{"loc":{"start":{"line":286,"column":4},"end":{"line":292,"column":5}},"type":"if","locations":[{"start":{"line":286,"column":4},"end":{"line":292,"column":5}},{"start":{},"end":{}}],"line":286},"30":{"loc":{"start":{"line":286,"column":8},"end":{"line":288,"column":35}},"type":"binary-expr","locations":[{"start":{"line":286,"column":8},"end":{"line":286,"column":34}},{"start":{"line":287,"column":8},"end":{"line":287,"column":39}},{"start":{"line":288,"column":8},"end":{"line":288,"column":35}}],"line":286},"31":{"loc":{"start":{"line":297,"column":18},"end":{"line":297,"column":45}},"type":"cond-expr","locations":[{"start":{"line":297,"column":27},"end":{"line":297,"column":38}},{"start":{"line":297,"column":41},"end":{"line":297,"column":45}}],"line":297},"32":{"loc":{"start":{"line":323,"column":0},"end":{"line":325,"column":1}},"type":"if","locations":[{"start":{"line":323,"column":0},"end":{"line":325,"column":1}},{"start":{},"end":{}}],"line":323},"33":{"loc":{"start":{"line":327,"column":0},"end":{"line":329,"column":1}},"type":"if","locations":[{"start":{"line":327,"column":0},"end":{"line":329,"column":1}},{"start":{},"end":{}}],"line":327}},"s":{"0":1,"1":8,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":1,"41":0,"42":0,"43":0,"44":0,"45":9,"46":9,"47":8,"48":8,"49":8,"50":8,"51":3,"52":1,"53":2,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":3,"61":1,"62":2,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":0,"72":1,"73":2,"74":2,"75":2,"76":2,"77":28,"78":10,"79":2,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":1,"93":0,"94":0,"95":0,"96":1,"97":1,"98":0,"99":0,"100":0,"101":0,"102":1,"103":1,"104":1,"105":1,"106":1},"f":{"0":8,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":9,"11":3,"12":3,"13":0,"14":2,"15":0,"16":0,"17":0,"18":0,"19":1,"20":0,"21":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0],"8":[0,0,0],"9":[0],"10":[1,7],"11":[1,2],"12":[1,1],"13":[3],"14":[1,2],"15":[1,1],"16":[0],"17":[1],"18":[1,1],"19":[2,0],"20":[10,18],"21":[0,0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,1],"30":[1,0,0],"31":[1,0],"32":[1,0],"33":[1,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"03821f45b2314361425193a9b996e80d0acb73d2"}
|
|
2
2
|
}
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">42.99% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>46/107</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">32.35% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>22/68</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">42.85% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>45/105</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
82
|
<td class="file low" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
|
83
|
-
<td data-value="
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
83
|
+
<td data-value="42.99" class="pic low">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 42%"></div><div class="cover-empty" style="width: 58%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
86
|
+
<td data-value="42.99" class="pct low">42.99%</td>
|
|
87
|
+
<td data-value="107" class="abs low">46/107</td>
|
|
88
|
+
<td data-value="32.35" class="pct low">32.35%</td>
|
|
89
|
+
<td data-value="68" class="abs low">22/68</td>
|
|
90
90
|
<td data-value="27.27" class="pct low">27.27%</td>
|
|
91
91
|
<td data-value="22" class="abs low">6/22</td>
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
92
|
+
<td data-value="42.85" class="pct low">42.85%</td>
|
|
93
|
+
<td data-value="105" class="abs low">45/105</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
</tbody>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Wed May 27 2026 15:37:03 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">42.99% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>46/107</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">32.35% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>22/68</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">42.85% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>45/105</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -392,8 +392,7 @@
|
|
|
392
392
|
<a name='L327'></a><a href='#L327'>327</a>
|
|
393
393
|
<a name='L328'></a><a href='#L328'>328</a>
|
|
394
394
|
<a name='L329'></a><a href='#L329'>329</a>
|
|
395
|
-
<a name='L330'></a><a href='#L330'>330</a>
|
|
396
|
-
<a name='L331'></a><a href='#L331'>331</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
395
|
+
<a name='L330'></a><a href='#L330'>330</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
397
396
|
<span class="cline-any cline-neutral"> </span>
|
|
398
397
|
<span class="cline-any cline-neutral"> </span>
|
|
399
398
|
<span class="cline-any cline-yes">8x</span>
|
|
@@ -540,7 +539,6 @@
|
|
|
540
539
|
<span class="cline-any cline-yes">9x</span>
|
|
541
540
|
<span class="cline-any cline-yes">8x</span>
|
|
542
541
|
<span class="cline-any cline-yes">8x</span>
|
|
543
|
-
<span class="cline-any cline-yes">8x</span>
|
|
544
542
|
<span class="cline-any cline-neutral"> </span>
|
|
545
543
|
<span class="cline-any cline-yes">8x</span>
|
|
546
544
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -860,7 +858,7 @@ class Viibe {
|
|
|
860
858
|
*
|
|
861
859
|
* @param {object} options
|
|
862
860
|
* @param {string} options.host Target ViiBE subdomain (e.g. test.viibe.tech)
|
|
863
|
-
* @param {string} options.
|
|
861
|
+
* @param {string} options.strategyIdentifier Strategy identifier
|
|
864
862
|
*/
|
|
865
863
|
constructor(options) {
|
|
866
864
|
/**
|
|
@@ -869,8 +867,7 @@ class Viibe {
|
|
|
869
867
|
this.handlers = [];
|
|
870
868
|
this.host = options.host;
|
|
871
869
|
this.viibeDomain = /^localhost/.test(this.host) ? `http://${this.host}` : `https://${this.host}`;
|
|
872
|
-
this.
|
|
873
|
-
this.source = options.source;
|
|
870
|
+
this.strategyIdentifier = options.strategyIdentifier;
|
|
874
871
|
|
|
875
872
|
this.isViibeEvent = isFromOrigin(this.viibeDomain);
|
|
876
873
|
|
|
@@ -882,8 +879,8 @@ class Viibe {
|
|
|
882
879
|
throw new Error('fillHost');
|
|
883
880
|
}
|
|
884
881
|
|
|
885
|
-
if (!this.
|
|
886
|
-
throw new Error('
|
|
882
|
+
if (!this.strategyIdentifier) {
|
|
883
|
+
throw new Error('fillStrategyIdentifier');
|
|
887
884
|
}
|
|
888
885
|
|
|
889
886
|
const iframe = document.createElement('iframe');
|
|
@@ -900,8 +897,8 @@ class Viibe {
|
|
|
900
897
|
throw new Error('fillHost');
|
|
901
898
|
}
|
|
902
899
|
|
|
903
|
-
if (!this.
|
|
904
|
-
throw new Error('
|
|
900
|
+
if (!this.strategyIdentifier) {
|
|
901
|
+
throw new Error('fillStrategyIdentifier - this identifier should match exactly your viibe strategy identifier');
|
|
905
902
|
}
|
|
906
903
|
|
|
907
904
|
const src = this.generateIframeSrc(options);
|
|
@@ -936,7 +933,7 @@ class Viibe {
|
|
|
936
933
|
version: '2.0.0',
|
|
937
934
|
origin: document.location.origin,
|
|
938
935
|
resize: 'true',
|
|
939
|
-
|
|
936
|
+
strategyIdentifier: this.strategyIdentifier,
|
|
940
937
|
title: ticket?.title,
|
|
941
938
|
thirdPartyId: ticket?.integration?.id,
|
|
942
939
|
custom: ticket?.integration?.customData,
|
|
@@ -1060,7 +1057,7 @@ Viibe.Auth = ViibeAuth;
|
|
|
1060
1057
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1061
1058
|
Code coverage generated by
|
|
1062
1059
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1063
|
-
at
|
|
1060
|
+
at Wed May 27 2026 15:37:03 GMT+0000 (Coordinated Universal Time)
|
|
1064
1061
|
</div>
|
|
1065
1062
|
<script src="prettify.js"></script>
|
|
1066
1063
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -11,17 +11,17 @@ FN:67,onMessage
|
|
|
11
11
|
FN:112,(anonymous_8)
|
|
12
12
|
FN:116,(anonymous_9)
|
|
13
13
|
FN:140,(anonymous_10)
|
|
14
|
-
FN:
|
|
15
|
-
FN:
|
|
16
|
-
FN:
|
|
17
|
-
FN:
|
|
18
|
-
FN:
|
|
19
|
-
FN:
|
|
20
|
-
FN:
|
|
21
|
-
FN:
|
|
22
|
-
FN:
|
|
23
|
-
FN:
|
|
24
|
-
FN:
|
|
14
|
+
FN:154,(anonymous_11)
|
|
15
|
+
FN:172,(anonymous_12)
|
|
16
|
+
FN:190,(anonymous_13)
|
|
17
|
+
FN:195,(anonymous_14)
|
|
18
|
+
FN:245,(anonymous_15)
|
|
19
|
+
FN:247,(anonymous_16)
|
|
20
|
+
FN:248,(anonymous_17)
|
|
21
|
+
FN:256,(anonymous_18)
|
|
22
|
+
FN:285,(anonymous_19)
|
|
23
|
+
FN:303,(anonymous_20)
|
|
24
|
+
FN:312,(anonymous_21)
|
|
25
25
|
FNF:22
|
|
26
26
|
FNH:6
|
|
27
27
|
FNDA:8,isFromOrigin
|
|
@@ -95,65 +95,64 @@ DA:144,9
|
|
|
95
95
|
DA:145,9
|
|
96
96
|
DA:146,8
|
|
97
97
|
DA:147,8
|
|
98
|
-
DA:
|
|
99
|
-
DA:
|
|
100
|
-
DA:
|
|
101
|
-
DA:156,
|
|
102
|
-
DA:
|
|
103
|
-
DA:160,
|
|
104
|
-
DA:
|
|
105
|
-
DA:
|
|
98
|
+
DA:149,8
|
|
99
|
+
DA:151,8
|
|
100
|
+
DA:155,3
|
|
101
|
+
DA:156,1
|
|
102
|
+
DA:159,2
|
|
103
|
+
DA:160,1
|
|
104
|
+
DA:163,1
|
|
105
|
+
DA:165,1
|
|
106
106
|
DA:166,1
|
|
107
107
|
DA:167,1
|
|
108
|
-
DA:
|
|
109
|
-
DA:
|
|
110
|
-
DA:174,
|
|
111
|
-
DA:
|
|
112
|
-
DA:178,
|
|
113
|
-
DA:
|
|
114
|
-
DA:
|
|
115
|
-
DA:
|
|
108
|
+
DA:169,1
|
|
109
|
+
DA:173,3
|
|
110
|
+
DA:174,1
|
|
111
|
+
DA:177,2
|
|
112
|
+
DA:178,1
|
|
113
|
+
DA:181,1
|
|
114
|
+
DA:183,1
|
|
115
|
+
DA:185,1
|
|
116
116
|
DA:186,1
|
|
117
117
|
DA:187,1
|
|
118
118
|
DA:188,1
|
|
119
|
-
DA:
|
|
120
|
-
DA:
|
|
121
|
-
DA:
|
|
122
|
-
DA:
|
|
123
|
-
DA:
|
|
124
|
-
DA:
|
|
125
|
-
DA:228,
|
|
126
|
-
DA:
|
|
127
|
-
DA:
|
|
119
|
+
DA:190,1
|
|
120
|
+
DA:192,1
|
|
121
|
+
DA:205,2
|
|
122
|
+
DA:207,2
|
|
123
|
+
DA:209,2
|
|
124
|
+
DA:227,2
|
|
125
|
+
DA:228,28
|
|
126
|
+
DA:231,2
|
|
127
|
+
DA:246,0
|
|
128
128
|
DA:247,0
|
|
129
129
|
DA:248,0
|
|
130
|
-
DA:
|
|
130
|
+
DA:257,0
|
|
131
131
|
DA:258,0
|
|
132
|
-
DA:
|
|
132
|
+
DA:261,0
|
|
133
133
|
DA:262,0
|
|
134
|
-
DA:
|
|
134
|
+
DA:266,0
|
|
135
135
|
DA:267,0
|
|
136
|
-
DA:
|
|
136
|
+
DA:270,0
|
|
137
137
|
DA:271,0
|
|
138
|
-
DA:
|
|
139
|
-
DA:
|
|
140
|
-
DA:
|
|
138
|
+
DA:274,0
|
|
139
|
+
DA:286,1
|
|
140
|
+
DA:289,0
|
|
141
141
|
DA:290,0
|
|
142
142
|
DA:291,0
|
|
143
|
-
DA:
|
|
144
|
-
DA:
|
|
145
|
-
DA:
|
|
146
|
-
DA:
|
|
143
|
+
DA:294,1
|
|
144
|
+
DA:300,1
|
|
145
|
+
DA:304,0
|
|
146
|
+
DA:313,0
|
|
147
147
|
DA:314,0
|
|
148
|
-
DA:
|
|
149
|
-
DA:
|
|
150
|
-
DA:
|
|
148
|
+
DA:316,0
|
|
149
|
+
DA:321,1
|
|
150
|
+
DA:323,1
|
|
151
151
|
DA:324,1
|
|
152
|
-
DA:
|
|
152
|
+
DA:327,1
|
|
153
153
|
DA:328,1
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
LH:46
|
|
154
|
+
LF:105
|
|
155
|
+
LH:45
|
|
157
156
|
BRDA:5,0,0,0
|
|
158
157
|
BRDA:5,0,1,0
|
|
159
158
|
BRDA:39,1,0,0
|
|
@@ -177,53 +176,51 @@ BRDA:85,8,2,0
|
|
|
177
176
|
BRDA:112,9,0,0
|
|
178
177
|
BRDA:146,10,0,1
|
|
179
178
|
BRDA:146,10,1,7
|
|
180
|
-
BRDA:
|
|
181
|
-
BRDA:
|
|
182
|
-
BRDA:
|
|
183
|
-
BRDA:
|
|
184
|
-
BRDA:
|
|
185
|
-
BRDA:
|
|
186
|
-
BRDA:173,14,
|
|
187
|
-
BRDA:
|
|
188
|
-
BRDA:
|
|
189
|
-
BRDA:
|
|
190
|
-
BRDA:
|
|
191
|
-
BRDA:
|
|
192
|
-
BRDA:
|
|
193
|
-
BRDA:223,19,0,
|
|
194
|
-
BRDA:223,19,1,
|
|
195
|
-
BRDA:
|
|
196
|
-
BRDA:
|
|
197
|
-
BRDA:
|
|
198
|
-
BRDA:
|
|
199
|
-
BRDA:
|
|
200
|
-
BRDA:
|
|
201
|
-
BRDA:
|
|
202
|
-
BRDA:
|
|
203
|
-
BRDA:
|
|
204
|
-
BRDA:
|
|
205
|
-
BRDA:
|
|
206
|
-
BRDA:
|
|
207
|
-
BRDA:
|
|
208
|
-
BRDA:
|
|
209
|
-
BRDA:
|
|
210
|
-
BRDA:
|
|
211
|
-
BRDA:
|
|
212
|
-
BRDA:
|
|
213
|
-
BRDA:
|
|
214
|
-
BRDA:
|
|
215
|
-
BRDA:
|
|
216
|
-
BRDA:
|
|
217
|
-
BRDA:
|
|
218
|
-
BRDA:
|
|
219
|
-
BRDA:
|
|
220
|
-
BRDA:
|
|
221
|
-
BRDA:
|
|
222
|
-
BRDA:
|
|
223
|
-
BRDA:
|
|
224
|
-
BRDA:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
BRF:70
|
|
228
|
-
BRH:24
|
|
179
|
+
BRDA:155,11,0,1
|
|
180
|
+
BRDA:155,11,1,2
|
|
181
|
+
BRDA:159,12,0,1
|
|
182
|
+
BRDA:159,12,1,1
|
|
183
|
+
BRDA:172,13,0,3
|
|
184
|
+
BRDA:173,14,0,1
|
|
185
|
+
BRDA:173,14,1,2
|
|
186
|
+
BRDA:177,15,0,1
|
|
187
|
+
BRDA:177,15,1,1
|
|
188
|
+
BRDA:195,16,0,0
|
|
189
|
+
BRDA:199,17,0,1
|
|
190
|
+
BRDA:222,18,0,1
|
|
191
|
+
BRDA:222,18,1,1
|
|
192
|
+
BRDA:223,19,0,2
|
|
193
|
+
BRDA:223,19,1,0
|
|
194
|
+
BRDA:228,20,0,10
|
|
195
|
+
BRDA:228,20,1,18
|
|
196
|
+
BRDA:247,21,0,0
|
|
197
|
+
BRDA:247,21,1,0
|
|
198
|
+
BRDA:247,21,2,0
|
|
199
|
+
BRDA:257,22,0,0
|
|
200
|
+
BRDA:257,22,1,0
|
|
201
|
+
BRDA:261,23,0,0
|
|
202
|
+
BRDA:261,23,1,0
|
|
203
|
+
BRDA:261,24,0,0
|
|
204
|
+
BRDA:261,24,1,0
|
|
205
|
+
BRDA:266,25,0,0
|
|
206
|
+
BRDA:266,25,1,0
|
|
207
|
+
BRDA:266,26,0,0
|
|
208
|
+
BRDA:266,26,1,0
|
|
209
|
+
BRDA:270,27,0,0
|
|
210
|
+
BRDA:270,27,1,0
|
|
211
|
+
BRDA:270,28,0,0
|
|
212
|
+
BRDA:270,28,1,0
|
|
213
|
+
BRDA:286,29,0,0
|
|
214
|
+
BRDA:286,29,1,1
|
|
215
|
+
BRDA:286,30,0,1
|
|
216
|
+
BRDA:286,30,1,0
|
|
217
|
+
BRDA:286,30,2,0
|
|
218
|
+
BRDA:297,31,0,1
|
|
219
|
+
BRDA:297,31,1,0
|
|
220
|
+
BRDA:323,32,0,1
|
|
221
|
+
BRDA:323,32,1,0
|
|
222
|
+
BRDA:327,33,0,1
|
|
223
|
+
BRDA:327,33,1,0
|
|
224
|
+
BRF:68
|
|
225
|
+
BRH:22
|
|
229
226
|
end_of_record
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(self,(()=>(()=>{var t={2:t=>{"use strict";t.exports=Math.min},39:(t,e,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(333);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},64:(t,e,r)=>{"use strict";var o=r(612);t.exports=o.getPrototypeOf||null},68:t=>{"use strict";t.exports=SyntaxError},76:t=>{"use strict";t.exports=Function.prototype.call},93:(t,e,r)=>{"use strict";var o=r(459);t.exports=function(t){return o(t)||0===t?t:t<0?-1:1}},119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},126:(t,e,r)=>{"use strict";var o=r(743),n=r(675),i=r(76),a=r(144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return a(o,i,t)}},144:(t,e,r)=>{"use strict";var o=r(743),n=r(621),i=r(76),a=r(119);t.exports=a||o.call(i,n)},176:(t,e,r)=>{"use strict";var o,n=r(126),i=r(795);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;t.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(t){return l(null==t?t:c(t))}},188:t=>{"use strict";t.exports=Math.max},237:t=>{"use strict";t.exports=EvalError},271:(t,e,r)=>{"use strict";var o=r(453),n=r(556),i=r(859),a=r(507),c=r(675),l=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),f=n("WeakMap.prototype.delete",!0);t.exports=l?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new c("Side channel does not contain "+i(t))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?s(t,r):!!e&&e.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new l),u(t,r,o)):a&&(e||(e=a()),e.set(r,o))}};return r}:a},290:t=>{"use strict";t.exports=RangeError},333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},345:t=>{"use strict";t.exports=URIError},353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,o=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r};t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,a=function(t){for(var e=[],r=1,o=0;r<t.length;r+=1,o+=1)e[o]=t[r];return e}(arguments),c=r(0,n.length-a.length),l=[],p=0;p<c;p++)l[p]="$"+p;if(i=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=n.apply(this,o(a,arguments));return Object(e)===e?e:this}return n.apply(t,o(a,arguments))})),n.prototype){var u=function(){};u.prototype=n.prototype,i.prototype=new u,u.prototype=null}return i}},373:(t,e,r)=>{"use strict";var o=r(636),n=r(642),i=r(765);t.exports={formats:i,parse:n,stringify:o}},383:t=>{"use strict";t.exports=Error},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var o,n=r(612),i=r(383),a=r(237),c=r(290),l=r(538),p=r(68),u=r(675),s=r(345),f=r(514),y=r(968),d=r(188),h=r(2),m=r(880),g=r(414),b=r(93),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},S=r(795),A=r(655),x=function(){throw new u},O=S?function(){try{return x}catch(t){try{return S(arguments,"callee").get}catch(t){return x}}}():x,j=r(39)(),E=r(628),P=r(64),I=r(648),k=r(621),D=r(76),_={},R="undefined"!=typeof Uint8Array&&E?E(Uint8Array):o,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":j&&E?E([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&E?E(E([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&j&&E?E((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&j&&E?E((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&E?E(""[Symbol.iterator]()):o,"%Symbol%":j?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":O,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":s,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":k,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":P,"%Math.abs%":f,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(E)try{null.error}catch(t){var F=E(E(t));M["%Error.prototype%"]=F}var N=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&E&&(r=E(n.prototype))}return M[e]=r,r},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=r(743),L=r(957),B=U.call(D,Array.prototype.concat),C=U.call(k,Array.prototype.splice),W=U.call(D,String.prototype.replace),K=U.call(D,String.prototype.slice),H=U.call(D,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,$=function(t,e){var r,o=t;if(L(T,o)&&(o="%"+(r=T[o])[0]+"%"),L(M,o)){var n=M[o];if(n===_&&(n=N(o)),void 0===n&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=K(t,0,1),r=K(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return W(t,z,(function(t,e,r,n){o[o.length]=r?W(n,G,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=$("%"+o+"%",e),i=n.name,a=n.value,c=!1,l=n.alias;l&&(o=l[0],C(r,B([0,1],l)));for(var s=1,f=!0;s<r.length;s+=1){var y=r[s],d=K(y,0,1),h=K(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&f||(c=!0),L(M,i="%"+(o+="."+y)+"%"))a=M[i];else if(null!=a){if(!(y in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(S&&s+1>=r.length){var m=S(a,y);a=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else f=L(a,y),a=a[y];f&&!c&&(M[i]=a)}}return a}},459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},497:(t,e,r)=>{function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}var a=r(373);function c(t){return function(e){return Boolean(e.isTrusted&&0===e.origin.indexOf(t))}}function l(t){var e=new URL(t),r="".concat(e.protocol,"//").concat(e.host),o=window.screen.width/2-240,n=window.screen.height/2-300,i=["toolbar=no","location=no","directories=no","status=no","menubar=no","scrollbars=no","resizable=no","copyhistory=no","width=".concat(480),"height=".concat(600),"top=".concat(n),"left=".concat(o)];return new Promise((function(e,o){var n=window.open(t,"Authorization",i.join(", "));n||o("Failed to open window");var a=setInterval((function(){n.closed&&(l(),o("User closed window"))}),100);function l(){window.removeEventListener("message",p),clearInterval(a)}function p(t){if(!c(r)(t))return null;if(t.data.token&&(l(),e(t.data.token)),t.data.error&&(l(),o(t.data.error)),t.data&&t.data.event&&t.data.payload)switch(t.data.event){case"authentication:success":return l(),e(t.data);case"authentication:failure":return l(),o(t.data)}return null}window.addEventListener("message",p)}))}var p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auth.viibe.pro";o(this,t),this.host=e}return i(t,[{key:"loginZendesk",value:function(t){var e=document.location.origin;return l("https://".concat(this.host,"/auth/zendesk/login?subdomain=").concat(t,"&origin=").concat(e))}}]),t}(),u=function(){function t(e){o(this,t),this.handlers=[],this.host=e.host,this.viibeDomain=/^localhost/.test(this.host)?"http://".concat(this.host):"https://".concat(this.host),this.apiOrigin=/^localhost/.test(this.host)?"http://".concat(this.host):"https://api-".concat(this.host),this.source=e.source,this.isViibeEvent=c(this.viibeDomain),window.addEventListener("message",this.onMessage.bind(this))}return i(t,[{key:"createNotificationIframe",value:function(){if(!this.host)throw new Error("fillHost");if(!this.source)throw new Error("fillSource");var t=document.createElement("iframe");return t.name="viibe-".concat(Math.floor(1e4*Math.random())),t.style="border: 0;width: 0;",t.src="".concat(this.viibeDomain,"/integration/features/notifications"),t}},{key:"createCallIframe",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.host)throw new Error("fillHost");if(!this.source)throw new Error("fillSource");var r=this.generateIframeSrc(e),o=document.createElement("iframe");return o.name="viibe-".concat(Math.floor(1e4*Math.random())),o.style="border: 0;width: calc(100% - 1rem);margin: 0.5rem;",o.src=r,o.allow="geolocation;autoplay;microphone;camera;midi;encrypted-media;clipboard-write;",this.on(o,"document",(function(e){return t.onDocument(e)})),o}},{key:"generateIframeSrc",value:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.components,n=r.links,i=r.o2m,c=void 0!==i&&i,l=r.ticket,p=r.locale,u=r.standalone,s=r.suggestions,f=r.token,y="".concat(this.viibeDomain,"/integration/features/ticket"),d={version:"2.0.0",origin:document.location.origin,resize:"true",source:this.source,title:null==l?void 0:l.title,thirdPartyId:null==l||null===(t=l.integration)||void 0===t?void 0:t.id,custom:null==l||null===(e=l.integration)||void 0===e?void 0:e.customData,links:n,suggestions:s,token:f,locale:p,components:o,standalone:[!0,!1].includes(u)?u:null,o2m:[!0,!1].includes(c)?c:null};for(var h in d)[null,void 0,""].includes(d[h])&&delete d[h];return"".concat(y,"?").concat(a.stringify(d))}},{key:"dispatch",value:function(t,e,r,o){return this.handlers.filter((function(e){return e.eventName===t&&(!e.windowName||e.windowName===o)})).map((function(t){return t.func(e,r)}))}},{key:"onMessage",value:function(t){return this.isViibeEvent(t)?t.data&&t.data.event?this.dispatch(t.data.event,t.data.payload,t,t.data.windowName):t.data&&t.data.token?this.dispatch("authentication:token",t.data.token,t):t.data&&t.data.error?this.dispatch("authentication:error",t.data.error,t):null:null}},{key:"on",value:function(t,e,r){"string"==typeof t&&"function"==typeof e&&void 0===r&&(r=e,e=t,t=null);var o={eventName:e,func:r,windowName:t?t.name:null};this.handlers.push(o)}},{key:"onDocument",value:function(t){window.open(t.signed_url,"_blank")}},{key:"authenticate",value:function(t){var e=document.location,r=e.protocol,o=e.host;return l("".concat(r,"//api-").concat(o,"/auth/login/").concat(t,"?origin=").concat(origin))}}]),t}();u.Auth=p,"undefined"!=typeof window&&(window.Viibe=u),t.exports=u},507:(t,e,r)=>{"use strict";var o=r(453),n=r(556),i=r(859),a=r(675),c=o("%Map%",!0),l=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),s=n("Map.prototype.delete",!0),f=n("Map.prototype.size",!0);t.exports=!!c&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=s(t,e);return 0===f(t)&&(t=void 0),r}return!1},get:function(e){if(t)return l(t,e)},has:function(e){return!!t&&u(t,e)},set:function(e,r){t||(t=new c),p(t,e,r)}};return e}},514:t=>{"use strict";t.exports=Math.abs},538:t=>{"use strict";t.exports=ReferenceError},549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},556:(t,e,r)=>{"use strict";var o=r(453),n=r(126),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n([r]):r}},612:t=>{"use strict";t.exports=Object},621:t=>{"use strict";t.exports=Function.prototype.apply},628:(t,e,r)=>{"use strict";var o=r(648),n=r(64),i=r(176);t.exports=o?function(t){return o(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return n(t)}:i?function(t){return i(t)}:null},634:()=>{},636:(t,e,r)=>{"use strict";var o=r(920),n=r(720),i=r(765),a=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,p=Array.prototype.push,u=function(t,e){p.apply(t,l(e)?e:[e])},s=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},d={},h=function t(e,r,i,a,c,p,s,f,h,m,g,b,v,w,S,A,x,O){for(var j,E=e,P=O,I=0,k=!1;void 0!==(P=P.get(d))&&!k;){var D=P.get(e);if(I+=1,void 0!==D){if(D===I)throw new RangeError("Cyclic object value");k=!0}void 0===P.get(d)&&(I=0)}if("function"==typeof m?E=m(r,E):E instanceof Date?E=v(E):"comma"===i&&l(E)&&(E=n.maybeMap(E,(function(t){return t instanceof Date?v(t):t}))),null===E){if(p)return h&&!A?h(r,y.encoder,x,"key",w):r;E=""}if("string"==typeof(j=E)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||n.isBuffer(E))return h?[S(A?r:h(r,y.encoder,x,"key",w))+"="+S(h(E,y.encoder,x,"value",w))]:[S(r)+"="+S(String(E))];var _,R=[];if(void 0===E)return R;if("comma"===i&&l(E))A&&h&&(E=n.maybeMap(E,h)),_=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(m))_=m;else{var M=Object.keys(E);_=g?M.sort(g):M}var F=f?String(r).replace(/\./g,"%2E"):String(r),N=a&&l(E)&&1===E.length?F+"[]":F;if(c&&l(E)&&0===E.length)return N+"[]";for(var T=0;T<_.length;++T){var U=_[T],L="object"==typeof U&&U&&void 0!==U.value?U.value:E[U];if(!s||null!==L){var B=b&&f?String(U).replace(/\./g,"%2E"):String(U),C=l(E)?"function"==typeof i?i(N,B):N:N+(b?"."+B:"["+B+"]");O.set(e,I);var W=o();W.set(d,O),u(R,t(L,C,i,a,c,p,s,f,"comma"===i&&A&&l(E)?null:h,m,g,b,v,w,S,A,x,W))}}return R};t.exports=function(t,e){var r,n=t,p=function(t){if(!t)return y;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o,n=i.formatters[r],p=y.filter;if(("function"==typeof t.filter||l(t.filter))&&(p=t.filter),o=t.arrayFormat in c?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===t.allowDots?!0===t.encodeDotInKeys||y.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof p.filter?n=(0,p.filter)("",n):l(p.filter)&&(r=p.filter);var s=[];if("object"!=typeof n||null===n)return"";var f=c[p.arrayFormat],d="comma"===f&&p.commaRoundTrip;r||(r=Object.keys(n)),p.sort&&r.sort(p.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g],v=n[b];p.skipNulls&&null===v||u(s,h(v,b,f,d,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,m))}var w=s.join(p.delimiter),S=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},642:(t,e,r)=>{"use strict";var o=r(720),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},p=function(t,e,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,c=/(\[[^[\]]*])/g,p=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=p?a.slice(0,p.index):a,s=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;s.push(u)}for(var f=0;r.depth>0&&null!==(p=c.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&n.call(Object.prototype,p[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(p[1])}if(p){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");s.push("["+a.slice(p.index)+"]")}return function(t,e,r,n){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var c=n?e:l(e,r,i),p=t.length-1;p>=0;--p){var u,s=t[p];if("[]"===s&&r.parseArrays)u=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:o.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(y,10);r.parseArrays||""!==y?!isNaN(d)&&s!==y&&String(d)===y&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(u=[])[d]=c:"__proto__"!==y&&(u[y]=c):u={0:c}}c=u}return c}(s,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var u="string"==typeof t?function(t,e){var r={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=e.parameterLimit===1/0?void 0:e.parameterLimit,s=p.split(e.delimiter,e.throwOnLimitExceeded?u+1:u);if(e.throwOnLimitExceeded&&s.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var f,y=-1,d=e.charset;if(e.charsetSentinel)for(f=0;f<s.length;++f)0===s[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[f]?d="utf-8":"utf8=%26%2310003%3B"===s[f]&&(d="iso-8859-1"),y=f,f=s.length);for(f=0;f<s.length;++f)if(f!==y){var h,m,g=s[f],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(h=e.decoder(g,a.decoder,d,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(g.slice(0,v),a.decoder,d,"key"),m=o.maybeMap(l(g.slice(v+1),e,i(r[h])?r[h].length:0),(function(t){return e.decoder(t,a.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=c(String(m))),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m);var w=n.call(r,h);w&&"combine"===e.duplicates?r[h]=o.combine(r[h],m):w&&"last"!==e.duplicates||(r[h]=m)}return r}(t,r):t,s=r.plainObjects?{__proto__:null}:{},f=Object.keys(u),y=0;y<f.length;++y){var d=f[y],h=p(d,u[d],r,"string"==typeof t);s=o.merge(s,h,r)}return!0===r.allowSparse?s:o.compact(s)}},648:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},675:t=>{"use strict";t.exports=TypeError},720:(t,e,r)=>{"use strict";var o=r(765),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r},l=1024;t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],c=Object.keys(a),l=0;l<c.length;++l){var p=c[l],u=a[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:a,prop:p}),r.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var p="",u=0;u<c.length;u+=l){for(var s=c.length>=l?c.slice(u,u+l):c,f=[],y=0;y<s.length;++y){var d=s.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===o.RFC1738&&(40===d||41===d)?f[f.length]=s.charAt(y):d<128?f[f.length]=a[d]:d<2048?f[f.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?f[f.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(y)),f[f.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}p+=f.join("")}return p},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=c(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},743:(t,e,r)=>{"use strict";var o=r(353);t.exports=Function.prototype.bind||o},765:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},795:(t,e,r)=>{"use strict";var o=r(549);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},803:(t,e,r)=>{"use strict";var o=r(859),n=r(675),i=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){var r=t&&t.next,o=function(t,e){if(t)return i(t,e,!0)}(t,e);return o&&r&&r===o&&(t=void 0),!!o},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var o=i(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},859:(t,e,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&l&&"function"==typeof l.get?l.get:null,u=c&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,A=RegExp.prototype.test,x=Array.prototype.concat,O=Array.prototype.join,j=Array.prototype.slice,E=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function F(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-E(-t):E(t);if(o!==t){var n=String(o),i=b.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var N=r(634),T=N.custom,U=G(T)?T:null,L={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function C(t,e,r){var o=r.quoteStyle||e,n=L[o];return n+t+n}function W(t){return v.call(String(t),/"/g,""")}function K(t){return!_||!("object"==typeof t&&(_ in t||void 0!==t[_]))}function H(t){return"[object Array]"===q(t)&&K(t)}function z(t){return"[object RegExp]"===q(t)&&K(t)}function G(t){if(D)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,n,c){var l=o||{};if(V(l,"quoteStyle")&&!V(L,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!V(l,"customInspect")||l.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return J(e,l);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var A=String(e);return w?F(e,A):A}if("bigint"==typeof e){var E=String(e)+"n";return w?F(e,E):E}var I=void 0===l.depth?5:l.depth;if(void 0===n&&(n=0),n>=I&&I>0&&"object"==typeof e)return H(e)?"[Array]":"[Object]";var T,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(l,n);if(void 0===c)c=[];else if(Q(c,e)>=0)return"[Circular]";function $(e,r,o){if(r&&(c=j.call(c)).push(r),o){var i={depth:l.depth};return V(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),t(e,i,n+1,c)}return t(e,l,n+1,c)}if("function"==typeof e&&!z(e)){var Z=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),ot=rt(e,$);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(ot.length>0?" { "+O.call(ot,", ")+" }":"")}if(G(e)){var nt=D?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||D?nt:X(nt)}if((T=e)&&"object"==typeof T&&("undefined"!=typeof HTMLElement&&T instanceof HTMLElement||"string"==typeof T.nodeName&&"function"==typeof T.getAttribute)){for(var it="<"+S.call(String(e.nodeName)),at=e.attributes||[],ct=0;ct<at.length;ct++)it+=" "+at[ct].name+"="+C(W(at[ct].value),"double",l);return it+=">",e.childNodes&&e.childNodes.length&&(it+="..."),it+"</"+S.call(String(e.nodeName))+">"}if(H(e)){if(0===e.length)return"[]";var lt=rt(e,$);return B&&!function(t){for(var e=0;e<t.length;e++)if(Q(t[e],"\n")>=0)return!1;return!0}(lt)?"["+et(lt,B)+"]":"[ "+O.call(lt,", ")+" ]"}if(function(t){return"[object Error]"===q(t)&&K(t)}(e)){var pt=rt(e,$);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===pt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(pt,", ")+" }":"{ ["+String(e)+"] "+O.call(x.call("[cause]: "+$(e.cause),pt),", ")+" }"}if("object"==typeof e&&h){if(U&&"function"==typeof e[U]&&N)return N(e,{depth:I-n});if("symbol"!==h&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ut=[];return a&&a.call(e,(function(t,r){ut.push($(r,e,!0)+" => "+$(t,e))})),tt("Map",i.call(e),ut,B)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return u&&u.call(e,(function(t){st.push($(t,e))})),tt("Set",p.call(e),st,B)}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t,s);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{s.call(t,s)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return"[object Number]"===q(t)&&K(t)}(e))return X($(Number(e)));if(function(t){if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}(e))return X($(P.call(e)));if(function(t){return"[object Boolean]"===q(t)&&K(t)}(e))return X(d.call(e));if(function(t){return"[object String]"===q(t)&&K(t)}(e))return X($(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===q(t)&&K(t)}(e)&&!z(e)){var ft=rt(e,$),yt=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,dt=e instanceof Object?"":"null prototype",ht=!yt&&_&&Object(e)===e&&_ in e?b.call(q(e),8,-1):dt?"Object":"",mt=(yt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||dt?"["+O.call(x.call([],ht||[],dt||[]),": ")+"] ":"");return 0===ft.length?mt+"{}":B?mt+"{"+et(ft,B)+"}":mt+"{ "+O.call(ft,", ")+" }"}return String(e)};var $=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return $.call(t,e)}function q(t){return h.call(t)}function Q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function J(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return J(b.call(t,0,e.maxStringLength),e)+o}var n=B[e.quoteStyle||"single"];return n.lastIndex=0,C(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,Z),"single",e)}function Z(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function X(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function tt(t,e,r,o){return t+" ("+e+") {"+(o?et(r,o):O.call(r,", "))+"}"}function et(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function rt(t,e){var r=H(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=V(t,n)?e(t[n],t):""}var i,a="function"==typeof I?I(t):[];if(D){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)V(t,l)&&(r&&String(Number(l))===l&&l<t.length||D&&i["$"+l]instanceof Symbol||(A.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if("function"==typeof I)for(var p=0;p<a.length;p++)R.call(t,a[p])&&o.push("["+e(a[p])+"]: "+e(t[a[p]],t));return o}},880:t=>{"use strict";t.exports=Math.pow},920:(t,e,r)=>{"use strict";var o=r(675),n=r(859),i=r(803),a=r(507),c=r(271)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=c()),t.set(e,r)}};return e}},957:(t,e,r)=>{"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(743);t.exports=i.call(o,n)},968:t=>{"use strict";t.exports=Math.floor}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(497)})()));
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(self,(()=>(()=>{var t={2:t=>{"use strict";t.exports=Math.min},39:(t,e,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(333);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},64:(t,e,r)=>{"use strict";var o=r(612);t.exports=o.getPrototypeOf||null},68:t=>{"use strict";t.exports=SyntaxError},76:t=>{"use strict";t.exports=Function.prototype.call},93:(t,e,r)=>{"use strict";var o=r(459);t.exports=function(t){return o(t)||0===t?t:t<0?-1:1}},119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},126:(t,e,r)=>{"use strict";var o=r(743),n=r(675),i=r(76),a=r(144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return a(o,i,t)}},144:(t,e,r)=>{"use strict";var o=r(743),n=r(621),i=r(76),a=r(119);t.exports=a||o.call(i,n)},176:(t,e,r)=>{"use strict";var o,n=r(126),i=r(795);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;t.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(t){return l(null==t?t:c(t))}},188:t=>{"use strict";t.exports=Math.max},237:t=>{"use strict";t.exports=EvalError},271:(t,e,r)=>{"use strict";var o=r(453),n=r(556),i=r(859),a=r(507),c=r(675),l=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),s=n("WeakMap.prototype.delete",!0);t.exports=l?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new c("Side channel does not contain "+i(t))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(t)return s(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?f(t,r):!!e&&e.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new l),u(t,r,o)):a&&(e||(e=a()),e.set(r,o))}};return r}:a},290:t=>{"use strict";t.exports=RangeError},333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},345:t=>{"use strict";t.exports=URIError},353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,o=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r};t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,a=function(t){for(var e=[],r=1,o=0;r<t.length;r+=1,o+=1)e[o]=t[r];return e}(arguments),c=r(0,n.length-a.length),l=[],p=0;p<c;p++)l[p]="$"+p;if(i=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=n.apply(this,o(a,arguments));return Object(e)===e?e:this}return n.apply(t,o(a,arguments))})),n.prototype){var u=function(){};u.prototype=n.prototype,i.prototype=new u,u.prototype=null}return i}},373:(t,e,r)=>{"use strict";var o=r(636),n=r(642),i=r(765);t.exports={formats:i,parse:n,stringify:o}},383:t=>{"use strict";t.exports=Error},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var o,n=r(612),i=r(383),a=r(237),c=r(290),l=r(538),p=r(68),u=r(675),f=r(345),s=r(514),y=r(968),d=r(188),h=r(2),m=r(880),g=r(414),b=r(93),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},S=r(795),A=r(655),x=function(){throw new u},O=S?function(){try{return x}catch(t){try{return S(arguments,"callee").get}catch(t){return x}}}():x,j=r(39)(),E=r(628),P=r(64),I=r(648),k=r(621),D=r(76),_={},R="undefined"!=typeof Uint8Array&&E?E(Uint8Array):o,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":j&&E?E([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&E?E(E([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&j&&E?E((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&j&&E?E((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&E?E(""[Symbol.iterator]()):o,"%Symbol%":j?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":O,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":k,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":P,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(E)try{null.error}catch(t){var F=E(E(t));M["%Error.prototype%"]=F}var N=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&E&&(r=E(n.prototype))}return M[e]=r,r},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=r(743),L=r(957),B=U.call(D,Array.prototype.concat),C=U.call(k,Array.prototype.splice),W=U.call(D,String.prototype.replace),K=U.call(D,String.prototype.slice),H=U.call(D,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,$=function(t,e){var r,o=t;if(L(T,o)&&(o="%"+(r=T[o])[0]+"%"),L(M,o)){var n=M[o];if(n===_&&(n=N(o)),void 0===n&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=K(t,0,1),r=K(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return W(t,z,(function(t,e,r,n){o[o.length]=r?W(n,G,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=$("%"+o+"%",e),i=n.name,a=n.value,c=!1,l=n.alias;l&&(o=l[0],C(r,B([0,1],l)));for(var f=1,s=!0;f<r.length;f+=1){var y=r[f],d=K(y,0,1),h=K(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&s||(c=!0),L(M,i="%"+(o+="."+y)+"%"))a=M[i];else if(null!=a){if(!(y in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var m=S(a,y);a=(s=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else s=L(a,y),a=a[y];s&&!c&&(M[i]=a)}}return a}},459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},497:(t,e,r)=>{function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}var a=r(373);function c(t){return function(e){return Boolean(e.isTrusted&&0===e.origin.indexOf(t))}}function l(t){var e=new URL(t),r="".concat(e.protocol,"//").concat(e.host),o=window.screen.width/2-240,n=window.screen.height/2-300,i=["toolbar=no","location=no","directories=no","status=no","menubar=no","scrollbars=no","resizable=no","copyhistory=no","width=".concat(480),"height=".concat(600),"top=".concat(n),"left=".concat(o)];return new Promise((function(e,o){var n=window.open(t,"Authorization",i.join(", "));n||o("Failed to open window");var a=setInterval((function(){n.closed&&(l(),o("User closed window"))}),100);function l(){window.removeEventListener("message",p),clearInterval(a)}function p(t){if(!c(r)(t))return null;if(t.data.token&&(l(),e(t.data.token)),t.data.error&&(l(),o(t.data.error)),t.data&&t.data.event&&t.data.payload)switch(t.data.event){case"authentication:success":return l(),e(t.data);case"authentication:failure":return l(),o(t.data)}return null}window.addEventListener("message",p)}))}var p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auth.viibe.pro";o(this,t),this.host=e}return i(t,[{key:"loginZendesk",value:function(t){var e=document.location.origin;return l("https://".concat(this.host,"/auth/zendesk/login?subdomain=").concat(t,"&origin=").concat(e))}}]),t}(),u=function(){function t(e){o(this,t),this.handlers=[],this.host=e.host,this.viibeDomain=/^localhost/.test(this.host)?"http://".concat(this.host):"https://".concat(this.host),this.strategyIdentifier=e.strategyIdentifier,this.isViibeEvent=c(this.viibeDomain),window.addEventListener("message",this.onMessage.bind(this))}return i(t,[{key:"createNotificationIframe",value:function(){if(!this.host)throw new Error("fillHost");if(!this.strategyIdentifier)throw new Error("fillStrategyIdentifier");var t=document.createElement("iframe");return t.name="viibe-".concat(Math.floor(1e4*Math.random())),t.style="border: 0;width: 0;",t.src="".concat(this.viibeDomain,"/integration/features/notifications"),t}},{key:"createCallIframe",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.host)throw new Error("fillHost");if(!this.strategyIdentifier)throw new Error("fillStrategyIdentifier - this identifier should match exactly your viibe strategy identifier");var r=this.generateIframeSrc(e),o=document.createElement("iframe");return o.name="viibe-".concat(Math.floor(1e4*Math.random())),o.style="border: 0;width: calc(100% - 1rem);margin: 0.5rem;",o.src=r,o.allow="geolocation;autoplay;microphone;camera;midi;encrypted-media;clipboard-write;",this.on(o,"document",(function(e){return t.onDocument(e)})),o}},{key:"generateIframeSrc",value:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.components,n=r.links,i=r.o2m,c=void 0!==i&&i,l=r.ticket,p=r.locale,u=r.standalone,f=r.suggestions,s=r.token,y="".concat(this.viibeDomain,"/integration/features/ticket"),d={version:"2.0.0",origin:document.location.origin,resize:"true",strategyIdentifier:this.strategyIdentifier,title:null==l?void 0:l.title,thirdPartyId:null==l||null===(t=l.integration)||void 0===t?void 0:t.id,custom:null==l||null===(e=l.integration)||void 0===e?void 0:e.customData,links:n,suggestions:f,token:s,locale:p,components:o,standalone:[!0,!1].includes(u)?u:null,o2m:[!0,!1].includes(c)?c:null};for(var h in d)[null,void 0,""].includes(d[h])&&delete d[h];return"".concat(y,"?").concat(a.stringify(d))}},{key:"dispatch",value:function(t,e,r,o){return this.handlers.filter((function(e){return e.eventName===t&&(!e.windowName||e.windowName===o)})).map((function(t){return t.func(e,r)}))}},{key:"onMessage",value:function(t){return this.isViibeEvent(t)?t.data&&t.data.event?this.dispatch(t.data.event,t.data.payload,t,t.data.windowName):t.data&&t.data.token?this.dispatch("authentication:token",t.data.token,t):t.data&&t.data.error?this.dispatch("authentication:error",t.data.error,t):null:null}},{key:"on",value:function(t,e,r){"string"==typeof t&&"function"==typeof e&&void 0===r&&(r=e,e=t,t=null);var o={eventName:e,func:r,windowName:t?t.name:null};this.handlers.push(o)}},{key:"onDocument",value:function(t){window.open(t.signed_url,"_blank")}},{key:"authenticate",value:function(t){var e=document.location,r=e.protocol,o=e.host;return l("".concat(r,"//api-").concat(o,"/auth/login/").concat(t,"?origin=").concat(origin))}}]),t}();u.Auth=p,"undefined"!=typeof window&&(window.Viibe=u),t.exports=u},507:(t,e,r)=>{"use strict";var o=r(453),n=r(556),i=r(859),a=r(675),c=o("%Map%",!0),l=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),f=n("Map.prototype.delete",!0),s=n("Map.prototype.size",!0);t.exports=!!c&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=f(t,e);return 0===s(t)&&(t=void 0),r}return!1},get:function(e){if(t)return l(t,e)},has:function(e){return!!t&&u(t,e)},set:function(e,r){t||(t=new c),p(t,e,r)}};return e}},514:t=>{"use strict";t.exports=Math.abs},538:t=>{"use strict";t.exports=ReferenceError},549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},556:(t,e,r)=>{"use strict";var o=r(453),n=r(126),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n([r]):r}},612:t=>{"use strict";t.exports=Object},621:t=>{"use strict";t.exports=Function.prototype.apply},628:(t,e,r)=>{"use strict";var o=r(648),n=r(64),i=r(176);t.exports=o?function(t){return o(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return n(t)}:i?function(t){return i(t)}:null},634:()=>{},636:(t,e,r)=>{"use strict";var o=r(920),n=r(720),i=r(765),a=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,p=Array.prototype.push,u=function(t,e){p.apply(t,l(e)?e:[e])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},d={},h=function t(e,r,i,a,c,p,f,s,h,m,g,b,v,w,S,A,x,O){for(var j,E=e,P=O,I=0,k=!1;void 0!==(P=P.get(d))&&!k;){var D=P.get(e);if(I+=1,void 0!==D){if(D===I)throw new RangeError("Cyclic object value");k=!0}void 0===P.get(d)&&(I=0)}if("function"==typeof m?E=m(r,E):E instanceof Date?E=v(E):"comma"===i&&l(E)&&(E=n.maybeMap(E,(function(t){return t instanceof Date?v(t):t}))),null===E){if(p)return h&&!A?h(r,y.encoder,x,"key",w):r;E=""}if("string"==typeof(j=E)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||n.isBuffer(E))return h?[S(A?r:h(r,y.encoder,x,"key",w))+"="+S(h(E,y.encoder,x,"value",w))]:[S(r)+"="+S(String(E))];var _,R=[];if(void 0===E)return R;if("comma"===i&&l(E))A&&h&&(E=n.maybeMap(E,h)),_=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(m))_=m;else{var M=Object.keys(E);_=g?M.sort(g):M}var F=s?String(r).replace(/\./g,"%2E"):String(r),N=a&&l(E)&&1===E.length?F+"[]":F;if(c&&l(E)&&0===E.length)return N+"[]";for(var T=0;T<_.length;++T){var U=_[T],L="object"==typeof U&&U&&void 0!==U.value?U.value:E[U];if(!f||null!==L){var B=b&&s?String(U).replace(/\./g,"%2E"):String(U),C=l(E)?"function"==typeof i?i(N,B):N:N+(b?"."+B:"["+B+"]");O.set(e,I);var W=o();W.set(d,O),u(R,t(L,C,i,a,c,p,f,s,"comma"===i&&A&&l(E)?null:h,m,g,b,v,w,S,A,x,W))}}return R};t.exports=function(t,e){var r,n=t,p=function(t){if(!t)return y;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o,n=i.formatters[r],p=y.filter;if(("function"==typeof t.filter||l(t.filter))&&(p=t.filter),o=t.arrayFormat in c?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===t.allowDots?!0===t.encodeDotInKeys||y.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof p.filter?n=(0,p.filter)("",n):l(p.filter)&&(r=p.filter);var f=[];if("object"!=typeof n||null===n)return"";var s=c[p.arrayFormat],d="comma"===s&&p.commaRoundTrip;r||(r=Object.keys(n)),p.sort&&r.sort(p.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g],v=n[b];p.skipNulls&&null===v||u(f,h(v,b,s,d,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,m))}var w=f.join(p.delimiter),S=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},642:(t,e,r)=>{"use strict";var o=r(720),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},p=function(t,e,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,c=/(\[[^[\]]*])/g,p=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=p?a.slice(0,p.index):a,f=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var s=0;r.depth>0&&null!==(p=c.exec(a))&&s<r.depth;){if(s+=1,!r.plainObjects&&n.call(Object.prototype,p[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(p[1])}if(p){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");f.push("["+a.slice(p.index)+"]")}return function(t,e,r,n){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var c=n?e:l(e,r,i),p=t.length-1;p>=0;--p){var u,f=t[p];if("[]"===f&&r.parseArrays)u=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:o.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var s="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,y=r.decodeDotInKeys?s.replace(/%2E/g,"."):s,d=parseInt(y,10);r.parseArrays||""!==y?!isNaN(d)&&f!==y&&String(d)===y&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(u=[])[d]=c:"__proto__"!==y&&(u[y]=c):u={0:c}}c=u}return c}(f,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var u="string"==typeof t?function(t,e){var r={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,e.throwOnLimitExceeded?u+1:u);if(e.throwOnLimitExceeded&&f.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var s,y=-1,d=e.charset;if(e.charsetSentinel)for(s=0;s<f.length;++s)0===f[s].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[s]?d="utf-8":"utf8=%26%2310003%3B"===f[s]&&(d="iso-8859-1"),y=s,s=f.length);for(s=0;s<f.length;++s)if(s!==y){var h,m,g=f[s],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(h=e.decoder(g,a.decoder,d,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(g.slice(0,v),a.decoder,d,"key"),m=o.maybeMap(l(g.slice(v+1),e,i(r[h])?r[h].length:0),(function(t){return e.decoder(t,a.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=c(String(m))),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m);var w=n.call(r,h);w&&"combine"===e.duplicates?r[h]=o.combine(r[h],m):w&&"last"!==e.duplicates||(r[h]=m)}return r}(t,r):t,f=r.plainObjects?{__proto__:null}:{},s=Object.keys(u),y=0;y<s.length;++y){var d=s[y],h=p(d,u[d],r,"string"==typeof t);f=o.merge(f,h,r)}return!0===r.allowSparse?f:o.compact(f)}},648:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},675:t=>{"use strict";t.exports=TypeError},720:(t,e,r)=>{"use strict";var o=r(765),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r},l=1024;t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],c=Object.keys(a),l=0;l<c.length;++l){var p=c[l],u=a[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:a,prop:p}),r.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var p="",u=0;u<c.length;u+=l){for(var f=c.length>=l?c.slice(u,u+l):c,s=[],y=0;y<f.length;++y){var d=f.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===o.RFC1738&&(40===d||41===d)?s[s.length]=f.charAt(y):d<128?s[s.length]=a[d]:d<2048?s[s.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?s[s.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&f.charCodeAt(y)),s[s.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}p+=s.join("")}return p},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=c(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},743:(t,e,r)=>{"use strict";var o=r(353);t.exports=Function.prototype.bind||o},765:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},795:(t,e,r)=>{"use strict";var o=r(549);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},803:(t,e,r)=>{"use strict";var o=r(859),n=r(675),i=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){var r=t&&t.next,o=function(t,e){if(t)return i(t,e,!0)}(t,e);return o&&r&&r===o&&(t=void 0),!!o},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var o=i(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},859:(t,e,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&l&&"function"==typeof l.get?l.get:null,u=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,A=RegExp.prototype.test,x=Array.prototype.concat,O=Array.prototype.join,j=Array.prototype.slice,E=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function F(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-E(-t):E(t);if(o!==t){var n=String(o),i=b.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var N=r(634),T=N.custom,U=G(T)?T:null,L={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function C(t,e,r){var o=r.quoteStyle||e,n=L[o];return n+t+n}function W(t){return v.call(String(t),/"/g,""")}function K(t){return!_||!("object"==typeof t&&(_ in t||void 0!==t[_]))}function H(t){return"[object Array]"===q(t)&&K(t)}function z(t){return"[object RegExp]"===q(t)&&K(t)}function G(t){if(D)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,n,c){var l=o||{};if(V(l,"quoteStyle")&&!V(L,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!V(l,"customInspect")||l.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return J(e,l);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var A=String(e);return w?F(e,A):A}if("bigint"==typeof e){var E=String(e)+"n";return w?F(e,E):E}var I=void 0===l.depth?5:l.depth;if(void 0===n&&(n=0),n>=I&&I>0&&"object"==typeof e)return H(e)?"[Array]":"[Object]";var T,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(l,n);if(void 0===c)c=[];else if(Q(c,e)>=0)return"[Circular]";function $(e,r,o){if(r&&(c=j.call(c)).push(r),o){var i={depth:l.depth};return V(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),t(e,i,n+1,c)}return t(e,l,n+1,c)}if("function"==typeof e&&!z(e)){var Z=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),ot=rt(e,$);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(ot.length>0?" { "+O.call(ot,", ")+" }":"")}if(G(e)){var nt=D?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||D?nt:X(nt)}if((T=e)&&"object"==typeof T&&("undefined"!=typeof HTMLElement&&T instanceof HTMLElement||"string"==typeof T.nodeName&&"function"==typeof T.getAttribute)){for(var it="<"+S.call(String(e.nodeName)),at=e.attributes||[],ct=0;ct<at.length;ct++)it+=" "+at[ct].name+"="+C(W(at[ct].value),"double",l);return it+=">",e.childNodes&&e.childNodes.length&&(it+="..."),it+"</"+S.call(String(e.nodeName))+">"}if(H(e)){if(0===e.length)return"[]";var lt=rt(e,$);return B&&!function(t){for(var e=0;e<t.length;e++)if(Q(t[e],"\n")>=0)return!1;return!0}(lt)?"["+et(lt,B)+"]":"[ "+O.call(lt,", ")+" ]"}if(function(t){return"[object Error]"===q(t)&&K(t)}(e)){var pt=rt(e,$);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===pt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(pt,", ")+" }":"{ ["+String(e)+"] "+O.call(x.call("[cause]: "+$(e.cause),pt),", ")+" }"}if("object"==typeof e&&h){if(U&&"function"==typeof e[U]&&N)return N(e,{depth:I-n});if("symbol"!==h&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ut=[];return a&&a.call(e,(function(t,r){ut.push($(r,e,!0)+" => "+$(t,e))})),tt("Map",i.call(e),ut,B)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ft=[];return u&&u.call(e,(function(t){ft.push($(t,e))})),tt("Set",p.call(e),ft,B)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{s.call(t,s)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t,s);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return"[object Number]"===q(t)&&K(t)}(e))return X($(Number(e)));if(function(t){if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}(e))return X($(P.call(e)));if(function(t){return"[object Boolean]"===q(t)&&K(t)}(e))return X(d.call(e));if(function(t){return"[object String]"===q(t)&&K(t)}(e))return X($(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===q(t)&&K(t)}(e)&&!z(e)){var st=rt(e,$),yt=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,dt=e instanceof Object?"":"null prototype",ht=!yt&&_&&Object(e)===e&&_ in e?b.call(q(e),8,-1):dt?"Object":"",mt=(yt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||dt?"["+O.call(x.call([],ht||[],dt||[]),": ")+"] ":"");return 0===st.length?mt+"{}":B?mt+"{"+et(st,B)+"}":mt+"{ "+O.call(st,", ")+" }"}return String(e)};var $=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return $.call(t,e)}function q(t){return h.call(t)}function Q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function J(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return J(b.call(t,0,e.maxStringLength),e)+o}var n=B[e.quoteStyle||"single"];return n.lastIndex=0,C(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,Z),"single",e)}function Z(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function X(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function tt(t,e,r,o){return t+" ("+e+") {"+(o?et(r,o):O.call(r,", "))+"}"}function et(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function rt(t,e){var r=H(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=V(t,n)?e(t[n],t):""}var i,a="function"==typeof I?I(t):[];if(D){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)V(t,l)&&(r&&String(Number(l))===l&&l<t.length||D&&i["$"+l]instanceof Symbol||(A.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if("function"==typeof I)for(var p=0;p<a.length;p++)R.call(t,a[p])&&o.push("["+e(a[p])+"]: "+e(t[a[p]],t));return o}},880:t=>{"use strict";t.exports=Math.pow},920:(t,e,r)=>{"use strict";var o=r(675),n=r(859),i=r(803),a=r(507),c=r(271)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=c()),t.set(e,r)}};return e}},957:(t,e,r)=>{"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(743);t.exports=i.call(o,n)},968:t=>{"use strict";t.exports=Math.floor}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(497)})()));
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -135,7 +135,7 @@ class Viibe {
|
|
|
135
135
|
*
|
|
136
136
|
* @param {object} options
|
|
137
137
|
* @param {string} options.host Target ViiBE subdomain (e.g. test.viibe.tech)
|
|
138
|
-
* @param {string} options.
|
|
138
|
+
* @param {string} options.strategyIdentifier Strategy identifier
|
|
139
139
|
*/
|
|
140
140
|
constructor(options) {
|
|
141
141
|
/**
|
|
@@ -144,8 +144,7 @@ class Viibe {
|
|
|
144
144
|
this.handlers = [];
|
|
145
145
|
this.host = options.host;
|
|
146
146
|
this.viibeDomain = /^localhost/.test(this.host) ? `http://${this.host}` : `https://${this.host}`;
|
|
147
|
-
this.
|
|
148
|
-
this.source = options.source;
|
|
147
|
+
this.strategyIdentifier = options.strategyIdentifier;
|
|
149
148
|
|
|
150
149
|
this.isViibeEvent = isFromOrigin(this.viibeDomain);
|
|
151
150
|
|
|
@@ -157,8 +156,8 @@ class Viibe {
|
|
|
157
156
|
throw new Error('fillHost');
|
|
158
157
|
}
|
|
159
158
|
|
|
160
|
-
if (!this.
|
|
161
|
-
throw new Error('
|
|
159
|
+
if (!this.strategyIdentifier) {
|
|
160
|
+
throw new Error('fillStrategyIdentifier');
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
const iframe = document.createElement('iframe');
|
|
@@ -175,8 +174,8 @@ class Viibe {
|
|
|
175
174
|
throw new Error('fillHost');
|
|
176
175
|
}
|
|
177
176
|
|
|
178
|
-
if (!this.
|
|
179
|
-
throw new Error('
|
|
177
|
+
if (!this.strategyIdentifier) {
|
|
178
|
+
throw new Error('fillStrategyIdentifier - this identifier should match exactly your viibe strategy identifier');
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
const src = this.generateIframeSrc(options);
|
|
@@ -211,7 +210,7 @@ class Viibe {
|
|
|
211
210
|
version: '2.0.0',
|
|
212
211
|
origin: document.location.origin,
|
|
213
212
|
resize: 'true',
|
|
214
|
-
|
|
213
|
+
strategyIdentifier: this.strategyIdentifier,
|
|
215
214
|
title: ticket?.title,
|
|
216
215
|
thirdPartyId: ticket?.integration?.id,
|
|
217
216
|
custom: ticket?.integration?.customData,
|
package/test/dist.test.js
CHANGED
|
@@ -11,7 +11,7 @@ describe('dist', () => {
|
|
|
11
11
|
expect(new Viibe({})).toBeInstanceOf(Viibe);
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
test('throws errors when host or
|
|
14
|
+
test('throws errors when host or strategyIdentifier are not defined', () => {
|
|
15
15
|
const viibe = new Viibe({});
|
|
16
16
|
|
|
17
17
|
expect(() => viibe.createNotificationIframe()).toThrow('fillHost');
|
|
@@ -21,18 +21,18 @@ describe('dist', () => {
|
|
|
21
21
|
host: 'praxedo-qa.viibe.tech',
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
expect(() => viibeWithHost.createNotificationIframe()).toThrow('
|
|
25
|
-
expect(() => viibeWithHost.createCallIframe()).toThrow('
|
|
24
|
+
expect(() => viibeWithHost.createNotificationIframe()).toThrow('fillStrategyIdentifier');
|
|
25
|
+
expect(() => viibeWithHost.createCallIframe()).toThrow('fillStrategyIdentifier');
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
test('constructor', () => {
|
|
29
29
|
const viibe = new Viibe({
|
|
30
30
|
host: 'praxedo-qa.viibe.tech',
|
|
31
|
-
|
|
31
|
+
strategyIdentifier: 'jest',
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
expect(viibe.host).toBe('praxedo-qa.viibe.tech');
|
|
35
|
-
expect(viibe.
|
|
35
|
+
expect(viibe.strategyIdentifier).toBe('jest');
|
|
36
36
|
expect(viibe.viibeDomain).toBe('https://praxedo-qa.viibe.tech');
|
|
37
37
|
|
|
38
38
|
const viibeLocalhost = new Viibe({
|
|
@@ -45,7 +45,7 @@ describe('dist', () => {
|
|
|
45
45
|
test('createNotificationIframe', () => {
|
|
46
46
|
const viibe = new Viibe({
|
|
47
47
|
host: 'praxedo-qa.viibe.tech',
|
|
48
|
-
|
|
48
|
+
strategyIdentifier: 'jest',
|
|
49
49
|
});
|
|
50
50
|
const iframe = viibe.createNotificationIframe();
|
|
51
51
|
|
|
@@ -59,7 +59,7 @@ describe('dist', () => {
|
|
|
59
59
|
test('createCallIframe', () => {
|
|
60
60
|
const viibe = new Viibe({
|
|
61
61
|
host: 'praxedo-qa.viibe.tech',
|
|
62
|
-
|
|
62
|
+
strategyIdentifier: 'jest',
|
|
63
63
|
});
|
|
64
64
|
const iframe = viibe.createCallIframe();
|
|
65
65
|
|
|
@@ -74,7 +74,7 @@ describe('dist', () => {
|
|
|
74
74
|
test('generateIframeSrc', () => {
|
|
75
75
|
const viibe = new Viibe({
|
|
76
76
|
host: 'praxedo-qa.viibe.tech',
|
|
77
|
-
|
|
77
|
+
strategyIdentifier: 'jest',
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
const options = {
|
|
@@ -103,7 +103,7 @@ describe('dist', () => {
|
|
|
103
103
|
}
|
|
104
104
|
const generatedURL = viibe.generateIframeSrc(options);
|
|
105
105
|
|
|
106
|
-
const expectedURL = 'https://praxedo-qa.viibe.tech/integration/features/ticket?version=2.0.0&origin=http://localhost&resize=true&
|
|
106
|
+
const expectedURL = 'https://praxedo-qa.viibe.tech/integration/features/ticket?version=2.0.0&origin=http://localhost&resize=true&strategyIdentifier=jest&title=Some title&thirdPartyId=ticket-1&custom[entUuid]=XYZ&links[0][category]=phone&links[0][value]=+33666666666&links[1][category]=email&links[1][value]=test@test.fr&locale=FR&components[0]=call&components[1]=ticket&components[2]=schedule&standalone=false&o2m=true';
|
|
107
107
|
expect(decodeURIComponent(generatedURL)).toBe(expectedURL);
|
|
108
108
|
});
|
|
109
109
|
});
|