Toolset Types – Custom Post Types, Custom Fields and Taxonomies - Version 2.3.3

Version Description

  • Fixed an issue when saving checkboxes while relationship posts also contains checkboxes.
Download this release

Release Info

Developer christianglingener
Plugin Icon 128x128 Toolset Types – Custom Post Types, Custom Fields and Taxonomies
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

readme.txt CHANGED
@@ -171,6 +171,9 @@ Additionally, Types is the only plugin that lets you define parent/child relatio
171
 
172
  == Changelog ==
173
 
 
 
 
174
  = 2.3.2 =
175
  * An upgrade to the Installer component to prevent the notification about a possible upgrade to Types 3.0 for non-subscription users.
176
 
171
 
172
  == Changelog ==
173
 
174
+ = 2.3.3 =
175
+ * Fixed an issue when saving checkboxes while relationship posts also contains checkboxes.
176
+
177
  = 2.3.2 =
178
  * An upgrade to the Installer component to prevent the notification about a possible upgrade to Types 3.0 for non-subscription users.
179
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit39d4b17bdb5377514bee52a66c64b5fc::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit3ef203360daf9a3f27f03c8cdcceee49::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit39d4b17bdb5377514bee52a66c64b5fc
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit39d4b17bdb5377514bee52a66c64b5fc
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit39d4b17bdb5377514bee52a66c64b5fc', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit39d4b17bdb5377514bee52a66c64b5fc', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit39d4b17bdb5377514bee52a66c64b5fc::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit39d4b17bdb5377514bee52a66c64b5fc
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit39d4b17bdb5377514bee52a66c64b5fc::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire39d4b17bdb5377514bee52a66c64b5fc($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire39d4b17bdb5377514bee52a66c64b5fc($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit3ef203360daf9a3f27f03c8cdcceee49
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit3ef203360daf9a3f27f03c8cdcceee49', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit3ef203360daf9a3f27f03c8cdcceee49', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit3ef203360daf9a3f27f03c8cdcceee49::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInit3ef203360daf9a3f27f03c8cdcceee49::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire3ef203360daf9a3f27f03c8cdcceee49($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire3ef203360daf9a3f27f03c8cdcceee49($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit39d4b17bdb5377514bee52a66c64b5fc
8
  {
9
  public static $files = array (
10
  'a52c1eba913b4ecdd3571194b37baea9' => __DIR__ . '/../..' . '/application/functions.php',
@@ -919,10 +919,10 @@ class ComposerStaticInit39d4b17bdb5377514bee52a66c64b5fc
919
  public static function getInitializer(ClassLoader $loader)
920
  {
921
  return \Closure::bind(function () use ($loader) {
922
- $loader->prefixLengthsPsr4 = ComposerStaticInit39d4b17bdb5377514bee52a66c64b5fc::$prefixLengthsPsr4;
923
- $loader->prefixDirsPsr4 = ComposerStaticInit39d4b17bdb5377514bee52a66c64b5fc::$prefixDirsPsr4;
924
- $loader->prefixesPsr0 = ComposerStaticInit39d4b17bdb5377514bee52a66c64b5fc::$prefixesPsr0;
925
- $loader->classMap = ComposerStaticInit39d4b17bdb5377514bee52a66c64b5fc::$classMap;
926
 
927
  }, null, ClassLoader::class);
928
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit3ef203360daf9a3f27f03c8cdcceee49
8
  {
9
  public static $files = array (
10
  'a52c1eba913b4ecdd3571194b37baea9' => __DIR__ . '/../..' . '/application/functions.php',
919
  public static function getInitializer(ClassLoader $loader)
920
  {
921
  return \Closure::bind(function () use ($loader) {
922
+ $loader->prefixLengthsPsr4 = ComposerStaticInit3ef203360daf9a3f27f03c8cdcceee49::$prefixLengthsPsr4;
923
+ $loader->prefixDirsPsr4 = ComposerStaticInit3ef203360daf9a3f27f03c8cdcceee49::$prefixDirsPsr4;
924
+ $loader->prefixesPsr0 = ComposerStaticInit3ef203360daf9a3f27f03c8cdcceee49::$prefixesPsr0;
925
+ $loader->classMap = ComposerStaticInit3ef203360daf9a3f27f03c8cdcceee49::$classMap;
926
 
927
  }, null, ClassLoader::class);
928
  }
vendor/composer/installed.json CHANGED
@@ -138,12 +138,12 @@
138
  },
139
  {
140
  "name": "otgs/installer",
141
- "version": "1.8.20",
142
- "version_normalized": "1.8.20.0",
143
  "source": {
144
  "type": "git",
145
  "url": "ssh://git@git.onthegosystems.com:10022/installer/installer.git",
146
- "reference": "b0e7b74f6f2c8436529fb84f11ca0e636d6ae4dd"
147
  },
148
  "require": {
149
  "composer/installers": "~1.0",
@@ -159,7 +159,7 @@
159
  "otgs/unit-tests-framework": "~1.2.0",
160
  "sebastian/phpcpd": "^3.0"
161
  },
162
- "time": "2018-06-13T17:26:51+00:00",
163
  "type": "library",
164
  "extra": {
165
  "branch-alias": {
138
  },
139
  {
140
  "name": "otgs/installer",
141
+ "version": "1.8.25",
142
+ "version_normalized": "1.8.25.0",
143
  "source": {
144
  "type": "git",
145
  "url": "ssh://git@git.onthegosystems.com:10022/installer/installer.git",
146
+ "reference": "612bbc5045b6cd60145fc1f3f909981fde70ec3b"
147
  },
148
  "require": {
149
  "composer/installers": "~1.0",
159
  "otgs/unit-tests-framework": "~1.2.0",
160
  "sebastian/phpcpd": "^3.0"
161
  },
162
+ "time": "2018-07-13T10:51:21+00:00",
163
  "type": "library",
164
  "extra": {
165
  "branch-alias": {
vendor/otgs/installer/changelog.txt CHANGED
@@ -1,3 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  = 1.8.20 =
2
  * Display a link for Toolset Types upgrade if there is an available paid update
3
  * Do not include the plugin in the list of updates if it is not part of the current user subscription
1
+ = 1.8.25 =
2
+ * Fix display notice for Lite products
3
+ * Fix error in plugin page
4
+
5
+ = 1.8.24 =
6
+ * Fixed wrong notice displayed for Toolset Types in plugins page
7
+ * Fixed missing Register / Registered links for some Toolset products
8
+ * Fixed wrong link in the notice of Toolset Views Lite
9
+ * Removed notice in Toolset Views Lite and Toolset Types asking to register when they registered
10
+
11
+ = 1.8.23 =
12
+ * Improved message when switching between production and beta channels
13
+ * Fixed random error thrown from Installer during plugin activation on slow connection
14
+
15
+ = 1.8.22 =
16
+ * Adjustments for distributing Views Lite and Types through the WPML repository
17
+ * Fixed JavaScript errors occurring on WPML pages in IE 11
18
+
19
+ = 1.8.21 =
20
+ * Removed source maps for transpiled JS and CSS files which were causing some false positive alerts from malware softwares
21
+
22
  = 1.8.20 =
23
  * Display a link for Toolset Types upgrade if there is an available paid update
24
  * Do not include the plugin in the list of updates if it is not part of the current user subscription
vendor/otgs/installer/dist/css/ui/styles.css CHANGED
@@ -1,104 +1 @@
1
- .otgs-installer-component-setting {
2
- margin: 1em 0; }
3
- .otgs-installer-component-setting h4 {
4
- margin: 0; }
5
- .otgs-settings-container .otgs-installer-component-setting .spinner {
6
- position: absolute;
7
- margin: 5px 0 0; }
8
-
9
- .otgs-on-off-switch + .otgs-switch__onoff,
10
- .otgs-switch__onoff + .otgs-on-off-switch {
11
- -webkit-margin-start: 7px;
12
- -moz-margin-start: 7px;
13
- margin-inline-start: 7px; }
14
-
15
- /* ON/OFF Switch */
16
- .otgs-switch__onoff {
17
- position: relative;
18
- width: 55px;
19
- display: inline-block;
20
- vertical-align: middle;
21
- -webkit-box-flex: 0;
22
- -ms-flex: 0 0 55px;
23
- flex: 0 0 55px; }
24
- .otgs-switch__onoff.otgs-pull-right {
25
- right: 0; }
26
- .otgs-switch__onoff .otgs-switch__onoff-label {
27
- display: block;
28
- overflow: hidden;
29
- cursor: pointer;
30
- border: 1px solid #e6e6e6;
31
- border-radius: 16px;
32
- margin: 0; }
33
- .otgs-switch__onoff .otgs-switch__onoff-inner {
34
- width: 200%;
35
- margin-left: -100%;
36
- -webkit-transition: margin 0.15s ease-in-out;
37
- transition: margin 0.15s ease-in-out; }
38
- .otgs-switch__onoff .otgs-switch__onoff-inner:before, .otgs-switch__onoff .otgs-switch__onoff-inner:after {
39
- float: left;
40
- width: 50%;
41
- height: 22px;
42
- padding: 0;
43
- line-height: 22px;
44
- font-size: 11px;
45
- -webkit-box-sizing: border-box;
46
- box-sizing: border-box; }
47
- .otgs-switch__onoff .otgs-switch__onoff-inner:before {
48
- content: "ON";
49
- padding-left: 10px;
50
- background-color: #21759b;
51
- color: #fff; }
52
- .otgs-switch__onoff .otgs-switch__onoff-inner:after {
53
- content: "OFF";
54
- padding-right: 8px;
55
- background-color: #fafafa;
56
- color: #3D3D3D;
57
- text-align: right; }
58
- .otgs-switch__onoff .otgs-switch__onoff-switch {
59
- width: 18px;
60
- height: 18px;
61
- margin: 0;
62
- background: #fff;
63
- -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
64
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
65
- border-radius: 50%;
66
- position: absolute;
67
- top: 3px;
68
- bottom: 0;
69
- right: 34px;
70
- -webkit-transition: right 0.15s ease-in-out;
71
- transition: right 0.15s ease-in-out; }
72
-
73
- .otgs-toggle-group {
74
- position: relative;
75
- display: -webkit-box;
76
- display: -ms-flexbox;
77
- display: flex;
78
- -webkit-box-align: center;
79
- -ms-flex-align: center;
80
- align-items: center; }
81
- .otgs-toggle-group .otgs-switch__onoff-inner {
82
- display: block; }
83
- .otgs-toggle-group input[type=checkbox] {
84
- display: none; }
85
- .otgs-toggle-group input[type=checkbox]:checked ~ .otgs-switch__onoff .otgs-switch__onoff-label .otgs-switch__onoff-inner {
86
- margin-left: 0; }
87
- .otgs-toggle-group input[type=checkbox]:checked ~ .otgs-switch__onoff .otgs-switch__onoff-label .otgs-switch__onoff-switch {
88
- right: 3px;
89
- -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
90
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); }
91
- .otgs-toggle-group input[type=checkbox]:focus ~ .otgs-switch__onoff {
92
- outline: thin dotted #333; }
93
- .otgs-toggle-group .otgs-on-off-switch {
94
- cursor: pointer;
95
- display: inline-block; }
96
-
97
- .otgs-external-link:after {
98
- font-family: dashicons !important;
99
- content: "\A0\F504";
100
- vertical-align: baseline;
101
- line-height: 1;
102
- display: inline-block; }
103
-
104
- /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zY3NzL3VpL3Njc3MvdWkvc3R5bGVzLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JBO0VBQ0MsY0FBYSxFQVViO0VBWEQ7SUFHRSxVQUFTLEVBQ1Q7RUFDRDtJQUVFLG1CQUFrQjtJQUNsQixnQkFBaUIsRUFDakI7O0FBSUg7O0VBRUMsMEJBQXlCO0VBQ3RCLHVCQUFzQjtFQUNqQix5QkFBd0IsRUFDaEM7O0FBRUQsbUJBQW1CO0FBQ25CO0VBQ0MsbUJBQXdCO0VBQ3hCLFlBM0JrQjtFQTRCbEIsc0JBQTRCO0VBQzVCLHVCQUFzQjtFQUN0QixvQkFBNkI7RUFDekIsbUJBL0JjO0VBZ0NWLGVBaENVLEVBZ0dsQjtFQXZFRDtJQVVFLFNBQVEsRUFDUjtFQVhGO0lBY0UsZUFBb0I7SUFDcEIsaUJBQXFCO0lBQ3JCLGdCQUFzQjtJQUN0QiwwQkFBNEM7SUFDNUMsb0JBQWlDO0lBQ2pDLFVBQWdCLEVBQ2hCO0VBcEJGO0lBdUJFLFlBQWlCO0lBQ2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IHtcblx0XHRcdG1hcmdpbi1sZWZ0OiAwO1xuXHRcdH1cblxuXHRcdCY6Y2hlY2tlZCB+IC5vdGdzLXN3aXRjaF9fb25vZmYgLm90Z3Mtc3dpdGNoX19vbm9mZi1sYWJlbCAub3Rncy1zd2l0Y2hfX29ub2ZmLXN3aXRjaCB7XG5cdFx0XHRyaWdodDogICAgICAzcHg7XG5cdFx0XHQtd2Via2l0LWJveC1zaGFkb3c6IDAgMCAzcHggcmdiYSgwLCAwLCAwLCAuNSk7XG5cdFx0XHQgICAgICAgIGJveC1zaGFkb3c6IDAgMCAzcHggcmdiYSgwLCAwLCAwLCAuNSk7XG5cdFx0fVxuXG5cdFx0Jjpmb2N1cyB+IC5vdGdzLXN3aXRjaF9fb25vZmYge1xuXHRcdFx0b3V0bGluZTogdGhpbiBkb3R0ZWQgIzMzMztcblx0XHR9XG5cdH1cblxuXHQub3Rncy1vbi1vZmYtc3dpdGNoIHtcblx0XHRjdXJzb3I6ICBwb2ludGVyO1xuXHRcdGRpc3BsYXk6IGlubGluZS1ibG9jaztcblx0fVxufVxuXG4ub3Rncy1leHRlcm5hbC1saW5rOmFmdGVyIHtcblx0Zm9udC1mYW1pbHk6ICAgIGRhc2hpY29ucyAhaW1wb3J0YW50O1xuXHRjb250ZW50OiAgICAgICAgXCJcXDAwYTBcXGY1MDRcIjtcblx0dmVydGljYWwtYWxpZ246IGJhc2VsaW5lO1xuXHRsaW5lLWhlaWdodDogICAgMTtcblx0ZGlzcGxheTogICAgICAgIGlubGluZS1ibG9jaztcbn0iXSwic291cmNlUm9vdCI6IiJ9*/
1
+ .otgs-installer-component-setting{margin:1em 0}.otgs-installer-component-setting h4{margin:0}.otgs-settings-container .otgs-installer-component-setting .spinner{position:absolute;margin:5px 0 0}.otgs-on-off-switch+.otgs-switch__onoff,.otgs-switch__onoff+.otgs-on-off-switch{-webkit-margin-start:7px;margin-inline-start:7px}.otgs-switch__onoff{position:relative;width:55px;display:inline-block;vertical-align:middle;-webkit-box-flex:0;-ms-flex:0 0 55px;flex:0 0 55px}.otgs-switch__onoff.otgs-pull-right{right:0}.otgs-switch__onoff .otgs-switch__onoff-label{display:block;overflow:hidden;cursor:pointer;border:1px solid #e6e6e6;border-radius:16px;margin:0}.otgs-switch__onoff .otgs-switch__onoff-inner{width:200%;margin-left:-100%;-webkit-transition:margin .15s ease-in-out;transition:margin .15s ease-in-out}.otgs-switch__onoff .otgs-switch__onoff-inner:after,.otgs-switch__onoff .otgs-switch__onoff-inner:before{float:left;width:50%;height:22px;padding:0;line-height:22px;font-size:11px;-webkit-box-sizing:border-box;box-sizing:border-box}.otgs-switch__onoff .otgs-switch__onoff-inner:before{content:"ON";padding-left:10px;background-color:#21759b;color:#fff}.otgs-switch__onoff .otgs-switch__onoff-inner:after{content:"OFF";padding-right:8px;background-color:#fafafa;color:#3d3d3d;text-align:right}.otgs-switch__onoff .otgs-switch__onoff-switch{width:18px;height:18px;margin:0;background:#fff;-webkit-box-shadow:0 0 3px rgba(0,0,0,.3);box-shadow:0 0 3px rgba(0,0,0,.3);border-radius:50%;position:absolute;top:3px;bottom:0;right:34px;-webkit-transition:right .15s ease-in-out;transition:right .15s ease-in-out}.otgs-toggle-group{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.otgs-toggle-group .otgs-switch__onoff-inner{display:block}.otgs-toggle-group input[type=checkbox]{display:none}.otgs-toggle-group input[type=checkbox]:checked~.otgs-switch__onoff .otgs-switch__onoff-label .otgs-switch__onoff-inner{margin-left:0}.otgs-toggle-group input[type=checkbox]:checked~.otgs-switch__onoff .otgs-switch__onoff-label .otgs-switch__onoff-switch{right:3px;-webkit-box-shadow:0 0 3px rgba(0,0,0,.5);box-shadow:0 0 3px rgba(0,0,0,.5)}.otgs-toggle-group input[type=checkbox]:focus~.otgs-switch__onoff{outline:thin dotted #333}.otgs-toggle-group .otgs-on-off-switch{cursor:pointer;display:inline-block}.otgs-external-link:after{font-family:dashicons!important;content:"\A0\F504";vertical-align:baseline;line-height:1;display:inline-block}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/otgs/installer/dist/js/ui/app.js CHANGED
@@ -1,701 +1 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, {
40
- /******/ configurable: false,
41
- /******/ enumerable: true,
42
- /******/ get: getter
43
- /******/ });
44
- /******/ }
45
- /******/ };
46
- /******/
47
- /******/ // define __esModule on exports
48
- /******/ __webpack_require__.r = function(exports) {
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // getDefaultExport function for compatibility with non-harmony modules
53
- /******/ __webpack_require__.n = function(module) {
54
- /******/ var getter = module && module.__esModule ?
55
- /******/ function getDefault() { return module['default']; } :
56
- /******/ function getModuleExports() { return module; };
57
- /******/ __webpack_require__.d(getter, 'a', getter);
58
- /******/ return getter;
59
- /******/ };
60
- /******/
61
- /******/ // Object.prototype.hasOwnProperty.call
62
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
63
- /******/
64
- /******/ // __webpack_public_path__
65
- /******/ __webpack_require__.p = "";
66
- /******/
67
- /******/
68
- /******/ // Load entry module and return exports
69
- /******/ return __webpack_require__(__webpack_require__.s = 0);
70
- /******/ })
71
- /************************************************************************/
72
- /******/ ({
73
-
74
- /***/ "./js/ui/Switcher.js":
75
- /*!***************************!*\
76
- !*** ./js/ui/Switcher.js ***!
77
- \***************************/
78
- /*! no static exports found */
79
- /***/ (function(module, exports, __webpack_require__) {
80
-
81
- "use strict";
82
-
83
-
84
- Object.defineProperty(exports, "__esModule", {
85
- value: true
86
- });
87
-
88
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
89
-
90
- var Switcher = function Switcher(element) {
91
- _classCallCheck(this, Switcher);
92
-
93
- var checkBoxContainer = element.parentElement;
94
- var heading = checkBoxContainer.getElementsByClassName('heading');
95
- var label = checkBoxContainer.getElementsByTagName('label').item(0);
96
-
97
- if (label) {
98
- label.classList.add('otgs-on-off-switch');
99
- }
100
-
101
- var toggleGroup = document.createElement('label');
102
- toggleGroup.classList.add('otgs-toggle-group');
103
- toggleGroup.appendChild(element);
104
- toggleGroup.appendChild(label);
105
-
106
- var switcherContainer = document.createElement('span');
107
- switcherContainer.classList.add('otgs-switch__onoff');
108
- var switcherBorder = document.createElement('span');
109
- switcherBorder.classList.add('otgs-switch__onoff-label');
110
- var switcherInner = document.createElement('span');
111
- switcherInner.classList.add('otgs-switch__onoff-inner');
112
- var switcherSwitch = document.createElement('span');
113
- switcherSwitch.classList.add('otgs-switch__onoff-switch');
114
-
115
- switcherBorder.appendChild(switcherInner);
116
- switcherBorder.appendChild(switcherSwitch);
117
-
118
- switcherContainer.appendChild(switcherBorder);
119
-
120
- toggleGroup.appendChild(switcherContainer);
121
-
122
- checkBoxContainer.appendChild(toggleGroup);
123
-
124
- if (heading.length) {
125
- heading.item(heading.length - 1).parentNode.insertBefore(toggleGroup, heading.item(heading.length - 1).nextSibling);
126
- } else {
127
- checkBoxContainer.insertBefore(toggleGroup, checkBoxContainer.firstChild);
128
- }
129
- };
130
-
131
- exports.default = Switcher;
132
-
133
- /***/ }),
134
-
135
- /***/ "./js/ui/UI.js":
136
- /*!*********************!*\
137
- !*** ./js/ui/UI.js ***!
138
- \*********************/
139
- /*! no static exports found */
140
- /***/ (function(module, exports, __webpack_require__) {
141
-
142
- "use strict";
143
-
144
-
145
- Object.defineProperty(exports, "__esModule", {
146
- value: true
147
- });
148
-
149
- __webpack_require__(/*! ../../scss/ui/styles.scss */ "./scss/ui/styles.scss");
150
-
151
- var _Switcher = __webpack_require__(/*! ./Switcher */ "./js/ui/Switcher.js");
152
-
153
- var _Switcher2 = _interopRequireDefault(_Switcher);
154
-
155
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
156
-
157
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
158
-
159
- var UI = function UI(element) {
160
- _classCallCheck(this, UI);
161
-
162
- var checkBoxes = element.querySelectorAll('input[type="checkbox"]');
163
-
164
- if (checkBoxes) {
165
- Array.from(checkBoxes).map(function (checkBox) {
166
- return new _Switcher2.default(checkBox);
167
- });
168
- }
169
- };
170
-
171
- exports.default = UI;
172
-
173
- /***/ }),
174
-
175
- /***/ "./js/ui/app.js":
176
- /*!**********************!*\
177
- !*** ./js/ui/app.js ***!
178
- \**********************/
179
- /*! no static exports found */
180
- /***/ (function(module, exports, __webpack_require__) {
181
-
182
- "use strict";
183
-
184
-
185
- var _UI = __webpack_require__(/*! ./UI */ "./js/ui/UI.js");
186
-
187
- var _UI2 = _interopRequireDefault(_UI);
188
-
189
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
190
-
191
- window.addEventListener('DOMContentLoaded', function () {
192
-
193
- var otgsUIElements = document.querySelectorAll('.otgs-ui');
194
-
195
- if (otgsUIElements) {
196
- Array.from(otgsUIElements).map(function (otgsUI) {
197
- return new _UI2.default(otgsUI);
198
- });
199
- }
200
- });
201
-
202
- /***/ }),
203
-
204
- /***/ "./node_modules/whatwg-fetch/fetch.js":
205
- /*!********************************************!*\
206
- !*** ./node_modules/whatwg-fetch/fetch.js ***!
207
- \********************************************/
208
- /*! no static exports found */
209
- /***/ (function(module, exports) {
210
-
211
- (function(self) {
212
- 'use strict';
213
-
214
- if (self.fetch) {
215
- return
216
- }
217
-
218
- var support = {
219
- searchParams: 'URLSearchParams' in self,
220
- iterable: 'Symbol' in self && 'iterator' in Symbol,
221
- blob: 'FileReader' in self && 'Blob' in self && (function() {
222
- try {
223
- new Blob()
224
- return true
225
- } catch(e) {
226
- return false
227
- }
228
- })(),
229
- formData: 'FormData' in self,
230
- arrayBuffer: 'ArrayBuffer' in self
231
- }
232
-
233
- if (support.arrayBuffer) {
234
- var viewClasses = [
235
- '[object Int8Array]',
236
- '[object Uint8Array]',
237
- '[object Uint8ClampedArray]',
238
- '[object Int16Array]',
239
- '[object Uint16Array]',
240
- '[object Int32Array]',
241
- '[object Uint32Array]',
242
- '[object Float32Array]',
243
- '[object Float64Array]'
244
- ]
245
-
246
- var isDataView = function(obj) {
247
- return obj && DataView.prototype.isPrototypeOf(obj)
248
- }
249
-
250
- var isArrayBufferView = ArrayBuffer.isView || function(obj) {
251
- return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
252
- }
253
- }
254
-
255
- function normalizeName(name) {
256
- if (typeof name !== 'string') {
257
- name = String(name)
258
- }
259
- if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) {
260
- throw new TypeError('Invalid character in header field name')
261
- }
262
- return name.toLowerCase()
263
- }
264
-
265
- function normalizeValue(value) {
266
- if (typeof value !== 'string') {
267
- value = String(value)
268
- }
269
- return value
270
- }
271
-
272
- // Build a destructive iterator for the value list
273
- function iteratorFor(items) {
274
- var iterator = {
275
- next: function() {
276
- var value = items.shift()
277
- return {done: value === undefined, value: value}
278
- }
279
- }
280
-
281
- if (support.iterable) {
282
- iterator[Symbol.iterator] = function() {
283
- return iterator
284
- }
285
- }
286
-
287
- return iterator
288
- }
289
-
290
- function Headers(headers) {
291
- this.map = {}
292
-
293
- if (headers instanceof Headers) {
294
- headers.forEach(function(value, name) {
295
- this.append(name, value)
296
- }, this)
297
- } else if (Array.isArray(headers)) {
298
- headers.forEach(function(header) {
299
- this.append(header[0], header[1])
300
- }, this)
301
- } else if (headers) {
302
- Object.getOwnPropertyNames(headers).forEach(function(name) {
303
- this.append(name, headers[name])
304
- }, this)
305
- }
306
- }
307
-
308
- Headers.prototype.append = function(name, value) {
309
- name = normalizeName(name)
310
- value = normalizeValue(value)
311
- var oldValue = this.map[name]
312
- this.map[name] = oldValue ? oldValue+','+value : value
313
- }
314
-
315
- Headers.prototype['delete'] = function(name) {
316
- delete this.map[normalizeName(name)]
317
- }
318
-
319
- Headers.prototype.get = function(name) {
320
- name = normalizeName(name)
321
- return this.has(name) ? this.map[name] : null
322
- }
323
-
324
- Headers.prototype.has = function(name) {
325
- return this.map.hasOwnProperty(normalizeName(name))
326
- }
327
-
328
- Headers.prototype.set = function(name, value) {
329
- this.map[normalizeName(name)] = normalizeValue(value)
330
- }
331
-
332
- Headers.prototype.forEach = function(callback, thisArg) {
333
- for (var name in this.map) {
334
- if (this.map.hasOwnProperty(name)) {
335
- callback.call(thisArg, this.map[name], name, this)
336
- }
337
- }
338
- }
339
-
340
- Headers.prototype.keys = function() {
341
- var items = []
342
- this.forEach(function(value, name) { items.push(name) })
343
- return iteratorFor(items)
344
- }
345
-
346
- Headers.prototype.values = function() {
347
- var items = []
348
- this.forEach(function(value) { items.push(value) })
349
- return iteratorFor(items)
350
- }
351
-
352
- Headers.prototype.entries = function() {
353
- var items = []
354
- this.forEach(function(value, name) { items.push([name, value]) })
355
- return iteratorFor(items)
356
- }
357
-
358
- if (support.iterable) {
359
- Headers.prototype[Symbol.iterator] = Headers.prototype.entries
360
- }
361
-
362
- function consumed(body) {
363
- if (body.bodyUsed) {
364
- return Promise.reject(new TypeError('Already read'))
365
- }
366
- body.bodyUsed = true
367
- }
368
-
369
- function fileReaderReady(reader) {
370
- return new Promise(function(resolve, reject) {
371
- reader.onload = function() {
372
- resolve(reader.result)
373
- }
374
- reader.onerror = function() {
375
- reject(reader.error)
376
- }
377
- })
378
- }
379
-
380
- function readBlobAsArrayBuffer(blob) {
381
- var reader = new FileReader()
382
- var promise = fileReaderReady(reader)
383
- reader.readAsArrayBuffer(blob)
384
- return promise
385
- }
386
-
387
- function readBlobAsText(blob) {
388
- var reader = new FileReader()
389
- var promise = fileReaderReady(reader)
390
- reader.readAsText(blob)
391
- return promise
392
- }
393
-
394
- function readArrayBufferAsText(buf) {
395
- var view = new Uint8Array(buf)
396
- var chars = new Array(view.length)
397
-
398
- for (var i = 0; i < view.length; i++) {
399
- chars[i] = String.fromCharCode(view[i])
400
- }
401
- return chars.join('')
402
- }
403
-
404
- function bufferClone(buf) {
405
- if (buf.slice) {
406
- return buf.slice(0)
407
- } else {
408
- var view = new Uint8Array(buf.byteLength)
409
- view.set(new Uint8Array(buf))
410
- return view.buffer
411
- }
412
- }
413
-
414
- function Body() {
415
- this.bodyUsed = false
416
-
417
- this._initBody = function(body) {
418
- this._bodyInit = body
419
- if (!body) {
420
- this._bodyText = ''
421
- } else if (typeof body === 'string') {
422
- this._bodyText = body
423
- } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
424
- this._bodyBlob = body
425
- } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
426
- this._bodyFormData = body
427
- } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
428
- this._bodyText = body.toString()
429
- } else if (support.arrayBuffer && support.blob && isDataView(body)) {
430
- this._bodyArrayBuffer = bufferClone(body.buffer)
431
- // IE 10-11 can't handle a DataView body.
432
- this._bodyInit = new Blob([this._bodyArrayBuffer])
433
- } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
434
- this._bodyArrayBuffer = bufferClone(body)
435
- } else {
436
- throw new Error('unsupported BodyInit type')
437
- }
438
-
439
- if (!this.headers.get('content-type')) {
440
- if (typeof body === 'string') {
441
- this.headers.set('content-type', 'text/plain;charset=UTF-8')
442
- } else if (this._bodyBlob && this._bodyBlob.type) {
443
- this.headers.set('content-type', this._bodyBlob.type)
444
- } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
445
- this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')
446
- }
447
- }
448
- }
449
-
450
- if (support.blob) {
451
- this.blob = function() {
452
- var rejected = consumed(this)
453
- if (rejected) {
454
- return rejected
455
- }
456
-
457
- if (this._bodyBlob) {
458
- return Promise.resolve(this._bodyBlob)
459
- } else if (this._bodyArrayBuffer) {
460
- return Promise.resolve(new Blob([this._bodyArrayBuffer]))
461
- } else if (this._bodyFormData) {
462
- throw new Error('could not read FormData body as blob')
463
- } else {
464
- return Promise.resolve(new Blob([this._bodyText]))
465
- }
466
- }
467
-
468
- this.arrayBuffer = function() {
469
- if (this._bodyArrayBuffer) {
470
- return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
471
- } else {
472
- return this.blob().then(readBlobAsArrayBuffer)
473
- }
474
- }
475
- }
476
-
477
- this.text = function() {
478
- var rejected = consumed(this)
479
- if (rejected) {
480
- return rejected
481
- }
482
-
483
- if (this._bodyBlob) {
484
- return readBlobAsText(this._bodyBlob)
485
- } else if (this._bodyArrayBuffer) {
486
- return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
487
- } else if (this._bodyFormData) {
488
- throw new Error('could not read FormData body as text')
489
- } else {
490
- return Promise.resolve(this._bodyText)
491
- }
492
- }
493
-
494
- if (support.formData) {
495
- this.formData = function() {
496
- return this.text().then(decode)
497
- }
498
- }
499
-
500
- this.json = function() {
501
- return this.text().then(JSON.parse)
502
- }
503
-
504
- return this
505
- }
506
-
507
- // HTTP methods whose capitalization should be normalized
508
- var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']
509
-
510
- function normalizeMethod(method) {
511
- var upcased = method.toUpperCase()
512
- return (methods.indexOf(upcased) > -1) ? upcased : method
513
- }
514
-
515
- function Request(input, options) {
516
- options = options || {}
517
- var body = options.body
518
-
519
- if (input instanceof Request) {
520
- if (input.bodyUsed) {
521
- throw new TypeError('Already read')
522
- }
523
- this.url = input.url
524
- this.credentials = input.credentials
525
- if (!options.headers) {
526
- this.headers = new Headers(input.headers)
527
- }
528
- this.method = input.method
529
- this.mode = input.mode
530
- if (!body && input._bodyInit != null) {
531
- body = input._bodyInit
532
- input.bodyUsed = true
533
- }
534
- } else {
535
- this.url = String(input)
536
- }
537
-
538
- this.credentials = options.credentials || this.credentials || 'omit'
539
- if (options.headers || !this.headers) {
540
- this.headers = new Headers(options.headers)
541
- }
542
- this.method = normalizeMethod(options.method || this.method || 'GET')
543
- this.mode = options.mode || this.mode || null
544
- this.referrer = null
545
-
546
- if ((this.method === 'GET' || this.method === 'HEAD') && body) {
547
- throw new TypeError('Body not allowed for GET or HEAD requests')
548
- }
549
- this._initBody(body)
550
- }
551
-
552
- Request.prototype.clone = function() {
553
- return new Request(this, { body: this._bodyInit })
554
- }
555
-
556
- function decode(body) {
557
- var form = new FormData()
558
- body.trim().split('&').forEach(function(bytes) {
559
- if (bytes) {
560
- var split = bytes.split('=')
561
- var name = split.shift().replace(/\+/g, ' ')
562
- var value = split.join('=').replace(/\+/g, ' ')
563
- form.append(decodeURIComponent(name), decodeURIComponent(value))
564
- }
565
- })
566
- return form
567
- }
568
-
569
- function parseHeaders(rawHeaders) {
570
- var headers = new Headers()
571
- rawHeaders.split(/\r?\n/).forEach(function(line) {
572
- var parts = line.split(':')
573
- var key = parts.shift().trim()
574
- if (key) {
575
- var value = parts.join(':').trim()
576
- headers.append(key, value)
577
- }
578
- })
579
- return headers
580
- }
581
-
582
- Body.call(Request.prototype)
583
-
584
- function Response(bodyInit, options) {
585
- if (!options) {
586
- options = {}
587
- }
588
-
589
- this.type = 'default'
590
- this.status = 'status' in options ? options.status : 200
591
- this.ok = this.status >= 200 && this.status < 300
592
- this.statusText = 'statusText' in options ? options.statusText : 'OK'
593
- this.headers = new Headers(options.headers)
594
- this.url = options.url || ''
595
- this._initBody(bodyInit)
596
- }
597
-
598
- Body.call(Response.prototype)
599
-
600
- Response.prototype.clone = function() {
601
- return new Response(this._bodyInit, {
602
- status: this.status,
603
- statusText: this.statusText,
604
- headers: new Headers(this.headers),
605
- url: this.url
606
- })
607
- }
608
-
609
- Response.error = function() {
610
- var response = new Response(null, {status: 0, statusText: ''})
611
- response.type = 'error'
612
- return response
613
- }
614
-
615
- var redirectStatuses = [301, 302, 303, 307, 308]
616
-
617
- Response.redirect = function(url, status) {
618
- if (redirectStatuses.indexOf(status) === -1) {
619
- throw new RangeError('Invalid status code')
620
- }
621
-
622
- return new Response(null, {status: status, headers: {location: url}})
623
- }
624
-
625
- self.Headers = Headers
626
- self.Request = Request
627
- self.Response = Response
628
-
629
- self.fetch = function(input, init) {
630
- return new Promise(function(resolve, reject) {
631
- var request = new Request(input, init)
632
- var xhr = new XMLHttpRequest()
633
-
634
- xhr.onload = function() {
635
- var options = {
636
- status: xhr.status,
637
- statusText: xhr.statusText,
638
- headers: parseHeaders(xhr.getAllResponseHeaders() || '')
639
- }
640
- options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')
641
- var body = 'response' in xhr ? xhr.response : xhr.responseText
642
- resolve(new Response(body, options))
643
- }
644
-
645
- xhr.onerror = function() {
646
- reject(new TypeError('Network request failed'))
647
- }
648
-
649
- xhr.ontimeout = function() {
650
- reject(new TypeError('Network request failed'))
651
- }
652
-
653
- xhr.open(request.method, request.url, true)
654
-
655
- if (request.credentials === 'include') {
656
- xhr.withCredentials = true
657
- }
658
-
659
- if ('responseType' in xhr && support.blob) {
660
- xhr.responseType = 'blob'
661
- }
662
-
663
- request.headers.forEach(function(value, name) {
664
- xhr.setRequestHeader(name, value)
665
- })
666
-
667
- xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)
668
- })
669
- }
670
- self.fetch.polyfill = true
671
- })(typeof self !== 'undefined' ? self : this);
672
-
673
-
674
- /***/ }),
675
-
676
- /***/ "./scss/ui/styles.scss":
677
- /*!*****************************!*\
678
- !*** ./scss/ui/styles.scss ***!
679
- \*****************************/
680
- /*! no static exports found */
681
- /***/ (function(module, exports) {
682
-
683
- // removed by extract-text-webpack-plugin
684
-
685
- /***/ }),
686
-
687
- /***/ 0:
688
- /*!*****************************************!*\
689
- !*** multi whatwg-fetch ./js/ui/app.js ***!
690
- \*****************************************/
691
- /*! no static exports found */
692
- /***/ (function(module, exports, __webpack_require__) {
693
-
694
- __webpack_require__(/*! whatwg-fetch */"./node_modules/whatwg-fetch/fetch.js");
695
- module.exports = __webpack_require__(/*! ./js/ui/app.js */"./js/ui/app.js");
696
-
697
-
698
- /***/ })
699
-
700
- /******/ });
701
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay9ib290c3RyYXAiLCJ3ZWJwYWNrOi8vLy4vanMvdWkvU3dpdGNoZXIuanMiLCJ3ZWJwYWNrOi8vLy4vanMvdWkvVUkuanMiLCJ3ZWJwYWNrOi8vLy4vanMvdWkvYXBwLmpzIiwid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy93aGF0d2ctZ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biAgICAgICAgcmVqZWN0KG5ldyBUeXBlRXJyb3IoJ05ldHdvcmsgcmVxdWVzdCBmYWlsZWQnKSlcbiAgICAgIH1cblxuICAgICAgeGhyLm9udGltZW91dCA9IGZ1bmN0aW9uKCkge1xuICAgICAgICByZWplY3QobmV3IFR5cGVFcnJvcignTmV0d29yayByZXF1ZXN0IGZhaWxlZCcpKVxuICAgICAgfVxuXG4gICAgICB4aHIub3BlbihyZXF1ZXN0Lm1ldGhvZCwgcmVxdWVzdC51cmwsIHRydWUpXG5cbiAgICAgIGlmIChyZXF1ZXN0LmNyZWRlbnRpYWxzID09PSAnaW5jbHVkZScpIHtcbiAgICAgICAgeGhyLndpdGhDcmVkZW50aWFscyA9IHRydWVcbiAgICAgIH1cblxuICAgICAgaWYgKCdyZXNwb25zZVR5cGUnIGluIHhociAmJiBzdXBwb3J0LmJsb2IpIHtcbiAgICAgICAgeGhyLnJlc3BvbnNlVHlwZSA9ICdibG9iJ1xuICAgICAgfVxuXG4gICAgICByZXF1ZXN0LmhlYWRlcnMuZm9yRWFjaChmdW5jdGlvbih2YWx1ZSwgbmFtZSkge1xuICAgICAgICB4aHIuc2V0UmVxdWVzdEhlYWRlcihuYW1lLCB2YWx1ZSlcbiAgICAgIH0pXG5cbiAgICAgIHhoci5zZW5kKHR5cGVvZiByZXF1ZXN0Ll9ib2R5SW5pdCA9PT0gJ3VuZGVmaW5lZCcgPyBudWxsIDogcmVxdWVzdC5fYm9keUluaXQpXG4gICAgfSlcbiAgfVxuICBzZWxmLmZldGNoLnBvbHlmaWxsID0gdHJ1ZVxufSkodHlwZW9mIHNlbGYgIT09ICd1bmRlZmluZWQnID8gc2VsZiA6IHRoaXMpO1xuIiwiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW4iXSwic291cmNlUm9vdCI6IiJ9
1
+ !function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=208)}([function(t,n,r){var e=r(2),o=r(26),i=r(10),u=r(18),c=r(16),a=function(t,n,r){var f,s,l,h,p=t&a.F,v=t&a.G,d=t&a.S,y=t&a.P,g=t&a.B,m=v?e:d?e[n]||(e[n]={}):(e[n]||{}).prototype,b=v?o:o[n]||(o[n]={}),w=b.prototype||(b.prototype={});for(f in v&&(r=n),r)l=((s=!p&&m&&void 0!==m[f])?m:r)[f],h=g&&s?c(l,e):y&&"function"==typeof l?c(Function.call,l):l,m&&u(m,f,l,t&a.U),b[f]!=l&&i(b,f,h),y&&w[f]!=l&&(w[f]=l)};e.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n,r){var e=r(1);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){var e=r(63)("wks"),o=r(24),i=r(2).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(3),o=r(91),i=r(40),u=Object.defineProperty;n.f=r(8)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(21),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){t.exports=!r(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(6),o=r(25);t.exports=r(8)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(0),o=r(26),i=r(5);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*i(function(){r(1)}),"Object",u)}},function(t,n,r){var e=r(66),o=r(20);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(36),o=r(25),i=r(12),u=r(40),c=r(9),a=r(91),f=Object.getOwnPropertyDescriptor;n.f=r(8)?f:function(t,n){if(t=i(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){"use strict";if(r(8)){var e=r(22),o=r(2),i=r(5),u=r(0),c=r(48),a=r(67),f=r(16),s=r(34),l=r(25),h=r(10),p=r(35),v=r(21),d=r(7),y=r(90),g=r(32),m=r(40),b=r(9),w=r(59),_=r(1),x=r(15),S=r(58),E=r(38),O=r(29),P=r(39).f,A=r(57),M=r(24),j=r(4),F=r(37),L=r(65),T=r(60),I=r(56),B=r(30),R=r(46),N=r(47),k=r(61),C=r(84),U=r(6),D=r(13),W=U.f,V=D.f,G=o.RangeError,q=o.TypeError,z=o.Uint8Array,H=Array.prototype,Y=a.ArrayBuffer,K=a.DataView,J=F(0),X=F(2),$=F(3),Q=F(4),Z=F(5),tt=F(6),nt=L(!0),rt=L(!1),et=I.values,ot=I.keys,it=I.entries,ut=H.lastIndexOf,ct=H.reduce,at=H.reduceRight,ft=H.join,st=H.sort,lt=H.slice,ht=H.toString,pt=H.toLocaleString,vt=j("iterator"),dt=j("toStringTag"),yt=M("typed_constructor"),gt=M("def_constructor"),mt=c.CONSTR,bt=c.TYPED,wt=c.VIEW,_t=F(1,function(t,n){return Pt(T(t,t[gt]),n)}),xt=i(function(){return 1===new z(new Uint16Array([1]).buffer)[0]}),St=!!z&&!!z.prototype.set&&i(function(){new z(1).set({})}),Et=function(t,n){var r=v(t);if(r<0||r%n)throw G("Wrong offset!");return r},Ot=function(t){if(_(t)&&bt in t)return t;throw q(t+" is not a typed array!")},Pt=function(t,n){if(!(_(t)&&yt in t))throw q("It is not a typed array constructor!");return new t(n)},At=function(t,n){return Mt(T(t,t[gt]),n)},Mt=function(t,n){for(var r=0,e=n.length,o=Pt(t,e);e>r;)o[r]=n[r++];return o},jt=function(t,n,r){W(t,n,{get:function(){return this._d[r]}})},Ft=function(t){var n,r,e,o,i,u,c=x(t),a=arguments.length,s=a>1?arguments[1]:void 0,l=void 0!==s,h=A(c);if(void 0!=h&&!S(h)){for(u=h.call(c),e=[],n=0;!(i=u.next()).done;n++)e.push(i.value);c=e}for(l&&a>2&&(s=f(s,arguments[2],2)),n=0,r=d(c.length),o=Pt(this,r);r>n;n++)o[n]=l?s(c[n],n):c[n];return o},Lt=function(){for(var t=0,n=arguments.length,r=Pt(this,n);n>t;)r[t]=arguments[t++];return r},Tt=!!z&&i(function(){pt.call(new z(1))}),It=function(){return pt.apply(Tt?lt.call(Ot(this)):Ot(this),arguments)},Bt={copyWithin:function(t,n){return C.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return k.apply(Ot(this),arguments)},filter:function(t){return At(this,X(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return _t(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return at.apply(Ot(this),arguments)},reverse:function(){for(var t,n=Ot(this).length,r=Math.floor(n/2),e=0;e<r;)t=this[e],this[e++]=this[--n],this[n]=t;return this},some:function(t){return $(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,o=g(t,e);return new(T(r,r[gt]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,d((void 0===n?e:g(n,e))-o))}},Rt=function(t,n){return At(this,lt.call(Ot(this),t,n))},Nt=function(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=x(t),o=d(e.length),i=0;if(o+n>r)throw G("Wrong length!");for(;i<o;)this[n+i]=e[i++]},kt={entries:function(){return it.call(Ot(this))},keys:function(){return ot.call(Ot(this))},values:function(){return et.call(Ot(this))}},Ct=function(t,n){return _(t)&&t[bt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Ut=function(t,n){return Ct(t,n=m(n,!0))?l(2,t[n]):V(t,n)},Dt=function(t,n,r){return!(Ct(t,n=m(n,!0))&&_(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?W(t,n,r):(t[n]=r.value,t)};mt||(D.f=Ut,U.f=Dt),u(u.S+u.F*!mt,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:Dt}),i(function(){ht.call({})})&&(ht=pt=function(){return ft.call(this)});var Wt=p({},Bt);p(Wt,kt),h(Wt,vt,kt.values),p(Wt,{slice:Rt,set:Nt,constructor:function(){},toString:ht,toLocaleString:It}),jt(Wt,"buffer","b"),jt(Wt,"byteOffset","o"),jt(Wt,"byteLength","l"),jt(Wt,"length","e"),W(Wt,dt,{get:function(){return this[bt]}}),t.exports=function(t,n,r,a){var f=t+((a=!!a)?"Clamped":"")+"Array",l="get"+t,p="set"+t,v=o[f],g=v||{},m=v&&O(v),b=!v||!c.ABV,x={},S=v&&v.prototype,A=function(t,r){W(t,r,{get:function(){return function(t,r){var e=t._d;return e.v[l](r*n+e.o,xt)}(this,r)},set:function(t){return function(t,r,e){var o=t._d;a&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),o.v[p](r*n+o.o,e,xt)}(this,r,t)},enumerable:!0})};b?(v=r(function(t,r,e,o){s(t,v,f,"_d");var i,u,c,a,l=0,p=0;if(_(r)){if(!(r instanceof Y||"ArrayBuffer"==(a=w(r))||"SharedArrayBuffer"==a))return bt in r?Mt(v,r):Ft.call(v,r);i=r,p=Et(e,n);var g=r.byteLength;if(void 0===o){if(g%n)throw G("Wrong length!");if((u=g-p)<0)throw G("Wrong length!")}else if((u=d(o)*n)+p>g)throw G("Wrong length!");c=u/n}else c=y(r),i=new Y(u=c*n);for(h(t,"_d",{b:i,o:p,l:u,e:c,v:new K(i)});l<c;)A(t,l++)}),S=v.prototype=E(Wt),h(S,"constructor",v)):i(function(){v(1)})&&i(function(){new v(-1)})&&R(function(t){new v,new v(null),new v(1.5),new v(t)},!0)||(v=r(function(t,r,e,o){var i;return s(t,v,f),_(r)?r instanceof Y||"ArrayBuffer"==(i=w(r))||"SharedArrayBuffer"==i?void 0!==o?new g(r,Et(e,n),o):void 0!==e?new g(r,Et(e,n)):new g(r):bt in r?Mt(v,r):Ft.call(v,r):new g(y(r))}),J(m!==Function.prototype?P(g).concat(P(m)):P(g),function(t){t in v||h(v,t,g[t])}),v.prototype=S,e||(S.constructor=v));var M=S[vt],j=!!M&&("values"==M.name||void 0==M.name),F=kt.values;h(v,yt,!0),h(S,bt,f),h(S,wt,!0),h(S,gt,v),(a?new v(1)[dt]==f:dt in S)||W(S,dt,{get:function(){return f}}),x[f]=v,u(u.G+u.W+u.F*(v!=g),x),u(u.S,f,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*i(function(){g.of.call(v,1)}),f,{from:Ft,of:Lt}),"BYTES_PER_ELEMENT"in S||h(S,"BYTES_PER_ELEMENT",n),u(u.P,f,Bt),N(f),u(u.P+u.F*St,f,{set:Nt}),u(u.P+u.F*!j,f,kt),e||S.toString==ht||(S.toString=ht),u(u.P+u.F*i(function(){new v(1).slice()}),f,{slice:Rt}),u(u.P+u.F*(i(function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()})||!i(function(){S.toLocaleString.call([1,2])})),f,{toLocaleString:It}),B[f]=j?M:F,e||j||h(S,vt,F)}}else t.exports=function(){}},function(t,n,r){var e=r(20);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(23);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(24)("meta"),o=r(1),i=r(9),u=r(6).f,c=0,a=Object.isExtensible||function(){return!0},f=!r(5)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return f&&l.NEED&&a(t)&&!i(t,e)&&s(t),t}}},function(t,n,r){var e=r(2),o=r(10),i=r(9),u=r(24)("src"),c=Function.toString,a=(""+c).split("toString");r(26).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,u)||o(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n,r){var e=r(89),o=r(62);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n){t.exports=!1},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(1);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,r){var e=r(4)("unscopables"),o=Array.prototype;void 0==o[e]&&r(10)(o,e,{}),t.exports=function(t){o[e][t]=!0}},function(t,n,r){var e=r(9),o=r(15),i=r(64)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n){t.exports={}},function(t,n,r){var e=r(6).f,o=r(9),i=r(4)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(21),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(18);t.exports=function(t,n,r){for(var o in n)e(t,o,n[o],r);return t}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(16),o=r(66),i=r(15),u=r(7),c=r(201);t.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,h=5==t||l,p=n||c;return function(n,c,v){for(var d,y,g=i(n),m=o(g),b=e(c,v,3),w=u(m.length),_=0,x=r?p(n,w):a?p(n,0):void 0;w>_;_++)if((h||_ in m)&&(y=b(d=m[_],_,g),t))if(r)x[_]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return _;case 2:x.push(d)}else if(s)return!1;return l?-1:f||s?s:x}}},function(t,n,r){var e=r(3),o=r(202),i=r(62),u=r(64)("IE_PROTO"),c=function(){},a=function(){var t,n=r(68)("iframe"),e=i.length;for(n.style.display="none",r(88).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a.prototype[i[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===n?r:o(r,n)}},function(t,n,r){var e=r(89),o=r(62).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(1);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){"use strict";var e=r(10),o=r(18),i=r(5),u=r(20),c=r(4);t.exports=function(t,n,r){var a=c(t),f=r(u,a,""[t]),s=f[0],l=f[1];i(function(){var n={};return n[a]=function(){return 7},7!=""[t](n)})&&(o(String.prototype,t,s),e(RegExp.prototype,a,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},function(t,n,r){var e=r(2).navigator;t.exports=e&&e.userAgent||""},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){"use strict";var e=r(2),o=r(0),i=r(18),u=r(35),c=r(17),a=r(45),f=r(34),s=r(1),l=r(5),h=r(46),p=r(31),v=r(189);t.exports=function(t,n,r,d,y,g){var m=e[t],b=m,w=y?"set":"add",_=b&&b.prototype,x={},S=function(t){var n=_[t];i(_,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(g||_.forEach&&!l(function(){(new b).entries().next()}))){var E=new b,O=E[w](g?{}:-0,1)!=E,P=l(function(){E.has(1)}),A=h(function(t){new b(t)}),M=!g&&l(function(){for(var t=new b,n=5;n--;)t[w](n,n);return!t.has(-0)});A||((b=n(function(n,r){f(n,b,t);var e=v(new m,n,b);return void 0!=r&&a(r,y,e[w],e),e})).prototype=_,_.constructor=b),(P||M)&&(S("delete"),S("has"),y&&S("get")),(M||O)&&S(w),g&&_.clear&&delete _.clear}else b=d.getConstructor(n,t,y,w),u(b.prototype,r),c.NEED=!0;return p(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=m),x),g||d.setStrong(b,t,y),b}},function(t,n,r){var e=r(16),o=r(82),i=r(58),u=r(3),c=r(7),a=r(57),f={},s={};(n=t.exports=function(t,n,r,l,h){var p,v,d,y,g=h?function(){return t}:a(t),m=e(r,l,n?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=c(t.length);p>b;b++)if((y=n?m(u(v=t[b])[0],v[1]):m(t[b]))===f||y===s)return y}else for(d=g.call(t);!(v=d.next()).done;)if((y=o(d,m,v.value,n))===f||y===s)return y}).BREAK=f,n.RETURN=s},function(t,n,r){var e=r(4)("iterator"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],u=i[e]();u.next=function(){return{done:r=!0}},i[e]=function(){return u},t(i)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(2),o=r(6),i=r(8),u=r(4)("species");t.exports=function(t){var n=e[t];i&&n&&!n[u]&&o.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,r){for(var e,o=r(2),i=r(10),u=r(24),c=u("typed_array"),a=u("view"),f=!(!o.ArrayBuffer||!o.DataView),s=f,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=o[h[l++]])?(i(e.prototype,c,!0),i(e.prototype,a,!0)):s=!1;t.exports={ABV:f,CONSTR:s,TYPED:c,VIEW:a}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n,r){"use strict";var e=r(6),o=r(25);t.exports=function(t,n,r){n in t?e.f(t,n,o(0,r)):t[n]=r}},function(t,n,r){var e=r(4)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(73),o=r(20);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},function(t,n,r){var e,o,i,u=r(16),c=r(79),a=r(88),f=r(68),s=r(2),l=s.process,h=s.setImmediate,p=s.clearImmediate,v=s.MessageChannel,d=s.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},b=function(t){m.call(t.data)};h&&p||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return g[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},p=function(t){delete g[t]},"process"==r(33)(l)?e=function(t){l.nextTick(u(m,t,1))}:d&&d.now?e=function(t){d.now(u(m,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=b,e=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){var e=r(1),o=r(3),i=function(t,n){if(o(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(16)(Function.call,r(13).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return i(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:i}},function(t,n,r){"use strict";var e=r(28),o=r(86),i=r(30),u=r(12);t.exports=r(85)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n,r){var e=r(59),o=r(4)("iterator"),i=r(30);t.exports=r(26).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},function(t,n,r){var e=r(30),o=r(4)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},function(t,n,r){var e=r(33),o=r(4)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?r:i?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(3),o=r(23),i=r(4)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[i])?n:o(r)}},function(t,n,r){"use strict";var e=r(15),o=r(32),i=r(7);t.exports=function(t){for(var n=e(this),r=i(n.length),u=arguments.length,c=o(u>1?arguments[1]:void 0,r),a=u>2?arguments[2]:void 0,f=void 0===a?r:o(a,r);f>c;)n[c++]=t;return n}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(26),o=r(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(22)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(63)("keys"),o=r(24);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n,r){var e=r(12),o=r(7),i=r(32);t.exports=function(t){return function(n,r,u){var c,a=e(n),f=o(a.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){var e=r(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){"use strict";var e=r(2),o=r(8),i=r(22),u=r(48),c=r(10),a=r(35),f=r(5),s=r(34),l=r(21),h=r(7),p=r(90),v=r(39).f,d=r(6).f,y=r(61),g=r(31),m="prototype",b="Wrong index!",w=e.ArrayBuffer,_=e.DataView,x=e.Math,S=e.RangeError,E=e.Infinity,O=w,P=x.abs,A=x.pow,M=x.floor,j=x.log,F=x.LN2,L=o?"_b":"buffer",T=o?"_l":"byteLength",I=o?"_o":"byteOffset";function B(t,n,r){var e,o,i,u=new Array(r),c=8*r-n-1,a=(1<<c)-1,f=a>>1,s=23===n?A(2,-24)-A(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=P(t))!=t||t===E?(o=t!=t?1:0,e=a):(e=M(j(t)/F),t*(i=A(2,-e))<1&&(e--,i*=2),(t+=e+f>=1?s/i:s*A(2,1-f))*i>=2&&(e++,i/=2),e+f>=a?(o=0,e=a):e+f>=1?(o=(t*i-1)*A(2,n),e+=f):(o=t*A(2,f-1)*A(2,n),e=0));n>=8;u[l++]=255&o,o/=256,n-=8);for(e=e<<n|o,c+=n;c>0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function R(t,n,r){var e,o=8*r-n-1,i=(1<<o)-1,u=i>>1,c=o-7,a=r-1,f=t[a--],s=127&f;for(f>>=7;c>0;s=256*s+t[a],a--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[a],a--,c-=8);if(0===s)s=1-u;else{if(s===i)return e?NaN:f?-E:E;e+=A(2,n),s-=u}return(f?-1:1)*e*A(2,s-n)}function N(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function k(t){return[255&t]}function C(t){return[255&t,t>>8&255]}function U(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return B(t,52,8)}function W(t){return B(t,23,4)}function V(t,n,r){d(t[m],n,{get:function(){return this[r]}})}function G(t,n,r,e){var o=p(+r);if(o+n>t[T])throw S(b);var i=t[L]._b,u=o+t[I],c=i.slice(u,u+n);return e?c:c.reverse()}function q(t,n,r,e,o,i){var u=p(+r);if(u+n>t[T])throw S(b);for(var c=t[L]._b,a=u+t[I],f=e(+o),s=0;s<n;s++)c[a+s]=f[i?s:n-s-1]}if(u.ABV){if(!f(function(){w(1)})||!f(function(){new w(-1)})||f(function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name})){for(var z,H=(w=function(t){return s(this,w),new O(p(t))})[m]=O[m],Y=v(O),K=0;Y.length>K;)(z=Y[K++])in w||c(w,z,O[z]);i||(H.constructor=w)}var J=new _(new w(2)),X=_[m].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||a(_[m],{setInt8:function(t,n){X.call(this,t,n<<24>>24)},setUint8:function(t,n){X.call(this,t,n<<24>>24)}},!0)}else w=function(t){s(this,w,"ArrayBuffer");var n=p(t);this._b=y.call(new Array(n),0),this[T]=n},_=function(t,n,r){s(this,_,"DataView"),s(t,w,"DataView");var e=t[T],o=l(n);if(o<0||o>e)throw S("Wrong offset!");if(o+(r=void 0===r?e-o:h(r))>e)throw S("Wrong length!");this[L]=t,this[I]=o,this[T]=r},o&&(V(w,"byteLength","_l"),V(_,"buffer","_b"),V(_,"byteLength","_l"),V(_,"byteOffset","_o")),a(_[m],{getInt8:function(t){return G(this,1,t)[0]<<24>>24},getUint8:function(t){return G(this,1,t)[0]},getInt16:function(t){var n=G(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=G(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return N(G(this,4,t,arguments[1]))},getUint32:function(t){return N(G(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return R(G(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return R(G(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){q(this,1,t,k,n)},setUint8:function(t,n){q(this,1,t,k,n)},setInt16:function(t,n){q(this,2,t,C,n,arguments[2])},setUint16:function(t,n){q(this,2,t,C,n,arguments[2])},setInt32:function(t,n){q(this,4,t,U,n,arguments[2])},setUint32:function(t,n){q(this,4,t,U,n,arguments[2])},setFloat32:function(t,n){q(this,4,t,W,n,arguments[2])},setFloat64:function(t,n){q(this,8,t,D,n,arguments[2])}});g(w,"ArrayBuffer"),g(_,"DataView"),c(_[m],u.VIEW,!0),n.ArrayBuffer=w,n.DataView=_},function(t,n,r){var e=r(1),o=r(2).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(7),o=r(74),i=r(20);t.exports=function(t,n,r,u){var c=String(i(t)),a=c.length,f=void 0===r?" ":String(r),s=e(n);if(s<=a||""==f)return c;var l=s-a,h=o.call(f,Math.ceil(l/f.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){var e=r(19),o=r(12),i=r(36).f;t.exports=function(t){return function(n){for(var r,u=o(n),c=e(u),a=c.length,f=0,s=[];a>f;)i.call(u,r=c[f++])&&s.push(t?[r,u[r]]:u[r]);return s}}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){var e=r(1),o=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&o(t)===t}},function(t,n,r){var e=r(1),o=r(33),i=r(4)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,r){"use strict";var e=r(21),o=r(20);t.exports=function(t){var n=String(o(this)),r="",i=e(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n))1&i&&(r+=n);return r}},function(t,n,r){var e=r(12),o=r(39).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(e(t))}},function(t,n,r){n.f=r(4)},function(t,n,r){"use strict";var e=r(23);t.exports.f=function(t){return new function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=e(n),this.reject=e(r)}(t)}},function(t,n,r){var e=r(39),o=r(43),i=r(3),u=r(2).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(i(t)),r=o.f;return r?n.concat(r(t)):n}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){"use strict";var e=r(35),o=r(17).getWeak,i=r(3),u=r(1),c=r(34),a=r(45),f=r(37),s=r(9),l=r(27),h=f(5),p=f(6),v=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,n){return h(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=p(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,i){var f=t(function(t,e){c(t,f,n,"_i"),t._t=n,t._i=v++,t._l=void 0,void 0!=e&&a(e,r,t[i],t)});return e(f.prototype,{delete:function(t){if(!u(t))return!1;var r=o(t);return!0===r?d(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=o(t);return!0===r?d(l(this,n)).has(t):r&&s(r,this._i)}}),f},def:function(t,n,r){var e=o(i(n),!0);return!0===e?d(t).set(n,r):e[t._i]=r,t},ufstore:d}},function(t,n,r){"use strict";var e=r(19),o=r(43),i=r(36),u=r(15),c=r(66),a=Object.assign;t.exports=!a||r(5)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e})?function(t,n){for(var r=u(t),a=arguments.length,f=1,s=o.f,l=i.f;a>f;)for(var h,p=c(arguments[f++]),v=s?e(p).concat(s(p)):e(p),d=v.length,y=0;d>y;)l.call(p,h=v[y++])&&(r[h]=p[h]);return r}:a},function(t,n,r){var e=r(3);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},function(t,n,r){"use strict";var e=r(6).f,o=r(38),i=r(35),u=r(16),c=r(34),a=r(45),f=r(85),s=r(86),l=r(47),h=r(8),p=r(17).fastKey,v=r(27),d=h?"_s":"size",y=function(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,f){var s=t(function(t,e){c(t,s,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=e&&a(e,r,t[f],t)});return i(s.prototype,{clear:function(){for(var t=v(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var r=v(this,n),e=y(r,t);if(e){var o=e.n,i=e.p;delete r._i[e.i],e.r=!0,i&&(i.n=o),o&&(o.p=i),r._f==e&&(r._f=o),r._l==e&&(r._l=i),r[d]--}return!!e},forEach:function(t){v(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(v(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return v(this,n)[d]}}),s},def:function(t,n,r){var e,o,i=y(t,n);return i?i.v=r:(t._l=i={i:o=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=i),e&&(e.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,n,r){f(t,n,function(t,r){this._t=v(t,n),this._k=r,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))},r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(15),o=r(32),i=r(7);t.exports=[].copyWithin||function(t,n){var r=e(this),u=i(r.length),c=o(t,u),a=o(n,u),f=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===f?u:o(f,u))-a,u-c),l=1;for(a<c&&c<a+s&&(l=-1,a+=s-1,c+=s-1);s-- >0;)a in r?r[c]=r[a]:delete r[c],c+=l,a+=l;return r}},function(t,n,r){"use strict";var e=r(22),o=r(0),i=r(18),u=r(10),c=r(30),a=r(199),f=r(31),s=r(29),l=r(4)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,n,r,v,d,y,g){a(r,n,v);var m,b,w,_=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=n+" Iterator",S="values"==d,E=!1,O=t.prototype,P=O[l]||O["@@iterator"]||d&&O[d],A=P||_(d),M=d?S?_("entries"):A:void 0,j="Array"==n&&O.entries||P;if(j&&(w=s(j.call(new t)))!==Object.prototype&&w.next&&(f(w,x,!0),e||"function"==typeof w[l]||u(w,l,p)),S&&P&&"values"!==P.name&&(E=!0,A=function(){return P.call(this)}),e&&!g||!h&&!E&&O[l]||u(O,l,A),c[n]=A,c[x]=p,d)if(m={values:S?A:_("values"),keys:y?A:_("keys"),entries:M},g)for(b in m)b in O||i(O,b,m[b]);else o(o.P+o.F*(h||E),n,m);return m}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){var e=r(33);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(2).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(9),o=r(12),i=r(65)(!1),u=r(64)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),a=0,f=[];for(r in c)r!=u&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~i(f,r)||f.push(r));return f}},function(t,n,r){var e=r(21),o=r(7);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=o(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){t.exports=!r(8)&&!r(5)(function(){return 7!=Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t);var r=n.parentElement,e=r.getElementsByClassName("heading"),o=r.getElementsByTagName("label").item(0);o&&o.classList.add("otgs-on-off-switch");var i=document.createElement("label");i.classList.add("otgs-toggle-group"),i.appendChild(n),i.appendChild(o);var u=document.createElement("span");u.classList.add("otgs-switch__onoff");var c=document.createElement("span");c.classList.add("otgs-switch__onoff-label");var a=document.createElement("span");a.classList.add("otgs-switch__onoff-inner");var f=document.createElement("span");f.classList.add("otgs-switch__onoff-switch"),c.appendChild(a),c.appendChild(f),u.appendChild(c),i.appendChild(u),r.appendChild(i),e.length?e.item(e.length-1).parentNode.insertBefore(i,e.item(e.length-1).nextSibling):r.insertBefore(i,r.firstChild)}},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),r(213);var e,o=r(92),i=(e=o)&&e.__esModule?e:{default:e};n.default=function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t);var r=n.querySelectorAll('input[type="checkbox"]');r&&Array.from(r).map(function(t){return new i.default(t)})}},function(t,n){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){(function(n){!function(n){"use strict";var r,e=Object.prototype,o=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",f="object"==typeof t,s=n.regeneratorRuntime;if(s)f&&(t.exports=s);else{(s=n.regeneratorRuntime=f?t.exports:{}).wrap=w;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",d={},y={};y[u]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(L([])));m&&m!==e&&o.call(m,u)&&(y=m);var b=E.prototype=x.prototype=Object.create(y);S.prototype=b.constructor=E,E.constructor=S,E[a]=S.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===S||"GeneratorFunction"===(n.displayName||n.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(b),t},s.awrap=function(t){return{__await:t}},O(P.prototype),P.prototype[c]=function(){return this},s.AsyncIterator=P,s.async=function(t,n,r,e){var o=new P(w(t,n,r,e));return s.isGeneratorFunction(n)?o:o.next().then(function(t){return t.done?t.value:o.next()})},O(b),b[a]="Generator",b[u]=function(){return this},b.toString=function(){return"[object Generator]"},s.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},s.values=L,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(e,o){return c.type="throw",c.arg=t,n.next=e,o&&(n.method="next",n.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return e("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),f=o.call(u,"finallyLoc");if(a&&f){if(this.prev<u.catchLoc)return e(u.catchLoc,!0);if(this.prev<u.finallyLoc)return e(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return e(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return e(u.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&o.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var i=e;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:L(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=r),d}}}function w(t,n,r,e){var o=n&&n.prototype instanceof x?n:x,i=Object.create(o.prototype),u=new F(e||[]);return i._invoke=function(t,n,r){var e=l;return function(o,i){if(e===p)throw new Error("Generator is already running");if(e===v){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var c=A(u,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===l)throw e=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=p;var a=_(t,n,r);if("normal"===a.type){if(e=r.done?v:h,a.arg===d)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(e=v,r.method="throw",r.arg=a.arg)}}}(t,r,u),i}function _(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}function x(){}function S(){}function E(){}function O(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function P(t){function r(n,e,i,u){var c=_(t[n],t,e);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&o.call(f,"__await")?Promise.resolve(f.__await).then(function(t){r("next",t,i,u)},function(t){r("throw",t,i,u)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},u)}u(c.arg)}var e;"object"==typeof n.process&&n.process.domain&&(r=n.process.domain.bind(r)),this._invoke=function(t,n){function o(){return new Promise(function(e,o){r(t,n,e,o)})}return e=e?e.then(o,o):o()}}function A(t,n){var e=t.iterator[n.method];if(e===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=r,A(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=_(e,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=r),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function j(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function L(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,i=function n(){for(;++e<t.length;)if(o.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=r,n.done=!0,n};return i.next=i}}return{next:T}}function T(){return{value:r,done:!0}}}("object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,r(94))},function(t,n,r){for(var e=r(56),o=r(19),i=r(18),u=r(2),c=r(10),a=r(30),f=r(4),s=f("iterator"),l=f("toStringTag"),h=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(p),d=0;d<v.length;d++){var y,g=v[d],m=p[g],b=u[g],w=b&&b.prototype;if(w&&(w[s]||c(w,s,h),w[l]||c(w,l,g),a[g]=h,m))for(y in e)w[y]||i(w,y,e[y],!0)}},function(t,n,r){var e=r(0),o=r(54);e(e.G+e.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,n,r){var e=r(2),o=r(0),i=r(42),u=[].slice,c=/MSIE .\./.test(i),a=function(t){return function(n,r){var e=arguments.length>2,o=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,o)}:n,r)}};o(o.G+o.B+o.F*c,{setTimeout:a(e.setTimeout),setInterval:a(e.setInterval)})},function(t,n,r){"use strict";var e=r(0),o=r(69),i=r(42);e(e.P+e.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){"use strict";var e=r(0),o=r(69),i=r(42);e(e.P+e.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){var e=r(0),o=r(78),i=r(12),u=r(13),c=r(51);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=i(t),a=u.f,f=o(e),s={},l=0;f.length>l;)void 0!==(r=a(e,n=f[l++]))&&c(s,n,r);return s}})},function(t,n,r){var e=r(0),o=r(70)(!0);e(e.S,"Object",{entries:function(t){return o(t)}})},function(t,n,r){var e=r(0),o=r(70)(!1);e(e.S,"Object",{values:function(t){return o(t)}})},function(t,n,r){"use strict";var e=r(0),o=r(65)(!0);e(e.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(28)("includes")},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(0),o=r(49),i=Math.exp;e(e.S,"Math",{tanh:function(t){var n=o(t=+t),r=o(-t);return n==1/0?1:r==1/0?-1:(n-r)/(i(t)+i(-t))}})},function(t,n,r){var e=r(0),o=r(49),i=Math.exp;e(e.S+e.F*r(5)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(50)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(71)})},function(t,n,r){var e=r(0),o=Math.imul;e(e.S+e.F*r(5)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,n){var r=+t,e=+n,o=65535&r,i=65535&e;return 0|o*i+((65535&r>>>16)*i+o*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0),o=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,i=0,u=0,c=arguments.length,a=0;u<c;)a<(r=o(arguments[u++]))?(i=i*(e=a/r)*e+1,a=r):i+=r>0?(e=r/a)*e:r;return a===1/0?1/0:a*Math.sqrt(i)}})},function(t,n,r){var e=r(50),o=Math.pow,i=o(2,-52),u=o(2,-23),c=o(2,127)*(2-u),a=o(2,-126);t.exports=Math.fround||function(t){var n,r,o=Math.abs(t),f=e(t);return o<a?f*(o/a/u+1/i-1/i)*a*u:(r=(n=(1+u/i)*o)-(n-o))>c||r!=r?f*(1/0):f*r}},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(114)})},function(t,n,r){var e=r(0),o=r(49);e(e.S+e.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,n,r){var e=r(0),o=Math.exp;e(e.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),o=r(50);e(e.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(0),o=Math.atanh;e(e.S+e.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(0),o=Math.asinh;e(e.S+e.F*!(o&&1/o(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,r){var e=r(0),o=r(71),i=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,n,r){var e=r(0);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(0);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(0),o=r(72),i=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,n,r){var e=r(0);e(e.S,"Number",{isInteger:r(72)})},function(t,n,r){var e=r(0),o=r(2).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,n,r){var e=r(0);e(e.P,"Array",{fill:r(61)}),r(28)("fill")},function(t,n,r){"use strict";var e=r(0),o=r(37)(6),i="findIndex",u=!0;i in[]&&Array(1)[i](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(28)(i)},function(t,n,r){"use strict";var e=r(0),o=r(37)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),e(e.P+e.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(28)("find")},function(t,n,r){var e=r(0);e(e.P,"Array",{copyWithin:r(84)}),r(28)("copyWithin")},function(t,n,r){"use strict";var e=r(0),o=r(51);e(e.S+e.F*r(5)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)o(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(16),o=r(0),i=r(15),u=r(82),c=r(58),a=r(7),f=r(51),s=r(57);o(o.S+o.F*!r(46)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,o,l,h=i(t),p="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,y=void 0!==d,g=0,m=s(h);if(y&&(d=e(d,v>2?arguments[2]:void 0,2)),void 0==m||p==Array&&c(m))for(r=new p(n=a(h.length));n>g;g++)f(r,g,y?d(h[g],g):h[g]);else for(l=m.call(h),r=new p;!(o=l.next()).done;g++)f(r,g,y?u(l,d,[o.value,g],!0):o.value);return r.length=g,r}})},function(t,n,r){r(41)("search",1,function(t,n,r){return[function(r){"use strict";var e=t(this),o=void 0==r?void 0:r[n];return void 0!==o?o.call(r,e):new RegExp(r)[n](String(e))},r]})},function(t,n,r){r(41)("split",2,function(t,n,e){"use strict";var o=r(73),i=e,u=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var c=void 0===/()??/.exec("")[1];e=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!o(t))return i.call(r,t,n);var e,a,f,s,l,h=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,d=void 0===n?4294967295:n>>>0,y=new RegExp(t.source,p+"g");for(c||(e=new RegExp("^"+y.source+"$(?!\\s)",p));(a=y.exec(r))&&!((f=a.index+a[0].length)>v&&(h.push(r.slice(v,a.index)),!c&&a.length>1&&a[0].replace(e,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a.length>1&&a.index<r.length&&u.apply(h,a.slice(1)),s=a[0].length,v=f,h.length>=d));)y.lastIndex===a.index&&y.lastIndex++;return v===r.length?!s&&y.test("")||h.push(""):h.push(r.slice(v)),h.length>d?h.slice(0,d):h}}else"0".split(void 0,0).length&&(e=function(t,n){return void 0===t&&0===n?[]:i.call(this,t,n)});return[function(r,o){var i=t(this),u=void 0==r?void 0:r[n];return void 0!==u?u.call(r,i,o):e.call(String(i),r,o)},e]})},function(t,n,r){r(41)("replace",2,function(t,n,r){return[function(e,o){"use strict";var i=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,i,o):r.call(String(i),e,o)},r]})},function(t,n,r){r(41)("match",1,function(t,n,r){return[function(r){"use strict";var e=t(this),o=void 0==r?void 0:r[n];return void 0!==o?o.call(r,e):new RegExp(r)[n](String(e))},r]})},function(t,n,r){"use strict";var e=r(3);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){r(8)&&"g"!=/./g.flags&&r(6).f(RegExp.prototype,"flags",{configurable:!0,get:r(140)})},function(t,n,r){"use strict";var e=r(0),o=r(53);e(e.P+e.F*r(52)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){"use strict";var e=r(0),o=r(7),i=r(53),u="".endsWith;e(e.P+e.F*r(52)("endsWith"),"String",{endsWith:function(t){var n=i(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=o(n.length),c=void 0===r?e:Math.min(o(r),e),a=String(t);return u?u.call(n,a,c):n.slice(c-a.length,c)===a}})},function(t,n,r){"use strict";var e=r(0),o=r(7),i=r(53),u="".startsWith;e(e.P+e.F*r(52)("startsWith"),"String",{startsWith:function(t){var n=i(this,t,"startsWith"),r=o(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){var e=r(0);e(e.P,"String",{repeat:r(74)})},function(t,n,r){var e=r(21),o=r(20);t.exports=function(t){return function(n,r){var i,u,c=String(o(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}}},function(t,n,r){"use strict";var e=r(0),o=r(146)(!1);e(e.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,n,r){var e=r(0),o=r(32),i=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],o(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?i(n):i(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),o=r(12),i=r(7);e(e.S,"String",{raw:function(t){for(var n=o(t.raw),r=i(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c<e&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,r){var e=r(6).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||r(8)&&e(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(55).set})},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(152)})},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(81)})},function(t,n,r){r(11)("getOwnPropertyNames",function(){return r(75).f})},function(t,n,r){var e=r(15),o=r(19);r(11)("keys",function(){return function(t){return o(e(t))}})},function(t,n,r){var e=r(15),o=r(29);r(11)("getPrototypeOf",function(){return function(t){return o(e(t))}})},function(t,n,r){var e=r(12),o=r(13).f;r(11)("getOwnPropertyDescriptor",function(){return function(t,n){return o(e(t),n)}})},function(t,n,r){var e=r(1);r(11)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},function(t,n,r){var e=r(1);r(11)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(1);r(11)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(1),o=r(17).onFreeze;r(11)("preventExtensions",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n,r){var e=r(1),o=r(17).onFreeze;r(11)("seal",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n,r){var e=r(1),o=r(17).onFreeze;r(11)("freeze",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n,r){var e=r(19),o=r(43),i=r(36);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,c=r(t),a=i.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},function(t,n,r){var e=r(2),o=r(26),i=r(22),u=r(76),c=r(6).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){"use strict";var e=r(2),o=r(9),i=r(8),u=r(0),c=r(18),a=r(17).KEY,f=r(5),s=r(63),l=r(31),h=r(24),p=r(4),v=r(76),d=r(166),y=r(165),g=r(87),m=r(3),b=r(1),w=r(12),_=r(40),x=r(25),S=r(38),E=r(75),O=r(13),P=r(6),A=r(19),M=O.f,j=P.f,F=E.f,L=e.Symbol,T=e.JSON,I=T&&T.stringify,B=p("_hidden"),R=p("toPrimitive"),N={}.propertyIsEnumerable,k=s("symbol-registry"),C=s("symbols"),U=s("op-symbols"),D=Object.prototype,W="function"==typeof L,V=e.QObject,G=!V||!V.prototype||!V.prototype.findChild,q=i&&f(function(){return 7!=S(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=M(D,n);e&&delete D[n],j(t,n,r),e&&t!==D&&j(D,n,e)}:j,z=function(t){var n=C[t]=S(L.prototype);return n._k=t,n},H=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Y=function(t,n,r){return t===D&&Y(U,n,r),m(t),n=_(n,!0),m(r),o(C,n)?(r.enumerable?(o(t,B)&&t[B][n]&&(t[B][n]=!1),r=S(r,{enumerable:x(0,!1)})):(o(t,B)||j(t,B,x(1,{})),t[B][n]=!0),q(t,n,r)):j(t,n,r)},K=function(t,n){m(t);for(var r,e=y(n=w(n)),o=0,i=e.length;i>o;)Y(t,r=e[o++],n[r]);return t},J=function(t){var n=N.call(this,t=_(t,!0));return!(this===D&&o(C,t)&&!o(U,t))&&(!(n||!o(this,t)||!o(C,t)||o(this,B)&&this[B][t])||n)},X=function(t,n){if(t=w(t),n=_(n,!0),t!==D||!o(C,n)||o(U,n)){var r=M(t,n);return!r||!o(C,n)||o(t,B)&&t[B][n]||(r.enumerable=!0),r}},$=function(t){for(var n,r=F(w(t)),e=[],i=0;r.length>i;)o(C,n=r[i++])||n==B||n==a||e.push(n);return e},Q=function(t){for(var n,r=t===D,e=F(r?U:w(t)),i=[],u=0;e.length>u;)!o(C,n=e[u++])||r&&!o(D,n)||i.push(C[n]);return i};W||(c((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===D&&n.call(U,r),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),q(this,t,x(1,r))};return i&&G&&q(D,t,{configurable:!0,set:n}),z(t)}).prototype,"toString",function(){return this._k}),O.f=X,P.f=Y,r(39).f=E.f=$,r(36).f=J,r(43).f=Q,i&&!r(22)&&c(D,"propertyIsEnumerable",J,!0),v.f=function(t){return z(p(t))}),u(u.G+u.W+u.F*!W,{Symbol:L});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)p(Z[tt++]);for(var nt=A(p.store),rt=0;nt.length>rt;)d(nt[rt++]);u(u.S+u.F*!W,"Symbol",{for:function(t){return o(k,t+="")?k[t]:k[t]=L(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var n in k)if(k[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!W,"Object",{create:function(t,n){return void 0===n?S(t):K(S(t),n)},defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),T&&u(u.S+u.F*(!W||f(function(){var t=L();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(b(n)||void 0!==t)&&!H(t))return g(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!H(n))return n}),e[1]=n,I.apply(T,e)}}),L.prototype[R]||r(10)(L.prototype,R,L.prototype.valueOf),l(L,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){var e=r(3),o=r(1),i=r(77);t.exports=function(t,n){if(e(t),o(n)&&n.constructor===t)return n;var r=i.f(t);return(0,r.resolve)(n),r.promise}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){var e=r(2),o=r(54).set,i=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,a="process"==r(33)(u);t.exports=function(){var t,n,r,f=function(){var e,o;for(a&&(e=u.domain)&&e.exit();t;){o=t.fn,t=t.next;try{o()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(a)r=function(){u.nextTick(f)};else if(!i||e.navigator&&e.navigator.standalone)if(c&&c.resolve){var s=c.resolve(void 0);r=function(){s.then(f)}}else r=function(){o.call(e,f)};else{var l=!0,h=document.createTextNode("");new i(f).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(e){var o={fn:e,next:void 0};n&&(n.next=o),t||(t=o,r()),n=o}}},function(t,n,r){"use strict";var e,o,i,u,c=r(22),a=r(2),f=r(16),s=r(59),l=r(0),h=r(1),p=r(23),v=r(34),d=r(45),y=r(60),g=r(54).set,m=r(170)(),b=r(77),w=r(169),_=r(42),x=r(168),S=a.TypeError,E=a.process,O=E&&E.versions,P=O&&O.v8||"",A=a.Promise,M="process"==s(E),j=function(){},F=o=b.f,L=!!function(){try{var t=A.resolve(1),n=(t.constructor={})[r(4)("species")]=function(t){t(j,j)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof n&&0!==P.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),T=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},I=function(t,n){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var e=t._v,o=1==t._s,i=0,u=function(n){var r,i,u,c=o?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{c?(o||(2==t._h&&N(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?f(S("Promise-chain cycle")):(i=T(r))?i.call(r,a,f):a(r)):f(e)}catch(t){s&&!u&&s.exit(),f(t)}};r.length>i;)u(r[i++]);t._c=[],t._n=!1,n&&!t._h&&B(t)})}},B=function(t){g.call(a,function(){var n,r,e,o=t._v,i=R(t);if(i&&(n=w(function(){M?E.emit("unhandledRejection",o,t):(r=a.onunhandledrejection)?r({promise:t,reason:o}):(e=a.console)&&e.error&&e.error("Unhandled promise rejection",o)}),t._h=M||R(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){g.call(a,function(){var n;M?E.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},k=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),I(n,!0))},C=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw S("Promise can't be resolved itself");(n=T(t))?m(function(){var e={_w:r,_d:!1};try{n.call(t,f(C,e,1),f(k,e,1))}catch(t){k.call(e,t)}}):(r._v=t,r._s=1,I(r,!1))}catch(t){k.call({_w:r,_d:!1},t)}}};L||(A=function(t){v(this,A,"Promise","_h"),p(t),e.call(this);try{t(f(C,this,1),f(k,this,1))}catch(t){k.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(35)(A.prototype,{then:function(t,n){var r=F(y(this,A));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=M?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&I(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new e;this.promise=t,this.resolve=f(C,t,1),this.reject=f(k,t,1)},b.f=F=function(t){return t===A||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!L,{Promise:A}),r(31)(A,"Promise"),r(47)("Promise"),u=r(26).Promise,l(l.S+l.F*!L,"Promise",{reject:function(t){var n=F(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!L),"Promise",{resolve:function(t){return x(c&&this===u?A:this,t)}}),l(l.S+l.F*!(L&&r(46)(function(t){A.all(t).catch(j)})),"Promise",{all:function(t){var n=this,r=F(n),e=r.resolve,o=r.reject,i=w(function(){var r=[],i=0,u=1;d(t,!1,function(t){var c=i++,a=!1;r.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,r[c]=t,--u||e(r))},o)}),--u||e(r)});return i.e&&o(i.v),r.promise},race:function(t){var n=this,r=F(n),e=r.reject,o=w(function(){d(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return o.e&&e(o.v),r.promise}})},function(t,n,r){var e=r(0),o=r(55);o&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){o.check(t,n);try{return o.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){var e=r(6),o=r(13),i=r(29),u=r(9),c=r(0),a=r(25),f=r(3),s=r(1);c(c.S,"Reflect",{set:function t(n,r,c){var l,h,p=arguments.length<4?n:arguments[3],v=o.f(f(n),r);if(!v){if(s(h=i(n)))return t(h,r,c,p);v=a(0)}if(u(v,"value")){if(!1===v.writable||!s(p))return!1;if(l=o.f(p,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,e.f(p,r,l)}else e.f(p,r,a(0,c));return!0}return void 0!==v.set&&(v.set.call(p,c),!0)}})},function(t,n,r){var e=r(0),o=r(3),i=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(78)})},function(t,n,r){var e=r(0),o=r(3),i=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),o=r(29),i=r(3);e(e.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,n,r){var e=r(13),o=r(0),i=r(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(i(t),n)}})},function(t,n,r){var e=r(13),o=r(29),i=r(9),u=r(0),c=r(1),a=r(3);u(u.S,"Reflect",{get:function t(n,r){var u,f,s=arguments.length<3?n:arguments[2];return a(n)===s?n[r]:(u=e.f(n,r))?i(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(f=o(n))?t(f,r,s):void 0}})},function(t,n,r){var e=r(0),o=r(13).f,i=r(3);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=o(i(t),n);return!(r&&!r.configurable)&&delete t[n]}})},function(t,n,r){var e=r(6),o=r(0),i=r(3),u=r(40);o(o.S+o.F*r(5)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,r){i(t),n=u(n,!0),i(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},function(t,n,r){"use strict";var e=r(23),o=r(1),i=r(79),u=[].slice,c={};t.exports=Function.bind||function(t){var n=e(this),r=u.call(arguments,1),a=function(){var e=r.concat(u.call(arguments));return this instanceof a?function(t,n,r){if(!(n in c)){for(var e=[],o=0;o<n;o++)e[o]="a["+o+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[n](t,r)}(n,e.length,e):i(n,e,t)};return o(n.prototype)&&(a.prototype=n.prototype),a}},function(t,n,r){var e=r(0),o=r(38),i=r(23),u=r(3),c=r(1),a=r(5),f=r(183),s=(r(2).Reflect||{}).construct,l=a(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),h=!a(function(){s(function(){})});e(e.S+e.F*(l||h),"Reflect",{construct:function(t,n){i(t),u(n);var r=arguments.length<3?t:i(arguments[2]);if(h&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(f.apply(t,e))}var a=r.prototype,p=o(c(a)?a:Object.prototype),v=Function.apply.call(t,p,n);return c(v)?v:p}})},function(t,n,r){var e=r(0),o=r(23),i=r(3),u=(r(2).Reflect||{}).apply,c=Function.apply;e(e.S+e.F*!r(5)(function(){u(function(){})}),"Reflect",{apply:function(t,n,r){var e=o(t),a=i(r);return u?u(e,n,a):c.call(e,n,a)}})},function(t,n,r){"use strict";var e=r(80),o=r(27);r(44)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(o(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e,o=r(37)(0),i=r(18),u=r(17),c=r(81),a=r(80),f=r(1),s=r(5),l=r(27),h=u.getWeak,p=Object.isExtensible,v=a.ufstore,d={},y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(f(t)){var n=h(t);return!0===n?v(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},m=t.exports=r(44)("WeakMap",y,g,a,!0,!0);s(function(){return 7!=(new m).set((Object.freeze||Object)(d),7).get(d)})&&(c((e=a.getConstructor(y,"WeakMap")).prototype,g),u.NEED=!0,o(["delete","has","get","set"],function(t){var n=m.prototype,r=n[t];i(n,t,function(n,o){if(f(n)&&!p(n)){this._f||(this._f=new e);var i=this._f[t](n,o);return"set"==t?this:i}return r.call(this,n,o)})}))},function(t,n,r){"use strict";var e=r(83),o=r(27);t.exports=r(44)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(o(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){var e=r(1),o=r(55).set;t.exports=function(t,n,r){var i,u=n.constructor;return u!==r&&"function"==typeof u&&(i=u.prototype)!==r.prototype&&e(i)&&o&&o(t,i),t}},function(t,n,r){"use strict";var e=r(83),o=r(27);t.exports=r(44)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(o(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){r(14)("Float64",8,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(14)("Float32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(14)("Uint32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(14)("Int32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(14)("Uint16",2,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(14)("Int16",2,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(14)("Uint8",1,function(t){return function(n,r,e){return t(this,n,r,e)}},!0)},function(t,n,r){r(14)("Uint8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){"use strict";var e=r(38),o=r(25),i=r(31),u={};r(10)(u,r(4)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},function(t,n,r){var e=r(1),o=r(87),i=r(4)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){var e=r(200);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(6),o=r(3),i=r(19);t.exports=r(8)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,a=0;c>a;)e.f(t,r=u[a++],n[r]);return t}},function(t,n,r){r(14)("Int8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){var e=r(0);e(e.G+e.W+e.F*!r(48).ABV,{DataView:r(67).DataView})},function(t,n,r){"use strict";var e=r(0),o=r(48),i=r(67),u=r(3),c=r(32),a=r(7),f=r(1),s=r(2).ArrayBuffer,l=r(60),h=i.ArrayBuffer,p=i.DataView,v=o.ABV&&s.isView,d=h.prototype.slice,y=o.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||f(t)&&y in t}}),e(e.P+e.U+e.F*r(5)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),o=c(void 0===n?r:n,r),i=new(l(this,h))(a(o-e)),f=new p(this),s=new p(i),v=0;e<o;)s.setUint8(v++,f.getUint8(e++));return i}}),r(47)("ArrayBuffer")},function(t,n,r){"use strict";r(205),r(204),r(203),r(198),r(197),r(196),r(195),r(194),r(193),r(192),r(191),r(190),r(188),r(187),r(186),r(185),r(184),r(182),r(181),r(180),r(179),r(178),r(177),r(176),r(175),r(174),r(173),r(172),r(171),r(167),r(164),r(163),r(162),r(161),r(160),r(159),r(158),r(157),r(156),r(155),r(154),r(153),r(151),r(150),r(149),r(148),r(147),r(145),r(144),r(143),r(142),r(141),r(139),r(138),r(137),r(136),r(135),r(134),r(133),r(132),r(131),r(130),r(56),r(129),r(128),r(127),r(126),r(125),r(124),r(123),r(122),r(121),r(120),r(119),r(118),r(117),r(116),r(115),r(113),r(112),r(111),r(110),r(109),r(108),r(107),r(106),r(105),r(104),r(103),r(102),r(101),r(100),r(99),r(98),r(97),r(96),r(95);var e,o=r(93),i=(e=o)&&e.__esModule?e:{default:e};window.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll(".otgs-ui");t&&Array.from(t).map(function(t){return new i.default(t)})})},function(t,n){!function(t){"use strict";if(!t.fetch){var n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(n.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],e=function(t){return t&&DataView.prototype.isPrototypeOf(t)},o=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};s.prototype.append=function(t,n){t=c(t),n=a(n);var r=this.map[t];this.map[t]=r?r+","+n:n},s.prototype.delete=function(t){delete this.map[c(t)]},s.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},s.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},s.prototype.set=function(t,n){this.map[c(t)]=a(n)},s.prototype.forEach=function(t,n){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(n,this.map[r],r,this)},s.prototype.keys=function(){var t=[];return this.forEach(function(n,r){t.push(r)}),f(t)},s.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),f(t)},s.prototype.entries=function(){var t=[];return this.forEach(function(n,r){t.push([r,n])}),f(t)},n.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:0,statusText:""});return t.type="error",t};var u=[301,302,303,307,308];m.redirect=function(t,n){if(-1===u.indexOf(n))throw new RangeError("Invalid status code");return new m(null,{status:n,headers:{location:t}})},t.Headers=s,t.Request=y,t.Response=m,t.fetch=function(t,r){return new Promise(function(e,o){var i=new y(t,r),u=new XMLHttpRequest;u.onload=function(){var t,n,r={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",n=new s,t.split(/\r?\n/).forEach(function(t){var r=t.split(":"),e=r.shift().trim();if(e){var o=r.join(":").trim();n.append(e,o)}}),n)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;e(new m(o,r))},u.onerror=function(){o(new TypeError("Network request failed"))},u.ontimeout=function(){o(new TypeError("Network request failed"))},u.open(i.method,i.url,!0),"include"===i.credentials&&(u.withCredentials=!0),"responseType"in u&&n.blob&&(u.responseType="blob"),i.headers.forEach(function(t,n){u.setRequestHeader(n,t)}),u.send(void 0===i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var r={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return n.iterable&&(r[Symbol.iterator]=function(){return r}),r}function s(t){this.map={},t instanceof s?t.forEach(function(t,n){this.append(n,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(n){this.append(n,t[n])},this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise(function(n,r){t.onload=function(){n(t.result)},t.onerror=function(){r(t.error)}})}function p(t){var n=new FileReader,r=h(n);return n.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var n=new Uint8Array(t.byteLength);return n.set(new Uint8Array(t)),n.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(n.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(n.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(n.arrayBuffer&&n.blob&&e(t))this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!o(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,n,r,e=l(this);if(e)return e;if(this._bodyBlob)return t=this._bodyBlob,n=new FileReader,r=h(n),n.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var n=new Uint8Array(t),r=new Array(n.length),e=0;e<n.length;e++)r[e]=String.fromCharCode(n[e]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}function y(t,n){var r,e,o=(n=n||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new s(t.headers)),this.method=t.method,this.mode=t.mode,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"omit",!n.headers&&this.headers||(this.headers=new s(n.headers)),this.method=(r=n.method||this.method||"GET",e=r.toUpperCase(),i.indexOf(e)>-1?e:r),this.mode=n.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function g(t){var n=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),e=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");n.append(decodeURIComponent(e),decodeURIComponent(o))}}),n}function m(t,n){n||(n={}),this.type="default",this.status="status"in n?n.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new s(n.headers),this.url=n.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this)},function(t,n,r){r(207),t.exports=r(206)},,,,,function(t,n){}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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factory {
4
+
5
+ /**
6
+ * @param array $params
7
+ *
8
+ * @return OTGS_Installer_Plugin
9
+ */
10
+ public function create( array $params = array() ) {
11
+ return new OTGS_Installer_Plugin( $params );
12
+ }
13
+ }
vendor/otgs/installer/includes/class-otgs-installer-plugin-finder.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class OTGS_Installer_Plugin_Finder {
4
+
5
+ private $plugins;
6
+ private $plugin_factory;
7
+ private $repositories;
8
+
9
+ public function __construct( OTGS_Installer_Plugin_Factory $plugin_factory, array $repositories ) {
10
+ $this->plugin_factory = $plugin_factory;
11
+ $this->repositories = $repositories;
12
+ $this->load();
13
+ }
14
+
15
+ private function load() {
16
+ if ( ! $this->plugins ) {
17
+ foreach ( $this->repositories as $repo_key => $repository ) {
18
+ foreach ( $repository['data']['downloads']['plugins'] as $slug => $plugin ) {
19
+ $this->plugins[ $repo_key ][ $slug ] = $this->plugin_factory->create( array(
20
+ 'name' => $plugin['name'],
21
+ 'slug' => $plugin['slug'],
22
+ 'description' => $plugin['description'],
23
+ 'changelog' => $plugin['changelog'],
24
+ 'version' => $plugin['version'],
25
+ 'date' => $plugin['date'],
26
+ 'url' => $plugin['url'],
27
+ 'free_on_wporg' => isset( $plugin['free-on-wporg'] ) ? $plugin['free-on-wporg'] : '',
28
+ 'fallback_on_wporg' => isset( $plugin['fallback-free-on-wporg'] ) ? $plugin['fallback-free-on-wporg'] : '',
29
+ 'basename' => $plugin['basename'],
30
+ 'external_repo' => isset( $plugin['external-repo'] ) ? $plugin['external-repo'] : '',
31
+ 'is_lite' => isset( $plugin['is-lite'] ) ? $plugin['is-lite'] : '',
32
+ 'repo' => $repo_key,
33
+ ) );
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ public function get_plugin( $slug, $repo ) {
40
+ foreach ( $this->plugins[ $repo ] as $plugin ) {
41
+ if ( $slug === $plugin->get_slug() ) {
42
+ return $plugin;
43
+ }
44
+ }
45
+ return null;
46
+ }
47
+
48
+ public function get_plugin_by_name( $name ) {
49
+ foreach ( $this->plugins as $repo ) {
50
+ foreach ( $repo as $plugin ) {
51
+ if ( $name === $plugin->get_name() ) {
52
+ return $plugin;
53
+ }
54
+ }
55
+ }
56
+ return null;
57
+ }
58
+ }
vendor/otgs/installer/includes/class-otgs-installer-plugin.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class OTGS_Installer_Plugin {
4
+
5
+ private $name;
6
+ private $slug;
7
+ private $description;
8
+ private $changelog;
9
+ private $version;
10
+ private $date;
11
+ private $url;
12
+ private $free_on_wporg;
13
+ private $fallback_on_wporg;
14
+ private $basename;
15
+ private $external_repo;
16
+ private $is_lite;
17
+ private $repo;
18
+
19
+ public function __construct( array $params = array() ) {
20
+ foreach ( get_object_vars( $this ) as $property => $value ) {
21
+ if ( array_key_exists( $property, $params ) ) {
22
+ $this->$property = $params[ $property ];
23
+ }
24
+ }
25
+ }
26
+
27
+ /**
28
+ * @return string
29
+ */
30
+ public function get_name() {
31
+ return $this->name;
32
+ }
33
+
34
+ /**
35
+ * @return string
36
+ */
37
+ public function get_slug() {
38
+ return $this->slug;
39
+ }
40
+
41
+ /**
42
+ * @return string
43
+ */
44
+ public function get_description() {
45
+ return $this->description;
46
+ }
47
+
48
+ /**
49
+ * @return string
50
+ */
51
+ public function get_changelog() {
52
+ return $this->changelog;
53
+ }
54
+
55
+ /**
56
+ * @return string
57
+ */
58
+ public function get_version() {
59
+ return $this->version;
60
+ }
61
+
62
+ /**
63
+ * @return string
64
+ */
65
+ public function get_date() {
66
+ return $this->date;
67
+ }
68
+
69
+ /**
70
+ * @return string
71
+ */
72
+ public function get_url() {
73
+ return $this->url;
74
+ }
75
+
76
+ /**
77
+ * @return string
78
+ */
79
+ public function get_repo() {
80
+ return $this->repo;
81
+ }
82
+
83
+ /**
84
+ * @return bool
85
+ */
86
+ public function is_free_on_wporg() {
87
+ return (bool) $this->free_on_wporg;
88
+ }
89
+
90
+ /**
91
+ * @return bool
92
+ */
93
+ public function has_fallback_on_wporg() {
94
+ return (bool) $this->fallback_on_wporg;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function get_basename() {
101
+ return $this->basename;
102
+ }
103
+
104
+ /**
105
+ * @return string
106
+ */
107
+ public function get_external_repo() {
108
+ return $this->external_repo;
109
+ }
110
+
111
+ /**
112
+ * @return string
113
+ */
114
+ public function is_lite() {
115
+ return $this->is_lite;
116
+ }
117
+ }
vendor/otgs/installer/includes/class-otgs-installer-plugins-page-notice.php CHANGED
@@ -13,8 +13,11 @@ class OTGS_Installer_Plugins_Page_Notice {
13
  */
14
  private $template_service;
15
 
16
- public function __construct( OTGS_Installer_Twig_Template_Service $template_service ) {
 
 
17
  $this->template_service = $template_service;
 
18
  }
19
 
20
  public function add_hooks() {
@@ -22,7 +25,7 @@ class OTGS_Installer_Plugins_Page_Notice {
22
  add_action( 'after_plugin_row_' . $plugin_id, array(
23
  $this,
24
  'show_purchase_notice_under_plugin'
25
- ), 10, 3 );
26
  }
27
  }
28
 
@@ -40,13 +43,19 @@ class OTGS_Installer_Plugins_Page_Notice {
40
  /**
41
  * @param string $plugin_file
42
  */
43
- public function show_purchase_notice_under_plugin( $plugin_file ) {
44
  $should_display_subscription_notice = isset( $this->plugins[ $plugin_file ][ self::DISPLAY_SUBSCRIPTION_NOTICE_KEY ] )
45
  ? $this->plugins[ $plugin_file ][ self::DISPLAY_SUBSCRIPTION_NOTICE_KEY ]
46
  : false;
47
 
 
 
48
  if ( $should_display_subscription_notice ) {
49
- echo $this->template_service->show( $this->get_model(), self::TEMPLATE );
 
 
 
 
50
  }
51
  }
52
 
@@ -56,13 +65,7 @@ class OTGS_Installer_Plugins_Page_Notice {
56
  private function get_model() {
57
  $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
58
 
59
- $tr_classes = 'plugin-update-tr';
60
- $notice_classes = 'update-message installer-q-icon';
61
-
62
- if ( version_compare( get_bloginfo( 'version' ), '4.6', '>=' ) ) {
63
- $tr_classes = 'plugin-update-tr installer-plugin-update-tr';
64
- $notice_classes = 'notice inline notice-warning notice-alt';
65
- }
66
 
67
  if ( is_multisite() ) {
68
  if ( is_network_admin() ) {
@@ -86,4 +89,34 @@ class OTGS_Installer_Plugins_Page_Notice {
86
  'col_count' => $wp_list_table->get_column_count(),
87
  );
88
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
13
  */
14
  private $template_service;
15
 
16
+ private $plugin_finder;
17
+
18
+ public function __construct( OTGS_Installer_Twig_Template_Service $template_service, OTGS_Installer_Plugin_Finder $plugin_finder ) {
19
  $this->template_service = $template_service;
20
+ $this->plugin_finder = $plugin_finder;
21
  }
22
 
23
  public function add_hooks() {
25
  add_action( 'after_plugin_row_' . $plugin_id, array(
26
  $this,
27
  'show_purchase_notice_under_plugin'
28
+ ), 10, 2 );
29
  }
30
  }
31
 
43
  /**
44
  * @param string $plugin_file
45
  */
46
+ public function show_purchase_notice_under_plugin( $plugin_file, $plugin_data ) {
47
  $should_display_subscription_notice = isset( $this->plugins[ $plugin_file ][ self::DISPLAY_SUBSCRIPTION_NOTICE_KEY ] )
48
  ? $this->plugins[ $plugin_file ][ self::DISPLAY_SUBSCRIPTION_NOTICE_KEY ]
49
  : false;
50
 
51
+ $plugin = $this->plugin_finder->get_plugin_by_name( $plugin_data['Name'] );
52
+
53
  if ( $should_display_subscription_notice ) {
54
+ if ( $plugin && 'toolset' === $plugin->get_external_repo() && $plugin->is_lite() ) {
55
+ echo $this->template_service->show( $this->get_toolset_lite_notice_model( $plugin->get_name() ), self::TEMPLATE );
56
+ } else {
57
+ echo $this->template_service->show( $this->get_model(), self::TEMPLATE );
58
+ }
59
  }
60
  }
61
 
65
  private function get_model() {
66
  $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
67
 
68
+ list( $tr_classes, $notice_classes ) = $this->get_classes();
 
 
 
 
 
 
69
 
70
  if ( is_multisite() ) {
71
  if ( is_network_admin() ) {
89
  'col_count' => $wp_list_table->get_column_count(),
90
  );
91
  }
92
+
93
+ private function get_toolset_lite_notice_model( $plugin_name ) {
94
+ $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
95
+
96
+ list( $tr_classes, $notice_classes ) = $this->get_classes();
97
+
98
+ return array(
99
+ 'strings' => array(
100
+ 'valid_subscription' => sprintf( __( 'You are using the complementary %1$s. For the %2$s, %3$s.', 'installer' ),
101
+ $plugin_name, '<a href="https://wpml.org/documentation/developing-custom-multilingual-sites/types-and-views-lite/?utm_source=viewsplugin&utm_campaign=wpml-toolset-lite&utm_medium=plugins-page&utm_term=features-link">' . __( 'complete set of features', 'installer' ) . '</a>', '<a href="https://toolset.com/?add-to-cart=631305&buy_now=1&apply_coupon=eyJjb3Vwb25fbmFtZSI6IndwbWwgY291cG9uIGJhc2ljIiwiY291cG9uX2lkIjoiODAyMDE2In0=">' . __( 'upgrade to Toolset', 'installer' ) . '</a>' ),
102
+ ),
103
+ 'css' => array(
104
+ 'tr_classes' => $tr_classes,
105
+ 'notice_classes' => $notice_classes,
106
+ ),
107
+ 'col_count' => $wp_list_table->get_column_count(),
108
+ );
109
+ }
110
+
111
+ private function get_classes() {
112
+ $tr_classes = 'plugin-update-tr';
113
+ $notice_classes = 'update-message installer-q-icon';
114
+
115
+ if ( version_compare( get_bloginfo( 'version' ), '4.6', '>=' ) ) {
116
+ $tr_classes = 'plugin-update-tr installer-plugin-update-tr';
117
+ $notice_classes = 'notice inline notice-warning notice-alt';
118
+ }
119
+
120
+ return array( $tr_classes, $notice_classes );
121
+ }
122
  }
vendor/otgs/installer/includes/class-wp-installer.php CHANGED
@@ -23,6 +23,8 @@ final class WP_Installer {
23
 
24
  private $package_source = array();
25
 
 
 
26
  const SITE_KEY_VALIDATION_SOURCE_OTHER = 0;
27
  const SITE_KEY_VALIDATION_SOURCE_DOWNLOAD_SPECIFIC = 1;
28
  const SITE_KEY_VALIDATION_SOURCE_DOWNLOAD_REPORT = 2;
@@ -307,18 +309,21 @@ final class WP_Installer {
307
 
308
  if ( array_key_exists( 'products', $package ) ) {
309
  foreach ( $package['products'] as $product ) {
 
 
310
 
311
- foreach ( $product['plugins'] as $plugin_slug ) {
312
 
313
- $download = $this->settings['repositories'][ $repository_id ]['data']['downloads']['plugins'][ $plugin_slug ];
 
 
 
 
 
314
 
315
- if ( ! isset( $repositories_plugins[ $repository_id ][ $download['slug'] ] ) ) {
316
- $repositories_plugins[ $repository_id ][ $download['slug'] ] = array(
317
- 'name' => $download['name'],
318
- 'registered' => $this->plugin_is_registered( $repository_id, $download['slug'] ) ? 1 : 0
319
- );
320
  }
321
-
 
322
  }
323
  }
324
  } else {
@@ -340,12 +345,35 @@ final class WP_Installer {
340
 
341
  if ( $wp_plugin_slug === $slug || $r_plugin['name'] === $plugin['Name'] || $r_plugin['name'] === $plugin['Title'] ) { //match order: slug, name, title
342
 
 
 
 
 
 
 
 
343
  if ( $r_plugin['registered'] ) {
 
 
 
 
 
 
344
  add_filter( 'plugin_action_links_' . $plugin_id, array(
345
  $this,
346
  'plugins_action_links_registered'
347
  ) );
348
  } else {
 
 
 
 
 
 
 
 
 
 
349
  add_filter( 'plugin_action_links_' . $plugin_id, array(
350
  $this,
351
  'plugins_action_links_not_registered'
@@ -355,7 +383,6 @@ final class WP_Installer {
355
  add_filter( 'plugin_action_links_' . $plugin_id, array( $this, 'types_upgrade_link' ) );
356
  }
357
  }
358
-
359
  }
360
 
361
  }
@@ -1061,6 +1088,14 @@ final class WP_Installer {
1061
  if ( isset( $subscription_type ) && ! $expired && ( $product['subscription_type'] == $subscription_type || $product['subscription_type_equivalent'] == $subscription_type ) ) {
1062
 
1063
  foreach ( $product['plugins'] as $plugin_slug ) {
 
 
 
 
 
 
 
 
1064
  $row['downloads'][ $plugin_slug ] = $this->settings['repositories'][ $repository_id ]['data']['downloads']['plugins'][ $plugin_slug ];
1065
  }
1066
 
@@ -2199,6 +2234,7 @@ final class WP_Installer {
2199
  $res->author = '';
2200
  $res->author_profile = '';
2201
  $res->last_updated = $download['date'];
 
2202
 
2203
  if ( $site_key ) {
2204
  $res->download_link = $this->append_site_key_to_download_url( $download['url'], $site_key, $repository_id );
@@ -2260,6 +2296,14 @@ final class WP_Installer {
2260
 
2261
  foreach ( $product['plugins'] as $plugin_slug ) {
2262
 
 
 
 
 
 
 
 
 
2263
  $download = $this->settings['repositories'][ $repository_id ]['data']['downloads']['plugins'][ $plugin_slug ];
2264
 
2265
  if ( ! $this->plugin_is_registered( $repository_id, $download['slug'] ) ) {
@@ -2284,6 +2328,7 @@ final class WP_Installer {
2284
  $response->slug = $slug;
2285
  $response->plugin = $plugin_id;
2286
  $response->new_version = $download['version'];
 
2287
  $response->upgrade_notice = '';
2288
  $response->url = $download['url'];
2289
  if ( $site_key ) {
@@ -2330,7 +2375,7 @@ final class WP_Installer {
2330
  array( $this->plugin_path() . '/templates/components-setting/' )
2331
  );
2332
  $local_components_setting = new OTGS_Installer_WP_Share_Local_Components_Setting();
2333
- $plugin_page_notice = new OTGS_Installer_Plugins_Page_Notice( $template_service->get_service(), $local_components_setting );
2334
 
2335
  foreach ( $plugins as $plugin_id => $plugin ) {
2336
 
@@ -2355,6 +2400,14 @@ final class WP_Installer {
2355
 
2356
  foreach ( $product['plugins'] as $plugin_slug ) {
2357
 
 
 
 
 
 
 
 
 
2358
  $download = $this->settings['repositories'][ $repository_id ]['data']['downloads']['plugins'][ $plugin_slug ];
2359
  $display_subscription_notice = false;
2360
  $display_setting_notice = false;
@@ -2370,6 +2423,14 @@ final class WP_Installer {
2370
  if ( ! $this->should_fallback_under_wp_org_repo( $download, $site_key ) || $this->has_non_wporg_upgrade_available( $plugin_id ) ) {
2371
  $display_subscription_notice = true;
2372
  }
 
 
 
 
 
 
 
 
2373
  }
2374
  }
2375
 
@@ -2660,6 +2721,17 @@ final class WP_Installer {
2660
  return false;
2661
  }
2662
 
 
 
 
 
 
 
 
 
 
 
 
2663
  public function plugin_upgrade_custom_errors() {
2664
 
2665
  if ( isset( $_REQUEST['action'] ) ) {
23
 
24
  private $package_source = array();
25
 
26
+ private $plugin_finder;
27
+
28
  const SITE_KEY_VALIDATION_SOURCE_OTHER = 0;
29
  const SITE_KEY_VALIDATION_SOURCE_DOWNLOAD_SPECIFIC = 1;
30
  const SITE_KEY_VALIDATION_SOURCE_DOWNLOAD_REPORT = 2;
309
 
310
  if ( array_key_exists( 'products', $package ) ) {
311
  foreach ( $package['products'] as $product ) {
312
+ if ( array_key_exists( 'plugins', $product ) ) {
313
+ foreach ( $product['plugins'] as $plugin_slug ) {
314
 
315
+ $download = $this->settings['repositories'][ $repository_id ]['data']['downloads']['plugins'][ $plugin_slug ];
316
 
317
+ if ( ! isset( $repositories_plugins[ $repository_id ][ $download['slug'] ] ) ) {
318
+ $repositories_plugins[ $repository_id ][ $download['slug'] ] = array(
319
+ 'name' => $download['name'],
320
+ 'registered' => $this->plugin_is_registered( $repository_id, $download['slug'] ) ? 1 : 0
321
+ );
322
+ }
323
 
 
 
 
 
 
324
  }
325
+ } else {
326
+ $this->refresh_repositories_data();
327
  }
328
  }
329
  } else {
345
 
346
  if ( $wp_plugin_slug === $slug || $r_plugin['name'] === $plugin['Name'] || $r_plugin['name'] === $plugin['Title'] ) { //match order: slug, name, title
347
 
348
+ $plugin_finder = $this->get_plugin_finder();
349
+ $plugin_obj = $plugin_finder->get_plugin( $slug, $repository_id );
350
+
351
+ if ( $plugin_obj && $plugin_obj->get_external_repo() && $plugin_obj->is_lite() ) {
352
+ continue;
353
+ }
354
+
355
  if ( $r_plugin['registered'] ) {
356
+
357
+ remove_filter( 'plugin_action_links_' . $plugin_id, array(
358
+ $this,
359
+ 'plugins_action_links_not_registered'
360
+ ) );
361
+
362
  add_filter( 'plugin_action_links_' . $plugin_id, array(
363
  $this,
364
  'plugins_action_links_registered'
365
  ) );
366
  } else {
367
+
368
+ if ( $this->plugin_is_registered( $plugin_obj->get_external_repo(), $slug ) || $this->plugin_is_registered( 'wpml', $slug ) ) {
369
+ continue;
370
+ }
371
+
372
+ remove_filter( 'plugin_action_links_' . $plugin_id, array(
373
+ $this,
374
+ 'plugins_action_links_registered'
375
+ ) );
376
+
377
  add_filter( 'plugin_action_links_' . $plugin_id, array(
378
  $this,
379
  'plugins_action_links_not_registered'
383
  add_filter( 'plugin_action_links_' . $plugin_id, array( $this, 'types_upgrade_link' ) );
384
  }
385
  }
 
386
  }
387
 
388
  }
1088
  if ( isset( $subscription_type ) && ! $expired && ( $product['subscription_type'] == $subscription_type || $product['subscription_type_equivalent'] == $subscription_type ) ) {
1089
 
1090
  foreach ( $product['plugins'] as $plugin_slug ) {
1091
+ $plugin_finder = $this->get_plugin_finder();
1092
+ $plugin = $plugin_finder->get_plugin( $plugin_slug, $repository_id );
1093
+ $external_repo = $plugin->get_external_repo();
1094
+
1095
+ if ( $external_repo && $this->repository_has_valid_subscription( $external_repo ) ) {
1096
+ continue;
1097
+ }
1098
+
1099
  $row['downloads'][ $plugin_slug ] = $this->settings['repositories'][ $repository_id ]['data']['downloads']['plugins'][ $plugin_slug ];
1100
  }
1101
 
2234
  $res->author = '';
2235
  $res->author_profile = '';
2236
  $res->last_updated = $download['date'];
2237
+ $res->tested = isset($download['tested'])?$download['tested']:'';
2238
 
2239
  if ( $site_key ) {
2240
  $res->download_link = $this->append_site_key_to_download_url( $download['url'], $site_key, $repository_id );
2296
 
2297
  foreach ( $product['plugins'] as $plugin_slug ) {
2298
 
2299
+ $plugin_finder = $this->get_plugin_finder();
2300
+ $plugin_data = $plugin_finder->get_plugin( $plugin_slug, $repository_id );
2301
+ $external_repo = $plugin_data->get_external_repo();
2302
+
2303
+ if ( $external_repo && $this->plugin_is_registered( $external_repo, $plugin_slug ) ) {
2304
+ continue;
2305
+ }
2306
+
2307
  $download = $this->settings['repositories'][ $repository_id ]['data']['downloads']['plugins'][ $plugin_slug ];
2308
 
2309
  if ( ! $this->plugin_is_registered( $repository_id, $download['slug'] ) ) {
2328
  $response->slug = $slug;
2329
  $response->plugin = $plugin_id;
2330
  $response->new_version = $download['version'];
2331
+ $response->tested = isset($download['tested'])?$download['tested']:'';
2332
  $response->upgrade_notice = '';
2333
  $response->url = $download['url'];
2334
  if ( $site_key ) {
2375
  array( $this->plugin_path() . '/templates/components-setting/' )
2376
  );
2377
  $local_components_setting = new OTGS_Installer_WP_Share_Local_Components_Setting();
2378
+ $plugin_page_notice = new OTGS_Installer_Plugins_Page_Notice( $template_service->get_service(), $this->get_plugin_finder() );
2379
 
2380
  foreach ( $plugins as $plugin_id => $plugin ) {
2381
 
2400
 
2401
  foreach ( $product['plugins'] as $plugin_slug ) {
2402
 
2403
+ $plugin_finder = $this->get_plugin_finder();
2404
+ $plugin_found = $plugin_finder->get_plugin( $plugin_slug, $repository_id );
2405
+ $external_repo = $plugin_found->get_external_repo();
2406
+
2407
+ if ( $external_repo && $this->plugin_is_registered( $external_repo, $plugin_slug ) ) {
2408
+ continue;
2409
+ }
2410
+
2411
  $download = $this->settings['repositories'][ $repository_id ]['data']['downloads']['plugins'][ $plugin_slug ];
2412
  $display_subscription_notice = false;
2413
  $display_setting_notice = false;
2423
  if ( ! $this->should_fallback_under_wp_org_repo( $download, $site_key ) || $this->has_non_wporg_upgrade_available( $plugin_id ) ) {
2424
  $display_subscription_notice = true;
2425
  }
2426
+
2427
+ if ( $external_repo && ! $this->plugin_is_registered( $external_repo, $plugin_slug ) && ! $this->plugin_is_registered( $plugin_found->get_repo(), $plugin_slug ) ) {
2428
+ $display_subscription_notice = true;
2429
+ }
2430
+
2431
+ if ( 'Toolset Types' === $name && version_compare( $plugin['Version'], '3.0', '<' ) ) {
2432
+ $display_subscription_notice = false;
2433
+ }
2434
  }
2435
  }
2436
 
2721
  return false;
2722
  }
2723
 
2724
+ /**
2725
+ * @return OTGS_Installer_Plugin_Finder
2726
+ */
2727
+ private function get_plugin_finder() {
2728
+ if ( ! $this->plugin_finder ) {
2729
+ $this->plugin_finder = new OTGS_Installer_Plugin_Finder( new OTGS_Installer_Plugin_Factory(), $this->settings['repositories'] );
2730
+ }
2731
+
2732
+ return $this->plugin_finder;
2733
+ }
2734
+
2735
  public function plugin_upgrade_custom_errors() {
2736
 
2737
  if ( isset( $_REQUEST['action'] ) ) {
vendor/otgs/installer/installer.php CHANGED
@@ -13,31 +13,36 @@ include_once $plugin_path . '/includes/functions-core.php';
13
  include_once $plugin_path . '/includes/class-otgs-installer-subscription.php';
14
  include_once $plugin_path . '/includes/class-wp-installer.php';
15
 
16
- include_once WP_Installer()->plugin_path() . '/includes/class-wp-installer-api.php';
17
- include_once WP_Installer()->plugin_path() . '/includes/class-translation-service-info.php';
18
- include_once WP_Installer()->plugin_path() . '/includes/class-installer-dependencies.php';
19
- include_once WP_Installer()->plugin_path() . '/includes/class-wp-installer-channels.php';
20
-
21
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-php-functions.php';
22
-
23
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-wp-components-sender.php';
24
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-wp-components-storage.php';
25
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-wp-components-hooks.php';
26
-
27
- include_once WP_Installer()->plugin_path() . '/templates/template-service/interface-iotgs-installer-template-service.php';
28
- include_once WP_Installer()->plugin_path() . '/templates/template-service/class-otgs-installer-twig-template-service.php';
29
- include_once WP_Installer()->plugin_path() . '/templates/template-service/class-otgs-installer-twig-template-service-loader.php';
30
-
31
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-wp-components-setting-resources.php';
32
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-plugins-page-notice.php';
33
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-wp-components-setting-ajax.php';
34
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-filename-hooks.php';
35
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-icons.php';
36
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-wp-share-local-components-setting-hooks.php';
37
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-installer-factory.php';
38
-
39
- include_once WP_Installer()->plugin_path() . '/includes/functions-templates.php';
40
- include_once WP_Installer()->plugin_path() . '/includes/class-otgs-twig-autoloader.php';
 
 
 
 
 
41
 
42
  // Initialization
43
  WP_Installer();
13
  include_once $plugin_path . '/includes/class-otgs-installer-subscription.php';
14
  include_once $plugin_path . '/includes/class-wp-installer.php';
15
 
16
+ $installer_plugin_path = WP_Installer()->plugin_path();
17
+
18
+ include_once $installer_plugin_path . '/includes/class-wp-installer-api.php';
19
+ include_once $installer_plugin_path . '/includes/class-translation-service-info.php';
20
+ include_once $installer_plugin_path . '/includes/class-installer-dependencies.php';
21
+ include_once $installer_plugin_path . '/includes/class-wp-installer-channels.php';
22
+
23
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-php-functions.php';
24
+
25
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-wp-components-sender.php';
26
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-wp-components-storage.php';
27
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-wp-components-hooks.php';
28
+
29
+ include_once $installer_plugin_path . '/templates/template-service/interface-iotgs-installer-template-service.php';
30
+ include_once $installer_plugin_path . '/templates/template-service/class-otgs-installer-twig-template-service.php';
31
+ include_once $installer_plugin_path . '/templates/template-service/class-otgs-installer-twig-template-service-loader.php';
32
+
33
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-wp-components-setting-resources.php';
34
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-plugins-page-notice.php';
35
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-wp-components-setting-ajax.php';
36
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-filename-hooks.php';
37
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-icons.php';
38
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-wp-share-local-components-setting-hooks.php';
39
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-factory.php';
40
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-plugin.php';
41
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-plugin-factory.php';
42
+ include_once $installer_plugin_path . '/includes/class-otgs-installer-plugin-finder.php';
43
+
44
+ include_once $installer_plugin_path . '/includes/functions-templates.php';
45
+ include_once $installer_plugin_path . '/includes/class-otgs-twig-autoloader.php';
46
 
47
  // Initialization
48
  WP_Installer();
vendor/otgs/installer/loader.php CHANGED
@@ -22,7 +22,7 @@ $wp_installer_instance = dirname( __FILE__ ) . '/installer.php';
22
  global $wp_installer_instances;
23
  $wp_installer_instances[ $wp_installer_instance ] = array(
24
  'bootfile' => $wp_installer_instance,
25
- 'version' => '1.8.20'
26
  );
27
 
28
 
22
  global $wp_installer_instances;
23
  $wp_installer_instances[ $wp_installer_instance ] = array(
24
  'bootfile' => $wp_installer_instance,
25
+ 'version' => '1.8.25'
26
  );
27
 
28
 
vendor/otgs/installer/src/js/ui/app.js CHANGED
@@ -1,3 +1,4 @@
 
1
  import UI from './UI';
2
 
3
  window.addEventListener('DOMContentLoaded', () => {
1
+ import 'babel-polyfill';
2
  import UI from './UI';
3
 
4
  window.addEventListener('DOMContentLoaded', () => {
vendor/otgs/installer/src/webpack.config.js CHANGED
@@ -47,7 +47,7 @@ const ui = (env) => {
47
  plugins: [
48
  new ExtractTextPlugin(path.join('css', 'ui', 'styles.css')),
49
  ],
50
- devtool: isProduction ? 'source-map' : 'inline-source-map',
51
  };
52
  };
53
 
47
  plugins: [
48
  new ExtractTextPlugin(path.join('css', 'ui', 'styles.css')),
49
  ],
50
+ devtool: isProduction ? '' : 'inline-source-map',
51
  };
52
  };
53
 
vendor/otgs/installer/templates/channel-selector.php CHANGED
@@ -48,11 +48,11 @@
48
  <button class="button-primary js-proceed"><?php _e("Switch", 'installer') ?></button>
49
  </p>
50
  <p>
51
- <?php _e("Plugins will be updated to their most advanced version in the channel that you selected.", 'installer') ?>
52
  </p>
53
  <label>
54
  <input type="checkbox" value="1" class="js-remember"/>
55
- &nbsp;<?php _e("Remember my preference.", 'installer') ?><br />
56
  </label>
57
  </div>
58
  <?php endif; ?>
48
  <button class="button-primary js-proceed"><?php _e("Switch", 'installer') ?></button>
49
  </p>
50
  <p>
51
+ <?php _e( 'The plugins will update to the most recent version in the channel that you selected.', 'installer') ?>
52
  </p>
53
  <label>
54
  <input type="checkbox" value="1" class="js-remember"/>
55
+ &nbsp;<?php _e( 'Remember my preference.', 'installer') ?><br />
56
  </label>
57
  </div>
58
  <?php endif; ?>
vendor/otgs/installer/templates/downloads-list.php CHANGED
@@ -32,7 +32,7 @@
32
  'repository_id' => $repository_id
33
  );
34
  ?>
35
- <input type="checkbox" name="downloads[]" value="<?php echo base64_encode(json_encode($download_data)); ?>" <?php
36
  if( $this->plugin_is_installed($download['name'], $download['slug'], $download['version'] )
37
  && ! $this->plugin_is_embedded_version( $download['name'], $download['slug'] )
38
  || WP_Installer()->dependencies->cant_download( $repository_id ) ): ?>disabled="disabled"<?php endif; ?> />&nbsp;
32
  'repository_id' => $repository_id
33
  );
34
  ?>
35
+ <input type="checkbox" name="downloads[]" value="<?php echo base64_encode(json_encode($download_data)); ?>" data-slug="<?php echo $download['slug'] ?>" <?php
36
  if( $this->plugin_is_installed($download['name'], $download['slug'], $download['version'] )
37
  && ! $this->plugin_is_embedded_version( $download['name'], $download['slug'] )
38
  || WP_Installer()->dependencies->cant_download( $repository_id ) ): ?>disabled="disabled"<?php endif; ?> />&nbsp;
vendor/toolset/types/embedded/classes/relationship.php CHANGED
@@ -217,6 +217,10 @@ class WPCF_Relationship
217
  */
218
  function save_child( $parent_id, $child_id, $save_fields = array() )
219
  {
 
 
 
 
220
  $parent = get_post( intval( $parent_id ) );
221
  $child = get_post( intval( $child_id ) );
222
  $post_data = array();
@@ -412,6 +416,9 @@ class WPCF_Relationship
412
 
413
  remove_filter( 'types_updating_child_post', '__return_true' );
414
 
 
 
 
415
  return true;
416
  }
417
 
217
  */
218
  function save_child( $parent_id, $child_id, $save_fields = array() )
219
  {
220
+ // this function modifies $_POST
221
+ // we need to make sure to revoke all changes to $_POST at the end (types-1644)
222
+ $POST_backup = $_POST;
223
+
224
  $parent = get_post( intval( $parent_id ) );
225
  $child = get_post( intval( $child_id ) );
226
  $post_data = array();
416
 
417
  remove_filter( 'types_updating_child_post', '__return_true' );
418
 
419
+ // re-apply original $_POST data
420
+ $_POST = $POST_backup;
421
+
422
  return true;
423
  }
424
 
vendor/toolset/types/embedded/includes/fields-post.php CHANGED
@@ -622,16 +622,23 @@ function wpcf_admin_post_save_post_hook( $post_ID, $post ) {
622
 
623
  $wpcf_form_data = wpcf_ensarr( wpcf_getarr( $_POST, 'wpcf' ) );
624
 
625
- // Check wpcf_adjust_form_input_for_checkboxlike_fields() for information about side effects.
626
- $wpcf_form_data = wpcf_adjust_form_input_for_checkboxlike_fields(
627
- $wpcf_form_data,
628
- wpcf_ensarr( wpcf_getarr( $_POST, '_wptoolset_checkbox' ) )
629
- );
630
 
631
- $wpcf_form_data = wpcf_adjust_form_input_for_checkboxlike_fields(
632
- $wpcf_form_data,
633
- wpcf_ensarr( wpcf_getarr( $_POST, '_wptoolset_radios' ) )
634
- );
 
 
 
 
 
 
 
 
 
 
 
 
635
 
636
  if ( count( $wpcf_form_data ) ) {
637
  $add_error_message = true;
622
 
623
  $wpcf_form_data = wpcf_ensarr( wpcf_getarr( $_POST, 'wpcf' ) );
624
 
 
 
 
 
 
625
 
626
+ // For parent saving we need to add all checkbox/radio fields (even unchecked) to
627
+ // make sure save 0 is applied. This is NOT needed for the child update at this point
628
+ // (Including child post here will add all checkbox fields to children, even if the fields
629
+ // are not assigned to the child post cpt)
630
+ if( ! $is_child_post_update ) {
631
+ // Check wpcf_adjust_form_input_for_checkboxlike_fields() for information about side effects.
632
+ $wpcf_form_data = wpcf_adjust_form_input_for_checkboxlike_fields(
633
+ $wpcf_form_data,
634
+ wpcf_ensarr( wpcf_getarr( $_POST, '_wptoolset_checkbox' ) )
635
+ );
636
+
637
+ $wpcf_form_data = wpcf_adjust_form_input_for_checkboxlike_fields(
638
+ $wpcf_form_data,
639
+ wpcf_ensarr( wpcf_getarr( $_POST, '_wptoolset_radios' ) )
640
+ );
641
+ }
642
 
643
  if ( count( $wpcf_form_data ) ) {
644
  $add_error_message = true;
vendor/toolset/types/embedded/includes/fields/checkbox.php CHANGED
@@ -342,7 +342,11 @@ function wpcf_fields_checkbox_save_check( $post_source )
342
  $re = sprintf('/\-(%s)$/', implode('|', $children));
343
  $checkboxes = array();
344
  foreach(array_keys($_POST['_wptoolset_checkbox']) as $key) {
345
- $checkboxes[] = preg_replace($re, '', $key);
 
 
 
 
346
  }
347
  foreach( $children as $child_id ) {
348
  foreach( array_unique($checkboxes) as $slug ) {
342
  $re = sprintf('/\-(%s)$/', implode('|', $children));
343
  $checkboxes = array();
344
  foreach(array_keys($_POST['_wptoolset_checkbox']) as $key) {
345
+ // make sure to only collect checkboxes which are assigned to the children post type
346
+ if( preg_match( $re, $key ) ) {
347
+ $checkboxes[] = preg_replace($re, '', $key);
348
+ }
349
+
350
  }
351
  foreach( $children as $child_id ) {
352
  foreach( array_unique($checkboxes) as $slug ) {
wpcf.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpress.org/extend/plugins/types/
5
  Description: Toolset Types defines custom content in WordPress. Easily create custom post types, fields and taxonomy and connect everything together.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
- Version: 2.3.2
9
  License: GPLv2 or later
10
 
11
  Types is free software: you can redistribute it and/or modify
@@ -29,7 +29,7 @@ if ( ! function_exists( 'add_action' ) ) {
29
 
30
  // version
31
  if ( ! defined( 'TYPES_VERSION' ) ) {
32
- define( 'TYPES_VERSION', '2.3.2' );
33
  }
34
 
35
  // backward compatibility
5
  Description: Toolset Types defines custom content in WordPress. Easily create custom post types, fields and taxonomy and connect everything together.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
+ Version: 2.3.3
9
  License: GPLv2 or later
10
 
11
  Types is free software: you can redistribute it and/or modify
29
 
30
  // version
31
  if ( ! defined( 'TYPES_VERSION' ) ) {
32
+ define( 'TYPES_VERSION', '2.3.3' );
33
  }
34
 
35
  // backward compatibility