if (void 0 === t)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return t
}
function Rr(t) {
return Rr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
return t.__proto__ || Object.getPrototypeOf(t)
}
,
Rr(t)
}
function Lr(t, e) {
Nr(t, e),
e.add(t)
}
function jr(t, e, r) {
Nr(t, e),
e.set(t, r)
}
function Nr(t, e) {
if (e.has(t))
throw new TypeError("Cannot initialize the same private elements twice on an object")
}
function Cr(t, e, r) {
return function(t, e, r) {
if (e.set)
e.set.call(t, r);
else {
if (!e.writable)
throw new TypeError("attempted to set read only private field");
e.value = r
}
}(t, Br(t, e, "set"), r),
r
}
function Gr(t, e, r) {
if (!e.has(t))
throw new TypeError("attempted to get private field on non-instance");
return r
}
function Mr(t, e) {
return function(t, e) {
return e.get ? e.get.call(t) : e.value
}(t, Br(t, e, "get"))
}
function Br(t, e, r) {
if (!e.has(t))
throw new TypeError("attempted to " + r + " private field on non-instance");
return e.get(t)
}
var xr = new WeakMap
, Hr = new WeakMap
, Fr = new WeakMap
, Ur = new WeakMap
, Vr = new WeakSet
, Wr = new WeakSet
, zr = new WeakSet
, Zr = new WeakSet
, Yr = new WeakSet
, Jr = new WeakSet
, Kr = function(t) {
!function(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 && Dr(t, e)
}(a, t);
var e, r, n, o, i = (n = a,
o = 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
}
}(),
function() {
var t, e = Rr(n);
if (o) {
var r = Rr(this).constructor;
t = Reflect.construct(e, arguments, r)
} else
t = e.apply(this, arguments);
return function(t, e) {
if (e && ("object" === Or(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw new TypeError("Derived constructors may only return object or undefined");
return Ir(t)
}(this, t)
}
);
function a(t) {
var e;
return function(t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function")
}(this, a),
Lr(Ir(e = i.call(this, t)), Jr),
Lr(Ir(e), Yr),
Lr(Ir(e), Zr),
Lr(Ir(e), zr),
Lr(Ir(e), Wr),
Lr(Ir(e), Vr),
jr(Ir(e), xr, {
writable: !0,
value: null
}),
jr(Ir(e), Hr, {
writable: !0,
value: null
}),
jr(Ir(e), Fr, {
writable: !0,
value: null
}),
jr(Ir(e), Ur, {
writable: !0,
value: !1
}),
Gr(Ir(e), Vr, qr).call(Ir(e)),
e
}
return e = a,
(r = [{
key: "type",
get: function() {
return this._platformBridge.deviceType
}
}, {
key: "orientation",
get: function() {
return Mr(this, xr)
}
}]) && Tr(e.prototype, r),
Object.defineProperty(e, "prototype", {
writable: !1
}),
a
}(M);
function qr() {
var t, e, r, n = this, o = this._platformBridge.deviceType;
if (o === l.MOBILE || o === l.TABLET) {
var i = null === (t = this._platformBridge.options) || void 0 === t ? void 0 : t.device;
Cr(this, Ur, null !== (e = null == i ? void 0 : i.useBuiltInOrientationPopup) && void 0 !== e && e),
Cr(this, Fr, null !== (r = null == i ? void 0 : i.supportedOrientations) && void 0 !== r ? r : [f.PORTRAIT, f.LANDSCAPE]),
Cr(this, xr, Gr(this, Wr, Xr).call(this)),
window.screen.orientation ? window.screen.orientation.addEventListener("change", (function() {
return Gr(n, zr, Qr).call(n)
}
)) : window.addEventListener("orientationchange", (function() {
return Gr(n, zr, Qr).call(n)
}
)),
window.addEventListener("resize", (function() {
return Gr(n, zr, Qr).call(n)
}
)),
Gr(this, Zr, $r).call(this)
}
}
function Xr() {
var t;
return null !== ( |