Socket
Socket
Sign inDemoInstall

@beyonk/embedded

Package Overview
Dependencies
0
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.9 to 2.0.0

2

dist/observers.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BeyonkEmbedded={})}(this,(function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,f={f:a&&!c.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},y="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?y.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},d=function(t){return h(v(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(t,e){return m.call(t,e)},O=o.document,w=g(O)&&g(O.createElement),E=function(t){return w?O.createElement(t):{}},j=!u&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),x=Object.getOwnPropertyDescriptor,P={f:u?x:function(t,e){if(t=d(t),e=b(e,!0),j)try{return x(t,e)}catch(t){}if(S(t,e))return l(!f.f.call(t,e),t[e])}},_=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},I=Object.defineProperty,N={f:u?I:function(t,e,n){if(_(t),e=b(e,!0),_(n),j)try{return I(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=u?function(t,e,n){return N.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},R=function(t,e){try{T(o,t,e)}catch(n){o[t]=e}return e},A="__core-js_shared__",k=o[A]||R(A,{}),C=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(t){return C.call(t)});var F,M,D,L=k.inspectSource,U=o.WeakMap,z="function"==typeof U&&/native code/.test(L(U)),$=n((function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,G=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+G).toString(36)},W=$("keys"),Y=function(t){return W[t]||(W[t]=V(t))},J={},K=o.WeakMap;if(z){var X=new K,q=X.get,Q=X.has,H=X.set;F=function(t,e){return H.call(X,t,e),e},M=function(t){return q.call(X,t)||{}},D=function(t){return Q.call(X,t)}}else{var Z=Y("state");J[Z]=!0,F=function(t,e){return T(t,Z,e),e},M=function(t){return S(t,Z)?t[Z]:{}},D=function(t){return S(t,Z)}}var tt,et={set:F,get:M,has:D,enforce:function(t){return D(t)?M(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=n((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var c=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||T(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(c?!f&&t[e]&&(a=!0):delete t[e],a?t[e]=i:T(t,e,i)):a?t[e]=i:R(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),rt=o,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},ut=Math.ceil,ct=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},ft=Math.min,lt=function(t){return t>0?ft(at(t),9007199254740991):0},st=Math.max,pt=Math.min,yt=function(t){return function(e,n,r){var o,i=d(e),u=lt(i.length),c=function(t,e){var n=at(t);return n<0?st(n+e,0):pt(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ht={includes:yt(!0),indexOf:yt(!1)},vt=ht.indexOf,dt=function(t,e){var n,r=d(t),o=0,i=[];for(n in r)!S(J,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=gt.concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return dt(t,bt)}},St={f:Object.getOwnPropertySymbols},Ot=it("Reflect","ownKeys")||function(t){var e=mt.f(_(t)),n=St.f;return n?e.concat(n(t)):e},wt=function(t,e){for(var n=Ot(e),r=N.f,o=P.f,i=0;i<n.length;i++){var u=n[i];S(t,u)||r(t,u,o(e,u))}},Et=/#|\.prototype\./,jt=function(t,e){var n=Pt[xt(t)];return n==It||n!=_t&&("function"==typeof e?i(e):!!e)},xt=jt.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},Pt=jt.data={},_t=jt.NATIVE="N",It=jt.POLYFILL="P",Nt=jt,Tt=P.f,Rt=function(t,e){var n,r,i,u,c,a=t.target,f=t.global,l=t.stat;if(n=f?o:l?o[a]||R(a,{}):(o[a]||{}).prototype)for(r in e){if(u=e[r],i=t.noTargetGet?(c=Tt(n,r))&&c.value:n[r],!Nt(f?r:a+(l?".":"#")+r,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;wt(u,i)}(t.sham||i&&i.sham)&&T(u,"sham",!0),nt(n,r,u,t)}},At=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),kt=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ct=Array.isArray||function(t){return"Array"==p(t)},Ft=function(t){return Object(v(t))},Mt=Object.keys||function(t){return dt(t,gt)},Dt=u?Object.defineProperties:function(t,e){_(t);for(var n,r=Mt(e),o=r.length,i=0;o>i;)N.f(t,n=r[i++],e[n]);return t},Lt=it("document","documentElement"),Ut="prototype",zt="script",$t=Y("IE_PROTO"),Bt=function(){},Gt=function(t){return"<"+zt+">"+t+"</"+zt+">"},Vt=function(){try{tt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Vt=tt?function(t){t.write(Gt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(tt):(e=E("iframe"),n="java"+zt+":",e.style.display="none",Lt.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Gt("document.F=Object")),t.close(),t.F);for(var r=gt.length;r--;)delete Vt[Ut][gt[r]];return Vt()};J[$t]=!0;var Wt,Yt,Jt,Kt=Object.create||function(t,e){var n;return null!==t?(Bt[Ut]=_(t),n=new Bt,Bt[Ut]=null,n[$t]=t):n=Vt(),void 0===e?n:Dt(n,e)},Xt=mt.f,qt={}.toString,Qt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ht={f:function(t){return Qt&&"[object Window]"==qt.call(t)?function(t){try{return Xt(t)}catch(t){return Qt.slice()}}(t):Xt(d(t))}},Zt=$("wks"),te=o.Symbol,ee=kt?te:te&&te.withoutSetter||V,ne=function(t){return S(Zt,t)||(At&&S(te,t)?Zt[t]=te[t]:Zt[t]=ee("Symbol."+t)),Zt[t]},re={f:ne},oe=N.f,ie=function(t){var e=rt.Symbol||(rt.Symbol={});S(e,t)||oe(e,t,{value:re.f(t)})},ue=N.f,ce=ne("toStringTag"),ae=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},fe=ne("species"),le=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?g(n)&&null===(n=n[fe])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},se=[].push,pe=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,a,f,l){for(var s,p,y=Ft(c),v=h(y),d=function(t,e,n){if(ae(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}(a,f,3),g=lt(v.length),b=0,m=l||le,S=e?m(c,g):n?m(c,0):void 0;g>b;b++)if((u||b in v)&&(p=d(s=v[b],b,y),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return s;case 6:return b;case 2:se.call(S,s)}else if(o)return!1;return i?-1:r||o?o:S}},ye={forEach:pe(0),map:pe(1),filter:pe(2),some:pe(3),every:pe(4),find:pe(5),findIndex:pe(6)}.forEach,he=Y("hidden"),ve="Symbol",de="prototype",ge=ne("toPrimitive"),be=et.set,me=et.getterFor(ve),Se=Object[de],Oe=o.Symbol,we=it("JSON","stringify"),Ee=P.f,je=N.f,xe=Ht.f,Pe=f.f,_e=$("symbols"),Ie=$("op-symbols"),Ne=$("string-to-symbol-registry"),Te=$("symbol-to-string-registry"),Re=$("wks"),Ae=o.QObject,ke=!Ae||!Ae[de]||!Ae[de].findChild,Ce=u&&i((function(){return 7!=Kt(je({},"a",{get:function(){return je(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ee(Se,e);r&&delete Se[e],je(t,e,n),r&&t!==Se&&je(Se,e,r)}:je,Fe=function(t,e){var n=_e[t]=Kt(Oe[de]);return be(n,{type:ve,tag:t,description:e}),u||(n.description=e),n},Me=kt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Oe},De=function(t,e,n){t===Se&&De(Ie,e,n),_(t);var r=b(e,!0);return _(n),S(_e,r)?(n.enumerable?(S(t,he)&&t[he][r]&&(t[he][r]=!1),n=Kt(n,{enumerable:l(0,!1)})):(S(t,he)||je(t,he,l(1,{})),t[he][r]=!0),Ce(t,r,n)):je(t,r,n)},Le=function(t,e){_(t);var n=d(e),r=Mt(n).concat(Be(n));return ye(r,(function(e){u&&!Ue.call(n,e)||De(t,e,n[e])})),t},Ue=function(t){var e=b(t,!0),n=Pe.call(this,e);return!(this===Se&&S(_e,e)&&!S(Ie,e))&&(!(n||!S(this,e)||!S(_e,e)||S(this,he)&&this[he][e])||n)},ze=function(t,e){var n=d(t),r=b(e,!0);if(n!==Se||!S(_e,r)||S(Ie,r)){var o=Ee(n,r);return!o||!S(_e,r)||S(n,he)&&n[he][r]||(o.enumerable=!0),o}},$e=function(t){var e=xe(d(t)),n=[];return ye(e,(function(t){S(_e,t)||S(J,t)||n.push(t)})),n},Be=function(t){var e=t===Se,n=xe(e?Ie:d(t)),r=[];return ye(n,(function(t){!S(_e,t)||e&&!S(Se,t)||r.push(_e[t])})),r};(At||(Oe=function(){if(this instanceof Oe)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=V(t),n=function(t){this===Se&&n.call(Ie,t),S(this,he)&&S(this[he],e)&&(this[he][e]=!1),Ce(this,e,l(1,t))};return u&&ke&&Ce(Se,e,{configurable:!0,set:n}),Fe(e,t)},nt(Oe[de],"toString",(function(){return me(this).tag})),nt(Oe,"withoutSetter",(function(t){return Fe(V(t),t)})),f.f=Ue,N.f=De,P.f=ze,mt.f=Ht.f=$e,St.f=Be,re.f=function(t){return Fe(ne(t),t)},u&&(je(Oe[de],"description",{configurable:!0,get:function(){return me(this).description}}),nt(Se,"propertyIsEnumerable",Ue,{unsafe:!0}))),Rt({global:!0,wrap:!0,forced:!At,sham:!At},{Symbol:Oe}),ye(Mt(Re),(function(t){ie(t)})),Rt({target:ve,stat:!0,forced:!At},{for:function(t){var e=String(t);if(S(Ne,e))return Ne[e];var n=Oe(e);return Ne[e]=n,Te[n]=e,n},keyFor:function(t){if(!Me(t))throw TypeError(t+" is not a symbol");if(S(Te,t))return Te[t]},useSetter:function(){ke=!0},useSimple:function(){ke=!1}}),Rt({target:"Object",stat:!0,forced:!At,sham:!u},{create:function(t,e){return void 0===e?Kt(t):Le(Kt(t),e)},defineProperty:De,defineProperties:Le,getOwnPropertyDescriptor:ze}),Rt({target:"Object",stat:!0,forced:!At},{getOwnPropertyNames:$e,getOwnPropertySymbols:Be}),Rt({target:"Object",stat:!0,forced:i((function(){St.f(1)}))},{getOwnPropertySymbols:function(t){return St.f(Ft(t))}}),we)&&Rt({target:"JSON",stat:!0,forced:!At||i((function(){var t=Oe();return"[null]"!=we([t])||"{}"!=we({a:t})||"{}"!=we(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(g(e)||void 0!==t)&&!Me(t))return Ct(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Me(e))return e}),o[1]=e,we.apply(null,o)}});Oe[de][ge]||T(Oe[de],ge,Oe[de].valueOf),Yt=ve,(Wt=Oe)&&!S(Wt=Jt?Wt:Wt.prototype,ce)&&ue(Wt,ce,{configurable:!0,value:Yt}),J[he]=!0;var Ge=N.f,Ve=o.Symbol;if(u&&"function"==typeof Ve&&(!("description"in Ve.prototype)||void 0!==Ve().description)){var We={},Ye=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ye?new Ve(t):void 0===t?Ve():Ve(t);return""===t&&(We[e]=!0),e};wt(Ye,Ve);var Je=Ye.prototype=Ve.prototype;Je.constructor=Ye;var Ke=Je.toString,Xe="Symbol(test)"==String(Ve("test")),qe=/^Symbol\((.*)\)[^)]+$/;Ge(Je,"description",{configurable:!0,get:function(){var t=g(this)?this.valueOf():this,e=Ke.call(t);if(S(We,t))return"";var n=Xe?e.slice(7,-1):e.replace(qe,"$1");return""===n?void 0:n}}),Rt({global:!0,forced:!0},{Symbol:Ye})}ie("toPrimitive");var Qe=ne("unscopables"),He=Array.prototype;null==He[Qe]&&N.f(He,Qe,{configurable:!0,value:Kt(null)});var Ze=Object.defineProperty,tn={},en=function(t){throw t},nn=ht.includes;Rt({target:"Array",proto:!0,forced:!function(t,e){if(S(tn,t))return tn[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,o=S(e,0)?e[0]:en,c=S(e,1)?e[1]:void 0;return tn[t]=!!n&&!i((function(){if(r&&!u)return!0;var t={length:-1};r?Ze(t,1,{enumerable:!0,get:en}):t[1]=1,n.call(t,o,c)}))}("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return nn(this,t,arguments.length>1?arguments[1]:void 0)}}),function(t){He[Qe][t]=!0}("includes");var rn=ne("toPrimitive"),on=Date.prototype;rn in on||T(on,rn,(function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return b(_(this),"number"!==t)}));var un=[].slice,cn={},an=Function.bind||function(t){var e=ae(this),n=un.call(arguments,1),r=function(){var o=n.concat(un.call(arguments));return this instanceof r?function(t,e,n){if(!(e in cn)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";cn[e]=Function("C,a","return new C("+r.join(",")+")")}return cn[e](t,n)}(e,o.length,o):e.apply(t,o)};return g(e.prototype)&&(r.prototype=e.prototype),r};Rt({target:"Function",proto:!0},{bind:an});var fn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return _(n),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),ln="[\t\n\v\f\r                 \u2028\u2029\ufeff]",sn=RegExp("^"+ln+ln+"*"),pn=RegExp(ln+ln+"*$"),yn=function(t){return function(e){var n=String(v(e));return 1&t&&(n=n.replace(sn,"")),2&t&&(n=n.replace(pn,"")),n}},hn={start:yn(1),end:yn(2),trim:yn(3)},vn=mt.f,dn=P.f,gn=N.f,bn=hn.trim,mn="Number",Sn=o[mn],On=Sn.prototype,wn=p(Kt(On))==mn,En=function(t){var e,n,r,o,i,u,c,a,f=b(t,!1);if("string"==typeof f&&f.length>2)if(43===(e=(f=bn(f)).charCodeAt(0))||45===e){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=f.slice(2)).length,c=0;c<u;c++)if((a=i.charCodeAt(c))<48||a>o)return NaN;return parseInt(i,r)}return+f};if(Nt(mn,!Sn(" 0o1")||!Sn("0b1")||Sn("+0x1"))){for(var jn,xn=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof xn&&(wn?i((function(){On.valueOf.call(n)})):p(n)!=mn)?function(t,e,n){var r,o;return fn&&"function"==typeof(r=e.constructor)&&r!==n&&g(o=r.prototype)&&o!==n.prototype&&fn(t,o),t}(new Sn(En(e)),n,xn):En(e)},Pn=u?vn(Sn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_n=0;Pn.length>_n;_n++)S(Sn,jn=Pn[_n])&&!S(xn,jn)&&gn(xn,jn,dn(Sn,jn));xn.prototype=On,On.constructor=xn,nt(o,mn,xn)}var In={};In[ne("toStringTag")]="z";var Nn="[object z]"===String(In),Tn=ne("toStringTag"),Rn="Arguments"==p(function(){return arguments}()),An=Nn?p:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Tn))?n:Rn?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},kn=Nn?{}.toString:function(){return"[object "+An(this)+"]"};Nn||nt(Object.prototype,"toString",kn,{unsafe:!0});var Cn=function(){var t=_(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Fn(t,e){return RegExp(t,e)}var Mn,Dn,Ln={UNSUPPORTED_Y:i((function(){var t=Fn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:i((function(){var t=Fn("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Un=RegExp.prototype.exec,zn=String.prototype.replace,$n=Un,Bn=(Mn=/a/,Dn=/b*/g,Un.call(Mn,"a"),Un.call(Dn,"a"),0!==Mn.lastIndex||0!==Dn.lastIndex),Gn=Ln.UNSUPPORTED_Y||Ln.BROKEN_CARET,Vn=void 0!==/()??/.exec("")[1];(Bn||Vn||Gn)&&($n=function(t){var e,n,r,o,i=this,u=Gn&&i.sticky,c=Cn.call(i),a=i.source,f=0,l=t;return u&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(a="(?: "+a+")",l=" "+l,f++),n=new RegExp("^(?:"+a+")",c)),Vn&&(n=new RegExp("^"+a+"$(?!\\s)",c)),Bn&&(e=i.lastIndex),r=Un.call(u?n:i,l),u?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Bn&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Vn&&r&&r.length>1&&zn.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Wn=$n;Rt({target:"RegExp",proto:!0,forced:/./.exec!==Wn},{exec:Wn});var Yn=ne("match"),Jn=function(t){if(function(t){var e;return g(t)&&(void 0!==(e=t[Yn])?!!e:"RegExp"==p(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Kn=ne("match");Rt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Kn]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(v(this)).indexOf(Jn(t),arguments.length>1?arguments[1]:void 0)}});var Xn=ne("species"),qn=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Qn="$0"==="a".replace(/./,"$0"),Hn=ne("replace"),Zn=!!/./[Hn]&&""===/./[Hn]("a","$0"),tr=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),er=function(t){return function(e,n){var r,o,i=String(v(e)),u=at(n),c=i.length;return u<0||u>=c?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}},nr={codeAt:er(!1),charAt:er(!0)}.charAt,rr=function(t,e,n){return e+(n?nr(t,e).length:1)},or=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return Wn.call(t,e)};function ir(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ur(t,e)}function ur(t,e){return ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ur(t,e)}function cr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ar(t);if(e){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===fr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ar(t){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ar(t)}function fr(t){return fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(t)}function lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yr(r.key),r)}}function pr(t,e,n){return e&&sr(t.prototype,e),n&&sr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function yr(t){var e=function(t,e){if("object"!==fr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fr(e)?e:String(e)}!function(t,e,n,r){var o=ne(t),u=!i((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=u&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Xn]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!u||!c||"replace"===t&&(!qn||!Qn||Zn)||"split"===t&&!tr){var a=/./[o],f=n(o,""[t],(function(t,e,n,r,o){return e.exec===Wn?u&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Qn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Zn}),l=f[0],s=f[1];nt(String.prototype,t,l),nt(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&T(RegExp.prototype[o],"sham",!0)}("match",1,(function(t,e,n){return[function(e){var n=v(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=_(t),i=String(this);if(!o.global)return or(o,i);var u=o.unicode;o.lastIndex=0;for(var c,a=[],f=0;null!==(c=or(o,i));){var l=String(c[0]);a[f]=l,""===l&&(o.lastIndex=rr(i,lt(o.lastIndex),u)),f++}return 0===f?null:a}]}));var hr=function(){function t(e){lr(this,t),this.w=e}return pr(t,[{key:"dispatch",value:function(t,e){var n=JSON.stringify({version:1,eventName:t,meta:e});this.w.parent.postMessage(n,"*")}}]),t}(),vr=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/.*/;lr(this,t),this.w=e,this.originFilter=n,this.callbacks={}}return pr(t,[{key:"handle",value:function(t,e){if(e.origin.match(this.originFilter))try{var n=JSON.parse(e.data),r=n.version,o=n.eventName,i=n.meta;if(r&&1!==r&&console.warn("Recieved event from incompatible script version"),o===t)return[dr,"beyonk:portal:resize"].includes(t)?this.callbacks[t](i.height):this.callbacks[t](i)}catch(t){console.debug("Recieved unparseable event",e.data)}}},{key:"listen",value:function(t,e){this.callbacks[t]=e,this.w.addEventListener("message",this.handle.bind(this,t),!1)}},{key:"ignore",value:function(t){this.w.removeEventListener("message",this.handle.bind(this,t),!1)}}]),t}(),dr="whitelabel:header:resize",gr=function(t){ir(n,t);var e=cr(n);function n(){return lr(this,n),e.apply(this,arguments)}return pr(n,[{key:"subscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dr;this.eventName=e,this.callbacks[e]=t,this.w.addEventListener("message",this.handle.bind(this,e),!1)}},{key:"unsubscribe",value:function(){this.w.removeEventListener("message",this.handle.bind(this,this.eventName),!1)}}]),n}(vr),br=function(t){ir(n,t);var e=cr(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dr;return lr(this,n),(r=e.call(this,t)).eventName=o,r}return pr(n,[{key:"update",value:function(t){this.dispatch(this.eventName,{height:t})}}]),n}(hr);t.RemoteEventDispatcher=hr,t.RemoteEventObserver=vr,t.ResizableElementDispatcher=br,t.ResizableElementObserver=gr,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BeyonkEmbedded={})}(this,(function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,f={f:a&&!c.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},y="".split,d=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?y.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return d(v(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(t,e){return m.call(t,e)},O=o.document,w=g(O)&&g(O.createElement),E=function(t){return w?O.createElement(t):{}},j=!u&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),x=Object.getOwnPropertyDescriptor,P={f:u?x:function(t,e){if(t=h(t),e=b(e,!0),j)try{return x(t,e)}catch(t){}if(S(t,e))return l(!f.f.call(t,e),t[e])}},N=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},_=Object.defineProperty,I={f:u?_:function(t,e,n){if(N(t),e=b(e,!0),N(n),j)try{return _(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},R=u?function(t,e,n){return I.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},T=function(t,e){try{R(o,t,e)}catch(n){o[t]=e}return e},A="__core-js_shared__",k=o[A]||T(A,{}),C=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(t){return C.call(t)});var F,M,D,L=k.inspectSource,U=o.WeakMap,z="function"==typeof U&&/native code/.test(L(U)),$=n((function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,G=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+G).toString(36)},W=$("keys"),Y=function(t){return W[t]||(W[t]=V(t))},J={},K=o.WeakMap;if(z){var X=new K,q=X.get,Q=X.has,H=X.set;F=function(t,e){return H.call(X,t,e),e},M=function(t){return q.call(X,t)||{}},D=function(t){return Q.call(X,t)}}else{var Z=Y("state");J[Z]=!0,F=function(t,e){return R(t,Z,e),e},M=function(t){return S(t,Z)?t[Z]:{}},D=function(t){return S(t,Z)}}var tt,et={set:F,get:M,has:D,enforce:function(t){return D(t)?M(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=n((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var c=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||R(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(c?!f&&t[e]&&(a=!0):delete t[e],a?t[e]=i:R(t,e,i)):a?t[e]=i:T(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),rt=o,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},ut=Math.ceil,ct=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},ft=Math.min,lt=function(t){return t>0?ft(at(t),9007199254740991):0},st=Math.max,pt=Math.min,yt=function(t){return function(e,n,r){var o,i=h(e),u=lt(i.length),c=function(t,e){var n=at(t);return n<0?st(n+e,0):pt(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},dt={includes:yt(!0),indexOf:yt(!1)},vt=dt.indexOf,ht=function(t,e){var n,r=h(t),o=0,i=[];for(n in r)!S(J,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=gt.concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return ht(t,bt)}},St={f:Object.getOwnPropertySymbols},Ot=it("Reflect","ownKeys")||function(t){var e=mt.f(N(t)),n=St.f;return n?e.concat(n(t)):e},wt=function(t,e){for(var n=Ot(e),r=I.f,o=P.f,i=0;i<n.length;i++){var u=n[i];S(t,u)||r(t,u,o(e,u))}},Et=/#|\.prototype\./,jt=function(t,e){var n=Pt[xt(t)];return n==_t||n!=Nt&&("function"==typeof e?i(e):!!e)},xt=jt.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},Pt=jt.data={},Nt=jt.NATIVE="N",_t=jt.POLYFILL="P",It=jt,Rt=P.f,Tt=function(t,e){var n,r,i,u,c,a=t.target,f=t.global,l=t.stat;if(n=f?o:l?o[a]||T(a,{}):(o[a]||{}).prototype)for(r in e){if(u=e[r],i=t.noTargetGet?(c=Rt(n,r))&&c.value:n[r],!It(f?r:a+(l?".":"#")+r,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;wt(u,i)}(t.sham||i&&i.sham)&&R(u,"sham",!0),nt(n,r,u,t)}},At=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),kt=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ct=Array.isArray||function(t){return"Array"==p(t)},Ft=function(t){return Object(v(t))},Mt=Object.keys||function(t){return ht(t,gt)},Dt=u?Object.defineProperties:function(t,e){N(t);for(var n,r=Mt(e),o=r.length,i=0;o>i;)I.f(t,n=r[i++],e[n]);return t},Lt=it("document","documentElement"),Ut="prototype",zt="script",$t=Y("IE_PROTO"),Bt=function(){},Gt=function(t){return"<"+zt+">"+t+"</"+zt+">"},Vt=function(){try{tt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Vt=tt?function(t){t.write(Gt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(tt):(e=E("iframe"),n="java"+zt+":",e.style.display="none",Lt.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Gt("document.F=Object")),t.close(),t.F);for(var r=gt.length;r--;)delete Vt[Ut][gt[r]];return Vt()};J[$t]=!0;var Wt,Yt,Jt,Kt=Object.create||function(t,e){var n;return null!==t?(Bt[Ut]=N(t),n=new Bt,Bt[Ut]=null,n[$t]=t):n=Vt(),void 0===e?n:Dt(n,e)},Xt=mt.f,qt={}.toString,Qt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ht={f:function(t){return Qt&&"[object Window]"==qt.call(t)?function(t){try{return Xt(t)}catch(t){return Qt.slice()}}(t):Xt(h(t))}},Zt=$("wks"),te=o.Symbol,ee=kt?te:te&&te.withoutSetter||V,ne=function(t){return S(Zt,t)||(At&&S(te,t)?Zt[t]=te[t]:Zt[t]=ee("Symbol."+t)),Zt[t]},re={f:ne},oe=I.f,ie=function(t){var e=rt.Symbol||(rt.Symbol={});S(e,t)||oe(e,t,{value:re.f(t)})},ue=I.f,ce=ne("toStringTag"),ae=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},fe=ne("species"),le=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?g(n)&&null===(n=n[fe])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},se=[].push,pe=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,a,f,l){for(var s,p,y=Ft(c),v=d(y),h=function(t,e,n){if(ae(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}(a,f,3),g=lt(v.length),b=0,m=l||le,S=e?m(c,g):n?m(c,0):void 0;g>b;b++)if((u||b in v)&&(p=h(s=v[b],b,y),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return s;case 6:return b;case 2:se.call(S,s)}else if(o)return!1;return i?-1:r||o?o:S}},ye={forEach:pe(0),map:pe(1),filter:pe(2),some:pe(3),every:pe(4),find:pe(5),findIndex:pe(6)}.forEach,de=Y("hidden"),ve="Symbol",he="prototype",ge=ne("toPrimitive"),be=et.set,me=et.getterFor(ve),Se=Object[he],Oe=o.Symbol,we=it("JSON","stringify"),Ee=P.f,je=I.f,xe=Ht.f,Pe=f.f,Ne=$("symbols"),_e=$("op-symbols"),Ie=$("string-to-symbol-registry"),Re=$("symbol-to-string-registry"),Te=$("wks"),Ae=o.QObject,ke=!Ae||!Ae[he]||!Ae[he].findChild,Ce=u&&i((function(){return 7!=Kt(je({},"a",{get:function(){return je(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ee(Se,e);r&&delete Se[e],je(t,e,n),r&&t!==Se&&je(Se,e,r)}:je,Fe=function(t,e){var n=Ne[t]=Kt(Oe[he]);return be(n,{type:ve,tag:t,description:e}),u||(n.description=e),n},Me=kt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Oe},De=function(t,e,n){t===Se&&De(_e,e,n),N(t);var r=b(e,!0);return N(n),S(Ne,r)?(n.enumerable?(S(t,de)&&t[de][r]&&(t[de][r]=!1),n=Kt(n,{enumerable:l(0,!1)})):(S(t,de)||je(t,de,l(1,{})),t[de][r]=!0),Ce(t,r,n)):je(t,r,n)},Le=function(t,e){N(t);var n=h(e),r=Mt(n).concat(Be(n));return ye(r,(function(e){u&&!Ue.call(n,e)||De(t,e,n[e])})),t},Ue=function(t){var e=b(t,!0),n=Pe.call(this,e);return!(this===Se&&S(Ne,e)&&!S(_e,e))&&(!(n||!S(this,e)||!S(Ne,e)||S(this,de)&&this[de][e])||n)},ze=function(t,e){var n=h(t),r=b(e,!0);if(n!==Se||!S(Ne,r)||S(_e,r)){var o=Ee(n,r);return!o||!S(Ne,r)||S(n,de)&&n[de][r]||(o.enumerable=!0),o}},$e=function(t){var e=xe(h(t)),n=[];return ye(e,(function(t){S(Ne,t)||S(J,t)||n.push(t)})),n},Be=function(t){var e=t===Se,n=xe(e?_e:h(t)),r=[];return ye(n,(function(t){!S(Ne,t)||e&&!S(Se,t)||r.push(Ne[t])})),r};(At||(Oe=function(){if(this instanceof Oe)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=V(t),n=function(t){this===Se&&n.call(_e,t),S(this,de)&&S(this[de],e)&&(this[de][e]=!1),Ce(this,e,l(1,t))};return u&&ke&&Ce(Se,e,{configurable:!0,set:n}),Fe(e,t)},nt(Oe[he],"toString",(function(){return me(this).tag})),nt(Oe,"withoutSetter",(function(t){return Fe(V(t),t)})),f.f=Ue,I.f=De,P.f=ze,mt.f=Ht.f=$e,St.f=Be,re.f=function(t){return Fe(ne(t),t)},u&&(je(Oe[he],"description",{configurable:!0,get:function(){return me(this).description}}),nt(Se,"propertyIsEnumerable",Ue,{unsafe:!0}))),Tt({global:!0,wrap:!0,forced:!At,sham:!At},{Symbol:Oe}),ye(Mt(Te),(function(t){ie(t)})),Tt({target:ve,stat:!0,forced:!At},{for:function(t){var e=String(t);if(S(Ie,e))return Ie[e];var n=Oe(e);return Ie[e]=n,Re[n]=e,n},keyFor:function(t){if(!Me(t))throw TypeError(t+" is not a symbol");if(S(Re,t))return Re[t]},useSetter:function(){ke=!0},useSimple:function(){ke=!1}}),Tt({target:"Object",stat:!0,forced:!At,sham:!u},{create:function(t,e){return void 0===e?Kt(t):Le(Kt(t),e)},defineProperty:De,defineProperties:Le,getOwnPropertyDescriptor:ze}),Tt({target:"Object",stat:!0,forced:!At},{getOwnPropertyNames:$e,getOwnPropertySymbols:Be}),Tt({target:"Object",stat:!0,forced:i((function(){St.f(1)}))},{getOwnPropertySymbols:function(t){return St.f(Ft(t))}}),we)&&Tt({target:"JSON",stat:!0,forced:!At||i((function(){var t=Oe();return"[null]"!=we([t])||"{}"!=we({a:t})||"{}"!=we(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(g(e)||void 0!==t)&&!Me(t))return Ct(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Me(e))return e}),o[1]=e,we.apply(null,o)}});Oe[he][ge]||R(Oe[he],ge,Oe[he].valueOf),Yt=ve,(Wt=Oe)&&!S(Wt=Jt?Wt:Wt.prototype,ce)&&ue(Wt,ce,{configurable:!0,value:Yt}),J[de]=!0;var Ge=I.f,Ve=o.Symbol;if(u&&"function"==typeof Ve&&(!("description"in Ve.prototype)||void 0!==Ve().description)){var We={},Ye=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ye?new Ve(t):void 0===t?Ve():Ve(t);return""===t&&(We[e]=!0),e};wt(Ye,Ve);var Je=Ye.prototype=Ve.prototype;Je.constructor=Ye;var Ke=Je.toString,Xe="Symbol(test)"==String(Ve("test")),qe=/^Symbol\((.*)\)[^)]+$/;Ge(Je,"description",{configurable:!0,get:function(){var t=g(this)?this.valueOf():this,e=Ke.call(t);if(S(We,t))return"";var n=Xe?e.slice(7,-1):e.replace(qe,"$1");return""===n?void 0:n}}),Tt({global:!0,forced:!0},{Symbol:Ye})}ie("toPrimitive");var Qe=ne("unscopables"),He=Array.prototype;null==He[Qe]&&I.f(He,Qe,{configurable:!0,value:Kt(null)});var Ze=Object.defineProperty,tn={},en=function(t){throw t},nn=dt.includes;Tt({target:"Array",proto:!0,forced:!function(t,e){if(S(tn,t))return tn[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,o=S(e,0)?e[0]:en,c=S(e,1)?e[1]:void 0;return tn[t]=!!n&&!i((function(){if(r&&!u)return!0;var t={length:-1};r?Ze(t,1,{enumerable:!0,get:en}):t[1]=1,n.call(t,o,c)}))}("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return nn(this,t,arguments.length>1?arguments[1]:void 0)}}),function(t){He[Qe][t]=!0}("includes");var rn=ne("toPrimitive"),on=Date.prototype;rn in on||R(on,rn,(function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return b(N(this),"number"!==t)}));var un=[].slice,cn={},an=Function.bind||function(t){var e=ae(this),n=un.call(arguments,1),r=function(){var o=n.concat(un.call(arguments));return this instanceof r?function(t,e,n){if(!(e in cn)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";cn[e]=Function("C,a","return new C("+r.join(",")+")")}return cn[e](t,n)}(e,o.length,o):e.apply(t,o)};return g(e.prototype)&&(r.prototype=e.prototype),r};Tt({target:"Function",proto:!0},{bind:an});var fn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return N(n),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),ln="[\t\n\v\f\r                 \u2028\u2029\ufeff]",sn=RegExp("^"+ln+ln+"*"),pn=RegExp(ln+ln+"*$"),yn=function(t){return function(e){var n=String(v(e));return 1&t&&(n=n.replace(sn,"")),2&t&&(n=n.replace(pn,"")),n}},dn={start:yn(1),end:yn(2),trim:yn(3)},vn=mt.f,hn=P.f,gn=I.f,bn=dn.trim,mn="Number",Sn=o[mn],On=Sn.prototype,wn=p(Kt(On))==mn,En=function(t){var e,n,r,o,i,u,c,a,f=b(t,!1);if("string"==typeof f&&f.length>2)if(43===(e=(f=bn(f)).charCodeAt(0))||45===e){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=f.slice(2)).length,c=0;c<u;c++)if((a=i.charCodeAt(c))<48||a>o)return NaN;return parseInt(i,r)}return+f};if(It(mn,!Sn(" 0o1")||!Sn("0b1")||Sn("+0x1"))){for(var jn,xn=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof xn&&(wn?i((function(){On.valueOf.call(n)})):p(n)!=mn)?function(t,e,n){var r,o;return fn&&"function"==typeof(r=e.constructor)&&r!==n&&g(o=r.prototype)&&o!==n.prototype&&fn(t,o),t}(new Sn(En(e)),n,xn):En(e)},Pn=u?vn(Sn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Nn=0;Pn.length>Nn;Nn++)S(Sn,jn=Pn[Nn])&&!S(xn,jn)&&gn(xn,jn,hn(Sn,jn));xn.prototype=On,On.constructor=xn,nt(o,mn,xn)}var _n={};_n[ne("toStringTag")]="z";var In="[object z]"===String(_n),Rn=ne("toStringTag"),Tn="Arguments"==p(function(){return arguments}()),An=In?p:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Rn))?n:Tn?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},kn=In?{}.toString:function(){return"[object "+An(this)+"]"};In||nt(Object.prototype,"toString",kn,{unsafe:!0});var Cn=function(){var t=N(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Fn(t,e){return RegExp(t,e)}var Mn,Dn,Ln={UNSUPPORTED_Y:i((function(){var t=Fn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:i((function(){var t=Fn("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Un=RegExp.prototype.exec,zn=String.prototype.replace,$n=Un,Bn=(Mn=/a/,Dn=/b*/g,Un.call(Mn,"a"),Un.call(Dn,"a"),0!==Mn.lastIndex||0!==Dn.lastIndex),Gn=Ln.UNSUPPORTED_Y||Ln.BROKEN_CARET,Vn=void 0!==/()??/.exec("")[1];(Bn||Vn||Gn)&&($n=function(t){var e,n,r,o,i=this,u=Gn&&i.sticky,c=Cn.call(i),a=i.source,f=0,l=t;return u&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(a="(?: "+a+")",l=" "+l,f++),n=new RegExp("^(?:"+a+")",c)),Vn&&(n=new RegExp("^"+a+"$(?!\\s)",c)),Bn&&(e=i.lastIndex),r=Un.call(u?n:i,l),u?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Bn&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Vn&&r&&r.length>1&&zn.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Wn=$n;Tt({target:"RegExp",proto:!0,forced:/./.exec!==Wn},{exec:Wn});var Yn=ne("match"),Jn=function(t){if(function(t){var e;return g(t)&&(void 0!==(e=t[Yn])?!!e:"RegExp"==p(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Kn=ne("match");Tt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Kn]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(v(this)).indexOf(Jn(t),arguments.length>1?arguments[1]:void 0)}});var Xn=ne("species"),qn=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Qn="$0"==="a".replace(/./,"$0"),Hn=ne("replace"),Zn=!!/./[Hn]&&""===/./[Hn]("a","$0"),tr=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),er=function(t){return function(e,n){var r,o,i=String(v(e)),u=at(n),c=i.length;return u<0||u>=c?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}},nr={codeAt:er(!1),charAt:er(!0)}.charAt,rr=function(t,e,n){return e+(n?nr(t,e).length:1)},or=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return Wn.call(t,e)};function ir(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ur(t,e)}function ur(t,e){return ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ur(t,e)}function cr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ar(t);if(e){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===fr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ar(t){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ar(t)}function fr(t){return fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(t)}function lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yr(r.key),r)}}function pr(t,e,n){return e&&sr(t.prototype,e),n&&sr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function yr(t){var e=function(t,e){if("object"!==fr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fr(e)?e:String(e)}!function(t,e,n,r){var o=ne(t),u=!i((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=u&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Xn]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!u||!c||"replace"===t&&(!qn||!Qn||Zn)||"split"===t&&!tr){var a=/./[o],f=n(o,""[t],(function(t,e,n,r,o){return e.exec===Wn?u&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Qn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Zn}),l=f[0],s=f[1];nt(String.prototype,t,l),nt(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&R(RegExp.prototype[o],"sham",!0)}("match",1,(function(t,e,n){return[function(e){var n=v(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=N(t),i=String(this);if(!o.global)return or(o,i);var u=o.unicode;o.lastIndex=0;for(var c,a=[],f=0;null!==(c=or(o,i));){var l=String(c[0]);a[f]=l,""===l&&(o.lastIndex=rr(i,lt(o.lastIndex),u)),f++}return 0===f?null:a}]}));var dr=function(){function t(e){lr(this,t),this.w=e}return pr(t,[{key:"dispatch",value:function(t,e){var n=JSON.stringify({version:1,eventName:t,meta:e});this.w.parent.postMessage(n,"*")}}]),t}(),vr=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lr(this,t),this.w=e,this.originFilter=n.originFilter||/.*/,this.callbacks={},this.debug=n.debug||!1,this.debug&&console.debug("Debugging is enabled")}return pr(t,[{key:"handle",value:function(t,e){if(this.debug&&console.debug("Received",t?"legacy ".concat(t):"","event",e),e.origin.match(this.originFilter))try{var n=JSON.parse(e.data),r=n.version,o=n.eventName,i=n.meta;r&&1!==r&&console.debug("Received event from incompatible script version");var u=this.callbacks[t];if(!u)return void(this.debug&&console.debug("No registered handlers for ".concat(t)));if(o===t)return[hr,"beyonk:portal:resize"].includes(t)?u.callback(i.height):u.callback(i)}catch(t){console.debug("Recieved unparseable event",e.data)}}},{key:"listen",value:function(t,e){this.debug&&console.debug("Registered listener for",t);var n=this.handle.bind(this,t);this.callbacks[t]={callback:e,binding:n},this.w.addEventListener("message",n,!1)}},{key:"ignore",value:function(t){var e=this.callbacks[t];e&&(this.w.removeEventListener("message",e.binding,!1),delete this.callbacks[t])}}]),t}(),hr="whitelabel:header:resize",gr=function(t){ir(n,t);var e=cr(n);function n(){return lr(this,n),e.apply(this,arguments)}return pr(n,[{key:"subscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hr;this.eventName=e;var n=this.handle.bind(this,e);this.callbacks[e]={callback:t,binding:n},this.w.addEventListener("message",n,!1)}},{key:"unsubscribe",value:function(){var t=this.callbacks[this.eventName];t&&(this.w.removeEventListener("message",t.binding,!1),delete this.callbacks[this.eventName])}}]),n}(vr),br=function(t){ir(n,t);var e=cr(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hr;return lr(this,n),(r=e.call(this,t)).eventName=o,r}return pr(n,[{key:"update",value:function(t){this.dispatch(this.eventName,{height:t})}}]),n}(dr);t.RemoteEventDispatcher=dr,t.RemoteEventObserver=vr,t.ResizableElementDispatcher=br,t.ResizableElementObserver=gr,Object.defineProperty(t,"__esModule",{value:!0})}));

@@ -19,9 +19,15 @@ const thisVersion = 1

class RemoteEventObserver {
constructor (w, originFilter = /.*/) {
constructor (w, options = {}) {
this.w = w
this.originFilter = originFilter
this.originFilter = options.originFilter || /.*/
this.callbacks = {}
this.debug = options.debug || false
if (this.debug) {
console.debug('Debugging is enabled')
}
}
handle (eventName, ev) {
if (this.debug) { console.debug('Received', eventName ? `legacy ${eventName}` : '', 'event', ev) }
if (!ev.origin.match(this.originFilter)) { return }

@@ -37,3 +43,6 @@

if (!cb) { return }
if (!cb) {
this.debug && console.debug(`No registered handlers for ${eventName}`)
return
}

@@ -56,2 +65,3 @@ if (givenEventName === eventName) {

listen (eventName, callback) {
this.debug && console.debug('Registered listener for', eventName)
const binding = this.handle.bind(this, eventName)

@@ -58,0 +68,0 @@ this.callbacks[eventName] = { callback, binding }

{
"name": "@beyonk/embedded",
"version": "1.1.9",
"version": "2.0.0",
"description": "Embedded Beyonk Libraries",

@@ -5,0 +5,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc