native-fn 1.0.30 → 1.0.32

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.
Files changed (109) hide show
  1. package/dist/index.d.ts +11 -11
  2. package/dist/native.cjs +5 -5
  3. package/dist/native.min.cjs +1 -1
  4. package/dist/native.min.mjs +1 -1
  5. package/dist/native.mjs +5 -5
  6. package/dist/native.umd.js +5 -5
  7. package/dist/native.umd.min.js +1 -1
  8. package/dist/plugin/app/index.cjs +4 -4
  9. package/dist/plugin/app/index.d.ts +9 -7
  10. package/dist/plugin/app/index.min.cjs +1 -1
  11. package/dist/plugin/app/index.min.mjs +1 -1
  12. package/dist/plugin/app/index.mjs +4 -4
  13. package/dist/plugin/app/index.umd.js +4 -4
  14. package/dist/plugin/app/index.umd.min.js +1 -1
  15. package/dist/plugin/app/src/plugin/app/cores/app.d.ts +2 -2
  16. package/dist/plugin/app/src/plugin/app/index.d.ts +3 -3
  17. package/dist/plugin/app/src/plugin/app/types/app.d.ts +1 -1
  18. package/dist/plugin/app/src/plugin/app/types/appModule.d.ts +1 -1
  19. package/dist/plugin/app/src/plugin/app/types/index.d.ts +1 -1
  20. package/dist/plugin/app/src/plugin/app/utils/event-listener-utils.d.ts +1 -1
  21. package/dist/plugin/app/src/plugin/platform/cores/platform.d.ts +2 -2
  22. package/dist/plugin/app/src/plugin/platform/index.d.ts +3 -3
  23. package/dist/plugin/app/src/plugin/platform/types/index.d.ts +1 -1
  24. package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +1 -1
  25. package/dist/plugin/app/src/plugin/platform/types/platformModule.d.ts +1 -1
  26. package/dist/plugin/app/src/plugin/theme/constants/theme.d.ts +1 -1
  27. package/dist/plugin/app/src/plugin/theme/cores/theme.d.ts +2 -2
  28. package/dist/plugin/app/src/plugin/theme/index.d.ts +3 -3
  29. package/dist/plugin/app/src/plugin/theme/types/index.d.ts +1 -1
  30. package/dist/plugin/app/src/plugin/theme/types/theme.d.ts +8 -9
  31. package/dist/plugin/app/src/plugin/theme/types/themeModule.d.ts +1 -1
  32. package/dist/plugin/app/src/plugin/theme/utils/parse-color.d.ts +1 -1
  33. package/dist/plugin/app/src/plugin/theme/utils/parse-easing-function.d.ts +1 -1
  34. package/dist/plugin/app/src/types/native.d.ts +8 -8
  35. package/dist/plugin/platform/index.cjs +4 -4
  36. package/dist/plugin/platform/index.d.ts +9 -7
  37. package/dist/plugin/platform/index.min.cjs +1 -1
  38. package/dist/plugin/platform/index.min.mjs +1 -1
  39. package/dist/plugin/platform/index.mjs +4 -4
  40. package/dist/plugin/platform/index.umd.js +4 -4
  41. package/dist/plugin/platform/index.umd.min.js +1 -1
  42. package/dist/plugin/platform/src/plugin/app/cores/app.d.ts +2 -2
  43. package/dist/plugin/platform/src/plugin/app/index.d.ts +3 -3
  44. package/dist/plugin/platform/src/plugin/app/types/app.d.ts +1 -1
  45. package/dist/plugin/platform/src/plugin/app/types/appModule.d.ts +1 -1
  46. package/dist/plugin/platform/src/plugin/app/types/index.d.ts +1 -1
  47. package/dist/plugin/platform/src/plugin/app/utils/event-listener-utils.d.ts +1 -1
  48. package/dist/plugin/platform/src/plugin/platform/cores/platform.d.ts +2 -2
  49. package/dist/plugin/platform/src/plugin/platform/index.d.ts +3 -3
  50. package/dist/plugin/platform/src/plugin/platform/types/index.d.ts +1 -1
  51. package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +1 -1
  52. package/dist/plugin/platform/src/plugin/platform/types/platformModule.d.ts +1 -1
  53. package/dist/plugin/platform/src/plugin/theme/constants/theme.d.ts +1 -1
  54. package/dist/plugin/platform/src/plugin/theme/cores/theme.d.ts +2 -2
  55. package/dist/plugin/platform/src/plugin/theme/index.d.ts +3 -3
  56. package/dist/plugin/platform/src/plugin/theme/types/index.d.ts +1 -1
  57. package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +8 -9
  58. package/dist/plugin/platform/src/plugin/theme/types/themeModule.d.ts +1 -1
  59. package/dist/plugin/platform/src/plugin/theme/utils/parse-color.d.ts +1 -1
  60. package/dist/plugin/platform/src/plugin/theme/utils/parse-easing-function.d.ts +1 -1
  61. package/dist/plugin/platform/src/types/native.d.ts +8 -8
  62. package/dist/plugin/theme/index.cjs +4 -4
  63. package/dist/plugin/theme/index.d.ts +9 -7
  64. package/dist/plugin/theme/index.min.cjs +1 -1
  65. package/dist/plugin/theme/index.min.mjs +1 -1
  66. package/dist/plugin/theme/index.mjs +4 -4
  67. package/dist/plugin/theme/index.umd.js +4 -4
  68. package/dist/plugin/theme/index.umd.min.js +1 -1
  69. package/dist/plugin/theme/src/plugin/app/cores/app.d.ts +2 -2
  70. package/dist/plugin/theme/src/plugin/app/index.d.ts +3 -3
  71. package/dist/plugin/theme/src/plugin/app/types/app.d.ts +1 -1
  72. package/dist/plugin/theme/src/plugin/app/types/appModule.d.ts +1 -1
  73. package/dist/plugin/theme/src/plugin/app/types/index.d.ts +1 -1
  74. package/dist/plugin/theme/src/plugin/app/utils/event-listener-utils.d.ts +1 -1
  75. package/dist/plugin/theme/src/plugin/platform/cores/platform.d.ts +2 -2
  76. package/dist/plugin/theme/src/plugin/platform/index.d.ts +3 -3
  77. package/dist/plugin/theme/src/plugin/platform/types/index.d.ts +1 -1
  78. package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +1 -1
  79. package/dist/plugin/theme/src/plugin/platform/types/platformModule.d.ts +1 -1
  80. package/dist/plugin/theme/src/plugin/theme/constants/theme.d.ts +1 -1
  81. package/dist/plugin/theme/src/plugin/theme/cores/theme.d.ts +2 -2
  82. package/dist/plugin/theme/src/plugin/theme/index.d.ts +3 -3
  83. package/dist/plugin/theme/src/plugin/theme/types/index.d.ts +1 -1
  84. package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +8 -9
  85. package/dist/plugin/theme/src/plugin/theme/types/themeModule.d.ts +1 -1
  86. package/dist/plugin/theme/src/plugin/theme/utils/parse-color.d.ts +1 -1
  87. package/dist/plugin/theme/src/plugin/theme/utils/parse-easing-function.d.ts +1 -1
  88. package/dist/plugin/theme/src/types/native.d.ts +8 -8
  89. package/dist/src/plugin/app/cores/app.d.ts +2 -2
  90. package/dist/src/plugin/app/index.d.ts +3 -3
  91. package/dist/src/plugin/app/types/app.d.ts +1 -1
  92. package/dist/src/plugin/app/types/appModule.d.ts +1 -1
  93. package/dist/src/plugin/app/types/index.d.ts +1 -1
  94. package/dist/src/plugin/app/utils/event-listener-utils.d.ts +1 -1
  95. package/dist/src/plugin/platform/cores/platform.d.ts +2 -2
  96. package/dist/src/plugin/platform/index.d.ts +3 -3
  97. package/dist/src/plugin/platform/types/index.d.ts +1 -1
  98. package/dist/src/plugin/platform/types/platform.d.ts +1 -1
  99. package/dist/src/plugin/platform/types/platformModule.d.ts +1 -1
  100. package/dist/src/plugin/theme/constants/theme.d.ts +1 -1
  101. package/dist/src/plugin/theme/cores/theme.d.ts +2 -2
  102. package/dist/src/plugin/theme/index.d.ts +3 -3
  103. package/dist/src/plugin/theme/types/index.d.ts +1 -1
  104. package/dist/src/plugin/theme/types/theme.d.ts +8 -9
  105. package/dist/src/plugin/theme/types/themeModule.d.ts +1 -1
  106. package/dist/src/plugin/theme/utils/parse-color.d.ts +1 -1
  107. package/dist/src/plugin/theme/utils/parse-easing-function.d.ts +1 -1
  108. package/dist/src/types/native.d.ts +8 -8
  109. package/package.json +2 -3
package/dist/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- declare interface NativePlugin<T> {
1
+ declare interface ModuleBase {
2
+ Constants: Record<string, any>;
3
+ Errors: Record<string, ErrorConstructor>;
4
+ }
5
+ declare interface NativePlugin<T> extends ModuleBase {
2
6
  installed: boolean;
3
7
  name: string;
4
8
  module: T;
5
- constants: Record<string, any>;
6
- errors: Record<string, ErrorConstructor>;
7
9
  }
8
- declare interface NativeBase {
10
+ declare interface NativeBase extends ModuleBase {
9
11
  Version: string;
10
- Constants: Record<string, any>;
11
- Errors: Record<string, ErrorConstructor>;
12
- extends: <T>(plugin: NativePlugin<T>) => Native;
12
+ extends: <T>(plugin: NativePlugin<T>) => NativeInstance;
13
13
  }
14
- declare type Native = NativeBase & Record<Exclude<string, keyof NativeBase>, any>;
14
+ declare type NativeInstance = NativeBase & Record<Exclude<string, keyof NativeBase>, any>;
15
15
 
16
- declare const nativeInstance: Native;
16
+ declare const Native: NativeInstance;
17
17
 
18
- export { nativeInstance as default };
19
- export type { Native, NativeBase, NativePlugin };
18
+ export { Native as default };
19
+ export type { ModuleBase, NativeBase, NativeInstance, NativePlugin };
package/dist/native.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.0.27";
3
+ var version = "1.0.31";
4
4
  var packageJSON = {
5
5
  version: version};
6
6
 
@@ -23,19 +23,19 @@ function assign() {
23
23
  return to;
24
24
  }
25
25
 
26
- var nativeInstance = {
26
+ var Native = {
27
27
  Version: packageJSON.version,
28
28
  Constants: {},
29
29
  Errors: {},
30
30
  extends: function (plugin) {
31
31
  if (plugin.installed)
32
32
  return this;
33
- this.Constants = assign(this.Constants, plugin.constants);
34
- this.Errors = assign(this.Errors, plugin.errors);
33
+ this.Constants = assign(this.Constants, plugin.Constants);
34
+ this.Errors = assign(this.Errors, plugin.Errors);
35
35
  this[plugin.name] = plugin.module;
36
36
  plugin.installed = true;
37
37
  return this;
38
38
  }
39
39
  };
40
40
 
41
- module.exports = nativeInstance;
41
+ module.exports = Native;
@@ -1 +1 @@
1
- "use strict";function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var s=Object(t[0]),o=1;o<t.length;o++){var n=t[o];if(null!=n)for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(s[e]=n[e])}return s}var r={Version:"1.0.27",Constants:{},Errors:{},extends:function(r){return r.installed||(this.Constants=t(this.Constants,r.constants),this.Errors=t(this.Errors,r.errors),this[r.name]=r.module,r.installed=!0),this}};module.exports=r;
1
+ "use strict";function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var s=Object(t[0]),o=1;o<t.length;o++){var n=t[o];if(null!=n)for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(s[e]=n[e])}return s}var r={Version:"1.0.31",Constants:{},Errors:{},extends:function(r){return r.installed||(this.Constants=t(this.Constants,r.Constants),this.Errors=t(this.Errors,r.Errors),this[r.name]=r.module,r.installed=!0),this}};module.exports=r;
@@ -1 +1 @@
1
- function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=Object(t[0]),o=1;o<t.length;o++){var s=t[o];if(null!=s)for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(n[e]=s[e])}return n}var r={Version:"1.0.27",Constants:{},Errors:{},extends:function(r){return r.installed||(this.Constants=t(this.Constants,r.constants),this.Errors=t(this.Errors,r.errors),this[r.name]=r.module,r.installed=!0),this}};export{r as default};
1
+ function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=Object(t[0]),o=1;o<t.length;o++){var s=t[o];if(null!=s)for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(n[e]=s[e])}return n}var r={Version:"1.0.31",Constants:{},Errors:{},extends:function(r){return r.installed||(this.Constants=t(this.Constants,r.Constants),this.Errors=t(this.Errors,r.Errors),this[r.name]=r.module,r.installed=!0),this}};export{r as default};
package/dist/native.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var version = "1.0.27";
1
+ var version = "1.0.31";
2
2
  var packageJSON = {
3
3
  version: version};
4
4
 
@@ -21,19 +21,19 @@ function assign() {
21
21
  return to;
22
22
  }
23
23
 
24
- var nativeInstance = {
24
+ var Native = {
25
25
  Version: packageJSON.version,
26
26
  Constants: {},
27
27
  Errors: {},
28
28
  extends: function (plugin) {
29
29
  if (plugin.installed)
30
30
  return this;
31
- this.Constants = assign(this.Constants, plugin.constants);
32
- this.Errors = assign(this.Errors, plugin.errors);
31
+ this.Constants = assign(this.Constants, plugin.Constants);
32
+ this.Errors = assign(this.Errors, plugin.Errors);
33
33
  this[plugin.name] = plugin.module;
34
34
  plugin.installed = true;
35
35
  return this;
36
36
  }
37
37
  };
38
38
 
39
- export { nativeInstance as default };
39
+ export { Native as default };
@@ -4,7 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Native = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
- var version = "1.0.27";
7
+ var version = "1.0.31";
8
8
  var packageJSON = {
9
9
  version: version};
10
10
 
@@ -27,21 +27,21 @@
27
27
  return to;
28
28
  }
29
29
 
30
- var nativeInstance = {
30
+ var Native = {
31
31
  Version: packageJSON.version,
32
32
  Constants: {},
33
33
  Errors: {},
34
34
  extends: function (plugin) {
35
35
  if (plugin.installed)
36
36
  return this;
37
- this.Constants = assign(this.Constants, plugin.constants);
38
- this.Errors = assign(this.Errors, plugin.errors);
37
+ this.Constants = assign(this.Constants, plugin.Constants);
38
+ this.Errors = assign(this.Errors, plugin.Errors);
39
39
  this[plugin.name] = plugin.module;
40
40
  plugin.installed = true;
41
41
  return this;
42
42
  }
43
43
  };
44
44
 
45
- return nativeInstance;
45
+ return Native;
46
46
 
47
47
  }));
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Native=e()}(this,(function(){"use strict";function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Object(t[0]),o=1;o<t.length;o++){var r=t[o];if(null!=r)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(n[s]=r[s])}return n}return{Version:"1.0.27",Constants:{},Errors:{},extends:function(e){return e.installed||(this.Constants=t(this.Constants,e.constants),this.Errors=t(this.Errors,e.errors),this[e.name]=e.module,e.installed=!0),this}}}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Native=e()}(this,(function(){"use strict";function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Object(t[0]),o=1;o<t.length;o++){var r=t[o];if(null!=r)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(n[s]=r[s])}return n}return{Version:"1.0.31",Constants:{},Errors:{},extends:function(e){return e.installed||(this.Constants=t(this.Constants,e.Constants),this.Errors=t(this.Errors,e.Errors),this[e.name]=e.module,e.installed=!0),this}}}));
@@ -1009,17 +1009,17 @@ function openMessengerMail(options) {
1009
1009
  return openMessenger(options, 'mailto');
1010
1010
  }
1011
1011
 
1012
- var AppPlugin = {
1012
+ var NativeAppPlugin = {
1013
1013
  installed: false,
1014
1014
  name: 'App',
1015
1015
  module: App,
1016
- constants: {
1016
+ Constants: {
1017
1017
  AppOpenState: AppOpenState,
1018
1018
  Messengers: Messengers
1019
1019
  },
1020
- errors: {
1020
+ Errors: {
1021
1021
  URLOpenError: URLOpenError
1022
1022
  }
1023
1023
  };
1024
1024
 
1025
- module.exports = AppPlugin;
1025
+ module.exports = NativeAppPlugin;
@@ -1,9 +1,11 @@
1
- declare interface NativePlugin<T> {
1
+ declare interface ModuleBase {
2
+ Constants: Record<string, any>;
3
+ Errors: Record<string, ErrorConstructor>;
4
+ }
5
+ declare interface NativePlugin<T> extends ModuleBase {
2
6
  installed: boolean;
3
7
  name: string;
4
8
  module: T;
5
- constants: Record<string, any>;
6
- errors: Record<string, ErrorConstructor>;
7
9
  }
8
10
 
9
11
  declare enum OS {
@@ -75,12 +77,12 @@ declare type MessengerOpenOptions = {
75
77
  body?: Stringifiable;
76
78
  } | HTMLFormElement | FormData;
77
79
  declare type Messenger = Record<Messengers, (options: MessengerOpenOptions, self?: WindowProxy) => Promise<void>>;
78
- declare interface AppModule {
80
+ declare interface AppInstance {
79
81
  open: (options: AppOpenOptions, target?: WindowProxy) => Promise<AppOpenState>;
80
82
  messenger: Messenger;
81
83
  }
82
84
 
83
- declare const AppPlugin: NativePlugin<AppModule>;
85
+ declare const NativeAppPlugin: NativePlugin<AppInstance>;
84
86
 
85
- export { AppPlugin as default };
86
- export type { AndroidAppInfo, AppInfo, AppModule, AppOpenOptions, EventListenerOptions, EventListenerUtil, IOSAppInfo, MacOSAppInfo, Messenger, MessengerOpenOptions, Stringifiable, StringifiableSequence, URLCandidate, WindowsAppInfo };
87
+ export { NativeAppPlugin as default };
88
+ export type { AndroidAppInfo, AppInfo, AppInstance, AppOpenOptions, EventListenerOptions, EventListenerUtil, IOSAppInfo, MacOSAppInfo, Messenger, MessengerOpenOptions, Stringifiable, StringifiableSequence, URLCandidate, WindowsAppInfo };
@@ -1 +1 @@
1
- "use strict";var e,t,n=navigator.userAgent;!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(e||(e={})),function(e){e.Telephone="telephone",e.Message="message",e.Mail="mail"}(t||(t={}));var i,o,r,a=!/firefox|opr/i.test(n);!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(i||(i={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(o||(o={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(r||(r={}));var c=function(){function e(e){return void 0===e?"":e.replace(/_/g,".")}function t(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function n(e){return void 0===e?"":e}return[[/android\w*[-\/.; ]?([\d.]*)/i,i.Android,o.Mobile,n],[/microsoft windows (vista|xp)/i,i.Windows,o.Desktop,n],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,i.Windows,o.Desktop,t],[/windows nt 6\.2; (arm)/i,i.Windows,o.Desktop,t],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,i.Windows,o.Desktop,t],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,i.Windows,o.Desktop,t],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,i.iOS,o.Mobile,e],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,i.iOS,o.Mobile,e],[/cfnetwork\/.+darwin/i,i.iOS,o.Mobile,n],[/mac os x ?([\w. ]*)/i,i.MacOS,o.Desktop,e],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,i.MacOS,o.Desktop,e]]}(),u=[[/windows.+ edge\/([\w.]+)/i,r.EdgeHTML],[/arkweb\/([\w.]+)/i,r.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,r.Blink],[/presto\/([\w.]+)/i,r.Presto],[/webkit\/([\w.]+)/i,r.WebKit],[/trident\/([\w.]+)/i,r.Trident],[/netfront\/([\w.]+)/i,r.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,r.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,r.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,r.Gecko]],s=i.Unknown,d="";o.Unknown;r.Unknown;for(var l=0;l<c.length;l++){var f=(b=c[l])[0],p=b[1],v=b[2],h=b[3];if(null!==(m=n.match(f))){s=p,d=h(m[1]);break}}for(l=0;l<u.length;l++){var b,m;f=(b=u[l])[0];if(b[1],null!==(m=n.match(f))){m[1];break}}function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",o=0;o<t.length-2;o++){var r=t[o];void 0!==r&&(i=i+r.charAt(0).toUpperCase()+r.slice(1))}return i}function w(){this.returnValue=!1}function g(){this.cancelBubble=!0}!function(){var e=document.createElement("canvas");if("function"!=typeof e.getContext)return"";var t=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===t)return"";if(t instanceof WebGLRenderingContext||"getParameter"in t&&"function"==typeof t.getParameter){var n=t.getExtension("WEBGL_debug_renderer_info");return null===n?t.getParameter(t.RENDERER):t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}(),o.Mobile,o.Desktop,s===i.iOS?"standalone"in navigator&&navigator.standalone:window.matchMedia("(display-mode: standalone)").matches;var k={useStd:"undefined"!=typeof document&&"function"==typeof document.addEventListener,add:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,n,o)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(n)}catch(e){}else try{return e.addListener(i,n)}catch(e){}return"function"==typeof e.attachEvent?n.__ieWrapper?e.attachEvent("on"+i,n.__ieWrapper):e.attachEvent("on"+i,n.__ieWrapper=function(t){void 0===t&&(t=window.event),void 0!==t&&(t.currentTarget=e,"function"!=typeof t.preventDefault&&(t.preventDefault=w),"function"!=typeof t.stopPropagation&&(t.stopPropagation=g),"function"==typeof n?n.call(e,t):n&&"function"==typeof n.handleEvent&&n.handleEvent.call(e,t))}):void 0}},remove:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(i,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(i,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var r=n.__ieWrapper;void 0!==r&&(e.detachEvent("on"+i,r),delete n.__ieWrapper)}}},withVender:function(e,t){if(void 0===t)return"";var n,i=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,o=["","webkit","moz","ms","MS","o","O"];n="wheel"===t?["wheel","mousewheel","DOMMouseScroll"]:"focus"===t?["focus","focusin"]:"blur"===t?["blur","focusout"]:i.test(t)?[t,t.replace(i,y)]:[t];for(var r=0;r<o.length;r++)for(var a=0;a<n.length;a++){var c=o[r]+n[a];if(void 0!==e["on"+c])return c}return""}};function S(){try{if(window.top&&window.top!==window)return window.top.location.href,window.top}catch(e){}return window}function E(e){var t=S(),n=void 0;try{(n=document.createElement("iframe")).src=e,n.width=n.height=n.frameBorder="0",n.setAttribute("aria-hidden","true"),n.style.display="none",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",t.document.body.appendChild(n),window.setTimeout((function(){if(void 0!==n)try{t.document.body.removeChild(n)}catch(e){}}),500)}catch(e){}}function T(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function O(e){try{e.focus({preventScroll:!0})}catch(t){try{e.focus()}catch(e){}}}function M(e,t,n){var o=S(),r=o.document,a={focus:void 0,blur:void 0,visibilitychange:void 0},c={focus:void 0,blur:void 0,visibilitychange:void 0};return s===i.iOS?parseInt(d)>=8?(c={visibilitychange:r},a={visibilitychange:"visibilitychange"}):(c={focus:o,blur:o},a={focus:"pageshow",blur:"pagehide"}):k.useStd?(c={focus:o,blur:o,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}):(c={focus:r,blur:r,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}),new Promise((function(i,o){var u,s=!1;function d(e){if(!s){s=!0;try{!function(){void 0!==u&&(clearTimeout(u),u=void 0);try{k.remove(c.blur,{type:a.blur,callback:l}),k.remove(c.focus,{type:a.focus,callback:f}),k.remove(c.visibilitychange,{type:a.visibilitychange,callback:p})}catch(e){}}(),e?i():o()}catch(e){i()}}}function l(){void 0!==u&&(clearTimeout(u),u=void 0),k.remove(c.blur,{type:a.blur,callback:l}),k.add(c.focus,{type:a.focus,callback:f})}function f(){d(!0)}function p(){(function(){var e=S().document;return"hidden"===e.visibilityState||"hidden"===e.webkitVisibilityState||"hidden"===e.mozVisibilityState||"hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus())})()&&d(!0)}u=window.setTimeout((function(){d(!1)}),n),k.add(c.blur,{type:a.blur,callback:l}),k.add(c.visibilitychange,{type:a.visibilitychange,callback:p}),T(r)||function(){var e=S(),t=e.document;if(O(e),T(t))return!0;if(t.body.tabIndex<0&&(t.body.tabIndex=-1),O(t.body),T(t))return!0;var n=void 0;try{(n=t.createElement("input")).type="text",n.readOnly=!0,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),n.style.position="fixed",n.style.width=n.style.height="1px",n.style.top=n.style.left="0",n.style.opacity="0",n.style.zIndex="-1",t.body.appendChild(n),O(n);try{n.select()}catch(e){}if(T(t))return!0}catch(e){}finally{if(void 0!==n){try{n.blur()}catch(e){}try{t.body.removeChild(n)}catch(e){}}}T(t)}();try{!function(e,t){var n=S(),i=void 0;try{if(0===t)return void(n.location.href=e);(i=n.document.createElement("a")).href=e,i.setAttribute("aria-hidden","true"),i.style.display="none",n.document.body.appendChild(i);var o=void 0;try{o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:n})}catch(e){(o=n.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,null)}i.dispatchEvent(o)}catch(e){}finally{if(void 0!==i)try{n.document.body.removeChild(i)}catch(e){}}}(e,t),E(e)}catch(e){d(!1)}}))}var W,L=function(e,t){function n(i){if(!(this instanceof n))return new n(i);var o=new t(i||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(o,n.prototype):o.__proto__=n.prototype,o.name=e,void 0!==i&&(o.message=i),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(o,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(o,n);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(o,n);else try{var r=new t;r.stack&&(o.stack=r.stack)}catch(e){}return o}void 0===t&&(t=Error),n.prototype=Object.create(t.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(n.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{n.prototype.name=e}catch(e){}}try{Object.defineProperty(n,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return n}("URLOpenError"),A={open:function(t){var n,o=s,r=[],c=[];function u(){for(var e="",t=0;t<r.length;t++)e+="\n"+(t+1)+": "+c[t];return e.length>0&&(e="\n"+e+"\n"),new L("Failed to open any of the provided URLs: "+e)}if(o===i.Android){if(void 0===(g=t[i.Android]))return Promise.reject(u());n=g.timeout;var l=D(g.scheme),f=D(g.intent),p=g.packageName,v=D(g.fallback),h=g.allowWebStore;if(void 0!==f&&(void 0===l||void 0===p||void 0===v)){var b=function(e){for(var t={},n=e.split("#Intent;"),i=n[0].substring(9),o=n[1],r=o.substring(0,o.length-4).split(";"),a={},c=0;c<r.length;c++){var u=r[c],s=u.indexOf("=");-1!==s&&(a[u.substring(0,s)]=u.substring(s+1))}void 0!==a.scheme&&(t.scheme=a.scheme+"://"+i);void 0!==a.package&&(t.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(t.fallback=a["S.browser_fallback_url"]);return t}(f);void 0!==b.scheme&&void 0===l&&(l=b.scheme),void 0!==b.packageName&&void 0===p&&(p=b.packageName),void 0!==b.fallback&&void 0===v&&(v=b.fallback)}void 0!==l&&void 0===f&&(f=function(e,t,n){var o=e.split("://"),r=o[0],a=o[1],c="intent://";void 0!==a&&(c+=a);c=c+"#Intent;scheme="+r+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==t&&(c=c+"package="+t+";");void 0!==n&&"string"==typeof n?c=c+"S.browser_fallback_url="+n+";":void 0!==t&&(c=c+"S.browser_fallback_url="+x(t,i.Android)+";");return c+"end"}(l,p,v)),void 0!==f&&a&&r.push([f,e.Intent]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==p&&r.push([x(p,i.Android),e.Store]),void 0!==p&&!0===h&&r.push([N(p,i.Android),e.Store])}else if(o===i.iOS){if(void 0===(g=t[i.iOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId;var m=g.trackId,y=D(g.universal);v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=_(p)),void 0!==y&&parseInt(d)>=9&&r.push([y,e.Universal]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([x(m,i.iOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.iOS),e.Store])}else if(o===i.Windows){if(void 0===(g=t[i.Windows]))return Promise.reject(u());n=g.timeout;l=D(g.scheme);var w=g.productId;v=D(g.fallback),h=g.allowWebStore;void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==w&&r.push([x(w,i.Windows),e.Store]),void 0!==w&&!0===h&&r.push([N(w,i.Windows),e.Store])}else if(o===i.MacOS){var g;if(void 0===(g=t[i.MacOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId,m=g.trackId,v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=_(p)),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([x(m,i.MacOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.MacOS),e.Store])}void 0===n&&(n=P(o));return new Promise((function(e,t){return function i(o){if(void 0===o&&(o=0),o>=r.length)return t(u());var a=r[o],s=a[0];if("string"==typeof s)return c[o]=s,M(s,o,n).then((function(){e(a[1])})).catch((function(){i(o+1)}));c[o]="[function fallback]",s(),e(a[1])}()}))},messenger:(W={},W[t.Telephone]=function(e){return j(e,"tel")},W[t.Message]=function(e){return j(e,"sms")},W[t.Mail]=function(e){return j(e,"mailto")},W)};function _(e){try{var t=new XMLHttpRequest;if(t.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),200===t.status)try{var n=JSON.parse(t.response);if(void 0===n.results)return;var i=n.results;if(!Array.isArray(i)||0===i.length)return;var o=i[0];if(void 0===o)return;return o.trackId}catch(e){return}return}catch(e){return}}function x(e,t){switch(t){case i.Android:return"market://details?id="+e;case i.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"ms-windows-store://pdp/?ProductId="+e;case i.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new L('Unsupported OS: "'+n+'"')}}function N(e,t){switch(t){case i.Android:return"https://play.google.com/store/apps/details?id="+e;case i.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"https://apps.microsoft.com/detail/"+e;case i.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new L('Unsupported OS: "'+n+'"')}}function P(e){switch(e){case i.iOS:return 2e3;case i.Android:return 1e3;default:return 750}}function I(e,t,n){void 0===n&&(n=",");for(var i=e.length,o="",r=0;r<i;r++)o+=t(e[r]),r!==i-1&&(o+=n);return o}function U(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function D(e){return e instanceof URL?e.toString():e}function F(e){if("string"==typeof e)return U(e);if("number"==typeof e||"boolean"==typeof e)return U(String(e));if(null==e)return"";if(function(e){if(null==e||"string"==typeof e)return!1;var t=e.length;return"number"==typeof t&&t>=0&&!(t%1)}(e))return I(e,(function(e){return F(e)}));if(e instanceof HTMLInputElement){var t=e.type;if("checkbox"===t)return U(e.checked.toString());if("radio"===t)return e.checked?U(e.value):"";if("file"===t){var n=e.files;return null===n?"":I(n,(function(e){return U(e.name)}))}return U(e.value)}return e instanceof HTMLSelectElement?e.multiple?I(e.selectedOptions,(function(e){return U(e.value)})):U(e.value):e instanceof HTMLTextAreaElement?U(e.value):e instanceof HTMLElement?U(e.innerText):e instanceof Node?F(e.textContent):U(e.toString())}function H(e){if(e instanceof HTMLFormElement)return H(new FormData(e));if(e instanceof FormData){var t={};return e.forEach((function(e,n){var i;if(i=e instanceof File?e.name:e,Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];Array.isArray(o)?o.push(i):t[n]=[o,i]}else t[n]=i})),H(t)}for(var n={},i=Object.keys(e),o=0;o<i.length;o++){var r=i[o];n[r]=F(e[r])}return void 0===n.to&&(n.to=""),void 0===n.cc&&(n.cc=""),void 0===n.bcc&&(n.bcc=""),void 0===n.subject&&(n.subject=""),void 0===n.body&&(n.body=""),n}function j(e,t){return M(t+":"+(e=H(e)).to+"?cc="+e.cc+"&bcc="+e.bcc+"&subject="+e.subject+"&body="+e.body,0,P(s))}var R={installed:!1,name:"App",module:A,constants:{AppOpenState:e,Messengers:t},errors:{URLOpenError:L}};module.exports=R;
1
+ "use strict";var e,t,n=navigator.userAgent;!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(e||(e={})),function(e){e.Telephone="telephone",e.Message="message",e.Mail="mail"}(t||(t={}));var i,o,r,a=!/firefox|opr/i.test(n);!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(i||(i={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(o||(o={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(r||(r={}));var c=function(){function e(e){return void 0===e?"":e.replace(/_/g,".")}function t(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function n(e){return void 0===e?"":e}return[[/android\w*[-\/.; ]?([\d.]*)/i,i.Android,o.Mobile,n],[/microsoft windows (vista|xp)/i,i.Windows,o.Desktop,n],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,i.Windows,o.Desktop,t],[/windows nt 6\.2; (arm)/i,i.Windows,o.Desktop,t],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,i.Windows,o.Desktop,t],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,i.Windows,o.Desktop,t],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,i.iOS,o.Mobile,e],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,i.iOS,o.Mobile,e],[/cfnetwork\/.+darwin/i,i.iOS,o.Mobile,n],[/mac os x ?([\w. ]*)/i,i.MacOS,o.Desktop,e],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,i.MacOS,o.Desktop,e]]}(),u=[[/windows.+ edge\/([\w.]+)/i,r.EdgeHTML],[/arkweb\/([\w.]+)/i,r.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,r.Blink],[/presto\/([\w.]+)/i,r.Presto],[/webkit\/([\w.]+)/i,r.WebKit],[/trident\/([\w.]+)/i,r.Trident],[/netfront\/([\w.]+)/i,r.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,r.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,r.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,r.Gecko]],s=i.Unknown,d="";o.Unknown;r.Unknown;for(var l=0;l<c.length;l++){var f=(b=c[l])[0],p=b[1],v=b[2],h=b[3];if(null!==(m=n.match(f))){s=p,d=h(m[1]);break}}for(l=0;l<u.length;l++){var b,m;f=(b=u[l])[0];if(b[1],null!==(m=n.match(f))){m[1];break}}function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",o=0;o<t.length-2;o++){var r=t[o];void 0!==r&&(i=i+r.charAt(0).toUpperCase()+r.slice(1))}return i}function w(){this.returnValue=!1}function g(){this.cancelBubble=!0}!function(){var e=document.createElement("canvas");if("function"!=typeof e.getContext)return"";var t=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===t)return"";if(t instanceof WebGLRenderingContext||"getParameter"in t&&"function"==typeof t.getParameter){var n=t.getExtension("WEBGL_debug_renderer_info");return null===n?t.getParameter(t.RENDERER):t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}(),o.Mobile,o.Desktop,s===i.iOS?"standalone"in navigator&&navigator.standalone:window.matchMedia("(display-mode: standalone)").matches;var k={useStd:"undefined"!=typeof document&&"function"==typeof document.addEventListener,add:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,n,o)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(n)}catch(e){}else try{return e.addListener(i,n)}catch(e){}return"function"==typeof e.attachEvent?n.__ieWrapper?e.attachEvent("on"+i,n.__ieWrapper):e.attachEvent("on"+i,n.__ieWrapper=function(t){void 0===t&&(t=window.event),void 0!==t&&(t.currentTarget=e,"function"!=typeof t.preventDefault&&(t.preventDefault=w),"function"!=typeof t.stopPropagation&&(t.stopPropagation=g),"function"==typeof n?n.call(e,t):n&&"function"==typeof n.handleEvent&&n.handleEvent.call(e,t))}):void 0}},remove:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(i,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(i,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var r=n.__ieWrapper;void 0!==r&&(e.detachEvent("on"+i,r),delete n.__ieWrapper)}}},withVender:function(e,t){if(void 0===t)return"";var n,i=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,o=["","webkit","moz","ms","MS","o","O"];n="wheel"===t?["wheel","mousewheel","DOMMouseScroll"]:"focus"===t?["focus","focusin"]:"blur"===t?["blur","focusout"]:i.test(t)?[t,t.replace(i,y)]:[t];for(var r=0;r<o.length;r++)for(var a=0;a<n.length;a++){var c=o[r]+n[a];if(void 0!==e["on"+c])return c}return""}};function S(){try{if(window.top&&window.top!==window)return window.top.location.href,window.top}catch(e){}return window}function E(e){var t=S(),n=void 0;try{(n=document.createElement("iframe")).src=e,n.width=n.height=n.frameBorder="0",n.setAttribute("aria-hidden","true"),n.style.display="none",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",t.document.body.appendChild(n),window.setTimeout((function(){if(void 0!==n)try{t.document.body.removeChild(n)}catch(e){}}),500)}catch(e){}}function T(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function O(e){try{e.focus({preventScroll:!0})}catch(t){try{e.focus()}catch(e){}}}function M(e,t,n){var o=S(),r=o.document,a={focus:void 0,blur:void 0,visibilitychange:void 0},c={focus:void 0,blur:void 0,visibilitychange:void 0};return s===i.iOS?parseInt(d)>=8?(c={visibilitychange:r},a={visibilitychange:"visibilitychange"}):(c={focus:o,blur:o},a={focus:"pageshow",blur:"pagehide"}):k.useStd?(c={focus:o,blur:o,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}):(c={focus:r,blur:r,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}),new Promise((function(i,o){var u,s=!1;function d(e){if(!s){s=!0;try{!function(){void 0!==u&&(clearTimeout(u),u=void 0);try{k.remove(c.blur,{type:a.blur,callback:l}),k.remove(c.focus,{type:a.focus,callback:f}),k.remove(c.visibilitychange,{type:a.visibilitychange,callback:p})}catch(e){}}(),e?i():o()}catch(e){i()}}}function l(){void 0!==u&&(clearTimeout(u),u=void 0),k.remove(c.blur,{type:a.blur,callback:l}),k.add(c.focus,{type:a.focus,callback:f})}function f(){d(!0)}function p(){(function(){var e=S().document;return"hidden"===e.visibilityState||"hidden"===e.webkitVisibilityState||"hidden"===e.mozVisibilityState||"hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus())})()&&d(!0)}u=window.setTimeout((function(){d(!1)}),n),k.add(c.blur,{type:a.blur,callback:l}),k.add(c.visibilitychange,{type:a.visibilitychange,callback:p}),T(r)||function(){var e=S(),t=e.document;if(O(e),T(t))return!0;if(t.body.tabIndex<0&&(t.body.tabIndex=-1),O(t.body),T(t))return!0;var n=void 0;try{(n=t.createElement("input")).type="text",n.readOnly=!0,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),n.style.position="fixed",n.style.width=n.style.height="1px",n.style.top=n.style.left="0",n.style.opacity="0",n.style.zIndex="-1",t.body.appendChild(n),O(n);try{n.select()}catch(e){}if(T(t))return!0}catch(e){}finally{if(void 0!==n){try{n.blur()}catch(e){}try{t.body.removeChild(n)}catch(e){}}}T(t)}();try{!function(e,t){var n=S(),i=void 0;try{if(0===t)return void(n.location.href=e);(i=n.document.createElement("a")).href=e,i.setAttribute("aria-hidden","true"),i.style.display="none",n.document.body.appendChild(i);var o=void 0;try{o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:n})}catch(e){(o=n.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,null)}i.dispatchEvent(o)}catch(e){}finally{if(void 0!==i)try{n.document.body.removeChild(i)}catch(e){}}}(e,t),E(e)}catch(e){d(!1)}}))}var W,L=function(e,t){function n(i){if(!(this instanceof n))return new n(i);var o=new t(i||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(o,n.prototype):o.__proto__=n.prototype,o.name=e,void 0!==i&&(o.message=i),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(o,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(o,n);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(o,n);else try{var r=new t;r.stack&&(o.stack=r.stack)}catch(e){}return o}void 0===t&&(t=Error),n.prototype=Object.create(t.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(n.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{n.prototype.name=e}catch(e){}}try{Object.defineProperty(n,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return n}("URLOpenError"),A={open:function(t){var n,o=s,r=[],c=[];function u(){for(var e="",t=0;t<r.length;t++)e+="\n"+(t+1)+": "+c[t];return e.length>0&&(e="\n"+e+"\n"),new L("Failed to open any of the provided URLs: "+e)}if(o===i.Android){if(void 0===(g=t[i.Android]))return Promise.reject(u());n=g.timeout;var l=D(g.scheme),f=D(g.intent),p=g.packageName,v=D(g.fallback),h=g.allowWebStore;if(void 0!==f&&(void 0===l||void 0===p||void 0===v)){var b=function(e){for(var t={},n=e.split("#Intent;"),i=n[0].substring(9),o=n[1],r=o.substring(0,o.length-4).split(";"),a={},c=0;c<r.length;c++){var u=r[c],s=u.indexOf("=");-1!==s&&(a[u.substring(0,s)]=u.substring(s+1))}void 0!==a.scheme&&(t.scheme=a.scheme+"://"+i);void 0!==a.package&&(t.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(t.fallback=a["S.browser_fallback_url"]);return t}(f);void 0!==b.scheme&&void 0===l&&(l=b.scheme),void 0!==b.packageName&&void 0===p&&(p=b.packageName),void 0!==b.fallback&&void 0===v&&(v=b.fallback)}void 0!==l&&void 0===f&&(f=function(e,t,n){var o=e.split("://"),r=o[0],a=o[1],c="intent://";void 0!==a&&(c+=a);c=c+"#Intent;scheme="+r+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==t&&(c=c+"package="+t+";");void 0!==n&&"string"==typeof n?c=c+"S.browser_fallback_url="+n+";":void 0!==t&&(c=c+"S.browser_fallback_url="+x(t,i.Android)+";");return c+"end"}(l,p,v)),void 0!==f&&a&&r.push([f,e.Intent]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==p&&r.push([x(p,i.Android),e.Store]),void 0!==p&&!0===h&&r.push([N(p,i.Android),e.Store])}else if(o===i.iOS){if(void 0===(g=t[i.iOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId;var m=g.trackId,y=D(g.universal);v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=_(p)),void 0!==y&&parseInt(d)>=9&&r.push([y,e.Universal]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([x(m,i.iOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.iOS),e.Store])}else if(o===i.Windows){if(void 0===(g=t[i.Windows]))return Promise.reject(u());n=g.timeout;l=D(g.scheme);var w=g.productId;v=D(g.fallback),h=g.allowWebStore;void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==w&&r.push([x(w,i.Windows),e.Store]),void 0!==w&&!0===h&&r.push([N(w,i.Windows),e.Store])}else if(o===i.MacOS){var g;if(void 0===(g=t[i.MacOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId,m=g.trackId,v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=_(p)),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([x(m,i.MacOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.MacOS),e.Store])}void 0===n&&(n=P(o));return new Promise((function(e,t){return function i(o){if(void 0===o&&(o=0),o>=r.length)return t(u());var a=r[o],s=a[0];if("string"==typeof s)return c[o]=s,M(s,o,n).then((function(){e(a[1])})).catch((function(){i(o+1)}));c[o]="[function fallback]",s(),e(a[1])}()}))},messenger:(W={},W[t.Telephone]=function(e){return j(e,"tel")},W[t.Message]=function(e){return j(e,"sms")},W[t.Mail]=function(e){return j(e,"mailto")},W)};function _(e){try{var t=new XMLHttpRequest;if(t.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),200===t.status)try{var n=JSON.parse(t.response);if(void 0===n.results)return;var i=n.results;if(!Array.isArray(i)||0===i.length)return;var o=i[0];if(void 0===o)return;return o.trackId}catch(e){return}return}catch(e){return}}function x(e,t){switch(t){case i.Android:return"market://details?id="+e;case i.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"ms-windows-store://pdp/?ProductId="+e;case i.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new L('Unsupported OS: "'+n+'"')}}function N(e,t){switch(t){case i.Android:return"https://play.google.com/store/apps/details?id="+e;case i.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"https://apps.microsoft.com/detail/"+e;case i.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new L('Unsupported OS: "'+n+'"')}}function P(e){switch(e){case i.iOS:return 2e3;case i.Android:return 1e3;default:return 750}}function I(e,t,n){void 0===n&&(n=",");for(var i=e.length,o="",r=0;r<i;r++)o+=t(e[r]),r!==i-1&&(o+=n);return o}function U(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function D(e){return e instanceof URL?e.toString():e}function F(e){if("string"==typeof e)return U(e);if("number"==typeof e||"boolean"==typeof e)return U(String(e));if(null==e)return"";if(function(e){if(null==e||"string"==typeof e)return!1;var t=e.length;return"number"==typeof t&&t>=0&&!(t%1)}(e))return I(e,(function(e){return F(e)}));if(e instanceof HTMLInputElement){var t=e.type;if("checkbox"===t)return U(e.checked.toString());if("radio"===t)return e.checked?U(e.value):"";if("file"===t){var n=e.files;return null===n?"":I(n,(function(e){return U(e.name)}))}return U(e.value)}return e instanceof HTMLSelectElement?e.multiple?I(e.selectedOptions,(function(e){return U(e.value)})):U(e.value):e instanceof HTMLTextAreaElement?U(e.value):e instanceof HTMLElement?U(e.innerText):e instanceof Node?F(e.textContent):U(e.toString())}function H(e){if(e instanceof HTMLFormElement)return H(new FormData(e));if(e instanceof FormData){var t={};return e.forEach((function(e,n){var i;if(i=e instanceof File?e.name:e,Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];Array.isArray(o)?o.push(i):t[n]=[o,i]}else t[n]=i})),H(t)}for(var n={},i=Object.keys(e),o=0;o<i.length;o++){var r=i[o];n[r]=F(e[r])}return void 0===n.to&&(n.to=""),void 0===n.cc&&(n.cc=""),void 0===n.bcc&&(n.bcc=""),void 0===n.subject&&(n.subject=""),void 0===n.body&&(n.body=""),n}function j(e,t){return M(t+":"+(e=H(e)).to+"?cc="+e.cc+"&bcc="+e.bcc+"&subject="+e.subject+"&body="+e.body,0,P(s))}var C={installed:!1,name:"App",module:A,Constants:{AppOpenState:e,Messengers:t},Errors:{URLOpenError:L}};module.exports=C;
@@ -1 +1 @@
1
- var e,t,n=navigator.userAgent;!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(e||(e={})),function(e){e.Telephone="telephone",e.Message="message",e.Mail="mail"}(t||(t={}));var i,o,r,a=!/firefox|opr/i.test(n);!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(i||(i={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(o||(o={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(r||(r={}));var c=function(){function e(e){return void 0===e?"":e.replace(/_/g,".")}function t(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function n(e){return void 0===e?"":e}return[[/android\w*[-\/.; ]?([\d.]*)/i,i.Android,o.Mobile,n],[/microsoft windows (vista|xp)/i,i.Windows,o.Desktop,n],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,i.Windows,o.Desktop,t],[/windows nt 6\.2; (arm)/i,i.Windows,o.Desktop,t],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,i.Windows,o.Desktop,t],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,i.Windows,o.Desktop,t],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,i.iOS,o.Mobile,e],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,i.iOS,o.Mobile,e],[/cfnetwork\/.+darwin/i,i.iOS,o.Mobile,n],[/mac os x ?([\w. ]*)/i,i.MacOS,o.Desktop,e],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,i.MacOS,o.Desktop,e]]}(),u=[[/windows.+ edge\/([\w.]+)/i,r.EdgeHTML],[/arkweb\/([\w.]+)/i,r.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,r.Blink],[/presto\/([\w.]+)/i,r.Presto],[/webkit\/([\w.]+)/i,r.WebKit],[/trident\/([\w.]+)/i,r.Trident],[/netfront\/([\w.]+)/i,r.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,r.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,r.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,r.Gecko]],s=i.Unknown,d="";o.Unknown;r.Unknown;for(var l=0;l<c.length;l++){var f=(b=c[l])[0],p=b[1],v=b[2],h=b[3];if(null!==(m=n.match(f))){s=p,d=h(m[1]);break}}for(l=0;l<u.length;l++){var b,m;f=(b=u[l])[0];if(b[1],null!==(m=n.match(f))){m[1];break}}function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",o=0;o<t.length-2;o++){var r=t[o];void 0!==r&&(i=i+r.charAt(0).toUpperCase()+r.slice(1))}return i}function w(){this.returnValue=!1}function g(){this.cancelBubble=!0}!function(){var e=document.createElement("canvas");if("function"!=typeof e.getContext)return"";var t=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===t)return"";if(t instanceof WebGLRenderingContext||"getParameter"in t&&"function"==typeof t.getParameter){var n=t.getExtension("WEBGL_debug_renderer_info");return null===n?t.getParameter(t.RENDERER):t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}(),o.Mobile,o.Desktop,s===i.iOS?"standalone"in navigator&&navigator.standalone:window.matchMedia("(display-mode: standalone)").matches;var k={useStd:"undefined"!=typeof document&&"function"==typeof document.addEventListener,add:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,n,o)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(n)}catch(e){}else try{return e.addListener(i,n)}catch(e){}return"function"==typeof e.attachEvent?n.__ieWrapper?e.attachEvent("on"+i,n.__ieWrapper):e.attachEvent("on"+i,n.__ieWrapper=function(t){void 0===t&&(t=window.event),void 0!==t&&(t.currentTarget=e,"function"!=typeof t.preventDefault&&(t.preventDefault=w),"function"!=typeof t.stopPropagation&&(t.stopPropagation=g),"function"==typeof n?n.call(e,t):n&&"function"==typeof n.handleEvent&&n.handleEvent.call(e,t))}):void 0}},remove:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(i,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(i,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var r=n.__ieWrapper;void 0!==r&&(e.detachEvent("on"+i,r),delete n.__ieWrapper)}}},withVender:function(e,t){if(void 0===t)return"";var n,i=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,o=["","webkit","moz","ms","MS","o","O"];n="wheel"===t?["wheel","mousewheel","DOMMouseScroll"]:"focus"===t?["focus","focusin"]:"blur"===t?["blur","focusout"]:i.test(t)?[t,t.replace(i,y)]:[t];for(var r=0;r<o.length;r++)for(var a=0;a<n.length;a++){var c=o[r]+n[a];if(void 0!==e["on"+c])return c}return""}};function S(){try{if(window.top&&window.top!==window)return window.top.location.href,window.top}catch(e){}return window}function E(e){var t=S(),n=void 0;try{(n=document.createElement("iframe")).src=e,n.width=n.height=n.frameBorder="0",n.setAttribute("aria-hidden","true"),n.style.display="none",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",t.document.body.appendChild(n),window.setTimeout((function(){if(void 0!==n)try{t.document.body.removeChild(n)}catch(e){}}),500)}catch(e){}}function T(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function O(e){try{e.focus({preventScroll:!0})}catch(t){try{e.focus()}catch(e){}}}function M(e,t,n){var o=S(),r=o.document,a={focus:void 0,blur:void 0,visibilitychange:void 0},c={focus:void 0,blur:void 0,visibilitychange:void 0};return s===i.iOS?parseInt(d)>=8?(c={visibilitychange:r},a={visibilitychange:"visibilitychange"}):(c={focus:o,blur:o},a={focus:"pageshow",blur:"pagehide"}):k.useStd?(c={focus:o,blur:o,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}):(c={focus:r,blur:r,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}),new Promise((function(i,o){var u,s=!1;function d(e){if(!s){s=!0;try{!function(){void 0!==u&&(clearTimeout(u),u=void 0);try{k.remove(c.blur,{type:a.blur,callback:l}),k.remove(c.focus,{type:a.focus,callback:f}),k.remove(c.visibilitychange,{type:a.visibilitychange,callback:p})}catch(e){}}(),e?i():o()}catch(e){i()}}}function l(){void 0!==u&&(clearTimeout(u),u=void 0),k.remove(c.blur,{type:a.blur,callback:l}),k.add(c.focus,{type:a.focus,callback:f})}function f(){d(!0)}function p(){(function(){var e=S().document;return"hidden"===e.visibilityState||"hidden"===e.webkitVisibilityState||"hidden"===e.mozVisibilityState||"hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus())})()&&d(!0)}u=window.setTimeout((function(){d(!1)}),n),k.add(c.blur,{type:a.blur,callback:l}),k.add(c.visibilitychange,{type:a.visibilitychange,callback:p}),T(r)||function(){var e=S(),t=e.document;if(O(e),T(t))return!0;if(t.body.tabIndex<0&&(t.body.tabIndex=-1),O(t.body),T(t))return!0;var n=void 0;try{(n=t.createElement("input")).type="text",n.readOnly=!0,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),n.style.position="fixed",n.style.width=n.style.height="1px",n.style.top=n.style.left="0",n.style.opacity="0",n.style.zIndex="-1",t.body.appendChild(n),O(n);try{n.select()}catch(e){}if(T(t))return!0}catch(e){}finally{if(void 0!==n){try{n.blur()}catch(e){}try{t.body.removeChild(n)}catch(e){}}}T(t)}();try{!function(e,t){var n=S(),i=void 0;try{if(0===t)return void(n.location.href=e);(i=n.document.createElement("a")).href=e,i.setAttribute("aria-hidden","true"),i.style.display="none",n.document.body.appendChild(i);var o=void 0;try{o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:n})}catch(e){(o=n.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,null)}i.dispatchEvent(o)}catch(e){}finally{if(void 0!==i)try{n.document.body.removeChild(i)}catch(e){}}}(e,t),E(e)}catch(e){d(!1)}}))}var W,L=function(e,t){function n(i){if(!(this instanceof n))return new n(i);var o=new t(i||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(o,n.prototype):o.__proto__=n.prototype,o.name=e,void 0!==i&&(o.message=i),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(o,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(o,n);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(o,n);else try{var r=new t;r.stack&&(o.stack=r.stack)}catch(e){}return o}void 0===t&&(t=Error),n.prototype=Object.create(t.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(n.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{n.prototype.name=e}catch(e){}}try{Object.defineProperty(n,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return n}("URLOpenError"),A={open:function(t){var n,o=s,r=[],c=[];function u(){for(var e="",t=0;t<r.length;t++)e+="\n"+(t+1)+": "+c[t];return e.length>0&&(e="\n"+e+"\n"),new L("Failed to open any of the provided URLs: "+e)}if(o===i.Android){if(void 0===(g=t[i.Android]))return Promise.reject(u());n=g.timeout;var l=D(g.scheme),f=D(g.intent),p=g.packageName,v=D(g.fallback),h=g.allowWebStore;if(void 0!==f&&(void 0===l||void 0===p||void 0===v)){var b=function(e){for(var t={},n=e.split("#Intent;"),i=n[0].substring(9),o=n[1],r=o.substring(0,o.length-4).split(";"),a={},c=0;c<r.length;c++){var u=r[c],s=u.indexOf("=");-1!==s&&(a[u.substring(0,s)]=u.substring(s+1))}void 0!==a.scheme&&(t.scheme=a.scheme+"://"+i);void 0!==a.package&&(t.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(t.fallback=a["S.browser_fallback_url"]);return t}(f);void 0!==b.scheme&&void 0===l&&(l=b.scheme),void 0!==b.packageName&&void 0===p&&(p=b.packageName),void 0!==b.fallback&&void 0===v&&(v=b.fallback)}void 0!==l&&void 0===f&&(f=function(e,t,n){var o=e.split("://"),r=o[0],a=o[1],c="intent://";void 0!==a&&(c+=a);c=c+"#Intent;scheme="+r+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==t&&(c=c+"package="+t+";");void 0!==n&&"string"==typeof n?c=c+"S.browser_fallback_url="+n+";":void 0!==t&&(c=c+"S.browser_fallback_url="+x(t,i.Android)+";");return c+"end"}(l,p,v)),void 0!==f&&a&&r.push([f,e.Intent]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==p&&r.push([x(p,i.Android),e.Store]),void 0!==p&&!0===h&&r.push([N(p,i.Android),e.Store])}else if(o===i.iOS){if(void 0===(g=t[i.iOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId;var m=g.trackId,y=D(g.universal);v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=_(p)),void 0!==y&&parseInt(d)>=9&&r.push([y,e.Universal]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([x(m,i.iOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.iOS),e.Store])}else if(o===i.Windows){if(void 0===(g=t[i.Windows]))return Promise.reject(u());n=g.timeout;l=D(g.scheme);var w=g.productId;v=D(g.fallback),h=g.allowWebStore;void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==w&&r.push([x(w,i.Windows),e.Store]),void 0!==w&&!0===h&&r.push([N(w,i.Windows),e.Store])}else if(o===i.MacOS){var g;if(void 0===(g=t[i.MacOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId,m=g.trackId,v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=_(p)),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([x(m,i.MacOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.MacOS),e.Store])}void 0===n&&(n=P(o));return new Promise((function(e,t){return function i(o){if(void 0===o&&(o=0),o>=r.length)return t(u());var a=r[o],s=a[0];if("string"==typeof s)return c[o]=s,M(s,o,n).then((function(){e(a[1])})).catch((function(){i(o+1)}));c[o]="[function fallback]",s(),e(a[1])}()}))},messenger:(W={},W[t.Telephone]=function(e){return j(e,"tel")},W[t.Message]=function(e){return j(e,"sms")},W[t.Mail]=function(e){return j(e,"mailto")},W)};function _(e){try{var t=new XMLHttpRequest;if(t.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),200===t.status)try{var n=JSON.parse(t.response);if(void 0===n.results)return;var i=n.results;if(!Array.isArray(i)||0===i.length)return;var o=i[0];if(void 0===o)return;return o.trackId}catch(e){return}return}catch(e){return}}function x(e,t){switch(t){case i.Android:return"market://details?id="+e;case i.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"ms-windows-store://pdp/?ProductId="+e;case i.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new L('Unsupported OS: "'+n+'"')}}function N(e,t){switch(t){case i.Android:return"https://play.google.com/store/apps/details?id="+e;case i.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"https://apps.microsoft.com/detail/"+e;case i.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new L('Unsupported OS: "'+n+'"')}}function P(e){switch(e){case i.iOS:return 2e3;case i.Android:return 1e3;default:return 750}}function I(e,t,n){void 0===n&&(n=",");for(var i=e.length,o="",r=0;r<i;r++)o+=t(e[r]),r!==i-1&&(o+=n);return o}function U(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function D(e){return e instanceof URL?e.toString():e}function F(e){if("string"==typeof e)return U(e);if("number"==typeof e||"boolean"==typeof e)return U(String(e));if(null==e)return"";if(function(e){if(null==e||"string"==typeof e)return!1;var t=e.length;return"number"==typeof t&&t>=0&&!(t%1)}(e))return I(e,(function(e){return F(e)}));if(e instanceof HTMLInputElement){var t=e.type;if("checkbox"===t)return U(e.checked.toString());if("radio"===t)return e.checked?U(e.value):"";if("file"===t){var n=e.files;return null===n?"":I(n,(function(e){return U(e.name)}))}return U(e.value)}return e instanceof HTMLSelectElement?e.multiple?I(e.selectedOptions,(function(e){return U(e.value)})):U(e.value):e instanceof HTMLTextAreaElement?U(e.value):e instanceof HTMLElement?U(e.innerText):e instanceof Node?F(e.textContent):U(e.toString())}function H(e){if(e instanceof HTMLFormElement)return H(new FormData(e));if(e instanceof FormData){var t={};return e.forEach((function(e,n){var i;if(i=e instanceof File?e.name:e,Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];Array.isArray(o)?o.push(i):t[n]=[o,i]}else t[n]=i})),H(t)}for(var n={},i=Object.keys(e),o=0;o<i.length;o++){var r=i[o];n[r]=F(e[r])}return void 0===n.to&&(n.to=""),void 0===n.cc&&(n.cc=""),void 0===n.bcc&&(n.bcc=""),void 0===n.subject&&(n.subject=""),void 0===n.body&&(n.body=""),n}function j(e,t){return M(t+":"+(e=H(e)).to+"?cc="+e.cc+"&bcc="+e.bcc+"&subject="+e.subject+"&body="+e.body,0,P(s))}var R={installed:!1,name:"App",module:A,constants:{AppOpenState:e,Messengers:t},errors:{URLOpenError:L}};export{R as default};
1
+ var e,t,n=navigator.userAgent;!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(e||(e={})),function(e){e.Telephone="telephone",e.Message="message",e.Mail="mail"}(t||(t={}));var i,o,r,a=!/firefox|opr/i.test(n);!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(i||(i={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(o||(o={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(r||(r={}));var c=function(){function e(e){return void 0===e?"":e.replace(/_/g,".")}function t(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function n(e){return void 0===e?"":e}return[[/android\w*[-\/.; ]?([\d.]*)/i,i.Android,o.Mobile,n],[/microsoft windows (vista|xp)/i,i.Windows,o.Desktop,n],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,i.Windows,o.Desktop,t],[/windows nt 6\.2; (arm)/i,i.Windows,o.Desktop,t],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,i.Windows,o.Desktop,t],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,i.Windows,o.Desktop,t],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,i.iOS,o.Mobile,e],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,i.iOS,o.Mobile,e],[/cfnetwork\/.+darwin/i,i.iOS,o.Mobile,n],[/mac os x ?([\w. ]*)/i,i.MacOS,o.Desktop,e],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,i.MacOS,o.Desktop,e]]}(),u=[[/windows.+ edge\/([\w.]+)/i,r.EdgeHTML],[/arkweb\/([\w.]+)/i,r.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,r.Blink],[/presto\/([\w.]+)/i,r.Presto],[/webkit\/([\w.]+)/i,r.WebKit],[/trident\/([\w.]+)/i,r.Trident],[/netfront\/([\w.]+)/i,r.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,r.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,r.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,r.Gecko]],s=i.Unknown,d="";o.Unknown;r.Unknown;for(var l=0;l<c.length;l++){var f=(b=c[l])[0],p=b[1],v=b[2],h=b[3];if(null!==(m=n.match(f))){s=p,d=h(m[1]);break}}for(l=0;l<u.length;l++){var b,m;f=(b=u[l])[0];if(b[1],null!==(m=n.match(f))){m[1];break}}function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",o=0;o<t.length-2;o++){var r=t[o];void 0!==r&&(i=i+r.charAt(0).toUpperCase()+r.slice(1))}return i}function w(){this.returnValue=!1}function g(){this.cancelBubble=!0}!function(){var e=document.createElement("canvas");if("function"!=typeof e.getContext)return"";var t=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===t)return"";if(t instanceof WebGLRenderingContext||"getParameter"in t&&"function"==typeof t.getParameter){var n=t.getExtension("WEBGL_debug_renderer_info");return null===n?t.getParameter(t.RENDERER):t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}(),o.Mobile,o.Desktop,s===i.iOS?"standalone"in navigator&&navigator.standalone:window.matchMedia("(display-mode: standalone)").matches;var k={useStd:"undefined"!=typeof document&&"function"==typeof document.addEventListener,add:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,n,o)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(n)}catch(e){}else try{return e.addListener(i,n)}catch(e){}return"function"==typeof e.attachEvent?n.__ieWrapper?e.attachEvent("on"+i,n.__ieWrapper):e.attachEvent("on"+i,n.__ieWrapper=function(t){void 0===t&&(t=window.event),void 0!==t&&(t.currentTarget=e,"function"!=typeof t.preventDefault&&(t.preventDefault=w),"function"!=typeof t.stopPropagation&&(t.stopPropagation=g),"function"==typeof n?n.call(e,t):n&&"function"==typeof n.handleEvent&&n.handleEvent.call(e,t))}):void 0}},remove:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(i,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(i,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var r=n.__ieWrapper;void 0!==r&&(e.detachEvent("on"+i,r),delete n.__ieWrapper)}}},withVender:function(e,t){if(void 0===t)return"";var n,i=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,o=["","webkit","moz","ms","MS","o","O"];n="wheel"===t?["wheel","mousewheel","DOMMouseScroll"]:"focus"===t?["focus","focusin"]:"blur"===t?["blur","focusout"]:i.test(t)?[t,t.replace(i,y)]:[t];for(var r=0;r<o.length;r++)for(var a=0;a<n.length;a++){var c=o[r]+n[a];if(void 0!==e["on"+c])return c}return""}};function S(){try{if(window.top&&window.top!==window)return window.top.location.href,window.top}catch(e){}return window}function E(e){var t=S(),n=void 0;try{(n=document.createElement("iframe")).src=e,n.width=n.height=n.frameBorder="0",n.setAttribute("aria-hidden","true"),n.style.display="none",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",t.document.body.appendChild(n),window.setTimeout((function(){if(void 0!==n)try{t.document.body.removeChild(n)}catch(e){}}),500)}catch(e){}}function T(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function O(e){try{e.focus({preventScroll:!0})}catch(t){try{e.focus()}catch(e){}}}function M(e,t,n){var o=S(),r=o.document,a={focus:void 0,blur:void 0,visibilitychange:void 0},c={focus:void 0,blur:void 0,visibilitychange:void 0};return s===i.iOS?parseInt(d)>=8?(c={visibilitychange:r},a={visibilitychange:"visibilitychange"}):(c={focus:o,blur:o},a={focus:"pageshow",blur:"pagehide"}):k.useStd?(c={focus:o,blur:o,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}):(c={focus:r,blur:r,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}),new Promise((function(i,o){var u,s=!1;function d(e){if(!s){s=!0;try{!function(){void 0!==u&&(clearTimeout(u),u=void 0);try{k.remove(c.blur,{type:a.blur,callback:l}),k.remove(c.focus,{type:a.focus,callback:f}),k.remove(c.visibilitychange,{type:a.visibilitychange,callback:p})}catch(e){}}(),e?i():o()}catch(e){i()}}}function l(){void 0!==u&&(clearTimeout(u),u=void 0),k.remove(c.blur,{type:a.blur,callback:l}),k.add(c.focus,{type:a.focus,callback:f})}function f(){d(!0)}function p(){(function(){var e=S().document;return"hidden"===e.visibilityState||"hidden"===e.webkitVisibilityState||"hidden"===e.mozVisibilityState||"hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus())})()&&d(!0)}u=window.setTimeout((function(){d(!1)}),n),k.add(c.blur,{type:a.blur,callback:l}),k.add(c.visibilitychange,{type:a.visibilitychange,callback:p}),T(r)||function(){var e=S(),t=e.document;if(O(e),T(t))return!0;if(t.body.tabIndex<0&&(t.body.tabIndex=-1),O(t.body),T(t))return!0;var n=void 0;try{(n=t.createElement("input")).type="text",n.readOnly=!0,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),n.style.position="fixed",n.style.width=n.style.height="1px",n.style.top=n.style.left="0",n.style.opacity="0",n.style.zIndex="-1",t.body.appendChild(n),O(n);try{n.select()}catch(e){}if(T(t))return!0}catch(e){}finally{if(void 0!==n){try{n.blur()}catch(e){}try{t.body.removeChild(n)}catch(e){}}}T(t)}();try{!function(e,t){var n=S(),i=void 0;try{if(0===t)return void(n.location.href=e);(i=n.document.createElement("a")).href=e,i.setAttribute("aria-hidden","true"),i.style.display="none",n.document.body.appendChild(i);var o=void 0;try{o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:n})}catch(e){(o=n.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,null)}i.dispatchEvent(o)}catch(e){}finally{if(void 0!==i)try{n.document.body.removeChild(i)}catch(e){}}}(e,t),E(e)}catch(e){d(!1)}}))}var W,L=function(e,t){function n(i){if(!(this instanceof n))return new n(i);var o=new t(i||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(o,n.prototype):o.__proto__=n.prototype,o.name=e,void 0!==i&&(o.message=i),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(o,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(o,n);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(o,n);else try{var r=new t;r.stack&&(o.stack=r.stack)}catch(e){}return o}void 0===t&&(t=Error),n.prototype=Object.create(t.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(n.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{n.prototype.name=e}catch(e){}}try{Object.defineProperty(n,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return n}("URLOpenError"),A={open:function(t){var n,o=s,r=[],c=[];function u(){for(var e="",t=0;t<r.length;t++)e+="\n"+(t+1)+": "+c[t];return e.length>0&&(e="\n"+e+"\n"),new L("Failed to open any of the provided URLs: "+e)}if(o===i.Android){if(void 0===(g=t[i.Android]))return Promise.reject(u());n=g.timeout;var l=D(g.scheme),f=D(g.intent),p=g.packageName,v=D(g.fallback),h=g.allowWebStore;if(void 0!==f&&(void 0===l||void 0===p||void 0===v)){var b=function(e){for(var t={},n=e.split("#Intent;"),i=n[0].substring(9),o=n[1],r=o.substring(0,o.length-4).split(";"),a={},c=0;c<r.length;c++){var u=r[c],s=u.indexOf("=");-1!==s&&(a[u.substring(0,s)]=u.substring(s+1))}void 0!==a.scheme&&(t.scheme=a.scheme+"://"+i);void 0!==a.package&&(t.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(t.fallback=a["S.browser_fallback_url"]);return t}(f);void 0!==b.scheme&&void 0===l&&(l=b.scheme),void 0!==b.packageName&&void 0===p&&(p=b.packageName),void 0!==b.fallback&&void 0===v&&(v=b.fallback)}void 0!==l&&void 0===f&&(f=function(e,t,n){var o=e.split("://"),r=o[0],a=o[1],c="intent://";void 0!==a&&(c+=a);c=c+"#Intent;scheme="+r+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==t&&(c=c+"package="+t+";");void 0!==n&&"string"==typeof n?c=c+"S.browser_fallback_url="+n+";":void 0!==t&&(c=c+"S.browser_fallback_url="+x(t,i.Android)+";");return c+"end"}(l,p,v)),void 0!==f&&a&&r.push([f,e.Intent]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==p&&r.push([x(p,i.Android),e.Store]),void 0!==p&&!0===h&&r.push([N(p,i.Android),e.Store])}else if(o===i.iOS){if(void 0===(g=t[i.iOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId;var m=g.trackId,y=D(g.universal);v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=_(p)),void 0!==y&&parseInt(d)>=9&&r.push([y,e.Universal]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([x(m,i.iOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.iOS),e.Store])}else if(o===i.Windows){if(void 0===(g=t[i.Windows]))return Promise.reject(u());n=g.timeout;l=D(g.scheme);var w=g.productId;v=D(g.fallback),h=g.allowWebStore;void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==w&&r.push([x(w,i.Windows),e.Store]),void 0!==w&&!0===h&&r.push([N(w,i.Windows),e.Store])}else if(o===i.MacOS){var g;if(void 0===(g=t[i.MacOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId,m=g.trackId,v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=_(p)),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([x(m,i.MacOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.MacOS),e.Store])}void 0===n&&(n=P(o));return new Promise((function(e,t){return function i(o){if(void 0===o&&(o=0),o>=r.length)return t(u());var a=r[o],s=a[0];if("string"==typeof s)return c[o]=s,M(s,o,n).then((function(){e(a[1])})).catch((function(){i(o+1)}));c[o]="[function fallback]",s(),e(a[1])}()}))},messenger:(W={},W[t.Telephone]=function(e){return j(e,"tel")},W[t.Message]=function(e){return j(e,"sms")},W[t.Mail]=function(e){return j(e,"mailto")},W)};function _(e){try{var t=new XMLHttpRequest;if(t.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),200===t.status)try{var n=JSON.parse(t.response);if(void 0===n.results)return;var i=n.results;if(!Array.isArray(i)||0===i.length)return;var o=i[0];if(void 0===o)return;return o.trackId}catch(e){return}return}catch(e){return}}function x(e,t){switch(t){case i.Android:return"market://details?id="+e;case i.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"ms-windows-store://pdp/?ProductId="+e;case i.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new L('Unsupported OS: "'+n+'"')}}function N(e,t){switch(t){case i.Android:return"https://play.google.com/store/apps/details?id="+e;case i.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"https://apps.microsoft.com/detail/"+e;case i.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new L('Unsupported OS: "'+n+'"')}}function P(e){switch(e){case i.iOS:return 2e3;case i.Android:return 1e3;default:return 750}}function I(e,t,n){void 0===n&&(n=",");for(var i=e.length,o="",r=0;r<i;r++)o+=t(e[r]),r!==i-1&&(o+=n);return o}function U(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function D(e){return e instanceof URL?e.toString():e}function F(e){if("string"==typeof e)return U(e);if("number"==typeof e||"boolean"==typeof e)return U(String(e));if(null==e)return"";if(function(e){if(null==e||"string"==typeof e)return!1;var t=e.length;return"number"==typeof t&&t>=0&&!(t%1)}(e))return I(e,(function(e){return F(e)}));if(e instanceof HTMLInputElement){var t=e.type;if("checkbox"===t)return U(e.checked.toString());if("radio"===t)return e.checked?U(e.value):"";if("file"===t){var n=e.files;return null===n?"":I(n,(function(e){return U(e.name)}))}return U(e.value)}return e instanceof HTMLSelectElement?e.multiple?I(e.selectedOptions,(function(e){return U(e.value)})):U(e.value):e instanceof HTMLTextAreaElement?U(e.value):e instanceof HTMLElement?U(e.innerText):e instanceof Node?F(e.textContent):U(e.toString())}function H(e){if(e instanceof HTMLFormElement)return H(new FormData(e));if(e instanceof FormData){var t={};return e.forEach((function(e,n){var i;if(i=e instanceof File?e.name:e,Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];Array.isArray(o)?o.push(i):t[n]=[o,i]}else t[n]=i})),H(t)}for(var n={},i=Object.keys(e),o=0;o<i.length;o++){var r=i[o];n[r]=F(e[r])}return void 0===n.to&&(n.to=""),void 0===n.cc&&(n.cc=""),void 0===n.bcc&&(n.bcc=""),void 0===n.subject&&(n.subject=""),void 0===n.body&&(n.body=""),n}function j(e,t){return M(t+":"+(e=H(e)).to+"?cc="+e.cc+"&bcc="+e.bcc+"&subject="+e.subject+"&body="+e.body,0,P(s))}var C={installed:!1,name:"App",module:A,Constants:{AppOpenState:e,Messengers:t},Errors:{URLOpenError:L}};export{C as default};
@@ -1007,17 +1007,17 @@ function openMessengerMail(options) {
1007
1007
  return openMessenger(options, 'mailto');
1008
1008
  }
1009
1009
 
1010
- var AppPlugin = {
1010
+ var NativeAppPlugin = {
1011
1011
  installed: false,
1012
1012
  name: 'App',
1013
1013
  module: App,
1014
- constants: {
1014
+ Constants: {
1015
1015
  AppOpenState: AppOpenState,
1016
1016
  Messengers: Messengers
1017
1017
  },
1018
- errors: {
1018
+ Errors: {
1019
1019
  URLOpenError: URLOpenError
1020
1020
  }
1021
1021
  };
1022
1022
 
1023
- export { AppPlugin as default };
1023
+ export { NativeAppPlugin as default };
@@ -1013,19 +1013,19 @@
1013
1013
  return openMessenger(options, 'mailto');
1014
1014
  }
1015
1015
 
1016
- var AppPlugin = {
1016
+ var NativeAppPlugin = {
1017
1017
  installed: false,
1018
1018
  name: 'App',
1019
1019
  module: App,
1020
- constants: {
1020
+ Constants: {
1021
1021
  AppOpenState: AppOpenState,
1022
1022
  Messengers: Messengers
1023
1023
  },
1024
- errors: {
1024
+ Errors: {
1025
1025
  URLOpenError: URLOpenError
1026
1026
  }
1027
1027
  };
1028
1028
 
1029
- return AppPlugin;
1029
+ return NativeAppPlugin;
1030
1030
 
1031
1031
  }));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).App=t()}(this,(function(){"use strict";var e,t,n=navigator.userAgent;!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(e||(e={})),function(e){e.Telephone="telephone",e.Message="message",e.Mail="mail"}(t||(t={}));var i,o,r,a=!/firefox|opr/i.test(n);!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(i||(i={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(o||(o={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(r||(r={}));var c=function(){function e(e){return void 0===e?"":e.replace(/_/g,".")}function t(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function n(e){return void 0===e?"":e}return[[/android\w*[-\/.; ]?([\d.]*)/i,i.Android,o.Mobile,n],[/microsoft windows (vista|xp)/i,i.Windows,o.Desktop,n],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,i.Windows,o.Desktop,t],[/windows nt 6\.2; (arm)/i,i.Windows,o.Desktop,t],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,i.Windows,o.Desktop,t],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,i.Windows,o.Desktop,t],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,i.iOS,o.Mobile,e],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,i.iOS,o.Mobile,e],[/cfnetwork\/.+darwin/i,i.iOS,o.Mobile,n],[/mac os x ?([\w. ]*)/i,i.MacOS,o.Desktop,e],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,i.MacOS,o.Desktop,e]]}(),u=[[/windows.+ edge\/([\w.]+)/i,r.EdgeHTML],[/arkweb\/([\w.]+)/i,r.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,r.Blink],[/presto\/([\w.]+)/i,r.Presto],[/webkit\/([\w.]+)/i,r.WebKit],[/trident\/([\w.]+)/i,r.Trident],[/netfront\/([\w.]+)/i,r.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,r.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,r.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,r.Gecko]],s=i.Unknown,d="";o.Unknown;r.Unknown;for(var l=0;l<c.length;l++){var f=(b=c[l])[0],p=b[1],v=b[2],h=b[3];if(null!==(m=n.match(f))){s=p,d=h(m[1]);break}}for(l=0;l<u.length;l++){var b,m;f=(b=u[l])[0];if(b[1],null!==(m=n.match(f))){m[1];break}}function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",o=0;o<t.length-2;o++){var r=t[o];void 0!==r&&(i=i+r.charAt(0).toUpperCase()+r.slice(1))}return i}function w(){this.returnValue=!1}function g(){this.cancelBubble=!0}!function(){var e=document.createElement("canvas");if("function"!=typeof e.getContext)return"";var t=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===t)return"";if(t instanceof WebGLRenderingContext||"getParameter"in t&&"function"==typeof t.getParameter){var n=t.getExtension("WEBGL_debug_renderer_info");return null===n?t.getParameter(t.RENDERER):t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}(),o.Mobile,o.Desktop,s===i.iOS?"standalone"in navigator&&navigator.standalone:window.matchMedia("(display-mode: standalone)").matches;var k={useStd:"undefined"!=typeof document&&"function"==typeof document.addEventListener,add:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,n,o)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(n)}catch(e){}else try{return e.addListener(i,n)}catch(e){}return"function"==typeof e.attachEvent?n.__ieWrapper?e.attachEvent("on"+i,n.__ieWrapper):e.attachEvent("on"+i,n.__ieWrapper=function(t){void 0===t&&(t=window.event),void 0!==t&&(t.currentTarget=e,"function"!=typeof t.preventDefault&&(t.preventDefault=w),"function"!=typeof t.stopPropagation&&(t.stopPropagation=g),"function"==typeof n?n.call(e,t):n&&"function"==typeof n.handleEvent&&n.handleEvent.call(e,t))}):void 0}},remove:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(i,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(i,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var r=n.__ieWrapper;void 0!==r&&(e.detachEvent("on"+i,r),delete n.__ieWrapper)}}},withVender:function(e,t){if(void 0===t)return"";var n,i=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,o=["","webkit","moz","ms","MS","o","O"];n="wheel"===t?["wheel","mousewheel","DOMMouseScroll"]:"focus"===t?["focus","focusin"]:"blur"===t?["blur","focusout"]:i.test(t)?[t,t.replace(i,y)]:[t];for(var r=0;r<o.length;r++)for(var a=0;a<n.length;a++){var c=o[r]+n[a];if(void 0!==e["on"+c])return c}return""}};function S(){try{if(window.top&&window.top!==window)return window.top.location.href,window.top}catch(e){}return window}function T(e){var t=S(),n=void 0;try{(n=document.createElement("iframe")).src=e,n.width=n.height=n.frameBorder="0",n.setAttribute("aria-hidden","true"),n.style.display="none",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",t.document.body.appendChild(n),window.setTimeout((function(){if(void 0!==n)try{t.document.body.removeChild(n)}catch(e){}}),500)}catch(e){}}function E(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function O(e){try{e.focus({preventScroll:!0})}catch(t){try{e.focus()}catch(e){}}}function M(e,t,n){var o=S(),r=o.document,a={focus:void 0,blur:void 0,visibilitychange:void 0},c={focus:void 0,blur:void 0,visibilitychange:void 0};return s===i.iOS?parseInt(d)>=8?(c={visibilitychange:r},a={visibilitychange:"visibilitychange"}):(c={focus:o,blur:o},a={focus:"pageshow",blur:"pagehide"}):k.useStd?(c={focus:o,blur:o,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}):(c={focus:r,blur:r,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}),new Promise((function(i,o){var u,s=!1;function d(e){if(!s){s=!0;try{!function(){void 0!==u&&(clearTimeout(u),u=void 0);try{k.remove(c.blur,{type:a.blur,callback:l}),k.remove(c.focus,{type:a.focus,callback:f}),k.remove(c.visibilitychange,{type:a.visibilitychange,callback:p})}catch(e){}}(),e?i():o()}catch(e){i()}}}function l(){void 0!==u&&(clearTimeout(u),u=void 0),k.remove(c.blur,{type:a.blur,callback:l}),k.add(c.focus,{type:a.focus,callback:f})}function f(){d(!0)}function p(){(function(){var e=S().document;return"hidden"===e.visibilityState||"hidden"===e.webkitVisibilityState||"hidden"===e.mozVisibilityState||"hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus())})()&&d(!0)}u=window.setTimeout((function(){d(!1)}),n),k.add(c.blur,{type:a.blur,callback:l}),k.add(c.visibilitychange,{type:a.visibilitychange,callback:p}),E(r)||function(){var e=S(),t=e.document;if(O(e),E(t))return!0;if(t.body.tabIndex<0&&(t.body.tabIndex=-1),O(t.body),E(t))return!0;var n=void 0;try{(n=t.createElement("input")).type="text",n.readOnly=!0,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),n.style.position="fixed",n.style.width=n.style.height="1px",n.style.top=n.style.left="0",n.style.opacity="0",n.style.zIndex="-1",t.body.appendChild(n),O(n);try{n.select()}catch(e){}if(E(t))return!0}catch(e){}finally{if(void 0!==n){try{n.blur()}catch(e){}try{t.body.removeChild(n)}catch(e){}}}E(t)}();try{!function(e,t){var n=S(),i=void 0;try{if(0===t)return void(n.location.href=e);(i=n.document.createElement("a")).href=e,i.setAttribute("aria-hidden","true"),i.style.display="none",n.document.body.appendChild(i);var o=void 0;try{o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:n})}catch(e){(o=n.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,null)}i.dispatchEvent(o)}catch(e){}finally{if(void 0!==i)try{n.document.body.removeChild(i)}catch(e){}}}(e,t),T(e)}catch(e){d(!1)}}))}var W,A=function(e,t){function n(i){if(!(this instanceof n))return new n(i);var o=new t(i||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(o,n.prototype):o.__proto__=n.prototype,o.name=e,void 0!==i&&(o.message=i),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(o,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(o,n);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(o,n);else try{var r=new t;r.stack&&(o.stack=r.stack)}catch(e){}return o}void 0===t&&(t=Error),n.prototype=Object.create(t.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(n.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{n.prototype.name=e}catch(e){}}try{Object.defineProperty(n,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return n}("URLOpenError"),L={open:function(t){var n,o=s,r=[],c=[];function u(){for(var e="",t=0;t<r.length;t++)e+="\n"+(t+1)+": "+c[t];return e.length>0&&(e="\n"+e+"\n"),new A("Failed to open any of the provided URLs: "+e)}if(o===i.Android){if(void 0===(g=t[i.Android]))return Promise.reject(u());n=g.timeout;var l=D(g.scheme),f=D(g.intent),p=g.packageName,v=D(g.fallback),h=g.allowWebStore;if(void 0!==f&&(void 0===l||void 0===p||void 0===v)){var b=function(e){for(var t={},n=e.split("#Intent;"),i=n[0].substring(9),o=n[1],r=o.substring(0,o.length-4).split(";"),a={},c=0;c<r.length;c++){var u=r[c],s=u.indexOf("=");-1!==s&&(a[u.substring(0,s)]=u.substring(s+1))}void 0!==a.scheme&&(t.scheme=a.scheme+"://"+i);void 0!==a.package&&(t.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(t.fallback=a["S.browser_fallback_url"]);return t}(f);void 0!==b.scheme&&void 0===l&&(l=b.scheme),void 0!==b.packageName&&void 0===p&&(p=b.packageName),void 0!==b.fallback&&void 0===v&&(v=b.fallback)}void 0!==l&&void 0===f&&(f=function(e,t,n){var o=e.split("://"),r=o[0],a=o[1],c="intent://";void 0!==a&&(c+=a);c=c+"#Intent;scheme="+r+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==t&&(c=c+"package="+t+";");void 0!==n&&"string"==typeof n?c=c+"S.browser_fallback_url="+n+";":void 0!==t&&(c=c+"S.browser_fallback_url="+_(t,i.Android)+";");return c+"end"}(l,p,v)),void 0!==f&&a&&r.push([f,e.Intent]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==p&&r.push([_(p,i.Android),e.Store]),void 0!==p&&!0===h&&r.push([N(p,i.Android),e.Store])}else if(o===i.iOS){if(void 0===(g=t[i.iOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId;var m=g.trackId,y=D(g.universal);v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=x(p)),void 0!==y&&parseInt(d)>=9&&r.push([y,e.Universal]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([_(m,i.iOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.iOS),e.Store])}else if(o===i.Windows){if(void 0===(g=t[i.Windows]))return Promise.reject(u());n=g.timeout;l=D(g.scheme);var w=g.productId;v=D(g.fallback),h=g.allowWebStore;void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==w&&r.push([_(w,i.Windows),e.Store]),void 0!==w&&!0===h&&r.push([N(w,i.Windows),e.Store])}else if(o===i.MacOS){var g;if(void 0===(g=t[i.MacOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId,m=g.trackId,v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=x(p)),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([_(m,i.MacOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.MacOS),e.Store])}void 0===n&&(n=P(o));return new Promise((function(e,t){return function i(o){if(void 0===o&&(o=0),o>=r.length)return t(u());var a=r[o],s=a[0];if("string"==typeof s)return c[o]=s,M(s,o,n).then((function(){e(a[1])})).catch((function(){i(o+1)}));c[o]="[function fallback]",s(),e(a[1])}()}))},messenger:(W={},W[t.Telephone]=function(e){return j(e,"tel")},W[t.Message]=function(e){return j(e,"sms")},W[t.Mail]=function(e){return j(e,"mailto")},W)};function x(e){try{var t=new XMLHttpRequest;if(t.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),200===t.status)try{var n=JSON.parse(t.response);if(void 0===n.results)return;var i=n.results;if(!Array.isArray(i)||0===i.length)return;var o=i[0];if(void 0===o)return;return o.trackId}catch(e){return}return}catch(e){return}}function _(e,t){switch(t){case i.Android:return"market://details?id="+e;case i.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"ms-windows-store://pdp/?ProductId="+e;case i.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new A('Unsupported OS: "'+n+'"')}}function N(e,t){switch(t){case i.Android:return"https://play.google.com/store/apps/details?id="+e;case i.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"https://apps.microsoft.com/detail/"+e;case i.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new A('Unsupported OS: "'+n+'"')}}function P(e){switch(e){case i.iOS:return 2e3;case i.Android:return 1e3;default:return 750}}function I(e,t,n){void 0===n&&(n=",");for(var i=e.length,o="",r=0;r<i;r++)o+=t(e[r]),r!==i-1&&(o+=n);return o}function U(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function D(e){return e instanceof URL?e.toString():e}function F(e){if("string"==typeof e)return U(e);if("number"==typeof e||"boolean"==typeof e)return U(String(e));if(null==e)return"";if(function(e){if(null==e||"string"==typeof e)return!1;var t=e.length;return"number"==typeof t&&t>=0&&!(t%1)}(e))return I(e,(function(e){return F(e)}));if(e instanceof HTMLInputElement){var t=e.type;if("checkbox"===t)return U(e.checked.toString());if("radio"===t)return e.checked?U(e.value):"";if("file"===t){var n=e.files;return null===n?"":I(n,(function(e){return U(e.name)}))}return U(e.value)}return e instanceof HTMLSelectElement?e.multiple?I(e.selectedOptions,(function(e){return U(e.value)})):U(e.value):e instanceof HTMLTextAreaElement?U(e.value):e instanceof HTMLElement?U(e.innerText):e instanceof Node?F(e.textContent):U(e.toString())}function H(e){if(e instanceof HTMLFormElement)return H(new FormData(e));if(e instanceof FormData){var t={};return e.forEach((function(e,n){var i;if(i=e instanceof File?e.name:e,Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];Array.isArray(o)?o.push(i):t[n]=[o,i]}else t[n]=i})),H(t)}for(var n={},i=Object.keys(e),o=0;o<i.length;o++){var r=i[o];n[r]=F(e[r])}return void 0===n.to&&(n.to=""),void 0===n.cc&&(n.cc=""),void 0===n.bcc&&(n.bcc=""),void 0===n.subject&&(n.subject=""),void 0===n.body&&(n.body=""),n}function j(e,t){return M(t+":"+(e=H(e)).to+"?cc="+e.cc+"&bcc="+e.bcc+"&subject="+e.subject+"&body="+e.body,0,P(s))}return{installed:!1,name:"App",module:L,constants:{AppOpenState:e,Messengers:t},errors:{URLOpenError:A}}}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).App=t()}(this,(function(){"use strict";var e,t,n=navigator.userAgent;!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(e||(e={})),function(e){e.Telephone="telephone",e.Message="message",e.Mail="mail"}(t||(t={}));var i,o,r,a=!/firefox|opr/i.test(n);!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(i||(i={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(o||(o={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(r||(r={}));var c=function(){function e(e){return void 0===e?"":e.replace(/_/g,".")}function t(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function n(e){return void 0===e?"":e}return[[/android\w*[-\/.; ]?([\d.]*)/i,i.Android,o.Mobile,n],[/microsoft windows (vista|xp)/i,i.Windows,o.Desktop,n],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,i.Windows,o.Desktop,t],[/windows nt 6\.2; (arm)/i,i.Windows,o.Desktop,t],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,i.Windows,o.Desktop,t],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,i.Windows,o.Desktop,t],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,i.iOS,o.Mobile,e],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,i.iOS,o.Mobile,e],[/cfnetwork\/.+darwin/i,i.iOS,o.Mobile,n],[/mac os x ?([\w. ]*)/i,i.MacOS,o.Desktop,e],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,i.MacOS,o.Desktop,e]]}(),u=[[/windows.+ edge\/([\w.]+)/i,r.EdgeHTML],[/arkweb\/([\w.]+)/i,r.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,r.Blink],[/presto\/([\w.]+)/i,r.Presto],[/webkit\/([\w.]+)/i,r.WebKit],[/trident\/([\w.]+)/i,r.Trident],[/netfront\/([\w.]+)/i,r.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,r.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,r.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,r.Gecko]],s=i.Unknown,d="";o.Unknown;r.Unknown;for(var l=0;l<c.length;l++){var f=(b=c[l])[0],p=b[1],v=b[2],h=b[3];if(null!==(m=n.match(f))){s=p,d=h(m[1]);break}}for(l=0;l<u.length;l++){var b,m;f=(b=u[l])[0];if(b[1],null!==(m=n.match(f))){m[1];break}}function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",o=0;o<t.length-2;o++){var r=t[o];void 0!==r&&(i=i+r.charAt(0).toUpperCase()+r.slice(1))}return i}function w(){this.returnValue=!1}function g(){this.cancelBubble=!0}!function(){var e=document.createElement("canvas");if("function"!=typeof e.getContext)return"";var t=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===t)return"";if(t instanceof WebGLRenderingContext||"getParameter"in t&&"function"==typeof t.getParameter){var n=t.getExtension("WEBGL_debug_renderer_info");return null===n?t.getParameter(t.RENDERER):t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}(),o.Mobile,o.Desktop,s===i.iOS?"standalone"in navigator&&navigator.standalone:window.matchMedia("(display-mode: standalone)").matches;var k={useStd:"undefined"!=typeof document&&"function"==typeof document.addEventListener,add:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,n,o)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(n)}catch(e){}else try{return e.addListener(i,n)}catch(e){}return"function"==typeof e.attachEvent?n.__ieWrapper?e.attachEvent("on"+i,n.__ieWrapper):e.attachEvent("on"+i,n.__ieWrapper=function(t){void 0===t&&(t=window.event),void 0!==t&&(t.currentTarget=e,"function"!=typeof t.preventDefault&&(t.preventDefault=w),"function"!=typeof t.stopPropagation&&(t.stopPropagation=g),"function"==typeof n?n.call(e,t):n&&"function"==typeof n.handleEvent&&n.handleEvent.call(e,t))}):void 0}},remove:function(e,t){void 0===t&&(t={callback:null,options:!1});var n=t.callback;if(void 0!==e&&null!==n){var i=this.withVender(e,t.type),o=t.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(i,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(i,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var r=n.__ieWrapper;void 0!==r&&(e.detachEvent("on"+i,r),delete n.__ieWrapper)}}},withVender:function(e,t){if(void 0===t)return"";var n,i=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,o=["","webkit","moz","ms","MS","o","O"];n="wheel"===t?["wheel","mousewheel","DOMMouseScroll"]:"focus"===t?["focus","focusin"]:"blur"===t?["blur","focusout"]:i.test(t)?[t,t.replace(i,y)]:[t];for(var r=0;r<o.length;r++)for(var a=0;a<n.length;a++){var c=o[r]+n[a];if(void 0!==e["on"+c])return c}return""}};function S(){try{if(window.top&&window.top!==window)return window.top.location.href,window.top}catch(e){}return window}function E(e){var t=S(),n=void 0;try{(n=document.createElement("iframe")).src=e,n.width=n.height=n.frameBorder="0",n.setAttribute("aria-hidden","true"),n.style.display="none",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",t.document.body.appendChild(n),window.setTimeout((function(){if(void 0!==n)try{t.document.body.removeChild(n)}catch(e){}}),500)}catch(e){}}function T(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function O(e){try{e.focus({preventScroll:!0})}catch(t){try{e.focus()}catch(e){}}}function M(e,t,n){var o=S(),r=o.document,a={focus:void 0,blur:void 0,visibilitychange:void 0},c={focus:void 0,blur:void 0,visibilitychange:void 0};return s===i.iOS?parseInt(d)>=8?(c={visibilitychange:r},a={visibilitychange:"visibilitychange"}):(c={focus:o,blur:o},a={focus:"pageshow",blur:"pagehide"}):k.useStd?(c={focus:o,blur:o,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}):(c={focus:r,blur:r,visibilitychange:r},a={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}),new Promise((function(i,o){var u,s=!1;function d(e){if(!s){s=!0;try{!function(){void 0!==u&&(clearTimeout(u),u=void 0);try{k.remove(c.blur,{type:a.blur,callback:l}),k.remove(c.focus,{type:a.focus,callback:f}),k.remove(c.visibilitychange,{type:a.visibilitychange,callback:p})}catch(e){}}(),e?i():o()}catch(e){i()}}}function l(){void 0!==u&&(clearTimeout(u),u=void 0),k.remove(c.blur,{type:a.blur,callback:l}),k.add(c.focus,{type:a.focus,callback:f})}function f(){d(!0)}function p(){(function(){var e=S().document;return"hidden"===e.visibilityState||"hidden"===e.webkitVisibilityState||"hidden"===e.mozVisibilityState||"hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus())})()&&d(!0)}u=window.setTimeout((function(){d(!1)}),n),k.add(c.blur,{type:a.blur,callback:l}),k.add(c.visibilitychange,{type:a.visibilitychange,callback:p}),T(r)||function(){var e=S(),t=e.document;if(O(e),T(t))return!0;if(t.body.tabIndex<0&&(t.body.tabIndex=-1),O(t.body),T(t))return!0;var n=void 0;try{(n=t.createElement("input")).type="text",n.readOnly=!0,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),n.style.position="fixed",n.style.width=n.style.height="1px",n.style.top=n.style.left="0",n.style.opacity="0",n.style.zIndex="-1",t.body.appendChild(n),O(n);try{n.select()}catch(e){}if(T(t))return!0}catch(e){}finally{if(void 0!==n){try{n.blur()}catch(e){}try{t.body.removeChild(n)}catch(e){}}}T(t)}();try{!function(e,t){var n=S(),i=void 0;try{if(0===t)return void(n.location.href=e);(i=n.document.createElement("a")).href=e,i.setAttribute("aria-hidden","true"),i.style.display="none",n.document.body.appendChild(i);var o=void 0;try{o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:n})}catch(e){(o=n.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,null)}i.dispatchEvent(o)}catch(e){}finally{if(void 0!==i)try{n.document.body.removeChild(i)}catch(e){}}}(e,t),E(e)}catch(e){d(!1)}}))}var W,A=function(e,t){function n(i){if(!(this instanceof n))return new n(i);var o=new t(i||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(o,n.prototype):o.__proto__=n.prototype,o.name=e,void 0!==i&&(o.message=i),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(o,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(o,n);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(o,n);else try{var r=new t;r.stack&&(o.stack=r.stack)}catch(e){}return o}void 0===t&&(t=Error),n.prototype=Object.create(t.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(n.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{n.prototype.name=e}catch(e){}}try{Object.defineProperty(n,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return n}("URLOpenError"),L={open:function(t){var n,o=s,r=[],c=[];function u(){for(var e="",t=0;t<r.length;t++)e+="\n"+(t+1)+": "+c[t];return e.length>0&&(e="\n"+e+"\n"),new A("Failed to open any of the provided URLs: "+e)}if(o===i.Android){if(void 0===(g=t[i.Android]))return Promise.reject(u());n=g.timeout;var l=D(g.scheme),f=D(g.intent),p=g.packageName,v=D(g.fallback),h=g.allowWebStore;if(void 0!==f&&(void 0===l||void 0===p||void 0===v)){var b=function(e){for(var t={},n=e.split("#Intent;"),i=n[0].substring(9),o=n[1],r=o.substring(0,o.length-4).split(";"),a={},c=0;c<r.length;c++){var u=r[c],s=u.indexOf("=");-1!==s&&(a[u.substring(0,s)]=u.substring(s+1))}void 0!==a.scheme&&(t.scheme=a.scheme+"://"+i);void 0!==a.package&&(t.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(t.fallback=a["S.browser_fallback_url"]);return t}(f);void 0!==b.scheme&&void 0===l&&(l=b.scheme),void 0!==b.packageName&&void 0===p&&(p=b.packageName),void 0!==b.fallback&&void 0===v&&(v=b.fallback)}void 0!==l&&void 0===f&&(f=function(e,t,n){var o=e.split("://"),r=o[0],a=o[1],c="intent://";void 0!==a&&(c+=a);c=c+"#Intent;scheme="+r+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==t&&(c=c+"package="+t+";");void 0!==n&&"string"==typeof n?c=c+"S.browser_fallback_url="+n+";":void 0!==t&&(c=c+"S.browser_fallback_url="+_(t,i.Android)+";");return c+"end"}(l,p,v)),void 0!==f&&a&&r.push([f,e.Intent]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==p&&r.push([_(p,i.Android),e.Store]),void 0!==p&&!0===h&&r.push([N(p,i.Android),e.Store])}else if(o===i.iOS){if(void 0===(g=t[i.iOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId;var m=g.trackId,y=D(g.universal);v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=x(p)),void 0!==y&&parseInt(d)>=9&&r.push([y,e.Universal]),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([_(m,i.iOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.iOS),e.Store])}else if(o===i.Windows){if(void 0===(g=t[i.Windows]))return Promise.reject(u());n=g.timeout;l=D(g.scheme);var w=g.productId;v=D(g.fallback),h=g.allowWebStore;void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==w&&r.push([_(w,i.Windows),e.Store]),void 0!==w&&!0===h&&r.push([N(w,i.Windows),e.Store])}else if(o===i.MacOS){var g;if(void 0===(g=t[i.MacOS]))return Promise.reject(u());n=g.timeout;l=D(g.scheme),p=g.bundleId,m=g.trackId,v=D(g.fallback),h=g.allowWebStore;void 0!==p&&void 0===m&&(m=x(p)),void 0!==l&&r.push([l,e.Scheme]),void 0!==v&&r.push([v,e.Fallback]),void 0!==m&&r.push([_(m,i.MacOS),e.Store]),void 0!==m&&!0===h&&r.push([N(m,i.MacOS),e.Store])}void 0===n&&(n=P(o));return new Promise((function(e,t){return function i(o){if(void 0===o&&(o=0),o>=r.length)return t(u());var a=r[o],s=a[0];if("string"==typeof s)return c[o]=s,M(s,o,n).then((function(){e(a[1])})).catch((function(){i(o+1)}));c[o]="[function fallback]",s(),e(a[1])}()}))},messenger:(W={},W[t.Telephone]=function(e){return j(e,"tel")},W[t.Message]=function(e){return j(e,"sms")},W[t.Mail]=function(e){return j(e,"mailto")},W)};function x(e){try{var t=new XMLHttpRequest;if(t.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),200===t.status)try{var n=JSON.parse(t.response);if(void 0===n.results)return;var i=n.results;if(!Array.isArray(i)||0===i.length)return;var o=i[0];if(void 0===o)return;return o.trackId}catch(e){return}return}catch(e){return}}function _(e,t){switch(t){case i.Android:return"market://details?id="+e;case i.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"ms-windows-store://pdp/?ProductId="+e;case i.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new A('Unsupported OS: "'+n+'"')}}function N(e,t){switch(t){case i.Android:return"https://play.google.com/store/apps/details?id="+e;case i.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case i.Windows:return"https://apps.microsoft.com/detail/"+e;case i.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new A('Unsupported OS: "'+n+'"')}}function P(e){switch(e){case i.iOS:return 2e3;case i.Android:return 1e3;default:return 750}}function I(e,t,n){void 0===n&&(n=",");for(var i=e.length,o="",r=0;r<i;r++)o+=t(e[r]),r!==i-1&&(o+=n);return o}function U(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function D(e){return e instanceof URL?e.toString():e}function F(e){if("string"==typeof e)return U(e);if("number"==typeof e||"boolean"==typeof e)return U(String(e));if(null==e)return"";if(function(e){if(null==e||"string"==typeof e)return!1;var t=e.length;return"number"==typeof t&&t>=0&&!(t%1)}(e))return I(e,(function(e){return F(e)}));if(e instanceof HTMLInputElement){var t=e.type;if("checkbox"===t)return U(e.checked.toString());if("radio"===t)return e.checked?U(e.value):"";if("file"===t){var n=e.files;return null===n?"":I(n,(function(e){return U(e.name)}))}return U(e.value)}return e instanceof HTMLSelectElement?e.multiple?I(e.selectedOptions,(function(e){return U(e.value)})):U(e.value):e instanceof HTMLTextAreaElement?U(e.value):e instanceof HTMLElement?U(e.innerText):e instanceof Node?F(e.textContent):U(e.toString())}function H(e){if(e instanceof HTMLFormElement)return H(new FormData(e));if(e instanceof FormData){var t={};return e.forEach((function(e,n){var i;if(i=e instanceof File?e.name:e,Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];Array.isArray(o)?o.push(i):t[n]=[o,i]}else t[n]=i})),H(t)}for(var n={},i=Object.keys(e),o=0;o<i.length;o++){var r=i[o];n[r]=F(e[r])}return void 0===n.to&&(n.to=""),void 0===n.cc&&(n.cc=""),void 0===n.bcc&&(n.bcc=""),void 0===n.subject&&(n.subject=""),void 0===n.body&&(n.body=""),n}function j(e,t){return M(t+":"+(e=H(e)).to+"?cc="+e.cc+"&bcc="+e.bcc+"&subject="+e.subject+"&body="+e.body,0,P(s))}return{installed:!1,name:"App",module:L,Constants:{AppOpenState:e,Messengers:t},Errors:{URLOpenError:A}}}));
@@ -1,3 +1,3 @@
1
- import type { AppModule } from '../types/appModule';
2
- declare const App: AppModule;
1
+ import type { AppInstance } from '../types';
2
+ declare const App: AppInstance;
3
3
  export default App;
@@ -1,5 +1,5 @@
1
1
  import type { NativePlugin } from '../../types';
2
- import type { AppModule } from "./types";
2
+ import type { AppInstance } from "./types";
3
3
  export * from './types';
4
- declare const AppPlugin: NativePlugin<AppModule>;
5
- export default AppPlugin;
4
+ declare const NativeAppPlugin: NativePlugin<AppInstance>;
5
+ export default NativeAppPlugin;
@@ -48,7 +48,7 @@ export declare type MessengerOpenOptions = {
48
48
  body?: Stringifiable;
49
49
  } | HTMLFormElement | FormData;
50
50
  export declare type Messenger = Record<Messengers, (options: MessengerOpenOptions, self?: WindowProxy) => Promise<void>>;
51
- export declare interface App {
51
+ export declare interface AppInstance {
52
52
  open: (options: AppOpenOptions, target?: WindowProxy) => Promise<AppOpenState>;
53
53
  messenger: Messenger;
54
54
  }
@@ -48,7 +48,7 @@ export declare type MessengerOpenOptions = {
48
48
  body?: Stringifiable;
49
49
  } | HTMLFormElement | FormData;
50
50
  export declare type Messenger = Record<Messengers, (options: MessengerOpenOptions, self?: WindowProxy) => Promise<void>>;
51
- export declare interface AppModule {
51
+ export declare interface AppInstance {
52
52
  open: (options: AppOpenOptions, target?: WindowProxy) => Promise<AppOpenState>;
53
53
  messenger: Messenger;
54
54
  }
@@ -1 +1 @@
1
- export * from './appModule';
1
+ export * from './app';
@@ -1,3 +1,3 @@
1
- import type { EventListenerUtil } from '../types/appModule';
1
+ import type { EventListenerUtil } from '../types';
2
2
  declare const EventListenerUtils: EventListenerUtil;
3
3
  export default EventListenerUtils;
@@ -1,3 +1,3 @@
1
- import type { PlatformModule } from '../types/platformModule';
2
- declare const Platform: PlatformModule;
1
+ import type { PlatformInstance } from '../types';
2
+ declare const Platform: PlatformInstance;
3
3
  export default Platform;
@@ -1,5 +1,5 @@
1
1
  import type { NativePlugin } from '../../types';
2
- import type { PlatformModule } from "./types";
2
+ import type { PlatformInstance } from "./types";
3
3
  export * from './types';
4
- declare const PlatformPlugin: NativePlugin<PlatformModule>;
5
- export default PlatformPlugin;
4
+ declare const NativePlatformPlugin: NativePlugin<PlatformInstance>;
5
+ export default NativePlatformPlugin;
@@ -1 +1 @@
1
- export * from './platformModule';
1
+ export * from './platform';
@@ -1,5 +1,5 @@
1
1
  import { Devices, Engines, OS } from '../../../constants/platform';
2
- export declare interface Platform {
2
+ export declare interface PlatformInstance {
3
3
  os: OS;
4
4
  device: Devices;
5
5
  engine: Engines;
@@ -1,5 +1,5 @@
1
1
  import { Devices, Engines, OS } from '../../../constants/platform';
2
- export declare interface PlatformModule {
2
+ export declare interface PlatformInstance {
3
3
  os: OS;
4
4
  device: Devices;
5
5
  engine: Engines;
@@ -1,4 +1,4 @@
1
- import type { ListenerEntry } from '../types/themeModule';
1
+ import type { ListenerEntry } from '../types';
2
2
  export declare enum Appearances {
3
3
  Unknown = "unknown",
4
4
  Light = "light",