Kaynağa Gözat

前端初始化

jishenghua 9 ay önce
ebeveyn
işleme
66b1929ee6
100 değiştirilmiş dosya ile 17100 ekleme ve 0 silme
  1. 20 0
      gyj-iot-web/.env.development
  2. 17 0
      gyj-iot-web/.env.production
  3. 17 0
      gyj-iot-web/.env.staging
  4. 23 0
      gyj-iot-web/.gitignore
  5. 21 0
      gyj-iot-web/html/ie.html
  6. 220 0
      gyj-iot-web/index.html
  7. 56 0
      gyj-iot-web/package.json
  8. 3017 0
      gyj-iot-web/pnpm-lock.yaml
  9. BIN
      gyj-iot-web/public/favicon.ico
  10. 0 0
      gyj-iot-web/public/js/EasyWasmPlayer.js
  11. 9466 0
      gyj-iot-web/public/js/ZLMRTCClient.js
  12. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-audio.js
  13. BIN
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-audio.wasm
  14. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-hard-not-wasm.js
  15. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-hard.js
  16. 8 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-mt-worker.js
  17. BIN
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-mt-worker.wasm
  18. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-mt-worker.worker.js
  19. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-mt.js
  20. 7 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd-mt-worker.js
  21. BIN
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd-mt-worker.wasm
  22. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd-mt-worker.worker.js
  23. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd-mt.js
  24. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd.js
  25. BIN
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd.wasm
  26. 0 0
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro.js
  27. BIN
      gyj-iot-web/public/js/jessibuca-pro/decoder-pro.wasm
  28. 0 0
      gyj-iot-web/public/js/jessibuca-pro/jessibuca-pro-multi.js
  29. 0 0
      gyj-iot-web/public/js/jessibuca-pro/jessibuca-pro.js
  30. 168 0
      gyj-iot-web/public/js/player.css
  31. 209 0
      gyj-iot-web/public/js/player.js
  32. 0 0
      gyj-iot-web/public/js/uni.webview.1.5.5.js
  33. 9 0
      gyj-iot-web/public/js/vconsole.js
  34. 166 0
      gyj-iot-web/public/js/video.html
  35. 0 0
      gyj-iot-web/public/styles/theme-chalk/index.css
  36. 20 0
      gyj-iot-web/src/App.vue
  37. 52 0
      gyj-iot-web/src/api/iot/authorize.js
  38. 52 0
      gyj-iot-web/src/api/iot/category.js
  39. 69 0
      gyj-iot-web/src/api/iot/channel.js
  40. 44 0
      gyj-iot-web/src/api/iot/clientDetails.js
  41. 146 0
      gyj-iot-web/src/api/iot/device.js
  42. 71 0
      gyj-iot-web/src/api/iot/deviceJob.js
  43. 62 0
      gyj-iot-web/src/api/iot/deviceLog.js
  44. 63 0
      gyj-iot-web/src/api/iot/deviceuser.js
  45. 45 0
      gyj-iot-web/src/api/iot/eventLog.js
  46. 44 0
      gyj-iot-web/src/api/iot/functionLog.js
  47. 61 0
      gyj-iot-web/src/api/iot/group.js
  48. 44 0
      gyj-iot-web/src/api/iot/log.js
  49. 52 0
      gyj-iot-web/src/api/iot/mediaServer.js
  50. 78 0
      gyj-iot-web/src/api/iot/model.js
  51. 36 0
      gyj-iot-web/src/api/iot/netty.js
  52. 44 0
      gyj-iot-web/src/api/iot/news.js
  53. 52 0
      gyj-iot-web/src/api/iot/newsCategory.js
  54. 68 0
      gyj-iot-web/src/api/iot/platform.js
  55. 62 0
      gyj-iot-web/src/api/iot/point.js
  56. 78 0
      gyj-iot-web/src/api/iot/product.js
  57. 44 0
      gyj-iot-web/src/api/iot/protocol.js
  58. 29 0
      gyj-iot-web/src/api/iot/runstatus.js
  59. 53 0
      gyj-iot-web/src/api/iot/salve.js
  60. 53 0
      gyj-iot-web/src/api/iot/scene.js
  61. 62 0
      gyj-iot-web/src/api/iot/script.js
  62. 34 0
      gyj-iot-web/src/api/iot/sipConfig.js
  63. 74 0
      gyj-iot-web/src/api/iot/sipdevice.js
  64. 62 0
      gyj-iot-web/src/api/iot/temp.js
  65. 53 0
      gyj-iot-web/src/api/iot/template.js
  66. 43 0
      gyj-iot-web/src/api/iot/tool.js
  67. 72 0
      gyj-iot-web/src/api/login.js
  68. 9 0
      gyj-iot-web/src/api/menu.js
  69. 57 0
      gyj-iot-web/src/api/monitor/cache.js
  70. 71 0
      gyj-iot-web/src/api/monitor/job.js
  71. 26 0
      gyj-iot-web/src/api/monitor/jobLog.js
  72. 34 0
      gyj-iot-web/src/api/monitor/logininfor.js
  73. 18 0
      gyj-iot-web/src/api/monitor/online.js
  74. 26 0
      gyj-iot-web/src/api/monitor/operlog.js
  75. 9 0
      gyj-iot-web/src/api/monitor/server.js
  76. 60 0
      gyj-iot-web/src/api/system/config.js
  77. 52 0
      gyj-iot-web/src/api/system/dept.js
  78. 52 0
      gyj-iot-web/src/api/system/dict/data.js
  79. 60 0
      gyj-iot-web/src/api/system/dict/type.js
  80. 60 0
      gyj-iot-web/src/api/system/menu.js
  81. 44 0
      gyj-iot-web/src/api/system/notice.js
  82. 44 0
      gyj-iot-web/src/api/system/post.js
  83. 119 0
      gyj-iot-web/src/api/system/role.js
  84. 131 0
      gyj-iot-web/src/api/system/user.js
  85. 76 0
      gyj-iot-web/src/api/tool/gen.js
  86. BIN
      gyj-iot-web/src/assets/401_images/401.gif
  87. BIN
      gyj-iot-web/src/assets/404_images/404.png
  88. BIN
      gyj-iot-web/src/assets/404_images/404_cloud.png
  89. 361 0
      gyj-iot-web/src/assets/bigScreen/css/index.scss
  90. 200 0
      gyj-iot-web/src/assets/bigScreen/css/modules/reset.scss
  91. 98 0
      gyj-iot-web/src/assets/bigScreen/css/modules/variables.scss
  92. 156 0
      gyj-iot-web/src/assets/bigScreen/css/public.scss
  93. BIN
      gyj-iot-web/src/assets/bigScreen/css/theme/fonts/element-icons.ttf
  94. BIN
      gyj-iot-web/src/assets/bigScreen/css/theme/fonts/element-icons.woff
  95. 0 0
      gyj-iot-web/src/assets/bigScreen/css/theme/index.css
  96. 50 0
      gyj-iot-web/src/assets/bigScreen/css/variable.scss
  97. 18 0
      gyj-iot-web/src/assets/bigScreen/css/webfont/index.css
  98. 23 0
      gyj-iot-web/src/assets/bigScreen/iconfont/iconfont.css
  99. BIN
      gyj-iot-web/src/assets/bigScreen/iconfont/iconfont.ttf
  100. BIN
      gyj-iot-web/src/assets/bigScreen/iconfont/iconfont.woff

+ 20 - 0
gyj-iot-web/.env.development

@@ -0,0 +1,20 @@
+# 页面标题
+VITE_APP_TITLE = 管伊佳物联
+
+# 开发环境配置
+VITE_APP_ENV = 'development'
+
+# 管伊佳物联/开发环境
+VITE_APP_BASE_API = '/dev-api'
+
+# 路由懒加载
+VITE_CLI_BABEL_TRANSPILE_MODULES = true
+
+# 后端接口地址
+VITE_APP_SERVER_API_URL = 'http://localhost:8080/'
+
+# Mqtt消息服务器连接地址
+VITE_APP_MQTT_SERVER_URL = 'ws://localhost:8083/mqtt'
+
+# 百度地图AK
+VITE_APP_BAI_DU_AK = 'ltynSnfcyzPms4s2h6x0OhXT78aTXIFW'

+ 17 - 0
gyj-iot-web/.env.production

@@ -0,0 +1,17 @@
+# 页面标题
+VITE_APP_TITLE = 管伊佳物联
+
+# 生产环境配置
+VITE_APP_ENV = 'production'
+
+# 管伊佳物联/生产环境
+VITE_APP_BASE_API = '/prod-api'
+
+# 是否在打包时开启压缩,支持 gzip 和 brotli
+VITE_BUILD_COMPRESS = gzip
+
+# Mqtt消息服务器连接地址,使用空字符串则会自动获取服务器地址
+VITE_APP_MQTT_SERVER_URL = ''
+
+# 百度地图AK
+VITE_APP_BAI_DU_AK = 'ltynSnfcyzPms4s2h6x0OhXT78aTXIFW'

+ 17 - 0
gyj-iot-web/.env.staging

@@ -0,0 +1,17 @@
+# 页面标题
+VITE_APP_TITLE = 管伊佳物联
+
+# 生产环境配置
+VITE_APP_ENV = 'staging'
+
+# 管伊佳物联/生产环境
+VITE_APP_BASE_API = '/stage-api'
+
+# 是否在打包时开启压缩,支持 gzip 和 brotli
+VITE_BUILD_COMPRESS = gzip
+
+# Mqtt消息服务器连接地址
+VITE_APP_MQTT_SERVER_URL = 'ws://localhost:8083/mqtt'
+
+# 百度地图AK
+VITE_APP_BAI_DU_AK = 'ltynSnfcyzPms4s2h6x0OhXT78aTXIFW'

+ 23 - 0
gyj-iot-web/.gitignore

@@ -0,0 +1,23 @@
+.DS_Store
+node_modules/
+dist/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+**/*.log
+
+tests/**/coverage/
+tests/e2e/reports
+selenium-debug.log
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.local
+
+package-lock.json
+yarn.lock

Dosya farkı çok büyük olduğundan ihmal edildi
+ 21 - 0
gyj-iot-web/html/ie.html


+ 220 - 0
gyj-iot-web/index.html

@@ -0,0 +1,220 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="renderer" content="webkit">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+  <link rel="icon" href="/favicon.ico">
+
+  <script src="/js/jessibuca-pro/jessibuca-pro.js"></script>
+  <script type="text/javascript" src="/js/ZLMRTCClient.js"></script>
+  <script type="text/javascript" src="/js/EasyWasmPlayer.js"></script>
+
+  <title>管伊佳物联</title>
+  <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
+  <style>
+    html,
+    body,
+    #app {
+      height: 100%;
+      margin: 0px;
+      padding: 0px;
+    }
+
+    .chromeframe {
+      margin: 0.2em 0;
+      background: #ccc;
+      color: #000;
+      padding: 0.2em 0;
+    }
+
+    #loader-wrapper {
+      position: fixed;
+      top: 0;
+      left: 0;
+      width: 100%;
+      height: 100%;
+      z-index: 999999;
+    }
+
+    #loader {
+      display: block;
+      position: relative;
+      left: 50%;
+      top: 50%;
+      width: 150px;
+      height: 150px;
+      margin: -75px 0 0 -75px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 2s linear infinite;
+      -ms-animation: spin 2s linear infinite;
+      -moz-animation: spin 2s linear infinite;
+      -o-animation: spin 2s linear infinite;
+      animation: spin 2s linear infinite;
+      z-index: 1001;
+    }
+
+    #loader:before {
+      content: "";
+      position: absolute;
+      top: 5px;
+      left: 5px;
+      right: 5px;
+      bottom: 5px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 3s linear infinite;
+      -moz-animation: spin 3s linear infinite;
+      -o-animation: spin 3s linear infinite;
+      -ms-animation: spin 3s linear infinite;
+      animation: spin 3s linear infinite;
+    }
+
+    #loader:after {
+      content: "";
+      position: absolute;
+      top: 15px;
+      left: 15px;
+      right: 15px;
+      bottom: 15px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -moz-animation: spin 1.5s linear infinite;
+      -o-animation: spin 1.5s linear infinite;
+      -ms-animation: spin 1.5s linear infinite;
+      -webkit-animation: spin 1.5s linear infinite;
+      animation: spin 1.5s linear infinite;
+    }
+
+
+    @-webkit-keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+    @keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+
+    #loader-wrapper .loader-section {
+      position: fixed;
+      top: 0;
+      width: 51%;
+      height: 100%;
+      background: #7171C6;
+      z-index: 1000;
+      -webkit-transform: translateX(0);
+      -ms-transform: translateX(0);
+      transform: translateX(0);
+    }
+
+    #loader-wrapper .loader-section.section-left {
+      left: 0;
+    }
+
+    #loader-wrapper .loader-section.section-right {
+      right: 0;
+    }
+
+
+    .loaded #loader-wrapper .loader-section.section-left {
+      -webkit-transform: translateX(-100%);
+      -ms-transform: translateX(-100%);
+      transform: translateX(-100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader-wrapper .loader-section.section-right {
+      -webkit-transform: translateX(100%);
+      -ms-transform: translateX(100%);
+      transform: translateX(100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader {
+      opacity: 0;
+      -webkit-transition: all 0.3s ease-out;
+      transition: all 0.3s ease-out;
+    }
+
+    .loaded #loader-wrapper {
+      visibility: hidden;
+      -webkit-transform: translateY(-100%);
+      -ms-transform: translateY(-100%);
+      transform: translateY(-100%);
+      -webkit-transition: all 0.3s 1s ease-out;
+      transition: all 0.3s 1s ease-out;
+    }
+
+    .no-js #loader-wrapper {
+      display: none;
+    }
+
+    .no-js h1 {
+      color: #222222;
+    }
+
+    #loader-wrapper .load_title {
+      font-family: 'Open Sans';
+      color: #FFF;
+      font-size: 19px;
+      width: 100%;
+      text-align: center;
+      z-index: 9999999999999;
+      position: absolute;
+      top: 60%;
+      opacity: 1;
+      line-height: 30px;
+    }
+
+    #loader-wrapper .load_title span {
+      font-weight: normal;
+      font-style: italic;
+      font-size: 13px;
+      color: #FFF;
+      opacity: 0.5;
+    }
+  </style>
+</head>
+
+<body>
+  <div id="app">
+    <div id="loader-wrapper">
+      <div id="loader"></div>
+      <div class="loader-section section-left"></div>
+      <div class="loader-section section-right"></div>
+      <div class="load_title">正在加载系统资源,请耐心等待</div>
+    </div>
+  </div>
+  <script type="module" src="/src/main.js"></script>
+</body>
+
+</html>

+ 56 - 0
gyj-iot-web/package.json

@@ -0,0 +1,56 @@
+{
+  "name": "ruoyi",
+  "version": "3.8.7",
+  "description": "管伊佳物联",
+  "author": "若依",
+  "license": "MIT",
+  "type": "module",
+  "scripts": {
+    "serve": "vite",
+    "build": "vite build"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://gitee.com/y_project/RuoYi-Vue.git"
+  },
+  "dependencies": {
+    "@element-plus/icons-vue": "2.3.1",
+    "@vueup/vue-quill": "1.2.0",
+    "@vueuse/core": "10.6.1",
+    "ace-builds": "^1.43.2",
+    "axios": "0.27.2",
+    "clipboard": "^2.0.11",
+    "datav-vue3": "^1.0.0",
+    "echarts": "5.4.3",
+    "element-china-area-data": "^4.1.1",
+    "element-plus": "2.4.3",
+    "file-saver": "2.0.5",
+    "fuse.js": "6.6.2",
+    "js-beautify": "^1.14.11",
+    "js-cookie": "3.0.5",
+    "jsencrypt": "3.3.2",
+    "mqtt": "^4.3.3",
+    "nprogress": "0.2.0",
+    "pinia": "2.1.7",
+    "vite-plugin-node-polyfills": "^0.24.0",
+    "vue": "3.4.0",
+    "vue-cropper": "1.1.1",
+    "vue-json-viewer": "^3.0.0",
+    "vue-qr": "^4.0.9",
+    "vue-router": "4.2.5",
+    "vue3-ace-editor": "^2.2.4",
+    "vue3-data-view": "^0.1.4",
+    "vue3-seamless-scroll": "^3.0.2",
+    "vuedraggable": "^4.1.0"
+  },
+  "devDependencies": {
+    "@vitejs/plugin-vue": "5.0.1",
+    "@vue/compiler-sfc": "3.4.0",
+    "sass": "1.69.5",
+    "unplugin-auto-import": "0.17.1",
+    "unplugin-vue-setup-extend-plus": "1.0.0",
+    "vite": "5.0.4",
+    "vite-plugin-compression": "0.5.1",
+    "vite-plugin-svg-icons": "2.0.1"
+  }
+}

+ 3017 - 0
gyj-iot-web/pnpm-lock.yaml

@@ -0,0 +1,3017 @@
+lockfileVersion: '6.0'
+
+settings:
+  autoInstallPeers: true
+  excludeLinksFromLockfile: false
+
+dependencies:
+  '@element-plus/icons-vue':
+    specifier: 2.3.1
+    version: 2.3.1(vue@3.4.0)
+  '@vueup/vue-quill':
+    specifier: 1.2.0
+    version: 1.2.0(vue@3.4.0)
+  '@vueuse/core':
+    specifier: 10.6.1
+    version: 10.6.1(vue@3.4.0)
+  axios:
+    specifier: 0.27.2
+    version: 0.27.2
+  clipboard:
+    specifier: ^2.0.11
+    version: 2.0.11
+  echarts:
+    specifier: 5.4.3
+    version: 5.4.3
+  element-plus:
+    specifier: 2.4.3
+    version: 2.4.3(vue@3.4.0)
+  file-saver:
+    specifier: 2.0.5
+    version: 2.0.5
+  fuse.js:
+    specifier: 6.6.2
+    version: 6.6.2
+  js-beautify:
+    specifier: ^1.14.11
+    version: 1.14.11
+  js-cookie:
+    specifier: 3.0.5
+    version: 3.0.5
+  jsencrypt:
+    specifier: 3.3.2
+    version: 3.3.2
+  nprogress:
+    specifier: 0.2.0
+    version: 0.2.0
+  pinia:
+    specifier: 2.1.7
+    version: 2.1.7(vue@3.4.0)
+  vue:
+    specifier: 3.4.0
+    version: 3.4.0
+  vue-cropper:
+    specifier: 1.1.1
+    version: 1.1.1
+  vue-router:
+    specifier: 4.2.5
+    version: 4.2.5(vue@3.4.0)
+  vuedraggable:
+    specifier: ^4.1.0
+    version: 4.1.0(vue@3.4.0)
+
+devDependencies:
+  '@vitejs/plugin-vue':
+    specifier: 5.0.1
+    version: 5.0.1(vite@5.0.4)(vue@3.4.0)
+  '@vue/compiler-sfc':
+    specifier: 3.4.0
+    version: 3.4.0
+  sass:
+    specifier: 1.69.5
+    version: 1.69.5
+  unplugin-auto-import:
+    specifier: 0.17.1
+    version: 0.17.1(@vueuse/core@10.6.1)
+  unplugin-vue-setup-extend-plus:
+    specifier: 1.0.0
+    version: 1.0.0
+  vite:
+    specifier: 5.0.4
+    version: 5.0.4(sass@1.69.5)
+  vite-plugin-compression:
+    specifier: 0.5.1
+    version: 0.5.1(vite@5.0.4)
+  vite-plugin-svg-icons:
+    specifier: 2.0.1
+    version: 2.0.1(vite@5.0.4)
+
+packages:
+
+  /@antfu/utils@0.7.7:
+    resolution: {integrity: sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==}
+    dev: true
+
+  /@babel/helper-string-parser@7.23.4:
+    resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==}
+    engines: {node: '>=6.9.0'}
+
+  /@babel/helper-validator-identifier@7.22.20:
+    resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==}
+    engines: {node: '>=6.9.0'}
+
+  /@babel/parser@7.23.9:
+    resolution: {integrity: sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==}
+    engines: {node: '>=6.0.0'}
+    hasBin: true
+    dependencies:
+      '@babel/types': 7.23.9
+
+  /@babel/types@7.23.9:
+    resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==}
+    engines: {node: '>=6.9.0'}
+    dependencies:
+      '@babel/helper-string-parser': 7.23.4
+      '@babel/helper-validator-identifier': 7.22.20
+      to-fast-properties: 2.0.0
+
+  /@ctrl/tinycolor@3.6.1:
+    resolution: {integrity: sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==}
+    engines: {node: '>=10'}
+    dev: false
+
+  /@element-plus/icons-vue@2.3.1(vue@3.4.0):
+    resolution: {integrity: sha512-XxVUZv48RZAd87ucGS48jPf6pKu0yV5UCg9f4FFwtrYxXOwWuVJo6wOvSLKEoMQKjv8GsX/mhP6UsC1lRwbUWg==}
+    peerDependencies:
+      vue: ^3.2.0
+    dependencies:
+      vue: 3.4.0
+    dev: false
+
+  /@esbuild/aix-ppc64@0.19.12:
+    resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==}
+    engines: {node: '>=12'}
+    cpu: [ppc64]
+    os: [aix]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/android-arm64@0.19.12:
+    resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [android]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/android-arm@0.19.12:
+    resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==}
+    engines: {node: '>=12'}
+    cpu: [arm]
+    os: [android]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/android-x64@0.19.12:
+    resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [android]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/darwin-arm64@0.19.12:
+    resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/darwin-x64@0.19.12:
+    resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/freebsd-arm64@0.19.12:
+    resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [freebsd]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/freebsd-x64@0.19.12:
+    resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [freebsd]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-arm64@0.19.12:
+    resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-arm@0.19.12:
+    resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==}
+    engines: {node: '>=12'}
+    cpu: [arm]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-ia32@0.19.12:
+    resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==}
+    engines: {node: '>=12'}
+    cpu: [ia32]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-loong64@0.19.12:
+    resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==}
+    engines: {node: '>=12'}
+    cpu: [loong64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-mips64el@0.19.12:
+    resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==}
+    engines: {node: '>=12'}
+    cpu: [mips64el]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-ppc64@0.19.12:
+    resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==}
+    engines: {node: '>=12'}
+    cpu: [ppc64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-riscv64@0.19.12:
+    resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==}
+    engines: {node: '>=12'}
+    cpu: [riscv64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-s390x@0.19.12:
+    resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==}
+    engines: {node: '>=12'}
+    cpu: [s390x]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/linux-x64@0.19.12:
+    resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/netbsd-x64@0.19.12:
+    resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [netbsd]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/openbsd-x64@0.19.12:
+    resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [openbsd]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/sunos-x64@0.19.12:
+    resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [sunos]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/win32-arm64@0.19.12:
+    resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/win32-ia32@0.19.12:
+    resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==}
+    engines: {node: '>=12'}
+    cpu: [ia32]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@esbuild/win32-x64@0.19.12:
+    resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@floating-ui/core@1.6.0:
+    resolution: {integrity: sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==}
+    dependencies:
+      '@floating-ui/utils': 0.2.1
+    dev: false
+
+  /@floating-ui/dom@1.6.3:
+    resolution: {integrity: sha512-RnDthu3mzPlQ31Ss/BTwQ1zjzIhr3lk1gZB1OC56h/1vEtaXkESrOqL5fQVMfXpwGtRwX+YsZBdyHtJMQnkArw==}
+    dependencies:
+      '@floating-ui/core': 1.6.0
+      '@floating-ui/utils': 0.2.1
+    dev: false
+
+  /@floating-ui/utils@0.2.1:
+    resolution: {integrity: sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==}
+    dev: false
+
+  /@isaacs/cliui@8.0.2:
+    resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
+    engines: {node: '>=12'}
+    dependencies:
+      string-width: 5.1.2
+      string-width-cjs: /string-width@4.2.3
+      strip-ansi: 7.1.0
+      strip-ansi-cjs: /strip-ansi@6.0.1
+      wrap-ansi: 8.1.0
+      wrap-ansi-cjs: /wrap-ansi@7.0.0
+    dev: false
+
+  /@jridgewell/sourcemap-codec@1.4.15:
+    resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
+
+  /@nodelib/fs.scandir@2.1.5:
+    resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
+    engines: {node: '>= 8'}
+    dependencies:
+      '@nodelib/fs.stat': 2.0.5
+      run-parallel: 1.2.0
+    dev: true
+
+  /@nodelib/fs.stat@2.0.5:
+    resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
+    engines: {node: '>= 8'}
+    dev: true
+
+  /@nodelib/fs.walk@1.2.8:
+    resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
+    engines: {node: '>= 8'}
+    dependencies:
+      '@nodelib/fs.scandir': 2.1.5
+      fastq: 1.17.1
+    dev: true
+
+  /@one-ini/wasm@0.1.1:
+    resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==}
+    dev: false
+
+  /@pkgjs/parseargs@0.11.0:
+    resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
+    engines: {node: '>=14'}
+    requiresBuild: true
+    dev: false
+    optional: true
+
+  /@rollup/pluginutils@5.1.0:
+    resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==}
+    engines: {node: '>=14.0.0'}
+    peerDependencies:
+      rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+    peerDependenciesMeta:
+      rollup:
+        optional: true
+    dependencies:
+      '@types/estree': 1.0.5
+      estree-walker: 2.0.2
+      picomatch: 2.3.1
+    dev: true
+
+  /@rollup/rollup-android-arm-eabi@4.10.0:
+    resolution: {integrity: sha512-/MeDQmcD96nVoRumKUljsYOLqfv1YFJps+0pTrb2Z9Nl/w5qNUysMaWQsrd1mvAlNT4yza1iVyIu4Q4AgF6V3A==}
+    cpu: [arm]
+    os: [android]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-android-arm64@4.10.0:
+    resolution: {integrity: sha512-lvu0jK97mZDJdpZKDnZI93I0Om8lSDaiPx3OiCk0RXn3E8CMPJNS/wxjAvSJJzhhZpfjXsjLWL8LnS6qET4VNQ==}
+    cpu: [arm64]
+    os: [android]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-darwin-arm64@4.10.0:
+    resolution: {integrity: sha512-uFpayx8I8tyOvDkD7X6n0PriDRWxcqEjqgtlxnUA/G9oS93ur9aZ8c8BEpzFmsed1TH5WZNG5IONB8IiW90TQg==}
+    cpu: [arm64]
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-darwin-x64@4.10.0:
+    resolution: {integrity: sha512-nIdCX03qFKoR/MwQegQBK+qZoSpO3LESurVAC6s6jazLA1Mpmgzo3Nj3H1vydXp/JM29bkCiuF7tDuToj4+U9Q==}
+    cpu: [x64]
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-linux-arm-gnueabihf@4.10.0:
+    resolution: {integrity: sha512-Fz7a+y5sYhYZMQFRkOyCs4PLhICAnxRX/GnWYReaAoruUzuRtcf+Qnw+T0CoAWbHCuz2gBUwmWnUgQ67fb3FYw==}
+    cpu: [arm]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-linux-arm64-gnu@4.10.0:
+    resolution: {integrity: sha512-yPtF9jIix88orwfTi0lJiqINnlWo6p93MtZEoaehZnmCzEmLL0eqjA3eGVeyQhMtxdV+Mlsgfwhh0+M/k1/V7Q==}
+    cpu: [arm64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-linux-arm64-musl@4.10.0:
+    resolution: {integrity: sha512-9GW9yA30ib+vfFiwjX+N7PnjTnCMiUffhWj4vkG4ukYv1kJ4T9gHNg8zw+ChsOccM27G9yXrEtMScf1LaCuoWQ==}
+    cpu: [arm64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-linux-riscv64-gnu@4.10.0:
+    resolution: {integrity: sha512-X1ES+V4bMq2ws5fF4zHornxebNxMXye0ZZjUrzOrf7UMx1d6wMQtfcchZ8SqUnQPPHdOyOLW6fTcUiFgHFadRA==}
+    cpu: [riscv64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-linux-x64-gnu@4.10.0:
+    resolution: {integrity: sha512-w/5OpT2EnI/Xvypw4FIhV34jmNqU5PZjZue2l2Y3ty1Ootm3SqhI+AmfhlUYGBTd9JnpneZCDnt3uNOiOBkMyw==}
+    cpu: [x64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-linux-x64-musl@4.10.0:
+    resolution: {integrity: sha512-q/meftEe3QlwQiGYxD9rWwB21DoKQ9Q8wA40of/of6yGHhZuGfZO0c3WYkN9dNlopHlNT3mf5BPsUSxoPuVQaw==}
+    cpu: [x64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-win32-arm64-msvc@4.10.0:
+    resolution: {integrity: sha512-NrR6667wlUfP0BHaEIKgYM/2va+Oj+RjZSASbBMnszM9k+1AmliRjHc3lJIiOehtSSjqYiO7R6KLNrWOX+YNSQ==}
+    cpu: [arm64]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-win32-ia32-msvc@4.10.0:
+    resolution: {integrity: sha512-FV0Tpt84LPYDduIDcXvEC7HKtyXxdvhdAOvOeWMWbQNulxViH2O07QXkT/FffX4FqEI02jEbCJbr+YcuKdyyMg==}
+    cpu: [ia32]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@rollup/rollup-win32-x64-msvc@4.10.0:
+    resolution: {integrity: sha512-OZoJd+o5TaTSQeFFQ6WjFCiltiYVjIdsXxwu/XZ8qRpsvMQr4UsVrE5UyT9RIvsnuF47DqkJKhhVZ2Q9YW9IpQ==}
+    cpu: [x64]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@sxzz/popperjs-es@2.11.7:
+    resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==}
+    dev: false
+
+  /@trysound/sax@0.2.0:
+    resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}
+    engines: {node: '>=10.13.0'}
+    dev: true
+
+  /@types/estree@1.0.5:
+    resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
+    dev: true
+
+  /@types/lodash-es@4.17.12:
+    resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
+    dependencies:
+      '@types/lodash': 4.14.202
+    dev: false
+
+  /@types/lodash@4.14.202:
+    resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==}
+    dev: false
+
+  /@types/node@20.11.17:
+    resolution: {integrity: sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==}
+    dependencies:
+      undici-types: 5.26.5
+    dev: true
+
+  /@types/svgo@2.6.4:
+    resolution: {integrity: sha512-l4cmyPEckf8moNYHdJ+4wkHvFxjyW6ulm9l4YGaOxeyBWPhBOT0gvni1InpFPdzx1dKf/2s62qGITwxNWnPQng==}
+    dependencies:
+      '@types/node': 20.11.17
+    dev: true
+
+  /@types/web-bluetooth@0.0.16:
+    resolution: {integrity: sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==}
+    dev: false
+
+  /@types/web-bluetooth@0.0.20:
+    resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==}
+
+  /@vitejs/plugin-vue@5.0.1(vite@5.0.4)(vue@3.4.0):
+    resolution: {integrity: sha512-lwvZX5tDhJpRJEKsjoUSWgaD26Lk9X4aDYGAPpr/Q6cLTT3PC8LPu2dsnYEweAZiNgHsbyKL2Svc/CDrFOsbtw==}
+    engines: {node: ^18.0.0 || >=20.0.0}
+    peerDependencies:
+      vite: ^5.0.0
+      vue: ^3.2.25
+    dependencies:
+      vite: 5.0.4(sass@1.69.5)
+      vue: 3.4.0
+    dev: true
+
+  /@vue/compiler-core@3.4.0:
+    resolution: {integrity: sha512-cw4S15PkNGTKkP9OFFl4wnQoJJk+HqaYBafgrpDnSukiQGpcYJeRpzmqnCVCIkl6V6Eqsv58E0OAdl6b592vuA==}
+    dependencies:
+      '@babel/parser': 7.23.9
+      '@vue/shared': 3.4.0
+      entities: 4.5.0
+      estree-walker: 2.0.2
+      source-map-js: 1.0.2
+
+  /@vue/compiler-dom@3.4.0:
+    resolution: {integrity: sha512-E957uOhpoE48YjZGWeAoLmNYd3UeU4oIP8kJi8Rcsb9l2tV8Z48Jn07Zgq1aW0v3vuhlmydEKkKKbhLpADHXEA==}
+    dependencies:
+      '@vue/compiler-core': 3.4.0
+      '@vue/shared': 3.4.0
+
+  /@vue/compiler-sfc@3.4.0:
+    resolution: {integrity: sha512-PWE0mE2yW7bJS7PmaCrVDEG6KPaDJo0pb4AKnCxJ5lRRDO4IwL/fswBGhCpov+v/c+N/e+hQHpXNwvqU9BtUXg==}
+    dependencies:
+      '@babel/parser': 7.23.9
+      '@vue/compiler-core': 3.4.0
+      '@vue/compiler-dom': 3.4.0
+      '@vue/compiler-ssr': 3.4.0
+      '@vue/shared': 3.4.0
+      estree-walker: 2.0.2
+      magic-string: 0.30.7
+      postcss: 8.4.35
+      source-map-js: 1.0.2
+
+  /@vue/compiler-ssr@3.4.0:
+    resolution: {integrity: sha512-+oXKy105g9DIYQKDi3Gwung0xqQX5gJHr0GR+Vf7yK/WkNDM6q61ummcKmKAB85EIst8y3vj2PA9z9YU5Oc4DQ==}
+    dependencies:
+      '@vue/compiler-dom': 3.4.0
+      '@vue/shared': 3.4.0
+
+  /@vue/devtools-api@6.5.1:
+    resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==}
+    dev: false
+
+  /@vue/reactivity@3.4.0:
+    resolution: {integrity: sha512-X6BvQjNcgKKHWPQzlRJjZvIu72Kkn8xJSv6VNptqWh8dToMknD0Hch1l4N7llKgVt6Diq4lMeUnErbZFvuGlAA==}
+    dependencies:
+      '@vue/shared': 3.4.0
+
+  /@vue/runtime-core@3.4.0:
+    resolution: {integrity: sha512-NYrj/JgMMqnSWcIud8lLzDQrBLu+EVEeQ56QE9DYJeKG2eFrnQy8o/h57R9nCprafHs0uImKL3xsdXjHseYVxw==}
+    dependencies:
+      '@vue/reactivity': 3.4.0
+      '@vue/shared': 3.4.0
+
+  /@vue/runtime-dom@3.4.0:
+    resolution: {integrity: sha512-1ZoHEsA5l77qbx2F+SWo/hQdBksPuOmww1t/jznidDG+xMB/iidafEFvo2ZTtZii0JfTIrlDhjshfYUvQC17wQ==}
+    dependencies:
+      '@vue/runtime-core': 3.4.0
+      '@vue/shared': 3.4.0
+      csstype: 3.1.3
+
+  /@vue/server-renderer@3.4.0(vue@3.4.0):
+    resolution: {integrity: sha512-GuOVCyLDlWPu8nKo5AUxb8B+iB/Ik4I1WwqAlBqf5+y48z6D6rvKshp7KR3cJea+pte1tdTsb0+Ja82KizMZOw==}
+    peerDependencies:
+      vue: 3.4.0
+    dependencies:
+      '@vue/compiler-ssr': 3.4.0
+      '@vue/shared': 3.4.0
+      vue: 3.4.0
+
+  /@vue/shared@3.4.0:
+    resolution: {integrity: sha512-Nhh3ed3G1R6HDAWiG6YYFt0Zmq/To6u5vjzwa9TIquGheCXPY6nEdIAO8ZdlwXsWqC2yNLj700FOvShpYt5CEA==}
+
+  /@vueup/vue-quill@1.2.0(vue@3.4.0):
+    resolution: {integrity: sha512-kd5QPSHMDpycklojPXno2Kw2JSiKMYduKYQckTm1RJoVDA557MnyUXgcuuDpry4HY/Rny9nGNcK+m3AHk94wag==}
+    peerDependencies:
+      vue: ^3.2.41
+    dependencies:
+      quill: 1.3.7
+      quill-delta: 4.2.2
+      vue: 3.4.0
+    dev: false
+
+  /@vueuse/core@10.6.1(vue@3.4.0):
+    resolution: {integrity: sha512-Pc26IJbqgC9VG1u6VY/xrXXfxD33hnvxBnKrLlA2LJlyHII+BSrRoTPJgGYq7qZOu61itITFUnm6QbacwZ4H8Q==}
+    dependencies:
+      '@types/web-bluetooth': 0.0.20
+      '@vueuse/metadata': 10.6.1
+      '@vueuse/shared': 10.6.1(vue@3.4.0)
+      vue-demi: 0.14.7(vue@3.4.0)
+    transitivePeerDependencies:
+      - '@vue/composition-api'
+      - vue
+
+  /@vueuse/core@9.13.0(vue@3.4.0):
+    resolution: {integrity: sha512-pujnclbeHWxxPRqXWmdkKV5OX4Wk4YeK7wusHqRwU0Q7EFusHoqNA/aPhB6KCh9hEqJkLAJo7bb0Lh9b+OIVzw==}
+    dependencies:
+      '@types/web-bluetooth': 0.0.16
+      '@vueuse/metadata': 9.13.0
+      '@vueuse/shared': 9.13.0(vue@3.4.0)
+      vue-demi: 0.14.7(vue@3.4.0)
+    transitivePeerDependencies:
+      - '@vue/composition-api'
+      - vue
+    dev: false
+
+  /@vueuse/metadata@10.6.1:
+    resolution: {integrity: sha512-qhdwPI65Bgcj23e5lpGfQsxcy0bMjCAsUGoXkJ7DsoeDUdasbZ2DBa4dinFCOER3lF4gwUv+UD2AlA11zdzMFw==}
+
+  /@vueuse/metadata@9.13.0:
+    resolution: {integrity: sha512-gdU7TKNAUVlXXLbaF+ZCfte8BjRJQWPCa2J55+7/h+yDtzw3vOoGQDRXzI6pyKyo6bXFT5/QoPE4hAknExjRLQ==}
+    dev: false
+
+  /@vueuse/shared@10.6.1(vue@3.4.0):
+    resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==}
+    dependencies:
+      vue-demi: 0.14.7(vue@3.4.0)
+    transitivePeerDependencies:
+      - '@vue/composition-api'
+      - vue
+
+  /@vueuse/shared@9.13.0(vue@3.4.0):
+    resolution: {integrity: sha512-UrnhU+Cnufu4S6JLCPZnkWh0WwZGUp72ktOF2DFptMlOs3TOdVv8xJN53zhHGARmVOsz5KqOls09+J1NR6sBKw==}
+    dependencies:
+      vue-demi: 0.14.7(vue@3.4.0)
+    transitivePeerDependencies:
+      - '@vue/composition-api'
+      - vue
+    dev: false
+
+  /abbrev@2.0.0:
+    resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}
+    engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+    dev: false
+
+  /acorn@8.11.3:
+    resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}
+    engines: {node: '>=0.4.0'}
+    hasBin: true
+    dev: true
+
+  /ansi-regex@2.1.1:
+    resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /ansi-regex@5.0.1:
+    resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
+    engines: {node: '>=8'}
+    dev: false
+
+  /ansi-regex@6.0.1:
+    resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==}
+    engines: {node: '>=12'}
+    dev: false
+
+  /ansi-styles@2.2.1:
+    resolution: {integrity: sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /ansi-styles@4.3.0:
+    resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
+    engines: {node: '>=8'}
+    dependencies:
+      color-convert: 2.0.1
+
+  /ansi-styles@6.2.1:
+    resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}
+    engines: {node: '>=12'}
+    dev: false
+
+  /anymatch@3.1.3:
+    resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
+    engines: {node: '>= 8'}
+    dependencies:
+      normalize-path: 3.0.0
+      picomatch: 2.3.1
+    dev: true
+
+  /arr-diff@4.0.0:
+    resolution: {integrity: sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /arr-flatten@1.1.0:
+    resolution: {integrity: sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /arr-union@3.1.0:
+    resolution: {integrity: sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /array-unique@0.3.2:
+    resolution: {integrity: sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /assign-symbols@1.0.0:
+    resolution: {integrity: sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /async-validator@4.2.5:
+    resolution: {integrity: sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==}
+    dev: false
+
+  /asynckit@0.4.0:
+    resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
+    dev: false
+
+  /atob@2.1.2:
+    resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==}
+    engines: {node: '>= 4.5.0'}
+    hasBin: true
+    dev: true
+
+  /axios@0.27.2:
+    resolution: {integrity: sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==}
+    dependencies:
+      follow-redirects: 1.15.5
+      form-data: 4.0.0
+    transitivePeerDependencies:
+      - debug
+    dev: false
+
+  /balanced-match@1.0.2:
+    resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
+
+  /base@0.11.2:
+    resolution: {integrity: sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      cache-base: 1.0.1
+      class-utils: 0.3.6
+      component-emitter: 1.3.1
+      define-property: 1.0.0
+      isobject: 3.0.1
+      mixin-deep: 1.3.2
+      pascalcase: 0.1.1
+    dev: true
+
+  /big.js@5.2.2:
+    resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}
+    dev: true
+
+  /binary-extensions@2.2.0:
+    resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}
+    engines: {node: '>=8'}
+    dev: true
+
+  /bluebird@3.7.2:
+    resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==}
+    dev: true
+
+  /boolbase@1.0.0:
+    resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
+    dev: true
+
+  /brace-expansion@2.0.1:
+    resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==}
+    dependencies:
+      balanced-match: 1.0.2
+
+  /braces@2.3.2:
+    resolution: {integrity: sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      arr-flatten: 1.1.0
+      array-unique: 0.3.2
+      extend-shallow: 2.0.1
+      fill-range: 4.0.0
+      isobject: 3.0.1
+      repeat-element: 1.1.4
+      snapdragon: 0.8.2
+      snapdragon-node: 2.1.1
+      split-string: 3.1.0
+      to-regex: 3.0.2
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /braces@3.0.2:
+    resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==}
+    engines: {node: '>=8'}
+    dependencies:
+      fill-range: 7.0.1
+    dev: true
+
+  /cache-base@1.0.1:
+    resolution: {integrity: sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      collection-visit: 1.0.0
+      component-emitter: 1.3.1
+      get-value: 2.0.6
+      has-value: 1.0.0
+      isobject: 3.0.1
+      set-value: 2.0.1
+      to-object-path: 0.3.0
+      union-value: 1.0.1
+      unset-value: 1.0.0
+    dev: true
+
+  /call-bind@1.0.6:
+    resolution: {integrity: sha512-Mj50FLHtlsoVfRfnHaZvyrooHcrlceNZdL/QBvJJVd9Ta55qCQK0gs4ss2oZDeV9zFCs6ewzYgVE5yfVmfFpVg==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      es-errors: 1.3.0
+      function-bind: 1.1.2
+      get-intrinsic: 1.2.4
+      set-function-length: 1.2.1
+    dev: false
+
+  /chalk@1.1.3:
+    resolution: {integrity: sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      ansi-styles: 2.2.1
+      escape-string-regexp: 1.0.5
+      has-ansi: 2.0.0
+      strip-ansi: 3.0.1
+      supports-color: 2.0.0
+    dev: true
+
+  /chalk@4.1.2:
+    resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
+    engines: {node: '>=10'}
+    dependencies:
+      ansi-styles: 4.3.0
+      supports-color: 7.2.0
+    dev: true
+
+  /chokidar@3.6.0:
+    resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
+    engines: {node: '>= 8.10.0'}
+    dependencies:
+      anymatch: 3.1.3
+      braces: 3.0.2
+      glob-parent: 5.1.2
+      is-binary-path: 2.1.0
+      is-glob: 4.0.3
+      normalize-path: 3.0.0
+      readdirp: 3.6.0
+    optionalDependencies:
+      fsevents: 2.3.3
+    dev: true
+
+  /class-utils@0.3.6:
+    resolution: {integrity: sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      arr-union: 3.1.0
+      define-property: 0.2.5
+      isobject: 3.0.1
+      static-extend: 0.1.2
+    dev: true
+
+  /clipboard@2.0.11:
+    resolution: {integrity: sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==}
+    dependencies:
+      good-listener: 1.2.2
+      select: 1.1.2
+      tiny-emitter: 2.1.0
+    dev: false
+
+  /clone@2.1.2:
+    resolution: {integrity: sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==}
+    engines: {node: '>=0.8'}
+
+  /collection-visit@1.0.0:
+    resolution: {integrity: sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      map-visit: 1.0.0
+      object-visit: 1.0.1
+    dev: true
+
+  /color-convert@2.0.1:
+    resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
+    engines: {node: '>=7.0.0'}
+    dependencies:
+      color-name: 1.1.4
+
+  /color-name@1.1.4:
+    resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+
+  /combined-stream@1.0.8:
+    resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
+    engines: {node: '>= 0.8'}
+    dependencies:
+      delayed-stream: 1.0.0
+    dev: false
+
+  /commander@10.0.1:
+    resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}
+    engines: {node: '>=14'}
+    dev: false
+
+  /commander@7.2.0:
+    resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
+    engines: {node: '>= 10'}
+    dev: true
+
+  /component-emitter@1.3.1:
+    resolution: {integrity: sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==}
+    dev: true
+
+  /config-chain@1.1.13:
+    resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}
+    dependencies:
+      ini: 1.3.8
+      proto-list: 1.2.4
+    dev: false
+
+  /copy-descriptor@0.1.1:
+    resolution: {integrity: sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /cors@2.8.5:
+    resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==}
+    engines: {node: '>= 0.10'}
+    dependencies:
+      object-assign: 4.1.1
+      vary: 1.1.2
+    dev: true
+
+  /cross-spawn@7.0.3:
+    resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
+    engines: {node: '>= 8'}
+    dependencies:
+      path-key: 3.1.1
+      shebang-command: 2.0.0
+      which: 2.0.2
+    dev: false
+
+  /css-select@4.3.0:
+    resolution: {integrity: sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==}
+    dependencies:
+      boolbase: 1.0.0
+      css-what: 6.1.0
+      domhandler: 4.3.1
+      domutils: 2.8.0
+      nth-check: 2.1.1
+    dev: true
+
+  /css-tree@1.1.3:
+    resolution: {integrity: sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==}
+    engines: {node: '>=8.0.0'}
+    dependencies:
+      mdn-data: 2.0.14
+      source-map: 0.6.1
+    dev: true
+
+  /css-what@6.1.0:
+    resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==}
+    engines: {node: '>= 6'}
+    dev: true
+
+  /csso@4.2.0:
+    resolution: {integrity: sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==}
+    engines: {node: '>=8.0.0'}
+    dependencies:
+      css-tree: 1.1.3
+    dev: true
+
+  /csstype@3.1.3:
+    resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
+
+  /dayjs@1.11.10:
+    resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==}
+    dev: false
+
+  /debug@2.6.9:
+    resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}
+    peerDependencies:
+      supports-color: '*'
+    peerDependenciesMeta:
+      supports-color:
+        optional: true
+    dependencies:
+      ms: 2.0.0
+    dev: true
+
+  /debug@4.3.4:
+    resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
+    engines: {node: '>=6.0'}
+    peerDependencies:
+      supports-color: '*'
+    peerDependenciesMeta:
+      supports-color:
+        optional: true
+    dependencies:
+      ms: 2.1.2
+    dev: true
+
+  /decode-uri-component@0.2.2:
+    resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==}
+    engines: {node: '>=0.10'}
+    dev: true
+
+  /deep-equal@1.1.2:
+    resolution: {integrity: sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      is-arguments: 1.1.1
+      is-date-object: 1.0.5
+      is-regex: 1.1.4
+      object-is: 1.1.5
+      object-keys: 1.1.1
+      regexp.prototype.flags: 1.5.2
+    dev: false
+
+  /define-data-property@1.1.2:
+    resolution: {integrity: sha512-SRtsSqsDbgpJBbW3pABMCOt6rQyeM8s8RiyeSN8jYG8sYmt/kGJejbydttUsnDs1tadr19tvhT4ShwMyoqAm4g==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      es-errors: 1.3.0
+      get-intrinsic: 1.2.4
+      gopd: 1.0.1
+      has-property-descriptors: 1.0.1
+    dev: false
+
+  /define-properties@1.2.1:
+    resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      define-data-property: 1.1.2
+      has-property-descriptors: 1.0.1
+      object-keys: 1.1.1
+    dev: false
+
+  /define-property@0.2.5:
+    resolution: {integrity: sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-descriptor: 0.1.7
+    dev: true
+
+  /define-property@1.0.0:
+    resolution: {integrity: sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-descriptor: 1.0.3
+    dev: true
+
+  /define-property@2.0.2:
+    resolution: {integrity: sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-descriptor: 1.0.3
+      isobject: 3.0.1
+    dev: true
+
+  /delayed-stream@1.0.0:
+    resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
+    engines: {node: '>=0.4.0'}
+    dev: false
+
+  /delegate@3.2.0:
+    resolution: {integrity: sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==}
+    dev: false
+
+  /dom-serializer@0.2.2:
+    resolution: {integrity: sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==}
+    dependencies:
+      domelementtype: 2.3.0
+      entities: 2.2.0
+    dev: true
+
+  /dom-serializer@1.4.1:
+    resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==}
+    dependencies:
+      domelementtype: 2.3.0
+      domhandler: 4.3.1
+      entities: 2.2.0
+    dev: true
+
+  /domelementtype@1.3.1:
+    resolution: {integrity: sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==}
+    dev: true
+
+  /domelementtype@2.3.0:
+    resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
+    dev: true
+
+  /domhandler@2.4.2:
+    resolution: {integrity: sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==}
+    dependencies:
+      domelementtype: 1.3.1
+    dev: true
+
+  /domhandler@4.3.1:
+    resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==}
+    engines: {node: '>= 4'}
+    dependencies:
+      domelementtype: 2.3.0
+    dev: true
+
+  /domutils@1.7.0:
+    resolution: {integrity: sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==}
+    dependencies:
+      dom-serializer: 0.2.2
+      domelementtype: 1.3.1
+    dev: true
+
+  /domutils@2.8.0:
+    resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==}
+    dependencies:
+      dom-serializer: 1.4.1
+      domelementtype: 2.3.0
+      domhandler: 4.3.1
+    dev: true
+
+  /eastasianwidth@0.2.0:
+    resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
+    dev: false
+
+  /echarts@5.4.3:
+    resolution: {integrity: sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==}
+    dependencies:
+      tslib: 2.3.0
+      zrender: 5.4.4
+    dev: false
+
+  /editorconfig@1.0.4:
+    resolution: {integrity: sha512-L9Qe08KWTlqYMVvMcTIvMAdl1cDUubzRNYL+WfA4bLDMHe4nemKkpmYzkznE1FwLKu0EEmy6obgQKzMJrg4x9Q==}
+    engines: {node: '>=14'}
+    hasBin: true
+    dependencies:
+      '@one-ini/wasm': 0.1.1
+      commander: 10.0.1
+      minimatch: 9.0.1
+      semver: 7.6.0
+    dev: false
+
+  /element-plus@2.4.3(vue@3.4.0):
+    resolution: {integrity: sha512-b3q26j+lM4SBqiyzw8HybybGnP2pk4MWgrnzzzYW5qKQUgV6EG1Zg7nMCfgCVccI8tNvZoTiUHb2mFaiB9qT8w==}
+    peerDependencies:
+      vue: ^3.2.0
+    dependencies:
+      '@ctrl/tinycolor': 3.6.1
+      '@element-plus/icons-vue': 2.3.1(vue@3.4.0)
+      '@floating-ui/dom': 1.6.3
+      '@popperjs/core': /@sxzz/popperjs-es@2.11.7
+      '@types/lodash': 4.14.202
+      '@types/lodash-es': 4.17.12
+      '@vueuse/core': 9.13.0(vue@3.4.0)
+      async-validator: 4.2.5
+      dayjs: 1.11.10
+      escape-html: 1.0.3
+      lodash: 4.17.21
+      lodash-es: 4.17.21
+      lodash-unified: 1.0.3(@types/lodash-es@4.17.12)(lodash-es@4.17.21)(lodash@4.17.21)
+      memoize-one: 6.0.0
+      normalize-wheel-es: 1.2.0
+      vue: 3.4.0
+    transitivePeerDependencies:
+      - '@vue/composition-api'
+    dev: false
+
+  /emoji-regex@8.0.0:
+    resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
+    dev: false
+
+  /emoji-regex@9.2.2:
+    resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
+    dev: false
+
+  /emojis-list@3.0.0:
+    resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==}
+    engines: {node: '>= 4'}
+    dev: true
+
+  /entities@1.1.2:
+    resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==}
+    dev: true
+
+  /entities@2.2.0:
+    resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==}
+    dev: true
+
+  /entities@4.5.0:
+    resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
+    engines: {node: '>=0.12'}
+
+  /es-errors@1.3.0:
+    resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
+    engines: {node: '>= 0.4'}
+    dev: false
+
+  /esbuild@0.19.12:
+    resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==}
+    engines: {node: '>=12'}
+    hasBin: true
+    requiresBuild: true
+    optionalDependencies:
+      '@esbuild/aix-ppc64': 0.19.12
+      '@esbuild/android-arm': 0.19.12
+      '@esbuild/android-arm64': 0.19.12
+      '@esbuild/android-x64': 0.19.12
+      '@esbuild/darwin-arm64': 0.19.12
+      '@esbuild/darwin-x64': 0.19.12
+      '@esbuild/freebsd-arm64': 0.19.12
+      '@esbuild/freebsd-x64': 0.19.12
+      '@esbuild/linux-arm': 0.19.12
+      '@esbuild/linux-arm64': 0.19.12
+      '@esbuild/linux-ia32': 0.19.12
+      '@esbuild/linux-loong64': 0.19.12
+      '@esbuild/linux-mips64el': 0.19.12
+      '@esbuild/linux-ppc64': 0.19.12
+      '@esbuild/linux-riscv64': 0.19.12
+      '@esbuild/linux-s390x': 0.19.12
+      '@esbuild/linux-x64': 0.19.12
+      '@esbuild/netbsd-x64': 0.19.12
+      '@esbuild/openbsd-x64': 0.19.12
+      '@esbuild/sunos-x64': 0.19.12
+      '@esbuild/win32-arm64': 0.19.12
+      '@esbuild/win32-ia32': 0.19.12
+      '@esbuild/win32-x64': 0.19.12
+    dev: true
+
+  /escape-html@1.0.3:
+    resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}
+    dev: false
+
+  /escape-string-regexp@1.0.5:
+    resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
+    engines: {node: '>=0.8.0'}
+    dev: true
+
+  /escape-string-regexp@5.0.0:
+    resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==}
+    engines: {node: '>=12'}
+    dev: true
+
+  /estree-walker@2.0.2:
+    resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
+
+  /estree-walker@3.0.3:
+    resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
+    dependencies:
+      '@types/estree': 1.0.5
+    dev: true
+
+  /etag@1.8.1:
+    resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}
+    engines: {node: '>= 0.6'}
+    dev: true
+
+  /eventemitter3@2.0.3:
+    resolution: {integrity: sha512-jLN68Dx5kyFHaePoXWPsCGW5qdyZQtLYHkxkg02/Mz6g0kYpDx4FyP6XfArhQdlOC4b8Mv+EMxPo/8La7Tzghg==}
+    dev: false
+
+  /expand-brackets@2.1.4:
+    resolution: {integrity: sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      debug: 2.6.9
+      define-property: 0.2.5
+      extend-shallow: 2.0.1
+      posix-character-classes: 0.1.1
+      regex-not: 1.0.2
+      snapdragon: 0.8.2
+      to-regex: 3.0.2
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /extend-shallow@2.0.1:
+    resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-extendable: 0.1.1
+    dev: true
+
+  /extend-shallow@3.0.2:
+    resolution: {integrity: sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      assign-symbols: 1.0.0
+      is-extendable: 1.0.1
+    dev: true
+
+  /extend@3.0.2:
+    resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
+    dev: false
+
+  /extglob@2.0.4:
+    resolution: {integrity: sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      array-unique: 0.3.2
+      define-property: 1.0.0
+      expand-brackets: 2.1.4
+      extend-shallow: 2.0.1
+      fragment-cache: 0.2.1
+      regex-not: 1.0.2
+      snapdragon: 0.8.2
+      to-regex: 3.0.2
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /fast-diff@1.1.2:
+    resolution: {integrity: sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==}
+    dev: false
+
+  /fast-diff@1.2.0:
+    resolution: {integrity: sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==}
+    dev: false
+
+  /fast-glob@3.3.2:
+    resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}
+    engines: {node: '>=8.6.0'}
+    dependencies:
+      '@nodelib/fs.stat': 2.0.5
+      '@nodelib/fs.walk': 1.2.8
+      glob-parent: 5.1.2
+      merge2: 1.4.1
+      micromatch: 4.0.5
+    dev: true
+
+  /fastq@1.17.1:
+    resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==}
+    dependencies:
+      reusify: 1.0.4
+    dev: true
+
+  /file-saver@2.0.5:
+    resolution: {integrity: sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==}
+    dev: false
+
+  /fill-range@4.0.0:
+    resolution: {integrity: sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      extend-shallow: 2.0.1
+      is-number: 3.0.0
+      repeat-string: 1.6.1
+      to-regex-range: 2.1.1
+    dev: true
+
+  /fill-range@7.0.1:
+    resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}
+    engines: {node: '>=8'}
+    dependencies:
+      to-regex-range: 5.0.1
+    dev: true
+
+  /follow-redirects@1.15.5:
+    resolution: {integrity: sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==}
+    engines: {node: '>=4.0'}
+    peerDependencies:
+      debug: '*'
+    peerDependenciesMeta:
+      debug:
+        optional: true
+    dev: false
+
+  /for-in@1.0.2:
+    resolution: {integrity: sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /foreground-child@3.1.1:
+    resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==}
+    engines: {node: '>=14'}
+    dependencies:
+      cross-spawn: 7.0.3
+      signal-exit: 4.1.0
+    dev: false
+
+  /form-data@4.0.0:
+    resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==}
+    engines: {node: '>= 6'}
+    dependencies:
+      asynckit: 0.4.0
+      combined-stream: 1.0.8
+      mime-types: 2.1.35
+    dev: false
+
+  /fragment-cache@0.2.1:
+    resolution: {integrity: sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      map-cache: 0.2.2
+    dev: true
+
+  /fs-extra@10.1.0:
+    resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}
+    engines: {node: '>=12'}
+    dependencies:
+      graceful-fs: 4.2.11
+      jsonfile: 6.1.0
+      universalify: 2.0.1
+    dev: true
+
+  /fsevents@2.3.3:
+    resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
+    engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /function-bind@1.1.2:
+    resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
+
+  /functions-have-names@1.2.3:
+    resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
+    dev: false
+
+  /fuse.js@6.6.2:
+    resolution: {integrity: sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==}
+    engines: {node: '>=10'}
+    dev: false
+
+  /get-intrinsic@1.2.4:
+    resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      es-errors: 1.3.0
+      function-bind: 1.1.2
+      has-proto: 1.0.1
+      has-symbols: 1.0.3
+      hasown: 2.0.1
+    dev: false
+
+  /get-value@2.0.6:
+    resolution: {integrity: sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /glob-parent@5.1.2:
+    resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
+    engines: {node: '>= 6'}
+    dependencies:
+      is-glob: 4.0.3
+    dev: true
+
+  /glob@10.3.10:
+    resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==}
+    engines: {node: '>=16 || 14 >=14.17'}
+    hasBin: true
+    dependencies:
+      foreground-child: 3.1.1
+      jackspeak: 2.3.6
+      minimatch: 9.0.3
+      minipass: 7.0.4
+      path-scurry: 1.10.1
+    dev: false
+
+  /good-listener@1.2.2:
+    resolution: {integrity: sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==}
+    dependencies:
+      delegate: 3.2.0
+    dev: false
+
+  /gopd@1.0.1:
+    resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
+    dependencies:
+      get-intrinsic: 1.2.4
+    dev: false
+
+  /graceful-fs@4.2.11:
+    resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+    dev: true
+
+  /has-ansi@2.0.0:
+    resolution: {integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      ansi-regex: 2.1.1
+    dev: true
+
+  /has-flag@1.0.0:
+    resolution: {integrity: sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /has-flag@4.0.0:
+    resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
+    engines: {node: '>=8'}
+    dev: true
+
+  /has-property-descriptors@1.0.1:
+    resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==}
+    dependencies:
+      get-intrinsic: 1.2.4
+    dev: false
+
+  /has-proto@1.0.1:
+    resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==}
+    engines: {node: '>= 0.4'}
+    dev: false
+
+  /has-symbols@1.0.3:
+    resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==}
+    engines: {node: '>= 0.4'}
+    dev: false
+
+  /has-tostringtag@1.0.2:
+    resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      has-symbols: 1.0.3
+    dev: false
+
+  /has-value@0.3.1:
+    resolution: {integrity: sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      get-value: 2.0.6
+      has-values: 0.1.4
+      isobject: 2.1.0
+    dev: true
+
+  /has-value@1.0.0:
+    resolution: {integrity: sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      get-value: 2.0.6
+      has-values: 1.0.0
+      isobject: 3.0.1
+    dev: true
+
+  /has-values@0.1.4:
+    resolution: {integrity: sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /has-values@1.0.0:
+    resolution: {integrity: sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-number: 3.0.0
+      kind-of: 4.0.0
+    dev: true
+
+  /hasown@2.0.1:
+    resolution: {integrity: sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      function-bind: 1.1.2
+
+  /he@1.2.0:
+    resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
+    hasBin: true
+    dev: true
+
+  /htmlparser2@3.10.1:
+    resolution: {integrity: sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==}
+    dependencies:
+      domelementtype: 1.3.1
+      domhandler: 2.4.2
+      domutils: 1.7.0
+      entities: 1.1.2
+      inherits: 2.0.4
+      readable-stream: 3.6.2
+    dev: true
+
+  /image-size@0.5.5:
+    resolution: {integrity: sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==}
+    engines: {node: '>=0.10.0'}
+    hasBin: true
+    dev: true
+
+  /immutable@4.3.5:
+    resolution: {integrity: sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==}
+    dev: true
+
+  /inherits@2.0.4:
+    resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+    dev: true
+
+  /ini@1.3.8:
+    resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}
+    dev: false
+
+  /is-accessor-descriptor@1.0.1:
+    resolution: {integrity: sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==}
+    engines: {node: '>= 0.10'}
+    dependencies:
+      hasown: 2.0.1
+    dev: true
+
+  /is-arguments@1.1.1:
+    resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      call-bind: 1.0.6
+      has-tostringtag: 1.0.2
+    dev: false
+
+  /is-binary-path@2.1.0:
+    resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
+    engines: {node: '>=8'}
+    dependencies:
+      binary-extensions: 2.2.0
+    dev: true
+
+  /is-buffer@1.1.6:
+    resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==}
+    dev: true
+
+  /is-data-descriptor@1.0.1:
+    resolution: {integrity: sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      hasown: 2.0.1
+    dev: true
+
+  /is-date-object@1.0.5:
+    resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      has-tostringtag: 1.0.2
+    dev: false
+
+  /is-descriptor@0.1.7:
+    resolution: {integrity: sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      is-accessor-descriptor: 1.0.1
+      is-data-descriptor: 1.0.1
+    dev: true
+
+  /is-descriptor@1.0.3:
+    resolution: {integrity: sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      is-accessor-descriptor: 1.0.1
+      is-data-descriptor: 1.0.1
+    dev: true
+
+  /is-extendable@0.1.1:
+    resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /is-extendable@1.0.1:
+    resolution: {integrity: sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-plain-object: 2.0.4
+    dev: true
+
+  /is-extglob@2.1.1:
+    resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /is-fullwidth-code-point@3.0.0:
+    resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
+    engines: {node: '>=8'}
+    dev: false
+
+  /is-glob@4.0.3:
+    resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-extglob: 2.1.1
+    dev: true
+
+  /is-number@3.0.0:
+    resolution: {integrity: sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      kind-of: 3.2.2
+    dev: true
+
+  /is-number@7.0.0:
+    resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
+    engines: {node: '>=0.12.0'}
+    dev: true
+
+  /is-plain-obj@1.1.0:
+    resolution: {integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /is-plain-object@2.0.4:
+    resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      isobject: 3.0.1
+    dev: true
+
+  /is-regex@1.1.4:
+    resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      call-bind: 1.0.6
+      has-tostringtag: 1.0.2
+    dev: false
+
+  /is-windows@1.0.2:
+    resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /isarray@1.0.0:
+    resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==}
+    dev: true
+
+  /isexe@2.0.0:
+    resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+    dev: false
+
+  /isobject@2.1.0:
+    resolution: {integrity: sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      isarray: 1.0.0
+    dev: true
+
+  /isobject@3.0.1:
+    resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /jackspeak@2.3.6:
+    resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==}
+    engines: {node: '>=14'}
+    dependencies:
+      '@isaacs/cliui': 8.0.2
+    optionalDependencies:
+      '@pkgjs/parseargs': 0.11.0
+    dev: false
+
+  /js-base64@2.6.4:
+    resolution: {integrity: sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==}
+    dev: true
+
+  /js-beautify@1.14.11:
+    resolution: {integrity: sha512-rPogWqAfoYh1Ryqqh2agUpVfbxAhbjuN1SmU86dskQUKouRiggUTCO4+2ym9UPXllc2WAp0J+T5qxn7Um3lCdw==}
+    engines: {node: '>=14'}
+    hasBin: true
+    dependencies:
+      config-chain: 1.1.13
+      editorconfig: 1.0.4
+      glob: 10.3.10
+      nopt: 7.2.0
+    dev: false
+
+  /js-cookie@3.0.5:
+    resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==}
+    engines: {node: '>=14'}
+    dev: false
+
+  /jsencrypt@3.3.2:
+    resolution: {integrity: sha512-arQR1R1ESGdAxY7ZheWr12wCaF2yF47v5qpB76TtV64H1pyGudk9Hvw8Y9tb/FiTIaaTRUyaSnm5T/Y53Ghm/A==}
+    dev: false
+
+  /json5@1.0.2:
+    resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
+    hasBin: true
+    dependencies:
+      minimist: 1.2.8
+    dev: true
+
+  /jsonc-parser@3.2.1:
+    resolution: {integrity: sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==}
+    dev: true
+
+  /jsonfile@6.1.0:
+    resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
+    dependencies:
+      universalify: 2.0.1
+    optionalDependencies:
+      graceful-fs: 4.2.11
+    dev: true
+
+  /kind-of@3.2.2:
+    resolution: {integrity: sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-buffer: 1.1.6
+    dev: true
+
+  /kind-of@4.0.0:
+    resolution: {integrity: sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-buffer: 1.1.6
+    dev: true
+
+  /kind-of@5.1.0:
+    resolution: {integrity: sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /kind-of@6.0.3:
+    resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /loader-utils@1.4.2:
+    resolution: {integrity: sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==}
+    engines: {node: '>=4.0.0'}
+    dependencies:
+      big.js: 5.2.2
+      emojis-list: 3.0.0
+      json5: 1.0.2
+    dev: true
+
+  /local-pkg@0.5.0:
+    resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==}
+    engines: {node: '>=14'}
+    dependencies:
+      mlly: 1.5.0
+      pkg-types: 1.0.3
+    dev: true
+
+  /lodash-es@4.17.21:
+    resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==}
+    dev: false
+
+  /lodash-unified@1.0.3(@types/lodash-es@4.17.12)(lodash-es@4.17.21)(lodash@4.17.21):
+    resolution: {integrity: sha512-WK9qSozxXOD7ZJQlpSqOT+om2ZfcT4yO+03FuzAHD0wF6S0l0090LRPDx3vhTTLZ8cFKpBn+IOcVXK6qOcIlfQ==}
+    peerDependencies:
+      '@types/lodash-es': '*'
+      lodash: '*'
+      lodash-es: '*'
+    dependencies:
+      '@types/lodash-es': 4.17.12
+      lodash: 4.17.21
+      lodash-es: 4.17.21
+    dev: false
+
+  /lodash.clonedeep@4.5.0:
+    resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==}
+    dev: false
+
+  /lodash.isequal@4.5.0:
+    resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
+    dev: false
+
+  /lodash@4.17.21:
+    resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
+    dev: false
+
+  /lru-cache@10.2.0:
+    resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==}
+    engines: {node: 14 || >=16.14}
+    dev: false
+
+  /lru-cache@6.0.0:
+    resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
+    engines: {node: '>=10'}
+    dependencies:
+      yallist: 4.0.0
+    dev: false
+
+  /magic-string@0.26.7:
+    resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==}
+    engines: {node: '>=12'}
+    dependencies:
+      sourcemap-codec: 1.4.8
+    dev: true
+
+  /magic-string@0.30.7:
+    resolution: {integrity: sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA==}
+    engines: {node: '>=12'}
+    dependencies:
+      '@jridgewell/sourcemap-codec': 1.4.15
+
+  /map-cache@0.2.2:
+    resolution: {integrity: sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /map-visit@1.0.0:
+    resolution: {integrity: sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      object-visit: 1.0.1
+    dev: true
+
+  /mdn-data@2.0.14:
+    resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==}
+    dev: true
+
+  /memoize-one@6.0.0:
+    resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==}
+    dev: false
+
+  /merge-options@1.0.1:
+    resolution: {integrity: sha512-iuPV41VWKWBIOpBsjoxjDZw8/GbSfZ2mk7N1453bwMrfzdrIk7EzBd+8UVR6rkw67th7xnk9Dytl3J+lHPdxvg==}
+    engines: {node: '>=4'}
+    dependencies:
+      is-plain-obj: 1.1.0
+    dev: true
+
+  /merge2@1.4.1:
+    resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
+    engines: {node: '>= 8'}
+    dev: true
+
+  /micromatch@3.1.0:
+    resolution: {integrity: sha512-3StSelAE+hnRvMs8IdVW7Uhk8CVed5tp+kLLGlBP6WiRAXS21GPGu/Nat4WNPXj2Eoc24B02SaeoyozPMfj0/g==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      arr-diff: 4.0.0
+      array-unique: 0.3.2
+      braces: 2.3.2
+      define-property: 1.0.0
+      extend-shallow: 2.0.1
+      extglob: 2.0.4
+      fragment-cache: 0.2.1
+      kind-of: 5.1.0
+      nanomatch: 1.2.13
+      object.pick: 1.3.0
+      regex-not: 1.0.2
+      snapdragon: 0.8.2
+      to-regex: 3.0.2
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /micromatch@4.0.5:
+    resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==}
+    engines: {node: '>=8.6'}
+    dependencies:
+      braces: 3.0.2
+      picomatch: 2.3.1
+    dev: true
+
+  /mime-db@1.52.0:
+    resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
+    engines: {node: '>= 0.6'}
+    dev: false
+
+  /mime-types@2.1.35:
+    resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
+    engines: {node: '>= 0.6'}
+    dependencies:
+      mime-db: 1.52.0
+    dev: false
+
+  /minimatch@9.0.1:
+    resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==}
+    engines: {node: '>=16 || 14 >=14.17'}
+    dependencies:
+      brace-expansion: 2.0.1
+    dev: false
+
+  /minimatch@9.0.3:
+    resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
+    engines: {node: '>=16 || 14 >=14.17'}
+    dependencies:
+      brace-expansion: 2.0.1
+
+  /minimist@1.2.8:
+    resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
+    dev: true
+
+  /minipass@7.0.4:
+    resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==}
+    engines: {node: '>=16 || 14 >=14.17'}
+    dev: false
+
+  /mixin-deep@1.3.2:
+    resolution: {integrity: sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      for-in: 1.0.2
+      is-extendable: 1.0.1
+    dev: true
+
+  /mlly@1.5.0:
+    resolution: {integrity: sha512-NPVQvAY1xr1QoVeG0cy8yUYC7FQcOx6evl/RjT1wL5FvzPnzOysoqB/jmx/DhssT2dYa8nxECLAaFI/+gVLhDQ==}
+    dependencies:
+      acorn: 8.11.3
+      pathe: 1.1.2
+      pkg-types: 1.0.3
+      ufo: 1.4.0
+    dev: true
+
+  /ms@2.0.0:
+    resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}
+    dev: true
+
+  /ms@2.1.2:
+    resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
+    dev: true
+
+  /nanoid@3.3.7:
+    resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
+    engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+    hasBin: true
+
+  /nanomatch@1.2.13:
+    resolution: {integrity: sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      arr-diff: 4.0.0
+      array-unique: 0.3.2
+      define-property: 2.0.2
+      extend-shallow: 3.0.2
+      fragment-cache: 0.2.1
+      is-windows: 1.0.2
+      kind-of: 6.0.3
+      object.pick: 1.3.0
+      regex-not: 1.0.2
+      snapdragon: 0.8.2
+      to-regex: 3.0.2
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /nopt@7.2.0:
+    resolution: {integrity: sha512-CVDtwCdhYIvnAzFoJ6NJ6dX3oga9/HyciQDnG1vQDjSLMeKLJ4A93ZqYKDrgYSr1FBY5/hMYC+2VCi24pgpkGA==}
+    engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+    hasBin: true
+    dependencies:
+      abbrev: 2.0.0
+    dev: false
+
+  /normalize-path@3.0.0:
+    resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /normalize-wheel-es@1.2.0:
+    resolution: {integrity: sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==}
+    dev: false
+
+  /nprogress@0.2.0:
+    resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==}
+    dev: false
+
+  /nth-check@2.1.1:
+    resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
+    dependencies:
+      boolbase: 1.0.0
+    dev: true
+
+  /object-assign@4.1.1:
+    resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /object-copy@0.1.0:
+    resolution: {integrity: sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      copy-descriptor: 0.1.1
+      define-property: 0.2.5
+      kind-of: 3.2.2
+    dev: true
+
+  /object-is@1.1.5:
+    resolution: {integrity: sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      call-bind: 1.0.6
+      define-properties: 1.2.1
+    dev: false
+
+  /object-keys@1.1.1:
+    resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
+    engines: {node: '>= 0.4'}
+    dev: false
+
+  /object-visit@1.0.1:
+    resolution: {integrity: sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      isobject: 3.0.1
+    dev: true
+
+  /object.pick@1.3.0:
+    resolution: {integrity: sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      isobject: 3.0.1
+    dev: true
+
+  /parchment@1.1.4:
+    resolution: {integrity: sha512-J5FBQt/pM2inLzg4hEWmzQx/8h8D0CiDxaG3vyp9rKrQRSDgBlhjdP5jQGgosEajXPSQouXGHOmVdgo7QmJuOg==}
+    dev: false
+
+  /pascalcase@0.1.1:
+    resolution: {integrity: sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /path-key@3.1.1:
+    resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+    engines: {node: '>=8'}
+    dev: false
+
+  /path-scurry@1.10.1:
+    resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==}
+    engines: {node: '>=16 || 14 >=14.17'}
+    dependencies:
+      lru-cache: 10.2.0
+      minipass: 7.0.4
+    dev: false
+
+  /pathe@0.2.0:
+    resolution: {integrity: sha512-sTitTPYnn23esFR3RlqYBWn4c45WGeLcsKzQiUpXJAyfcWkolvlYpV8FLo7JishK946oQwMFUCHXQ9AjGPKExw==}
+    dev: true
+
+  /pathe@1.1.2:
+    resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
+    dev: true
+
+  /picocolors@1.0.0:
+    resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
+
+  /picomatch@2.3.1:
+    resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
+    engines: {node: '>=8.6'}
+    dev: true
+
+  /pinia@2.1.7(vue@3.4.0):
+    resolution: {integrity: sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ==}
+    peerDependencies:
+      '@vue/composition-api': ^1.4.0
+      typescript: '>=4.4.4'
+      vue: ^2.6.14 || ^3.3.0
+    peerDependenciesMeta:
+      '@vue/composition-api':
+        optional: true
+      typescript:
+        optional: true
+    dependencies:
+      '@vue/devtools-api': 6.5.1
+      vue: 3.4.0
+      vue-demi: 0.14.7(vue@3.4.0)
+    dev: false
+
+  /pkg-types@1.0.3:
+    resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==}
+    dependencies:
+      jsonc-parser: 3.2.1
+      mlly: 1.5.0
+      pathe: 1.1.2
+    dev: true
+
+  /posix-character-classes@0.1.1:
+    resolution: {integrity: sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /postcss-prefix-selector@1.16.0(postcss@5.2.18):
+    resolution: {integrity: sha512-rdVMIi7Q4B0XbXqNUEI+Z4E+pueiu/CS5E6vRCQommzdQ/sgsS4dK42U7GX8oJR+TJOtT+Qv3GkNo6iijUMp3Q==}
+    peerDependencies:
+      postcss: '>4 <9'
+    dependencies:
+      postcss: 5.2.18
+    dev: true
+
+  /postcss@5.2.18:
+    resolution: {integrity: sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==}
+    engines: {node: '>=0.12'}
+    dependencies:
+      chalk: 1.1.3
+      js-base64: 2.6.4
+      source-map: 0.5.7
+      supports-color: 3.2.3
+    dev: true
+
+  /postcss@8.4.35:
+    resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==}
+    engines: {node: ^10 || ^12 || >=14}
+    dependencies:
+      nanoid: 3.3.7
+      picocolors: 1.0.0
+      source-map-js: 1.0.2
+
+  /posthtml-parser@0.2.1:
+    resolution: {integrity: sha512-nPC53YMqJnc/+1x4fRYFfm81KV2V+G9NZY+hTohpYg64Ay7NemWWcV4UWuy/SgMupqQ3kJ88M/iRfZmSnxT+pw==}
+    dependencies:
+      htmlparser2: 3.10.1
+      isobject: 2.1.0
+    dev: true
+
+  /posthtml-rename-id@1.0.12:
+    resolution: {integrity: sha512-UKXf9OF/no8WZo9edRzvuMenb6AD5hDLzIepJW+a4oJT+T/Lx7vfMYWT4aWlGNQh0WMhnUx1ipN9OkZ9q+ddEw==}
+    dependencies:
+      escape-string-regexp: 1.0.5
+    dev: true
+
+  /posthtml-render@1.4.0:
+    resolution: {integrity: sha512-W1779iVHGfq0Fvh2PROhCe2QhB8mEErgqzo1wpIt36tCgChafP+hbXIhLDOM8ePJrZcFs0vkNEtdibEWVqChqw==}
+    engines: {node: '>=10'}
+    dev: true
+
+  /posthtml-svg-mode@1.0.3:
+    resolution: {integrity: sha512-hEqw9NHZ9YgJ2/0G7CECOeuLQKZi8HjWLkBaSVtOWjygQ9ZD8P7tqeowYs7WrFdKsWEKG7o+IlsPY8jrr0CJpQ==}
+    dependencies:
+      merge-options: 1.0.1
+      posthtml: 0.9.2
+      posthtml-parser: 0.2.1
+      posthtml-render: 1.4.0
+    dev: true
+
+  /posthtml@0.9.2:
+    resolution: {integrity: sha512-spBB5sgC4cv2YcW03f/IAUN1pgDJWNWD8FzkyY4mArLUMJW+KlQhlmUdKAHQuPfb00Jl5xIfImeOsf6YL8QK7Q==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      posthtml-parser: 0.2.1
+      posthtml-render: 1.4.0
+    dev: true
+
+  /proto-list@1.2.4:
+    resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==}
+    dev: false
+
+  /query-string@4.3.4:
+    resolution: {integrity: sha512-O2XLNDBIg1DnTOa+2XrIwSiXEV8h2KImXUnjhhn2+UsvZ+Es2uyd5CCRTNQlDGbzUQOW3aYCBx9rVA6dzsiY7Q==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      object-assign: 4.1.1
+      strict-uri-encode: 1.1.0
+    dev: true
+
+  /queue-microtask@1.2.3:
+    resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
+    dev: true
+
+  /quill-delta@3.6.3:
+    resolution: {integrity: sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==}
+    engines: {node: '>=0.10'}
+    dependencies:
+      deep-equal: 1.1.2
+      extend: 3.0.2
+      fast-diff: 1.1.2
+    dev: false
+
+  /quill-delta@4.2.2:
+    resolution: {integrity: sha512-qjbn82b/yJzOjstBgkhtBjN2TNK+ZHP/BgUQO+j6bRhWQQdmj2lH6hXG7+nwwLF41Xgn//7/83lxs9n2BkTtTg==}
+    dependencies:
+      fast-diff: 1.2.0
+      lodash.clonedeep: 4.5.0
+      lodash.isequal: 4.5.0
+    dev: false
+
+  /quill@1.3.7:
+    resolution: {integrity: sha512-hG/DVzh/TiknWtE6QmWAF/pxoZKYxfe3J/d/+ShUWkDvvkZQVTPeVmUJVu1uE6DDooC4fWTiCLh84ul89oNz5g==}
+    dependencies:
+      clone: 2.1.2
+      deep-equal: 1.1.2
+      eventemitter3: 2.0.3
+      extend: 3.0.2
+      parchment: 1.1.4
+      quill-delta: 3.6.3
+    dev: false
+
+  /readable-stream@3.6.2:
+    resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
+    engines: {node: '>= 6'}
+    dependencies:
+      inherits: 2.0.4
+      string_decoder: 1.3.0
+      util-deprecate: 1.0.2
+    dev: true
+
+  /readdirp@3.6.0:
+    resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
+    engines: {node: '>=8.10.0'}
+    dependencies:
+      picomatch: 2.3.1
+    dev: true
+
+  /regex-not@1.0.2:
+    resolution: {integrity: sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      extend-shallow: 3.0.2
+      safe-regex: 1.1.0
+    dev: true
+
+  /regexp.prototype.flags@1.5.2:
+    resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      call-bind: 1.0.6
+      define-properties: 1.2.1
+      es-errors: 1.3.0
+      set-function-name: 2.0.1
+    dev: false
+
+  /repeat-element@1.1.4:
+    resolution: {integrity: sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /repeat-string@1.6.1:
+    resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==}
+    engines: {node: '>=0.10'}
+    dev: true
+
+  /resolve-url@0.2.1:
+    resolution: {integrity: sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==}
+    deprecated: https://github.com/lydell/resolve-url#deprecated
+    dev: true
+
+  /ret@0.1.15:
+    resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==}
+    engines: {node: '>=0.12'}
+    dev: true
+
+  /reusify@1.0.4:
+    resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
+    engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
+    dev: true
+
+  /rollup@4.10.0:
+    resolution: {integrity: sha512-t2v9G2AKxcQ8yrG+WGxctBes1AomT0M4ND7jTFBCVPXQ/WFTvNSefIrNSmLKhIKBrvN8SG+CZslimJcT3W2u2g==}
+    engines: {node: '>=18.0.0', npm: '>=8.0.0'}
+    hasBin: true
+    dependencies:
+      '@types/estree': 1.0.5
+    optionalDependencies:
+      '@rollup/rollup-android-arm-eabi': 4.10.0
+      '@rollup/rollup-android-arm64': 4.10.0
+      '@rollup/rollup-darwin-arm64': 4.10.0
+      '@rollup/rollup-darwin-x64': 4.10.0
+      '@rollup/rollup-linux-arm-gnueabihf': 4.10.0
+      '@rollup/rollup-linux-arm64-gnu': 4.10.0
+      '@rollup/rollup-linux-arm64-musl': 4.10.0
+      '@rollup/rollup-linux-riscv64-gnu': 4.10.0
+      '@rollup/rollup-linux-x64-gnu': 4.10.0
+      '@rollup/rollup-linux-x64-musl': 4.10.0
+      '@rollup/rollup-win32-arm64-msvc': 4.10.0
+      '@rollup/rollup-win32-ia32-msvc': 4.10.0
+      '@rollup/rollup-win32-x64-msvc': 4.10.0
+      fsevents: 2.3.3
+    dev: true
+
+  /run-parallel@1.2.0:
+    resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
+    dependencies:
+      queue-microtask: 1.2.3
+    dev: true
+
+  /safe-buffer@5.2.1:
+    resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
+    dev: true
+
+  /safe-regex@1.1.0:
+    resolution: {integrity: sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==}
+    dependencies:
+      ret: 0.1.15
+    dev: true
+
+  /sass@1.69.5:
+    resolution: {integrity: sha512-qg2+UCJibLr2LCVOt3OlPhr/dqVHWOa9XtZf2OjbLs/T4VPSJ00udtgJxH3neXZm+QqX8B+3cU7RaLqp1iVfcQ==}
+    engines: {node: '>=14.0.0'}
+    hasBin: true
+    dependencies:
+      chokidar: 3.6.0
+      immutable: 4.3.5
+      source-map-js: 1.0.2
+    dev: true
+
+  /scule@1.3.0:
+    resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==}
+    dev: true
+
+  /select@1.1.2:
+    resolution: {integrity: sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==}
+    dev: false
+
+  /semver@7.6.0:
+    resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==}
+    engines: {node: '>=10'}
+    hasBin: true
+    dependencies:
+      lru-cache: 6.0.0
+    dev: false
+
+  /set-function-length@1.2.1:
+    resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      define-data-property: 1.1.2
+      es-errors: 1.3.0
+      function-bind: 1.1.2
+      get-intrinsic: 1.2.4
+      gopd: 1.0.1
+      has-property-descriptors: 1.0.1
+    dev: false
+
+  /set-function-name@2.0.1:
+    resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==}
+    engines: {node: '>= 0.4'}
+    dependencies:
+      define-data-property: 1.1.2
+      functions-have-names: 1.2.3
+      has-property-descriptors: 1.0.1
+    dev: false
+
+  /set-value@2.0.1:
+    resolution: {integrity: sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      extend-shallow: 2.0.1
+      is-extendable: 0.1.1
+      is-plain-object: 2.0.4
+      split-string: 3.1.0
+    dev: true
+
+  /shebang-command@2.0.0:
+    resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+    engines: {node: '>=8'}
+    dependencies:
+      shebang-regex: 3.0.0
+    dev: false
+
+  /shebang-regex@3.0.0:
+    resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+    engines: {node: '>=8'}
+    dev: false
+
+  /signal-exit@4.1.0:
+    resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
+    engines: {node: '>=14'}
+    dev: false
+
+  /snapdragon-node@2.1.1:
+    resolution: {integrity: sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      define-property: 1.0.0
+      isobject: 3.0.1
+      snapdragon-util: 3.0.1
+    dev: true
+
+  /snapdragon-util@3.0.1:
+    resolution: {integrity: sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      kind-of: 3.2.2
+    dev: true
+
+  /snapdragon@0.8.2:
+    resolution: {integrity: sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      base: 0.11.2
+      debug: 2.6.9
+      define-property: 0.2.5
+      extend-shallow: 2.0.1
+      map-cache: 0.2.2
+      source-map: 0.5.7
+      source-map-resolve: 0.5.3
+      use: 3.1.1
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /sortablejs@1.14.0:
+    resolution: {integrity: sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==}
+    dev: false
+
+  /source-map-js@1.0.2:
+    resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
+    engines: {node: '>=0.10.0'}
+
+  /source-map-resolve@0.5.3:
+    resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==}
+    deprecated: See https://github.com/lydell/source-map-resolve#deprecated
+    dependencies:
+      atob: 2.1.2
+      decode-uri-component: 0.2.2
+      resolve-url: 0.2.1
+      source-map-url: 0.4.1
+      urix: 0.1.0
+    dev: true
+
+  /source-map-url@0.4.1:
+    resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==}
+    deprecated: See https://github.com/lydell/source-map-url#deprecated
+    dev: true
+
+  /source-map@0.5.7:
+    resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /source-map@0.6.1:
+    resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /sourcemap-codec@1.4.8:
+    resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
+    deprecated: Please use @jridgewell/sourcemap-codec instead
+    dev: true
+
+  /split-string@3.1.0:
+    resolution: {integrity: sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      extend-shallow: 3.0.2
+    dev: true
+
+  /stable@0.1.8:
+    resolution: {integrity: sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==}
+    deprecated: 'Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility'
+    dev: true
+
+  /static-extend@0.1.2:
+    resolution: {integrity: sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      define-property: 0.2.5
+      object-copy: 0.1.0
+    dev: true
+
+  /strict-uri-encode@1.1.0:
+    resolution: {integrity: sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /string-width@4.2.3:
+    resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
+    engines: {node: '>=8'}
+    dependencies:
+      emoji-regex: 8.0.0
+      is-fullwidth-code-point: 3.0.0
+      strip-ansi: 6.0.1
+    dev: false
+
+  /string-width@5.1.2:
+    resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
+    engines: {node: '>=12'}
+    dependencies:
+      eastasianwidth: 0.2.0
+      emoji-regex: 9.2.2
+      strip-ansi: 7.1.0
+    dev: false
+
+  /string_decoder@1.3.0:
+    resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
+    dependencies:
+      safe-buffer: 5.2.1
+    dev: true
+
+  /strip-ansi@3.0.1:
+    resolution: {integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      ansi-regex: 2.1.1
+    dev: true
+
+  /strip-ansi@6.0.1:
+    resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
+    engines: {node: '>=8'}
+    dependencies:
+      ansi-regex: 5.0.1
+    dev: false
+
+  /strip-ansi@7.1.0:
+    resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}
+    engines: {node: '>=12'}
+    dependencies:
+      ansi-regex: 6.0.1
+    dev: false
+
+  /strip-literal@1.3.0:
+    resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==}
+    dependencies:
+      acorn: 8.11.3
+    dev: true
+
+  /supports-color@2.0.0:
+    resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==}
+    engines: {node: '>=0.8.0'}
+    dev: true
+
+  /supports-color@3.2.3:
+    resolution: {integrity: sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A==}
+    engines: {node: '>=0.8.0'}
+    dependencies:
+      has-flag: 1.0.0
+    dev: true
+
+  /supports-color@7.2.0:
+    resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
+    engines: {node: '>=8'}
+    dependencies:
+      has-flag: 4.0.0
+    dev: true
+
+  /svg-baker@1.7.0:
+    resolution: {integrity: sha512-nibslMbkXOIkqKVrfcncwha45f97fGuAOn1G99YwnwTj8kF9YiM6XexPcUso97NxOm6GsP0SIvYVIosBis1xLg==}
+    dependencies:
+      bluebird: 3.7.2
+      clone: 2.1.2
+      he: 1.2.0
+      image-size: 0.5.5
+      loader-utils: 1.4.2
+      merge-options: 1.0.1
+      micromatch: 3.1.0
+      postcss: 5.2.18
+      postcss-prefix-selector: 1.16.0(postcss@5.2.18)
+      posthtml-rename-id: 1.0.12
+      posthtml-svg-mode: 1.0.3
+      query-string: 4.3.4
+      traverse: 0.6.8
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /svgo@2.8.0:
+    resolution: {integrity: sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==}
+    engines: {node: '>=10.13.0'}
+    hasBin: true
+    dependencies:
+      '@trysound/sax': 0.2.0
+      commander: 7.2.0
+      css-select: 4.3.0
+      css-tree: 1.1.3
+      csso: 4.2.0
+      picocolors: 1.0.0
+      stable: 0.1.8
+    dev: true
+
+  /tiny-emitter@2.1.0:
+    resolution: {integrity: sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==}
+    dev: false
+
+  /to-fast-properties@2.0.0:
+    resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
+    engines: {node: '>=4'}
+
+  /to-object-path@0.3.0:
+    resolution: {integrity: sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      kind-of: 3.2.2
+    dev: true
+
+  /to-regex-range@2.1.1:
+    resolution: {integrity: sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      is-number: 3.0.0
+      repeat-string: 1.6.1
+    dev: true
+
+  /to-regex-range@5.0.1:
+    resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
+    engines: {node: '>=8.0'}
+    dependencies:
+      is-number: 7.0.0
+    dev: true
+
+  /to-regex@3.0.2:
+    resolution: {integrity: sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      define-property: 2.0.2
+      extend-shallow: 3.0.2
+      regex-not: 1.0.2
+      safe-regex: 1.1.0
+    dev: true
+
+  /traverse@0.6.8:
+    resolution: {integrity: sha512-aXJDbk6SnumuaZSANd21XAo15ucCDE38H4fkqiGsc3MhCK+wOlZvLP9cB/TvpHT0mOyWgC4Z8EwRlzqYSUzdsA==}
+    engines: {node: '>= 0.4'}
+    dev: true
+
+  /tslib@2.3.0:
+    resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==}
+    dev: false
+
+  /ufo@1.4.0:
+    resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==}
+    dev: true
+
+  /undici-types@5.26.5:
+    resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
+    dev: true
+
+  /unimport@3.7.1:
+    resolution: {integrity: sha512-V9HpXYfsZye5bPPYUgs0Otn3ODS1mDUciaBlXljI4C2fTwfFpvFZRywmlOu943puN9sncxROMZhsZCjNXEpzEQ==}
+    dependencies:
+      '@rollup/pluginutils': 5.1.0
+      acorn: 8.11.3
+      escape-string-regexp: 5.0.0
+      estree-walker: 3.0.3
+      fast-glob: 3.3.2
+      local-pkg: 0.5.0
+      magic-string: 0.30.7
+      mlly: 1.5.0
+      pathe: 1.1.2
+      pkg-types: 1.0.3
+      scule: 1.3.0
+      strip-literal: 1.3.0
+      unplugin: 1.7.1
+    transitivePeerDependencies:
+      - rollup
+    dev: true
+
+  /union-value@1.0.1:
+    resolution: {integrity: sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      arr-union: 3.1.0
+      get-value: 2.0.6
+      is-extendable: 0.1.1
+      set-value: 2.0.1
+    dev: true
+
+  /universalify@2.0.1:
+    resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
+    engines: {node: '>= 10.0.0'}
+    dev: true
+
+  /unplugin-auto-import@0.17.1(@vueuse/core@10.6.1):
+    resolution: {integrity: sha512-QvdJKtFK0COSuRXzVnwjG3ir870zVhdMg6O8GKG3UO/O5W4fmJm5h71QvzI7Gp8Sx0qfCvC3f+2v0Vm489fnqQ==}
+    engines: {node: '>=14'}
+    peerDependencies:
+      '@nuxt/kit': ^3.2.2
+      '@vueuse/core': '*'
+    peerDependenciesMeta:
+      '@nuxt/kit':
+        optional: true
+      '@vueuse/core':
+        optional: true
+    dependencies:
+      '@antfu/utils': 0.7.7
+      '@rollup/pluginutils': 5.1.0
+      '@vueuse/core': 10.6.1(vue@3.4.0)
+      fast-glob: 3.3.2
+      local-pkg: 0.5.0
+      magic-string: 0.30.7
+      minimatch: 9.0.3
+      unimport: 3.7.1
+      unplugin: 1.7.1
+    transitivePeerDependencies:
+      - rollup
+    dev: true
+
+  /unplugin-vue-setup-extend-plus@1.0.0:
+    resolution: {integrity: sha512-Qb34atQ/elvkErQ12PNv6UWJPWIG4dEgjjizYKyycPeiRqQaMVNCKqRIqfxlhXntcU2l+o3VQuk1NNZN6QJ/xw==}
+    dependencies:
+      '@vue/compiler-sfc': 3.4.0
+      magic-string: 0.26.7
+      unplugin: 1.7.1
+    dev: true
+
+  /unplugin@1.7.1:
+    resolution: {integrity: sha512-JqzORDAPxxs8ErLV4x+LL7bk5pk3YlcWqpSNsIkAZj972KzFZLClc/ekppahKkOczGkwIG6ElFgdOgOlK4tXZw==}
+    dependencies:
+      acorn: 8.11.3
+      chokidar: 3.6.0
+      webpack-sources: 3.2.3
+      webpack-virtual-modules: 0.6.1
+    dev: true
+
+  /unset-value@1.0.0:
+    resolution: {integrity: sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==}
+    engines: {node: '>=0.10.0'}
+    dependencies:
+      has-value: 0.3.1
+      isobject: 3.0.1
+    dev: true
+
+  /urix@0.1.0:
+    resolution: {integrity: sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==}
+    deprecated: Please see https://github.com/lydell/urix#deprecated
+    dev: true
+
+  /use@3.1.1:
+    resolution: {integrity: sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
+  /util-deprecate@1.0.2:
+    resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+    dev: true
+
+  /vary@1.1.2:
+    resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
+    engines: {node: '>= 0.8'}
+    dev: true
+
+  /vite-plugin-compression@0.5.1(vite@5.0.4):
+    resolution: {integrity: sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==}
+    peerDependencies:
+      vite: '>=2.0.0'
+    dependencies:
+      chalk: 4.1.2
+      debug: 4.3.4
+      fs-extra: 10.1.0
+      vite: 5.0.4(sass@1.69.5)
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /vite-plugin-svg-icons@2.0.1(vite@5.0.4):
+    resolution: {integrity: sha512-6ktD+DhV6Rz3VtedYvBKKVA2eXF+sAQVaKkKLDSqGUfnhqXl3bj5PPkVTl3VexfTuZy66PmINi8Q6eFnVfRUmA==}
+    peerDependencies:
+      vite: '>=2.0.0'
+    dependencies:
+      '@types/svgo': 2.6.4
+      cors: 2.8.5
+      debug: 4.3.4
+      etag: 1.8.1
+      fs-extra: 10.1.0
+      pathe: 0.2.0
+      svg-baker: 1.7.0
+      svgo: 2.8.0
+      vite: 5.0.4(sass@1.69.5)
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /vite@5.0.4(sass@1.69.5):
+    resolution: {integrity: sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==}
+    engines: {node: ^18.0.0 || >=20.0.0}
+    hasBin: true
+    peerDependencies:
+      '@types/node': ^18.0.0 || >=20.0.0
+      less: '*'
+      lightningcss: ^1.21.0
+      sass: '*'
+      stylus: '*'
+      sugarss: '*'
+      terser: ^5.4.0
+    peerDependenciesMeta:
+      '@types/node':
+        optional: true
+      less:
+        optional: true
+      lightningcss:
+        optional: true
+      sass:
+        optional: true
+      stylus:
+        optional: true
+      sugarss:
+        optional: true
+      terser:
+        optional: true
+    dependencies:
+      esbuild: 0.19.12
+      postcss: 8.4.35
+      rollup: 4.10.0
+      sass: 1.69.5
+    optionalDependencies:
+      fsevents: 2.3.3
+    dev: true
+
+  /vue-cropper@1.1.1:
+    resolution: {integrity: sha512-WsqKMpaBf9Osi1LQlE/5AKdD0nHWOy1asLXocaG8NomOWO07jiZi968+/PbMmnD0QbPJOumDQaGuGa13qys85A==}
+    dev: false
+
+  /vue-demi@0.14.7(vue@3.4.0):
+    resolution: {integrity: sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==}
+    engines: {node: '>=12'}
+    hasBin: true
+    requiresBuild: true
+    peerDependencies:
+      '@vue/composition-api': ^1.0.0-rc.1
+      vue: ^3.0.0-0 || ^2.6.0
+    peerDependenciesMeta:
+      '@vue/composition-api':
+        optional: true
+    dependencies:
+      vue: 3.4.0
+
+  /vue-router@4.2.5(vue@3.4.0):
+    resolution: {integrity: sha512-DIUpKcyg4+PTQKfFPX88UWhlagBEBEfJ5A8XDXRJLUnZOvcpMF8o/dnL90vpVkGaPbjvXazV/rC1qBKrZlFugw==}
+    peerDependencies:
+      vue: ^3.2.0
+    dependencies:
+      '@vue/devtools-api': 6.5.1
+      vue: 3.4.0
+    dev: false
+
+  /vue@3.4.0:
+    resolution: {integrity: sha512-iTE9Ve/7DO/H39+gXHrNkRdnh1jDwPe/fap4brbPKkp1APMkS03OiZ+UY0dwpqtRX0iPWQTkh8Fu3hKgLtaxfA==}
+    peerDependencies:
+      typescript: '*'
+    peerDependenciesMeta:
+      typescript:
+        optional: true
+    dependencies:
+      '@vue/compiler-dom': 3.4.0
+      '@vue/compiler-sfc': 3.4.0
+      '@vue/runtime-dom': 3.4.0
+      '@vue/server-renderer': 3.4.0(vue@3.4.0)
+      '@vue/shared': 3.4.0
+
+  /vuedraggable@4.1.0(vue@3.4.0):
+    resolution: {integrity: sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==}
+    peerDependencies:
+      vue: ^3.0.1
+    dependencies:
+      sortablejs: 1.14.0
+      vue: 3.4.0
+    dev: false
+
+  /webpack-sources@3.2.3:
+    resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}
+    engines: {node: '>=10.13.0'}
+    dev: true
+
+  /webpack-virtual-modules@0.6.1:
+    resolution: {integrity: sha512-poXpCylU7ExuvZK8z+On3kX+S8o/2dQ/SVYueKA0D4WEMXROXgY8Ez50/bQEUmvoSMMrWcrJqCHuhAbsiwg7Dg==}
+    dev: true
+
+  /which@2.0.2:
+    resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+    engines: {node: '>= 8'}
+    hasBin: true
+    dependencies:
+      isexe: 2.0.0
+    dev: false
+
+  /wrap-ansi@7.0.0:
+    resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
+    engines: {node: '>=10'}
+    dependencies:
+      ansi-styles: 4.3.0
+      string-width: 4.2.3
+      strip-ansi: 6.0.1
+    dev: false
+
+  /wrap-ansi@8.1.0:
+    resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
+    engines: {node: '>=12'}
+    dependencies:
+      ansi-styles: 6.2.1
+      string-width: 5.1.2
+      strip-ansi: 7.1.0
+    dev: false
+
+  /yallist@4.0.0:
+    resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
+    dev: false
+
+  /zrender@5.4.4:
+    resolution: {integrity: sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==}
+    dependencies:
+      tslib: 2.3.0
+    dev: false

BIN
gyj-iot-web/public/favicon.ico


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/EasyWasmPlayer.js


+ 9466 - 0
gyj-iot-web/public/js/ZLMRTCClient.js

@@ -0,0 +1,9466 @@
+var ZLMRTCClient = (function (exports) {
+	'use strict';
+
+	const Events$1 = {
+	  WEBRTC_NOT_SUPPORT: 'WEBRTC_NOT_SUPPORT',
+	  WEBRTC_ICE_CANDIDATE_ERROR: 'WEBRTC_ICE_CANDIDATE_ERROR',
+	  WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED: 'WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED',
+	  WEBRTC_ON_REMOTE_STREAMS: 'WEBRTC_ON_REMOTE_STREAMS',
+	  WEBRTC_ON_LOCAL_STREAM: 'WEBRTC_ON_LOCAL_STREAM',
+	  WEBRTC_ON_CONNECTION_STATE_CHANGE: 'WEBRTC_ON_CONNECTION_STATE_CHANGE',
+	  WEBRTC_ON_DATA_CHANNEL_OPEN: 'WEBRTC_ON_DATA_CHANNEL_OPEN',
+	  WEBRTC_ON_DATA_CHANNEL_CLOSE: 'WEBRTC_ON_DATA_CHANNEL_CLOSE',
+	  WEBRTC_ON_DATA_CHANNEL_ERR: 'WEBRTC_ON_DATA_CHANNEL_ERR',
+	  WEBRTC_ON_DATA_CHANNEL_MSG: 'WEBRTC_ON_DATA_CHANNEL_MSG',
+	  CAPTURE_STREAM_FAILED: 'CAPTURE_STREAM_FAILED'
+	};
+
+	const VERSION$1 = '1.1.0';
+	const BUILD_DATE = 'Thu Jun 20 2024 16:15:41 GMT+0800 (China Standard Time)';
+
+	// Copyright (C) <2018> Intel Corporation
+	//
+	// SPDX-License-Identifier: Apache-2.0
+
+	// eslint-disable-next-line require-jsdoc
+	function isFirefox() {
+	  return window.navigator.userAgent.match('Firefox') !== null;
+	}
+	// eslint-disable-next-line require-jsdoc
+	function isChrome() {
+	  return window.navigator.userAgent.match('Chrome') !== null;
+	}
+	// eslint-disable-next-line require-jsdoc
+	function isEdge() {
+	  return window.navigator.userAgent.match(/Edge\/(\d+).(\d+)$/) !== null;
+	}
+
+	// Copyright (C) <2018> Intel Corporation
+
+	/**
+	 * @class AudioSourceInfo
+	 * @classDesc Source info about an audio track. Values: 'mic', 'screen-cast', 'file', 'mixed'.
+	 * @memberOf Owt.Base
+	 * @readonly
+	 * @enum {string}
+	 */
+	const AudioSourceInfo = {
+	  MIC: 'mic',
+	  SCREENCAST: 'screen-cast',
+	  FILE: 'file',
+	  MIXED: 'mixed'
+	};
+
+	/**
+	 * @class VideoSourceInfo
+	 * @classDesc Source info about a video track. Values: 'camera', 'screen-cast', 'file', 'mixed'.
+	 * @memberOf Owt.Base
+	 * @readonly
+	 * @enum {string}
+	 */
+	const VideoSourceInfo = {
+	  CAMERA: 'camera',
+	  SCREENCAST: 'screen-cast',
+	  FILE: 'file',
+	  MIXED: 'mixed'
+	};
+
+	/**
+	 * @class TrackKind
+	 * @classDesc Kind of a track. Values: 'audio' for audio track, 'video' for video track, 'av' for both audio and video tracks.
+	 * @memberOf Owt.Base
+	 * @readonly
+	 * @enum {string}
+	 */
+	const TrackKind = {
+	  /**
+	   * Audio tracks.
+	   * @type string
+	   */
+	  AUDIO: 'audio',
+	  /**
+	   * Video tracks.
+	   * @type string
+	   */
+	  VIDEO: 'video',
+	  /**
+	   * Both audio and video tracks.
+	   * @type string
+	   */
+	  AUDIO_AND_VIDEO: 'av'
+	};
+	/**
+	 * @class Resolution
+	 * @memberOf Owt.Base
+	 * @classDesc The Resolution defines the size of a rectangle.
+	 * @constructor
+	 * @param {number} width
+	 * @param {number} height
+	 */
+	class Resolution {
+	  // eslint-disable-next-line require-jsdoc
+	  constructor(width, height) {
+	    /**
+	     * @member {number} width
+	     * @instance
+	     * @memberof Owt.Base.Resolution
+	     */
+	    this.width = width;
+	    /**
+	     * @member {number} height
+	     * @instance
+	     * @memberof Owt.Base.Resolution
+	     */
+	    this.height = height;
+	  }
+	}
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	let logDisabled_ = true;
+	let deprecationWarnings_ = true;
+
+	/**
+	 * Extract browser version out of the provided user agent string.
+	 *
+	 * @param {!string} uastring userAgent string.
+	 * @param {!string} expr Regular expression used as match criteria.
+	 * @param {!number} pos position in the version string to be returned.
+	 * @return {!number} browser version.
+	 */
+	function extractVersion(uastring, expr, pos) {
+	  const match = uastring.match(expr);
+	  return match && match.length >= pos && parseInt(match[pos], 10);
+	}
+
+	// Wraps the peerconnection event eventNameToWrap in a function
+	// which returns the modified event object (or false to prevent
+	// the event).
+	function wrapPeerConnectionEvent(window, eventNameToWrap, wrapper) {
+	  if (!window.RTCPeerConnection) {
+	    return;
+	  }
+	  const proto = window.RTCPeerConnection.prototype;
+	  const nativeAddEventListener = proto.addEventListener;
+	  proto.addEventListener = function(nativeEventName, cb) {
+	    if (nativeEventName !== eventNameToWrap) {
+	      return nativeAddEventListener.apply(this, arguments);
+	    }
+	    const wrappedCallback = (e) => {
+	      const modifiedEvent = wrapper(e);
+	      if (modifiedEvent) {
+	        if (cb.handleEvent) {
+	          cb.handleEvent(modifiedEvent);
+	        } else {
+	          cb(modifiedEvent);
+	        }
+	      }
+	    };
+	    this._eventMap = this._eventMap || {};
+	    if (!this._eventMap[eventNameToWrap]) {
+	      this._eventMap[eventNameToWrap] = new Map();
+	    }
+	    this._eventMap[eventNameToWrap].set(cb, wrappedCallback);
+	    return nativeAddEventListener.apply(this, [nativeEventName,
+	      wrappedCallback]);
+	  };
+
+	  const nativeRemoveEventListener = proto.removeEventListener;
+	  proto.removeEventListener = function(nativeEventName, cb) {
+	    if (nativeEventName !== eventNameToWrap || !this._eventMap
+	        || !this._eventMap[eventNameToWrap]) {
+	      return nativeRemoveEventListener.apply(this, arguments);
+	    }
+	    if (!this._eventMap[eventNameToWrap].has(cb)) {
+	      return nativeRemoveEventListener.apply(this, arguments);
+	    }
+	    const unwrappedCb = this._eventMap[eventNameToWrap].get(cb);
+	    this._eventMap[eventNameToWrap].delete(cb);
+	    if (this._eventMap[eventNameToWrap].size === 0) {
+	      delete this._eventMap[eventNameToWrap];
+	    }
+	    if (Object.keys(this._eventMap).length === 0) {
+	      delete this._eventMap;
+	    }
+	    return nativeRemoveEventListener.apply(this, [nativeEventName,
+	      unwrappedCb]);
+	  };
+
+	  Object.defineProperty(proto, 'on' + eventNameToWrap, {
+	    get() {
+	      return this['_on' + eventNameToWrap];
+	    },
+	    set(cb) {
+	      if (this['_on' + eventNameToWrap]) {
+	        this.removeEventListener(eventNameToWrap,
+	            this['_on' + eventNameToWrap]);
+	        delete this['_on' + eventNameToWrap];
+	      }
+	      if (cb) {
+	        this.addEventListener(eventNameToWrap,
+	            this['_on' + eventNameToWrap] = cb);
+	      }
+	    },
+	    enumerable: true,
+	    configurable: true
+	  });
+	}
+
+	function disableLog(bool) {
+	  if (typeof bool !== 'boolean') {
+	    return new Error('Argument type: ' + typeof bool +
+	        '. Please use a boolean.');
+	  }
+	  logDisabled_ = bool;
+	  return (bool) ? 'adapter.js logging disabled' :
+	      'adapter.js logging enabled';
+	}
+
+	/**
+	 * Disable or enable deprecation warnings
+	 * @param {!boolean} bool set to true to disable warnings.
+	 */
+	function disableWarnings(bool) {
+	  if (typeof bool !== 'boolean') {
+	    return new Error('Argument type: ' + typeof bool +
+	        '. Please use a boolean.');
+	  }
+	  deprecationWarnings_ = !bool;
+	  return 'adapter.js deprecation warnings ' + (bool ? 'disabled' : 'enabled');
+	}
+
+	function log$1() {
+	  if (typeof window === 'object') {
+	    if (logDisabled_) {
+	      return;
+	    }
+	    if (typeof console !== 'undefined' && typeof console.log === 'function') {
+	      console.log.apply(console, arguments);
+	    }
+	  }
+	}
+
+	/**
+	 * Shows a deprecation warning suggesting the modern and spec-compatible API.
+	 */
+	function deprecated(oldMethod, newMethod) {
+	  if (!deprecationWarnings_) {
+	    return;
+	  }
+	  console.warn(oldMethod + ' is deprecated, please use ' + newMethod +
+	      ' instead.');
+	}
+
+	/**
+	 * Browser detector.
+	 *
+	 * @return {object} result containing browser and version
+	 *     properties.
+	 */
+	function detectBrowser(window) {
+	  // Returned result object.
+	  const result = {browser: null, version: null};
+
+	  // Fail early if it's not a browser
+	  if (typeof window === 'undefined' || !window.navigator) {
+	    result.browser = 'Not a browser.';
+	    return result;
+	  }
+
+	  const {navigator} = window;
+
+	  if (navigator.mozGetUserMedia) { // Firefox.
+	    result.browser = 'firefox';
+	    result.version = extractVersion(navigator.userAgent,
+	        /Firefox\/(\d+)\./, 1);
+	  } else if (navigator.webkitGetUserMedia ||
+	      (window.isSecureContext === false && window.webkitRTCPeerConnection &&
+	       !window.RTCIceGatherer)) {
+	    // Chrome, Chromium, Webview, Opera.
+	    // Version matches Chrome/WebRTC version.
+	    // Chrome 74 removed webkitGetUserMedia on http as well so we need the
+	    // more complicated fallback to webkitRTCPeerConnection.
+	    result.browser = 'chrome';
+	    result.version = extractVersion(navigator.userAgent,
+	        /Chrom(e|ium)\/(\d+)\./, 2);
+	  } else if (navigator.mediaDevices &&
+	      navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)) { // Edge.
+	    result.browser = 'edge';
+	    result.version = extractVersion(navigator.userAgent,
+	        /Edge\/(\d+).(\d+)$/, 2);
+	  } else if (window.RTCPeerConnection &&
+	      navigator.userAgent.match(/AppleWebKit\/(\d+)\./)) { // Safari.
+	    result.browser = 'safari';
+	    result.version = extractVersion(navigator.userAgent,
+	        /AppleWebKit\/(\d+)\./, 1);
+	    result.supportsUnifiedPlan = window.RTCRtpTransceiver &&
+	        'currentDirection' in window.RTCRtpTransceiver.prototype;
+	  } else { // Default fallthrough: not supported.
+	    result.browser = 'Not a supported browser.';
+	    return result;
+	  }
+
+	  return result;
+	}
+
+	/**
+	 * Checks if something is an object.
+	 *
+	 * @param {*} val The something you want to check.
+	 * @return true if val is an object, false otherwise.
+	 */
+	function isObject$1(val) {
+	  return Object.prototype.toString.call(val) === '[object Object]';
+	}
+
+	/**
+	 * Remove all empty objects and undefined values
+	 * from a nested object -- an enhanced and vanilla version
+	 * of Lodash's `compact`.
+	 */
+	function compactObject(data) {
+	  if (!isObject$1(data)) {
+	    return data;
+	  }
+
+	  return Object.keys(data).reduce(function(accumulator, key) {
+	    const isObj = isObject$1(data[key]);
+	    const value = isObj ? compactObject(data[key]) : data[key];
+	    const isEmptyObject = isObj && !Object.keys(value).length;
+	    if (value === undefined || isEmptyObject) {
+	      return accumulator;
+	    }
+	    return Object.assign(accumulator, {[key]: value});
+	  }, {});
+	}
+
+	/* iterates the stats graph recursively. */
+	function walkStats(stats, base, resultSet) {
+	  if (!base || resultSet.has(base.id)) {
+	    return;
+	  }
+	  resultSet.set(base.id, base);
+	  Object.keys(base).forEach(name => {
+	    if (name.endsWith('Id')) {
+	      walkStats(stats, stats.get(base[name]), resultSet);
+	    } else if (name.endsWith('Ids')) {
+	      base[name].forEach(id => {
+	        walkStats(stats, stats.get(id), resultSet);
+	      });
+	    }
+	  });
+	}
+
+	/* filter getStats for a sender/receiver track. */
+	function filterStats(result, track, outbound) {
+	  const streamStatsType = outbound ? 'outbound-rtp' : 'inbound-rtp';
+	  const filteredResult = new Map();
+	  if (track === null) {
+	    return filteredResult;
+	  }
+	  const trackStats = [];
+	  result.forEach(value => {
+	    if (value.type === 'track' &&
+	        value.trackIdentifier === track.id) {
+	      trackStats.push(value);
+	    }
+	  });
+	  trackStats.forEach(trackStat => {
+	    result.forEach(stats => {
+	      if (stats.type === streamStatsType && stats.trackId === trackStat.id) {
+	        walkStats(result, stats, filteredResult);
+	      }
+	    });
+	  });
+	  return filteredResult;
+	}
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+	const logging = log$1;
+
+	function shimGetUserMedia$3(window, browserDetails) {
+	  const navigator = window && window.navigator;
+
+	  if (!navigator.mediaDevices) {
+	    return;
+	  }
+
+	  const constraintsToChrome_ = function(c) {
+	    if (typeof c !== 'object' || c.mandatory || c.optional) {
+	      return c;
+	    }
+	    const cc = {};
+	    Object.keys(c).forEach(key => {
+	      if (key === 'require' || key === 'advanced' || key === 'mediaSource') {
+	        return;
+	      }
+	      const r = (typeof c[key] === 'object') ? c[key] : {ideal: c[key]};
+	      if (r.exact !== undefined && typeof r.exact === 'number') {
+	        r.min = r.max = r.exact;
+	      }
+	      const oldname_ = function(prefix, name) {
+	        if (prefix) {
+	          return prefix + name.charAt(0).toUpperCase() + name.slice(1);
+	        }
+	        return (name === 'deviceId') ? 'sourceId' : name;
+	      };
+	      if (r.ideal !== undefined) {
+	        cc.optional = cc.optional || [];
+	        let oc = {};
+	        if (typeof r.ideal === 'number') {
+	          oc[oldname_('min', key)] = r.ideal;
+	          cc.optional.push(oc);
+	          oc = {};
+	          oc[oldname_('max', key)] = r.ideal;
+	          cc.optional.push(oc);
+	        } else {
+	          oc[oldname_('', key)] = r.ideal;
+	          cc.optional.push(oc);
+	        }
+	      }
+	      if (r.exact !== undefined && typeof r.exact !== 'number') {
+	        cc.mandatory = cc.mandatory || {};
+	        cc.mandatory[oldname_('', key)] = r.exact;
+	      } else {
+	        ['min', 'max'].forEach(mix => {
+	          if (r[mix] !== undefined) {
+	            cc.mandatory = cc.mandatory || {};
+	            cc.mandatory[oldname_(mix, key)] = r[mix];
+	          }
+	        });
+	      }
+	    });
+	    if (c.advanced) {
+	      cc.optional = (cc.optional || []).concat(c.advanced);
+	    }
+	    return cc;
+	  };
+
+	  const shimConstraints_ = function(constraints, func) {
+	    if (browserDetails.version >= 61) {
+	      return func(constraints);
+	    }
+	    constraints = JSON.parse(JSON.stringify(constraints));
+	    if (constraints && typeof constraints.audio === 'object') {
+	      const remap = function(obj, a, b) {
+	        if (a in obj && !(b in obj)) {
+	          obj[b] = obj[a];
+	          delete obj[a];
+	        }
+	      };
+	      constraints = JSON.parse(JSON.stringify(constraints));
+	      remap(constraints.audio, 'autoGainControl', 'googAutoGainControl');
+	      remap(constraints.audio, 'noiseSuppression', 'googNoiseSuppression');
+	      constraints.audio = constraintsToChrome_(constraints.audio);
+	    }
+	    if (constraints && typeof constraints.video === 'object') {
+	      // Shim facingMode for mobile & surface pro.
+	      let face = constraints.video.facingMode;
+	      face = face && ((typeof face === 'object') ? face : {ideal: face});
+	      const getSupportedFacingModeLies = browserDetails.version < 66;
+
+	      if ((face && (face.exact === 'user' || face.exact === 'environment' ||
+	                    face.ideal === 'user' || face.ideal === 'environment')) &&
+	          !(navigator.mediaDevices.getSupportedConstraints &&
+	            navigator.mediaDevices.getSupportedConstraints().facingMode &&
+	            !getSupportedFacingModeLies)) {
+	        delete constraints.video.facingMode;
+	        let matches;
+	        if (face.exact === 'environment' || face.ideal === 'environment') {
+	          matches = ['back', 'rear'];
+	        } else if (face.exact === 'user' || face.ideal === 'user') {
+	          matches = ['front'];
+	        }
+	        if (matches) {
+	          // Look for matches in label, or use last cam for back (typical).
+	          return navigator.mediaDevices.enumerateDevices()
+	          .then(devices => {
+	            devices = devices.filter(d => d.kind === 'videoinput');
+	            let dev = devices.find(d => matches.some(match =>
+	              d.label.toLowerCase().includes(match)));
+	            if (!dev && devices.length && matches.includes('back')) {
+	              dev = devices[devices.length - 1]; // more likely the back cam
+	            }
+	            if (dev) {
+	              constraints.video.deviceId = face.exact ? {exact: dev.deviceId} :
+	                                                        {ideal: dev.deviceId};
+	            }
+	            constraints.video = constraintsToChrome_(constraints.video);
+	            logging('chrome: ' + JSON.stringify(constraints));
+	            return func(constraints);
+	          });
+	        }
+	      }
+	      constraints.video = constraintsToChrome_(constraints.video);
+	    }
+	    logging('chrome: ' + JSON.stringify(constraints));
+	    return func(constraints);
+	  };
+
+	  const shimError_ = function(e) {
+	    if (browserDetails.version >= 64) {
+	      return e;
+	    }
+	    return {
+	      name: {
+	        PermissionDeniedError: 'NotAllowedError',
+	        PermissionDismissedError: 'NotAllowedError',
+	        InvalidStateError: 'NotAllowedError',
+	        DevicesNotFoundError: 'NotFoundError',
+	        ConstraintNotSatisfiedError: 'OverconstrainedError',
+	        TrackStartError: 'NotReadableError',
+	        MediaDeviceFailedDueToShutdown: 'NotAllowedError',
+	        MediaDeviceKillSwitchOn: 'NotAllowedError',
+	        TabCaptureError: 'AbortError',
+	        ScreenCaptureError: 'AbortError',
+	        DeviceCaptureError: 'AbortError'
+	      }[e.name] || e.name,
+	      message: e.message,
+	      constraint: e.constraint || e.constraintName,
+	      toString() {
+	        return this.name + (this.message && ': ') + this.message;
+	      }
+	    };
+	  };
+
+	  const getUserMedia_ = function(constraints, onSuccess, onError) {
+	    shimConstraints_(constraints, c => {
+	      navigator.webkitGetUserMedia(c, onSuccess, e => {
+	        if (onError) {
+	          onError(shimError_(e));
+	        }
+	      });
+	    });
+	  };
+	  navigator.getUserMedia = getUserMedia_.bind(navigator);
+
+	  // Even though Chrome 45 has navigator.mediaDevices and a getUserMedia
+	  // function which returns a Promise, it does not accept spec-style
+	  // constraints.
+	  if (navigator.mediaDevices.getUserMedia) {
+	    const origGetUserMedia = navigator.mediaDevices.getUserMedia.
+	        bind(navigator.mediaDevices);
+	    navigator.mediaDevices.getUserMedia = function(cs) {
+	      return shimConstraints_(cs, c => origGetUserMedia(c).then(stream => {
+	        if (c.audio && !stream.getAudioTracks().length ||
+	            c.video && !stream.getVideoTracks().length) {
+	          stream.getTracks().forEach(track => {
+	            track.stop();
+	          });
+	          throw new DOMException('', 'NotFoundError');
+	        }
+	        return stream;
+	      }, e => Promise.reject(shimError_(e))));
+	    };
+	  }
+	}
+
+	/*
+	 *  Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+	function shimGetDisplayMedia$2(window, getSourceId) {
+	  if (window.navigator.mediaDevices &&
+	    'getDisplayMedia' in window.navigator.mediaDevices) {
+	    return;
+	  }
+	  if (!(window.navigator.mediaDevices)) {
+	    return;
+	  }
+	  // getSourceId is a function that returns a promise resolving with
+	  // the sourceId of the screen/window/tab to be shared.
+	  if (typeof getSourceId !== 'function') {
+	    console.error('shimGetDisplayMedia: getSourceId argument is not ' +
+	        'a function');
+	    return;
+	  }
+	  window.navigator.mediaDevices.getDisplayMedia =
+	    function getDisplayMedia(constraints) {
+	      return getSourceId(constraints)
+	        .then(sourceId => {
+	          const widthSpecified = constraints.video && constraints.video.width;
+	          const heightSpecified = constraints.video &&
+	            constraints.video.height;
+	          const frameRateSpecified = constraints.video &&
+	            constraints.video.frameRate;
+	          constraints.video = {
+	            mandatory: {
+	              chromeMediaSource: 'desktop',
+	              chromeMediaSourceId: sourceId,
+	              maxFrameRate: frameRateSpecified || 3
+	            }
+	          };
+	          if (widthSpecified) {
+	            constraints.video.mandatory.maxWidth = widthSpecified;
+	          }
+	          if (heightSpecified) {
+	            constraints.video.mandatory.maxHeight = heightSpecified;
+	          }
+	          return window.navigator.mediaDevices.getUserMedia(constraints);
+	        });
+	    };
+	}
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimMediaStream(window) {
+	  window.MediaStream = window.MediaStream || window.webkitMediaStream;
+	}
+
+	function shimOnTrack$1(window) {
+	  if (typeof window === 'object' && window.RTCPeerConnection && !('ontrack' in
+	      window.RTCPeerConnection.prototype)) {
+	    Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', {
+	      get() {
+	        return this._ontrack;
+	      },
+	      set(f) {
+	        if (this._ontrack) {
+	          this.removeEventListener('track', this._ontrack);
+	        }
+	        this.addEventListener('track', this._ontrack = f);
+	      },
+	      enumerable: true,
+	      configurable: true
+	    });
+	    const origSetRemoteDescription =
+	        window.RTCPeerConnection.prototype.setRemoteDescription;
+	    window.RTCPeerConnection.prototype.setRemoteDescription =
+	      function setRemoteDescription() {
+	        if (!this._ontrackpoly) {
+	          this._ontrackpoly = (e) => {
+	            // onaddstream does not fire when a track is added to an existing
+	            // stream. But stream.onaddtrack is implemented so we use that.
+	            e.stream.addEventListener('addtrack', te => {
+	              let receiver;
+	              if (window.RTCPeerConnection.prototype.getReceivers) {
+	                receiver = this.getReceivers()
+	                  .find(r => r.track && r.track.id === te.track.id);
+	              } else {
+	                receiver = {track: te.track};
+	              }
+
+	              const event = new Event('track');
+	              event.track = te.track;
+	              event.receiver = receiver;
+	              event.transceiver = {receiver};
+	              event.streams = [e.stream];
+	              this.dispatchEvent(event);
+	            });
+	            e.stream.getTracks().forEach(track => {
+	              let receiver;
+	              if (window.RTCPeerConnection.prototype.getReceivers) {
+	                receiver = this.getReceivers()
+	                  .find(r => r.track && r.track.id === track.id);
+	              } else {
+	                receiver = {track};
+	              }
+	              const event = new Event('track');
+	              event.track = track;
+	              event.receiver = receiver;
+	              event.transceiver = {receiver};
+	              event.streams = [e.stream];
+	              this.dispatchEvent(event);
+	            });
+	          };
+	          this.addEventListener('addstream', this._ontrackpoly);
+	        }
+	        return origSetRemoteDescription.apply(this, arguments);
+	      };
+	  } else {
+	    // even if RTCRtpTransceiver is in window, it is only used and
+	    // emitted in unified-plan. Unfortunately this means we need
+	    // to unconditionally wrap the event.
+	    wrapPeerConnectionEvent(window, 'track', e => {
+	      if (!e.transceiver) {
+	        Object.defineProperty(e, 'transceiver',
+	          {value: {receiver: e.receiver}});
+	      }
+	      return e;
+	    });
+	  }
+	}
+
+	function shimGetSendersWithDtmf(window) {
+	  // Overrides addTrack/removeTrack, depends on shimAddTrackRemoveTrack.
+	  if (typeof window === 'object' && window.RTCPeerConnection &&
+	      !('getSenders' in window.RTCPeerConnection.prototype) &&
+	      'createDTMFSender' in window.RTCPeerConnection.prototype) {
+	    const shimSenderWithDtmf = function(pc, track) {
+	      return {
+	        track,
+	        get dtmf() {
+	          if (this._dtmf === undefined) {
+	            if (track.kind === 'audio') {
+	              this._dtmf = pc.createDTMFSender(track);
+	            } else {
+	              this._dtmf = null;
+	            }
+	          }
+	          return this._dtmf;
+	        },
+	        _pc: pc
+	      };
+	    };
+
+	    // augment addTrack when getSenders is not available.
+	    if (!window.RTCPeerConnection.prototype.getSenders) {
+	      window.RTCPeerConnection.prototype.getSenders = function getSenders() {
+	        this._senders = this._senders || [];
+	        return this._senders.slice(); // return a copy of the internal state.
+	      };
+	      const origAddTrack = window.RTCPeerConnection.prototype.addTrack;
+	      window.RTCPeerConnection.prototype.addTrack =
+	        function addTrack(track, stream) {
+	          let sender = origAddTrack.apply(this, arguments);
+	          if (!sender) {
+	            sender = shimSenderWithDtmf(this, track);
+	            this._senders.push(sender);
+	          }
+	          return sender;
+	        };
+
+	      const origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack;
+	      window.RTCPeerConnection.prototype.removeTrack =
+	        function removeTrack(sender) {
+	          origRemoveTrack.apply(this, arguments);
+	          const idx = this._senders.indexOf(sender);
+	          if (idx !== -1) {
+	            this._senders.splice(idx, 1);
+	          }
+	        };
+	    }
+	    const origAddStream = window.RTCPeerConnection.prototype.addStream;
+	    window.RTCPeerConnection.prototype.addStream = function addStream(stream) {
+	      this._senders = this._senders || [];
+	      origAddStream.apply(this, [stream]);
+	      stream.getTracks().forEach(track => {
+	        this._senders.push(shimSenderWithDtmf(this, track));
+	      });
+	    };
+
+	    const origRemoveStream = window.RTCPeerConnection.prototype.removeStream;
+	    window.RTCPeerConnection.prototype.removeStream =
+	      function removeStream(stream) {
+	        this._senders = this._senders || [];
+	        origRemoveStream.apply(this, [stream]);
+
+	        stream.getTracks().forEach(track => {
+	          const sender = this._senders.find(s => s.track === track);
+	          if (sender) { // remove sender
+	            this._senders.splice(this._senders.indexOf(sender), 1);
+	          }
+	        });
+	      };
+	  } else if (typeof window === 'object' && window.RTCPeerConnection &&
+	             'getSenders' in window.RTCPeerConnection.prototype &&
+	             'createDTMFSender' in window.RTCPeerConnection.prototype &&
+	             window.RTCRtpSender &&
+	             !('dtmf' in window.RTCRtpSender.prototype)) {
+	    const origGetSenders = window.RTCPeerConnection.prototype.getSenders;
+	    window.RTCPeerConnection.prototype.getSenders = function getSenders() {
+	      const senders = origGetSenders.apply(this, []);
+	      senders.forEach(sender => sender._pc = this);
+	      return senders;
+	    };
+
+	    Object.defineProperty(window.RTCRtpSender.prototype, 'dtmf', {
+	      get() {
+	        if (this._dtmf === undefined) {
+	          if (this.track.kind === 'audio') {
+	            this._dtmf = this._pc.createDTMFSender(this.track);
+	          } else {
+	            this._dtmf = null;
+	          }
+	        }
+	        return this._dtmf;
+	      }
+	    });
+	  }
+	}
+
+	function shimGetStats(window) {
+	  if (!window.RTCPeerConnection) {
+	    return;
+	  }
+
+	  const origGetStats = window.RTCPeerConnection.prototype.getStats;
+	  window.RTCPeerConnection.prototype.getStats = function getStats() {
+	    const [selector, onSucc, onErr] = arguments;
+
+	    // If selector is a function then we are in the old style stats so just
+	    // pass back the original getStats format to avoid breaking old users.
+	    if (arguments.length > 0 && typeof selector === 'function') {
+	      return origGetStats.apply(this, arguments);
+	    }
+
+	    // When spec-style getStats is supported, return those when called with
+	    // either no arguments or the selector argument is null.
+	    if (origGetStats.length === 0 && (arguments.length === 0 ||
+	        typeof selector !== 'function')) {
+	      return origGetStats.apply(this, []);
+	    }
+
+	    const fixChromeStats_ = function(response) {
+	      const standardReport = {};
+	      const reports = response.result();
+	      reports.forEach(report => {
+	        const standardStats = {
+	          id: report.id,
+	          timestamp: report.timestamp,
+	          type: {
+	            localcandidate: 'local-candidate',
+	            remotecandidate: 'remote-candidate'
+	          }[report.type] || report.type
+	        };
+	        report.names().forEach(name => {
+	          standardStats[name] = report.stat(name);
+	        });
+	        standardReport[standardStats.id] = standardStats;
+	      });
+
+	      return standardReport;
+	    };
+
+	    // shim getStats with maplike support
+	    const makeMapStats = function(stats) {
+	      return new Map(Object.keys(stats).map(key => [key, stats[key]]));
+	    };
+
+	    if (arguments.length >= 2) {
+	      const successCallbackWrapper_ = function(response) {
+	        onSucc(makeMapStats(fixChromeStats_(response)));
+	      };
+
+	      return origGetStats.apply(this, [successCallbackWrapper_,
+	        selector]);
+	    }
+
+	    // promise-support
+	    return new Promise((resolve, reject) => {
+	      origGetStats.apply(this, [
+	        function(response) {
+	          resolve(makeMapStats(fixChromeStats_(response)));
+	        }, reject]);
+	    }).then(onSucc, onErr);
+	  };
+	}
+
+	function shimSenderReceiverGetStats(window) {
+	  if (!(typeof window === 'object' && window.RTCPeerConnection &&
+	      window.RTCRtpSender && window.RTCRtpReceiver)) {
+	    return;
+	  }
+
+	  // shim sender stats.
+	  if (!('getStats' in window.RTCRtpSender.prototype)) {
+	    const origGetSenders = window.RTCPeerConnection.prototype.getSenders;
+	    if (origGetSenders) {
+	      window.RTCPeerConnection.prototype.getSenders = function getSenders() {
+	        const senders = origGetSenders.apply(this, []);
+	        senders.forEach(sender => sender._pc = this);
+	        return senders;
+	      };
+	    }
+
+	    const origAddTrack = window.RTCPeerConnection.prototype.addTrack;
+	    if (origAddTrack) {
+	      window.RTCPeerConnection.prototype.addTrack = function addTrack() {
+	        const sender = origAddTrack.apply(this, arguments);
+	        sender._pc = this;
+	        return sender;
+	      };
+	    }
+	    window.RTCRtpSender.prototype.getStats = function getStats() {
+	      const sender = this;
+	      return this._pc.getStats().then(result =>
+	        /* Note: this will include stats of all senders that
+	         *   send a track with the same id as sender.track as
+	         *   it is not possible to identify the RTCRtpSender.
+	         */
+	        filterStats(result, sender.track, true));
+	    };
+	  }
+
+	  // shim receiver stats.
+	  if (!('getStats' in window.RTCRtpReceiver.prototype)) {
+	    const origGetReceivers = window.RTCPeerConnection.prototype.getReceivers;
+	    if (origGetReceivers) {
+	      window.RTCPeerConnection.prototype.getReceivers =
+	        function getReceivers() {
+	          const receivers = origGetReceivers.apply(this, []);
+	          receivers.forEach(receiver => receiver._pc = this);
+	          return receivers;
+	        };
+	    }
+	    wrapPeerConnectionEvent(window, 'track', e => {
+	      e.receiver._pc = e.srcElement;
+	      return e;
+	    });
+	    window.RTCRtpReceiver.prototype.getStats = function getStats() {
+	      const receiver = this;
+	      return this._pc.getStats().then(result =>
+	        filterStats(result, receiver.track, false));
+	    };
+	  }
+
+	  if (!('getStats' in window.RTCRtpSender.prototype &&
+	      'getStats' in window.RTCRtpReceiver.prototype)) {
+	    return;
+	  }
+
+	  // shim RTCPeerConnection.getStats(track).
+	  const origGetStats = window.RTCPeerConnection.prototype.getStats;
+	  window.RTCPeerConnection.prototype.getStats = function getStats() {
+	    if (arguments.length > 0 &&
+	        arguments[0] instanceof window.MediaStreamTrack) {
+	      const track = arguments[0];
+	      let sender;
+	      let receiver;
+	      let err;
+	      this.getSenders().forEach(s => {
+	        if (s.track === track) {
+	          if (sender) {
+	            err = true;
+	          } else {
+	            sender = s;
+	          }
+	        }
+	      });
+	      this.getReceivers().forEach(r => {
+	        if (r.track === track) {
+	          if (receiver) {
+	            err = true;
+	          } else {
+	            receiver = r;
+	          }
+	        }
+	        return r.track === track;
+	      });
+	      if (err || (sender && receiver)) {
+	        return Promise.reject(new DOMException(
+	          'There are more than one sender or receiver for the track.',
+	          'InvalidAccessError'));
+	      } else if (sender) {
+	        return sender.getStats();
+	      } else if (receiver) {
+	        return receiver.getStats();
+	      }
+	      return Promise.reject(new DOMException(
+	        'There is no sender or receiver for the track.',
+	        'InvalidAccessError'));
+	    }
+	    return origGetStats.apply(this, arguments);
+	  };
+	}
+
+	function shimAddTrackRemoveTrackWithNative(window) {
+	  // shim addTrack/removeTrack with native variants in order to make
+	  // the interactions with legacy getLocalStreams behave as in other browsers.
+	  // Keeps a mapping stream.id => [stream, rtpsenders...]
+	  window.RTCPeerConnection.prototype.getLocalStreams =
+	    function getLocalStreams() {
+	      this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+	      return Object.keys(this._shimmedLocalStreams)
+	        .map(streamId => this._shimmedLocalStreams[streamId][0]);
+	    };
+
+	  const origAddTrack = window.RTCPeerConnection.prototype.addTrack;
+	  window.RTCPeerConnection.prototype.addTrack =
+	    function addTrack(track, stream) {
+	      if (!stream) {
+	        return origAddTrack.apply(this, arguments);
+	      }
+	      this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+
+	      const sender = origAddTrack.apply(this, arguments);
+	      if (!this._shimmedLocalStreams[stream.id]) {
+	        this._shimmedLocalStreams[stream.id] = [stream, sender];
+	      } else if (this._shimmedLocalStreams[stream.id].indexOf(sender) === -1) {
+	        this._shimmedLocalStreams[stream.id].push(sender);
+	      }
+	      return sender;
+	    };
+
+	  const origAddStream = window.RTCPeerConnection.prototype.addStream;
+	  window.RTCPeerConnection.prototype.addStream = function addStream(stream) {
+	    this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+
+	    stream.getTracks().forEach(track => {
+	      const alreadyExists = this.getSenders().find(s => s.track === track);
+	      if (alreadyExists) {
+	        throw new DOMException('Track already exists.',
+	            'InvalidAccessError');
+	      }
+	    });
+	    const existingSenders = this.getSenders();
+	    origAddStream.apply(this, arguments);
+	    const newSenders = this.getSenders()
+	      .filter(newSender => existingSenders.indexOf(newSender) === -1);
+	    this._shimmedLocalStreams[stream.id] = [stream].concat(newSenders);
+	  };
+
+	  const origRemoveStream = window.RTCPeerConnection.prototype.removeStream;
+	  window.RTCPeerConnection.prototype.removeStream =
+	    function removeStream(stream) {
+	      this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+	      delete this._shimmedLocalStreams[stream.id];
+	      return origRemoveStream.apply(this, arguments);
+	    };
+
+	  const origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack;
+	  window.RTCPeerConnection.prototype.removeTrack =
+	    function removeTrack(sender) {
+	      this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+	      if (sender) {
+	        Object.keys(this._shimmedLocalStreams).forEach(streamId => {
+	          const idx = this._shimmedLocalStreams[streamId].indexOf(sender);
+	          if (idx !== -1) {
+	            this._shimmedLocalStreams[streamId].splice(idx, 1);
+	          }
+	          if (this._shimmedLocalStreams[streamId].length === 1) {
+	            delete this._shimmedLocalStreams[streamId];
+	          }
+	        });
+	      }
+	      return origRemoveTrack.apply(this, arguments);
+	    };
+	}
+
+	function shimAddTrackRemoveTrack(window, browserDetails) {
+	  if (!window.RTCPeerConnection) {
+	    return;
+	  }
+	  // shim addTrack and removeTrack.
+	  if (window.RTCPeerConnection.prototype.addTrack &&
+	      browserDetails.version >= 65) {
+	    return shimAddTrackRemoveTrackWithNative(window);
+	  }
+
+	  // also shim pc.getLocalStreams when addTrack is shimmed
+	  // to return the original streams.
+	  const origGetLocalStreams = window.RTCPeerConnection.prototype
+	      .getLocalStreams;
+	  window.RTCPeerConnection.prototype.getLocalStreams =
+	    function getLocalStreams() {
+	      const nativeStreams = origGetLocalStreams.apply(this);
+	      this._reverseStreams = this._reverseStreams || {};
+	      return nativeStreams.map(stream => this._reverseStreams[stream.id]);
+	    };
+
+	  const origAddStream = window.RTCPeerConnection.prototype.addStream;
+	  window.RTCPeerConnection.prototype.addStream = function addStream(stream) {
+	    this._streams = this._streams || {};
+	    this._reverseStreams = this._reverseStreams || {};
+
+	    stream.getTracks().forEach(track => {
+	      const alreadyExists = this.getSenders().find(s => s.track === track);
+	      if (alreadyExists) {
+	        throw new DOMException('Track already exists.',
+	            'InvalidAccessError');
+	      }
+	    });
+	    // Add identity mapping for consistency with addTrack.
+	    // Unless this is being used with a stream from addTrack.
+	    if (!this._reverseStreams[stream.id]) {
+	      const newStream = new window.MediaStream(stream.getTracks());
+	      this._streams[stream.id] = newStream;
+	      this._reverseStreams[newStream.id] = stream;
+	      stream = newStream;
+	    }
+	    origAddStream.apply(this, [stream]);
+	  };
+
+	  const origRemoveStream = window.RTCPeerConnection.prototype.removeStream;
+	  window.RTCPeerConnection.prototype.removeStream =
+	    function removeStream(stream) {
+	      this._streams = this._streams || {};
+	      this._reverseStreams = this._reverseStreams || {};
+
+	      origRemoveStream.apply(this, [(this._streams[stream.id] || stream)]);
+	      delete this._reverseStreams[(this._streams[stream.id] ?
+	          this._streams[stream.id].id : stream.id)];
+	      delete this._streams[stream.id];
+	    };
+
+	  window.RTCPeerConnection.prototype.addTrack =
+	    function addTrack(track, stream) {
+	      if (this.signalingState === 'closed') {
+	        throw new DOMException(
+	          'The RTCPeerConnection\'s signalingState is \'closed\'.',
+	          'InvalidStateError');
+	      }
+	      const streams = [].slice.call(arguments, 1);
+	      if (streams.length !== 1 ||
+	          !streams[0].getTracks().find(t => t === track)) {
+	        // this is not fully correct but all we can manage without
+	        // [[associated MediaStreams]] internal slot.
+	        throw new DOMException(
+	          'The adapter.js addTrack polyfill only supports a single ' +
+	          ' stream which is associated with the specified track.',
+	          'NotSupportedError');
+	      }
+
+	      const alreadyExists = this.getSenders().find(s => s.track === track);
+	      if (alreadyExists) {
+	        throw new DOMException('Track already exists.',
+	            'InvalidAccessError');
+	      }
+
+	      this._streams = this._streams || {};
+	      this._reverseStreams = this._reverseStreams || {};
+	      const oldStream = this._streams[stream.id];
+	      if (oldStream) {
+	        // this is using odd Chrome behaviour, use with caution:
+	        // https://bugs.chromium.org/p/webrtc/issues/detail?id=7815
+	        // Note: we rely on the high-level addTrack/dtmf shim to
+	        // create the sender with a dtmf sender.
+	        oldStream.addTrack(track);
+
+	        // Trigger ONN async.
+	        Promise.resolve().then(() => {
+	          this.dispatchEvent(new Event('negotiationneeded'));
+	        });
+	      } else {
+	        const newStream = new window.MediaStream([track]);
+	        this._streams[stream.id] = newStream;
+	        this._reverseStreams[newStream.id] = stream;
+	        this.addStream(newStream);
+	      }
+	      return this.getSenders().find(s => s.track === track);
+	    };
+
+	  // replace the internal stream id with the external one and
+	  // vice versa.
+	  function replaceInternalStreamId(pc, description) {
+	    let sdp = description.sdp;
+	    Object.keys(pc._reverseStreams || []).forEach(internalId => {
+	      const externalStream = pc._reverseStreams[internalId];
+	      const internalStream = pc._streams[externalStream.id];
+	      sdp = sdp.replace(new RegExp(internalStream.id, 'g'),
+	          externalStream.id);
+	    });
+	    return new RTCSessionDescription({
+	      type: description.type,
+	      sdp
+	    });
+	  }
+	  function replaceExternalStreamId(pc, description) {
+	    let sdp = description.sdp;
+	    Object.keys(pc._reverseStreams || []).forEach(internalId => {
+	      const externalStream = pc._reverseStreams[internalId];
+	      const internalStream = pc._streams[externalStream.id];
+	      sdp = sdp.replace(new RegExp(externalStream.id, 'g'),
+	          internalStream.id);
+	    });
+	    return new RTCSessionDescription({
+	      type: description.type,
+	      sdp
+	    });
+	  }
+	  ['createOffer', 'createAnswer'].forEach(function(method) {
+	    const nativeMethod = window.RTCPeerConnection.prototype[method];
+	    const methodObj = {[method]() {
+	      const args = arguments;
+	      const isLegacyCall = arguments.length &&
+	          typeof arguments[0] === 'function';
+	      if (isLegacyCall) {
+	        return nativeMethod.apply(this, [
+	          (description) => {
+	            const desc = replaceInternalStreamId(this, description);
+	            args[0].apply(null, [desc]);
+	          },
+	          (err) => {
+	            if (args[1]) {
+	              args[1].apply(null, err);
+	            }
+	          }, arguments[2]
+	        ]);
+	      }
+	      return nativeMethod.apply(this, arguments)
+	      .then(description => replaceInternalStreamId(this, description));
+	    }};
+	    window.RTCPeerConnection.prototype[method] = methodObj[method];
+	  });
+
+	  const origSetLocalDescription =
+	      window.RTCPeerConnection.prototype.setLocalDescription;
+	  window.RTCPeerConnection.prototype.setLocalDescription =
+	    function setLocalDescription() {
+	      if (!arguments.length || !arguments[0].type) {
+	        return origSetLocalDescription.apply(this, arguments);
+	      }
+	      arguments[0] = replaceExternalStreamId(this, arguments[0]);
+	      return origSetLocalDescription.apply(this, arguments);
+	    };
+
+	  // TODO: mangle getStats: https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamstats-streamidentifier
+
+	  const origLocalDescription = Object.getOwnPropertyDescriptor(
+	      window.RTCPeerConnection.prototype, 'localDescription');
+	  Object.defineProperty(window.RTCPeerConnection.prototype,
+	      'localDescription', {
+	        get() {
+	          const description = origLocalDescription.get.apply(this);
+	          if (description.type === '') {
+	            return description;
+	          }
+	          return replaceInternalStreamId(this, description);
+	        }
+	      });
+
+	  window.RTCPeerConnection.prototype.removeTrack =
+	    function removeTrack(sender) {
+	      if (this.signalingState === 'closed') {
+	        throw new DOMException(
+	          'The RTCPeerConnection\'s signalingState is \'closed\'.',
+	          'InvalidStateError');
+	      }
+	      // We can not yet check for sender instanceof RTCRtpSender
+	      // since we shim RTPSender. So we check if sender._pc is set.
+	      if (!sender._pc) {
+	        throw new DOMException('Argument 1 of RTCPeerConnection.removeTrack ' +
+	            'does not implement interface RTCRtpSender.', 'TypeError');
+	      }
+	      const isLocal = sender._pc === this;
+	      if (!isLocal) {
+	        throw new DOMException('Sender was not created by this connection.',
+	            'InvalidAccessError');
+	      }
+
+	      // Search for the native stream the senders track belongs to.
+	      this._streams = this._streams || {};
+	      let stream;
+	      Object.keys(this._streams).forEach(streamid => {
+	        const hasTrack = this._streams[streamid].getTracks()
+	          .find(track => sender.track === track);
+	        if (hasTrack) {
+	          stream = this._streams[streamid];
+	        }
+	      });
+
+	      if (stream) {
+	        if (stream.getTracks().length === 1) {
+	          // if this is the last track of the stream, remove the stream. This
+	          // takes care of any shimmed _senders.
+	          this.removeStream(this._reverseStreams[stream.id]);
+	        } else {
+	          // relying on the same odd chrome behaviour as above.
+	          stream.removeTrack(sender.track);
+	        }
+	        this.dispatchEvent(new Event('negotiationneeded'));
+	      }
+	    };
+	}
+
+	function shimPeerConnection$2(window, browserDetails) {
+	  if (!window.RTCPeerConnection && window.webkitRTCPeerConnection) {
+	    // very basic support for old versions.
+	    window.RTCPeerConnection = window.webkitRTCPeerConnection;
+	  }
+	  if (!window.RTCPeerConnection) {
+	    return;
+	  }
+
+	  // shim implicit creation of RTCSessionDescription/RTCIceCandidate
+	  if (browserDetails.version < 53) {
+	    ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate']
+	        .forEach(function(method) {
+	          const nativeMethod = window.RTCPeerConnection.prototype[method];
+	          const methodObj = {[method]() {
+	            arguments[0] = new ((method === 'addIceCandidate') ?
+	                window.RTCIceCandidate :
+	                window.RTCSessionDescription)(arguments[0]);
+	            return nativeMethod.apply(this, arguments);
+	          }};
+	          window.RTCPeerConnection.prototype[method] = methodObj[method];
+	        });
+	  }
+	}
+
+	// Attempt to fix ONN in plan-b mode.
+	function fixNegotiationNeeded(window, browserDetails) {
+	  wrapPeerConnectionEvent(window, 'negotiationneeded', e => {
+	    const pc = e.target;
+	    if (browserDetails.version < 72 || (pc.getConfiguration &&
+	        pc.getConfiguration().sdpSemantics === 'plan-b')) {
+	      if (pc.signalingState !== 'stable') {
+	        return;
+	      }
+	    }
+	    return e;
+	  });
+	}
+
+	var chromeShim = /*#__PURE__*/Object.freeze({
+		__proto__: null,
+		shimMediaStream: shimMediaStream,
+		shimOnTrack: shimOnTrack$1,
+		shimGetSendersWithDtmf: shimGetSendersWithDtmf,
+		shimGetStats: shimGetStats,
+		shimSenderReceiverGetStats: shimSenderReceiverGetStats,
+		shimAddTrackRemoveTrackWithNative: shimAddTrackRemoveTrackWithNative,
+		shimAddTrackRemoveTrack: shimAddTrackRemoveTrack,
+		shimPeerConnection: shimPeerConnection$2,
+		fixNegotiationNeeded: fixNegotiationNeeded,
+		shimGetUserMedia: shimGetUserMedia$3,
+		shimGetDisplayMedia: shimGetDisplayMedia$2
+	});
+
+	/*
+	 *  Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+	// Edge does not like
+	// 1) stun: filtered after 14393 unless ?transport=udp is present
+	// 2) turn: that does not have all of turn:host:port?transport=udp
+	// 3) turn: with ipv6 addresses
+	// 4) turn: occurring muliple times
+	function filterIceServers$1(iceServers, edgeVersion) {
+	  let hasTurn = false;
+	  iceServers = JSON.parse(JSON.stringify(iceServers));
+	  return iceServers.filter(server => {
+	    if (server && (server.urls || server.url)) {
+	      let urls = server.urls || server.url;
+	      if (server.url && !server.urls) {
+	        deprecated('RTCIceServer.url', 'RTCIceServer.urls');
+	      }
+	      const isString = typeof urls === 'string';
+	      if (isString) {
+	        urls = [urls];
+	      }
+	      urls = urls.filter(url => {
+	        // filter STUN unconditionally.
+	        if (url.indexOf('stun:') === 0) {
+	          return false;
+	        }
+
+	        const validTurn = url.startsWith('turn') &&
+	            !url.startsWith('turn:[') &&
+	            url.includes('transport=udp');
+	        if (validTurn && !hasTurn) {
+	          hasTurn = true;
+	          return true;
+	        }
+	        return validTurn && !hasTurn;
+	      });
+
+	      delete server.url;
+	      server.urls = isString ? urls[0] : urls;
+	      return !!urls.length;
+	    }
+	  });
+	}
+
+	var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
+
+	function createCommonjsModule(fn) {
+	  var module = { exports: {} };
+		return fn(module, module.exports), module.exports;
+	}
+
+	function commonjsRequire (path) {
+		throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
+	}
+
+	/* eslint-env node */
+
+	var sdp = createCommonjsModule(function (module) {
+
+	// SDP helpers.
+	var SDPUtils = {};
+
+	// Generate an alphanumeric identifier for cname or mids.
+	// TODO: use UUIDs instead? https://gist.github.com/jed/982883
+	SDPUtils.generateIdentifier = function() {
+	  return Math.random().toString(36).substr(2, 10);
+	};
+
+	// The RTCP CNAME used by all peerconnections from the same JS.
+	SDPUtils.localCName = SDPUtils.generateIdentifier();
+
+	// Splits SDP into lines, dealing with both CRLF and LF.
+	SDPUtils.splitLines = function(blob) {
+	  return blob.trim().split('\n').map(function(line) {
+	    return line.trim();
+	  });
+	};
+	// Splits SDP into sessionpart and mediasections. Ensures CRLF.
+	SDPUtils.splitSections = function(blob) {
+	  var parts = blob.split('\nm=');
+	  return parts.map(function(part, index) {
+	    return (index > 0 ? 'm=' + part : part).trim() + '\r\n';
+	  });
+	};
+
+	// returns the session description.
+	SDPUtils.getDescription = function(blob) {
+	  var sections = SDPUtils.splitSections(blob);
+	  return sections && sections[0];
+	};
+
+	// returns the individual media sections.
+	SDPUtils.getMediaSections = function(blob) {
+	  var sections = SDPUtils.splitSections(blob);
+	  sections.shift();
+	  return sections;
+	};
+
+	// Returns lines that start with a certain prefix.
+	SDPUtils.matchPrefix = function(blob, prefix) {
+	  return SDPUtils.splitLines(blob).filter(function(line) {
+	    return line.indexOf(prefix) === 0;
+	  });
+	};
+
+	// Parses an ICE candidate line. Sample input:
+	// candidate:702786350 2 udp 41819902 8.8.8.8 60769 typ relay raddr 8.8.8.8
+	// rport 55996"
+	SDPUtils.parseCandidate = function(line) {
+	  var parts;
+	  // Parse both variants.
+	  if (line.indexOf('a=candidate:') === 0) {
+	    parts = line.substring(12).split(' ');
+	  } else {
+	    parts = line.substring(10).split(' ');
+	  }
+
+	  var candidate = {
+	    foundation: parts[0],
+	    component: parseInt(parts[1], 10),
+	    protocol: parts[2].toLowerCase(),
+	    priority: parseInt(parts[3], 10),
+	    ip: parts[4],
+	    address: parts[4], // address is an alias for ip.
+	    port: parseInt(parts[5], 10),
+	    // skip parts[6] == 'typ'
+	    type: parts[7]
+	  };
+
+	  for (var i = 8; i < parts.length; i += 2) {
+	    switch (parts[i]) {
+	      case 'raddr':
+	        candidate.relatedAddress = parts[i + 1];
+	        break;
+	      case 'rport':
+	        candidate.relatedPort = parseInt(parts[i + 1], 10);
+	        break;
+	      case 'tcptype':
+	        candidate.tcpType = parts[i + 1];
+	        break;
+	      case 'ufrag':
+	        candidate.ufrag = parts[i + 1]; // for backward compability.
+	        candidate.usernameFragment = parts[i + 1];
+	        break;
+	      default: // extension handling, in particular ufrag
+	        candidate[parts[i]] = parts[i + 1];
+	        break;
+	    }
+	  }
+	  return candidate;
+	};
+
+	// Translates a candidate object into SDP candidate attribute.
+	SDPUtils.writeCandidate = function(candidate) {
+	  var sdp = [];
+	  sdp.push(candidate.foundation);
+	  sdp.push(candidate.component);
+	  sdp.push(candidate.protocol.toUpperCase());
+	  sdp.push(candidate.priority);
+	  sdp.push(candidate.address || candidate.ip);
+	  sdp.push(candidate.port);
+
+	  var type = candidate.type;
+	  sdp.push('typ');
+	  sdp.push(type);
+	  if (type !== 'host' && candidate.relatedAddress &&
+	      candidate.relatedPort) {
+	    sdp.push('raddr');
+	    sdp.push(candidate.relatedAddress);
+	    sdp.push('rport');
+	    sdp.push(candidate.relatedPort);
+	  }
+	  if (candidate.tcpType && candidate.protocol.toLowerCase() === 'tcp') {
+	    sdp.push('tcptype');
+	    sdp.push(candidate.tcpType);
+	  }
+	  if (candidate.usernameFragment || candidate.ufrag) {
+	    sdp.push('ufrag');
+	    sdp.push(candidate.usernameFragment || candidate.ufrag);
+	  }
+	  return 'candidate:' + sdp.join(' ');
+	};
+
+	// Parses an ice-options line, returns an array of option tags.
+	// a=ice-options:foo bar
+	SDPUtils.parseIceOptions = function(line) {
+	  return line.substr(14).split(' ');
+	};
+
+	// Parses an rtpmap line, returns RTCRtpCoddecParameters. Sample input:
+	// a=rtpmap:111 opus/48000/2
+	SDPUtils.parseRtpMap = function(line) {
+	  var parts = line.substr(9).split(' ');
+	  var parsed = {
+	    payloadType: parseInt(parts.shift(), 10) // was: id
+	  };
+
+	  parts = parts[0].split('/');
+
+	  parsed.name = parts[0];
+	  parsed.clockRate = parseInt(parts[1], 10); // was: clockrate
+	  parsed.channels = parts.length === 3 ? parseInt(parts[2], 10) : 1;
+	  // legacy alias, got renamed back to channels in ORTC.
+	  parsed.numChannels = parsed.channels;
+	  return parsed;
+	};
+
+	// Generate an a=rtpmap line from RTCRtpCodecCapability or
+	// RTCRtpCodecParameters.
+	SDPUtils.writeRtpMap = function(codec) {
+	  var pt = codec.payloadType;
+	  if (codec.preferredPayloadType !== undefined) {
+	    pt = codec.preferredPayloadType;
+	  }
+	  var channels = codec.channels || codec.numChannels || 1;
+	  return 'a=rtpmap:' + pt + ' ' + codec.name + '/' + codec.clockRate +
+	      (channels !== 1 ? '/' + channels : '') + '\r\n';
+	};
+
+	// Parses an a=extmap line (headerextension from RFC 5285). Sample input:
+	// a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
+	// a=extmap:2/sendonly urn:ietf:params:rtp-hdrext:toffset
+	SDPUtils.parseExtmap = function(line) {
+	  var parts = line.substr(9).split(' ');
+	  return {
+	    id: parseInt(parts[0], 10),
+	    direction: parts[0].indexOf('/') > 0 ? parts[0].split('/')[1] : 'sendrecv',
+	    uri: parts[1]
+	  };
+	};
+
+	// Generates a=extmap line from RTCRtpHeaderExtensionParameters or
+	// RTCRtpHeaderExtension.
+	SDPUtils.writeExtmap = function(headerExtension) {
+	  return 'a=extmap:' + (headerExtension.id || headerExtension.preferredId) +
+	      (headerExtension.direction && headerExtension.direction !== 'sendrecv'
+	        ? '/' + headerExtension.direction
+	        : '') +
+	      ' ' + headerExtension.uri + '\r\n';
+	};
+
+	// Parses an ftmp line, returns dictionary. Sample input:
+	// a=fmtp:96 vbr=on;cng=on
+	// Also deals with vbr=on; cng=on
+	SDPUtils.parseFmtp = function(line) {
+	  var parsed = {};
+	  var kv;
+	  var parts = line.substr(line.indexOf(' ') + 1).split(';');
+	  for (var j = 0; j < parts.length; j++) {
+	    kv = parts[j].trim().split('=');
+	    parsed[kv[0].trim()] = kv[1];
+	  }
+	  return parsed;
+	};
+
+	// Generates an a=ftmp line from RTCRtpCodecCapability or RTCRtpCodecParameters.
+	SDPUtils.writeFmtp = function(codec) {
+	  var line = '';
+	  var pt = codec.payloadType;
+	  if (codec.preferredPayloadType !== undefined) {
+	    pt = codec.preferredPayloadType;
+	  }
+	  if (codec.parameters && Object.keys(codec.parameters).length) {
+	    var params = [];
+	    Object.keys(codec.parameters).forEach(function(param) {
+	      if (codec.parameters[param]) {
+	        params.push(param + '=' + codec.parameters[param]);
+	      } else {
+	        params.push(param);
+	      }
+	    });
+	    line += 'a=fmtp:' + pt + ' ' + params.join(';') + '\r\n';
+	  }
+	  return line;
+	};
+
+	// Parses an rtcp-fb line, returns RTCPRtcpFeedback object. Sample input:
+	// a=rtcp-fb:98 nack rpsi
+	SDPUtils.parseRtcpFb = function(line) {
+	  var parts = line.substr(line.indexOf(' ') + 1).split(' ');
+	  return {
+	    type: parts.shift(),
+	    parameter: parts.join(' ')
+	  };
+	};
+	// Generate a=rtcp-fb lines from RTCRtpCodecCapability or RTCRtpCodecParameters.
+	SDPUtils.writeRtcpFb = function(codec) {
+	  var lines = '';
+	  var pt = codec.payloadType;
+	  if (codec.preferredPayloadType !== undefined) {
+	    pt = codec.preferredPayloadType;
+	  }
+	  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
+	    // FIXME: special handling for trr-int?
+	    codec.rtcpFeedback.forEach(function(fb) {
+	      lines += 'a=rtcp-fb:' + pt + ' ' + fb.type +
+	      (fb.parameter && fb.parameter.length ? ' ' + fb.parameter : '') +
+	          '\r\n';
+	    });
+	  }
+	  return lines;
+	};
+
+	// Parses an RFC 5576 ssrc media attribute. Sample input:
+	// a=ssrc:3735928559 cname:something
+	SDPUtils.parseSsrcMedia = function(line) {
+	  var sp = line.indexOf(' ');
+	  var parts = {
+	    ssrc: parseInt(line.substr(7, sp - 7), 10)
+	  };
+	  var colon = line.indexOf(':', sp);
+	  if (colon > -1) {
+	    parts.attribute = line.substr(sp + 1, colon - sp - 1);
+	    parts.value = line.substr(colon + 1);
+	  } else {
+	    parts.attribute = line.substr(sp + 1);
+	  }
+	  return parts;
+	};
+
+	SDPUtils.parseSsrcGroup = function(line) {
+	  var parts = line.substr(13).split(' ');
+	  return {
+	    semantics: parts.shift(),
+	    ssrcs: parts.map(function(ssrc) {
+	      return parseInt(ssrc, 10);
+	    })
+	  };
+	};
+
+	// Extracts the MID (RFC 5888) from a media section.
+	// returns the MID or undefined if no mid line was found.
+	SDPUtils.getMid = function(mediaSection) {
+	  var mid = SDPUtils.matchPrefix(mediaSection, 'a=mid:')[0];
+	  if (mid) {
+	    return mid.substr(6);
+	  }
+	};
+
+	SDPUtils.parseFingerprint = function(line) {
+	  var parts = line.substr(14).split(' ');
+	  return {
+	    algorithm: parts[0].toLowerCase(), // algorithm is case-sensitive in Edge.
+	    value: parts[1]
+	  };
+	};
+
+	// Extracts DTLS parameters from SDP media section or sessionpart.
+	// FIXME: for consistency with other functions this should only
+	//   get the fingerprint line as input. See also getIceParameters.
+	SDPUtils.getDtlsParameters = function(mediaSection, sessionpart) {
+	  var lines = SDPUtils.matchPrefix(mediaSection + sessionpart,
+	    'a=fingerprint:');
+	  // Note: a=setup line is ignored since we use the 'auto' role.
+	  // Note2: 'algorithm' is not case sensitive except in Edge.
+	  return {
+	    role: 'auto',
+	    fingerprints: lines.map(SDPUtils.parseFingerprint)
+	  };
+	};
+
+	// Serializes DTLS parameters to SDP.
+	SDPUtils.writeDtlsParameters = function(params, setupType) {
+	  var sdp = 'a=setup:' + setupType + '\r\n';
+	  params.fingerprints.forEach(function(fp) {
+	    sdp += 'a=fingerprint:' + fp.algorithm + ' ' + fp.value + '\r\n';
+	  });
+	  return sdp;
+	};
+
+	// Parses a=crypto lines into
+	//   https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#dictionary-rtcsrtpsdesparameters-members
+	SDPUtils.parseCryptoLine = function(line) {
+	  var parts = line.substr(9).split(' ');
+	  return {
+	    tag: parseInt(parts[0], 10),
+	    cryptoSuite: parts[1],
+	    keyParams: parts[2],
+	    sessionParams: parts.slice(3),
+	  };
+	};
+
+	SDPUtils.writeCryptoLine = function(parameters) {
+	  return 'a=crypto:' + parameters.tag + ' ' +
+	    parameters.cryptoSuite + ' ' +
+	    (typeof parameters.keyParams === 'object'
+	      ? SDPUtils.writeCryptoKeyParams(parameters.keyParams)
+	      : parameters.keyParams) +
+	    (parameters.sessionParams ? ' ' + parameters.sessionParams.join(' ') : '') +
+	    '\r\n';
+	};
+
+	// Parses the crypto key parameters into
+	//   https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#rtcsrtpkeyparam*
+	SDPUtils.parseCryptoKeyParams = function(keyParams) {
+	  if (keyParams.indexOf('inline:') !== 0) {
+	    return null;
+	  }
+	  var parts = keyParams.substr(7).split('|');
+	  return {
+	    keyMethod: 'inline',
+	    keySalt: parts[0],
+	    lifeTime: parts[1],
+	    mkiValue: parts[2] ? parts[2].split(':')[0] : undefined,
+	    mkiLength: parts[2] ? parts[2].split(':')[1] : undefined,
+	  };
+	};
+
+	SDPUtils.writeCryptoKeyParams = function(keyParams) {
+	  return keyParams.keyMethod + ':'
+	    + keyParams.keySalt +
+	    (keyParams.lifeTime ? '|' + keyParams.lifeTime : '') +
+	    (keyParams.mkiValue && keyParams.mkiLength
+	      ? '|' + keyParams.mkiValue + ':' + keyParams.mkiLength
+	      : '');
+	};
+
+	// Extracts all SDES paramters.
+	SDPUtils.getCryptoParameters = function(mediaSection, sessionpart) {
+	  var lines = SDPUtils.matchPrefix(mediaSection + sessionpart,
+	    'a=crypto:');
+	  return lines.map(SDPUtils.parseCryptoLine);
+	};
+
+	// Parses ICE information from SDP media section or sessionpart.
+	// FIXME: for consistency with other functions this should only
+	//   get the ice-ufrag and ice-pwd lines as input.
+	SDPUtils.getIceParameters = function(mediaSection, sessionpart) {
+	  var ufrag = SDPUtils.matchPrefix(mediaSection + sessionpart,
+	    'a=ice-ufrag:')[0];
+	  var pwd = SDPUtils.matchPrefix(mediaSection + sessionpart,
+	    'a=ice-pwd:')[0];
+	  if (!(ufrag && pwd)) {
+	    return null;
+	  }
+	  return {
+	    usernameFragment: ufrag.substr(12),
+	    password: pwd.substr(10),
+	  };
+	};
+
+	// Serializes ICE parameters to SDP.
+	SDPUtils.writeIceParameters = function(params) {
+	  return 'a=ice-ufrag:' + params.usernameFragment + '\r\n' +
+	      'a=ice-pwd:' + params.password + '\r\n';
+	};
+
+	// Parses the SDP media section and returns RTCRtpParameters.
+	SDPUtils.parseRtpParameters = function(mediaSection) {
+	  var description = {
+	    codecs: [],
+	    headerExtensions: [],
+	    fecMechanisms: [],
+	    rtcp: []
+	  };
+	  var lines = SDPUtils.splitLines(mediaSection);
+	  var mline = lines[0].split(' ');
+	  for (var i = 3; i < mline.length; i++) { // find all codecs from mline[3..]
+	    var pt = mline[i];
+	    var rtpmapline = SDPUtils.matchPrefix(
+	      mediaSection, 'a=rtpmap:' + pt + ' ')[0];
+	    if (rtpmapline) {
+	      var codec = SDPUtils.parseRtpMap(rtpmapline);
+	      var fmtps = SDPUtils.matchPrefix(
+	        mediaSection, 'a=fmtp:' + pt + ' ');
+	      // Only the first a=fmtp:<pt> is considered.
+	      codec.parameters = fmtps.length ? SDPUtils.parseFmtp(fmtps[0]) : {};
+	      codec.rtcpFeedback = SDPUtils.matchPrefix(
+	        mediaSection, 'a=rtcp-fb:' + pt + ' ')
+	        .map(SDPUtils.parseRtcpFb);
+	      description.codecs.push(codec);
+	      // parse FEC mechanisms from rtpmap lines.
+	      switch (codec.name.toUpperCase()) {
+	        case 'RED':
+	        case 'ULPFEC':
+	          description.fecMechanisms.push(codec.name.toUpperCase());
+	          break;
+	      }
+	    }
+	  }
+	  SDPUtils.matchPrefix(mediaSection, 'a=extmap:').forEach(function(line) {
+	    description.headerExtensions.push(SDPUtils.parseExtmap(line));
+	  });
+	  // FIXME: parse rtcp.
+	  return description;
+	};
+
+	// Generates parts of the SDP media section describing the capabilities /
+	// parameters.
+	SDPUtils.writeRtpDescription = function(kind, caps) {
+	  var sdp = '';
+
+	  // Build the mline.
+	  sdp += 'm=' + kind + ' ';
+	  sdp += caps.codecs.length > 0 ? '9' : '0'; // reject if no codecs.
+	  sdp += ' UDP/TLS/RTP/SAVPF ';
+	  sdp += caps.codecs.map(function(codec) {
+	    if (codec.preferredPayloadType !== undefined) {
+	      return codec.preferredPayloadType;
+	    }
+	    return codec.payloadType;
+	  }).join(' ') + '\r\n';
+
+	  sdp += 'c=IN IP4 0.0.0.0\r\n';
+	  sdp += 'a=rtcp:9 IN IP4 0.0.0.0\r\n';
+
+	  // Add a=rtpmap lines for each codec. Also fmtp and rtcp-fb.
+	  caps.codecs.forEach(function(codec) {
+	    sdp += SDPUtils.writeRtpMap(codec);
+	    sdp += SDPUtils.writeFmtp(codec);
+	    sdp += SDPUtils.writeRtcpFb(codec);
+	  });
+	  var maxptime = 0;
+	  caps.codecs.forEach(function(codec) {
+	    if (codec.maxptime > maxptime) {
+	      maxptime = codec.maxptime;
+	    }
+	  });
+	  if (maxptime > 0) {
+	    sdp += 'a=maxptime:' + maxptime + '\r\n';
+	  }
+	  sdp += 'a=rtcp-mux\r\n';
+
+	  if (caps.headerExtensions) {
+	    caps.headerExtensions.forEach(function(extension) {
+	      sdp += SDPUtils.writeExtmap(extension);
+	    });
+	  }
+	  // FIXME: write fecMechanisms.
+	  return sdp;
+	};
+
+	// Parses the SDP media section and returns an array of
+	// RTCRtpEncodingParameters.
+	SDPUtils.parseRtpEncodingParameters = function(mediaSection) {
+	  var encodingParameters = [];
+	  var description = SDPUtils.parseRtpParameters(mediaSection);
+	  var hasRed = description.fecMechanisms.indexOf('RED') !== -1;
+	  var hasUlpfec = description.fecMechanisms.indexOf('ULPFEC') !== -1;
+
+	  // filter a=ssrc:... cname:, ignore PlanB-msid
+	  var ssrcs = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:')
+	    .map(function(line) {
+	      return SDPUtils.parseSsrcMedia(line);
+	    })
+	    .filter(function(parts) {
+	      return parts.attribute === 'cname';
+	    });
+	  var primarySsrc = ssrcs.length > 0 && ssrcs[0].ssrc;
+	  var secondarySsrc;
+
+	  var flows = SDPUtils.matchPrefix(mediaSection, 'a=ssrc-group:FID')
+	    .map(function(line) {
+	      var parts = line.substr(17).split(' ');
+	      return parts.map(function(part) {
+	        return parseInt(part, 10);
+	      });
+	    });
+	  if (flows.length > 0 && flows[0].length > 1 && flows[0][0] === primarySsrc) {
+	    secondarySsrc = flows[0][1];
+	  }
+
+	  description.codecs.forEach(function(codec) {
+	    if (codec.name.toUpperCase() === 'RTX' && codec.parameters.apt) {
+	      var encParam = {
+	        ssrc: primarySsrc,
+	        codecPayloadType: parseInt(codec.parameters.apt, 10)
+	      };
+	      if (primarySsrc && secondarySsrc) {
+	        encParam.rtx = {ssrc: secondarySsrc};
+	      }
+	      encodingParameters.push(encParam);
+	      if (hasRed) {
+	        encParam = JSON.parse(JSON.stringify(encParam));
+	        encParam.fec = {
+	          ssrc: primarySsrc,
+	          mechanism: hasUlpfec ? 'red+ulpfec' : 'red'
+	        };
+	        encodingParameters.push(encParam);
+	      }
+	    }
+	  });
+	  if (encodingParameters.length === 0 && primarySsrc) {
+	    encodingParameters.push({
+	      ssrc: primarySsrc
+	    });
+	  }
+
+	  // we support both b=AS and b=TIAS but interpret AS as TIAS.
+	  var bandwidth = SDPUtils.matchPrefix(mediaSection, 'b=');
+	  if (bandwidth.length) {
+	    if (bandwidth[0].indexOf('b=TIAS:') === 0) {
+	      bandwidth = parseInt(bandwidth[0].substr(7), 10);
+	    } else if (bandwidth[0].indexOf('b=AS:') === 0) {
+	      // use formula from JSEP to convert b=AS to TIAS value.
+	      bandwidth = parseInt(bandwidth[0].substr(5), 10) * 1000 * 0.95
+	          - (50 * 40 * 8);
+	    } else {
+	      bandwidth = undefined;
+	    }
+	    encodingParameters.forEach(function(params) {
+	      params.maxBitrate = bandwidth;
+	    });
+	  }
+	  return encodingParameters;
+	};
+
+	// parses http://draft.ortc.org/#rtcrtcpparameters*
+	SDPUtils.parseRtcpParameters = function(mediaSection) {
+	  var rtcpParameters = {};
+
+	  // Gets the first SSRC. Note tha with RTX there might be multiple
+	  // SSRCs.
+	  var remoteSsrc = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:')
+	    .map(function(line) {
+	      return SDPUtils.parseSsrcMedia(line);
+	    })
+	    .filter(function(obj) {
+	      return obj.attribute === 'cname';
+	    })[0];
+	  if (remoteSsrc) {
+	    rtcpParameters.cname = remoteSsrc.value;
+	    rtcpParameters.ssrc = remoteSsrc.ssrc;
+	  }
+
+	  // Edge uses the compound attribute instead of reducedSize
+	  // compound is !reducedSize
+	  var rsize = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-rsize');
+	  rtcpParameters.reducedSize = rsize.length > 0;
+	  rtcpParameters.compound = rsize.length === 0;
+
+	  // parses the rtcp-mux attrіbute.
+	  // Note that Edge does not support unmuxed RTCP.
+	  var mux = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-mux');
+	  rtcpParameters.mux = mux.length > 0;
+
+	  return rtcpParameters;
+	};
+
+	// parses either a=msid: or a=ssrc:... msid lines and returns
+	// the id of the MediaStream and MediaStreamTrack.
+	SDPUtils.parseMsid = function(mediaSection) {
+	  var parts;
+	  var spec = SDPUtils.matchPrefix(mediaSection, 'a=msid:');
+	  if (spec.length === 1) {
+	    parts = spec[0].substr(7).split(' ');
+	    return {stream: parts[0], track: parts[1]};
+	  }
+	  var planB = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:')
+	    .map(function(line) {
+	      return SDPUtils.parseSsrcMedia(line);
+	    })
+	    .filter(function(msidParts) {
+	      return msidParts.attribute === 'msid';
+	    });
+	  if (planB.length > 0) {
+	    parts = planB[0].value.split(' ');
+	    return {stream: parts[0], track: parts[1]};
+	  }
+	};
+
+	// SCTP
+	// parses draft-ietf-mmusic-sctp-sdp-26 first and falls back
+	// to draft-ietf-mmusic-sctp-sdp-05
+	SDPUtils.parseSctpDescription = function(mediaSection) {
+	  var mline = SDPUtils.parseMLine(mediaSection);
+	  var maxSizeLine = SDPUtils.matchPrefix(mediaSection, 'a=max-message-size:');
+	  var maxMessageSize;
+	  if (maxSizeLine.length > 0) {
+	    maxMessageSize = parseInt(maxSizeLine[0].substr(19), 10);
+	  }
+	  if (isNaN(maxMessageSize)) {
+	    maxMessageSize = 65536;
+	  }
+	  var sctpPort = SDPUtils.matchPrefix(mediaSection, 'a=sctp-port:');
+	  if (sctpPort.length > 0) {
+	    return {
+	      port: parseInt(sctpPort[0].substr(12), 10),
+	      protocol: mline.fmt,
+	      maxMessageSize: maxMessageSize
+	    };
+	  }
+	  var sctpMapLines = SDPUtils.matchPrefix(mediaSection, 'a=sctpmap:');
+	  if (sctpMapLines.length > 0) {
+	    var parts = SDPUtils.matchPrefix(mediaSection, 'a=sctpmap:')[0]
+	      .substr(10)
+	      .split(' ');
+	    return {
+	      port: parseInt(parts[0], 10),
+	      protocol: parts[1],
+	      maxMessageSize: maxMessageSize
+	    };
+	  }
+	};
+
+	// SCTP
+	// outputs the draft-ietf-mmusic-sctp-sdp-26 version that all browsers
+	// support by now receiving in this format, unless we originally parsed
+	// as the draft-ietf-mmusic-sctp-sdp-05 format (indicated by the m-line
+	// protocol of DTLS/SCTP -- without UDP/ or TCP/)
+	SDPUtils.writeSctpDescription = function(media, sctp) {
+	  var output = [];
+	  if (media.protocol !== 'DTLS/SCTP') {
+	    output = [
+	      'm=' + media.kind + ' 9 ' + media.protocol + ' ' + sctp.protocol + '\r\n',
+	      'c=IN IP4 0.0.0.0\r\n',
+	      'a=sctp-port:' + sctp.port + '\r\n'
+	    ];
+	  } else {
+	    output = [
+	      'm=' + media.kind + ' 9 ' + media.protocol + ' ' + sctp.port + '\r\n',
+	      'c=IN IP4 0.0.0.0\r\n',
+	      'a=sctpmap:' + sctp.port + ' ' + sctp.protocol + ' 65535\r\n'
+	    ];
+	  }
+	  if (sctp.maxMessageSize !== undefined) {
+	    output.push('a=max-message-size:' + sctp.maxMessageSize + '\r\n');
+	  }
+	  return output.join('');
+	};
+
+	// Generate a session ID for SDP.
+	// https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-20#section-5.2.1
+	// recommends using a cryptographically random +ve 64-bit value
+	// but right now this should be acceptable and within the right range
+	SDPUtils.generateSessionId = function() {
+	  return Math.random().toString().substr(2, 21);
+	};
+
+	// Write boilder plate for start of SDP
+	// sessId argument is optional - if not supplied it will
+	// be generated randomly
+	// sessVersion is optional and defaults to 2
+	// sessUser is optional and defaults to 'thisisadapterortc'
+	SDPUtils.writeSessionBoilerplate = function(sessId, sessVer, sessUser) {
+	  var sessionId;
+	  var version = sessVer !== undefined ? sessVer : 2;
+	  if (sessId) {
+	    sessionId = sessId;
+	  } else {
+	    sessionId = SDPUtils.generateSessionId();
+	  }
+	  var user = sessUser || 'thisisadapterortc';
+	  // FIXME: sess-id should be an NTP timestamp.
+	  return 'v=0\r\n' +
+	      'o=' + user + ' ' + sessionId + ' ' + version +
+	        ' IN IP4 127.0.0.1\r\n' +
+	      's=-\r\n' +
+	      't=0 0\r\n';
+	};
+
+	SDPUtils.writeMediaSection = function(transceiver, caps, type, stream) {
+	  var sdp = SDPUtils.writeRtpDescription(transceiver.kind, caps);
+
+	  // Map ICE parameters (ufrag, pwd) to SDP.
+	  sdp += SDPUtils.writeIceParameters(
+	    transceiver.iceGatherer.getLocalParameters());
+
+	  // Map DTLS parameters to SDP.
+	  sdp += SDPUtils.writeDtlsParameters(
+	    transceiver.dtlsTransport.getLocalParameters(),
+	    type === 'offer' ? 'actpass' : 'active');
+
+	  sdp += 'a=mid:' + transceiver.mid + '\r\n';
+
+	  if (transceiver.direction) {
+	    sdp += 'a=' + transceiver.direction + '\r\n';
+	  } else if (transceiver.rtpSender && transceiver.rtpReceiver) {
+	    sdp += 'a=sendrecv\r\n';
+	  } else if (transceiver.rtpSender) {
+	    sdp += 'a=sendonly\r\n';
+	  } else if (transceiver.rtpReceiver) {
+	    sdp += 'a=recvonly\r\n';
+	  } else {
+	    sdp += 'a=inactive\r\n';
+	  }
+
+	  if (transceiver.rtpSender) {
+	    // spec.
+	    var msid = 'msid:' + stream.id + ' ' +
+	        transceiver.rtpSender.track.id + '\r\n';
+	    sdp += 'a=' + msid;
+
+	    // for Chrome.
+	    sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc +
+	        ' ' + msid;
+	    if (transceiver.sendEncodingParameters[0].rtx) {
+	      sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc +
+	          ' ' + msid;
+	      sdp += 'a=ssrc-group:FID ' +
+	          transceiver.sendEncodingParameters[0].ssrc + ' ' +
+	          transceiver.sendEncodingParameters[0].rtx.ssrc +
+	          '\r\n';
+	    }
+	  }
+	  // FIXME: this should be written by writeRtpDescription.
+	  sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc +
+	      ' cname:' + SDPUtils.localCName + '\r\n';
+	  if (transceiver.rtpSender && transceiver.sendEncodingParameters[0].rtx) {
+	    sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc +
+	        ' cname:' + SDPUtils.localCName + '\r\n';
+	  }
+	  return sdp;
+	};
+
+	// Gets the direction from the mediaSection or the sessionpart.
+	SDPUtils.getDirection = function(mediaSection, sessionpart) {
+	  // Look for sendrecv, sendonly, recvonly, inactive, default to sendrecv.
+	  var lines = SDPUtils.splitLines(mediaSection);
+	  for (var i = 0; i < lines.length; i++) {
+	    switch (lines[i]) {
+	      case 'a=sendrecv':
+	      case 'a=sendonly':
+	      case 'a=recvonly':
+	      case 'a=inactive':
+	        return lines[i].substr(2);
+	        // FIXME: What should happen here?
+	    }
+	  }
+	  if (sessionpart) {
+	    return SDPUtils.getDirection(sessionpart);
+	  }
+	  return 'sendrecv';
+	};
+
+	SDPUtils.getKind = function(mediaSection) {
+	  var lines = SDPUtils.splitLines(mediaSection);
+	  var mline = lines[0].split(' ');
+	  return mline[0].substr(2);
+	};
+
+	SDPUtils.isRejected = function(mediaSection) {
+	  return mediaSection.split(' ', 2)[1] === '0';
+	};
+
+	SDPUtils.parseMLine = function(mediaSection) {
+	  var lines = SDPUtils.splitLines(mediaSection);
+	  var parts = lines[0].substr(2).split(' ');
+	  return {
+	    kind: parts[0],
+	    port: parseInt(parts[1], 10),
+	    protocol: parts[2],
+	    fmt: parts.slice(3).join(' ')
+	  };
+	};
+
+	SDPUtils.parseOLine = function(mediaSection) {
+	  var line = SDPUtils.matchPrefix(mediaSection, 'o=')[0];
+	  var parts = line.substr(2).split(' ');
+	  return {
+	    username: parts[0],
+	    sessionId: parts[1],
+	    sessionVersion: parseInt(parts[2], 10),
+	    netType: parts[3],
+	    addressType: parts[4],
+	    address: parts[5]
+	  };
+	};
+
+	// a very naive interpretation of a valid SDP.
+	SDPUtils.isValidSDP = function(blob) {
+	  if (typeof blob !== 'string' || blob.length === 0) {
+	    return false;
+	  }
+	  var lines = SDPUtils.splitLines(blob);
+	  for (var i = 0; i < lines.length; i++) {
+	    if (lines[i].length < 2 || lines[i].charAt(1) !== '=') {
+	      return false;
+	    }
+	    // TODO: check the modifier a bit more.
+	  }
+	  return true;
+	};
+
+	// Expose public methods.
+	{
+	  module.exports = SDPUtils;
+	}
+	});
+
+	/*
+	 *  Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+
+
+	function fixStatsType(stat) {
+	  return {
+	    inboundrtp: 'inbound-rtp',
+	    outboundrtp: 'outbound-rtp',
+	    candidatepair: 'candidate-pair',
+	    localcandidate: 'local-candidate',
+	    remotecandidate: 'remote-candidate'
+	  }[stat.type] || stat.type;
+	}
+
+	function writeMediaSection(transceiver, caps, type, stream, dtlsRole) {
+	  var sdp$1 = sdp.writeRtpDescription(transceiver.kind, caps);
+
+	  // Map ICE parameters (ufrag, pwd) to SDP.
+	  sdp$1 += sdp.writeIceParameters(
+	      transceiver.iceGatherer.getLocalParameters());
+
+	  // Map DTLS parameters to SDP.
+	  sdp$1 += sdp.writeDtlsParameters(
+	      transceiver.dtlsTransport.getLocalParameters(),
+	      type === 'offer' ? 'actpass' : dtlsRole || 'active');
+
+	  sdp$1 += 'a=mid:' + transceiver.mid + '\r\n';
+
+	  if (transceiver.rtpSender && transceiver.rtpReceiver) {
+	    sdp$1 += 'a=sendrecv\r\n';
+	  } else if (transceiver.rtpSender) {
+	    sdp$1 += 'a=sendonly\r\n';
+	  } else if (transceiver.rtpReceiver) {
+	    sdp$1 += 'a=recvonly\r\n';
+	  } else {
+	    sdp$1 += 'a=inactive\r\n';
+	  }
+
+	  if (transceiver.rtpSender) {
+	    var trackId = transceiver.rtpSender._initialTrackId ||
+	        transceiver.rtpSender.track.id;
+	    transceiver.rtpSender._initialTrackId = trackId;
+	    // spec.
+	    var msid = 'msid:' + (stream ? stream.id : '-') + ' ' +
+	        trackId + '\r\n';
+	    sdp$1 += 'a=' + msid;
+	    // for Chrome. Legacy should no longer be required.
+	    sdp$1 += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc +
+	        ' ' + msid;
+
+	    // RTX
+	    if (transceiver.sendEncodingParameters[0].rtx) {
+	      sdp$1 += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc +
+	          ' ' + msid;
+	      sdp$1 += 'a=ssrc-group:FID ' +
+	          transceiver.sendEncodingParameters[0].ssrc + ' ' +
+	          transceiver.sendEncodingParameters[0].rtx.ssrc +
+	          '\r\n';
+	    }
+	  }
+	  // FIXME: this should be written by writeRtpDescription.
+	  sdp$1 += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc +
+	      ' cname:' + sdp.localCName + '\r\n';
+	  if (transceiver.rtpSender && transceiver.sendEncodingParameters[0].rtx) {
+	    sdp$1 += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc +
+	        ' cname:' + sdp.localCName + '\r\n';
+	  }
+	  return sdp$1;
+	}
+
+	// Edge does not like
+	// 1) stun: filtered after 14393 unless ?transport=udp is present
+	// 2) turn: that does not have all of turn:host:port?transport=udp
+	// 3) turn: with ipv6 addresses
+	// 4) turn: occurring muliple times
+	function filterIceServers(iceServers, edgeVersion) {
+	  var hasTurn = false;
+	  iceServers = JSON.parse(JSON.stringify(iceServers));
+	  return iceServers.filter(function(server) {
+	    if (server && (server.urls || server.url)) {
+	      var urls = server.urls || server.url;
+	      if (server.url && !server.urls) {
+	        console.warn('RTCIceServer.url is deprecated! Use urls instead.');
+	      }
+	      var isString = typeof urls === 'string';
+	      if (isString) {
+	        urls = [urls];
+	      }
+	      urls = urls.filter(function(url) {
+	        var validTurn = url.indexOf('turn:') === 0 &&
+	            url.indexOf('transport=udp') !== -1 &&
+	            url.indexOf('turn:[') === -1 &&
+	            !hasTurn;
+
+	        if (validTurn) {
+	          hasTurn = true;
+	          return true;
+	        }
+	        return url.indexOf('stun:') === 0 && edgeVersion >= 14393 &&
+	            url.indexOf('?transport=udp') === -1;
+	      });
+
+	      delete server.url;
+	      server.urls = isString ? urls[0] : urls;
+	      return !!urls.length;
+	    }
+	  });
+	}
+
+	// Determines the intersection of local and remote capabilities.
+	function getCommonCapabilities(localCapabilities, remoteCapabilities) {
+	  var commonCapabilities = {
+	    codecs: [],
+	    headerExtensions: [],
+	    fecMechanisms: []
+	  };
+
+	  var findCodecByPayloadType = function(pt, codecs) {
+	    pt = parseInt(pt, 10);
+	    for (var i = 0; i < codecs.length; i++) {
+	      if (codecs[i].payloadType === pt ||
+	          codecs[i].preferredPayloadType === pt) {
+	        return codecs[i];
+	      }
+	    }
+	  };
+
+	  var rtxCapabilityMatches = function(lRtx, rRtx, lCodecs, rCodecs) {
+	    var lCodec = findCodecByPayloadType(lRtx.parameters.apt, lCodecs);
+	    var rCodec = findCodecByPayloadType(rRtx.parameters.apt, rCodecs);
+	    return lCodec && rCodec &&
+	        lCodec.name.toLowerCase() === rCodec.name.toLowerCase();
+	  };
+
+	  localCapabilities.codecs.forEach(function(lCodec) {
+	    for (var i = 0; i < remoteCapabilities.codecs.length; i++) {
+	      var rCodec = remoteCapabilities.codecs[i];
+	      if (lCodec.name.toLowerCase() === rCodec.name.toLowerCase() &&
+	          lCodec.clockRate === rCodec.clockRate) {
+	        if (lCodec.name.toLowerCase() === 'rtx' &&
+	            lCodec.parameters && rCodec.parameters.apt) {
+	          // for RTX we need to find the local rtx that has a apt
+	          // which points to the same local codec as the remote one.
+	          if (!rtxCapabilityMatches(lCodec, rCodec,
+	              localCapabilities.codecs, remoteCapabilities.codecs)) {
+	            continue;
+	          }
+	        }
+	        rCodec = JSON.parse(JSON.stringify(rCodec)); // deepcopy
+	        // number of channels is the highest common number of channels
+	        rCodec.numChannels = Math.min(lCodec.numChannels,
+	            rCodec.numChannels);
+	        // push rCodec so we reply with offerer payload type
+	        commonCapabilities.codecs.push(rCodec);
+
+	        // determine common feedback mechanisms
+	        rCodec.rtcpFeedback = rCodec.rtcpFeedback.filter(function(fb) {
+	          for (var j = 0; j < lCodec.rtcpFeedback.length; j++) {
+	            if (lCodec.rtcpFeedback[j].type === fb.type &&
+	                lCodec.rtcpFeedback[j].parameter === fb.parameter) {
+	              return true;
+	            }
+	          }
+	          return false;
+	        });
+	        // FIXME: also need to determine .parameters
+	        //  see https://github.com/openpeer/ortc/issues/569
+	        break;
+	      }
+	    }
+	  });
+
+	  localCapabilities.headerExtensions.forEach(function(lHeaderExtension) {
+	    for (var i = 0; i < remoteCapabilities.headerExtensions.length;
+	         i++) {
+	      var rHeaderExtension = remoteCapabilities.headerExtensions[i];
+	      if (lHeaderExtension.uri === rHeaderExtension.uri) {
+	        commonCapabilities.headerExtensions.push(rHeaderExtension);
+	        break;
+	      }
+	    }
+	  });
+
+	  // FIXME: fecMechanisms
+	  return commonCapabilities;
+	}
+
+	// is action=setLocalDescription with type allowed in signalingState
+	function isActionAllowedInSignalingState(action, type, signalingState) {
+	  return {
+	    offer: {
+	      setLocalDescription: ['stable', 'have-local-offer'],
+	      setRemoteDescription: ['stable', 'have-remote-offer']
+	    },
+	    answer: {
+	      setLocalDescription: ['have-remote-offer', 'have-local-pranswer'],
+	      setRemoteDescription: ['have-local-offer', 'have-remote-pranswer']
+	    }
+	  }[type][action].indexOf(signalingState) !== -1;
+	}
+
+	function maybeAddCandidate(iceTransport, candidate) {
+	  // Edge's internal representation adds some fields therefore
+	  // not all fieldѕ are taken into account.
+	  var alreadyAdded = iceTransport.getRemoteCandidates()
+	      .find(function(remoteCandidate) {
+	        return candidate.foundation === remoteCandidate.foundation &&
+	            candidate.ip === remoteCandidate.ip &&
+	            candidate.port === remoteCandidate.port &&
+	            candidate.priority === remoteCandidate.priority &&
+	            candidate.protocol === remoteCandidate.protocol &&
+	            candidate.type === remoteCandidate.type;
+	      });
+	  if (!alreadyAdded) {
+	    iceTransport.addRemoteCandidate(candidate);
+	  }
+	  return !alreadyAdded;
+	}
+
+
+	function makeError(name, description) {
+	  var e = new Error(description);
+	  e.name = name;
+	  // legacy error codes from https://heycam.github.io/webidl/#idl-DOMException-error-names
+	  e.code = {
+	    NotSupportedError: 9,
+	    InvalidStateError: 11,
+	    InvalidAccessError: 15,
+	    TypeError: undefined,
+	    OperationError: undefined
+	  }[name];
+	  return e;
+	}
+
+	var rtcpeerconnection = function(window, edgeVersion) {
+	  // https://w3c.github.io/mediacapture-main/#mediastream
+	  // Helper function to add the track to the stream and
+	  // dispatch the event ourselves.
+	  function addTrackToStreamAndFireEvent(track, stream) {
+	    stream.addTrack(track);
+	    stream.dispatchEvent(new window.MediaStreamTrackEvent('addtrack',
+	        {track: track}));
+	  }
+
+	  function removeTrackFromStreamAndFireEvent(track, stream) {
+	    stream.removeTrack(track);
+	    stream.dispatchEvent(new window.MediaStreamTrackEvent('removetrack',
+	        {track: track}));
+	  }
+
+	  function fireAddTrack(pc, track, receiver, streams) {
+	    var trackEvent = new Event('track');
+	    trackEvent.track = track;
+	    trackEvent.receiver = receiver;
+	    trackEvent.transceiver = {receiver: receiver};
+	    trackEvent.streams = streams;
+	    window.setTimeout(function() {
+	      pc._dispatchEvent('track', trackEvent);
+	    });
+	  }
+
+	  var RTCPeerConnection = function(config) {
+	    var pc = this;
+
+	    var _eventTarget = document.createDocumentFragment();
+	    ['addEventListener', 'removeEventListener', 'dispatchEvent']
+	        .forEach(function(method) {
+	          pc[method] = _eventTarget[method].bind(_eventTarget);
+	        });
+
+	    this.canTrickleIceCandidates = null;
+
+	    this.needNegotiation = false;
+
+	    this.localStreams = [];
+	    this.remoteStreams = [];
+
+	    this._localDescription = null;
+	    this._remoteDescription = null;
+
+	    this.signalingState = 'stable';
+	    this.iceConnectionState = 'new';
+	    this.connectionState = 'new';
+	    this.iceGatheringState = 'new';
+
+	    config = JSON.parse(JSON.stringify(config || {}));
+
+	    this.usingBundle = config.bundlePolicy === 'max-bundle';
+	    if (config.rtcpMuxPolicy === 'negotiate') {
+	      throw(makeError('NotSupportedError',
+	          'rtcpMuxPolicy \'negotiate\' is not supported'));
+	    } else if (!config.rtcpMuxPolicy) {
+	      config.rtcpMuxPolicy = 'require';
+	    }
+
+	    switch (config.iceTransportPolicy) {
+	      case 'all':
+	      case 'relay':
+	        break;
+	      default:
+	        config.iceTransportPolicy = 'all';
+	        break;
+	    }
+
+	    switch (config.bundlePolicy) {
+	      case 'balanced':
+	      case 'max-compat':
+	      case 'max-bundle':
+	        break;
+	      default:
+	        config.bundlePolicy = 'balanced';
+	        break;
+	    }
+
+	    config.iceServers = filterIceServers(config.iceServers || [], edgeVersion);
+
+	    this._iceGatherers = [];
+	    if (config.iceCandidatePoolSize) {
+	      for (var i = config.iceCandidatePoolSize; i > 0; i--) {
+	        this._iceGatherers.push(new window.RTCIceGatherer({
+	          iceServers: config.iceServers,
+	          gatherPolicy: config.iceTransportPolicy
+	        }));
+	      }
+	    } else {
+	      config.iceCandidatePoolSize = 0;
+	    }
+
+	    this._config = config;
+
+	    // per-track iceGathers, iceTransports, dtlsTransports, rtpSenders, ...
+	    // everything that is needed to describe a SDP m-line.
+	    this.transceivers = [];
+
+	    this._sdpSessionId = sdp.generateSessionId();
+	    this._sdpSessionVersion = 0;
+
+	    this._dtlsRole = undefined; // role for a=setup to use in answers.
+
+	    this._isClosed = false;
+	  };
+
+	  Object.defineProperty(RTCPeerConnection.prototype, 'localDescription', {
+	    configurable: true,
+	    get: function() {
+	      return this._localDescription;
+	    }
+	  });
+	  Object.defineProperty(RTCPeerConnection.prototype, 'remoteDescription', {
+	    configurable: true,
+	    get: function() {
+	      return this._remoteDescription;
+	    }
+	  });
+
+	  // set up event handlers on prototype
+	  RTCPeerConnection.prototype.onicecandidate = null;
+	  RTCPeerConnection.prototype.onaddstream = null;
+	  RTCPeerConnection.prototype.ontrack = null;
+	  RTCPeerConnection.prototype.onremovestream = null;
+	  RTCPeerConnection.prototype.onsignalingstatechange = null;
+	  RTCPeerConnection.prototype.oniceconnectionstatechange = null;
+	  RTCPeerConnection.prototype.onconnectionstatechange = null;
+	  RTCPeerConnection.prototype.onicegatheringstatechange = null;
+	  RTCPeerConnection.prototype.onnegotiationneeded = null;
+	  RTCPeerConnection.prototype.ondatachannel = null;
+
+	  RTCPeerConnection.prototype._dispatchEvent = function(name, event) {
+	    if (this._isClosed) {
+	      return;
+	    }
+	    this.dispatchEvent(event);
+	    if (typeof this['on' + name] === 'function') {
+	      this['on' + name](event);
+	    }
+	  };
+
+	  RTCPeerConnection.prototype._emitGatheringStateChange = function() {
+	    var event = new Event('icegatheringstatechange');
+	    this._dispatchEvent('icegatheringstatechange', event);
+	  };
+
+	  RTCPeerConnection.prototype.getConfiguration = function() {
+	    return this._config;
+	  };
+
+	  RTCPeerConnection.prototype.getLocalStreams = function() {
+	    return this.localStreams;
+	  };
+
+	  RTCPeerConnection.prototype.getRemoteStreams = function() {
+	    return this.remoteStreams;
+	  };
+
+	  // internal helper to create a transceiver object.
+	  // (which is not yet the same as the WebRTC 1.0 transceiver)
+	  RTCPeerConnection.prototype._createTransceiver = function(kind, doNotAdd) {
+	    var hasBundleTransport = this.transceivers.length > 0;
+	    var transceiver = {
+	      track: null,
+	      iceGatherer: null,
+	      iceTransport: null,
+	      dtlsTransport: null,
+	      localCapabilities: null,
+	      remoteCapabilities: null,
+	      rtpSender: null,
+	      rtpReceiver: null,
+	      kind: kind,
+	      mid: null,
+	      sendEncodingParameters: null,
+	      recvEncodingParameters: null,
+	      stream: null,
+	      associatedRemoteMediaStreams: [],
+	      wantReceive: true
+	    };
+	    if (this.usingBundle && hasBundleTransport) {
+	      transceiver.iceTransport = this.transceivers[0].iceTransport;
+	      transceiver.dtlsTransport = this.transceivers[0].dtlsTransport;
+	    } else {
+	      var transports = this._createIceAndDtlsTransports();
+	      transceiver.iceTransport = transports.iceTransport;
+	      transceiver.dtlsTransport = transports.dtlsTransport;
+	    }
+	    if (!doNotAdd) {
+	      this.transceivers.push(transceiver);
+	    }
+	    return transceiver;
+	  };
+
+	  RTCPeerConnection.prototype.addTrack = function(track, stream) {
+	    if (this._isClosed) {
+	      throw makeError('InvalidStateError',
+	          'Attempted to call addTrack on a closed peerconnection.');
+	    }
+
+	    var alreadyExists = this.transceivers.find(function(s) {
+	      return s.track === track;
+	    });
+
+	    if (alreadyExists) {
+	      throw makeError('InvalidAccessError', 'Track already exists.');
+	    }
+
+	    var transceiver;
+	    for (var i = 0; i < this.transceivers.length; i++) {
+	      if (!this.transceivers[i].track &&
+	          this.transceivers[i].kind === track.kind) {
+	        transceiver = this.transceivers[i];
+	      }
+	    }
+	    if (!transceiver) {
+	      transceiver = this._createTransceiver(track.kind);
+	    }
+
+	    this._maybeFireNegotiationNeeded();
+
+	    if (this.localStreams.indexOf(stream) === -1) {
+	      this.localStreams.push(stream);
+	    }
+
+	    transceiver.track = track;
+	    transceiver.stream = stream;
+	    transceiver.rtpSender = new window.RTCRtpSender(track,
+	        transceiver.dtlsTransport);
+	    return transceiver.rtpSender;
+	  };
+
+	  RTCPeerConnection.prototype.addStream = function(stream) {
+	    var pc = this;
+	    if (edgeVersion >= 15025) {
+	      stream.getTracks().forEach(function(track) {
+	        pc.addTrack(track, stream);
+	      });
+	    } else {
+	      // Clone is necessary for local demos mostly, attaching directly
+	      // to two different senders does not work (build 10547).
+	      // Fixed in 15025 (or earlier)
+	      var clonedStream = stream.clone();
+	      stream.getTracks().forEach(function(track, idx) {
+	        var clonedTrack = clonedStream.getTracks()[idx];
+	        track.addEventListener('enabled', function(event) {
+	          clonedTrack.enabled = event.enabled;
+	        });
+	      });
+	      clonedStream.getTracks().forEach(function(track) {
+	        pc.addTrack(track, clonedStream);
+	      });
+	    }
+	  };
+
+	  RTCPeerConnection.prototype.removeTrack = function(sender) {
+	    if (this._isClosed) {
+	      throw makeError('InvalidStateError',
+	          'Attempted to call removeTrack on a closed peerconnection.');
+	    }
+
+	    if (!(sender instanceof window.RTCRtpSender)) {
+	      throw new TypeError('Argument 1 of RTCPeerConnection.removeTrack ' +
+	          'does not implement interface RTCRtpSender.');
+	    }
+
+	    var transceiver = this.transceivers.find(function(t) {
+	      return t.rtpSender === sender;
+	    });
+
+	    if (!transceiver) {
+	      throw makeError('InvalidAccessError',
+	          'Sender was not created by this connection.');
+	    }
+	    var stream = transceiver.stream;
+
+	    transceiver.rtpSender.stop();
+	    transceiver.rtpSender = null;
+	    transceiver.track = null;
+	    transceiver.stream = null;
+
+	    // remove the stream from the set of local streams
+	    var localStreams = this.transceivers.map(function(t) {
+	      return t.stream;
+	    });
+	    if (localStreams.indexOf(stream) === -1 &&
+	        this.localStreams.indexOf(stream) > -1) {
+	      this.localStreams.splice(this.localStreams.indexOf(stream), 1);
+	    }
+
+	    this._maybeFireNegotiationNeeded();
+	  };
+
+	  RTCPeerConnection.prototype.removeStream = function(stream) {
+	    var pc = this;
+	    stream.getTracks().forEach(function(track) {
+	      var sender = pc.getSenders().find(function(s) {
+	        return s.track === track;
+	      });
+	      if (sender) {
+	        pc.removeTrack(sender);
+	      }
+	    });
+	  };
+
+	  RTCPeerConnection.prototype.getSenders = function() {
+	    return this.transceivers.filter(function(transceiver) {
+	      return !!transceiver.rtpSender;
+	    })
+	    .map(function(transceiver) {
+	      return transceiver.rtpSender;
+	    });
+	  };
+
+	  RTCPeerConnection.prototype.getReceivers = function() {
+	    return this.transceivers.filter(function(transceiver) {
+	      return !!transceiver.rtpReceiver;
+	    })
+	    .map(function(transceiver) {
+	      return transceiver.rtpReceiver;
+	    });
+	  };
+
+
+	  RTCPeerConnection.prototype._createIceGatherer = function(sdpMLineIndex,
+	      usingBundle) {
+	    var pc = this;
+	    if (usingBundle && sdpMLineIndex > 0) {
+	      return this.transceivers[0].iceGatherer;
+	    } else if (this._iceGatherers.length) {
+	      return this._iceGatherers.shift();
+	    }
+	    var iceGatherer = new window.RTCIceGatherer({
+	      iceServers: this._config.iceServers,
+	      gatherPolicy: this._config.iceTransportPolicy
+	    });
+	    Object.defineProperty(iceGatherer, 'state',
+	        {value: 'new', writable: true}
+	    );
+
+	    this.transceivers[sdpMLineIndex].bufferedCandidateEvents = [];
+	    this.transceivers[sdpMLineIndex].bufferCandidates = function(event) {
+	      var end = !event.candidate || Object.keys(event.candidate).length === 0;
+	      // polyfill since RTCIceGatherer.state is not implemented in
+	      // Edge 10547 yet.
+	      iceGatherer.state = end ? 'completed' : 'gathering';
+	      if (pc.transceivers[sdpMLineIndex].bufferedCandidateEvents !== null) {
+	        pc.transceivers[sdpMLineIndex].bufferedCandidateEvents.push(event);
+	      }
+	    };
+	    iceGatherer.addEventListener('localcandidate',
+	      this.transceivers[sdpMLineIndex].bufferCandidates);
+	    return iceGatherer;
+	  };
+
+	  // start gathering from an RTCIceGatherer.
+	  RTCPeerConnection.prototype._gather = function(mid, sdpMLineIndex) {
+	    var pc = this;
+	    var iceGatherer = this.transceivers[sdpMLineIndex].iceGatherer;
+	    if (iceGatherer.onlocalcandidate) {
+	      return;
+	    }
+	    var bufferedCandidateEvents =
+	      this.transceivers[sdpMLineIndex].bufferedCandidateEvents;
+	    this.transceivers[sdpMLineIndex].bufferedCandidateEvents = null;
+	    iceGatherer.removeEventListener('localcandidate',
+	      this.transceivers[sdpMLineIndex].bufferCandidates);
+	    iceGatherer.onlocalcandidate = function(evt) {
+	      if (pc.usingBundle && sdpMLineIndex > 0) {
+	        // if we know that we use bundle we can drop candidates with
+	        // ѕdpMLineIndex > 0. If we don't do this then our state gets
+	        // confused since we dispose the extra ice gatherer.
+	        return;
+	      }
+	      var event = new Event('icecandidate');
+	      event.candidate = {sdpMid: mid, sdpMLineIndex: sdpMLineIndex};
+
+	      var cand = evt.candidate;
+	      // Edge emits an empty object for RTCIceCandidateComplete‥
+	      var end = !cand || Object.keys(cand).length === 0;
+	      if (end) {
+	        // polyfill since RTCIceGatherer.state is not implemented in
+	        // Edge 10547 yet.
+	        if (iceGatherer.state === 'new' || iceGatherer.state === 'gathering') {
+	          iceGatherer.state = 'completed';
+	        }
+	      } else {
+	        if (iceGatherer.state === 'new') {
+	          iceGatherer.state = 'gathering';
+	        }
+	        // RTCIceCandidate doesn't have a component, needs to be added
+	        cand.component = 1;
+	        // also the usernameFragment. TODO: update SDP to take both variants.
+	        cand.ufrag = iceGatherer.getLocalParameters().usernameFragment;
+
+	        var serializedCandidate = sdp.writeCandidate(cand);
+	        event.candidate = Object.assign(event.candidate,
+	            sdp.parseCandidate(serializedCandidate));
+
+	        event.candidate.candidate = serializedCandidate;
+	        event.candidate.toJSON = function() {
+	          return {
+	            candidate: event.candidate.candidate,
+	            sdpMid: event.candidate.sdpMid,
+	            sdpMLineIndex: event.candidate.sdpMLineIndex,
+	            usernameFragment: event.candidate.usernameFragment
+	          };
+	        };
+	      }
+
+	      // update local description.
+	      var sections = sdp.getMediaSections(pc._localDescription.sdp);
+	      if (!end) {
+	        sections[event.candidate.sdpMLineIndex] +=
+	            'a=' + event.candidate.candidate + '\r\n';
+	      } else {
+	        sections[event.candidate.sdpMLineIndex] +=
+	            'a=end-of-candidates\r\n';
+	      }
+	      pc._localDescription.sdp =
+	          sdp.getDescription(pc._localDescription.sdp) +
+	          sections.join('');
+	      var complete = pc.transceivers.every(function(transceiver) {
+	        return transceiver.iceGatherer &&
+	            transceiver.iceGatherer.state === 'completed';
+	      });
+
+	      if (pc.iceGatheringState !== 'gathering') {
+	        pc.iceGatheringState = 'gathering';
+	        pc._emitGatheringStateChange();
+	      }
+
+	      // Emit candidate. Also emit null candidate when all gatherers are
+	      // complete.
+	      if (!end) {
+	        pc._dispatchEvent('icecandidate', event);
+	      }
+	      if (complete) {
+	        pc._dispatchEvent('icecandidate', new Event('icecandidate'));
+	        pc.iceGatheringState = 'complete';
+	        pc._emitGatheringStateChange();
+	      }
+	    };
+
+	    // emit already gathered candidates.
+	    window.setTimeout(function() {
+	      bufferedCandidateEvents.forEach(function(e) {
+	        iceGatherer.onlocalcandidate(e);
+	      });
+	    }, 0);
+	  };
+
+	  // Create ICE transport and DTLS transport.
+	  RTCPeerConnection.prototype._createIceAndDtlsTransports = function() {
+	    var pc = this;
+	    var iceTransport = new window.RTCIceTransport(null);
+	    iceTransport.onicestatechange = function() {
+	      pc._updateIceConnectionState();
+	      pc._updateConnectionState();
+	    };
+
+	    var dtlsTransport = new window.RTCDtlsTransport(iceTransport);
+	    dtlsTransport.ondtlsstatechange = function() {
+	      pc._updateConnectionState();
+	    };
+	    dtlsTransport.onerror = function() {
+	      // onerror does not set state to failed by itself.
+	      Object.defineProperty(dtlsTransport, 'state',
+	          {value: 'failed', writable: true});
+	      pc._updateConnectionState();
+	    };
+
+	    return {
+	      iceTransport: iceTransport,
+	      dtlsTransport: dtlsTransport
+	    };
+	  };
+
+	  // Destroy ICE gatherer, ICE transport and DTLS transport.
+	  // Without triggering the callbacks.
+	  RTCPeerConnection.prototype._disposeIceAndDtlsTransports = function(
+	      sdpMLineIndex) {
+	    var iceGatherer = this.transceivers[sdpMLineIndex].iceGatherer;
+	    if (iceGatherer) {
+	      delete iceGatherer.onlocalcandidate;
+	      delete this.transceivers[sdpMLineIndex].iceGatherer;
+	    }
+	    var iceTransport = this.transceivers[sdpMLineIndex].iceTransport;
+	    if (iceTransport) {
+	      delete iceTransport.onicestatechange;
+	      delete this.transceivers[sdpMLineIndex].iceTransport;
+	    }
+	    var dtlsTransport = this.transceivers[sdpMLineIndex].dtlsTransport;
+	    if (dtlsTransport) {
+	      delete dtlsTransport.ondtlsstatechange;
+	      delete dtlsTransport.onerror;
+	      delete this.transceivers[sdpMLineIndex].dtlsTransport;
+	    }
+	  };
+
+	  // Start the RTP Sender and Receiver for a transceiver.
+	  RTCPeerConnection.prototype._transceive = function(transceiver,
+	      send, recv) {
+	    var params = getCommonCapabilities(transceiver.localCapabilities,
+	        transceiver.remoteCapabilities);
+	    if (send && transceiver.rtpSender) {
+	      params.encodings = transceiver.sendEncodingParameters;
+	      params.rtcp = {
+	        cname: sdp.localCName,
+	        compound: transceiver.rtcpParameters.compound
+	      };
+	      if (transceiver.recvEncodingParameters.length) {
+	        params.rtcp.ssrc = transceiver.recvEncodingParameters[0].ssrc;
+	      }
+	      transceiver.rtpSender.send(params);
+	    }
+	    if (recv && transceiver.rtpReceiver && params.codecs.length > 0) {
+	      // remove RTX field in Edge 14942
+	      if (transceiver.kind === 'video'
+	          && transceiver.recvEncodingParameters
+	          && edgeVersion < 15019) {
+	        transceiver.recvEncodingParameters.forEach(function(p) {
+	          delete p.rtx;
+	        });
+	      }
+	      if (transceiver.recvEncodingParameters.length) {
+	        params.encodings = transceiver.recvEncodingParameters;
+	      } else {
+	        params.encodings = [{}];
+	      }
+	      params.rtcp = {
+	        compound: transceiver.rtcpParameters.compound
+	      };
+	      if (transceiver.rtcpParameters.cname) {
+	        params.rtcp.cname = transceiver.rtcpParameters.cname;
+	      }
+	      if (transceiver.sendEncodingParameters.length) {
+	        params.rtcp.ssrc = transceiver.sendEncodingParameters[0].ssrc;
+	      }
+	      transceiver.rtpReceiver.receive(params);
+	    }
+	  };
+
+	  RTCPeerConnection.prototype.setLocalDescription = function(description) {
+	    var pc = this;
+
+	    // Note: pranswer is not supported.
+	    if (['offer', 'answer'].indexOf(description.type) === -1) {
+	      return Promise.reject(makeError('TypeError',
+	          'Unsupported type "' + description.type + '"'));
+	    }
+
+	    if (!isActionAllowedInSignalingState('setLocalDescription',
+	        description.type, pc.signalingState) || pc._isClosed) {
+	      return Promise.reject(makeError('InvalidStateError',
+	          'Can not set local ' + description.type +
+	          ' in state ' + pc.signalingState));
+	    }
+
+	    var sections;
+	    var sessionpart;
+	    if (description.type === 'offer') {
+	      // VERY limited support for SDP munging. Limited to:
+	      // * changing the order of codecs
+	      sections = sdp.splitSections(description.sdp);
+	      sessionpart = sections.shift();
+	      sections.forEach(function(mediaSection, sdpMLineIndex) {
+	        var caps = sdp.parseRtpParameters(mediaSection);
+	        pc.transceivers[sdpMLineIndex].localCapabilities = caps;
+	      });
+
+	      pc.transceivers.forEach(function(transceiver, sdpMLineIndex) {
+	        pc._gather(transceiver.mid, sdpMLineIndex);
+	      });
+	    } else if (description.type === 'answer') {
+	      sections = sdp.splitSections(pc._remoteDescription.sdp);
+	      sessionpart = sections.shift();
+	      var isIceLite = sdp.matchPrefix(sessionpart,
+	          'a=ice-lite').length > 0;
+	      sections.forEach(function(mediaSection, sdpMLineIndex) {
+	        var transceiver = pc.transceivers[sdpMLineIndex];
+	        var iceGatherer = transceiver.iceGatherer;
+	        var iceTransport = transceiver.iceTransport;
+	        var dtlsTransport = transceiver.dtlsTransport;
+	        var localCapabilities = transceiver.localCapabilities;
+	        var remoteCapabilities = transceiver.remoteCapabilities;
+
+	        // treat bundle-only as not-rejected.
+	        var rejected = sdp.isRejected(mediaSection) &&
+	            sdp.matchPrefix(mediaSection, 'a=bundle-only').length === 0;
+
+	        if (!rejected && !transceiver.rejected) {
+	          var remoteIceParameters = sdp.getIceParameters(
+	              mediaSection, sessionpart);
+	          var remoteDtlsParameters = sdp.getDtlsParameters(
+	              mediaSection, sessionpart);
+	          if (isIceLite) {
+	            remoteDtlsParameters.role = 'server';
+	          }
+
+	          if (!pc.usingBundle || sdpMLineIndex === 0) {
+	            pc._gather(transceiver.mid, sdpMLineIndex);
+	            if (iceTransport.state === 'new') {
+	              iceTransport.start(iceGatherer, remoteIceParameters,
+	                  isIceLite ? 'controlling' : 'controlled');
+	            }
+	            if (dtlsTransport.state === 'new') {
+	              dtlsTransport.start(remoteDtlsParameters);
+	            }
+	          }
+
+	          // Calculate intersection of capabilities.
+	          var params = getCommonCapabilities(localCapabilities,
+	              remoteCapabilities);
+
+	          // Start the RTCRtpSender. The RTCRtpReceiver for this
+	          // transceiver has already been started in setRemoteDescription.
+	          pc._transceive(transceiver,
+	              params.codecs.length > 0,
+	              false);
+	        }
+	      });
+	    }
+
+	    pc._localDescription = {
+	      type: description.type,
+	      sdp: description.sdp
+	    };
+	    if (description.type === 'offer') {
+	      pc._updateSignalingState('have-local-offer');
+	    } else {
+	      pc._updateSignalingState('stable');
+	    }
+
+	    return Promise.resolve();
+	  };
+
+	  RTCPeerConnection.prototype.setRemoteDescription = function(description) {
+	    var pc = this;
+
+	    // Note: pranswer is not supported.
+	    if (['offer', 'answer'].indexOf(description.type) === -1) {
+	      return Promise.reject(makeError('TypeError',
+	          'Unsupported type "' + description.type + '"'));
+	    }
+
+	    if (!isActionAllowedInSignalingState('setRemoteDescription',
+	        description.type, pc.signalingState) || pc._isClosed) {
+	      return Promise.reject(makeError('InvalidStateError',
+	          'Can not set remote ' + description.type +
+	          ' in state ' + pc.signalingState));
+	    }
+
+	    var streams = {};
+	    pc.remoteStreams.forEach(function(stream) {
+	      streams[stream.id] = stream;
+	    });
+	    var receiverList = [];
+	    var sections = sdp.splitSections(description.sdp);
+	    var sessionpart = sections.shift();
+	    var isIceLite = sdp.matchPrefix(sessionpart,
+	        'a=ice-lite').length > 0;
+	    var usingBundle = sdp.matchPrefix(sessionpart,
+	        'a=group:BUNDLE ').length > 0;
+	    pc.usingBundle = usingBundle;
+	    var iceOptions = sdp.matchPrefix(sessionpart,
+	        'a=ice-options:')[0];
+	    if (iceOptions) {
+	      pc.canTrickleIceCandidates = iceOptions.substr(14).split(' ')
+	          .indexOf('trickle') >= 0;
+	    } else {
+	      pc.canTrickleIceCandidates = false;
+	    }
+
+	    sections.forEach(function(mediaSection, sdpMLineIndex) {
+	      var lines = sdp.splitLines(mediaSection);
+	      var kind = sdp.getKind(mediaSection);
+	      // treat bundle-only as not-rejected.
+	      var rejected = sdp.isRejected(mediaSection) &&
+	          sdp.matchPrefix(mediaSection, 'a=bundle-only').length === 0;
+	      var protocol = lines[0].substr(2).split(' ')[2];
+
+	      var direction = sdp.getDirection(mediaSection, sessionpart);
+	      var remoteMsid = sdp.parseMsid(mediaSection);
+
+	      var mid = sdp.getMid(mediaSection) || sdp.generateIdentifier();
+
+	      // Reject datachannels which are not implemented yet.
+	      if (rejected || (kind === 'application' && (protocol === 'DTLS/SCTP' ||
+	          protocol === 'UDP/DTLS/SCTP'))) {
+	        // TODO: this is dangerous in the case where a non-rejected m-line
+	        //     becomes rejected.
+	        pc.transceivers[sdpMLineIndex] = {
+	          mid: mid,
+	          kind: kind,
+	          protocol: protocol,
+	          rejected: true
+	        };
+	        return;
+	      }
+
+	      if (!rejected && pc.transceivers[sdpMLineIndex] &&
+	          pc.transceivers[sdpMLineIndex].rejected) {
+	        // recycle a rejected transceiver.
+	        pc.transceivers[sdpMLineIndex] = pc._createTransceiver(kind, true);
+	      }
+
+	      var transceiver;
+	      var iceGatherer;
+	      var iceTransport;
+	      var dtlsTransport;
+	      var rtpReceiver;
+	      var sendEncodingParameters;
+	      var recvEncodingParameters;
+	      var localCapabilities;
+
+	      var track;
+	      // FIXME: ensure the mediaSection has rtcp-mux set.
+	      var remoteCapabilities = sdp.parseRtpParameters(mediaSection);
+	      var remoteIceParameters;
+	      var remoteDtlsParameters;
+	      if (!rejected) {
+	        remoteIceParameters = sdp.getIceParameters(mediaSection,
+	            sessionpart);
+	        remoteDtlsParameters = sdp.getDtlsParameters(mediaSection,
+	            sessionpart);
+	        remoteDtlsParameters.role = 'client';
+	      }
+	      recvEncodingParameters =
+	          sdp.parseRtpEncodingParameters(mediaSection);
+
+	      var rtcpParameters = sdp.parseRtcpParameters(mediaSection);
+
+	      var isComplete = sdp.matchPrefix(mediaSection,
+	          'a=end-of-candidates', sessionpart).length > 0;
+	      var cands = sdp.matchPrefix(mediaSection, 'a=candidate:')
+	          .map(function(cand) {
+	            return sdp.parseCandidate(cand);
+	          })
+	          .filter(function(cand) {
+	            return cand.component === 1;
+	          });
+
+	      // Check if we can use BUNDLE and dispose transports.
+	      if ((description.type === 'offer' || description.type === 'answer') &&
+	          !rejected && usingBundle && sdpMLineIndex > 0 &&
+	          pc.transceivers[sdpMLineIndex]) {
+	        pc._disposeIceAndDtlsTransports(sdpMLineIndex);
+	        pc.transceivers[sdpMLineIndex].iceGatherer =
+	            pc.transceivers[0].iceGatherer;
+	        pc.transceivers[sdpMLineIndex].iceTransport =
+	            pc.transceivers[0].iceTransport;
+	        pc.transceivers[sdpMLineIndex].dtlsTransport =
+	            pc.transceivers[0].dtlsTransport;
+	        if (pc.transceivers[sdpMLineIndex].rtpSender) {
+	          pc.transceivers[sdpMLineIndex].rtpSender.setTransport(
+	              pc.transceivers[0].dtlsTransport);
+	        }
+	        if (pc.transceivers[sdpMLineIndex].rtpReceiver) {
+	          pc.transceivers[sdpMLineIndex].rtpReceiver.setTransport(
+	              pc.transceivers[0].dtlsTransport);
+	        }
+	      }
+	      if (description.type === 'offer' && !rejected) {
+	        transceiver = pc.transceivers[sdpMLineIndex] ||
+	            pc._createTransceiver(kind);
+	        transceiver.mid = mid;
+
+	        if (!transceiver.iceGatherer) {
+	          transceiver.iceGatherer = pc._createIceGatherer(sdpMLineIndex,
+	              usingBundle);
+	        }
+
+	        if (cands.length && transceiver.iceTransport.state === 'new') {
+	          if (isComplete && (!usingBundle || sdpMLineIndex === 0)) {
+	            transceiver.iceTransport.setRemoteCandidates(cands);
+	          } else {
+	            cands.forEach(function(candidate) {
+	              maybeAddCandidate(transceiver.iceTransport, candidate);
+	            });
+	          }
+	        }
+
+	        localCapabilities = window.RTCRtpReceiver.getCapabilities(kind);
+
+	        // filter RTX until additional stuff needed for RTX is implemented
+	        // in adapter.js
+	        if (edgeVersion < 15019) {
+	          localCapabilities.codecs = localCapabilities.codecs.filter(
+	              function(codec) {
+	                return codec.name !== 'rtx';
+	              });
+	        }
+
+	        sendEncodingParameters = transceiver.sendEncodingParameters || [{
+	          ssrc: (2 * sdpMLineIndex + 2) * 1001
+	        }];
+
+	        // TODO: rewrite to use http://w3c.github.io/webrtc-pc/#set-associated-remote-streams
+	        var isNewTrack = false;
+	        if (direction === 'sendrecv' || direction === 'sendonly') {
+	          isNewTrack = !transceiver.rtpReceiver;
+	          rtpReceiver = transceiver.rtpReceiver ||
+	              new window.RTCRtpReceiver(transceiver.dtlsTransport, kind);
+
+	          if (isNewTrack) {
+	            var stream;
+	            track = rtpReceiver.track;
+	            // FIXME: does not work with Plan B.
+	            if (remoteMsid && remoteMsid.stream === '-') ; else if (remoteMsid) {
+	              if (!streams[remoteMsid.stream]) {
+	                streams[remoteMsid.stream] = new window.MediaStream();
+	                Object.defineProperty(streams[remoteMsid.stream], 'id', {
+	                  get: function() {
+	                    return remoteMsid.stream;
+	                  }
+	                });
+	              }
+	              Object.defineProperty(track, 'id', {
+	                get: function() {
+	                  return remoteMsid.track;
+	                }
+	              });
+	              stream = streams[remoteMsid.stream];
+	            } else {
+	              if (!streams.default) {
+	                streams.default = new window.MediaStream();
+	              }
+	              stream = streams.default;
+	            }
+	            if (stream) {
+	              addTrackToStreamAndFireEvent(track, stream);
+	              transceiver.associatedRemoteMediaStreams.push(stream);
+	            }
+	            receiverList.push([track, rtpReceiver, stream]);
+	          }
+	        } else if (transceiver.rtpReceiver && transceiver.rtpReceiver.track) {
+	          transceiver.associatedRemoteMediaStreams.forEach(function(s) {
+	            var nativeTrack = s.getTracks().find(function(t) {
+	              return t.id === transceiver.rtpReceiver.track.id;
+	            });
+	            if (nativeTrack) {
+	              removeTrackFromStreamAndFireEvent(nativeTrack, s);
+	            }
+	          });
+	          transceiver.associatedRemoteMediaStreams = [];
+	        }
+
+	        transceiver.localCapabilities = localCapabilities;
+	        transceiver.remoteCapabilities = remoteCapabilities;
+	        transceiver.rtpReceiver = rtpReceiver;
+	        transceiver.rtcpParameters = rtcpParameters;
+	        transceiver.sendEncodingParameters = sendEncodingParameters;
+	        transceiver.recvEncodingParameters = recvEncodingParameters;
+
+	        // Start the RTCRtpReceiver now. The RTPSender is started in
+	        // setLocalDescription.
+	        pc._transceive(pc.transceivers[sdpMLineIndex],
+	            false,
+	            isNewTrack);
+	      } else if (description.type === 'answer' && !rejected) {
+	        transceiver = pc.transceivers[sdpMLineIndex];
+	        iceGatherer = transceiver.iceGatherer;
+	        iceTransport = transceiver.iceTransport;
+	        dtlsTransport = transceiver.dtlsTransport;
+	        rtpReceiver = transceiver.rtpReceiver;
+	        sendEncodingParameters = transceiver.sendEncodingParameters;
+	        localCapabilities = transceiver.localCapabilities;
+
+	        pc.transceivers[sdpMLineIndex].recvEncodingParameters =
+	            recvEncodingParameters;
+	        pc.transceivers[sdpMLineIndex].remoteCapabilities =
+	            remoteCapabilities;
+	        pc.transceivers[sdpMLineIndex].rtcpParameters = rtcpParameters;
+
+	        if (cands.length && iceTransport.state === 'new') {
+	          if ((isIceLite || isComplete) &&
+	              (!usingBundle || sdpMLineIndex === 0)) {
+	            iceTransport.setRemoteCandidates(cands);
+	          } else {
+	            cands.forEach(function(candidate) {
+	              maybeAddCandidate(transceiver.iceTransport, candidate);
+	            });
+	          }
+	        }
+
+	        if (!usingBundle || sdpMLineIndex === 0) {
+	          if (iceTransport.state === 'new') {
+	            iceTransport.start(iceGatherer, remoteIceParameters,
+	                'controlling');
+	          }
+	          if (dtlsTransport.state === 'new') {
+	            dtlsTransport.start(remoteDtlsParameters);
+	          }
+	        }
+
+	        // If the offer contained RTX but the answer did not,
+	        // remove RTX from sendEncodingParameters.
+	        var commonCapabilities = getCommonCapabilities(
+	          transceiver.localCapabilities,
+	          transceiver.remoteCapabilities);
+
+	        var hasRtx = commonCapabilities.codecs.filter(function(c) {
+	          return c.name.toLowerCase() === 'rtx';
+	        }).length;
+	        if (!hasRtx && transceiver.sendEncodingParameters[0].rtx) {
+	          delete transceiver.sendEncodingParameters[0].rtx;
+	        }
+
+	        pc._transceive(transceiver,
+	            direction === 'sendrecv' || direction === 'recvonly',
+	            direction === 'sendrecv' || direction === 'sendonly');
+
+	        // TODO: rewrite to use http://w3c.github.io/webrtc-pc/#set-associated-remote-streams
+	        if (rtpReceiver &&
+	            (direction === 'sendrecv' || direction === 'sendonly')) {
+	          track = rtpReceiver.track;
+	          if (remoteMsid) {
+	            if (!streams[remoteMsid.stream]) {
+	              streams[remoteMsid.stream] = new window.MediaStream();
+	            }
+	            addTrackToStreamAndFireEvent(track, streams[remoteMsid.stream]);
+	            receiverList.push([track, rtpReceiver, streams[remoteMsid.stream]]);
+	          } else {
+	            if (!streams.default) {
+	              streams.default = new window.MediaStream();
+	            }
+	            addTrackToStreamAndFireEvent(track, streams.default);
+	            receiverList.push([track, rtpReceiver, streams.default]);
+	          }
+	        } else {
+	          // FIXME: actually the receiver should be created later.
+	          delete transceiver.rtpReceiver;
+	        }
+	      }
+	    });
+
+	    if (pc._dtlsRole === undefined) {
+	      pc._dtlsRole = description.type === 'offer' ? 'active' : 'passive';
+	    }
+
+	    pc._remoteDescription = {
+	      type: description.type,
+	      sdp: description.sdp
+	    };
+	    if (description.type === 'offer') {
+	      pc._updateSignalingState('have-remote-offer');
+	    } else {
+	      pc._updateSignalingState('stable');
+	    }
+	    Object.keys(streams).forEach(function(sid) {
+	      var stream = streams[sid];
+	      if (stream.getTracks().length) {
+	        if (pc.remoteStreams.indexOf(stream) === -1) {
+	          pc.remoteStreams.push(stream);
+	          var event = new Event('addstream');
+	          event.stream = stream;
+	          window.setTimeout(function() {
+	            pc._dispatchEvent('addstream', event);
+	          });
+	        }
+
+	        receiverList.forEach(function(item) {
+	          var track = item[0];
+	          var receiver = item[1];
+	          if (stream.id !== item[2].id) {
+	            return;
+	          }
+	          fireAddTrack(pc, track, receiver, [stream]);
+	        });
+	      }
+	    });
+	    receiverList.forEach(function(item) {
+	      if (item[2]) {
+	        return;
+	      }
+	      fireAddTrack(pc, item[0], item[1], []);
+	    });
+
+	    // check whether addIceCandidate({}) was called within four seconds after
+	    // setRemoteDescription.
+	    window.setTimeout(function() {
+	      if (!(pc && pc.transceivers)) {
+	        return;
+	      }
+	      pc.transceivers.forEach(function(transceiver) {
+	        if (transceiver.iceTransport &&
+	            transceiver.iceTransport.state === 'new' &&
+	            transceiver.iceTransport.getRemoteCandidates().length > 0) {
+	          console.warn('Timeout for addRemoteCandidate. Consider sending ' +
+	              'an end-of-candidates notification');
+	          transceiver.iceTransport.addRemoteCandidate({});
+	        }
+	      });
+	    }, 4000);
+
+	    return Promise.resolve();
+	  };
+
+	  RTCPeerConnection.prototype.close = function() {
+	    this.transceivers.forEach(function(transceiver) {
+	      /* not yet
+	      if (transceiver.iceGatherer) {
+	        transceiver.iceGatherer.close();
+	      }
+	      */
+	      if (transceiver.iceTransport) {
+	        transceiver.iceTransport.stop();
+	      }
+	      if (transceiver.dtlsTransport) {
+	        transceiver.dtlsTransport.stop();
+	      }
+	      if (transceiver.rtpSender) {
+	        transceiver.rtpSender.stop();
+	      }
+	      if (transceiver.rtpReceiver) {
+	        transceiver.rtpReceiver.stop();
+	      }
+	    });
+	    // FIXME: clean up tracks, local streams, remote streams, etc
+	    this._isClosed = true;
+	    this._updateSignalingState('closed');
+	  };
+
+	  // Update the signaling state.
+	  RTCPeerConnection.prototype._updateSignalingState = function(newState) {
+	    this.signalingState = newState;
+	    var event = new Event('signalingstatechange');
+	    this._dispatchEvent('signalingstatechange', event);
+	  };
+
+	  // Determine whether to fire the negotiationneeded event.
+	  RTCPeerConnection.prototype._maybeFireNegotiationNeeded = function() {
+	    var pc = this;
+	    if (this.signalingState !== 'stable' || this.needNegotiation === true) {
+	      return;
+	    }
+	    this.needNegotiation = true;
+	    window.setTimeout(function() {
+	      if (pc.needNegotiation) {
+	        pc.needNegotiation = false;
+	        var event = new Event('negotiationneeded');
+	        pc._dispatchEvent('negotiationneeded', event);
+	      }
+	    }, 0);
+	  };
+
+	  // Update the ice connection state.
+	  RTCPeerConnection.prototype._updateIceConnectionState = function() {
+	    var newState;
+	    var states = {
+	      'new': 0,
+	      closed: 0,
+	      checking: 0,
+	      connected: 0,
+	      completed: 0,
+	      disconnected: 0,
+	      failed: 0
+	    };
+	    this.transceivers.forEach(function(transceiver) {
+	      if (transceiver.iceTransport && !transceiver.rejected) {
+	        states[transceiver.iceTransport.state]++;
+	      }
+	    });
+
+	    newState = 'new';
+	    if (states.failed > 0) {
+	      newState = 'failed';
+	    } else if (states.checking > 0) {
+	      newState = 'checking';
+	    } else if (states.disconnected > 0) {
+	      newState = 'disconnected';
+	    } else if (states.new > 0) {
+	      newState = 'new';
+	    } else if (states.connected > 0) {
+	      newState = 'connected';
+	    } else if (states.completed > 0) {
+	      newState = 'completed';
+	    }
+
+	    if (newState !== this.iceConnectionState) {
+	      this.iceConnectionState = newState;
+	      var event = new Event('iceconnectionstatechange');
+	      this._dispatchEvent('iceconnectionstatechange', event);
+	    }
+	  };
+
+	  // Update the connection state.
+	  RTCPeerConnection.prototype._updateConnectionState = function() {
+	    var newState;
+	    var states = {
+	      'new': 0,
+	      closed: 0,
+	      connecting: 0,
+	      connected: 0,
+	      completed: 0,
+	      disconnected: 0,
+	      failed: 0
+	    };
+	    this.transceivers.forEach(function(transceiver) {
+	      if (transceiver.iceTransport && transceiver.dtlsTransport &&
+	          !transceiver.rejected) {
+	        states[transceiver.iceTransport.state]++;
+	        states[transceiver.dtlsTransport.state]++;
+	      }
+	    });
+	    // ICETransport.completed and connected are the same for this purpose.
+	    states.connected += states.completed;
+
+	    newState = 'new';
+	    if (states.failed > 0) {
+	      newState = 'failed';
+	    } else if (states.connecting > 0) {
+	      newState = 'connecting';
+	    } else if (states.disconnected > 0) {
+	      newState = 'disconnected';
+	    } else if (states.new > 0) {
+	      newState = 'new';
+	    } else if (states.connected > 0) {
+	      newState = 'connected';
+	    }
+
+	    if (newState !== this.connectionState) {
+	      this.connectionState = newState;
+	      var event = new Event('connectionstatechange');
+	      this._dispatchEvent('connectionstatechange', event);
+	    }
+	  };
+
+	  RTCPeerConnection.prototype.createOffer = function() {
+	    var pc = this;
+
+	    if (pc._isClosed) {
+	      return Promise.reject(makeError('InvalidStateError',
+	          'Can not call createOffer after close'));
+	    }
+
+	    var numAudioTracks = pc.transceivers.filter(function(t) {
+	      return t.kind === 'audio';
+	    }).length;
+	    var numVideoTracks = pc.transceivers.filter(function(t) {
+	      return t.kind === 'video';
+	    }).length;
+
+	    // Determine number of audio and video tracks we need to send/recv.
+	    var offerOptions = arguments[0];
+	    if (offerOptions) {
+	      // Reject Chrome legacy constraints.
+	      if (offerOptions.mandatory || offerOptions.optional) {
+	        throw new TypeError(
+	            'Legacy mandatory/optional constraints not supported.');
+	      }
+	      if (offerOptions.offerToReceiveAudio !== undefined) {
+	        if (offerOptions.offerToReceiveAudio === true) {
+	          numAudioTracks = 1;
+	        } else if (offerOptions.offerToReceiveAudio === false) {
+	          numAudioTracks = 0;
+	        } else {
+	          numAudioTracks = offerOptions.offerToReceiveAudio;
+	        }
+	      }
+	      if (offerOptions.offerToReceiveVideo !== undefined) {
+	        if (offerOptions.offerToReceiveVideo === true) {
+	          numVideoTracks = 1;
+	        } else if (offerOptions.offerToReceiveVideo === false) {
+	          numVideoTracks = 0;
+	        } else {
+	          numVideoTracks = offerOptions.offerToReceiveVideo;
+	        }
+	      }
+	    }
+
+	    pc.transceivers.forEach(function(transceiver) {
+	      if (transceiver.kind === 'audio') {
+	        numAudioTracks--;
+	        if (numAudioTracks < 0) {
+	          transceiver.wantReceive = false;
+	        }
+	      } else if (transceiver.kind === 'video') {
+	        numVideoTracks--;
+	        if (numVideoTracks < 0) {
+	          transceiver.wantReceive = false;
+	        }
+	      }
+	    });
+
+	    // Create M-lines for recvonly streams.
+	    while (numAudioTracks > 0 || numVideoTracks > 0) {
+	      if (numAudioTracks > 0) {
+	        pc._createTransceiver('audio');
+	        numAudioTracks--;
+	      }
+	      if (numVideoTracks > 0) {
+	        pc._createTransceiver('video');
+	        numVideoTracks--;
+	      }
+	    }
+
+	    var sdp$1 = sdp.writeSessionBoilerplate(pc._sdpSessionId,
+	        pc._sdpSessionVersion++);
+	    pc.transceivers.forEach(function(transceiver, sdpMLineIndex) {
+	      // For each track, create an ice gatherer, ice transport,
+	      // dtls transport, potentially rtpsender and rtpreceiver.
+	      var track = transceiver.track;
+	      var kind = transceiver.kind;
+	      var mid = transceiver.mid || sdp.generateIdentifier();
+	      transceiver.mid = mid;
+
+	      if (!transceiver.iceGatherer) {
+	        transceiver.iceGatherer = pc._createIceGatherer(sdpMLineIndex,
+	            pc.usingBundle);
+	      }
+
+	      var localCapabilities = window.RTCRtpSender.getCapabilities(kind);
+	      // filter RTX until additional stuff needed for RTX is implemented
+	      // in adapter.js
+	      if (edgeVersion < 15019) {
+	        localCapabilities.codecs = localCapabilities.codecs.filter(
+	            function(codec) {
+	              return codec.name !== 'rtx';
+	            });
+	      }
+	      localCapabilities.codecs.forEach(function(codec) {
+	        // work around https://bugs.chromium.org/p/webrtc/issues/detail?id=6552
+	        // by adding level-asymmetry-allowed=1
+	        if (codec.name === 'H264' &&
+	            codec.parameters['level-asymmetry-allowed'] === undefined) {
+	          codec.parameters['level-asymmetry-allowed'] = '1';
+	        }
+
+	        // for subsequent offers, we might have to re-use the payload
+	        // type of the last offer.
+	        if (transceiver.remoteCapabilities &&
+	            transceiver.remoteCapabilities.codecs) {
+	          transceiver.remoteCapabilities.codecs.forEach(function(remoteCodec) {
+	            if (codec.name.toLowerCase() === remoteCodec.name.toLowerCase() &&
+	                codec.clockRate === remoteCodec.clockRate) {
+	              codec.preferredPayloadType = remoteCodec.payloadType;
+	            }
+	          });
+	        }
+	      });
+	      localCapabilities.headerExtensions.forEach(function(hdrExt) {
+	        var remoteExtensions = transceiver.remoteCapabilities &&
+	            transceiver.remoteCapabilities.headerExtensions || [];
+	        remoteExtensions.forEach(function(rHdrExt) {
+	          if (hdrExt.uri === rHdrExt.uri) {
+	            hdrExt.id = rHdrExt.id;
+	          }
+	        });
+	      });
+
+	      // generate an ssrc now, to be used later in rtpSender.send
+	      var sendEncodingParameters = transceiver.sendEncodingParameters || [{
+	        ssrc: (2 * sdpMLineIndex + 1) * 1001
+	      }];
+	      if (track) {
+	        // add RTX
+	        if (edgeVersion >= 15019 && kind === 'video' &&
+	            !sendEncodingParameters[0].rtx) {
+	          sendEncodingParameters[0].rtx = {
+	            ssrc: sendEncodingParameters[0].ssrc + 1
+	          };
+	        }
+	      }
+
+	      if (transceiver.wantReceive) {
+	        transceiver.rtpReceiver = new window.RTCRtpReceiver(
+	            transceiver.dtlsTransport, kind);
+	      }
+
+	      transceiver.localCapabilities = localCapabilities;
+	      transceiver.sendEncodingParameters = sendEncodingParameters;
+	    });
+
+	    // always offer BUNDLE and dispose on return if not supported.
+	    if (pc._config.bundlePolicy !== 'max-compat') {
+	      sdp$1 += 'a=group:BUNDLE ' + pc.transceivers.map(function(t) {
+	        return t.mid;
+	      }).join(' ') + '\r\n';
+	    }
+	    sdp$1 += 'a=ice-options:trickle\r\n';
+
+	    pc.transceivers.forEach(function(transceiver, sdpMLineIndex) {
+	      sdp$1 += writeMediaSection(transceiver, transceiver.localCapabilities,
+	          'offer', transceiver.stream, pc._dtlsRole);
+	      sdp$1 += 'a=rtcp-rsize\r\n';
+
+	      if (transceiver.iceGatherer && pc.iceGatheringState !== 'new' &&
+	          (sdpMLineIndex === 0 || !pc.usingBundle)) {
+	        transceiver.iceGatherer.getLocalCandidates().forEach(function(cand) {
+	          cand.component = 1;
+	          sdp$1 += 'a=' + sdp.writeCandidate(cand) + '\r\n';
+	        });
+
+	        if (transceiver.iceGatherer.state === 'completed') {
+	          sdp$1 += 'a=end-of-candidates\r\n';
+	        }
+	      }
+	    });
+
+	    var desc = new window.RTCSessionDescription({
+	      type: 'offer',
+	      sdp: sdp$1
+	    });
+	    return Promise.resolve(desc);
+	  };
+
+	  RTCPeerConnection.prototype.createAnswer = function() {
+	    var pc = this;
+
+	    if (pc._isClosed) {
+	      return Promise.reject(makeError('InvalidStateError',
+	          'Can not call createAnswer after close'));
+	    }
+
+	    if (!(pc.signalingState === 'have-remote-offer' ||
+	        pc.signalingState === 'have-local-pranswer')) {
+	      return Promise.reject(makeError('InvalidStateError',
+	          'Can not call createAnswer in signalingState ' + pc.signalingState));
+	    }
+
+	    var sdp$1 = sdp.writeSessionBoilerplate(pc._sdpSessionId,
+	        pc._sdpSessionVersion++);
+	    if (pc.usingBundle) {
+	      sdp$1 += 'a=group:BUNDLE ' + pc.transceivers.map(function(t) {
+	        return t.mid;
+	      }).join(' ') + '\r\n';
+	    }
+	    sdp$1 += 'a=ice-options:trickle\r\n';
+
+	    var mediaSectionsInOffer = sdp.getMediaSections(
+	        pc._remoteDescription.sdp).length;
+	    pc.transceivers.forEach(function(transceiver, sdpMLineIndex) {
+	      if (sdpMLineIndex + 1 > mediaSectionsInOffer) {
+	        return;
+	      }
+	      if (transceiver.rejected) {
+	        if (transceiver.kind === 'application') {
+	          if (transceiver.protocol === 'DTLS/SCTP') { // legacy fmt
+	            sdp$1 += 'm=application 0 DTLS/SCTP 5000\r\n';
+	          } else {
+	            sdp$1 += 'm=application 0 ' + transceiver.protocol +
+	                ' webrtc-datachannel\r\n';
+	          }
+	        } else if (transceiver.kind === 'audio') {
+	          sdp$1 += 'm=audio 0 UDP/TLS/RTP/SAVPF 0\r\n' +
+	              'a=rtpmap:0 PCMU/8000\r\n';
+	        } else if (transceiver.kind === 'video') {
+	          sdp$1 += 'm=video 0 UDP/TLS/RTP/SAVPF 120\r\n' +
+	              'a=rtpmap:120 VP8/90000\r\n';
+	        }
+	        sdp$1 += 'c=IN IP4 0.0.0.0\r\n' +
+	            'a=inactive\r\n' +
+	            'a=mid:' + transceiver.mid + '\r\n';
+	        return;
+	      }
+
+	      // FIXME: look at direction.
+	      if (transceiver.stream) {
+	        var localTrack;
+	        if (transceiver.kind === 'audio') {
+	          localTrack = transceiver.stream.getAudioTracks()[0];
+	        } else if (transceiver.kind === 'video') {
+	          localTrack = transceiver.stream.getVideoTracks()[0];
+	        }
+	        if (localTrack) {
+	          // add RTX
+	          if (edgeVersion >= 15019 && transceiver.kind === 'video' &&
+	              !transceiver.sendEncodingParameters[0].rtx) {
+	            transceiver.sendEncodingParameters[0].rtx = {
+	              ssrc: transceiver.sendEncodingParameters[0].ssrc + 1
+	            };
+	          }
+	        }
+	      }
+
+	      // Calculate intersection of capabilities.
+	      var commonCapabilities = getCommonCapabilities(
+	          transceiver.localCapabilities,
+	          transceiver.remoteCapabilities);
+
+	      var hasRtx = commonCapabilities.codecs.filter(function(c) {
+	        return c.name.toLowerCase() === 'rtx';
+	      }).length;
+	      if (!hasRtx && transceiver.sendEncodingParameters[0].rtx) {
+	        delete transceiver.sendEncodingParameters[0].rtx;
+	      }
+
+	      sdp$1 += writeMediaSection(transceiver, commonCapabilities,
+	          'answer', transceiver.stream, pc._dtlsRole);
+	      if (transceiver.rtcpParameters &&
+	          transceiver.rtcpParameters.reducedSize) {
+	        sdp$1 += 'a=rtcp-rsize\r\n';
+	      }
+	    });
+
+	    var desc = new window.RTCSessionDescription({
+	      type: 'answer',
+	      sdp: sdp$1
+	    });
+	    return Promise.resolve(desc);
+	  };
+
+	  RTCPeerConnection.prototype.addIceCandidate = function(candidate) {
+	    var pc = this;
+	    var sections;
+	    if (candidate && !(candidate.sdpMLineIndex !== undefined ||
+	        candidate.sdpMid)) {
+	      return Promise.reject(new TypeError('sdpMLineIndex or sdpMid required'));
+	    }
+
+	    // TODO: needs to go into ops queue.
+	    return new Promise(function(resolve, reject) {
+	      if (!pc._remoteDescription) {
+	        return reject(makeError('InvalidStateError',
+	            'Can not add ICE candidate without a remote description'));
+	      } else if (!candidate || candidate.candidate === '') {
+	        for (var j = 0; j < pc.transceivers.length; j++) {
+	          if (pc.transceivers[j].rejected) {
+	            continue;
+	          }
+	          pc.transceivers[j].iceTransport.addRemoteCandidate({});
+	          sections = sdp.getMediaSections(pc._remoteDescription.sdp);
+	          sections[j] += 'a=end-of-candidates\r\n';
+	          pc._remoteDescription.sdp =
+	              sdp.getDescription(pc._remoteDescription.sdp) +
+	              sections.join('');
+	          if (pc.usingBundle) {
+	            break;
+	          }
+	        }
+	      } else {
+	        var sdpMLineIndex = candidate.sdpMLineIndex;
+	        if (candidate.sdpMid) {
+	          for (var i = 0; i < pc.transceivers.length; i++) {
+	            if (pc.transceivers[i].mid === candidate.sdpMid) {
+	              sdpMLineIndex = i;
+	              break;
+	            }
+	          }
+	        }
+	        var transceiver = pc.transceivers[sdpMLineIndex];
+	        if (transceiver) {
+	          if (transceiver.rejected) {
+	            return resolve();
+	          }
+	          var cand = Object.keys(candidate.candidate).length > 0 ?
+	              sdp.parseCandidate(candidate.candidate) : {};
+	          // Ignore Chrome's invalid candidates since Edge does not like them.
+	          if (cand.protocol === 'tcp' && (cand.port === 0 || cand.port === 9)) {
+	            return resolve();
+	          }
+	          // Ignore RTCP candidates, we assume RTCP-MUX.
+	          if (cand.component && cand.component !== 1) {
+	            return resolve();
+	          }
+	          // when using bundle, avoid adding candidates to the wrong
+	          // ice transport. And avoid adding candidates added in the SDP.
+	          if (sdpMLineIndex === 0 || (sdpMLineIndex > 0 &&
+	              transceiver.iceTransport !== pc.transceivers[0].iceTransport)) {
+	            if (!maybeAddCandidate(transceiver.iceTransport, cand)) {
+	              return reject(makeError('OperationError',
+	                  'Can not add ICE candidate'));
+	            }
+	          }
+
+	          // update the remoteDescription.
+	          var candidateString = candidate.candidate.trim();
+	          if (candidateString.indexOf('a=') === 0) {
+	            candidateString = candidateString.substr(2);
+	          }
+	          sections = sdp.getMediaSections(pc._remoteDescription.sdp);
+	          sections[sdpMLineIndex] += 'a=' +
+	              (cand.type ? candidateString : 'end-of-candidates')
+	              + '\r\n';
+	          pc._remoteDescription.sdp =
+	              sdp.getDescription(pc._remoteDescription.sdp) +
+	              sections.join('');
+	        } else {
+	          return reject(makeError('OperationError',
+	              'Can not add ICE candidate'));
+	        }
+	      }
+	      resolve();
+	    });
+	  };
+
+	  RTCPeerConnection.prototype.getStats = function(selector) {
+	    if (selector && selector instanceof window.MediaStreamTrack) {
+	      var senderOrReceiver = null;
+	      this.transceivers.forEach(function(transceiver) {
+	        if (transceiver.rtpSender &&
+	            transceiver.rtpSender.track === selector) {
+	          senderOrReceiver = transceiver.rtpSender;
+	        } else if (transceiver.rtpReceiver &&
+	            transceiver.rtpReceiver.track === selector) {
+	          senderOrReceiver = transceiver.rtpReceiver;
+	        }
+	      });
+	      if (!senderOrReceiver) {
+	        throw makeError('InvalidAccessError', 'Invalid selector.');
+	      }
+	      return senderOrReceiver.getStats();
+	    }
+
+	    var promises = [];
+	    this.transceivers.forEach(function(transceiver) {
+	      ['rtpSender', 'rtpReceiver', 'iceGatherer', 'iceTransport',
+	          'dtlsTransport'].forEach(function(method) {
+	            if (transceiver[method]) {
+	              promises.push(transceiver[method].getStats());
+	            }
+	          });
+	    });
+	    return Promise.all(promises).then(function(allStats) {
+	      var results = new Map();
+	      allStats.forEach(function(stats) {
+	        stats.forEach(function(stat) {
+	          results.set(stat.id, stat);
+	        });
+	      });
+	      return results;
+	    });
+	  };
+
+	  // fix low-level stat names and return Map instead of object.
+	  var ortcObjects = ['RTCRtpSender', 'RTCRtpReceiver', 'RTCIceGatherer',
+	    'RTCIceTransport', 'RTCDtlsTransport'];
+	  ortcObjects.forEach(function(ortcObjectName) {
+	    var obj = window[ortcObjectName];
+	    if (obj && obj.prototype && obj.prototype.getStats) {
+	      var nativeGetstats = obj.prototype.getStats;
+	      obj.prototype.getStats = function() {
+	        return nativeGetstats.apply(this)
+	        .then(function(nativeStats) {
+	          var mapStats = new Map();
+	          Object.keys(nativeStats).forEach(function(id) {
+	            nativeStats[id].type = fixStatsType(nativeStats[id]);
+	            mapStats.set(id, nativeStats[id]);
+	          });
+	          return mapStats;
+	        });
+	      };
+	    }
+	  });
+
+	  // legacy callback shims. Should be moved to adapter.js some days.
+	  var methods = ['createOffer', 'createAnswer'];
+	  methods.forEach(function(method) {
+	    var nativeMethod = RTCPeerConnection.prototype[method];
+	    RTCPeerConnection.prototype[method] = function() {
+	      var args = arguments;
+	      if (typeof args[0] === 'function' ||
+	          typeof args[1] === 'function') { // legacy
+	        return nativeMethod.apply(this, [arguments[2]])
+	        .then(function(description) {
+	          if (typeof args[0] === 'function') {
+	            args[0].apply(null, [description]);
+	          }
+	        }, function(error) {
+	          if (typeof args[1] === 'function') {
+	            args[1].apply(null, [error]);
+	          }
+	        });
+	      }
+	      return nativeMethod.apply(this, arguments);
+	    };
+	  });
+
+	  methods = ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'];
+	  methods.forEach(function(method) {
+	    var nativeMethod = RTCPeerConnection.prototype[method];
+	    RTCPeerConnection.prototype[method] = function() {
+	      var args = arguments;
+	      if (typeof args[1] === 'function' ||
+	          typeof args[2] === 'function') { // legacy
+	        return nativeMethod.apply(this, arguments)
+	        .then(function() {
+	          if (typeof args[1] === 'function') {
+	            args[1].apply(null);
+	          }
+	        }, function(error) {
+	          if (typeof args[2] === 'function') {
+	            args[2].apply(null, [error]);
+	          }
+	        });
+	      }
+	      return nativeMethod.apply(this, arguments);
+	    };
+	  });
+
+	  // getStats is special. It doesn't have a spec legacy method yet we support
+	  // getStats(something, cb) without error callbacks.
+	  ['getStats'].forEach(function(method) {
+	    var nativeMethod = RTCPeerConnection.prototype[method];
+	    RTCPeerConnection.prototype[method] = function() {
+	      var args = arguments;
+	      if (typeof args[1] === 'function') {
+	        return nativeMethod.apply(this, arguments)
+	        .then(function() {
+	          if (typeof args[1] === 'function') {
+	            args[1].apply(null);
+	          }
+	        });
+	      }
+	      return nativeMethod.apply(this, arguments);
+	    };
+	  });
+
+	  return RTCPeerConnection;
+	};
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimGetUserMedia$2(window) {
+	  const navigator = window && window.navigator;
+
+	  const shimError_ = function(e) {
+	    return {
+	      name: {PermissionDeniedError: 'NotAllowedError'}[e.name] || e.name,
+	      message: e.message,
+	      constraint: e.constraint,
+	      toString() {
+	        return this.name;
+	      }
+	    };
+	  };
+
+	  // getUserMedia error shim.
+	  const origGetUserMedia = navigator.mediaDevices.getUserMedia.
+	      bind(navigator.mediaDevices);
+	  navigator.mediaDevices.getUserMedia = function(c) {
+	    return origGetUserMedia(c).catch(e => Promise.reject(shimError_(e)));
+	  };
+	}
+
+	/*
+	 *  Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimGetDisplayMedia$1(window) {
+	  if (!('getDisplayMedia' in window.navigator)) {
+	    return;
+	  }
+	  if (!(window.navigator.mediaDevices)) {
+	    return;
+	  }
+	  if (window.navigator.mediaDevices &&
+	    'getDisplayMedia' in window.navigator.mediaDevices) {
+	    return;
+	  }
+	  window.navigator.mediaDevices.getDisplayMedia =
+	    window.navigator.getDisplayMedia.bind(window.navigator);
+	}
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimPeerConnection$1(window, browserDetails) {
+	  if (window.RTCIceGatherer) {
+	    if (!window.RTCIceCandidate) {
+	      window.RTCIceCandidate = function RTCIceCandidate(args) {
+	        return args;
+	      };
+	    }
+	    if (!window.RTCSessionDescription) {
+	      window.RTCSessionDescription = function RTCSessionDescription(args) {
+	        return args;
+	      };
+	    }
+	    // this adds an additional event listener to MediaStrackTrack that signals
+	    // when a tracks enabled property was changed. Workaround for a bug in
+	    // addStream, see below. No longer required in 15025+
+	    if (browserDetails.version < 15025) {
+	      const origMSTEnabled = Object.getOwnPropertyDescriptor(
+	          window.MediaStreamTrack.prototype, 'enabled');
+	      Object.defineProperty(window.MediaStreamTrack.prototype, 'enabled', {
+	        set(value) {
+	          origMSTEnabled.set.call(this, value);
+	          const ev = new Event('enabled');
+	          ev.enabled = value;
+	          this.dispatchEvent(ev);
+	        }
+	      });
+	    }
+	  }
+
+	  // ORTC defines the DTMF sender a bit different.
+	  // https://github.com/w3c/ortc/issues/714
+	  if (window.RTCRtpSender && !('dtmf' in window.RTCRtpSender.prototype)) {
+	    Object.defineProperty(window.RTCRtpSender.prototype, 'dtmf', {
+	      get() {
+	        if (this._dtmf === undefined) {
+	          if (this.track.kind === 'audio') {
+	            this._dtmf = new window.RTCDtmfSender(this);
+	          } else if (this.track.kind === 'video') {
+	            this._dtmf = null;
+	          }
+	        }
+	        return this._dtmf;
+	      }
+	    });
+	  }
+	  // Edge currently only implements the RTCDtmfSender, not the
+	  // RTCDTMFSender alias. See http://draft.ortc.org/#rtcdtmfsender2*
+	  if (window.RTCDtmfSender && !window.RTCDTMFSender) {
+	    window.RTCDTMFSender = window.RTCDtmfSender;
+	  }
+
+	  const RTCPeerConnectionShim = rtcpeerconnection(window,
+	      browserDetails.version);
+	  window.RTCPeerConnection = function RTCPeerConnection(config) {
+	    if (config && config.iceServers) {
+	      config.iceServers = filterIceServers$1(config.iceServers,
+	        browserDetails.version);
+	      log$1('ICE servers after filtering:', config.iceServers);
+	    }
+	    return new RTCPeerConnectionShim(config);
+	  };
+	  window.RTCPeerConnection.prototype = RTCPeerConnectionShim.prototype;
+	}
+
+	function shimReplaceTrack(window) {
+	  // ORTC has replaceTrack -- https://github.com/w3c/ortc/issues/614
+	  if (window.RTCRtpSender &&
+	      !('replaceTrack' in window.RTCRtpSender.prototype)) {
+	    window.RTCRtpSender.prototype.replaceTrack =
+	        window.RTCRtpSender.prototype.setTrack;
+	  }
+	}
+
+	var edgeShim = /*#__PURE__*/Object.freeze({
+		__proto__: null,
+		shimPeerConnection: shimPeerConnection$1,
+		shimReplaceTrack: shimReplaceTrack,
+		shimGetUserMedia: shimGetUserMedia$2,
+		shimGetDisplayMedia: shimGetDisplayMedia$1
+	});
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimGetUserMedia$1(window, browserDetails) {
+	  const navigator = window && window.navigator;
+	  const MediaStreamTrack = window && window.MediaStreamTrack;
+
+	  navigator.getUserMedia = function(constraints, onSuccess, onError) {
+	    // Replace Firefox 44+'s deprecation warning with unprefixed version.
+	    deprecated('navigator.getUserMedia',
+	        'navigator.mediaDevices.getUserMedia');
+	    navigator.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
+	  };
+
+	  if (!(browserDetails.version > 55 &&
+	      'autoGainControl' in navigator.mediaDevices.getSupportedConstraints())) {
+	    const remap = function(obj, a, b) {
+	      if (a in obj && !(b in obj)) {
+	        obj[b] = obj[a];
+	        delete obj[a];
+	      }
+	    };
+
+	    const nativeGetUserMedia = navigator.mediaDevices.getUserMedia.
+	        bind(navigator.mediaDevices);
+	    navigator.mediaDevices.getUserMedia = function(c) {
+	      if (typeof c === 'object' && typeof c.audio === 'object') {
+	        c = JSON.parse(JSON.stringify(c));
+	        remap(c.audio, 'autoGainControl', 'mozAutoGainControl');
+	        remap(c.audio, 'noiseSuppression', 'mozNoiseSuppression');
+	      }
+	      return nativeGetUserMedia(c);
+	    };
+
+	    if (MediaStreamTrack && MediaStreamTrack.prototype.getSettings) {
+	      const nativeGetSettings = MediaStreamTrack.prototype.getSettings;
+	      MediaStreamTrack.prototype.getSettings = function() {
+	        const obj = nativeGetSettings.apply(this, arguments);
+	        remap(obj, 'mozAutoGainControl', 'autoGainControl');
+	        remap(obj, 'mozNoiseSuppression', 'noiseSuppression');
+	        return obj;
+	      };
+	    }
+
+	    if (MediaStreamTrack && MediaStreamTrack.prototype.applyConstraints) {
+	      const nativeApplyConstraints =
+	        MediaStreamTrack.prototype.applyConstraints;
+	      MediaStreamTrack.prototype.applyConstraints = function(c) {
+	        if (this.kind === 'audio' && typeof c === 'object') {
+	          c = JSON.parse(JSON.stringify(c));
+	          remap(c, 'autoGainControl', 'mozAutoGainControl');
+	          remap(c, 'noiseSuppression', 'mozNoiseSuppression');
+	        }
+	        return nativeApplyConstraints.apply(this, [c]);
+	      };
+	    }
+	  }
+	}
+
+	/*
+	 *  Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimGetDisplayMedia(window, preferredMediaSource) {
+	  if (window.navigator.mediaDevices &&
+	    'getDisplayMedia' in window.navigator.mediaDevices) {
+	    return;
+	  }
+	  if (!(window.navigator.mediaDevices)) {
+	    return;
+	  }
+	  window.navigator.mediaDevices.getDisplayMedia =
+	    function getDisplayMedia(constraints) {
+	      if (!(constraints && constraints.video)) {
+	        const err = new DOMException('getDisplayMedia without video ' +
+	            'constraints is undefined');
+	        err.name = 'NotFoundError';
+	        // from https://heycam.github.io/webidl/#idl-DOMException-error-names
+	        err.code = 8;
+	        return Promise.reject(err);
+	      }
+	      if (constraints.video === true) {
+	        constraints.video = {mediaSource: preferredMediaSource};
+	      } else {
+	        constraints.video.mediaSource = preferredMediaSource;
+	      }
+	      return window.navigator.mediaDevices.getUserMedia(constraints);
+	    };
+	}
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimOnTrack(window) {
+	  if (typeof window === 'object' && window.RTCTrackEvent &&
+	      ('receiver' in window.RTCTrackEvent.prototype) &&
+	      !('transceiver' in window.RTCTrackEvent.prototype)) {
+	    Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', {
+	      get() {
+	        return {receiver: this.receiver};
+	      }
+	    });
+	  }
+	}
+
+	function shimPeerConnection(window, browserDetails) {
+	  if (typeof window !== 'object' ||
+	      !(window.RTCPeerConnection || window.mozRTCPeerConnection)) {
+	    return; // probably media.peerconnection.enabled=false in about:config
+	  }
+	  if (!window.RTCPeerConnection && window.mozRTCPeerConnection) {
+	    // very basic support for old versions.
+	    window.RTCPeerConnection = window.mozRTCPeerConnection;
+	  }
+
+	  if (browserDetails.version < 53) {
+	    // shim away need for obsolete RTCIceCandidate/RTCSessionDescription.
+	    ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate']
+	        .forEach(function(method) {
+	          const nativeMethod = window.RTCPeerConnection.prototype[method];
+	          const methodObj = {[method]() {
+	            arguments[0] = new ((method === 'addIceCandidate') ?
+	                window.RTCIceCandidate :
+	                window.RTCSessionDescription)(arguments[0]);
+	            return nativeMethod.apply(this, arguments);
+	          }};
+	          window.RTCPeerConnection.prototype[method] = methodObj[method];
+	        });
+	  }
+
+	  const modernStatsTypes = {
+	    inboundrtp: 'inbound-rtp',
+	    outboundrtp: 'outbound-rtp',
+	    candidatepair: 'candidate-pair',
+	    localcandidate: 'local-candidate',
+	    remotecandidate: 'remote-candidate'
+	  };
+
+	  const nativeGetStats = window.RTCPeerConnection.prototype.getStats;
+	  window.RTCPeerConnection.prototype.getStats = function getStats() {
+	    const [selector, onSucc, onErr] = arguments;
+	    return nativeGetStats.apply(this, [selector || null])
+	      .then(stats => {
+	        if (browserDetails.version < 53 && !onSucc) {
+	          // Shim only promise getStats with spec-hyphens in type names
+	          // Leave callback version alone; misc old uses of forEach before Map
+	          try {
+	            stats.forEach(stat => {
+	              stat.type = modernStatsTypes[stat.type] || stat.type;
+	            });
+	          } catch (e) {
+	            if (e.name !== 'TypeError') {
+	              throw e;
+	            }
+	            // Avoid TypeError: "type" is read-only, in old versions. 34-43ish
+	            stats.forEach((stat, i) => {
+	              stats.set(i, Object.assign({}, stat, {
+	                type: modernStatsTypes[stat.type] || stat.type
+	              }));
+	            });
+	          }
+	        }
+	        return stats;
+	      })
+	      .then(onSucc, onErr);
+	  };
+	}
+
+	function shimSenderGetStats(window) {
+	  if (!(typeof window === 'object' && window.RTCPeerConnection &&
+	      window.RTCRtpSender)) {
+	    return;
+	  }
+	  if (window.RTCRtpSender && 'getStats' in window.RTCRtpSender.prototype) {
+	    return;
+	  }
+	  const origGetSenders = window.RTCPeerConnection.prototype.getSenders;
+	  if (origGetSenders) {
+	    window.RTCPeerConnection.prototype.getSenders = function getSenders() {
+	      const senders = origGetSenders.apply(this, []);
+	      senders.forEach(sender => sender._pc = this);
+	      return senders;
+	    };
+	  }
+
+	  const origAddTrack = window.RTCPeerConnection.prototype.addTrack;
+	  if (origAddTrack) {
+	    window.RTCPeerConnection.prototype.addTrack = function addTrack() {
+	      const sender = origAddTrack.apply(this, arguments);
+	      sender._pc = this;
+	      return sender;
+	    };
+	  }
+	  window.RTCRtpSender.prototype.getStats = function getStats() {
+	    return this.track ? this._pc.getStats(this.track) :
+	        Promise.resolve(new Map());
+	  };
+	}
+
+	function shimReceiverGetStats(window) {
+	  if (!(typeof window === 'object' && window.RTCPeerConnection &&
+	      window.RTCRtpSender)) {
+	    return;
+	  }
+	  if (window.RTCRtpSender && 'getStats' in window.RTCRtpReceiver.prototype) {
+	    return;
+	  }
+	  const origGetReceivers = window.RTCPeerConnection.prototype.getReceivers;
+	  if (origGetReceivers) {
+	    window.RTCPeerConnection.prototype.getReceivers = function getReceivers() {
+	      const receivers = origGetReceivers.apply(this, []);
+	      receivers.forEach(receiver => receiver._pc = this);
+	      return receivers;
+	    };
+	  }
+	  wrapPeerConnectionEvent(window, 'track', e => {
+	    e.receiver._pc = e.srcElement;
+	    return e;
+	  });
+	  window.RTCRtpReceiver.prototype.getStats = function getStats() {
+	    return this._pc.getStats(this.track);
+	  };
+	}
+
+	function shimRemoveStream(window) {
+	  if (!window.RTCPeerConnection ||
+	      'removeStream' in window.RTCPeerConnection.prototype) {
+	    return;
+	  }
+	  window.RTCPeerConnection.prototype.removeStream =
+	    function removeStream(stream) {
+	      deprecated('removeStream', 'removeTrack');
+	      this.getSenders().forEach(sender => {
+	        if (sender.track && stream.getTracks().includes(sender.track)) {
+	          this.removeTrack(sender);
+	        }
+	      });
+	    };
+	}
+
+	function shimRTCDataChannel(window) {
+	  // rename DataChannel to RTCDataChannel (native fix in FF60):
+	  // https://bugzilla.mozilla.org/show_bug.cgi?id=1173851
+	  if (window.DataChannel && !window.RTCDataChannel) {
+	    window.RTCDataChannel = window.DataChannel;
+	  }
+	}
+
+	function shimAddTransceiver(window) {
+	  // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647
+	  // Firefox ignores the init sendEncodings options passed to addTransceiver
+	  // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918
+	  if (!(typeof window === 'object' && window.RTCPeerConnection)) {
+	    return;
+	  }
+	  const origAddTransceiver = window.RTCPeerConnection.prototype.addTransceiver;
+	  if (origAddTransceiver) {
+	    window.RTCPeerConnection.prototype.addTransceiver =
+	      function addTransceiver() {
+	        this.setParametersPromises = [];
+	        const initParameters = arguments[1];
+	        const shouldPerformCheck = initParameters &&
+	                                  'sendEncodings' in initParameters;
+	        if (shouldPerformCheck) {
+	          // If sendEncodings params are provided, validate grammar
+	          initParameters.sendEncodings.forEach((encodingParam) => {
+	            if ('rid' in encodingParam) {
+	              const ridRegex = /^[a-z0-9]{0,16}$/i;
+	              if (!ridRegex.test(encodingParam.rid)) {
+	                throw new TypeError('Invalid RID value provided.');
+	              }
+	            }
+	            if ('scaleResolutionDownBy' in encodingParam) {
+	              if (!(parseFloat(encodingParam.scaleResolutionDownBy) >= 1.0)) {
+	                throw new RangeError('scale_resolution_down_by must be >= 1.0');
+	              }
+	            }
+	            if ('maxFramerate' in encodingParam) {
+	              if (!(parseFloat(encodingParam.maxFramerate) >= 0)) {
+	                throw new RangeError('max_framerate must be >= 0.0');
+	              }
+	            }
+	          });
+	        }
+	        const transceiver = origAddTransceiver.apply(this, arguments);
+	        if (shouldPerformCheck) {
+	          // Check if the init options were applied. If not we do this in an
+	          // asynchronous way and save the promise reference in a global object.
+	          // This is an ugly hack, but at the same time is way more robust than
+	          // checking the sender parameters before and after the createOffer
+	          // Also note that after the createoffer we are not 100% sure that
+	          // the params were asynchronously applied so we might miss the
+	          // opportunity to recreate offer.
+	          const {sender} = transceiver;
+	          const params = sender.getParameters();
+	          if (!('encodings' in params) ||
+	              // Avoid being fooled by patched getParameters() below.
+	              (params.encodings.length === 1 &&
+	               Object.keys(params.encodings[0]).length === 0)) {
+	            params.encodings = initParameters.sendEncodings;
+	            sender.sendEncodings = initParameters.sendEncodings;
+	            this.setParametersPromises.push(sender.setParameters(params)
+	              .then(() => {
+	                delete sender.sendEncodings;
+	              }).catch(() => {
+	                delete sender.sendEncodings;
+	              })
+	            );
+	          }
+	        }
+	        return transceiver;
+	      };
+	  }
+	}
+
+	function shimGetParameters(window) {
+	  if (!(typeof window === 'object' && window.RTCRtpSender)) {
+	    return;
+	  }
+	  const origGetParameters = window.RTCRtpSender.prototype.getParameters;
+	  if (origGetParameters) {
+	    window.RTCRtpSender.prototype.getParameters =
+	      function getParameters() {
+	        const params = origGetParameters.apply(this, arguments);
+	        if (!('encodings' in params)) {
+	          params.encodings = [].concat(this.sendEncodings || [{}]);
+	        }
+	        return params;
+	      };
+	  }
+	}
+
+	function shimCreateOffer(window) {
+	  // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647
+	  // Firefox ignores the init sendEncodings options passed to addTransceiver
+	  // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918
+	  if (!(typeof window === 'object' && window.RTCPeerConnection)) {
+	    return;
+	  }
+	  const origCreateOffer = window.RTCPeerConnection.prototype.createOffer;
+	  window.RTCPeerConnection.prototype.createOffer = function createOffer() {
+	    if (this.setParametersPromises && this.setParametersPromises.length) {
+	      return Promise.all(this.setParametersPromises)
+	      .then(() => {
+	        return origCreateOffer.apply(this, arguments);
+	      })
+	      .finally(() => {
+	        this.setParametersPromises = [];
+	      });
+	    }
+	    return origCreateOffer.apply(this, arguments);
+	  };
+	}
+
+	function shimCreateAnswer(window) {
+	  // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647
+	  // Firefox ignores the init sendEncodings options passed to addTransceiver
+	  // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918
+	  if (!(typeof window === 'object' && window.RTCPeerConnection)) {
+	    return;
+	  }
+	  const origCreateAnswer = window.RTCPeerConnection.prototype.createAnswer;
+	  window.RTCPeerConnection.prototype.createAnswer = function createAnswer() {
+	    if (this.setParametersPromises && this.setParametersPromises.length) {
+	      return Promise.all(this.setParametersPromises)
+	      .then(() => {
+	        return origCreateAnswer.apply(this, arguments);
+	      })
+	      .finally(() => {
+	        this.setParametersPromises = [];
+	      });
+	    }
+	    return origCreateAnswer.apply(this, arguments);
+	  };
+	}
+
+	var firefoxShim = /*#__PURE__*/Object.freeze({
+		__proto__: null,
+		shimOnTrack: shimOnTrack,
+		shimPeerConnection: shimPeerConnection,
+		shimSenderGetStats: shimSenderGetStats,
+		shimReceiverGetStats: shimReceiverGetStats,
+		shimRemoveStream: shimRemoveStream,
+		shimRTCDataChannel: shimRTCDataChannel,
+		shimAddTransceiver: shimAddTransceiver,
+		shimGetParameters: shimGetParameters,
+		shimCreateOffer: shimCreateOffer,
+		shimCreateAnswer: shimCreateAnswer,
+		shimGetUserMedia: shimGetUserMedia$1,
+		shimGetDisplayMedia: shimGetDisplayMedia
+	});
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimLocalStreamsAPI(window) {
+	  if (typeof window !== 'object' || !window.RTCPeerConnection) {
+	    return;
+	  }
+	  if (!('getLocalStreams' in window.RTCPeerConnection.prototype)) {
+	    window.RTCPeerConnection.prototype.getLocalStreams =
+	      function getLocalStreams() {
+	        if (!this._localStreams) {
+	          this._localStreams = [];
+	        }
+	        return this._localStreams;
+	      };
+	  }
+	  if (!('addStream' in window.RTCPeerConnection.prototype)) {
+	    const _addTrack = window.RTCPeerConnection.prototype.addTrack;
+	    window.RTCPeerConnection.prototype.addStream = function addStream(stream) {
+	      if (!this._localStreams) {
+	        this._localStreams = [];
+	      }
+	      if (!this._localStreams.includes(stream)) {
+	        this._localStreams.push(stream);
+	      }
+	      // Try to emulate Chrome's behaviour of adding in audio-video order.
+	      // Safari orders by track id.
+	      stream.getAudioTracks().forEach(track => _addTrack.call(this, track,
+	        stream));
+	      stream.getVideoTracks().forEach(track => _addTrack.call(this, track,
+	        stream));
+	    };
+
+	    window.RTCPeerConnection.prototype.addTrack =
+	      function addTrack(track, ...streams) {
+	        if (streams) {
+	          streams.forEach((stream) => {
+	            if (!this._localStreams) {
+	              this._localStreams = [stream];
+	            } else if (!this._localStreams.includes(stream)) {
+	              this._localStreams.push(stream);
+	            }
+	          });
+	        }
+	        return _addTrack.apply(this, arguments);
+	      };
+	  }
+	  if (!('removeStream' in window.RTCPeerConnection.prototype)) {
+	    window.RTCPeerConnection.prototype.removeStream =
+	      function removeStream(stream) {
+	        if (!this._localStreams) {
+	          this._localStreams = [];
+	        }
+	        const index = this._localStreams.indexOf(stream);
+	        if (index === -1) {
+	          return;
+	        }
+	        this._localStreams.splice(index, 1);
+	        const tracks = stream.getTracks();
+	        this.getSenders().forEach(sender => {
+	          if (tracks.includes(sender.track)) {
+	            this.removeTrack(sender);
+	          }
+	        });
+	      };
+	  }
+	}
+
+	function shimRemoteStreamsAPI(window) {
+	  if (typeof window !== 'object' || !window.RTCPeerConnection) {
+	    return;
+	  }
+	  if (!('getRemoteStreams' in window.RTCPeerConnection.prototype)) {
+	    window.RTCPeerConnection.prototype.getRemoteStreams =
+	      function getRemoteStreams() {
+	        return this._remoteStreams ? this._remoteStreams : [];
+	      };
+	  }
+	  if (!('onaddstream' in window.RTCPeerConnection.prototype)) {
+	    Object.defineProperty(window.RTCPeerConnection.prototype, 'onaddstream', {
+	      get() {
+	        return this._onaddstream;
+	      },
+	      set(f) {
+	        if (this._onaddstream) {
+	          this.removeEventListener('addstream', this._onaddstream);
+	          this.removeEventListener('track', this._onaddstreampoly);
+	        }
+	        this.addEventListener('addstream', this._onaddstream = f);
+	        this.addEventListener('track', this._onaddstreampoly = (e) => {
+	          e.streams.forEach(stream => {
+	            if (!this._remoteStreams) {
+	              this._remoteStreams = [];
+	            }
+	            if (this._remoteStreams.includes(stream)) {
+	              return;
+	            }
+	            this._remoteStreams.push(stream);
+	            const event = new Event('addstream');
+	            event.stream = stream;
+	            this.dispatchEvent(event);
+	          });
+	        });
+	      }
+	    });
+	    const origSetRemoteDescription =
+	      window.RTCPeerConnection.prototype.setRemoteDescription;
+	    window.RTCPeerConnection.prototype.setRemoteDescription =
+	      function setRemoteDescription() {
+	        const pc = this;
+	        if (!this._onaddstreampoly) {
+	          this.addEventListener('track', this._onaddstreampoly = function(e) {
+	            e.streams.forEach(stream => {
+	              if (!pc._remoteStreams) {
+	                pc._remoteStreams = [];
+	              }
+	              if (pc._remoteStreams.indexOf(stream) >= 0) {
+	                return;
+	              }
+	              pc._remoteStreams.push(stream);
+	              const event = new Event('addstream');
+	              event.stream = stream;
+	              pc.dispatchEvent(event);
+	            });
+	          });
+	        }
+	        return origSetRemoteDescription.apply(pc, arguments);
+	      };
+	  }
+	}
+
+	function shimCallbacksAPI(window) {
+	  if (typeof window !== 'object' || !window.RTCPeerConnection) {
+	    return;
+	  }
+	  const prototype = window.RTCPeerConnection.prototype;
+	  const origCreateOffer = prototype.createOffer;
+	  const origCreateAnswer = prototype.createAnswer;
+	  const setLocalDescription = prototype.setLocalDescription;
+	  const setRemoteDescription = prototype.setRemoteDescription;
+	  const addIceCandidate = prototype.addIceCandidate;
+
+	  prototype.createOffer =
+	    function createOffer(successCallback, failureCallback) {
+	      const options = (arguments.length >= 2) ? arguments[2] : arguments[0];
+	      const promise = origCreateOffer.apply(this, [options]);
+	      if (!failureCallback) {
+	        return promise;
+	      }
+	      promise.then(successCallback, failureCallback);
+	      return Promise.resolve();
+	    };
+
+	  prototype.createAnswer =
+	    function createAnswer(successCallback, failureCallback) {
+	      const options = (arguments.length >= 2) ? arguments[2] : arguments[0];
+	      const promise = origCreateAnswer.apply(this, [options]);
+	      if (!failureCallback) {
+	        return promise;
+	      }
+	      promise.then(successCallback, failureCallback);
+	      return Promise.resolve();
+	    };
+
+	  let withCallback = function(description, successCallback, failureCallback) {
+	    const promise = setLocalDescription.apply(this, [description]);
+	    if (!failureCallback) {
+	      return promise;
+	    }
+	    promise.then(successCallback, failureCallback);
+	    return Promise.resolve();
+	  };
+	  prototype.setLocalDescription = withCallback;
+
+	  withCallback = function(description, successCallback, failureCallback) {
+	    const promise = setRemoteDescription.apply(this, [description]);
+	    if (!failureCallback) {
+	      return promise;
+	    }
+	    promise.then(successCallback, failureCallback);
+	    return Promise.resolve();
+	  };
+	  prototype.setRemoteDescription = withCallback;
+
+	  withCallback = function(candidate, successCallback, failureCallback) {
+	    const promise = addIceCandidate.apply(this, [candidate]);
+	    if (!failureCallback) {
+	      return promise;
+	    }
+	    promise.then(successCallback, failureCallback);
+	    return Promise.resolve();
+	  };
+	  prototype.addIceCandidate = withCallback;
+	}
+
+	function shimGetUserMedia(window) {
+	  const navigator = window && window.navigator;
+
+	  if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
+	    // shim not needed in Safari 12.1
+	    const mediaDevices = navigator.mediaDevices;
+	    const _getUserMedia = mediaDevices.getUserMedia.bind(mediaDevices);
+	    navigator.mediaDevices.getUserMedia = (constraints) => {
+	      return _getUserMedia(shimConstraints(constraints));
+	    };
+	  }
+
+	  if (!navigator.getUserMedia && navigator.mediaDevices &&
+	    navigator.mediaDevices.getUserMedia) {
+	    navigator.getUserMedia = function getUserMedia(constraints, cb, errcb) {
+	      navigator.mediaDevices.getUserMedia(constraints)
+	      .then(cb, errcb);
+	    }.bind(navigator);
+	  }
+	}
+
+	function shimConstraints(constraints) {
+	  if (constraints && constraints.video !== undefined) {
+	    return Object.assign({},
+	      constraints,
+	      {video: compactObject(constraints.video)}
+	    );
+	  }
+
+	  return constraints;
+	}
+
+	function shimRTCIceServerUrls(window) {
+	  if (!window.RTCPeerConnection) {
+	    return;
+	  }
+	  // migrate from non-spec RTCIceServer.url to RTCIceServer.urls
+	  const OrigPeerConnection = window.RTCPeerConnection;
+	  window.RTCPeerConnection =
+	    function RTCPeerConnection(pcConfig, pcConstraints) {
+	      if (pcConfig && pcConfig.iceServers) {
+	        const newIceServers = [];
+	        for (let i = 0; i < pcConfig.iceServers.length; i++) {
+	          let server = pcConfig.iceServers[i];
+	          if (!server.hasOwnProperty('urls') &&
+	              server.hasOwnProperty('url')) {
+	            deprecated('RTCIceServer.url', 'RTCIceServer.urls');
+	            server = JSON.parse(JSON.stringify(server));
+	            server.urls = server.url;
+	            delete server.url;
+	            newIceServers.push(server);
+	          } else {
+	            newIceServers.push(pcConfig.iceServers[i]);
+	          }
+	        }
+	        pcConfig.iceServers = newIceServers;
+	      }
+	      return new OrigPeerConnection(pcConfig, pcConstraints);
+	    };
+	  window.RTCPeerConnection.prototype = OrigPeerConnection.prototype;
+	  // wrap static methods. Currently just generateCertificate.
+	  if ('generateCertificate' in OrigPeerConnection) {
+	    Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', {
+	      get() {
+	        return OrigPeerConnection.generateCertificate;
+	      }
+	    });
+	  }
+	}
+
+	function shimTrackEventTransceiver(window) {
+	  // Add event.transceiver member over deprecated event.receiver
+	  if (typeof window === 'object' && window.RTCTrackEvent &&
+	      'receiver' in window.RTCTrackEvent.prototype &&
+	      !('transceiver' in window.RTCTrackEvent.prototype)) {
+	    Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', {
+	      get() {
+	        return {receiver: this.receiver};
+	      }
+	    });
+	  }
+	}
+
+	function shimCreateOfferLegacy(window) {
+	  const origCreateOffer = window.RTCPeerConnection.prototype.createOffer;
+	  window.RTCPeerConnection.prototype.createOffer =
+	    function createOffer(offerOptions) {
+	      if (offerOptions) {
+	        if (typeof offerOptions.offerToReceiveAudio !== 'undefined') {
+	          // support bit values
+	          offerOptions.offerToReceiveAudio =
+	            !!offerOptions.offerToReceiveAudio;
+	        }
+	        const audioTransceiver = this.getTransceivers().find(transceiver =>
+	          transceiver.receiver.track.kind === 'audio');
+	        if (offerOptions.offerToReceiveAudio === false && audioTransceiver) {
+	          if (audioTransceiver.direction === 'sendrecv') {
+	            if (audioTransceiver.setDirection) {
+	              audioTransceiver.setDirection('sendonly');
+	            } else {
+	              audioTransceiver.direction = 'sendonly';
+	            }
+	          } else if (audioTransceiver.direction === 'recvonly') {
+	            if (audioTransceiver.setDirection) {
+	              audioTransceiver.setDirection('inactive');
+	            } else {
+	              audioTransceiver.direction = 'inactive';
+	            }
+	          }
+	        } else if (offerOptions.offerToReceiveAudio === true &&
+	            !audioTransceiver) {
+	          this.addTransceiver('audio');
+	        }
+
+	        if (typeof offerOptions.offerToReceiveVideo !== 'undefined') {
+	          // support bit values
+	          offerOptions.offerToReceiveVideo =
+	            !!offerOptions.offerToReceiveVideo;
+	        }
+	        const videoTransceiver = this.getTransceivers().find(transceiver =>
+	          transceiver.receiver.track.kind === 'video');
+	        if (offerOptions.offerToReceiveVideo === false && videoTransceiver) {
+	          if (videoTransceiver.direction === 'sendrecv') {
+	            if (videoTransceiver.setDirection) {
+	              videoTransceiver.setDirection('sendonly');
+	            } else {
+	              videoTransceiver.direction = 'sendonly';
+	            }
+	          } else if (videoTransceiver.direction === 'recvonly') {
+	            if (videoTransceiver.setDirection) {
+	              videoTransceiver.setDirection('inactive');
+	            } else {
+	              videoTransceiver.direction = 'inactive';
+	            }
+	          }
+	        } else if (offerOptions.offerToReceiveVideo === true &&
+	            !videoTransceiver) {
+	          this.addTransceiver('video');
+	        }
+	      }
+	      return origCreateOffer.apply(this, arguments);
+	    };
+	}
+
+	function shimAudioContext(window) {
+	  if (typeof window !== 'object' || window.AudioContext) {
+	    return;
+	  }
+	  window.AudioContext = window.webkitAudioContext;
+	}
+
+	var safariShim = /*#__PURE__*/Object.freeze({
+		__proto__: null,
+		shimLocalStreamsAPI: shimLocalStreamsAPI,
+		shimRemoteStreamsAPI: shimRemoteStreamsAPI,
+		shimCallbacksAPI: shimCallbacksAPI,
+		shimGetUserMedia: shimGetUserMedia,
+		shimConstraints: shimConstraints,
+		shimRTCIceServerUrls: shimRTCIceServerUrls,
+		shimTrackEventTransceiver: shimTrackEventTransceiver,
+		shimCreateOfferLegacy: shimCreateOfferLegacy,
+		shimAudioContext: shimAudioContext
+	});
+
+	/*
+	 *  Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	function shimRTCIceCandidate(window) {
+	  // foundation is arbitrarily chosen as an indicator for full support for
+	  // https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface
+	  if (!window.RTCIceCandidate || (window.RTCIceCandidate && 'foundation' in
+	      window.RTCIceCandidate.prototype)) {
+	    return;
+	  }
+
+	  const NativeRTCIceCandidate = window.RTCIceCandidate;
+	  window.RTCIceCandidate = function RTCIceCandidate(args) {
+	    // Remove the a= which shouldn't be part of the candidate string.
+	    if (typeof args === 'object' && args.candidate &&
+	        args.candidate.indexOf('a=') === 0) {
+	      args = JSON.parse(JSON.stringify(args));
+	      args.candidate = args.candidate.substr(2);
+	    }
+
+	    if (args.candidate && args.candidate.length) {
+	      // Augment the native candidate with the parsed fields.
+	      const nativeCandidate = new NativeRTCIceCandidate(args);
+	      const parsedCandidate = sdp.parseCandidate(args.candidate);
+	      const augmentedCandidate = Object.assign(nativeCandidate,
+	          parsedCandidate);
+
+	      // Add a serializer that does not serialize the extra attributes.
+	      augmentedCandidate.toJSON = function toJSON() {
+	        return {
+	          candidate: augmentedCandidate.candidate,
+	          sdpMid: augmentedCandidate.sdpMid,
+	          sdpMLineIndex: augmentedCandidate.sdpMLineIndex,
+	          usernameFragment: augmentedCandidate.usernameFragment,
+	        };
+	      };
+	      return augmentedCandidate;
+	    }
+	    return new NativeRTCIceCandidate(args);
+	  };
+	  window.RTCIceCandidate.prototype = NativeRTCIceCandidate.prototype;
+
+	  // Hook up the augmented candidate in onicecandidate and
+	  // addEventListener('icecandidate', ...)
+	  wrapPeerConnectionEvent(window, 'icecandidate', e => {
+	    if (e.candidate) {
+	      Object.defineProperty(e, 'candidate', {
+	        value: new window.RTCIceCandidate(e.candidate),
+	        writable: 'false'
+	      });
+	    }
+	    return e;
+	  });
+	}
+
+	function shimMaxMessageSize(window, browserDetails) {
+	  if (!window.RTCPeerConnection) {
+	    return;
+	  }
+
+	  if (!('sctp' in window.RTCPeerConnection.prototype)) {
+	    Object.defineProperty(window.RTCPeerConnection.prototype, 'sctp', {
+	      get() {
+	        return typeof this._sctp === 'undefined' ? null : this._sctp;
+	      }
+	    });
+	  }
+
+	  const sctpInDescription = function(description) {
+	    if (!description || !description.sdp) {
+	      return false;
+	    }
+	    const sections = sdp.splitSections(description.sdp);
+	    sections.shift();
+	    return sections.some(mediaSection => {
+	      const mLine = sdp.parseMLine(mediaSection);
+	      return mLine && mLine.kind === 'application'
+	          && mLine.protocol.indexOf('SCTP') !== -1;
+	    });
+	  };
+
+	  const getRemoteFirefoxVersion = function(description) {
+	    // TODO: Is there a better solution for detecting Firefox?
+	    const match = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
+	    if (match === null || match.length < 2) {
+	      return -1;
+	    }
+	    const version = parseInt(match[1], 10);
+	    // Test for NaN (yes, this is ugly)
+	    return version !== version ? -1 : version;
+	  };
+
+	  const getCanSendMaxMessageSize = function(remoteIsFirefox) {
+	    // Every implementation we know can send at least 64 KiB.
+	    // Note: Although Chrome is technically able to send up to 256 KiB, the
+	    //       data does not reach the other peer reliably.
+	    //       See: https://bugs.chromium.org/p/webrtc/issues/detail?id=8419
+	    let canSendMaxMessageSize = 65536;
+	    if (browserDetails.browser === 'firefox') {
+	      if (browserDetails.version < 57) {
+	        if (remoteIsFirefox === -1) {
+	          // FF < 57 will send in 16 KiB chunks using the deprecated PPID
+	          // fragmentation.
+	          canSendMaxMessageSize = 16384;
+	        } else {
+	          // However, other FF (and RAWRTC) can reassemble PPID-fragmented
+	          // messages. Thus, supporting ~2 GiB when sending.
+	          canSendMaxMessageSize = 2147483637;
+	        }
+	      } else if (browserDetails.version < 60) {
+	        // Currently, all FF >= 57 will reset the remote maximum message size
+	        // to the default value when a data channel is created at a later
+	        // stage. :(
+	        // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831
+	        canSendMaxMessageSize =
+	          browserDetails.version === 57 ? 65535 : 65536;
+	      } else {
+	        // FF >= 60 supports sending ~2 GiB
+	        canSendMaxMessageSize = 2147483637;
+	      }
+	    }
+	    return canSendMaxMessageSize;
+	  };
+
+	  const getMaxMessageSize = function(description, remoteIsFirefox) {
+	    // Note: 65536 bytes is the default value from the SDP spec. Also,
+	    //       every implementation we know supports receiving 65536 bytes.
+	    let maxMessageSize = 65536;
+
+	    // FF 57 has a slightly incorrect default remote max message size, so
+	    // we need to adjust it here to avoid a failure when sending.
+	    // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1425697
+	    if (browserDetails.browser === 'firefox'
+	         && browserDetails.version === 57) {
+	      maxMessageSize = 65535;
+	    }
+
+	    const match = sdp.matchPrefix(description.sdp,
+	      'a=max-message-size:');
+	    if (match.length > 0) {
+	      maxMessageSize = parseInt(match[0].substr(19), 10);
+	    } else if (browserDetails.browser === 'firefox' &&
+	                remoteIsFirefox !== -1) {
+	      // If the maximum message size is not present in the remote SDP and
+	      // both local and remote are Firefox, the remote peer can receive
+	      // ~2 GiB.
+	      maxMessageSize = 2147483637;
+	    }
+	    return maxMessageSize;
+	  };
+
+	  const origSetRemoteDescription =
+	      window.RTCPeerConnection.prototype.setRemoteDescription;
+	  window.RTCPeerConnection.prototype.setRemoteDescription =
+	    function setRemoteDescription() {
+	      this._sctp = null;
+	      // Chrome decided to not expose .sctp in plan-b mode.
+	      // As usual, adapter.js has to do an 'ugly worakaround'
+	      // to cover up the mess.
+	      if (browserDetails.browser === 'chrome' && browserDetails.version >= 76) {
+	        const {sdpSemantics} = this.getConfiguration();
+	        if (sdpSemantics === 'plan-b') {
+	          Object.defineProperty(this, 'sctp', {
+	            get() {
+	              return typeof this._sctp === 'undefined' ? null : this._sctp;
+	            },
+	            enumerable: true,
+	            configurable: true,
+	          });
+	        }
+	      }
+
+	      if (sctpInDescription(arguments[0])) {
+	        // Check if the remote is FF.
+	        const isFirefox = getRemoteFirefoxVersion(arguments[0]);
+
+	        // Get the maximum message size the local peer is capable of sending
+	        const canSendMMS = getCanSendMaxMessageSize(isFirefox);
+
+	        // Get the maximum message size of the remote peer.
+	        const remoteMMS = getMaxMessageSize(arguments[0], isFirefox);
+
+	        // Determine final maximum message size
+	        let maxMessageSize;
+	        if (canSendMMS === 0 && remoteMMS === 0) {
+	          maxMessageSize = Number.POSITIVE_INFINITY;
+	        } else if (canSendMMS === 0 || remoteMMS === 0) {
+	          maxMessageSize = Math.max(canSendMMS, remoteMMS);
+	        } else {
+	          maxMessageSize = Math.min(canSendMMS, remoteMMS);
+	        }
+
+	        // Create a dummy RTCSctpTransport object and the 'maxMessageSize'
+	        // attribute.
+	        const sctp = {};
+	        Object.defineProperty(sctp, 'maxMessageSize', {
+	          get() {
+	            return maxMessageSize;
+	          }
+	        });
+	        this._sctp = sctp;
+	      }
+
+	      return origSetRemoteDescription.apply(this, arguments);
+	    };
+	}
+
+	function shimSendThrowTypeError(window) {
+	  if (!(window.RTCPeerConnection &&
+	      'createDataChannel' in window.RTCPeerConnection.prototype)) {
+	    return;
+	  }
+
+	  // Note: Although Firefox >= 57 has a native implementation, the maximum
+	  //       message size can be reset for all data channels at a later stage.
+	  //       See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831
+
+	  function wrapDcSend(dc, pc) {
+	    const origDataChannelSend = dc.send;
+	    dc.send = function send() {
+	      const data = arguments[0];
+	      const length = data.length || data.size || data.byteLength;
+	      if (dc.readyState === 'open' &&
+	          pc.sctp && length > pc.sctp.maxMessageSize) {
+	        throw new TypeError('Message too large (can send a maximum of ' +
+	          pc.sctp.maxMessageSize + ' bytes)');
+	      }
+	      return origDataChannelSend.apply(dc, arguments);
+	    };
+	  }
+	  const origCreateDataChannel =
+	    window.RTCPeerConnection.prototype.createDataChannel;
+	  window.RTCPeerConnection.prototype.createDataChannel =
+	    function createDataChannel() {
+	      const dataChannel = origCreateDataChannel.apply(this, arguments);
+	      wrapDcSend(dataChannel, this);
+	      return dataChannel;
+	    };
+	  wrapPeerConnectionEvent(window, 'datachannel', e => {
+	    wrapDcSend(e.channel, e.target);
+	    return e;
+	  });
+	}
+
+
+	/* shims RTCConnectionState by pretending it is the same as iceConnectionState.
+	 * See https://bugs.chromium.org/p/webrtc/issues/detail?id=6145#c12
+	 * for why this is a valid hack in Chrome. In Firefox it is slightly incorrect
+	 * since DTLS failures would be hidden. See
+	 * https://bugzilla.mozilla.org/show_bug.cgi?id=1265827
+	 * for the Firefox tracking bug.
+	 */
+	function shimConnectionState(window) {
+	  if (!window.RTCPeerConnection ||
+	      'connectionState' in window.RTCPeerConnection.prototype) {
+	    return;
+	  }
+	  const proto = window.RTCPeerConnection.prototype;
+	  Object.defineProperty(proto, 'connectionState', {
+	    get() {
+	      return {
+	        completed: 'connected',
+	        checking: 'connecting'
+	      }[this.iceConnectionState] || this.iceConnectionState;
+	    },
+	    enumerable: true,
+	    configurable: true
+	  });
+	  Object.defineProperty(proto, 'onconnectionstatechange', {
+	    get() {
+	      return this._onconnectionstatechange || null;
+	    },
+	    set(cb) {
+	      if (this._onconnectionstatechange) {
+	        this.removeEventListener('connectionstatechange',
+	            this._onconnectionstatechange);
+	        delete this._onconnectionstatechange;
+	      }
+	      if (cb) {
+	        this.addEventListener('connectionstatechange',
+	            this._onconnectionstatechange = cb);
+	      }
+	    },
+	    enumerable: true,
+	    configurable: true
+	  });
+
+	  ['setLocalDescription', 'setRemoteDescription'].forEach((method) => {
+	    const origMethod = proto[method];
+	    proto[method] = function() {
+	      if (!this._connectionstatechangepoly) {
+	        this._connectionstatechangepoly = e => {
+	          const pc = e.target;
+	          if (pc._lastConnectionState !== pc.connectionState) {
+	            pc._lastConnectionState = pc.connectionState;
+	            const newEvent = new Event('connectionstatechange', e);
+	            pc.dispatchEvent(newEvent);
+	          }
+	          return e;
+	        };
+	        this.addEventListener('iceconnectionstatechange',
+	          this._connectionstatechangepoly);
+	      }
+	      return origMethod.apply(this, arguments);
+	    };
+	  });
+	}
+
+	function removeExtmapAllowMixed(window, browserDetails) {
+	  /* remove a=extmap-allow-mixed for webrtc.org < M71 */
+	  if (!window.RTCPeerConnection) {
+	    return;
+	  }
+	  if (browserDetails.browser === 'chrome' && browserDetails.version >= 71) {
+	    return;
+	  }
+	  if (browserDetails.browser === 'safari' && browserDetails.version >= 605) {
+	    return;
+	  }
+	  const nativeSRD = window.RTCPeerConnection.prototype.setRemoteDescription;
+	  window.RTCPeerConnection.prototype.setRemoteDescription =
+	  function setRemoteDescription(desc) {
+	    if (desc && desc.sdp && desc.sdp.indexOf('\na=extmap-allow-mixed') !== -1) {
+	      const sdp = desc.sdp.split('\n').filter((line) => {
+	        return line.trim() !== 'a=extmap-allow-mixed';
+	      }).join('\n');
+	      // Safari enforces read-only-ness of RTCSessionDescription fields.
+	      if (window.RTCSessionDescription &&
+	          desc instanceof window.RTCSessionDescription) {
+	        arguments[0] = new window.RTCSessionDescription({
+	          type: desc.type,
+	          sdp,
+	        });
+	      } else {
+	        desc.sdp = sdp;
+	      }
+	    }
+	    return nativeSRD.apply(this, arguments);
+	  };
+	}
+
+	function shimAddIceCandidateNullOrEmpty(window, browserDetails) {
+	  // Support for addIceCandidate(null or undefined)
+	  // as well as addIceCandidate({candidate: "", ...})
+	  // https://bugs.chromium.org/p/chromium/issues/detail?id=978582
+	  // Note: must be called before other polyfills which change the signature.
+	  if (!(window.RTCPeerConnection && window.RTCPeerConnection.prototype)) {
+	    return;
+	  }
+	  const nativeAddIceCandidate =
+	      window.RTCPeerConnection.prototype.addIceCandidate;
+	  if (!nativeAddIceCandidate || nativeAddIceCandidate.length === 0) {
+	    return;
+	  }
+	  window.RTCPeerConnection.prototype.addIceCandidate =
+	    function addIceCandidate() {
+	      if (!arguments[0]) {
+	        if (arguments[1]) {
+	          arguments[1].apply(null);
+	        }
+	        return Promise.resolve();
+	      }
+	      // Firefox 68+ emits and processes {candidate: "", ...}, ignore
+	      // in older versions.
+	      // Native support for ignoring exists for Chrome M77+.
+	      // Safari ignores as well, exact version unknown but works in the same
+	      // version that also ignores addIceCandidate(null).
+	      if (((browserDetails.browser === 'chrome' && browserDetails.version < 78)
+	           || (browserDetails.browser === 'firefox'
+	               && browserDetails.version < 68)
+	           || (browserDetails.browser === 'safari'))
+	          && arguments[0] && arguments[0].candidate === '') {
+	        return Promise.resolve();
+	      }
+	      return nativeAddIceCandidate.apply(this, arguments);
+	    };
+	}
+
+	var commonShim = /*#__PURE__*/Object.freeze({
+		__proto__: null,
+		shimRTCIceCandidate: shimRTCIceCandidate,
+		shimMaxMessageSize: shimMaxMessageSize,
+		shimSendThrowTypeError: shimSendThrowTypeError,
+		shimConnectionState: shimConnectionState,
+		removeExtmapAllowMixed: removeExtmapAllowMixed,
+		shimAddIceCandidateNullOrEmpty: shimAddIceCandidateNullOrEmpty
+	});
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	// Shimming starts here.
+	function adapterFactory({window} = {}, options = {
+	  shimChrome: true,
+	  shimFirefox: true,
+	  shimEdge: true,
+	  shimSafari: true,
+	}) {
+	  // Utils.
+	  const logging = log$1;
+	  const browserDetails = detectBrowser(window);
+
+	  const adapter = {
+	    browserDetails,
+	    commonShim,
+	    extractVersion: extractVersion,
+	    disableLog: disableLog,
+	    disableWarnings: disableWarnings
+	  };
+
+	  // Shim browser if found.
+	  switch (browserDetails.browser) {
+	    case 'chrome':
+	      if (!chromeShim || !shimPeerConnection$2 ||
+	          !options.shimChrome) {
+	        logging('Chrome shim is not included in this adapter release.');
+	        return adapter;
+	      }
+	      if (browserDetails.version === null) {
+	        logging('Chrome shim can not determine version, not shimming.');
+	        return adapter;
+	      }
+	      logging('adapter.js shimming chrome.');
+	      // Export to the adapter global object visible in the browser.
+	      adapter.browserShim = chromeShim;
+
+	      // Must be called before shimPeerConnection.
+	      shimAddIceCandidateNullOrEmpty(window, browserDetails);
+
+	      shimGetUserMedia$3(window, browserDetails);
+	      shimMediaStream(window);
+	      shimPeerConnection$2(window, browserDetails);
+	      shimOnTrack$1(window);
+	      shimAddTrackRemoveTrack(window, browserDetails);
+	      shimGetSendersWithDtmf(window);
+	      shimGetStats(window);
+	      shimSenderReceiverGetStats(window);
+	      fixNegotiationNeeded(window, browserDetails);
+
+	      shimRTCIceCandidate(window);
+	      shimConnectionState(window);
+	      shimMaxMessageSize(window, browserDetails);
+	      shimSendThrowTypeError(window);
+	      removeExtmapAllowMixed(window, browserDetails);
+	      break;
+	    case 'firefox':
+	      if (!firefoxShim || !shimPeerConnection ||
+	          !options.shimFirefox) {
+	        logging('Firefox shim is not included in this adapter release.');
+	        return adapter;
+	      }
+	      logging('adapter.js shimming firefox.');
+	      // Export to the adapter global object visible in the browser.
+	      adapter.browserShim = firefoxShim;
+
+	      // Must be called before shimPeerConnection.
+	      shimAddIceCandidateNullOrEmpty(window, browserDetails);
+
+	      shimGetUserMedia$1(window, browserDetails);
+	      shimPeerConnection(window, browserDetails);
+	      shimOnTrack(window);
+	      shimRemoveStream(window);
+	      shimSenderGetStats(window);
+	      shimReceiverGetStats(window);
+	      shimRTCDataChannel(window);
+	      shimAddTransceiver(window);
+	      shimGetParameters(window);
+	      shimCreateOffer(window);
+	      shimCreateAnswer(window);
+
+	      shimRTCIceCandidate(window);
+	      shimConnectionState(window);
+	      shimMaxMessageSize(window, browserDetails);
+	      shimSendThrowTypeError(window);
+	      break;
+	    case 'edge':
+	      if (!edgeShim || !shimPeerConnection$1 || !options.shimEdge) {
+	        logging('MS edge shim is not included in this adapter release.');
+	        return adapter;
+	      }
+	      logging('adapter.js shimming edge.');
+	      // Export to the adapter global object visible in the browser.
+	      adapter.browserShim = edgeShim;
+
+	      shimGetUserMedia$2(window);
+	      shimGetDisplayMedia$1(window);
+	      shimPeerConnection$1(window, browserDetails);
+	      shimReplaceTrack(window);
+
+	      // the edge shim implements the full RTCIceCandidate object.
+
+	      shimMaxMessageSize(window, browserDetails);
+	      shimSendThrowTypeError(window);
+	      break;
+	    case 'safari':
+	      if (!safariShim || !options.shimSafari) {
+	        logging('Safari shim is not included in this adapter release.');
+	        return adapter;
+	      }
+	      logging('adapter.js shimming safari.');
+	      // Export to the adapter global object visible in the browser.
+	      adapter.browserShim = safariShim;
+
+	      // Must be called before shimCallbackAPI.
+	      shimAddIceCandidateNullOrEmpty(window, browserDetails);
+
+	      shimRTCIceServerUrls(window);
+	      shimCreateOfferLegacy(window);
+	      shimCallbacksAPI(window);
+	      shimLocalStreamsAPI(window);
+	      shimRemoteStreamsAPI(window);
+	      shimTrackEventTransceiver(window);
+	      shimGetUserMedia(window);
+	      shimAudioContext(window);
+
+	      shimRTCIceCandidate(window);
+	      shimMaxMessageSize(window, browserDetails);
+	      shimSendThrowTypeError(window);
+	      removeExtmapAllowMixed(window, browserDetails);
+	      break;
+	    default:
+	      logging('Unsupported browser!');
+	      break;
+	  }
+
+	  return adapter;
+	}
+
+	/*
+	 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+	 *
+	 *  Use of this source code is governed by a BSD-style license
+	 *  that can be found in the LICENSE file in the root of the source
+	 *  tree.
+	 */
+
+	adapterFactory({window: typeof window === 'undefined' ? undefined : window});
+
+	/**
+	 * @class AudioTrackConstraints
+	 * @classDesc Constraints for creating an audio MediaStreamTrack.
+	 * @memberof Owt.Base
+	 * @constructor
+	 * @param {Owt.Base.AudioSourceInfo} source Source info of this audio track.
+	 */
+	class AudioTrackConstraints {
+	  // eslint-disable-next-line require-jsdoc
+	  constructor(source) {
+	    if (!Object.values(AudioSourceInfo).some(v => v === source)) {
+	      throw new TypeError('Invalid source.');
+	    }
+	    /**
+	     * @member {string} source
+	     * @memberof Owt.Base.AudioTrackConstraints
+	     * @desc Values could be "mic", "screen-cast", "file" or "mixed".
+	     * @instance
+	     */
+	    this.source = source;
+	    /**
+	     * @member {string} deviceId
+	     * @memberof Owt.Base.AudioTrackConstraints
+	     * @desc Do not provide deviceId if source is not "mic".
+	     * @instance
+	     * @see https://w3c.github.io/mediacapture-main/#def-constraint-deviceId
+	     */
+	    this.deviceId = undefined;
+	  }
+	}
+
+	/**
+	 * @class VideoTrackConstraints
+	 * @classDesc Constraints for creating a video MediaStreamTrack.
+	 * @memberof Owt.Base
+	 * @constructor
+	 * @param {Owt.Base.VideoSourceInfo} source Source info of this video track.
+	 */
+	class VideoTrackConstraints {
+	  // eslint-disable-next-line require-jsdoc
+	  constructor(source) {
+	    if (!Object.values(VideoSourceInfo).some(v => v === source)) {
+	      throw new TypeError('Invalid source.');
+	    }
+	    /**
+	     * @member {string} source
+	     * @memberof Owt.Base.VideoTrackConstraints
+	     * @desc Values could be "camera", "screen-cast", "file" or "mixed".
+	     * @instance
+	     */
+	    this.source = source;
+	    /**
+	     * @member {string} deviceId
+	     * @memberof Owt.Base.VideoTrackConstraints
+	     * @desc Do not provide deviceId if source is not "camera".
+	     * @instance
+	     * @see https://w3c.github.io/mediacapture-main/#def-constraint-deviceId
+	     */
+
+	    this.deviceId = undefined;
+
+	    /**
+	     * @member {Owt.Base.Resolution} resolution
+	     * @memberof Owt.Base.VideoTrackConstraints
+	     * @instance
+	     */
+	    this.resolution = undefined;
+
+	    /**
+	     * @member {number} frameRate
+	     * @memberof Owt.Base.VideoTrackConstraints
+	     * @instance
+	     */
+	    this.frameRate = undefined;
+	  }
+	}
+	/**
+	 * @class StreamConstraints
+	 * @classDesc Constraints for creating a MediaStream from screen mic and camera.
+	 * @memberof Owt.Base
+	 * @constructor
+	 * @param {?Owt.Base.AudioTrackConstraints} audioConstraints
+	 * @param {?Owt.Base.VideoTrackConstraints} videoConstraints
+	 */
+	class StreamConstraints {
+	  // eslint-disable-next-line require-jsdoc
+	  constructor(audioConstraints = false, videoConstraints = false) {
+	    /**
+	     * @member {Owt.Base.MediaStreamTrackDeviceConstraintsForAudio} audio
+	     * @memberof Owt.Base.MediaStreamDeviceConstraints
+	     * @instance
+	     */
+	    this.audio = audioConstraints;
+	    /**
+	     * @member {Owt.Base.MediaStreamTrackDeviceConstraintsForVideo} Video
+	     * @memberof Owt.Base.MediaStreamDeviceConstraints
+	     * @instance
+	     */
+	    this.video = videoConstraints;
+	  }
+	}
+
+	// eslint-disable-next-line require-jsdoc
+	function isVideoConstrainsForScreenCast(constraints) {
+	  return typeof constraints.video === 'object' && constraints.video.source === VideoSourceInfo.SCREENCAST;
+	}
+
+	/**
+	 * @class MediaStreamFactory
+	 * @classDesc A factory to create MediaStream. You can also create MediaStream by yourself.
+	 * @memberof Owt.Base
+	 */
+	class MediaStreamFactory {
+	  /**
+	   * @function createMediaStream
+	   * @static
+	   * @desc Create a MediaStream with given constraints. If you want to create a MediaStream for screen cast, please make sure both audio and video's source are "screen-cast".
+	   * @memberof Owt.Base.MediaStreamFactory
+	   * @return {Promise<MediaStream, Error>} Return a promise that is resolved when stream is successfully created, or rejected if one of the following error happened:
+	   * - One or more parameters cannot be satisfied.
+	   * - Specified device is busy.
+	   * - Cannot obtain necessary permission or operation is canceled by user.
+	   * - Video source is screen cast, while audio source is not.
+	   * - Audio source is screen cast, while video source is disabled.
+	   * @param {Owt.Base.StreamConstraints} constraints
+	   */
+	  static createMediaStream(constraints) {
+	    if (typeof constraints !== 'object' || !constraints.audio && !constraints.video) {
+	      return Promise.reject(new TypeError('Invalid constrains'));
+	    }
+	    if (!isVideoConstrainsForScreenCast(constraints) && typeof constraints.audio === 'object' && constraints.audio.source === AudioSourceInfo.SCREENCAST) {
+	      return Promise.reject(new TypeError('Cannot share screen without video.'));
+	    }
+	    if (isVideoConstrainsForScreenCast(constraints) && !isChrome() && !isFirefox()) {
+	      return Promise.reject(new TypeError('Screen sharing only supports Chrome and Firefox.'));
+	    }
+	    if (isVideoConstrainsForScreenCast(constraints) && typeof constraints.audio === 'object' && constraints.audio.source !== AudioSourceInfo.SCREENCAST) {
+	      return Promise.reject(new TypeError('Cannot capture video from screen cast while capture audio from' + ' other source.'));
+	    }
+
+	    // Check and convert constraints.
+	    if (!constraints.audio && !constraints.video) {
+	      return Promise.reject(new TypeError('At least one of audio and video must be requested.'));
+	    }
+	    const mediaConstraints = Object.create({});
+	    if (typeof constraints.audio === 'object' && constraints.audio.source === AudioSourceInfo.MIC) {
+	      mediaConstraints.audio = Object.create({});
+	      if (isEdge()) {
+	        mediaConstraints.audio.deviceId = constraints.audio.deviceId;
+	      } else {
+	        mediaConstraints.audio.deviceId = {
+	          exact: constraints.audio.deviceId
+	        };
+	      }
+	    } else {
+	      if (constraints.audio.source === AudioSourceInfo.SCREENCAST) {
+	        mediaConstraints.audio = true;
+	      } else {
+	        mediaConstraints.audio = constraints.audio;
+	      }
+	    }
+	    if (typeof constraints.video === 'object') {
+	      mediaConstraints.video = Object.create({});
+	      if (typeof constraints.video.frameRate === 'number') {
+	        mediaConstraints.video.frameRate = constraints.video.frameRate;
+	      }
+	      if (constraints.video.resolution && constraints.video.resolution.width && constraints.video.resolution.height) {
+	        if (constraints.video.source === VideoSourceInfo.SCREENCAST) {
+	          mediaConstraints.video.width = constraints.video.resolution.width;
+	          mediaConstraints.video.height = constraints.video.resolution.height;
+	        } else {
+	          mediaConstraints.video.width = Object.create({});
+	          mediaConstraints.video.width.exact = constraints.video.resolution.width;
+	          mediaConstraints.video.height = Object.create({});
+	          mediaConstraints.video.height.exact = constraints.video.resolution.height;
+	        }
+	      }
+	      if (typeof constraints.video.deviceId === 'string') {
+	        mediaConstraints.video.deviceId = {
+	          exact: constraints.video.deviceId
+	        };
+	      }
+	      if (isFirefox() && constraints.video.source === VideoSourceInfo.SCREENCAST) {
+	        mediaConstraints.video.mediaSource = 'screen';
+	      }
+	    } else {
+	      mediaConstraints.video = constraints.video;
+	    }
+	    if (isVideoConstrainsForScreenCast(constraints)) {
+	      return navigator.mediaDevices.getDisplayMedia(mediaConstraints);
+	    } else {
+	      return navigator.mediaDevices.getUserMedia(mediaConstraints);
+	    }
+	  }
+	}
+
+	// Copyright (C) <2018> Intel Corporation
+
+	var media = /*#__PURE__*/Object.freeze({
+		__proto__: null,
+		AudioTrackConstraints: AudioTrackConstraints,
+		VideoTrackConstraints: VideoTrackConstraints,
+		StreamConstraints: StreamConstraints,
+		MediaStreamFactory: MediaStreamFactory,
+		AudioSourceInfo: AudioSourceInfo,
+		VideoSourceInfo: VideoSourceInfo,
+		TrackKind: TrackKind,
+		Resolution: Resolution
+	});
+
+	let logger;
+	let errorLogger;
+	function setLogger() {
+	  /*eslint-disable */
+	  logger = console.log;
+	  errorLogger = console.error;
+	  /*eslint-enable */
+	}
+	function log(message, ...optionalParams) {
+	  if (logger) {
+	    logger(message, ...optionalParams);
+	  }
+	}
+	function error(message, ...optionalParams) {
+	  if (errorLogger) {
+	    errorLogger(message, ...optionalParams);
+	  }
+	}
+
+	class Event$1 {
+	  constructor(type) {
+	    this.listener = {};
+	    this.type = type | '';
+	  }
+	  on(event, fn) {
+	    if (!this.listener[event]) {
+	      this.listener[event] = [];
+	    }
+	    this.listener[event].push(fn);
+	    return true;
+	  }
+	  off(event, fn) {
+	    if (this.listener[event]) {
+	      var index = this.listener[event].indexOf(fn);
+	      if (index > -1) {
+	        this.listener[event].splice(index, 1);
+	      }
+	      return true;
+	    }
+	    return false;
+	  }
+	  offAll() {
+	    this.listener = {};
+	  }
+	  dispatch(event, data) {
+	    if (this.listener[event]) {
+	      this.listener[event].map(each => {
+	        each.apply(null, [data]);
+	      });
+	      return true;
+	    }
+	    return false;
+	  }
+	}
+
+	var bind = function bind(fn, thisArg) {
+	  return function wrap() {
+	    var args = new Array(arguments.length);
+	    for (var i = 0; i < args.length; i++) {
+	      args[i] = arguments[i];
+	    }
+	    return fn.apply(thisArg, args);
+	  };
+	};
+
+	// utils is a library of generic helper functions non-specific to axios
+
+	var toString = Object.prototype.toString;
+
+	// eslint-disable-next-line func-names
+	var kindOf = (function(cache) {
+	  // eslint-disable-next-line func-names
+	  return function(thing) {
+	    var str = toString.call(thing);
+	    return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
+	  };
+	})(Object.create(null));
+
+	function kindOfTest(type) {
+	  type = type.toLowerCase();
+	  return function isKindOf(thing) {
+	    return kindOf(thing) === type;
+	  };
+	}
+
+	/**
+	 * Determine if a value is an Array
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is an Array, otherwise false
+	 */
+	function isArray(val) {
+	  return Array.isArray(val);
+	}
+
+	/**
+	 * Determine if a value is undefined
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if the value is undefined, otherwise false
+	 */
+	function isUndefined(val) {
+	  return typeof val === 'undefined';
+	}
+
+	/**
+	 * Determine if a value is a Buffer
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Buffer, otherwise false
+	 */
+	function isBuffer(val) {
+	  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
+	    && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
+	}
+
+	/**
+	 * Determine if a value is an ArrayBuffer
+	 *
+	 * @function
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is an ArrayBuffer, otherwise false
+	 */
+	var isArrayBuffer = kindOfTest('ArrayBuffer');
+
+
+	/**
+	 * Determine if a value is a view on an ArrayBuffer
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
+	 */
+	function isArrayBufferView(val) {
+	  var result;
+	  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
+	    result = ArrayBuffer.isView(val);
+	  } else {
+	    result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
+	  }
+	  return result;
+	}
+
+	/**
+	 * Determine if a value is a String
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a String, otherwise false
+	 */
+	function isString(val) {
+	  return typeof val === 'string';
+	}
+
+	/**
+	 * Determine if a value is a Number
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Number, otherwise false
+	 */
+	function isNumber(val) {
+	  return typeof val === 'number';
+	}
+
+	/**
+	 * Determine if a value is an Object
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is an Object, otherwise false
+	 */
+	function isObject(val) {
+	  return val !== null && typeof val === 'object';
+	}
+
+	/**
+	 * Determine if a value is a plain Object
+	 *
+	 * @param {Object} val The value to test
+	 * @return {boolean} True if value is a plain Object, otherwise false
+	 */
+	function isPlainObject(val) {
+	  if (kindOf(val) !== 'object') {
+	    return false;
+	  }
+
+	  var prototype = Object.getPrototypeOf(val);
+	  return prototype === null || prototype === Object.prototype;
+	}
+
+	/**
+	 * Determine if a value is a Date
+	 *
+	 * @function
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Date, otherwise false
+	 */
+	var isDate = kindOfTest('Date');
+
+	/**
+	 * Determine if a value is a File
+	 *
+	 * @function
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a File, otherwise false
+	 */
+	var isFile = kindOfTest('File');
+
+	/**
+	 * Determine if a value is a Blob
+	 *
+	 * @function
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Blob, otherwise false
+	 */
+	var isBlob = kindOfTest('Blob');
+
+	/**
+	 * Determine if a value is a FileList
+	 *
+	 * @function
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a File, otherwise false
+	 */
+	var isFileList = kindOfTest('FileList');
+
+	/**
+	 * Determine if a value is a Function
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Function, otherwise false
+	 */
+	function isFunction(val) {
+	  return toString.call(val) === '[object Function]';
+	}
+
+	/**
+	 * Determine if a value is a Stream
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Stream, otherwise false
+	 */
+	function isStream(val) {
+	  return isObject(val) && isFunction(val.pipe);
+	}
+
+	/**
+	 * Determine if a value is a FormData
+	 *
+	 * @param {Object} thing The value to test
+	 * @returns {boolean} True if value is an FormData, otherwise false
+	 */
+	function isFormData(thing) {
+	  var pattern = '[object FormData]';
+	  return thing && (
+	    (typeof FormData === 'function' && thing instanceof FormData) ||
+	    toString.call(thing) === pattern ||
+	    (isFunction(thing.toString) && thing.toString() === pattern)
+	  );
+	}
+
+	/**
+	 * Determine if a value is a URLSearchParams object
+	 * @function
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a URLSearchParams object, otherwise false
+	 */
+	var isURLSearchParams = kindOfTest('URLSearchParams');
+
+	/**
+	 * Trim excess whitespace off the beginning and end of a string
+	 *
+	 * @param {String} str The String to trim
+	 * @returns {String} The String freed of excess whitespace
+	 */
+	function trim(str) {
+	  return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
+	}
+
+	/**
+	 * Determine if we're running in a standard browser environment
+	 *
+	 * This allows axios to run in a web worker, and react-native.
+	 * Both environments support XMLHttpRequest, but not fully standard globals.
+	 *
+	 * web workers:
+	 *  typeof window -> undefined
+	 *  typeof document -> undefined
+	 *
+	 * react-native:
+	 *  navigator.product -> 'ReactNative'
+	 * nativescript
+	 *  navigator.product -> 'NativeScript' or 'NS'
+	 */
+	function isStandardBrowserEnv() {
+	  if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
+	                                           navigator.product === 'NativeScript' ||
+	                                           navigator.product === 'NS')) {
+	    return false;
+	  }
+	  return (
+	    typeof window !== 'undefined' &&
+	    typeof document !== 'undefined'
+	  );
+	}
+
+	/**
+	 * Iterate over an Array or an Object invoking a function for each item.
+	 *
+	 * If `obj` is an Array callback will be called passing
+	 * the value, index, and complete array for each item.
+	 *
+	 * If 'obj' is an Object callback will be called passing
+	 * the value, key, and complete object for each property.
+	 *
+	 * @param {Object|Array} obj The object to iterate
+	 * @param {Function} fn The callback to invoke for each item
+	 */
+	function forEach(obj, fn) {
+	  // Don't bother if no value provided
+	  if (obj === null || typeof obj === 'undefined') {
+	    return;
+	  }
+
+	  // Force an array if not already something iterable
+	  if (typeof obj !== 'object') {
+	    /*eslint no-param-reassign:0*/
+	    obj = [obj];
+	  }
+
+	  if (isArray(obj)) {
+	    // Iterate over array values
+	    for (var i = 0, l = obj.length; i < l; i++) {
+	      fn.call(null, obj[i], i, obj);
+	    }
+	  } else {
+	    // Iterate over object keys
+	    for (var key in obj) {
+	      if (Object.prototype.hasOwnProperty.call(obj, key)) {
+	        fn.call(null, obj[key], key, obj);
+	      }
+	    }
+	  }
+	}
+
+	/**
+	 * Accepts varargs expecting each argument to be an object, then
+	 * immutably merges the properties of each object and returns result.
+	 *
+	 * When multiple objects contain the same key the later object in
+	 * the arguments list will take precedence.
+	 *
+	 * Example:
+	 *
+	 * ```js
+	 * var result = merge({foo: 123}, {foo: 456});
+	 * console.log(result.foo); // outputs 456
+	 * ```
+	 *
+	 * @param {Object} obj1 Object to merge
+	 * @returns {Object} Result of all merge properties
+	 */
+	function merge(/* obj1, obj2, obj3, ... */) {
+	  var result = {};
+	  function assignValue(val, key) {
+	    if (isPlainObject(result[key]) && isPlainObject(val)) {
+	      result[key] = merge(result[key], val);
+	    } else if (isPlainObject(val)) {
+	      result[key] = merge({}, val);
+	    } else if (isArray(val)) {
+	      result[key] = val.slice();
+	    } else {
+	      result[key] = val;
+	    }
+	  }
+
+	  for (var i = 0, l = arguments.length; i < l; i++) {
+	    forEach(arguments[i], assignValue);
+	  }
+	  return result;
+	}
+
+	/**
+	 * Extends object a by mutably adding to it the properties of object b.
+	 *
+	 * @param {Object} a The object to be extended
+	 * @param {Object} b The object to copy properties from
+	 * @param {Object} thisArg The object to bind function to
+	 * @return {Object} The resulting value of object a
+	 */
+	function extend(a, b, thisArg) {
+	  forEach(b, function assignValue(val, key) {
+	    if (thisArg && typeof val === 'function') {
+	      a[key] = bind(val, thisArg);
+	    } else {
+	      a[key] = val;
+	    }
+	  });
+	  return a;
+	}
+
+	/**
+	 * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
+	 *
+	 * @param {string} content with BOM
+	 * @return {string} content value without BOM
+	 */
+	function stripBOM(content) {
+	  if (content.charCodeAt(0) === 0xFEFF) {
+	    content = content.slice(1);
+	  }
+	  return content;
+	}
+
+	/**
+	 * Inherit the prototype methods from one constructor into another
+	 * @param {function} constructor
+	 * @param {function} superConstructor
+	 * @param {object} [props]
+	 * @param {object} [descriptors]
+	 */
+
+	function inherits(constructor, superConstructor, props, descriptors) {
+	  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
+	  constructor.prototype.constructor = constructor;
+	  props && Object.assign(constructor.prototype, props);
+	}
+
+	/**
+	 * Resolve object with deep prototype chain to a flat object
+	 * @param {Object} sourceObj source object
+	 * @param {Object} [destObj]
+	 * @param {Function} [filter]
+	 * @returns {Object}
+	 */
+
+	function toFlatObject(sourceObj, destObj, filter) {
+	  var props;
+	  var i;
+	  var prop;
+	  var merged = {};
+
+	  destObj = destObj || {};
+
+	  do {
+	    props = Object.getOwnPropertyNames(sourceObj);
+	    i = props.length;
+	    while (i-- > 0) {
+	      prop = props[i];
+	      if (!merged[prop]) {
+	        destObj[prop] = sourceObj[prop];
+	        merged[prop] = true;
+	      }
+	    }
+	    sourceObj = Object.getPrototypeOf(sourceObj);
+	  } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
+
+	  return destObj;
+	}
+
+	/*
+	 * determines whether a string ends with the characters of a specified string
+	 * @param {String} str
+	 * @param {String} searchString
+	 * @param {Number} [position= 0]
+	 * @returns {boolean}
+	 */
+	function endsWith(str, searchString, position) {
+	  str = String(str);
+	  if (position === undefined || position > str.length) {
+	    position = str.length;
+	  }
+	  position -= searchString.length;
+	  var lastIndex = str.indexOf(searchString, position);
+	  return lastIndex !== -1 && lastIndex === position;
+	}
+
+
+	/**
+	 * Returns new array from array like object
+	 * @param {*} [thing]
+	 * @returns {Array}
+	 */
+	function toArray(thing) {
+	  if (!thing) return null;
+	  var i = thing.length;
+	  if (isUndefined(i)) return null;
+	  var arr = new Array(i);
+	  while (i-- > 0) {
+	    arr[i] = thing[i];
+	  }
+	  return arr;
+	}
+
+	// eslint-disable-next-line func-names
+	var isTypedArray = (function(TypedArray) {
+	  // eslint-disable-next-line func-names
+	  return function(thing) {
+	    return TypedArray && thing instanceof TypedArray;
+	  };
+	})(typeof Uint8Array !== 'undefined' && Object.getPrototypeOf(Uint8Array));
+
+	var utils = {
+	  isArray: isArray,
+	  isArrayBuffer: isArrayBuffer,
+	  isBuffer: isBuffer,
+	  isFormData: isFormData,
+	  isArrayBufferView: isArrayBufferView,
+	  isString: isString,
+	  isNumber: isNumber,
+	  isObject: isObject,
+	  isPlainObject: isPlainObject,
+	  isUndefined: isUndefined,
+	  isDate: isDate,
+	  isFile: isFile,
+	  isBlob: isBlob,
+	  isFunction: isFunction,
+	  isStream: isStream,
+	  isURLSearchParams: isURLSearchParams,
+	  isStandardBrowserEnv: isStandardBrowserEnv,
+	  forEach: forEach,
+	  merge: merge,
+	  extend: extend,
+	  trim: trim,
+	  stripBOM: stripBOM,
+	  inherits: inherits,
+	  toFlatObject: toFlatObject,
+	  kindOf: kindOf,
+	  kindOfTest: kindOfTest,
+	  endsWith: endsWith,
+	  toArray: toArray,
+	  isTypedArray: isTypedArray,
+	  isFileList: isFileList
+	};
+
+	function encode(val) {
+	  return encodeURIComponent(val).
+	    replace(/%3A/gi, ':').
+	    replace(/%24/g, '$').
+	    replace(/%2C/gi, ',').
+	    replace(/%20/g, '+').
+	    replace(/%5B/gi, '[').
+	    replace(/%5D/gi, ']');
+	}
+
+	/**
+	 * Build a URL by appending params to the end
+	 *
+	 * @param {string} url The base of the url (e.g., http://www.google.com)
+	 * @param {object} [params] The params to be appended
+	 * @returns {string} The formatted url
+	 */
+	var buildURL = function buildURL(url, params, paramsSerializer) {
+	  /*eslint no-param-reassign:0*/
+	  if (!params) {
+	    return url;
+	  }
+
+	  var serializedParams;
+	  if (paramsSerializer) {
+	    serializedParams = paramsSerializer(params);
+	  } else if (utils.isURLSearchParams(params)) {
+	    serializedParams = params.toString();
+	  } else {
+	    var parts = [];
+
+	    utils.forEach(params, function serialize(val, key) {
+	      if (val === null || typeof val === 'undefined') {
+	        return;
+	      }
+
+	      if (utils.isArray(val)) {
+	        key = key + '[]';
+	      } else {
+	        val = [val];
+	      }
+
+	      utils.forEach(val, function parseValue(v) {
+	        if (utils.isDate(v)) {
+	          v = v.toISOString();
+	        } else if (utils.isObject(v)) {
+	          v = JSON.stringify(v);
+	        }
+	        parts.push(encode(key) + '=' + encode(v));
+	      });
+	    });
+
+	    serializedParams = parts.join('&');
+	  }
+
+	  if (serializedParams) {
+	    var hashmarkIndex = url.indexOf('#');
+	    if (hashmarkIndex !== -1) {
+	      url = url.slice(0, hashmarkIndex);
+	    }
+
+	    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
+	  }
+
+	  return url;
+	};
+
+	function InterceptorManager() {
+	  this.handlers = [];
+	}
+
+	/**
+	 * Add a new interceptor to the stack
+	 *
+	 * @param {Function} fulfilled The function to handle `then` for a `Promise`
+	 * @param {Function} rejected The function to handle `reject` for a `Promise`
+	 *
+	 * @return {Number} An ID used to remove interceptor later
+	 */
+	InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
+	  this.handlers.push({
+	    fulfilled: fulfilled,
+	    rejected: rejected,
+	    synchronous: options ? options.synchronous : false,
+	    runWhen: options ? options.runWhen : null
+	  });
+	  return this.handlers.length - 1;
+	};
+
+	/**
+	 * Remove an interceptor from the stack
+	 *
+	 * @param {Number} id The ID that was returned by `use`
+	 */
+	InterceptorManager.prototype.eject = function eject(id) {
+	  if (this.handlers[id]) {
+	    this.handlers[id] = null;
+	  }
+	};
+
+	/**
+	 * Iterate over all the registered interceptors
+	 *
+	 * This method is particularly useful for skipping over any
+	 * interceptors that may have become `null` calling `eject`.
+	 *
+	 * @param {Function} fn The function to call for each interceptor
+	 */
+	InterceptorManager.prototype.forEach = function forEach(fn) {
+	  utils.forEach(this.handlers, function forEachHandler(h) {
+	    if (h !== null) {
+	      fn(h);
+	    }
+	  });
+	};
+
+	var InterceptorManager_1 = InterceptorManager;
+
+	var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
+	  utils.forEach(headers, function processHeader(value, name) {
+	    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
+	      headers[normalizedName] = value;
+	      delete headers[name];
+	    }
+	  });
+	};
+
+	/**
+	 * Create an Error with the specified message, config, error code, request and response.
+	 *
+	 * @param {string} message The error message.
+	 * @param {string} [code] The error code (for example, 'ECONNABORTED').
+	 * @param {Object} [config] The config.
+	 * @param {Object} [request] The request.
+	 * @param {Object} [response] The response.
+	 * @returns {Error} The created error.
+	 */
+	function AxiosError(message, code, config, request, response) {
+	  Error.call(this);
+	  this.message = message;
+	  this.name = 'AxiosError';
+	  code && (this.code = code);
+	  config && (this.config = config);
+	  request && (this.request = request);
+	  response && (this.response = response);
+	}
+
+	utils.inherits(AxiosError, Error, {
+	  toJSON: function toJSON() {
+	    return {
+	      // Standard
+	      message: this.message,
+	      name: this.name,
+	      // Microsoft
+	      description: this.description,
+	      number: this.number,
+	      // Mozilla
+	      fileName: this.fileName,
+	      lineNumber: this.lineNumber,
+	      columnNumber: this.columnNumber,
+	      stack: this.stack,
+	      // Axios
+	      config: this.config,
+	      code: this.code,
+	      status: this.response && this.response.status ? this.response.status : null
+	    };
+	  }
+	});
+
+	var prototype = AxiosError.prototype;
+	var descriptors = {};
+
+	[
+	  'ERR_BAD_OPTION_VALUE',
+	  'ERR_BAD_OPTION',
+	  'ECONNABORTED',
+	  'ETIMEDOUT',
+	  'ERR_NETWORK',
+	  'ERR_FR_TOO_MANY_REDIRECTS',
+	  'ERR_DEPRECATED',
+	  'ERR_BAD_RESPONSE',
+	  'ERR_BAD_REQUEST',
+	  'ERR_CANCELED'
+	// eslint-disable-next-line func-names
+	].forEach(function(code) {
+	  descriptors[code] = {value: code};
+	});
+
+	Object.defineProperties(AxiosError, descriptors);
+	Object.defineProperty(prototype, 'isAxiosError', {value: true});
+
+	// eslint-disable-next-line func-names
+	AxiosError.from = function(error, code, config, request, response, customProps) {
+	  var axiosError = Object.create(prototype);
+
+	  utils.toFlatObject(error, axiosError, function filter(obj) {
+	    return obj !== Error.prototype;
+	  });
+
+	  AxiosError.call(axiosError, error.message, code, config, request, response);
+
+	  axiosError.name = error.name;
+
+	  customProps && Object.assign(axiosError, customProps);
+
+	  return axiosError;
+	};
+
+	var AxiosError_1 = AxiosError;
+
+	var transitional = {
+	  silentJSONParsing: true,
+	  forcedJSONParsing: true,
+	  clarifyTimeoutError: false
+	};
+
+	/**
+	 * Convert a data object to FormData
+	 * @param {Object} obj
+	 * @param {?Object} [formData]
+	 * @returns {Object}
+	 **/
+
+	function toFormData(obj, formData) {
+	  // eslint-disable-next-line no-param-reassign
+	  formData = formData || new FormData();
+
+	  var stack = [];
+
+	  function convertValue(value) {
+	    if (value === null) return '';
+
+	    if (utils.isDate(value)) {
+	      return value.toISOString();
+	    }
+
+	    if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
+	      return typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
+	    }
+
+	    return value;
+	  }
+
+	  function build(data, parentKey) {
+	    if (utils.isPlainObject(data) || utils.isArray(data)) {
+	      if (stack.indexOf(data) !== -1) {
+	        throw Error('Circular reference detected in ' + parentKey);
+	      }
+
+	      stack.push(data);
+
+	      utils.forEach(data, function each(value, key) {
+	        if (utils.isUndefined(value)) return;
+	        var fullKey = parentKey ? parentKey + '.' + key : key;
+	        var arr;
+
+	        if (value && !parentKey && typeof value === 'object') {
+	          if (utils.endsWith(key, '{}')) {
+	            // eslint-disable-next-line no-param-reassign
+	            value = JSON.stringify(value);
+	          } else if (utils.endsWith(key, '[]') && (arr = utils.toArray(value))) {
+	            // eslint-disable-next-line func-names
+	            arr.forEach(function(el) {
+	              !utils.isUndefined(el) && formData.append(fullKey, convertValue(el));
+	            });
+	            return;
+	          }
+	        }
+
+	        build(value, fullKey);
+	      });
+
+	      stack.pop();
+	    } else {
+	      formData.append(parentKey, convertValue(data));
+	    }
+	  }
+
+	  build(obj);
+
+	  return formData;
+	}
+
+	var toFormData_1 = toFormData;
+
+	/**
+	 * Resolve or reject a Promise based on response status.
+	 *
+	 * @param {Function} resolve A function that resolves the promise.
+	 * @param {Function} reject A function that rejects the promise.
+	 * @param {object} response The response.
+	 */
+	var settle = function settle(resolve, reject, response) {
+	  var validateStatus = response.config.validateStatus;
+	  if (!response.status || !validateStatus || validateStatus(response.status)) {
+	    resolve(response);
+	  } else {
+	    reject(new AxiosError_1(
+	      'Request failed with status code ' + response.status,
+	      [AxiosError_1.ERR_BAD_REQUEST, AxiosError_1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
+	      response.config,
+	      response.request,
+	      response
+	    ));
+	  }
+	};
+
+	var cookies = (
+	  utils.isStandardBrowserEnv() ?
+
+	  // Standard browser envs support document.cookie
+	    (function standardBrowserEnv() {
+	      return {
+	        write: function write(name, value, expires, path, domain, secure) {
+	          var cookie = [];
+	          cookie.push(name + '=' + encodeURIComponent(value));
+
+	          if (utils.isNumber(expires)) {
+	            cookie.push('expires=' + new Date(expires).toGMTString());
+	          }
+
+	          if (utils.isString(path)) {
+	            cookie.push('path=' + path);
+	          }
+
+	          if (utils.isString(domain)) {
+	            cookie.push('domain=' + domain);
+	          }
+
+	          if (secure === true) {
+	            cookie.push('secure');
+	          }
+
+	          document.cookie = cookie.join('; ');
+	        },
+
+	        read: function read(name) {
+	          var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
+	          return (match ? decodeURIComponent(match[3]) : null);
+	        },
+
+	        remove: function remove(name) {
+	          this.write(name, '', Date.now() - 86400000);
+	        }
+	      };
+	    })() :
+
+	  // Non standard browser env (web workers, react-native) lack needed support.
+	    (function nonStandardBrowserEnv() {
+	      return {
+	        write: function write() {},
+	        read: function read() { return null; },
+	        remove: function remove() {}
+	      };
+	    })()
+	);
+
+	/**
+	 * Determines whether the specified URL is absolute
+	 *
+	 * @param {string} url The URL to test
+	 * @returns {boolean} True if the specified URL is absolute, otherwise false
+	 */
+	var isAbsoluteURL = function isAbsoluteURL(url) {
+	  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
+	  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
+	  // by any combination of letters, digits, plus, period, or hyphen.
+	  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
+	};
+
+	/**
+	 * Creates a new URL by combining the specified URLs
+	 *
+	 * @param {string} baseURL The base URL
+	 * @param {string} relativeURL The relative URL
+	 * @returns {string} The combined URL
+	 */
+	var combineURLs = function combineURLs(baseURL, relativeURL) {
+	  return relativeURL
+	    ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
+	    : baseURL;
+	};
+
+	/**
+	 * Creates a new URL by combining the baseURL with the requestedURL,
+	 * only when the requestedURL is not already an absolute URL.
+	 * If the requestURL is absolute, this function returns the requestedURL untouched.
+	 *
+	 * @param {string} baseURL The base URL
+	 * @param {string} requestedURL Absolute or relative URL to combine
+	 * @returns {string} The combined full path
+	 */
+	var buildFullPath = function buildFullPath(baseURL, requestedURL) {
+	  if (baseURL && !isAbsoluteURL(requestedURL)) {
+	    return combineURLs(baseURL, requestedURL);
+	  }
+	  return requestedURL;
+	};
+
+	// Headers whose duplicates are ignored by node
+	// c.f. https://nodejs.org/api/http.html#http_message_headers
+	var ignoreDuplicateOf = [
+	  'age', 'authorization', 'content-length', 'content-type', 'etag',
+	  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
+	  'last-modified', 'location', 'max-forwards', 'proxy-authorization',
+	  'referer', 'retry-after', 'user-agent'
+	];
+
+	/**
+	 * Parse headers into an object
+	 *
+	 * ```
+	 * Date: Wed, 27 Aug 2014 08:58:49 GMT
+	 * Content-Type: application/json
+	 * Connection: keep-alive
+	 * Transfer-Encoding: chunked
+	 * ```
+	 *
+	 * @param {String} headers Headers needing to be parsed
+	 * @returns {Object} Headers parsed into an object
+	 */
+	var parseHeaders = function parseHeaders(headers) {
+	  var parsed = {};
+	  var key;
+	  var val;
+	  var i;
+
+	  if (!headers) { return parsed; }
+
+	  utils.forEach(headers.split('\n'), function parser(line) {
+	    i = line.indexOf(':');
+	    key = utils.trim(line.substr(0, i)).toLowerCase();
+	    val = utils.trim(line.substr(i + 1));
+
+	    if (key) {
+	      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
+	        return;
+	      }
+	      if (key === 'set-cookie') {
+	        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
+	      } else {
+	        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
+	      }
+	    }
+	  });
+
+	  return parsed;
+	};
+
+	var isURLSameOrigin = (
+	  utils.isStandardBrowserEnv() ?
+
+	  // Standard browser envs have full support of the APIs needed to test
+	  // whether the request URL is of the same origin as current location.
+	    (function standardBrowserEnv() {
+	      var msie = /(msie|trident)/i.test(navigator.userAgent);
+	      var urlParsingNode = document.createElement('a');
+	      var originURL;
+
+	      /**
+	    * Parse a URL to discover it's components
+	    *
+	    * @param {String} url The URL to be parsed
+	    * @returns {Object}
+	    */
+	      function resolveURL(url) {
+	        var href = url;
+
+	        if (msie) {
+	        // IE needs attribute set twice to normalize properties
+	          urlParsingNode.setAttribute('href', href);
+	          href = urlParsingNode.href;
+	        }
+
+	        urlParsingNode.setAttribute('href', href);
+
+	        // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
+	        return {
+	          href: urlParsingNode.href,
+	          protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
+	          host: urlParsingNode.host,
+	          search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
+	          hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
+	          hostname: urlParsingNode.hostname,
+	          port: urlParsingNode.port,
+	          pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
+	            urlParsingNode.pathname :
+	            '/' + urlParsingNode.pathname
+	        };
+	      }
+
+	      originURL = resolveURL(window.location.href);
+
+	      /**
+	    * Determine if a URL shares the same origin as the current location
+	    *
+	    * @param {String} requestURL The URL to test
+	    * @returns {boolean} True if URL shares the same origin, otherwise false
+	    */
+	      return function isURLSameOrigin(requestURL) {
+	        var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
+	        return (parsed.protocol === originURL.protocol &&
+	            parsed.host === originURL.host);
+	      };
+	    })() :
+
+	  // Non standard browser envs (web workers, react-native) lack needed support.
+	    (function nonStandardBrowserEnv() {
+	      return function isURLSameOrigin() {
+	        return true;
+	      };
+	    })()
+	);
+
+	/**
+	 * A `CanceledError` is an object that is thrown when an operation is canceled.
+	 *
+	 * @class
+	 * @param {string=} message The message.
+	 */
+	function CanceledError(message) {
+	  // eslint-disable-next-line no-eq-null,eqeqeq
+	  AxiosError_1.call(this, message == null ? 'canceled' : message, AxiosError_1.ERR_CANCELED);
+	  this.name = 'CanceledError';
+	}
+
+	utils.inherits(CanceledError, AxiosError_1, {
+	  __CANCEL__: true
+	});
+
+	var CanceledError_1 = CanceledError;
+
+	var parseProtocol = function parseProtocol(url) {
+	  var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
+	  return match && match[1] || '';
+	};
+
+	var xhr = function xhrAdapter(config) {
+	  return new Promise(function dispatchXhrRequest(resolve, reject) {
+	    var requestData = config.data;
+	    var requestHeaders = config.headers;
+	    var responseType = config.responseType;
+	    var onCanceled;
+	    function done() {
+	      if (config.cancelToken) {
+	        config.cancelToken.unsubscribe(onCanceled);
+	      }
+
+	      if (config.signal) {
+	        config.signal.removeEventListener('abort', onCanceled);
+	      }
+	    }
+
+	    if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {
+	      delete requestHeaders['Content-Type']; // Let the browser set it
+	    }
+
+	    var request = new XMLHttpRequest();
+
+	    // HTTP basic authentication
+	    if (config.auth) {
+	      var username = config.auth.username || '';
+	      var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
+	      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
+	    }
+
+	    var fullPath = buildFullPath(config.baseURL, config.url);
+
+	    request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
+
+	    // Set the request timeout in MS
+	    request.timeout = config.timeout;
+
+	    function onloadend() {
+	      if (!request) {
+	        return;
+	      }
+	      // Prepare the response
+	      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
+	      var responseData = !responseType || responseType === 'text' ||  responseType === 'json' ?
+	        request.responseText : request.response;
+	      var response = {
+	        data: responseData,
+	        status: request.status,
+	        statusText: request.statusText,
+	        headers: responseHeaders,
+	        config: config,
+	        request: request
+	      };
+
+	      settle(function _resolve(value) {
+	        resolve(value);
+	        done();
+	      }, function _reject(err) {
+	        reject(err);
+	        done();
+	      }, response);
+
+	      // Clean up request
+	      request = null;
+	    }
+
+	    if ('onloadend' in request) {
+	      // Use onloadend if available
+	      request.onloadend = onloadend;
+	    } else {
+	      // Listen for ready state to emulate onloadend
+	      request.onreadystatechange = function handleLoad() {
+	        if (!request || request.readyState !== 4) {
+	          return;
+	        }
+
+	        // The request errored out and we didn't get a response, this will be
+	        // handled by onerror instead
+	        // With one exception: request that using file: protocol, most browsers
+	        // will return status as 0 even though it's a successful request
+	        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
+	          return;
+	        }
+	        // readystate handler is calling before onerror or ontimeout handlers,
+	        // so we should call onloadend on the next 'tick'
+	        setTimeout(onloadend);
+	      };
+	    }
+
+	    // Handle browser request cancellation (as opposed to a manual cancellation)
+	    request.onabort = function handleAbort() {
+	      if (!request) {
+	        return;
+	      }
+
+	      reject(new AxiosError_1('Request aborted', AxiosError_1.ECONNABORTED, config, request));
+
+	      // Clean up request
+	      request = null;
+	    };
+
+	    // Handle low level network errors
+	    request.onerror = function handleError() {
+	      // Real errors are hidden from us by the browser
+	      // onerror should only fire if it's a network error
+	      reject(new AxiosError_1('Network Error', AxiosError_1.ERR_NETWORK, config, request, request));
+
+	      // Clean up request
+	      request = null;
+	    };
+
+	    // Handle timeout
+	    request.ontimeout = function handleTimeout() {
+	      var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
+	      var transitional$1 = config.transitional || transitional;
+	      if (config.timeoutErrorMessage) {
+	        timeoutErrorMessage = config.timeoutErrorMessage;
+	      }
+	      reject(new AxiosError_1(
+	        timeoutErrorMessage,
+	        transitional$1.clarifyTimeoutError ? AxiosError_1.ETIMEDOUT : AxiosError_1.ECONNABORTED,
+	        config,
+	        request));
+
+	      // Clean up request
+	      request = null;
+	    };
+
+	    // Add xsrf header
+	    // This is only done if running in a standard browser environment.
+	    // Specifically not if we're in a web worker, or react-native.
+	    if (utils.isStandardBrowserEnv()) {
+	      // Add xsrf header
+	      var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
+	        cookies.read(config.xsrfCookieName) :
+	        undefined;
+
+	      if (xsrfValue) {
+	        requestHeaders[config.xsrfHeaderName] = xsrfValue;
+	      }
+	    }
+
+	    // Add headers to the request
+	    if ('setRequestHeader' in request) {
+	      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
+	        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
+	          // Remove Content-Type if data is undefined
+	          delete requestHeaders[key];
+	        } else {
+	          // Otherwise add header to the request
+	          request.setRequestHeader(key, val);
+	        }
+	      });
+	    }
+
+	    // Add withCredentials to request if needed
+	    if (!utils.isUndefined(config.withCredentials)) {
+	      request.withCredentials = !!config.withCredentials;
+	    }
+
+	    // Add responseType to request if needed
+	    if (responseType && responseType !== 'json') {
+	      request.responseType = config.responseType;
+	    }
+
+	    // Handle progress if needed
+	    if (typeof config.onDownloadProgress === 'function') {
+	      request.addEventListener('progress', config.onDownloadProgress);
+	    }
+
+	    // Not all browsers support upload events
+	    if (typeof config.onUploadProgress === 'function' && request.upload) {
+	      request.upload.addEventListener('progress', config.onUploadProgress);
+	    }
+
+	    if (config.cancelToken || config.signal) {
+	      // Handle cancellation
+	      // eslint-disable-next-line func-names
+	      onCanceled = function(cancel) {
+	        if (!request) {
+	          return;
+	        }
+	        reject(!cancel || (cancel && cancel.type) ? new CanceledError_1() : cancel);
+	        request.abort();
+	        request = null;
+	      };
+
+	      config.cancelToken && config.cancelToken.subscribe(onCanceled);
+	      if (config.signal) {
+	        config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
+	      }
+	    }
+
+	    if (!requestData) {
+	      requestData = null;
+	    }
+
+	    var protocol = parseProtocol(fullPath);
+
+	    if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) {
+	      reject(new AxiosError_1('Unsupported protocol ' + protocol + ':', AxiosError_1.ERR_BAD_REQUEST, config));
+	      return;
+	    }
+
+
+	    // Send the request
+	    request.send(requestData);
+	  });
+	};
+
+	// eslint-disable-next-line strict
+	var _null = null;
+
+	var DEFAULT_CONTENT_TYPE = {
+	  'Content-Type': 'application/x-www-form-urlencoded'
+	};
+
+	function setContentTypeIfUnset(headers, value) {
+	  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
+	    headers['Content-Type'] = value;
+	  }
+	}
+
+	function getDefaultAdapter() {
+	  var adapter;
+	  if (typeof XMLHttpRequest !== 'undefined') {
+	    // For browsers use XHR adapter
+	    adapter = xhr;
+	  } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
+	    // For node use HTTP adapter
+	    adapter = xhr;
+	  }
+	  return adapter;
+	}
+
+	function stringifySafely(rawValue, parser, encoder) {
+	  if (utils.isString(rawValue)) {
+	    try {
+	      (parser || JSON.parse)(rawValue);
+	      return utils.trim(rawValue);
+	    } catch (e) {
+	      if (e.name !== 'SyntaxError') {
+	        throw e;
+	      }
+	    }
+	  }
+
+	  return (encoder || JSON.stringify)(rawValue);
+	}
+
+	var defaults = {
+
+	  transitional: transitional,
+
+	  adapter: getDefaultAdapter(),
+
+	  transformRequest: [function transformRequest(data, headers) {
+	    normalizeHeaderName(headers, 'Accept');
+	    normalizeHeaderName(headers, 'Content-Type');
+
+	    if (utils.isFormData(data) ||
+	      utils.isArrayBuffer(data) ||
+	      utils.isBuffer(data) ||
+	      utils.isStream(data) ||
+	      utils.isFile(data) ||
+	      utils.isBlob(data)
+	    ) {
+	      return data;
+	    }
+	    if (utils.isArrayBufferView(data)) {
+	      return data.buffer;
+	    }
+	    if (utils.isURLSearchParams(data)) {
+	      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
+	      return data.toString();
+	    }
+
+	    var isObjectPayload = utils.isObject(data);
+	    var contentType = headers && headers['Content-Type'];
+
+	    var isFileList;
+
+	    if ((isFileList = utils.isFileList(data)) || (isObjectPayload && contentType === 'multipart/form-data')) {
+	      var _FormData = this.env && this.env.FormData;
+	      return toFormData_1(isFileList ? {'files[]': data} : data, _FormData && new _FormData());
+	    } else if (isObjectPayload || contentType === 'application/json') {
+	      setContentTypeIfUnset(headers, 'application/json');
+	      return stringifySafely(data);
+	    }
+
+	    return data;
+	  }],
+
+	  transformResponse: [function transformResponse(data) {
+	    var transitional = this.transitional || defaults.transitional;
+	    var silentJSONParsing = transitional && transitional.silentJSONParsing;
+	    var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
+	    var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
+
+	    if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
+	      try {
+	        return JSON.parse(data);
+	      } catch (e) {
+	        if (strictJSONParsing) {
+	          if (e.name === 'SyntaxError') {
+	            throw AxiosError_1.from(e, AxiosError_1.ERR_BAD_RESPONSE, this, null, this.response);
+	          }
+	          throw e;
+	        }
+	      }
+	    }
+
+	    return data;
+	  }],
+
+	  /**
+	   * A timeout in milliseconds to abort a request. If set to 0 (default) a
+	   * timeout is not created.
+	   */
+	  timeout: 0,
+
+	  xsrfCookieName: 'XSRF-TOKEN',
+	  xsrfHeaderName: 'X-XSRF-TOKEN',
+
+	  maxContentLength: -1,
+	  maxBodyLength: -1,
+
+	  env: {
+	    FormData: _null
+	  },
+
+	  validateStatus: function validateStatus(status) {
+	    return status >= 200 && status < 300;
+	  },
+
+	  headers: {
+	    common: {
+	      'Accept': 'application/json, text/plain, */*'
+	    }
+	  }
+	};
+
+	utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
+	  defaults.headers[method] = {};
+	});
+
+	utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+	  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
+	});
+
+	var defaults_1 = defaults;
+
+	/**
+	 * Transform the data for a request or a response
+	 *
+	 * @param {Object|String} data The data to be transformed
+	 * @param {Array} headers The headers for the request or response
+	 * @param {Array|Function} fns A single function or Array of functions
+	 * @returns {*} The resulting transformed data
+	 */
+	var transformData = function transformData(data, headers, fns) {
+	  var context = this || defaults_1;
+	  /*eslint no-param-reassign:0*/
+	  utils.forEach(fns, function transform(fn) {
+	    data = fn.call(context, data, headers);
+	  });
+
+	  return data;
+	};
+
+	var isCancel = function isCancel(value) {
+	  return !!(value && value.__CANCEL__);
+	};
+
+	/**
+	 * Throws a `CanceledError` if cancellation has been requested.
+	 */
+	function throwIfCancellationRequested(config) {
+	  if (config.cancelToken) {
+	    config.cancelToken.throwIfRequested();
+	  }
+
+	  if (config.signal && config.signal.aborted) {
+	    throw new CanceledError_1();
+	  }
+	}
+
+	/**
+	 * Dispatch a request to the server using the configured adapter.
+	 *
+	 * @param {object} config The config that is to be used for the request
+	 * @returns {Promise} The Promise to be fulfilled
+	 */
+	var dispatchRequest = function dispatchRequest(config) {
+	  throwIfCancellationRequested(config);
+
+	  // Ensure headers exist
+	  config.headers = config.headers || {};
+
+	  // Transform request data
+	  config.data = transformData.call(
+	    config,
+	    config.data,
+	    config.headers,
+	    config.transformRequest
+	  );
+
+	  // Flatten headers
+	  config.headers = utils.merge(
+	    config.headers.common || {},
+	    config.headers[config.method] || {},
+	    config.headers
+	  );
+
+	  utils.forEach(
+	    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
+	    function cleanHeaderConfig(method) {
+	      delete config.headers[method];
+	    }
+	  );
+
+	  var adapter = config.adapter || defaults_1.adapter;
+
+	  return adapter(config).then(function onAdapterResolution(response) {
+	    throwIfCancellationRequested(config);
+
+	    // Transform response data
+	    response.data = transformData.call(
+	      config,
+	      response.data,
+	      response.headers,
+	      config.transformResponse
+	    );
+
+	    return response;
+	  }, function onAdapterRejection(reason) {
+	    if (!isCancel(reason)) {
+	      throwIfCancellationRequested(config);
+
+	      // Transform response data
+	      if (reason && reason.response) {
+	        reason.response.data = transformData.call(
+	          config,
+	          reason.response.data,
+	          reason.response.headers,
+	          config.transformResponse
+	        );
+	      }
+	    }
+
+	    return Promise.reject(reason);
+	  });
+	};
+
+	/**
+	 * Config-specific merge-function which creates a new config-object
+	 * by merging two configuration objects together.
+	 *
+	 * @param {Object} config1
+	 * @param {Object} config2
+	 * @returns {Object} New object resulting from merging config2 to config1
+	 */
+	var mergeConfig = function mergeConfig(config1, config2) {
+	  // eslint-disable-next-line no-param-reassign
+	  config2 = config2 || {};
+	  var config = {};
+
+	  function getMergedValue(target, source) {
+	    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
+	      return utils.merge(target, source);
+	    } else if (utils.isPlainObject(source)) {
+	      return utils.merge({}, source);
+	    } else if (utils.isArray(source)) {
+	      return source.slice();
+	    }
+	    return source;
+	  }
+
+	  // eslint-disable-next-line consistent-return
+	  function mergeDeepProperties(prop) {
+	    if (!utils.isUndefined(config2[prop])) {
+	      return getMergedValue(config1[prop], config2[prop]);
+	    } else if (!utils.isUndefined(config1[prop])) {
+	      return getMergedValue(undefined, config1[prop]);
+	    }
+	  }
+
+	  // eslint-disable-next-line consistent-return
+	  function valueFromConfig2(prop) {
+	    if (!utils.isUndefined(config2[prop])) {
+	      return getMergedValue(undefined, config2[prop]);
+	    }
+	  }
+
+	  // eslint-disable-next-line consistent-return
+	  function defaultToConfig2(prop) {
+	    if (!utils.isUndefined(config2[prop])) {
+	      return getMergedValue(undefined, config2[prop]);
+	    } else if (!utils.isUndefined(config1[prop])) {
+	      return getMergedValue(undefined, config1[prop]);
+	    }
+	  }
+
+	  // eslint-disable-next-line consistent-return
+	  function mergeDirectKeys(prop) {
+	    if (prop in config2) {
+	      return getMergedValue(config1[prop], config2[prop]);
+	    } else if (prop in config1) {
+	      return getMergedValue(undefined, config1[prop]);
+	    }
+	  }
+
+	  var mergeMap = {
+	    'url': valueFromConfig2,
+	    'method': valueFromConfig2,
+	    'data': valueFromConfig2,
+	    'baseURL': defaultToConfig2,
+	    'transformRequest': defaultToConfig2,
+	    'transformResponse': defaultToConfig2,
+	    'paramsSerializer': defaultToConfig2,
+	    'timeout': defaultToConfig2,
+	    'timeoutMessage': defaultToConfig2,
+	    'withCredentials': defaultToConfig2,
+	    'adapter': defaultToConfig2,
+	    'responseType': defaultToConfig2,
+	    'xsrfCookieName': defaultToConfig2,
+	    'xsrfHeaderName': defaultToConfig2,
+	    'onUploadProgress': defaultToConfig2,
+	    'onDownloadProgress': defaultToConfig2,
+	    'decompress': defaultToConfig2,
+	    'maxContentLength': defaultToConfig2,
+	    'maxBodyLength': defaultToConfig2,
+	    'beforeRedirect': defaultToConfig2,
+	    'transport': defaultToConfig2,
+	    'httpAgent': defaultToConfig2,
+	    'httpsAgent': defaultToConfig2,
+	    'cancelToken': defaultToConfig2,
+	    'socketPath': defaultToConfig2,
+	    'responseEncoding': defaultToConfig2,
+	    'validateStatus': mergeDirectKeys
+	  };
+
+	  utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
+	    var merge = mergeMap[prop] || mergeDeepProperties;
+	    var configValue = merge(prop);
+	    (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
+	  });
+
+	  return config;
+	};
+
+	var data = {
+	  "version": "0.27.2"
+	};
+
+	var VERSION = data.version;
+
+
+	var validators$1 = {};
+
+	// eslint-disable-next-line func-names
+	['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
+	  validators$1[type] = function validator(thing) {
+	    return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
+	  };
+	});
+
+	var deprecatedWarnings = {};
+
+	/**
+	 * Transitional option validator
+	 * @param {function|boolean?} validator - set to false if the transitional option has been removed
+	 * @param {string?} version - deprecated version / removed since version
+	 * @param {string?} message - some message with additional info
+	 * @returns {function}
+	 */
+	validators$1.transitional = function transitional(validator, version, message) {
+	  function formatMessage(opt, desc) {
+	    return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
+	  }
+
+	  // eslint-disable-next-line func-names
+	  return function(value, opt, opts) {
+	    if (validator === false) {
+	      throw new AxiosError_1(
+	        formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
+	        AxiosError_1.ERR_DEPRECATED
+	      );
+	    }
+
+	    if (version && !deprecatedWarnings[opt]) {
+	      deprecatedWarnings[opt] = true;
+	      // eslint-disable-next-line no-console
+	      console.warn(
+	        formatMessage(
+	          opt,
+	          ' has been deprecated since v' + version + ' and will be removed in the near future'
+	        )
+	      );
+	    }
+
+	    return validator ? validator(value, opt, opts) : true;
+	  };
+	};
+
+	/**
+	 * Assert object's properties type
+	 * @param {object} options
+	 * @param {object} schema
+	 * @param {boolean?} allowUnknown
+	 */
+
+	function assertOptions(options, schema, allowUnknown) {
+	  if (typeof options !== 'object') {
+	    throw new AxiosError_1('options must be an object', AxiosError_1.ERR_BAD_OPTION_VALUE);
+	  }
+	  var keys = Object.keys(options);
+	  var i = keys.length;
+	  while (i-- > 0) {
+	    var opt = keys[i];
+	    var validator = schema[opt];
+	    if (validator) {
+	      var value = options[opt];
+	      var result = value === undefined || validator(value, opt, options);
+	      if (result !== true) {
+	        throw new AxiosError_1('option ' + opt + ' must be ' + result, AxiosError_1.ERR_BAD_OPTION_VALUE);
+	      }
+	      continue;
+	    }
+	    if (allowUnknown !== true) {
+	      throw new AxiosError_1('Unknown option ' + opt, AxiosError_1.ERR_BAD_OPTION);
+	    }
+	  }
+	}
+
+	var validator = {
+	  assertOptions: assertOptions,
+	  validators: validators$1
+	};
+
+	var validators = validator.validators;
+	/**
+	 * Create a new instance of Axios
+	 *
+	 * @param {Object} instanceConfig The default config for the instance
+	 */
+	function Axios(instanceConfig) {
+	  this.defaults = instanceConfig;
+	  this.interceptors = {
+	    request: new InterceptorManager_1(),
+	    response: new InterceptorManager_1()
+	  };
+	}
+
+	/**
+	 * Dispatch a request
+	 *
+	 * @param {Object} config The config specific for this request (merged with this.defaults)
+	 */
+	Axios.prototype.request = function request(configOrUrl, config) {
+	  /*eslint no-param-reassign:0*/
+	  // Allow for axios('example/url'[, config]) a la fetch API
+	  if (typeof configOrUrl === 'string') {
+	    config = config || {};
+	    config.url = configOrUrl;
+	  } else {
+	    config = configOrUrl || {};
+	  }
+
+	  config = mergeConfig(this.defaults, config);
+
+	  // Set config.method
+	  if (config.method) {
+	    config.method = config.method.toLowerCase();
+	  } else if (this.defaults.method) {
+	    config.method = this.defaults.method.toLowerCase();
+	  } else {
+	    config.method = 'get';
+	  }
+
+	  var transitional = config.transitional;
+
+	  if (transitional !== undefined) {
+	    validator.assertOptions(transitional, {
+	      silentJSONParsing: validators.transitional(validators.boolean),
+	      forcedJSONParsing: validators.transitional(validators.boolean),
+	      clarifyTimeoutError: validators.transitional(validators.boolean)
+	    }, false);
+	  }
+
+	  // filter out skipped interceptors
+	  var requestInterceptorChain = [];
+	  var synchronousRequestInterceptors = true;
+	  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
+	    if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
+	      return;
+	    }
+
+	    synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
+
+	    requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
+	  });
+
+	  var responseInterceptorChain = [];
+	  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
+	    responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
+	  });
+
+	  var promise;
+
+	  if (!synchronousRequestInterceptors) {
+	    var chain = [dispatchRequest, undefined];
+
+	    Array.prototype.unshift.apply(chain, requestInterceptorChain);
+	    chain = chain.concat(responseInterceptorChain);
+
+	    promise = Promise.resolve(config);
+	    while (chain.length) {
+	      promise = promise.then(chain.shift(), chain.shift());
+	    }
+
+	    return promise;
+	  }
+
+
+	  var newConfig = config;
+	  while (requestInterceptorChain.length) {
+	    var onFulfilled = requestInterceptorChain.shift();
+	    var onRejected = requestInterceptorChain.shift();
+	    try {
+	      newConfig = onFulfilled(newConfig);
+	    } catch (error) {
+	      onRejected(error);
+	      break;
+	    }
+	  }
+
+	  try {
+	    promise = dispatchRequest(newConfig);
+	  } catch (error) {
+	    return Promise.reject(error);
+	  }
+
+	  while (responseInterceptorChain.length) {
+	    promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
+	  }
+
+	  return promise;
+	};
+
+	Axios.prototype.getUri = function getUri(config) {
+	  config = mergeConfig(this.defaults, config);
+	  var fullPath = buildFullPath(config.baseURL, config.url);
+	  return buildURL(fullPath, config.params, config.paramsSerializer);
+	};
+
+	// Provide aliases for supported request methods
+	utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
+	  /*eslint func-names:0*/
+	  Axios.prototype[method] = function(url, config) {
+	    return this.request(mergeConfig(config || {}, {
+	      method: method,
+	      url: url,
+	      data: (config || {}).data
+	    }));
+	  };
+	});
+
+	utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+	  /*eslint func-names:0*/
+
+	  function generateHTTPMethod(isForm) {
+	    return function httpMethod(url, data, config) {
+	      return this.request(mergeConfig(config || {}, {
+	        method: method,
+	        headers: isForm ? {
+	          'Content-Type': 'multipart/form-data'
+	        } : {},
+	        url: url,
+	        data: data
+	      }));
+	    };
+	  }
+
+	  Axios.prototype[method] = generateHTTPMethod();
+
+	  Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
+	});
+
+	var Axios_1 = Axios;
+
+	/**
+	 * A `CancelToken` is an object that can be used to request cancellation of an operation.
+	 *
+	 * @class
+	 * @param {Function} executor The executor function.
+	 */
+	function CancelToken(executor) {
+	  if (typeof executor !== 'function') {
+	    throw new TypeError('executor must be a function.');
+	  }
+
+	  var resolvePromise;
+
+	  this.promise = new Promise(function promiseExecutor(resolve) {
+	    resolvePromise = resolve;
+	  });
+
+	  var token = this;
+
+	  // eslint-disable-next-line func-names
+	  this.promise.then(function(cancel) {
+	    if (!token._listeners) return;
+
+	    var i;
+	    var l = token._listeners.length;
+
+	    for (i = 0; i < l; i++) {
+	      token._listeners[i](cancel);
+	    }
+	    token._listeners = null;
+	  });
+
+	  // eslint-disable-next-line func-names
+	  this.promise.then = function(onfulfilled) {
+	    var _resolve;
+	    // eslint-disable-next-line func-names
+	    var promise = new Promise(function(resolve) {
+	      token.subscribe(resolve);
+	      _resolve = resolve;
+	    }).then(onfulfilled);
+
+	    promise.cancel = function reject() {
+	      token.unsubscribe(_resolve);
+	    };
+
+	    return promise;
+	  };
+
+	  executor(function cancel(message) {
+	    if (token.reason) {
+	      // Cancellation has already been requested
+	      return;
+	    }
+
+	    token.reason = new CanceledError_1(message);
+	    resolvePromise(token.reason);
+	  });
+	}
+
+	/**
+	 * Throws a `CanceledError` if cancellation has been requested.
+	 */
+	CancelToken.prototype.throwIfRequested = function throwIfRequested() {
+	  if (this.reason) {
+	    throw this.reason;
+	  }
+	};
+
+	/**
+	 * Subscribe to the cancel signal
+	 */
+
+	CancelToken.prototype.subscribe = function subscribe(listener) {
+	  if (this.reason) {
+	    listener(this.reason);
+	    return;
+	  }
+
+	  if (this._listeners) {
+	    this._listeners.push(listener);
+	  } else {
+	    this._listeners = [listener];
+	  }
+	};
+
+	/**
+	 * Unsubscribe from the cancel signal
+	 */
+
+	CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
+	  if (!this._listeners) {
+	    return;
+	  }
+	  var index = this._listeners.indexOf(listener);
+	  if (index !== -1) {
+	    this._listeners.splice(index, 1);
+	  }
+	};
+
+	/**
+	 * Returns an object that contains a new `CancelToken` and a function that, when called,
+	 * cancels the `CancelToken`.
+	 */
+	CancelToken.source = function source() {
+	  var cancel;
+	  var token = new CancelToken(function executor(c) {
+	    cancel = c;
+	  });
+	  return {
+	    token: token,
+	    cancel: cancel
+	  };
+	};
+
+	var CancelToken_1 = CancelToken;
+
+	/**
+	 * Syntactic sugar for invoking a function and expanding an array for arguments.
+	 *
+	 * Common use case would be to use `Function.prototype.apply`.
+	 *
+	 *  ```js
+	 *  function f(x, y, z) {}
+	 *  var args = [1, 2, 3];
+	 *  f.apply(null, args);
+	 *  ```
+	 *
+	 * With `spread` this example can be re-written.
+	 *
+	 *  ```js
+	 *  spread(function(x, y, z) {})([1, 2, 3]);
+	 *  ```
+	 *
+	 * @param {Function} callback
+	 * @returns {Function}
+	 */
+	var spread = function spread(callback) {
+	  return function wrap(arr) {
+	    return callback.apply(null, arr);
+	  };
+	};
+
+	/**
+	 * Determines whether the payload is an error thrown by Axios
+	 *
+	 * @param {*} payload The value to test
+	 * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
+	 */
+	var isAxiosError = function isAxiosError(payload) {
+	  return utils.isObject(payload) && (payload.isAxiosError === true);
+	};
+
+	/**
+	 * Create an instance of Axios
+	 *
+	 * @param {Object} defaultConfig The default config for the instance
+	 * @return {Axios} A new instance of Axios
+	 */
+	function createInstance(defaultConfig) {
+	  var context = new Axios_1(defaultConfig);
+	  var instance = bind(Axios_1.prototype.request, context);
+
+	  // Copy axios.prototype to instance
+	  utils.extend(instance, Axios_1.prototype, context);
+
+	  // Copy context to instance
+	  utils.extend(instance, context);
+
+	  // Factory for creating new instances
+	  instance.create = function create(instanceConfig) {
+	    return createInstance(mergeConfig(defaultConfig, instanceConfig));
+	  };
+
+	  return instance;
+	}
+
+	// Create the default instance to be exported
+	var axios$1 = createInstance(defaults_1);
+
+	// Expose Axios class to allow class inheritance
+	axios$1.Axios = Axios_1;
+
+	// Expose Cancel & CancelToken
+	axios$1.CanceledError = CanceledError_1;
+	axios$1.CancelToken = CancelToken_1;
+	axios$1.isCancel = isCancel;
+	axios$1.VERSION = data.version;
+	axios$1.toFormData = toFormData_1;
+
+	// Expose AxiosError class
+	axios$1.AxiosError = AxiosError_1;
+
+	// alias for CanceledError for backward compatibility
+	axios$1.Cancel = axios$1.CanceledError;
+
+	// Expose all/spread
+	axios$1.all = function all(promises) {
+	  return Promise.all(promises);
+	};
+	axios$1.spread = spread;
+
+	// Expose isAxiosError
+	axios$1.isAxiosError = isAxiosError;
+
+	var axios_1 = axios$1;
+
+	// Allow use of default import syntax in TypeScript
+	var _default = axios$1;
+	axios_1.default = _default;
+
+	var axios = axios_1;
+
+	/*!
+	 * @overview es6-promise - a tiny implementation of Promises/A+.
+	 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
+	 * @license   Licensed under MIT license
+	 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
+	 * @version   v4.2.8+1e68dce6
+	 */
+
+	var es6Promise = createCommonjsModule(function (module, exports) {
+	(function (global, factory) {
+		module.exports = factory() ;
+	}(commonjsGlobal, (function () {
+	function objectOrFunction(x) {
+	  var type = typeof x;
+	  return x !== null && (type === 'object' || type === 'function');
+	}
+
+	function isFunction(x) {
+	  return typeof x === 'function';
+	}
+
+
+
+	var _isArray = void 0;
+	if (Array.isArray) {
+	  _isArray = Array.isArray;
+	} else {
+	  _isArray = function (x) {
+	    return Object.prototype.toString.call(x) === '[object Array]';
+	  };
+	}
+
+	var isArray = _isArray;
+
+	var len = 0;
+	var vertxNext = void 0;
+	var customSchedulerFn = void 0;
+
+	var asap = function asap(callback, arg) {
+	  queue[len] = callback;
+	  queue[len + 1] = arg;
+	  len += 2;
+	  if (len === 2) {
+	    // If len is 2, that means that we need to schedule an async flush.
+	    // If additional callbacks are queued before the queue is flushed, they
+	    // will be processed by this flush that we are scheduling.
+	    if (customSchedulerFn) {
+	      customSchedulerFn(flush);
+	    } else {
+	      scheduleFlush();
+	    }
+	  }
+	};
+
+	function setScheduler(scheduleFn) {
+	  customSchedulerFn = scheduleFn;
+	}
+
+	function setAsap(asapFn) {
+	  asap = asapFn;
+	}
+
+	var browserWindow = typeof window !== 'undefined' ? window : undefined;
+	var browserGlobal = browserWindow || {};
+	var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
+	var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
+
+	// test for web worker but not in IE10
+	var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
+
+	// node
+	function useNextTick() {
+	  // node version 0.10.x displays a deprecation warning when nextTick is used recursively
+	  // see https://github.com/cujojs/when/issues/410 for details
+	  return function () {
+	    return process.nextTick(flush);
+	  };
+	}
+
+	// vertx
+	function useVertxTimer() {
+	  if (typeof vertxNext !== 'undefined') {
+	    return function () {
+	      vertxNext(flush);
+	    };
+	  }
+
+	  return useSetTimeout();
+	}
+
+	function useMutationObserver() {
+	  var iterations = 0;
+	  var observer = new BrowserMutationObserver(flush);
+	  var node = document.createTextNode('');
+	  observer.observe(node, { characterData: true });
+
+	  return function () {
+	    node.data = iterations = ++iterations % 2;
+	  };
+	}
+
+	// web worker
+	function useMessageChannel() {
+	  var channel = new MessageChannel();
+	  channel.port1.onmessage = flush;
+	  return function () {
+	    return channel.port2.postMessage(0);
+	  };
+	}
+
+	function useSetTimeout() {
+	  // Store setTimeout reference so es6-promise will be unaffected by
+	  // other code modifying setTimeout (like sinon.useFakeTimers())
+	  var globalSetTimeout = setTimeout;
+	  return function () {
+	    return globalSetTimeout(flush, 1);
+	  };
+	}
+
+	var queue = new Array(1000);
+	function flush() {
+	  for (var i = 0; i < len; i += 2) {
+	    var callback = queue[i];
+	    var arg = queue[i + 1];
+
+	    callback(arg);
+
+	    queue[i] = undefined;
+	    queue[i + 1] = undefined;
+	  }
+
+	  len = 0;
+	}
+
+	function attemptVertx() {
+	  try {
+	    var vertx = Function('return this')().require('vertx');
+	    vertxNext = vertx.runOnLoop || vertx.runOnContext;
+	    return useVertxTimer();
+	  } catch (e) {
+	    return useSetTimeout();
+	  }
+	}
+
+	var scheduleFlush = void 0;
+	// Decide what async method to use to triggering processing of queued callbacks:
+	if (isNode) {
+	  scheduleFlush = useNextTick();
+	} else if (BrowserMutationObserver) {
+	  scheduleFlush = useMutationObserver();
+	} else if (isWorker) {
+	  scheduleFlush = useMessageChannel();
+	} else if (browserWindow === undefined && typeof commonjsRequire === 'function') {
+	  scheduleFlush = attemptVertx();
+	} else {
+	  scheduleFlush = useSetTimeout();
+	}
+
+	function then(onFulfillment, onRejection) {
+	  var parent = this;
+
+	  var child = new this.constructor(noop);
+
+	  if (child[PROMISE_ID] === undefined) {
+	    makePromise(child);
+	  }
+
+	  var _state = parent._state;
+
+
+	  if (_state) {
+	    var callback = arguments[_state - 1];
+	    asap(function () {
+	      return invokeCallback(_state, child, callback, parent._result);
+	    });
+	  } else {
+	    subscribe(parent, child, onFulfillment, onRejection);
+	  }
+
+	  return child;
+	}
+
+	/**
+	  `Promise.resolve` returns a promise that will become resolved with the
+	  passed `value`. It is shorthand for the following:
+
+	  ```javascript
+	  let promise = new Promise(function(resolve, reject){
+	    resolve(1);
+	  });
+
+	  promise.then(function(value){
+	    // value === 1
+	  });
+	  ```
+
+	  Instead of writing the above, your code now simply becomes the following:
+
+	  ```javascript
+	  let promise = Promise.resolve(1);
+
+	  promise.then(function(value){
+	    // value === 1
+	  });
+	  ```
+
+	  @method resolve
+	  @static
+	  @param {Any} value value that the returned promise will be resolved with
+	  Useful for tooling.
+	  @return {Promise} a promise that will become fulfilled with the given
+	  `value`
+	*/
+	function resolve$1(object) {
+	  /*jshint validthis:true */
+	  var Constructor = this;
+
+	  if (object && typeof object === 'object' && object.constructor === Constructor) {
+	    return object;
+	  }
+
+	  var promise = new Constructor(noop);
+	  resolve(promise, object);
+	  return promise;
+	}
+
+	var PROMISE_ID = Math.random().toString(36).substring(2);
+
+	function noop() {}
+
+	var PENDING = void 0;
+	var FULFILLED = 1;
+	var REJECTED = 2;
+
+	function selfFulfillment() {
+	  return new TypeError("You cannot resolve a promise with itself");
+	}
+
+	function cannotReturnOwn() {
+	  return new TypeError('A promises callback cannot return that same promise.');
+	}
+
+	function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {
+	  try {
+	    then$$1.call(value, fulfillmentHandler, rejectionHandler);
+	  } catch (e) {
+	    return e;
+	  }
+	}
+
+	function handleForeignThenable(promise, thenable, then$$1) {
+	  asap(function (promise) {
+	    var sealed = false;
+	    var error = tryThen(then$$1, thenable, function (value) {
+	      if (sealed) {
+	        return;
+	      }
+	      sealed = true;
+	      if (thenable !== value) {
+	        resolve(promise, value);
+	      } else {
+	        fulfill(promise, value);
+	      }
+	    }, function (reason) {
+	      if (sealed) {
+	        return;
+	      }
+	      sealed = true;
+
+	      reject(promise, reason);
+	    }, 'Settle: ' + (promise._label || ' unknown promise'));
+
+	    if (!sealed && error) {
+	      sealed = true;
+	      reject(promise, error);
+	    }
+	  }, promise);
+	}
+
+	function handleOwnThenable(promise, thenable) {
+	  if (thenable._state === FULFILLED) {
+	    fulfill(promise, thenable._result);
+	  } else if (thenable._state === REJECTED) {
+	    reject(promise, thenable._result);
+	  } else {
+	    subscribe(thenable, undefined, function (value) {
+	      return resolve(promise, value);
+	    }, function (reason) {
+	      return reject(promise, reason);
+	    });
+	  }
+	}
+
+	function handleMaybeThenable(promise, maybeThenable, then$$1) {
+	  if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {
+	    handleOwnThenable(promise, maybeThenable);
+	  } else {
+	    if (then$$1 === undefined) {
+	      fulfill(promise, maybeThenable);
+	    } else if (isFunction(then$$1)) {
+	      handleForeignThenable(promise, maybeThenable, then$$1);
+	    } else {
+	      fulfill(promise, maybeThenable);
+	    }
+	  }
+	}
+
+	function resolve(promise, value) {
+	  if (promise === value) {
+	    reject(promise, selfFulfillment());
+	  } else if (objectOrFunction(value)) {
+	    var then$$1 = void 0;
+	    try {
+	      then$$1 = value.then;
+	    } catch (error) {
+	      reject(promise, error);
+	      return;
+	    }
+	    handleMaybeThenable(promise, value, then$$1);
+	  } else {
+	    fulfill(promise, value);
+	  }
+	}
+
+	function publishRejection(promise) {
+	  if (promise._onerror) {
+	    promise._onerror(promise._result);
+	  }
+
+	  publish(promise);
+	}
+
+	function fulfill(promise, value) {
+	  if (promise._state !== PENDING) {
+	    return;
+	  }
+
+	  promise._result = value;
+	  promise._state = FULFILLED;
+
+	  if (promise._subscribers.length !== 0) {
+	    asap(publish, promise);
+	  }
+	}
+
+	function reject(promise, reason) {
+	  if (promise._state !== PENDING) {
+	    return;
+	  }
+	  promise._state = REJECTED;
+	  promise._result = reason;
+
+	  asap(publishRejection, promise);
+	}
+
+	function subscribe(parent, child, onFulfillment, onRejection) {
+	  var _subscribers = parent._subscribers;
+	  var length = _subscribers.length;
+
+
+	  parent._onerror = null;
+
+	  _subscribers[length] = child;
+	  _subscribers[length + FULFILLED] = onFulfillment;
+	  _subscribers[length + REJECTED] = onRejection;
+
+	  if (length === 0 && parent._state) {
+	    asap(publish, parent);
+	  }
+	}
+
+	function publish(promise) {
+	  var subscribers = promise._subscribers;
+	  var settled = promise._state;
+
+	  if (subscribers.length === 0) {
+	    return;
+	  }
+
+	  var child = void 0,
+	      callback = void 0,
+	      detail = promise._result;
+
+	  for (var i = 0; i < subscribers.length; i += 3) {
+	    child = subscribers[i];
+	    callback = subscribers[i + settled];
+
+	    if (child) {
+	      invokeCallback(settled, child, callback, detail);
+	    } else {
+	      callback(detail);
+	    }
+	  }
+
+	  promise._subscribers.length = 0;
+	}
+
+	function invokeCallback(settled, promise, callback, detail) {
+	  var hasCallback = isFunction(callback),
+	      value = void 0,
+	      error = void 0,
+	      succeeded = true;
+
+	  if (hasCallback) {
+	    try {
+	      value = callback(detail);
+	    } catch (e) {
+	      succeeded = false;
+	      error = e;
+	    }
+
+	    if (promise === value) {
+	      reject(promise, cannotReturnOwn());
+	      return;
+	    }
+	  } else {
+	    value = detail;
+	  }
+
+	  if (promise._state !== PENDING) ; else if (hasCallback && succeeded) {
+	    resolve(promise, value);
+	  } else if (succeeded === false) {
+	    reject(promise, error);
+	  } else if (settled === FULFILLED) {
+	    fulfill(promise, value);
+	  } else if (settled === REJECTED) {
+	    reject(promise, value);
+	  }
+	}
+
+	function initializePromise(promise, resolver) {
+	  try {
+	    resolver(function resolvePromise(value) {
+	      resolve(promise, value);
+	    }, function rejectPromise(reason) {
+	      reject(promise, reason);
+	    });
+	  } catch (e) {
+	    reject(promise, e);
+	  }
+	}
+
+	var id = 0;
+	function nextId() {
+	  return id++;
+	}
+
+	function makePromise(promise) {
+	  promise[PROMISE_ID] = id++;
+	  promise._state = undefined;
+	  promise._result = undefined;
+	  promise._subscribers = [];
+	}
+
+	function validationError() {
+	  return new Error('Array Methods must be provided an Array');
+	}
+
+	var Enumerator = function () {
+	  function Enumerator(Constructor, input) {
+	    this._instanceConstructor = Constructor;
+	    this.promise = new Constructor(noop);
+
+	    if (!this.promise[PROMISE_ID]) {
+	      makePromise(this.promise);
+	    }
+
+	    if (isArray(input)) {
+	      this.length = input.length;
+	      this._remaining = input.length;
+
+	      this._result = new Array(this.length);
+
+	      if (this.length === 0) {
+	        fulfill(this.promise, this._result);
+	      } else {
+	        this.length = this.length || 0;
+	        this._enumerate(input);
+	        if (this._remaining === 0) {
+	          fulfill(this.promise, this._result);
+	        }
+	      }
+	    } else {
+	      reject(this.promise, validationError());
+	    }
+	  }
+
+	  Enumerator.prototype._enumerate = function _enumerate(input) {
+	    for (var i = 0; this._state === PENDING && i < input.length; i++) {
+	      this._eachEntry(input[i], i);
+	    }
+	  };
+
+	  Enumerator.prototype._eachEntry = function _eachEntry(entry, i) {
+	    var c = this._instanceConstructor;
+	    var resolve$$1 = c.resolve;
+
+
+	    if (resolve$$1 === resolve$1) {
+	      var _then = void 0;
+	      var error = void 0;
+	      var didError = false;
+	      try {
+	        _then = entry.then;
+	      } catch (e) {
+	        didError = true;
+	        error = e;
+	      }
+
+	      if (_then === then && entry._state !== PENDING) {
+	        this._settledAt(entry._state, i, entry._result);
+	      } else if (typeof _then !== 'function') {
+	        this._remaining--;
+	        this._result[i] = entry;
+	      } else if (c === Promise$1) {
+	        var promise = new c(noop);
+	        if (didError) {
+	          reject(promise, error);
+	        } else {
+	          handleMaybeThenable(promise, entry, _then);
+	        }
+	        this._willSettleAt(promise, i);
+	      } else {
+	        this._willSettleAt(new c(function (resolve$$1) {
+	          return resolve$$1(entry);
+	        }), i);
+	      }
+	    } else {
+	      this._willSettleAt(resolve$$1(entry), i);
+	    }
+	  };
+
+	  Enumerator.prototype._settledAt = function _settledAt(state, i, value) {
+	    var promise = this.promise;
+
+
+	    if (promise._state === PENDING) {
+	      this._remaining--;
+
+	      if (state === REJECTED) {
+	        reject(promise, value);
+	      } else {
+	        this._result[i] = value;
+	      }
+	    }
+
+	    if (this._remaining === 0) {
+	      fulfill(promise, this._result);
+	    }
+	  };
+
+	  Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) {
+	    var enumerator = this;
+
+	    subscribe(promise, undefined, function (value) {
+	      return enumerator._settledAt(FULFILLED, i, value);
+	    }, function (reason) {
+	      return enumerator._settledAt(REJECTED, i, reason);
+	    });
+	  };
+
+	  return Enumerator;
+	}();
+
+	/**
+	  `Promise.all` accepts an array of promises, and returns a new promise which
+	  is fulfilled with an array of fulfillment values for the passed promises, or
+	  rejected with the reason of the first passed promise to be rejected. It casts all
+	  elements of the passed iterable to promises as it runs this algorithm.
+
+	  Example:
+
+	  ```javascript
+	  let promise1 = resolve(1);
+	  let promise2 = resolve(2);
+	  let promise3 = resolve(3);
+	  let promises = [ promise1, promise2, promise3 ];
+
+	  Promise.all(promises).then(function(array){
+	    // The array here would be [ 1, 2, 3 ];
+	  });
+	  ```
+
+	  If any of the `promises` given to `all` are rejected, the first promise
+	  that is rejected will be given as an argument to the returned promises's
+	  rejection handler. For example:
+
+	  Example:
+
+	  ```javascript
+	  let promise1 = resolve(1);
+	  let promise2 = reject(new Error("2"));
+	  let promise3 = reject(new Error("3"));
+	  let promises = [ promise1, promise2, promise3 ];
+
+	  Promise.all(promises).then(function(array){
+	    // Code here never runs because there are rejected promises!
+	  }, function(error) {
+	    // error.message === "2"
+	  });
+	  ```
+
+	  @method all
+	  @static
+	  @param {Array} entries array of promises
+	  @param {String} label optional string for labeling the promise.
+	  Useful for tooling.
+	  @return {Promise} promise that is fulfilled when all `promises` have been
+	  fulfilled, or rejected if any of them become rejected.
+	  @static
+	*/
+	function all(entries) {
+	  return new Enumerator(this, entries).promise;
+	}
+
+	/**
+	  `Promise.race` returns a new promise which is settled in the same way as the
+	  first passed promise to settle.
+
+	  Example:
+
+	  ```javascript
+	  let promise1 = new Promise(function(resolve, reject){
+	    setTimeout(function(){
+	      resolve('promise 1');
+	    }, 200);
+	  });
+
+	  let promise2 = new Promise(function(resolve, reject){
+	    setTimeout(function(){
+	      resolve('promise 2');
+	    }, 100);
+	  });
+
+	  Promise.race([promise1, promise2]).then(function(result){
+	    // result === 'promise 2' because it was resolved before promise1
+	    // was resolved.
+	  });
+	  ```
+
+	  `Promise.race` is deterministic in that only the state of the first
+	  settled promise matters. For example, even if other promises given to the
+	  `promises` array argument are resolved, but the first settled promise has
+	  become rejected before the other promises became fulfilled, the returned
+	  promise will become rejected:
+
+	  ```javascript
+	  let promise1 = new Promise(function(resolve, reject){
+	    setTimeout(function(){
+	      resolve('promise 1');
+	    }, 200);
+	  });
+
+	  let promise2 = new Promise(function(resolve, reject){
+	    setTimeout(function(){
+	      reject(new Error('promise 2'));
+	    }, 100);
+	  });
+
+	  Promise.race([promise1, promise2]).then(function(result){
+	    // Code here never runs
+	  }, function(reason){
+	    // reason.message === 'promise 2' because promise 2 became rejected before
+	    // promise 1 became fulfilled
+	  });
+	  ```
+
+	  An example real-world use case is implementing timeouts:
+
+	  ```javascript
+	  Promise.race([ajax('foo.json'), timeout(5000)])
+	  ```
+
+	  @method race
+	  @static
+	  @param {Array} promises array of promises to observe
+	  Useful for tooling.
+	  @return {Promise} a promise which settles in the same way as the first passed
+	  promise to settle.
+	*/
+	function race(entries) {
+	  /*jshint validthis:true */
+	  var Constructor = this;
+
+	  if (!isArray(entries)) {
+	    return new Constructor(function (_, reject) {
+	      return reject(new TypeError('You must pass an array to race.'));
+	    });
+	  } else {
+	    return new Constructor(function (resolve, reject) {
+	      var length = entries.length;
+	      for (var i = 0; i < length; i++) {
+	        Constructor.resolve(entries[i]).then(resolve, reject);
+	      }
+	    });
+	  }
+	}
+
+	/**
+	  `Promise.reject` returns a promise rejected with the passed `reason`.
+	  It is shorthand for the following:
+
+	  ```javascript
+	  let promise = new Promise(function(resolve, reject){
+	    reject(new Error('WHOOPS'));
+	  });
+
+	  promise.then(function(value){
+	    // Code here doesn't run because the promise is rejected!
+	  }, function(reason){
+	    // reason.message === 'WHOOPS'
+	  });
+	  ```
+
+	  Instead of writing the above, your code now simply becomes the following:
+
+	  ```javascript
+	  let promise = Promise.reject(new Error('WHOOPS'));
+
+	  promise.then(function(value){
+	    // Code here doesn't run because the promise is rejected!
+	  }, function(reason){
+	    // reason.message === 'WHOOPS'
+	  });
+	  ```
+
+	  @method reject
+	  @static
+	  @param {Any} reason value that the returned promise will be rejected with.
+	  Useful for tooling.
+	  @return {Promise} a promise rejected with the given `reason`.
+	*/
+	function reject$1(reason) {
+	  /*jshint validthis:true */
+	  var Constructor = this;
+	  var promise = new Constructor(noop);
+	  reject(promise, reason);
+	  return promise;
+	}
+
+	function needsResolver() {
+	  throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
+	}
+
+	function needsNew() {
+	  throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
+	}
+
+	/**
+	  Promise objects represent the eventual result of an asynchronous operation. The
+	  primary way of interacting with a promise is through its `then` method, which
+	  registers callbacks to receive either a promise's eventual value or the reason
+	  why the promise cannot be fulfilled.
+
+	  Terminology
+	  -----------
+
+	  - `promise` is an object or function with a `then` method whose behavior conforms to this specification.
+	  - `thenable` is an object or function that defines a `then` method.
+	  - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).
+	  - `exception` is a value that is thrown using the throw statement.
+	  - `reason` is a value that indicates why a promise was rejected.
+	  - `settled` the final resting state of a promise, fulfilled or rejected.
+
+	  A promise can be in one of three states: pending, fulfilled, or rejected.
+
+	  Promises that are fulfilled have a fulfillment value and are in the fulfilled
+	  state.  Promises that are rejected have a rejection reason and are in the
+	  rejected state.  A fulfillment value is never a thenable.
+
+	  Promises can also be said to *resolve* a value.  If this value is also a
+	  promise, then the original promise's settled state will match the value's
+	  settled state.  So a promise that *resolves* a promise that rejects will
+	  itself reject, and a promise that *resolves* a promise that fulfills will
+	  itself fulfill.
+
+
+	  Basic Usage:
+	  ------------
+
+	  ```js
+	  let promise = new Promise(function(resolve, reject) {
+	    // on success
+	    resolve(value);
+
+	    // on failure
+	    reject(reason);
+	  });
+
+	  promise.then(function(value) {
+	    // on fulfillment
+	  }, function(reason) {
+	    // on rejection
+	  });
+	  ```
+
+	  Advanced Usage:
+	  ---------------
+
+	  Promises shine when abstracting away asynchronous interactions such as
+	  `XMLHttpRequest`s.
+
+	  ```js
+	  function getJSON(url) {
+	    return new Promise(function(resolve, reject){
+	      let xhr = new XMLHttpRequest();
+
+	      xhr.open('GET', url);
+	      xhr.onreadystatechange = handler;
+	      xhr.responseType = 'json';
+	      xhr.setRequestHeader('Accept', 'application/json');
+	      xhr.send();
+
+	      function handler() {
+	        if (this.readyState === this.DONE) {
+	          if (this.status === 200) {
+	            resolve(this.response);
+	          } else {
+	            reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));
+	          }
+	        }
+	      };
+	    });
+	  }
+
+	  getJSON('/posts.json').then(function(json) {
+	    // on fulfillment
+	  }, function(reason) {
+	    // on rejection
+	  });
+	  ```
+
+	  Unlike callbacks, promises are great composable primitives.
+
+	  ```js
+	  Promise.all([
+	    getJSON('/posts'),
+	    getJSON('/comments')
+	  ]).then(function(values){
+	    values[0] // => postsJSON
+	    values[1] // => commentsJSON
+
+	    return values;
+	  });
+	  ```
+
+	  @class Promise
+	  @param {Function} resolver
+	  Useful for tooling.
+	  @constructor
+	*/
+
+	var Promise$1 = function () {
+	  function Promise(resolver) {
+	    this[PROMISE_ID] = nextId();
+	    this._result = this._state = undefined;
+	    this._subscribers = [];
+
+	    if (noop !== resolver) {
+	      typeof resolver !== 'function' && needsResolver();
+	      this instanceof Promise ? initializePromise(this, resolver) : needsNew();
+	    }
+	  }
+
+	  /**
+	  The primary way of interacting with a promise is through its `then` method,
+	  which registers callbacks to receive either a promise's eventual value or the
+	  reason why the promise cannot be fulfilled.
+	   ```js
+	  findUser().then(function(user){
+	    // user is available
+	  }, function(reason){
+	    // user is unavailable, and you are given the reason why
+	  });
+	  ```
+	   Chaining
+	  --------
+	   The return value of `then` is itself a promise.  This second, 'downstream'
+	  promise is resolved with the return value of the first promise's fulfillment
+	  or rejection handler, or rejected if the handler throws an exception.
+	   ```js
+	  findUser().then(function (user) {
+	    return user.name;
+	  }, function (reason) {
+	    return 'default name';
+	  }).then(function (userName) {
+	    // If `findUser` fulfilled, `userName` will be the user's name, otherwise it
+	    // will be `'default name'`
+	  });
+	   findUser().then(function (user) {
+	    throw new Error('Found user, but still unhappy');
+	  }, function (reason) {
+	    throw new Error('`findUser` rejected and we're unhappy');
+	  }).then(function (value) {
+	    // never reached
+	  }, function (reason) {
+	    // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.
+	    // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.
+	  });
+	  ```
+	  If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.
+	   ```js
+	  findUser().then(function (user) {
+	    throw new PedagogicalException('Upstream error');
+	  }).then(function (value) {
+	    // never reached
+	  }).then(function (value) {
+	    // never reached
+	  }, function (reason) {
+	    // The `PedgagocialException` is propagated all the way down to here
+	  });
+	  ```
+	   Assimilation
+	  ------------
+	   Sometimes the value you want to propagate to a downstream promise can only be
+	  retrieved asynchronously. This can be achieved by returning a promise in the
+	  fulfillment or rejection handler. The downstream promise will then be pending
+	  until the returned promise is settled. This is called *assimilation*.
+	   ```js
+	  findUser().then(function (user) {
+	    return findCommentsByAuthor(user);
+	  }).then(function (comments) {
+	    // The user's comments are now available
+	  });
+	  ```
+	   If the assimliated promise rejects, then the downstream promise will also reject.
+	   ```js
+	  findUser().then(function (user) {
+	    return findCommentsByAuthor(user);
+	  }).then(function (comments) {
+	    // If `findCommentsByAuthor` fulfills, we'll have the value here
+	  }, function (reason) {
+	    // If `findCommentsByAuthor` rejects, we'll have the reason here
+	  });
+	  ```
+	   Simple Example
+	  --------------
+	   Synchronous Example
+	   ```javascript
+	  let result;
+	   try {
+	    result = findResult();
+	    // success
+	  } catch(reason) {
+	    // failure
+	  }
+	  ```
+	   Errback Example
+	   ```js
+	  findResult(function(result, err){
+	    if (err) {
+	      // failure
+	    } else {
+	      // success
+	    }
+	  });
+	  ```
+	   Promise Example;
+	   ```javascript
+	  findResult().then(function(result){
+	    // success
+	  }, function(reason){
+	    // failure
+	  });
+	  ```
+	   Advanced Example
+	  --------------
+	   Synchronous Example
+	   ```javascript
+	  let author, books;
+	   try {
+	    author = findAuthor();
+	    books  = findBooksByAuthor(author);
+	    // success
+	  } catch(reason) {
+	    // failure
+	  }
+	  ```
+	   Errback Example
+	   ```js
+	   function foundBooks(books) {
+	   }
+	   function failure(reason) {
+	   }
+	   findAuthor(function(author, err){
+	    if (err) {
+	      failure(err);
+	      // failure
+	    } else {
+	      try {
+	        findBoooksByAuthor(author, function(books, err) {
+	          if (err) {
+	            failure(err);
+	          } else {
+	            try {
+	              foundBooks(books);
+	            } catch(reason) {
+	              failure(reason);
+	            }
+	          }
+	        });
+	      } catch(error) {
+	        failure(err);
+	      }
+	      // success
+	    }
+	  });
+	  ```
+	   Promise Example;
+	   ```javascript
+	  findAuthor().
+	    then(findBooksByAuthor).
+	    then(function(books){
+	      // found books
+	  }).catch(function(reason){
+	    // something went wrong
+	  });
+	  ```
+	   @method then
+	  @param {Function} onFulfilled
+	  @param {Function} onRejected
+	  Useful for tooling.
+	  @return {Promise}
+	  */
+
+	  /**
+	  `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same
+	  as the catch block of a try/catch statement.
+	  ```js
+	  function findAuthor(){
+	  throw new Error('couldn't find that author');
+	  }
+	  // synchronous
+	  try {
+	  findAuthor();
+	  } catch(reason) {
+	  // something went wrong
+	  }
+	  // async with promises
+	  findAuthor().catch(function(reason){
+	  // something went wrong
+	  });
+	  ```
+	  @method catch
+	  @param {Function} onRejection
+	  Useful for tooling.
+	  @return {Promise}
+	  */
+
+
+	  Promise.prototype.catch = function _catch(onRejection) {
+	    return this.then(null, onRejection);
+	  };
+
+	  /**
+	    `finally` will be invoked regardless of the promise's fate just as native
+	    try/catch/finally behaves
+	  
+	    Synchronous example:
+	  
+	    ```js
+	    findAuthor() {
+	      if (Math.random() > 0.5) {
+	        throw new Error();
+	      }
+	      return new Author();
+	    }
+	  
+	    try {
+	      return findAuthor(); // succeed or fail
+	    } catch(error) {
+	      return findOtherAuther();
+	    } finally {
+	      // always runs
+	      // doesn't affect the return value
+	    }
+	    ```
+	  
+	    Asynchronous example:
+	  
+	    ```js
+	    findAuthor().catch(function(reason){
+	      return findOtherAuther();
+	    }).finally(function(){
+	      // author was either found, or not
+	    });
+	    ```
+	  
+	    @method finally
+	    @param {Function} callback
+	    @return {Promise}
+	  */
+
+
+	  Promise.prototype.finally = function _finally(callback) {
+	    var promise = this;
+	    var constructor = promise.constructor;
+
+	    if (isFunction(callback)) {
+	      return promise.then(function (value) {
+	        return constructor.resolve(callback()).then(function () {
+	          return value;
+	        });
+	      }, function (reason) {
+	        return constructor.resolve(callback()).then(function () {
+	          throw reason;
+	        });
+	      });
+	    }
+
+	    return promise.then(callback, callback);
+	  };
+
+	  return Promise;
+	}();
+
+	Promise$1.prototype.then = then;
+	Promise$1.all = all;
+	Promise$1.race = race;
+	Promise$1.resolve = resolve$1;
+	Promise$1.reject = reject$1;
+	Promise$1._setScheduler = setScheduler;
+	Promise$1._setAsap = setAsap;
+	Promise$1._asap = asap;
+
+	/*global self*/
+	function polyfill() {
+	  var local = void 0;
+
+	  if (typeof commonjsGlobal !== 'undefined') {
+	    local = commonjsGlobal;
+	  } else if (typeof self !== 'undefined') {
+	    local = self;
+	  } else {
+	    try {
+	      local = Function('return this')();
+	    } catch (e) {
+	      throw new Error('polyfill failed because global object is unavailable in this environment');
+	    }
+	  }
+
+	  var P = local.Promise;
+
+	  if (P) {
+	    var promiseToString = null;
+	    try {
+	      promiseToString = Object.prototype.toString.call(P.resolve());
+	    } catch (e) {
+	      // silently ignored
+	    }
+
+	    if (promiseToString === '[object Promise]' && !P.cast) {
+	      return;
+	    }
+	  }
+
+	  local.Promise = Promise$1;
+	}
+
+	// Strange compat..
+	Promise$1.polyfill = polyfill;
+	Promise$1.Promise = Promise$1;
+
+	return Promise$1;
+
+	})));
+
+
+
+
+	});
+
+	class RTCEndpoint extends Event$1 {
+	  constructor(options) {
+	    super('RTCPusherPlayer');
+	    this.TAG = '[RTCPusherPlayer]';
+	    let defaults = {
+	      element: '',
+	      // html video element
+	      debug: false,
+	      // if output debug log
+	      zlmsdpUrl: '',
+	      simulcast: false,
+	      useCamera: true,
+	      audioEnable: true,
+	      videoEnable: true,
+	      recvOnly: false,
+	      resolution: {
+	        w: 0,
+	        h: 0
+	      },
+	      usedatachannel: false,
+	      videoId: '',
+	      audioId: ''
+	    };
+	    this.options = Object.assign({}, defaults, options);
+	    if (this.options.debug) {
+	      setLogger();
+	    }
+	    this.e = {
+	      onicecandidate: this._onIceCandidate.bind(this),
+	      ontrack: this._onTrack.bind(this),
+	      onicecandidateerror: this._onIceCandidateError.bind(this),
+	      onconnectionstatechange: this._onconnectionstatechange.bind(this),
+	      ondatachannelopen: this._onDataChannelOpen.bind(this),
+	      ondatachannelmsg: this._onDataChannelMsg.bind(this),
+	      ondatachannelerr: this._onDataChannelErr.bind(this),
+	      ondatachannelclose: this._onDataChannelClose.bind(this)
+	    };
+	    this._remoteStream = null;
+	    this._localStream = null;
+	    this._tracks = [];
+	    this.pc = new RTCPeerConnection(null);
+	    this.pc.onicecandidate = this.e.onicecandidate;
+	    this.pc.onicecandidateerror = this.e.onicecandidateerror;
+	    this.pc.ontrack = this.e.ontrack;
+	    this.pc.onconnectionstatechange = this.e.onconnectionstatechange;
+	    this.datachannel = null;
+	    if (this.options.usedatachannel) {
+	      this.datachannel = this.pc.createDataChannel('chat');
+	      this.datachannel.onclose = this.e.ondatachannelclose;
+	      this.datachannel.onerror = this.e.ondatachannelerr;
+	      this.datachannel.onmessage = this.e.ondatachannelmsg;
+	      this.datachannel.onopen = this.e.ondatachannelopen;
+	    }
+	    if (!this.options.recvOnly && (this.options.audioEnable || this.options.videoEnable)) this.start();else this.receive();
+	  }
+	  receive() {
+
+	    //debug.error(this.TAG,'this not implement');
+	    const AudioTransceiverInit = {
+	      direction: 'recvonly',
+	      sendEncodings: []
+	    };
+	    const VideoTransceiverInit = {
+	      direction: 'recvonly',
+	      sendEncodings: []
+	    };
+	    if (this.options.videoEnable) {
+	      this.pc.addTransceiver('video', VideoTransceiverInit);
+	    }
+	    if (this.options.audioEnable) {
+	      this.pc.addTransceiver('audio', AudioTransceiverInit);
+	    }
+	    this.pc.createOffer().then(desc => {
+	      log(this.TAG, 'offer:', desc.sdp);
+	      this.pc.setLocalDescription(desc).then(() => {
+	        axios({
+	          method: 'post',
+	          url: this.options.zlmsdpUrl,
+	          responseType: 'json',
+	          data: desc.sdp,
+	          headers: {
+	            'Content-Type': 'text/plain;charset=utf-8'
+	          }
+	        }).then(response => {
+	          let ret = response.data; //JSON.parse(response.data);
+	          if (ret.code != 0) {
+	            // mean failed for offer/anwser exchange 
+	            this.dispatch(Events$1.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, ret);
+	            return;
+	          }
+	          let anwser = {};
+	          anwser.sdp = ret.sdp;
+	          anwser.type = 'answer';
+	          log(this.TAG, 'answer:', ret.sdp);
+	          this.pc.setRemoteDescription(anwser).then(() => {
+	            log(this.TAG, 'set remote sucess');
+	          }).catch(e => {
+	            error(this.TAG, e);
+	          });
+	        });
+	      });
+	    }).catch(e => {
+	      error(this.TAG, e);
+	    });
+	  }
+	  start() {
+	    let videoConstraints = false;
+	    let audioConstraints = false;
+	    if (this.options.useCamera) {
+	      if (this.options.videoEnable) videoConstraints = new VideoTrackConstraints(VideoSourceInfo.CAMERA);
+	      if (this.options.audioEnable) audioConstraints = new AudioTrackConstraints(AudioSourceInfo.MIC);
+	    } else {
+	      if (this.options.videoEnable) {
+	        videoConstraints = new VideoTrackConstraints(VideoSourceInfo.SCREENCAST);
+	        if (this.options.audioEnable) audioConstraints = new AudioTrackConstraints(AudioSourceInfo.SCREENCAST);
+	      } else {
+	        if (this.options.audioEnable) audioConstraints = new AudioTrackConstraints(AudioSourceInfo.MIC);else {
+	          // error shared display media not only audio
+	          error(this.TAG, 'error paramter');
+	        }
+	      }
+	    }
+	    if (this.options.resolution.w != 0 && this.options.resolution.h != 0 && typeof videoConstraints == 'object') {
+	      videoConstraints.resolution = new Resolution(this.options.resolution.w, this.options.resolution.h);
+	    }
+	    if (typeof videoConstraints == 'object' && this.options.videoId != '') {
+	      videoConstraints.deviceId = this.options.videoId;
+	    }
+	    if (typeof audioConstraints == 'object' && this.options.audioId != '') {
+	      audioConstraints.deviceId = this.options.audioId;
+	    }
+	    MediaStreamFactory.createMediaStream(new StreamConstraints(audioConstraints, videoConstraints)).then(stream => {
+	      this._localStream = stream;
+	      this.dispatch(Events$1.WEBRTC_ON_LOCAL_STREAM, stream);
+	      const AudioTransceiverInit = {
+	        direction: 'sendrecv',
+	        sendEncodings: []
+	      };
+	      const VideoTransceiverInit = {
+	        direction: 'sendrecv',
+	        sendEncodings: []
+	      };
+	      if (this.options.simulcast && stream.getVideoTracks().length > 0) {
+	        VideoTransceiverInit.sendEncodings = [{
+	          rid: 'h',
+	          active: true,
+	          maxBitrate: 1000000
+	        }, {
+	          rid: 'm',
+	          active: true,
+	          maxBitrate: 500000,
+	          scaleResolutionDownBy: 2
+	        }, {
+	          rid: 'l',
+	          active: true,
+	          maxBitrate: 200000,
+	          scaleResolutionDownBy: 4
+	        }];
+	      }
+	      if (this.options.audioEnable) {
+	        if (stream.getAudioTracks().length > 0) {
+	          this.pc.addTransceiver(stream.getAudioTracks()[0], AudioTransceiverInit);
+	        } else {
+	          AudioTransceiverInit.direction = 'recvonly';
+	          this.pc.addTransceiver('audio', AudioTransceiverInit);
+	        }
+	      }
+	      if (this.options.videoEnable) {
+	        if (stream.getVideoTracks().length > 0) {
+	          this.pc.addTransceiver(stream.getVideoTracks()[0], VideoTransceiverInit);
+	        } else {
+	          VideoTransceiverInit.direction = 'recvonly';
+	          this.pc.addTransceiver('video', VideoTransceiverInit);
+	        }
+	      }
+
+	      /*
+	      stream.getTracks().forEach((track,idx)=>{
+	          debug.log(this.TAG,track);
+	          this.pc.addTrack(track);
+	      });
+	      */
+	      this.pc.createOffer().then(desc => {
+	        log(this.TAG, 'offer:', desc.sdp);
+	        this.pc.setLocalDescription(desc).then(() => {
+	          axios({
+	            method: 'post',
+	            url: this.options.zlmsdpUrl,
+	            responseType: 'json',
+	            data: desc.sdp,
+	            headers: {
+	              'Content-Type': 'text/plain;charset=utf-8'
+	            }
+	          }).then(response => {
+	            let ret = response.data; //JSON.parse(response.data);
+	            if (ret.code != 0) {
+	              // mean failed for offer/anwser exchange 
+	              this.dispatch(Events$1.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, ret);
+	              return;
+	            }
+	            let anwser = {};
+	            anwser.sdp = ret.sdp;
+	            anwser.type = 'answer';
+	            log(this.TAG, 'answer:', ret.sdp);
+	            this.pc.setRemoteDescription(anwser).then(() => {
+	              log(this.TAG, 'set remote sucess');
+	            }).catch(e => {
+	              error(this.TAG, e);
+	            });
+	          });
+	        });
+	      }).catch(e => {
+	        error(this.TAG, e);
+	      });
+	    }).catch(e => {
+	      this.dispatch(Events$1.CAPTURE_STREAM_FAILED);
+	      //debug.error(this.TAG,e);
+	    });
+
+	    //const offerOptions = {};
+	    /*
+	    if (typeof this.pc.addTransceiver === 'function') {
+	        // |direction| seems not working on Safari.
+	        this.pc.addTransceiver('audio', { direction: 'recvonly' });
+	        this.pc.addTransceiver('video', { direction: 'recvonly' });
+	    } else {
+	        offerOptions.offerToReceiveAudio = true;
+	        offerOptions.offerToReceiveVideo = true;
+	    }
+	    */
+	  }
+	  _onIceCandidate(event) {
+	    if (event.candidate) {
+	      log(this.TAG, 'Remote ICE candidate: \n ' + event.candidate.candidate);
+	      // Send the candidate to the remote peer
+	    }
+	  }
+	  _onTrack(event) {
+	    this._tracks.push(event.track);
+	    if (this.options.element && event.streams && event.streams.length > 0) {
+	      this.options.element.srcObject = event.streams[0];
+	      this._remoteStream = event.streams[0];
+	      this.dispatch(Events$1.WEBRTC_ON_REMOTE_STREAMS, event);
+	    } else {
+	      if (this.pc.getReceivers().length == this._tracks.length) {
+	        log(this.TAG, 'play remote stream ');
+	        this._remoteStream = new MediaStream(this._tracks);
+	        this.options.element.srcObject = this._remoteStream;
+	      } else {
+	        error(this.TAG, 'wait stream track finish');
+	      }
+	    }
+	  }
+	  _onIceCandidateError(event) {
+	    this.dispatch(Events$1.WEBRTC_ICE_CANDIDATE_ERROR, event);
+	  }
+	  _onconnectionstatechange(event) {
+	    this.dispatch(Events$1.WEBRTC_ON_CONNECTION_STATE_CHANGE, this.pc.connectionState);
+	  }
+	  _onDataChannelOpen(event) {
+	    log(this.TAG, 'ondatachannel open:', event);
+	    this.dispatch(Events$1.WEBRTC_ON_DATA_CHANNEL_OPEN, event);
+	  }
+	  _onDataChannelMsg(event) {
+	    log(this.TAG, 'ondatachannel msg:', event);
+	    this.dispatch(Events$1.WEBRTC_ON_DATA_CHANNEL_MSG, event);
+	  }
+	  _onDataChannelErr(event) {
+	    log(this.TAG, 'ondatachannel err:', event);
+	    this.dispatch(Events$1.WEBRTC_ON_DATA_CHANNEL_ERR, event);
+	  }
+	  _onDataChannelClose(event) {
+	    log(this.TAG, 'ondatachannel close:', event);
+	    this.dispatch(Events$1.WEBRTC_ON_DATA_CHANNEL_CLOSE, event);
+	  }
+	  sendMsg(data) {
+	    if (this.datachannel != null) {
+	      this.datachannel.send(data);
+	    } else {
+	      error(this.TAG, 'data channel is null');
+	    }
+	  }
+	  switchVideo(useCamera, deviceId) {
+	    let videoConstraints = false;
+	    if (useCamera) {
+	      videoConstraints = new VideoTrackConstraints(VideoSourceInfo.CAMERA);
+	      videoConstraints.deviceId = deviceId;
+	    } else {
+	      videoConstraints = new VideoTrackConstraints(VideoSourceInfo.SCREENCAST);
+	    }
+	    return MediaStreamFactory.createMediaStream(new StreamConstraints(false, videoConstraints)).then(stream => {
+	      const videosender = this.pc.getSenders().find(e => e.track.kind === 'video');
+	      if (videosender != null && stream.getVideoTracks().length > 0) {
+	        this._localStream.removeTrack(videosender.track);
+	        this._localStream.addTrack(stream.getVideoTracks()[0]);
+	        // stream change 
+	        this.dispatch(Events$1.WEBRTC_ON_LOCAL_STREAM, this._localStream);
+	        return videosender.replaceTrack(stream.getVideoTracks()[0]);
+	      }
+	      return es6Promise.Promise.reject('video not exist or deviceid not vaild');
+	    });
+	  }
+	  switcAudio(useMic, deviceId) {
+	    let audioConstraints = false;
+	    if (useMic) {
+	      audioConstraints = new AudioTrackConstraints(AudioSourceInfo.MIC);
+	      audioConstraints.deviceId = deviceId;
+	    } else {
+	      audioConstraints = new AudioTrackConstraints(AudioSourceInfo.SCREENCAST);
+	    }
+	    return MediaStreamFactory.createMediaStream(new StreamConstraints(audioConstraints, false)).then(stream => {
+	      const audiosender = this.pc.getSenders().find(e => e.track.kind === 'audio');
+	      if (audiosender != null && stream.getAudioTracks().length > 0) {
+	        this._localStream.removeTrack(audiosender.track);
+	        this._localStream.addTrack(stream.getAudioTracks()[0]);
+	        // stream change 
+	        this.dispatch(Events$1.WEBRTC_ON_LOCAL_STREAM, this._localStream);
+	        return audiosender.replaceTrack(stream.getAudioTracks()[0]);
+	      }
+	      return es6Promise.Promise.reject('audio not exist or deviceid not vaild');
+	    });
+	  }
+	  closeDataChannel() {
+	    if (this.datachannel) {
+	      this.datachannel.close();
+	      this.datachannel = null;
+	    }
+	  }
+	  close() {
+	    this.closeDataChannel();
+	    if (this.pc) {
+	      this.pc.close();
+	      this.pc = null;
+	    }
+	    if (this.options) {
+	      this.options = null;
+	    }
+	    if (this._localStream) {
+	      this._localStream.getTracks().forEach((track, idx) => {
+	        track.stop();
+	      });
+	    }
+	    if (this._remoteStream) {
+	      this._remoteStream.getTracks().forEach((track, idx) => {
+	        track.stop();
+	      });
+	    }
+	    this._tracks.forEach((track, idx) => {
+	      track.stop();
+	    });
+	    this._tracks = [];
+	  }
+	  get remoteStream() {
+	    return this._remoteStream;
+	  }
+	  get localStream() {
+	    return this._localStream;
+	  }
+	}
+
+	const quickScan = [{
+	  'label': '4K(UHD)',
+	  'width': 3840,
+	  'height': 2160
+	}, {
+	  'label': '1080p(FHD)',
+	  'width': 1920,
+	  'height': 1080
+	}, {
+	  'label': 'UXGA',
+	  'width': 1600,
+	  'height': 1200,
+	  'ratio': '4:3'
+	}, {
+	  'label': '720p(HD)',
+	  'width': 1280,
+	  'height': 720
+	}, {
+	  'label': 'SVGA',
+	  'width': 800,
+	  'height': 600
+	}, {
+	  'label': 'VGA',
+	  'width': 640,
+	  'height': 480
+	}, {
+	  'label': '360p(nHD)',
+	  'width': 640,
+	  'height': 360
+	}, {
+	  'label': 'CIF',
+	  'width': 352,
+	  'height': 288
+	}, {
+	  'label': 'QVGA',
+	  'width': 320,
+	  'height': 240
+	}, {
+	  'label': 'QCIF',
+	  'width': 176,
+	  'height': 144
+	}, {
+	  'label': 'QQVGA',
+	  'width': 160,
+	  'height': 120
+	}];
+	function GetSupportCameraResolutions$1() {
+	  return new Promise(function (resolve, reject) {
+	    let resolutions = [];
+	    let ok = 0;
+	    let err = 0;
+	    for (let i = 0; i < quickScan.length; ++i) {
+	      let videoConstraints = new VideoTrackConstraints(VideoSourceInfo.CAMERA);
+	      videoConstraints.resolution = new Resolution(quickScan[i].width, quickScan[i].height);
+	      MediaStreamFactory.createMediaStream(new StreamConstraints(false, videoConstraints)).then(stream => {
+	        stream.getVideoTracks().forEach(track => track.stop());
+	        resolutions.push(quickScan[i]);
+	        ok++;
+	        if (ok + err == quickScan.length) {
+	          resolve(resolutions);
+	        }
+	      }).catch(e => {
+	        err++;
+	        if (ok + err == quickScan.length) {
+	          resolve(resolutions);
+	        }
+	      });
+	    }
+	  });
+	}
+	function GetAllScanResolution$1() {
+	  return quickScan;
+	}
+	function isSupportResolution$1(w, h) {
+	  return new Promise(function (resolve, reject) {
+	    let videoConstraints = new VideoTrackConstraints(VideoSourceInfo.CAMERA);
+	    videoConstraints.resolution = new Resolution(w, h);
+	    MediaStreamFactory.createMediaStream(new StreamConstraints(false, videoConstraints)).then(stream => {
+	      stream.getVideoTracks().forEach(track => track.stop());
+	      resolve();
+	    }).catch(e => {
+	      reject(e);
+	    });
+	  });
+	}
+
+	function GetAllMediaDevice$1() {
+	  return new Promise(function (resolve, reject) {
+	    if (typeof navigator.mediaDevices != 'object' || typeof navigator.mediaDevices.enumerateDevices != 'function') {
+	      reject('enumerateDevices() not supported.');
+	    } else {
+	      // List cameras and microphones.
+	      navigator.mediaDevices.enumerateDevices().then(devices => {
+	        resolve(devices);
+	      }).catch(err => {
+	        reject(`${err.name}: ${err.message}`);
+	      });
+	    }
+	  });
+	}
+
+	console.log('build date:', BUILD_DATE);
+	console.log('version:', VERSION$1);
+	const Events = Events$1;
+	const Media = media;
+	const Endpoint = RTCEndpoint;
+	const GetSupportCameraResolutions = GetSupportCameraResolutions$1;
+	const GetAllScanResolution = GetAllScanResolution$1;
+	const isSupportResolution = isSupportResolution$1;
+	const GetAllMediaDevice = GetAllMediaDevice$1;
+
+	exports.Endpoint = Endpoint;
+	exports.Events = Events;
+	exports.GetAllMediaDevice = GetAllMediaDevice;
+	exports.GetAllScanResolution = GetAllScanResolution;
+	exports.GetSupportCameraResolutions = GetSupportCameraResolutions;
+	exports.Media = Media;
+	exports.isSupportResolution = isSupportResolution;
+
+	Object.defineProperty(exports, '__esModule', { value: true });
+
+	return exports;
+
+})({});
+//# sourceMappingURL=ZLMRTCClient.js.map

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-audio.js


BIN
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-audio.wasm


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-hard-not-wasm.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-hard.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 8 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-mt-worker.js


BIN
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-mt-worker.wasm


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-mt-worker.worker.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-mt.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 7 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd-mt-worker.js


BIN
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd-mt-worker.wasm


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd-mt-worker.worker.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd-mt.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd.js


BIN
gyj-iot-web/public/js/jessibuca-pro/decoder-pro-simd.wasm


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/decoder-pro.js


BIN
gyj-iot-web/public/js/jessibuca-pro/decoder-pro.wasm


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/jessibuca-pro-multi.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/jessibuca-pro/jessibuca-pro.js


+ 168 - 0
gyj-iot-web/public/js/player.css

@@ -0,0 +1,168 @@
+html, body {
+    width: 100%;
+    height: 100%;
+}
+
+html {
+    -ms-text-size-adjust: 100%;
+    -webkit-text-size-adjust: 100%;
+    -webkit-tap-highlight-color: transparent;
+}
+
+body {
+    line-height: 1.6;
+    position: relative;
+    font-family: "Microsoft Yahei", tahoma, arial, "Hiragino Sans GB";
+}
+
+
+.root {
+    display: flex;
+    place-content: center;
+    margin-top: 3rem;
+}
+
+.container-shell {
+	background: hsla(0, 0%, 50%, 0.5);
+	width: 100%;
+	position: relative;
+	border-radius: 5px;  
+}
+
+.container-shell:before {
+    content: "jessibuca demo player";
+    position: absolute;
+    color: darkgray;
+    left: 10px;
+    text-shadow: 1px 1px black;
+}
+
+#container {
+    background: rgba(13, 14, 27, 0.7);
+    width: 960px;
+    height: 597px;
+}
+
+.container {
+    background: rgba(13, 14, 27, 0.7);
+    width: 320px;
+    height: 199px;
+    display: inline-block;
+    margin-right: 10px;
+    margin-bottom: 10px;
+}
+
+.input {
+    display: flex;
+    margin-top: 10px;
+    max-width: 960px;
+    color: white;
+    place-content: stretch;
+}
+
+.input2 {
+    bottom: 0px;
+}
+
+.input input {
+    flex: auto;
+}
+
+.err {
+    position: absolute;
+    top: 40px;
+    left: 10px;
+    color: red;
+}
+
+.option {
+    position: absolute;
+    top: 4px;
+    right: 10px;
+    display: flex;
+    place-content: center;
+    font-size: 12px;
+}
+
+.option span {
+    color: white;
+}
+
+.page {
+    background: url('./bg.jpg');
+    background-repeat: no-repeat;
+    background-position: top;
+}
+
+button{
+    font-size: 12px;
+    padding: 4px 8px;
+    border-radius: 4px;
+}
+
+.container-multi{
+    text-align: center;
+}
+
+
+.audio-container{
+    width: 960px;
+}
+
+@media (max-width: 720px) {
+    input {
+        outline: 0;
+    }
+
+    * {
+        margin: 0;
+        padding: 0;
+    }
+
+    * {
+        -webkit-tap-highlight-color: transparent
+    }
+
+    a img {
+        border: 0;
+    }
+
+    a {
+        text-decoration: none;
+    }
+
+
+    li {
+        list-style: none;
+    }
+
+    ol,
+    ul {
+        margin: 0;
+        padding: 0;
+        list-style: none;
+    }
+
+
+    #container {
+        width: 100%;
+        height: 52.7vw;
+        margin: 0 auto;
+    }
+    
+    .input{
+        max-width: 95vw;
+    }
+
+    .audio-container{
+        width: 95vw;
+    }
+
+    .container {
+        width: 95vw;
+        height: 52.7vw;
+        margin: 0 auto;
+        margin-bottom: 10px;
+        display: block;
+    }
+}

+ 209 - 0
gyj-iot-web/public/js/player.js

@@ -0,0 +1,209 @@
+function getBrowser() {
+    const UserAgent = window.navigator.userAgent.toLowerCase() || '';
+    let browserInfo = {
+        type: '',
+        version: ''
+    };
+    var browserArray = {
+        IE: window.ActiveXObject || "ActiveXObject" in window, // IE
+        Chrome: UserAgent.indexOf('chrome') > -1 && UserAgent.indexOf('safari') > -1, // Chrome浏览器
+        Firefox: UserAgent.indexOf('firefox') > -1, // 火狐浏览器
+        Opera: UserAgent.indexOf('opera') > -1, // Opera浏览器
+        Safari: UserAgent.indexOf('safari') > -1 && UserAgent.indexOf('chrome') == -1, // safari浏览器
+        Edge: UserAgent.indexOf('edge') > -1, // Edge浏览器
+        QQBrowser: /qqbrowser/.test(UserAgent), // qq浏览器
+        WeixinBrowser: /MicroMessenger/i.test(UserAgent) // 微信浏览器
+    };
+    // console.log(browserArray)
+    for (let i in browserArray) {
+        if (browserArray[i]) {
+            let versions = '';
+            if (i === 'IE') {
+                const versionArray = UserAgent.match(/(msie\s|trident.*rv:)([\w.]+)/)
+                if (versionArray && versionArray.length > 2) {
+                    versions = UserAgent.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];
+                }
+            } else if (i === 'Chrome') {
+                for (let mt in navigator.mimeTypes) {
+                    //检测是否是360浏览器(测试只有pc端的360才起作用)
+                    if (navigator.mimeTypes[mt]['type'] === 'application/360softmgrplugin') {
+                        i = '360';
+                    }
+                }
+                const versionArray = UserAgent.match(/chrome\/([\d.]+)/);
+                if (versionArray && versionArray.length > 1) {
+                    versions = versionArray[1];
+                }
+            } else if (i === 'Firefox') {
+                const versionArray = UserAgent.match(/firefox\/([\d.]+)/);
+                if (versionArray && versionArray.length > 1) {
+                    versions = versionArray[1];
+                }
+            } else if (i === 'Opera') {
+                const versionArray = UserAgent.match(/opera\/([\d.]+)/);
+                if (versionArray && versionArray.length > 1) {
+                    versions = versionArray[1];
+                }
+            } else if (i === 'Safari') {
+                const versionArray = UserAgent.match(/version\/([\d.]+)/);
+                if (versionArray && versionArray.length > 1) {
+                    versions = versionArray[1];
+                }
+            } else if (i === 'Edge') {
+                const versionArray = UserAgent.match(/edge\/([\d.]+)/);
+                if (versionArray && versionArray.length > 1) {
+                    versions = versionArray[1];
+                }
+            } else if (i === 'QQBrowser') {
+                const versionArray = UserAgent.match(/qqbrowser\/([\d.]+)/);
+                if (versionArray && versionArray.length > 1) {
+                    versions = versionArray[1];
+                }
+            }
+            browserInfo.type = i;
+            browserInfo.version = parseInt(versions);
+        }
+    }
+    return browserInfo;
+}
+
+
+function checkSupportMSEHevc() {
+    return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="hev1.1.6.L123.b0"');
+}
+
+function checkSupportMSEH264() {
+    return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.64002A"');
+}
+
+function checkSupportWCSHevc() {
+    const browserInfo = getBrowser();
+
+    return browserInfo.type.toLowerCase() === 'chrome' && browserInfo.version >= 107 && (location.protocol === 'https:' || location.hostname === 'localhost');
+}
+
+function checkSupportWCS() {
+    return "VideoEncoder" in window;
+}
+
+function checkSupportWasm() {
+    try {
+        if (typeof window.WebAssembly === 'object' && typeof window.WebAssembly.instantiate === 'function') {
+            const module = new window.WebAssembly.Module(Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00));
+            if (module instanceof window.WebAssembly.Module) {
+                return new window.WebAssembly.Instance(module) instanceof window.WebAssembly.Instance;
+            }
+        }
+        return false;
+    } catch (e) {
+        return false;
+    }
+}
+
+
+function checkSupportSIMD() {
+    return WebAssembly && WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]));
+}
+
+function supportSharedArrayBuffer() {
+    try {
+        new SharedArrayBuffer(1);
+        return true;
+    } catch (e) {
+        return false;
+    }
+}
+
+let support = document.getElementById('mseSupport');
+let notSupport = document.getElementById('mseNotSupport');
+if (support && notSupport) {
+    if (checkSupportMSEHevc()) {
+        support.style.display = 'inline-block'
+    } else {
+        notSupport.style.display = 'inline-block'
+    }
+}
+
+
+let supportH264 = document.getElementById('mseSupport264');
+let notSupportH264 = document.getElementById('mseNotSupport264');
+if (supportH264 && notSupportH264) {
+    if (checkSupportMSEH264()) {
+        supportH264.style.display = 'inline-block'
+    } else {
+        notSupportH264.style.display = 'inline-block'
+    }
+}
+
+
+let supportWcsHevc = document.getElementById('wcsSupport');
+let notSupportWcsHevc = document.getElementById('wcsNotSupport');
+
+if (supportWcsHevc && notSupportWcsHevc) {
+    if (checkSupportWCSHevc()) {
+        supportWcsHevc.style.display = 'inline-block';
+    } else {
+        notSupportWcsHevc.style.display = 'inline-block'
+    }
+}
+
+let supportWcs = document.getElementById('wcsSupport264');
+let notSupportWcs = document.getElementById('wcsNotSupport264');
+
+if (supportWcs && notSupportWcs) {
+    if (checkSupportWCS()) {
+        supportWcs.style.display = 'inline-block';
+    } else {
+        notSupportWcs.style.display = 'inline-block'
+    }
+}
+
+let wasmSupport = document.getElementById('wasmSupport');
+let wasmNotSupport = document.getElementById('wasmNotSupport');
+
+if (wasmSupport && wasmNotSupport) {
+    if (checkSupportWasm()) {
+        wasmSupport.style.display = 'inline-block';
+    } else {
+        wasmNotSupport.style.display = 'inline-block';
+    }
+}
+
+
+let supportSimd = document.getElementById('simdSupport');
+let notSupportSimd = document.getElementById('simdNotSupport');
+
+if (supportSimd && notSupportSimd) {
+    if (checkSupportSIMD()) {
+        supportSimd.style.display = 'inline-block';
+    } else {
+        notSupportSimd.style.display = 'inline-block'
+    }
+}
+
+let supportSimdMtSupport = document.getElementById('simdMtSupport');
+var notSupportSimdMtSupport = document.getElementById('simdMtNotSupport');
+
+
+if (supportSimdMtSupport) {
+    if (supportSharedArrayBuffer()) {
+        supportSimdMtSupport.style.display = 'inline-block';
+    } else {
+        notSupportSimdMtSupport.style.display = 'inline-block';
+    }
+}
+
+
+function isMobile() {
+    return (/iphone|ipad|android.*mobile|windows.*phone|blackberry.*mobile/i.test(window.navigator.userAgent.toLowerCase()));
+}
+
+function isPad() {
+    return (/ipad|android(?!.*mobile)|tablet|kindle|silk/i.test(window.navigator.userAgent.toLowerCase()));
+}
+
+const useVconsole = isMobile() || isPad()
+
+if (useVconsole && window.VConsole) {
+    new window.VConsole();
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/js/uni.webview.1.5.5.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
gyj-iot-web/public/js/vconsole.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 166 - 0
gyj-iot-web/public/js/video.html


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/public/styles/theme-chalk/index.css


+ 20 - 0
gyj-iot-web/src/App.vue

@@ -0,0 +1,20 @@
+<template>
+  <div id="app" style="background-color:#0e2e87" v-if="$route.meta.bigScreen">
+    <router-view />
+  </div>
+  <div id="app" v-else>
+    <router-view />
+  </div>
+</template>
+
+<script setup>
+import useSettingsStore from '@/store/modules/settings'
+import { handleThemeStyle } from '@/utils/theme'
+
+onMounted(() => {
+  nextTick(() => {
+    // 初始化主题样式
+    handleThemeStyle(useSettingsStore().theme)
+  })
+})
+</script>

+ 52 - 0
gyj-iot-web/src/api/iot/authorize.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询产品授权码列表
+export function listAuthorize(query) {
+  return request({
+    url: '/iot/authorize/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询产品授权码详细
+export function getAuthorize(authorizeId) {
+  return request({
+    url: '/iot/authorize/' + authorizeId,
+    method: 'get'
+  })
+}
+
+// 新增产品授权码
+export function addAuthorize(data) {
+  return request({
+    url: '/iot/authorize',
+    method: 'post',
+    data: data
+  })
+}
+
+//根据数量批量新增产品授权码
+export function addProductAuthorizeByNum(data) {
+  return request({
+    url: '/iot/authorize/addProductAuthorizeByNum',
+    method: 'post',
+    data: data
+  })
+}
+// 修改产品授权码
+export function updateAuthorize(data) {
+  return request({
+    url: '/iot/authorize',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除产品授权码
+export function delAuthorize(authorizeId) {
+  return request({
+    url: '/iot/authorize/' + authorizeId,
+    method: 'delete'
+  })
+}

+ 52 - 0
gyj-iot-web/src/api/iot/category.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询产品分类列表
+export function listCategory(query) {
+  return request({
+    url: '/iot/category/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询产品简短分类列表
+export function listShortCategory() {
+  return request({
+    url: '/iot/category/shortlist',
+    method: 'get',
+  })
+}
+
+// 查询产品分类详细
+export function getCategory(categoryId) {
+  return request({
+    url: '/iot/category/' + categoryId,
+    method: 'get'
+  })
+}
+
+// 新增产品分类
+export function addCategory(data) {
+  return request({
+    url: '/iot/category',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改产品分类
+export function updateCategory(data) {
+  return request({
+    url: '/iot/category',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除产品分类
+export function delCategory(categoryId) {
+  return request({
+    url: '/iot/category/' + categoryId,
+    method: 'delete'
+  })
+}

+ 69 - 0
gyj-iot-web/src/api/iot/channel.js

@@ -0,0 +1,69 @@
+import request from '@/utils/request'
+
+// 查询监控设备通道信息列表
+export function listChannel(query) {
+  return request({
+    url: '/sip/channel/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询监控设备通道信息详细
+export function getChannel(channelId) {
+  return request({
+    url: '/sip/channel/' + channelId,
+    method: 'get'
+  })
+}
+
+// 新增监控设备通道信息
+export function addChannel(createNum, data) {
+  return request({
+    url: '/sip/channel/' + createNum,
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改监控设备通道信息
+export function updateChannel(data) {
+  return request({
+    url: '/sip/channel',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除监控设备通道信息
+export function delChannel(channelId) {
+  return request({
+    url: '/sip/channel/' + channelId,
+    method: 'delete'
+  })
+}
+
+// 开始播放
+export function startPlay(deviceId, channelId) {
+  return request({
+    url: '/sip/player/play/' + deviceId + "/" + channelId,
+    method: 'get'
+  })
+}
+
+// 获取流信息
+export function getStreaminfo(deviceId, channelId) {
+  return request({
+    url: '/sip/player/playstream/' + deviceId + "/" + channelId,
+    method: 'get'
+  })
+}
+
+
+export function closeStream(deviceId, channelId, streamId){
+  return request({
+    url: '/sip/player/closeStream/' + deviceId  + "/" + channelId + "/" + streamId,
+    method: 'get'
+  })
+}
+

+ 44 - 0
gyj-iot-web/src/api/iot/clientDetails.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询云云对接列表
+export function listClientDetails(query) {
+  return request({
+    url: '/iot/clientDetails/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询云云对接详细
+export function getClientDetails(clientId) {
+  return request({
+    url: '/iot/clientDetails/' + clientId,
+    method: 'get'
+  })
+}
+
+// 新增云云对接
+export function addClientDetails(data) {
+  return request({
+    url: '/iot/clientDetails',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改云云对接
+export function updateClientDetails(data) {
+  return request({
+    url: '/iot/clientDetails',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除云云对接
+export function delClientDetails(clientId) {
+  return request({
+    url: '/iot/clientDetails/' + clientId,
+    method: 'delete'
+  })
+}

+ 146 - 0
gyj-iot-web/src/api/iot/device.js

@@ -0,0 +1,146 @@
+import request from '@/utils/request';
+
+// 查询设备列表
+export function listDevice(query) {
+  return request({
+    url: '/iot/device/list',
+    method: 'get',
+    params: query,
+  });
+}
+
+// 查询未授权设备列表
+export function listUnAuthDevice(query) {
+  return request({
+    url: '/iot/device/unAuthlist',
+    method: 'get',
+    params: query,
+  });
+}
+
+// 查询分组可添加设备分页列表
+export function listDeviceByGroup(query) {
+  return request({
+    url: '/iot/device/listByGroup',
+    method: 'get',
+    params: query,
+  });
+}
+
+// 查询设备简短列表
+export function listDeviceShort(query) {
+  return request({
+    url: '/iot/device/shortList',
+    method: 'get',
+    params: query,
+  });
+}
+
+// 查询所有设备简短列表
+export function listAllDeviceShort() {
+  return request({
+    url: '/iot/device/all',
+    method: 'get',
+  });
+}
+
+// 查询设备详细
+export function getDevice(deviceId) {
+  return request({
+    url: '/iot/device/' + deviceId,
+    method: 'get',
+  });
+}
+
+// 设备数据同步
+export function deviceSynchronization(serialNumber) {
+  return request({
+    url: '/iot/device/synchronization/' + serialNumber,
+    method: 'get',
+  });
+}
+
+// 根据设备编号查询设备详细
+export function getDeviceBySerialNumber(serialNumber) {
+  return request({
+    url: '/iot/device/getDeviceBySerialNumber/' + serialNumber,
+    method: 'get',
+  });
+}
+
+// 查询设备统计信息
+export function getDeviceStatistic() {
+  return request({
+    url: '/iot/device/statistic',
+    method: 'get',
+  });
+}
+
+// 查询设备运行状态详细
+export function getDeviceRunningStatus(params) {
+  return request({
+    url: '/iot/device/runningStatus',
+    method: 'get',
+    params: params,
+  });
+}
+
+// 查询设备物模型的值
+export function getDeviceThingsModelValue(deviceId) {
+  return request({
+    url: '/iot/device/thingsModelValue/' + deviceId,
+    method: 'get',
+  });
+}
+
+// 新增设备
+export function addDevice(data) {
+  return request({
+    url: '/iot/device',
+    method: 'post',
+    data: data,
+  });
+}
+
+// 修改设备
+export function updateDevice(data) {
+  return request({
+    url: '/iot/device',
+    method: 'put',
+    data: data,
+  });
+}
+
+// 删除设备
+export function delDevice(deviceId) {
+  return request({
+    url: '/iot/device/' + deviceId,
+    method: 'delete',
+  });
+}
+
+// 生成设备编号
+export function generatorDeviceNum(params) {
+  return request({
+    url: '/iot/device/generator',
+    method: 'get',
+    params: params,
+  });
+}
+
+export function getGwDevCode(params) {
+  return request({
+    url: '/iot/device/gwDevCount',
+    method: 'get',
+    params: params,
+  });
+}
+
+//mqtt连接参数查看
+export function getMqttConnect(params) {
+  return request({
+    url: '/iot/device/getMqttConnectData',
+    method: 'get',
+    params: params,
+  });
+}

+ 71 - 0
gyj-iot-web/src/api/iot/deviceJob.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询定时任务调度列表
+export function listJob(query) {
+  return request({
+    url: '/iot/job/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询定时任务调度详细
+export function getJob(jobId) {
+  return request({
+    url: '/iot/job/' + jobId,
+    method: 'get'
+  })
+}
+
+// 新增定时任务调度
+export function addJob(data) {
+  return request({
+    url: '/iot/job',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改定时任务调度
+export function updateJob(data) {
+  return request({
+    url: '/iot/job',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除定时任务调度
+export function delJob(jobId) {
+  return request({
+    url: '/iot/job/' + jobId,
+    method: 'delete'
+  })
+}
+
+// 任务状态修改
+export function changeJobStatus(jobId, status) {
+  const data = {
+    jobId,
+    status
+  }
+  return request({
+    url: '/iot/job/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+
+// 定时任务立即执行一次
+export function runJob(jobId, jobGroup) {
+  const data = {
+    jobId,
+    jobGroup
+  }
+  return request({
+    url: '/iot/job/run',
+    method: 'put',
+    data: data
+  })
+}

+ 62 - 0
gyj-iot-web/src/api/iot/deviceLog.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询设备日志列表
+export function listDeviceLog(query) {
+  return request({
+    url: '/iot/deviceLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询设备监测数据
+export function listMonitor(query) {
+  return request({
+    url: '/iot/deviceLog/monitor',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询设备监测数据
+export function listHistory(query) {
+  return request({
+    url: '/iot/deviceLog/history',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询设备日志详细
+export function getDeviceLog(logId) {
+  return request({
+    url: '/iot/deviceLog/' + logId,
+    method: 'get'
+  })
+}
+
+// 新增设备日志
+export function addDeviceLog(data) {
+  return request({
+    url: '/iot/deviceLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改设备日志
+export function updateDeviceLog(data) {
+  return request({
+    url: '/iot/deviceLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除设备日志
+export function delDeviceLog(logId) {
+  return request({
+    url: '/iot/deviceLog/' + logId,
+    method: 'delete'
+  })
+}

+ 63 - 0
gyj-iot-web/src/api/iot/deviceuser.js

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+
+// 查询设备用户列表
+export function listDeviceUser(query) {
+  return request({
+    url: '/iot/deviceUser/list',
+    method: 'get',
+    params: query,
+  });
+}
+
+// 查询设备用户详细
+export function getDeviceUser(deviceId, userId) {
+  return request({
+    url: '/iot/deviceUser/' + deviceId + '/' + userId,
+    method: 'get',
+  });
+}
+
+// 查询用户
+export function shareUser(query) {
+  return request({
+    url: '/iot/deviceUser/shareUser',
+    method: 'get',
+    params: query,
+  });
+}
+
+// 新增设备用户
+export function addDeviceUser(data) {
+  return request({
+    url: '/iot/deviceUser',
+    method: 'post',
+    data: data,
+  });
+}
+
+// 新增多个设备用户
+export function addDeviceUsers(data) {
+  return request({
+    url: '/iot/deviceUser/addDeviceUsers',
+    method: 'post',
+    data: data,
+  });
+}
+
+// 修改设备用户
+export function updateDeviceUser(data) {
+  return request({
+    url: '/iot/deviceUser',
+    method: 'put',
+    data: data,
+  });
+}
+
+// 删除设备用户
+export function delDeviceUser(device) {
+  return request({
+    url: '/iot/deviceUser',
+    method: 'delete',
+    data: device,
+  });
+}

+ 45 - 0
gyj-iot-web/src/api/iot/eventLog.js

@@ -0,0 +1,45 @@
+import request from '@/utils/request'
+
+
+// 查询事件日志列表
+export function listEventLog(query) {
+  return request({
+    url: '/iot/event/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询事件日志详细
+export function getEventLog(logId) {
+  return request({
+    url: '/iot/event/' + logId,
+    method: 'get'
+  })
+}
+
+// 新增事件日志
+export function addEventLog(data) {
+  return request({
+    url: '/iot/event',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改事件日志
+export function updateEventLog(data) {
+  return request({
+    url: '/iot/event',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除事件日志
+export function delLog(logId) {
+  return request({
+    url: '/iot/event/' + logId,
+    method: 'delete'
+  })
+}

+ 44 - 0
gyj-iot-web/src/api/iot/functionLog.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询设备服务下发日志列表
+export function listLog(query) {
+  return request({
+    url: '/iot/log/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询设备服务下发日志详细
+export function getLog(id) {
+  return request({
+    url: '/iot/log/' + id,
+    method: 'get'
+  })
+}
+
+// 新增设备服务下发日志
+export function addLog(data) {
+  return request({
+    url: '/iot/log',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改设备服务下发日志
+export function updateLog(data) {
+  return request({
+    url: '/iot/log',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除设备服务下发日志
+export function delLog(id) {
+  return request({
+    url: '/iot/log/' + id,
+    method: 'delete'
+  })
+}

+ 61 - 0
gyj-iot-web/src/api/iot/group.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询设备分组列表
+export function listGroup(query) {
+  return request({
+    url: '/iot/group/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询设备分组详细
+export function getGroup(groupId) {
+  return request({
+    url: '/iot/group/' + groupId,
+    method: 'get'
+  })
+}
+
+// 查询分组下的关联设备ID数组
+export function getDeviceIds(groupId) {
+  return request({
+    url: '/iot/group/getDeviceIds/' + groupId,
+    method: 'get'
+  })
+}
+
+// 新增设备分组
+export function addGroup(data) {
+  return request({
+    url: '/iot/group',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改设备分组
+export function updateGroup(data) {
+  return request({
+    url: '/iot/group',
+    method: 'put',
+    data: data
+  })
+}
+
+// 更新分组下的设备
+export function updateDeviceGroups(data) {
+  return request({
+    url: '/iot/group/updateDeviceGroups',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除设备分组
+export function delGroup(groupId) {
+  return request({
+    url: '/iot/group/' + groupId,
+    method: 'delete'
+  })
+}

+ 44 - 0
gyj-iot-web/src/api/iot/log.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询设备日志列表
+export function listLog(query) {
+  return request({
+    url: '/iot/log/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询设备日志详细
+export function getLog(deviceLogId) {
+  return request({
+    url: '/iot/log/' + deviceLogId,
+    method: 'get'
+  })
+}
+
+// 新增设备日志
+export function addLog(data) {
+  return request({
+    url: '/iot/log',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改设备日志
+export function updateLog(data) {
+  return request({
+    url: '/iot/log',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除设备日志
+export function delLog(deviceLogId) {
+  return request({
+    url: '/iot/log/' + deviceLogId,
+    method: 'delete'
+  })
+}

+ 52 - 0
gyj-iot-web/src/api/iot/mediaServer.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询流媒体服务器配置列表
+export function listmediaServer(query) {
+  return request({
+    url: '/sip/mediaserver/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询流媒体服务器配置详细
+export function getmediaServer() {
+  return request({
+    url: '/sip/mediaserver/',
+    method: 'get'
+  })
+}
+
+// 新增流媒体服务器配置
+export function addmediaServer(data) {
+  return request({
+    url: '/sip/mediaserver',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改流媒体服务器配置
+export function updatemediaServer(data) {
+  return request({
+    url: '/sip/mediaserver',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除流媒体服务器配置
+export function delmediaServer(id) {
+  return request({
+    url: '/sip/mediaserver/' + id,
+    method: 'delete'
+  })
+}
+
+export function checkmediaServer(query) {
+  return request({
+    url: '/sip/mediaserver/check' ,
+    method: 'get',
+    params: query
+  })
+}

+ 78 - 0
gyj-iot-web/src/api/iot/model.js

@@ -0,0 +1,78 @@
+import request from '@/utils/request';
+
+// 查询物模型列表
+export function listModel(query) {
+  return request({
+    url: '/iot/model/list',
+    method: 'get',
+    params: query,
+  });
+}
+
+// 查询物模型详细
+export function getModel(modelId) {
+  return request({
+    url: '/iot/model/' + modelId,
+    method: 'get',
+  });
+}
+
+// 查询物模型对应分享设备用户权限列表
+export function permListModel(productId) {
+  return request({
+    url: '/iot/model/permList/' + productId,
+    method: 'get',
+  });
+}
+
+// 新增物模型
+export function addModel(data) {
+  return request({
+    url: '/iot/model',
+    method: 'post',
+    data: data,
+  });
+}
+
+// 导入通用物模型
+export function importModel(data) {
+  return request({
+    url: '/iot/model/import',
+    method: 'post',
+    data: data,
+  });
+}
+
+// 修改物模型
+export function updateModel(data) {
+  return request({
+    url: '/iot/model',
+    method: 'put',
+    data: data,
+  });
+}
+
+// 删除物模型
+export function delModel(modelId) {
+  return request({
+    url: '/iot/model/' + modelId,
+    method: 'delete',
+  });
+}
+
+// 根据产品ID获取缓存的物模型
+export function cacheJsonThingsModel(productId) {
+  return request({
+    url: '/iot/model/cache/' + productId,
+    method: 'get',
+  });
+}
+
+// 同步采集点模板到产品物模型
+export function synchron(data) {
+  return request({
+    url: '/iot/model/synchron',
+    method: 'post',
+    data: data,
+  });
+}

+ 36 - 0
gyj-iot-web/src/api/iot/netty.js

@@ -0,0 +1,36 @@
+import request from '@/utils/request'
+
+// 集群下所有客户端列表
+export function listNettyMqttClient(query) {
+  return request({
+    url: '/iot/mqtt/clients',
+    method: 'get',
+    params: query
+  })
+}
+
+export function clientOut(query) {
+  return request({
+    url: '/iot/mqtt/client/out',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function getNettyMqttStats() {
+  return request({
+    url: '/bashBoard/stats',
+    method: 'get',
+  })
+}
+
+
+export function statisticNettyMqtt(query) {
+  return request({
+    url: '/bashBoard/metrics',
+    method: 'get',
+    params: query
+  })
+}
+

+ 44 - 0
gyj-iot-web/src/api/iot/news.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询新闻资讯列表
+export function listNews(query) {
+  return request({
+    url: '/iot/news/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询新闻资讯详细
+export function getNews(newsId) {
+  return request({
+    url: '/iot/news/' + newsId,
+    method: 'get'
+  })
+}
+
+// 新增新闻资讯
+export function addNews(data) {
+  return request({
+    url: '/iot/news',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改新闻资讯
+export function updateNews(data) {
+  return request({
+    url: '/iot/news',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除新闻资讯
+export function delNews(newsId) {
+  return request({
+    url: '/iot/news/' + newsId,
+    method: 'delete'
+  })
+}

+ 52 - 0
gyj-iot-web/src/api/iot/newsCategory.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询新闻分类列表
+export function listNewsCategory(query) {
+  return request({
+    url: '/iot/newsCategory/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询产品简短分类列表
+export function listShortNewsCategory() {
+  return request({
+    url: '/iot/newsCategory/newsCategoryShortList',
+    method: 'get',
+  })
+}
+
+// 查询新闻分类详细
+export function getNewsCategory(categoryId) {
+  return request({
+    url: '/iot/newsCategory/' + categoryId,
+    method: 'get'
+  })
+}
+
+// 新增新闻分类
+export function addNewsCategory(data) {
+  return request({
+    url: '/iot/newsCategory',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改新闻分类
+export function updateNewsCategory(data) {
+  return request({
+    url: '/iot/newsCategory',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除新闻分类
+export function delNewsCategory(categoryId) {
+  return request({
+    url: '/iot/newsCategory/' + categoryId,
+    method: 'delete'
+  })
+}

+ 68 - 0
gyj-iot-web/src/api/iot/platform.js

@@ -0,0 +1,68 @@
+import request from '@/utils/request'
+
+// 查询第三方登录平台控制列表
+export function listPlatform(query) {
+  return request({
+    url: '/iot/platform/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询第三方登录平台控制详细
+export function getPlatform(socialPlatformId) {
+  return request({
+    url: '/iot/platform/' + socialPlatformId,
+    method: 'get'
+  })
+}
+
+// 新增第三方登录平台控制
+export function addPlatform(data) {
+  return request({
+    url: '/iot/platform',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改第三方登录平台控制
+export function updatePlatform(data) {
+  return request({
+    url: '/iot/platform',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除第三方登录平台控制
+export function delPlatform(socialPlatformId) {
+  return request({
+    url: '/iot/platform/' + socialPlatformId,
+    method: 'delete'
+  })
+}
+
+//解除绑定
+export function unbind(socialUserId){
+  return request({
+    url: '/iot/social/unbind/' + socialUserId,
+    method: 'get'
+  })
+}
+
+//绑定跳转
+export function bind(platform){
+  return request({
+    url: '/iot/social/bind/' + platform,
+    method: 'get'
+  })
+}
+
+//绑定
+export function bindUser(bindId){
+  return request({
+    url: '/iot/social/bindId/' + bindId,
+    method: 'get'
+  })
+}

+ 62 - 0
gyj-iot-web/src/api/iot/point.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询变量模板从机采集点列表
+export function listPoint(query) {
+  return request({
+    url: '/iot/point/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询变量模板从机采集点详细
+export function getPoint(id) {
+  return request({
+    url: '/iot/point/' + id,
+    method: 'get'
+  })
+}
+
+// 新增变量模板从机采集点
+export function addPoint(data) {
+  return request({
+    url: '/iot/point',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改变量模板从机采集点
+export function updatePoint(data) {
+  return request({
+    url: '/iot/point',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除变量模板从机采集点
+export function delPoint(id) {
+  return request({
+    url: '/iot/point/' + id,
+    method: 'delete'
+  })
+}
+
+//根据从机id删除采集点数据
+export function delBySlaveId(data){
+  return request({
+    url: '/iot/point/delBySlaveId',
+    method: 'delete',
+    data: data,
+
+  })
+}
+//..
+export function selectByTemp(query){
+  return request({
+    url: '/iot/point/getPoints',
+    method: 'get',
+    params: query
+  })
+}

+ 78 - 0
gyj-iot-web/src/api/iot/product.js

@@ -0,0 +1,78 @@
+import request from '@/utils/request'
+
+// 查询产品列表
+export function listProduct(query) {
+  return request({
+    url: '/iot/product/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询产品列表
+export function listShortProduct() {
+  return request({
+    url: '/iot/product/shortList',
+    method: 'get',
+  })
+}
+
+// 查询产品详细
+export function getProduct(productId) {
+  return request({
+    url: '/iot/product/' + productId,
+    method: 'get'
+  })
+}
+
+// 新增产品
+export function addProduct(data) {
+  return request({
+    url: '/iot/product',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改产品
+export function updateProduct(data) {
+  return request({
+    url: '/iot/product',
+    method: 'put',
+    data: data
+  })
+}
+
+// 获取产品下设备的数量
+export function deviceCount(productId) {
+  return request({
+    url: '/iot/product/deviceCount/' + productId,
+    method: 'get'
+  })
+}
+
+// 更新产品状态
+export function changeProductStatus(data) {
+  return request({
+    url: '/iot/product/status/',
+    method: 'put',
+    data:data
+  })
+}
+
+// 删除产品
+export function delProduct(productId) {
+  return request({
+    url: '/iot/product/' + productId,
+    method: 'delete'
+  })
+}
+
+// 根据采集点模板id查询所有产品
+export function selectByTempleId(params) {
+  return request({
+    url: '/iot/product/queryByTemplateId',
+    method: 'get',
+    params: params
+  })
+}

+ 44 - 0
gyj-iot-web/src/api/iot/protocol.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询协议列表
+export function listProtocol(query) {
+  return request({
+    url: '/iot/protocol/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询协议详细
+export function getProtocol(id) {
+  return request({
+    url: '/iot/protocol/' + id,
+    method: 'get'
+  })
+}
+
+// 新增协议
+export function addProtocol(data) {
+  return request({
+    url: '/iot/protocol',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改协议
+export function updateProtocol(data) {
+  return request({
+    url: '/iot/protocol',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除协议
+export function delProtocol(id) {
+  return request({
+    url: '/iot/protocol/' + id,
+    method: 'delete'
+  })
+}

+ 29 - 0
gyj-iot-web/src/api/iot/runstatus.js

@@ -0,0 +1,29 @@
+import request from '@/utils/request'
+
+//查询设备实时数据
+export function runStatus(params) {
+  return request({
+    url: '/iot/runtime/runState',
+    method: 'get',
+    params: params,
+  })
+}
+
+
+//查询设备实时数据
+export function serviceInvoke(data) {
+  return request({
+    url: '/iot/runtime/service/invoke',
+    method: 'post',
+    data: data,
+  })
+}
+
+//查询设备服务下发日志
+export function funcLog(params) {
+  return request({
+    url: '/iot/runtime/funcLog',
+    method: 'get',
+    params: params,
+  })
+}

+ 53 - 0
gyj-iot-web/src/api/iot/salve.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询变量模板设备从机列表
+export function listSalve(query) {
+  return request({
+    url: '/iot/salve/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询变量模板设备从机详细
+export function getSalve(id) {
+  return request({
+    url: '/iot/salve/' + id,
+    method: 'get'
+  })
+}
+
+// 新增变量模板设备从机
+export function addSalve(data) {
+  return request({
+    url: '/iot/salve',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改变量模板设备从机
+export function updateSalve(data) {
+  return request({
+    url: '/iot/salve',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除变量模板设备从机
+export function delSalve(id) {
+  return request({
+    url: '/iot/salve/' + id,
+    method: 'delete'
+  })
+}
+
+//根据产品id查询从机列表
+export function listByPid(params){
+  return request({
+    url: "/iot/salve/listByPId",
+    method: 'get',
+    params: params,
+  })
+}

+ 53 - 0
gyj-iot-web/src/api/iot/scene.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request';
+
+// 查询场景联动列表
+export function listScene(query) {
+    return request({
+        url: '/iot/scene/list',
+        method: 'get',
+        params: query,
+    });
+}
+
+// 查询场景联动详细
+export function getScene(sceneId) {
+    return request({
+        url: '/iot/scene/' + sceneId,
+        method: 'get',
+    });
+}
+
+// 新增场景联动
+export function addScene(data) {
+    return request({
+        url: '/iot/scene',
+        method: 'post',
+        data: data,
+    });
+}
+
+// 修改场景联动
+export function updateScene(data) {
+    return request({
+        url: '/iot/scene',
+        method: 'put',
+        data: data,
+    });
+}
+
+// 删除场景联动
+export function delScene(sceneId) {
+    return request({
+        url: '/iot/scene/' + sceneId,
+        method: 'delete',
+    });
+}
+
+// 执行场景
+export function runScene(query) {
+    return request({
+        url: '/iot/runtime/runScene',
+        method: 'post',
+        params: query,
+    });
+}

+ 62 - 0
gyj-iot-web/src/api/iot/script.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request';
+
+// 查询规则引擎脚本列表
+export function listScript(query) {
+    return request({
+        url: '/iot/script/list',
+        method: 'get',
+        params: query,
+    });
+}
+
+// 查询规则引擎脚本详细
+export function getScript(scriptId) {
+    return request({
+        url: '/iot/script/' + scriptId,
+        method: 'get',
+    });
+}
+
+// 查询规则引擎脚本日志
+export function getScriptLog(scriptId) {
+    return request({
+        url: '/iot/script/log/' + scriptId,
+        method: 'get',
+    });
+}
+
+
+// 新增规则引擎脚本
+export function addScript(data) {
+    return request({
+        url: '/iot/script',
+        method: 'post',
+        data: data,
+    });
+}
+
+// 修改规则引擎脚本
+export function updateScript(data) {
+    return request({
+        url: '/iot/script',
+        method: 'put',
+        data: data,
+    });
+}
+
+// 删除规则引擎脚本
+export function delScript(scriptId) {
+    return request({
+        url: '/iot/script/' + scriptId,
+        method: 'delete',
+    });
+}
+
+// 验证规则脚本
+export function validateScript(scriptData) {
+    return request({
+        url: '/iot/script/validate',
+        method: 'post',
+        data: scriptData,
+    });
+}

+ 34 - 0
gyj-iot-web/src/api/iot/sipConfig.js

@@ -0,0 +1,34 @@
+import request from '@/utils/request'
+
+// 查询sip系统配置详细
+export function getSipconfig(productId,isDefault) {
+  return request({
+    url: '/sip/sipconfig/' + productId+'/'+isDefault,
+    method: 'get'
+  })
+}
+
+// 新增sip系统配置
+export function addSipconfig(data) {
+  return request({
+    url: '/sip/sipconfig',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改sip系统配置
+export function updateSipconfig(data) {
+  return request({
+    url: '/sip/sipconfig',
+    method: 'put',
+    data: data
+  })
+}
+
+export function delSipconfigByProductId(productId) {
+  return request({
+    url: '/sip/sipconfig/product/' + productId,
+    method: 'delete'
+  })
+}

+ 74 - 0
gyj-iot-web/src/api/iot/sipdevice.js

@@ -0,0 +1,74 @@
+import request from '@/utils/request'
+
+// 查询监控设备列表
+export function listSipDevice(query) {
+  return request({
+    url: '/sip/device/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function listSipDeviceChannel(deviceId) {
+  return request({
+    url: '/sip/device/listchannel/'+ deviceId,
+    method: 'get'
+  })
+}
+
+// 查询监控设备详细
+export function getSipDevice(deviceId) {
+  return request({
+    url: '/sip/device/' + deviceId,
+    method: 'get'
+  })
+}
+
+// 新增监控设备
+export function addSipDevice(data) {
+  return request({
+    url: '/sip/device',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改监控设备
+export function updateSipDevice(data) {
+  return request({
+    url: '/sip/device',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除监控设备
+export function delSipDevice(deviceId) {
+  return request({
+    url: '/sip/device/' + deviceId,
+    method: 'delete'
+  })
+}
+
+export function delSipDeviceBySipId(sipId) {
+  return request({
+    url: '/sip/device/sipid/' + sipId,
+    method: 'delete'
+  })
+}
+
+export function ptzdirection(deviceId,channelId,data) {
+  return request({
+    url: '/sip/ptz/direction/'+ deviceId + "/" + channelId,
+    method: 'post',
+    data: data
+  })
+}
+
+export function ptzscale(deviceId,channelId,data) {
+  return request({
+    url: '/sip/ptz/scale/'+ deviceId + "/" + channelId,
+    method: 'post',
+    data: data
+  })
+}

+ 62 - 0
gyj-iot-web/src/api/iot/temp.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询设备采集变量模板列表
+export function listTemp(query) {
+  return request({
+    url: '/iot/temp/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询设备采集变量模板详细
+export function getTemp(templateId) {
+  return request({
+    url: '/iot/temp/' + templateId,
+    method: 'get'
+  })
+}
+
+// 新增设备采集变量模板
+export function addTemp(data) {
+  return request({
+    url: '/iot/temp',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改设备采集变量模板
+export function updateTemp(data) {
+  return request({
+    url: '/iot/temp',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除设备采集变量模板
+export function delTemp(templateId) {
+  return request({
+    url: '/iot/temp/' + templateId,
+    method: 'delete'
+  })
+}
+
+
+//根据产品查询采集点关联
+export function getDeviceTemp(params){
+  return request({
+    url: '/iot/temp/getTemp' ,
+    method: 'get',
+    params: params,
+  })
+}
+
+export function getTempByPId(params){
+  return request({
+    url: '/iot/temp/getTempByPid',
+    method: 'get',
+    params: params,
+  })
+}

+ 53 - 0
gyj-iot-web/src/api/iot/template.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询通用物模型列表
+export function listTemplate(query) {
+  return request({
+    url: '/iot/template/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询通用物模型详细
+export function getTemplate(templateId) {
+  return request({
+    url: '/iot/template/' + templateId,
+    method: 'get'
+  })
+}
+
+// 新增通用物模型
+export function addTemplate(data) {
+  return request({
+    url: '/iot/template',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改通用物模型
+export function updateTemplate(data) {
+  return request({
+    url: '/iot/template',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除通用物模型
+export function delTemplate(templateId) {
+  return request({
+    url: '/iot/template/' + templateId,
+    method: 'delete'
+  })
+}
+
+// 查询通用物模型详细
+export function getAllPoints(params) {
+  return request({
+    url: '/iot/template/getPoints',
+    method: 'get',
+    params: params,
+  })
+}

+ 43 - 0
gyj-iot-web/src/api/iot/tool.js

@@ -0,0 +1,43 @@
+import request from '@/utils/request'
+
+// 注册方法
+export function register(data) {
+  return request({
+    url: '/iot/tool/register',
+    headers: {
+      isToken: false
+    },
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询用户列表
+export function listUser(query) {
+  return request({
+    url: '/iot/tool/userList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取所有下发的topic
+export function getTopics(params){
+  return request({
+    url: '/iot/tool/getTopics',
+    method: 'get',
+    params: params,
+  })
+}
+
+// 获取所有下发的topic
+export function decode(params){
+  return request({
+    url: '/iot/tool/decode',
+    method: 'get',
+    params: params,
+  })
+}
+
+
+

+ 72 - 0
gyj-iot-web/src/api/login.js

@@ -0,0 +1,72 @@
+import request from '@/utils/request'
+
+// 登录方法
+export function login(username, password, code, uuid) {
+  const data = {
+    username,
+    password,
+    code,
+    uuid
+  }
+  return request({
+    url: '/login',
+    headers: {
+      isToken: false,
+      repeatSubmit: false
+    },
+    method: 'post',
+    data: data
+  })
+}
+
+// 注册方法
+export function register(data) {
+  return request({
+    url: '/register',
+    headers: {
+      isToken: false
+    },
+    method: 'post',
+    data: data
+  })
+}
+
+// 获取用户详细信息
+export function getInfo() {
+  return request({
+    url: '/getInfo',
+    method: 'get'
+  })
+}
+
+// 退出方法
+export function logout() {
+  return request({
+    url: '/logout',
+    method: 'post'
+  })
+}
+
+// 获取验证码
+export function getCodeImg() {
+  return request({
+    url: '/captchaImage',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    timeout: 20000
+  })
+}
+
+// 获取是否开启注册功能
+export function getRegisterFlag() {
+  return request({
+    url: '/registerFlag',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    timeout: 20000
+  })
+}

+ 9 - 0
gyj-iot-web/src/api/menu.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+// 获取路由
+export const getRouters = () => {
+  return request({
+    url: '/getRouters',
+    method: 'get'
+  })
+}

+ 57 - 0
gyj-iot-web/src/api/monitor/cache.js

@@ -0,0 +1,57 @@
+import request from '@/utils/request'
+
+// 查询缓存详细
+export function getCache() {
+  return request({
+    url: '/monitor/cache',
+    method: 'get'
+  })
+}
+
+// 查询缓存名称列表
+export function listCacheName() {
+  return request({
+    url: '/monitor/cache/getNames',
+    method: 'get'
+  })
+}
+
+// 查询缓存键名列表
+export function listCacheKey(cacheName) {
+  return request({
+    url: '/monitor/cache/getKeys/' + cacheName,
+    method: 'get'
+  })
+}
+
+// 查询缓存内容
+export function getCacheValue(cacheName, cacheKey) {
+  return request({
+    url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey,
+    method: 'get'
+  })
+}
+
+// 清理指定名称缓存
+export function clearCacheName(cacheName) {
+  return request({
+    url: '/monitor/cache/clearCacheName/' + cacheName,
+    method: 'delete'
+  })
+}
+
+// 清理指定键名缓存
+export function clearCacheKey(cacheKey) {
+  return request({
+    url: '/monitor/cache/clearCacheKey/' + cacheKey,
+    method: 'delete'
+  })
+}
+
+// 清理全部缓存
+export function clearCacheAll() {
+  return request({
+    url: '/monitor/cache/clearCacheAll',
+    method: 'delete'
+  })
+}

+ 71 - 0
gyj-iot-web/src/api/monitor/job.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询定时任务调度列表
+export function listJob(query) {
+  return request({
+    url: '/monitor/job/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询定时任务调度详细
+export function getJob(jobId) {
+  return request({
+    url: '/monitor/job/' + jobId,
+    method: 'get'
+  })
+}
+
+// 新增定时任务调度
+export function addJob(data) {
+  return request({
+    url: '/monitor/job',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改定时任务调度
+export function updateJob(data) {
+  return request({
+    url: '/monitor/job',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除定时任务调度
+export function delJob(jobId) {
+  return request({
+    url: '/monitor/job/' + jobId,
+    method: 'delete'
+  })
+}
+
+// 任务状态修改
+export function changeJobStatus(jobId, status) {
+  const data = {
+    jobId,
+    status
+  }
+  return request({
+    url: '/monitor/job/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+
+// 定时任务立即执行一次
+export function runJob(jobId, jobGroup) {
+  const data = {
+    jobId,
+    jobGroup
+  }
+  return request({
+    url: '/monitor/job/run',
+    method: 'put',
+    data: data
+  })
+}

+ 26 - 0
gyj-iot-web/src/api/monitor/jobLog.js

@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 查询调度日志列表
+export function listJobLog(query) {
+  return request({
+    url: '/monitor/jobLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除调度日志
+export function delJobLog(jobLogId) {
+  return request({
+    url: '/monitor/jobLog/' + jobLogId,
+    method: 'delete'
+  })
+}
+
+// 清空调度日志
+export function cleanJobLog() {
+  return request({
+    url: '/monitor/jobLog/clean',
+    method: 'delete'
+  })
+}

+ 34 - 0
gyj-iot-web/src/api/monitor/logininfor.js

@@ -0,0 +1,34 @@
+import request from '@/utils/request'
+
+// 查询登录日志列表
+export function list(query) {
+  return request({
+    url: '/monitor/logininfor/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除登录日志
+export function delLogininfor(infoId) {
+  return request({
+    url: '/monitor/logininfor/' + infoId,
+    method: 'delete'
+  })
+}
+
+// 解锁用户登录状态
+export function unlockLogininfor(userName) {
+  return request({
+    url: '/monitor/logininfor/unlock/' + userName,
+    method: 'get'
+  })
+}
+
+// 清空登录日志
+export function cleanLogininfor() {
+  return request({
+    url: '/monitor/logininfor/clean',
+    method: 'delete'
+  })
+}

+ 18 - 0
gyj-iot-web/src/api/monitor/online.js

@@ -0,0 +1,18 @@
+import request from '@/utils/request'
+
+// 查询在线用户列表
+export function list(query) {
+  return request({
+    url: '/monitor/online/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 强退用户
+export function forceLogout(tokenId) {
+  return request({
+    url: '/monitor/online/' + tokenId,
+    method: 'delete'
+  })
+}

+ 26 - 0
gyj-iot-web/src/api/monitor/operlog.js

@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 查询操作日志列表
+export function list(query) {
+  return request({
+    url: '/monitor/operlog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除操作日志
+export function delOperlog(operId) {
+  return request({
+    url: '/monitor/operlog/' + operId,
+    method: 'delete'
+  })
+}
+
+// 清空操作日志
+export function cleanOperlog() {
+  return request({
+    url: '/monitor/operlog/clean',
+    method: 'delete'
+  })
+}

+ 9 - 0
gyj-iot-web/src/api/monitor/server.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+// 获取服务信息
+export function getServer() {
+  return request({
+    url: '/monitor/server',
+    method: 'get'
+  })
+}

+ 60 - 0
gyj-iot-web/src/api/system/config.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询参数列表
+export function listConfig(query) {
+  return request({
+    url: '/system/config/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询参数详细
+export function getConfig(configId) {
+  return request({
+    url: '/system/config/' + configId,
+    method: 'get'
+  })
+}
+
+// 根据参数键名查询参数值
+export function getConfigKey(configKey) {
+  return request({
+    url: '/system/config/configKey/' + configKey,
+    method: 'get'
+  })
+}
+
+// 新增参数配置
+export function addConfig(data) {
+  return request({
+    url: '/system/config',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改参数配置
+export function updateConfig(data) {
+  return request({
+    url: '/system/config',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除参数配置
+export function delConfig(configId) {
+  return request({
+    url: '/system/config/' + configId,
+    method: 'delete'
+  })
+}
+
+// 刷新参数缓存
+export function refreshCache() {
+  return request({
+    url: '/system/config/refreshCache',
+    method: 'delete'
+  })
+}

+ 52 - 0
gyj-iot-web/src/api/system/dept.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询部门列表
+export function listDept(query) {
+  return request({
+    url: '/system/dept/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表(排除节点)
+export function listDeptExcludeChild(deptId) {
+  return request({
+    url: '/system/dept/list/exclude/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门详细
+export function getDept(deptId) {
+  return request({
+    url: '/system/dept/' + deptId,
+    method: 'get'
+  })
+}
+
+// 新增部门
+export function addDept(data) {
+  return request({
+    url: '/system/dept',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改部门
+export function updateDept(data) {
+  return request({
+    url: '/system/dept',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除部门
+export function delDept(deptId) {
+  return request({
+    url: '/system/dept/' + deptId,
+    method: 'delete'
+  })
+}

+ 52 - 0
gyj-iot-web/src/api/system/dict/data.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询字典数据列表
+export function listData(query) {
+  return request({
+    url: '/system/dict/data/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询字典数据详细
+export function getData(dictCode) {
+  return request({
+    url: '/system/dict/data/' + dictCode,
+    method: 'get'
+  })
+}
+
+// 根据字典类型查询字典数据信息
+export function getDicts(dictType) {
+  return request({
+    url: '/system/dict/data/type/' + dictType,
+    method: 'get'
+  })
+}
+
+// 新增字典数据
+export function addData(data) {
+  return request({
+    url: '/system/dict/data',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改字典数据
+export function updateData(data) {
+  return request({
+    url: '/system/dict/data',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除字典数据
+export function delData(dictCode) {
+  return request({
+    url: '/system/dict/data/' + dictCode,
+    method: 'delete'
+  })
+}

+ 60 - 0
gyj-iot-web/src/api/system/dict/type.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询字典类型列表
+export function listType(query) {
+  return request({
+    url: '/system/dict/type/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询字典类型详细
+export function getType(dictId) {
+  return request({
+    url: '/system/dict/type/' + dictId,
+    method: 'get'
+  })
+}
+
+// 新增字典类型
+export function addType(data) {
+  return request({
+    url: '/system/dict/type',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改字典类型
+export function updateType(data) {
+  return request({
+    url: '/system/dict/type',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除字典类型
+export function delType(dictId) {
+  return request({
+    url: '/system/dict/type/' + dictId,
+    method: 'delete'
+  })
+}
+
+// 刷新字典缓存
+export function refreshCache() {
+  return request({
+    url: '/system/dict/type/refreshCache',
+    method: 'delete'
+  })
+}
+
+// 获取字典选择框列表
+export function optionselect() {
+  return request({
+    url: '/system/dict/type/optionselect',
+    method: 'get'
+  })
+}

+ 60 - 0
gyj-iot-web/src/api/system/menu.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询菜单列表
+export function listMenu(query) {
+  return request({
+    url: '/system/menu/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询菜单详细
+export function getMenu(menuId) {
+  return request({
+    url: '/system/menu/' + menuId,
+    method: 'get'
+  })
+}
+
+// 查询菜单下拉树结构
+export function treeselect() {
+  return request({
+    url: '/system/menu/treeselect',
+    method: 'get'
+  })
+}
+
+// 根据角色ID查询菜单下拉树结构
+export function roleMenuTreeselect(roleId) {
+  return request({
+    url: '/system/menu/roleMenuTreeselect/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增菜单
+export function addMenu(data) {
+  return request({
+    url: '/system/menu',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改菜单
+export function updateMenu(data) {
+  return request({
+    url: '/system/menu',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除菜单
+export function delMenu(menuId) {
+  return request({
+    url: '/system/menu/' + menuId,
+    method: 'delete'
+  })
+}

+ 44 - 0
gyj-iot-web/src/api/system/notice.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询公告列表
+export function listNotice(query) {
+  return request({
+    url: '/system/notice/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询公告详细
+export function getNotice(noticeId) {
+  return request({
+    url: '/system/notice/' + noticeId,
+    method: 'get'
+  })
+}
+
+// 新增公告
+export function addNotice(data) {
+  return request({
+    url: '/system/notice',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改公告
+export function updateNotice(data) {
+  return request({
+    url: '/system/notice',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除公告
+export function delNotice(noticeId) {
+  return request({
+    url: '/system/notice/' + noticeId,
+    method: 'delete'
+  })
+}

+ 44 - 0
gyj-iot-web/src/api/system/post.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询岗位列表
+export function listPost(query) {
+  return request({
+    url: '/system/post/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询岗位详细
+export function getPost(postId) {
+  return request({
+    url: '/system/post/' + postId,
+    method: 'get'
+  })
+}
+
+// 新增岗位
+export function addPost(data) {
+  return request({
+    url: '/system/post',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改岗位
+export function updatePost(data) {
+  return request({
+    url: '/system/post',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除岗位
+export function delPost(postId) {
+  return request({
+    url: '/system/post/' + postId,
+    method: 'delete'
+  })
+}

+ 119 - 0
gyj-iot-web/src/api/system/role.js

@@ -0,0 +1,119 @@
+import request from '@/utils/request'
+
+// 查询角色列表
+export function listRole(query) {
+  return request({
+    url: '/system/role/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询角色详细
+export function getRole(roleId) {
+  return request({
+    url: '/system/role/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增角色
+export function addRole(data) {
+  return request({
+    url: '/system/role',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改角色
+export function updateRole(data) {
+  return request({
+    url: '/system/role',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色数据权限
+export function dataScope(data) {
+  return request({
+    url: '/system/role/dataScope',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色状态修改
+export function changeRoleStatus(roleId, status) {
+  const data = {
+    roleId,
+    status
+  }
+  return request({
+    url: '/system/role/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除角色
+export function delRole(roleId) {
+  return request({
+    url: '/system/role/' + roleId,
+    method: 'delete'
+  })
+}
+
+// 查询角色已授权用户列表
+export function allocatedUserList(query) {
+  return request({
+    url: '/system/role/authUser/allocatedList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询角色未授权用户列表
+export function unallocatedUserList(query) {
+  return request({
+    url: '/system/role/authUser/unallocatedList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 取消用户授权角色
+export function authUserCancel(data) {
+  return request({
+    url: '/system/role/authUser/cancel',
+    method: 'put',
+    data: data
+  })
+}
+
+// 批量取消用户授权角色
+export function authUserCancelAll(data) {
+  return request({
+    url: '/system/role/authUser/cancelAll',
+    method: 'put',
+    params: data
+  })
+}
+
+// 授权用户选择
+export function authUserSelectAll(data) {
+  return request({
+    url: '/system/role/authUser/selectAll',
+    method: 'put',
+    params: data
+  })
+}
+
+// 根据角色ID查询部门树结构
+export function deptTreeSelect(roleId) {
+  return request({
+    url: '/system/role/deptTree/' + roleId,
+    method: 'get'
+  })
+}

+ 131 - 0
gyj-iot-web/src/api/system/user.js

@@ -0,0 +1,131 @@
+import request from '@/utils/request'
+import { parseStrEmpty } from "@/utils/ruoyi";
+
+// 查询用户列表
+export function listUser(query) {
+  return request({
+    url: '/system/user/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询用户详细
+export function getUser(userId) {
+  return request({
+    url: '/system/user/' + parseStrEmpty(userId),
+    method: 'get'
+  })
+}
+
+// 新增用户
+export function addUser(data) {
+  return request({
+    url: '/system/user',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改用户
+export function updateUser(data) {
+  return request({
+    url: '/system/user',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除用户
+export function delUser(userId) {
+  return request({
+    url: '/system/user/' + userId,
+    method: 'delete'
+  })
+}
+
+// 用户密码重置
+export function resetUserPwd(userId, password) {
+  const data = {
+    userId,
+    password
+  }
+  return request({
+    url: '/system/user/resetPwd',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户状态修改
+export function changeUserStatus(userId, status) {
+  const data = {
+    userId,
+    status
+  }
+  return request({
+    url: '/system/user/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+// 查询用户个人信息
+export function getUserProfile() {
+  return request({
+    url: '/system/user/profile',
+    method: 'get'
+  })
+}
+
+// 修改用户个人信息
+export function updateUserProfile(data) {
+  return request({
+    url: '/system/user/profile',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户密码重置
+export function updateUserPwd(data) {
+  return request({
+    url: '/system/user/profile/updatePwd',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户头像上传
+export function uploadAvatar(data) {
+  return request({
+    url: '/system/user/profile/avatar',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询授权角色
+export function getAuthRole(userId) {
+  return request({
+    url: '/system/user/authRole/' + userId,
+    method: 'get'
+  })
+}
+
+// 保存授权角色
+export function updateAuthRole(data) {
+  return request({
+    url: '/system/user/authRole',
+    method: 'put',
+    params: data
+  })
+}
+
+// 查询部门下拉树结构
+export function deptTreeSelect() {
+  return request({
+    url: '/system/user/deptTree',
+    method: 'get'
+  })
+}

+ 76 - 0
gyj-iot-web/src/api/tool/gen.js

@@ -0,0 +1,76 @@
+import request from '@/utils/request'
+
+// 查询生成表数据
+export function listTable(query) {
+  return request({
+    url: '/tool/gen/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询db数据库列表
+export function listDbTable(query) {
+  return request({
+    url: '/tool/gen/db/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询表详细信息
+export function getGenTable(tableId) {
+  return request({
+    url: '/tool/gen/' + tableId,
+    method: 'get'
+  })
+}
+
+// 修改代码生成信息
+export function updateGenTable(data) {
+  return request({
+    url: '/tool/gen',
+    method: 'put',
+    data: data
+  })
+}
+
+// 导入表
+export function importTable(data) {
+  return request({
+    url: '/tool/gen/importTable',
+    method: 'post',
+    params: data
+  })
+}
+
+// 预览生成代码
+export function previewTable(tableId) {
+  return request({
+    url: '/tool/gen/preview/' + tableId,
+    method: 'get'
+  })
+}
+
+// 删除表数据
+export function delTable(tableId) {
+  return request({
+    url: '/tool/gen/' + tableId,
+    method: 'delete'
+  })
+}
+
+// 生成代码(自定义路径)
+export function genCode(tableName) {
+  return request({
+    url: '/tool/gen/genCode/' + tableName,
+    method: 'get'
+  })
+}
+
+// 同步数据库
+export function synchDb(tableName) {
+  return request({
+    url: '/tool/gen/synchDb/' + tableName,
+    method: 'get'
+  })
+}

BIN
gyj-iot-web/src/assets/401_images/401.gif


BIN
gyj-iot-web/src/assets/404_images/404.png


BIN
gyj-iot-web/src/assets/404_images/404_cloud.png


+ 361 - 0
gyj-iot-web/src/assets/bigScreen/css/index.scss

@@ -0,0 +1,361 @@
+@import "./modules/reset.scss";
+@import "./modules/variables.scss";
+// @import './theme/index.css';
+// @import '../iconfont//iconfont.css';
+
+[class*=" blq-icon-"],
+[class^=blq-icon-] {
+  font-family: iconfont !important;
+  speak: none;
+  font-style: normal;
+  font-weight: 400;
+  font-variant: normal;
+  text-transform: none;
+  line-height: 1;
+  vertical-align: middle;
+  display: inline-block;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale
+}
+
+*,
+:after,
+:before {
+  box-sizing: content-box;
+}
+
+.clearfix {
+  &::after {
+    content: "";
+    display: table;
+    height: 0;
+    line-height: 0;
+    visibility: hidden;
+    clear: both;
+  }
+}
+
+.contents {
+  width: 100%;
+  display: flex;
+  min-height: calc(100% - 60px);
+  justify-content: space-between;
+}
+
+.beautify-scroll-def {
+  overflow-y: auto;
+
+  &::-webkit-scrollbar-thumb {
+    //滚动条的设置
+    background-color: rgba(14, 59, 150, 0);
+    background-clip: padding-box;
+    border-radius: 4px;
+  }
+
+  &:hover {
+    &::-webkit-scrollbar-thumb {
+      //滚动条的设置
+      background-color: rgba(14, 59, 150, 0.5);
+      background-clip: padding-box;
+      border-radius: 4px;
+    }
+  }
+
+  &::-webkit-scrollbar-track-piece {
+    //滚动条凹槽的颜色,还可以设置边框属性
+    background-color: transparent;
+  }
+
+  &::-webkit-scrollbar {
+    //滚动条的宽度
+    width: 8px;
+    height: 8px;
+  }
+
+
+
+  &::-webkit-scrollbar-thumb:hover {
+    background-color: rgba(14, 59, 150, .8);
+  }
+}
+
+
+.orderNum {
+  // min-width: 22px;
+  // height: 22px;
+  // background: #00b8ff;
+  // border-radius: 50%;
+  // text-align: center;
+  // line-height: 22px;
+  // font-size: 13px;
+  // font-weight: 900;
+  // color: #0f2854;
+  color: #00b8ff;
+}
+
+.yh-big-input {
+  width: 253px;
+  height: 14px;
+  background: transparent;
+  border: 1px solid rgba(255, 255, 255, .53);
+  border-radius: 4px;
+  color: #fff;
+  padding: 6px 10px;
+  font-size: 14px;
+  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
+
+  &:focus {
+    outline: none;
+    border-color: #31abe3;
+  }
+}
+
+.yh-big-el-input {
+  width: 253px;
+  font-size: 14px;
+
+  .el-input__inner {
+    padding: 6px 10px;
+    border: 1px solid rgba(255, 255, 255, .53);
+    background-color: transparent;
+    font-size: 14px;
+    line-height: 1;
+    color: #fff;
+    &:hover{
+      border-color: rgba(255, 255, 255, .8);
+    }
+    &:focus {
+      outline: none;
+      border-color: #31abe3;
+    }
+
+  }
+
+}
+
+.yh-big-button {
+  width: 53px;
+  height: 26px;
+  background: #00b1d6;
+  border-radius: 4px;
+  // border-color: #00b1d6;
+  border-width: 1px;
+  border: none;
+  cursor: pointer;
+  color: #fff;
+  font-size: 15px;
+
+  &:hover,
+  &:focus {
+    // border-color: #0597b4;
+    background: #0597b4;
+  }
+}
+
+
+//浮动
+.float-r {
+  float: right;
+}
+
+//浮动
+.float-l {
+  float: left;
+}
+
+// 字体加粗
+.fw-b {
+  font-weight: bold;
+}
+
+//文章一行显示,多余省略号显示
+.title-item {
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+//表格样式重置
+.ve-table {
+  $border-color: #525371;
+  // $border-color: rgba(255, 255, 255, .43);
+  box-sizing: border-box;
+
+  .ve-table-container {
+    &::-webkit-scrollbar-track-piece {
+      //滚动条凹槽的颜色,还可以设置边框属性
+      background-color: transparent;
+    }
+
+    &::-webkit-scrollbar {
+      //滚动条的宽度
+      width: 8px;
+      height: 8px;
+    }
+
+    &::-webkit-scrollbar-thumb {
+      //滚动条的设置
+      background-color: rgba(14, 59, 150, 0.5);
+      background-clip: padding-box;
+      border-radius: 4px;
+    }
+
+    &::-webkit-scrollbar-thumb:hover {
+      background-color: rgba(14, 59, 150, .8);
+    }
+
+    .ve-table-content {
+      &::after {
+        content: "";
+        position: absolute;
+        top: 0;
+        right: 0px;
+        width: 1px;
+        height: 100%;
+        background-color: $border-color;
+        z-index: 20;
+
+      }
+    }
+
+  }
+
+  &.ve-table-border-around {
+    border-color: $border-color;
+  }
+
+  .ve-table-container table.ve-table-content thead.ve-table-header tr.ve-table-header-tr {
+    height: 34px;
+    box-sizing: border-box;
+
+    th.ve-table-header-th {
+      background: #04004E;
+      color: #FFF;
+      border-color: $border-color;
+      box-sizing: border-box;
+      line-height: 1;
+    }
+  }
+
+  .ve-table-container table.ve-table-content tbody.ve-table-body {
+
+    tr.ve-table-body-tr td.ve-table-body-td,
+    tr.ve-table-expand-tr td.ve-table-body-td,
+    tr.ve-table-body-tr td.ve-table-expand-td,
+    tr.ve-table-expand-tr td.ve-table-expand-td {
+      background: transparent;
+      color: #FFF;
+      border-color: $border-color;
+      box-sizing: border-box;
+    }
+
+    tr.ve-table-body-tr,
+    tr.ve-table-expand-tr {
+      height: 34px;
+      box-sizing: border-box;
+    }
+
+    &.ve-table-row-hover tr.ve-table-body-tr:hover td {
+      background-color: rgba(0, 0, 0, .22);
+      box-sizing: border-box;
+    }
+  }
+
+
+
+  .ve-table-container .ve-table-border-x th,
+  .ve-table-container .ve-table-border-x td {
+    border-color: $border-color;
+    box-sizing: border-box;
+  }
+
+}
+
+
+
+//颜色
+@each $colorkey,
+$color in $colors {
+  .text-#{$colorkey} {
+    color: $color;
+  }
+
+  .bg-#{$colorkey} {
+    background-color: $color;
+  }
+}
+
+//对齐
+@each $var in (left, center, right) {
+  .text-#{$var} {
+    text-align: $var !important;
+  }
+}
+
+//flex
+@each $key,
+$value in $flex-jc {
+  .jc-#{$key} {
+    justify-content: $value;
+  }
+}
+
+@each $key,
+$value in $flex-ai {
+  .ai-#{$key} {
+    align-items: $value;
+  }
+}
+
+//字体
+@each $fontkey,
+$fontvalue in $font-sizes {
+  .fs-#{$fontkey} {
+    font-size: $fontvalue * $base-font-size;
+  }
+}
+
+//.mt-1 => margin top
+//spacing
+
+@each $typekey,
+$type in $spacing-types {
+
+  //.m-1
+  @each $sizekey,
+  $size in $spacing-sizes {
+    .#{$typekey}-#{$sizekey} {
+      #{$type}: $size * $spacing-base-size;
+    }
+  }
+
+  //.mx-1
+  @each $sizekey,
+  $size in $spacing-sizes {
+    .#{$typekey}x-#{$sizekey} {
+      #{$type}-left: $size * $spacing-base-size;
+      #{$type}-right: $size * $spacing-base-size;
+    }
+
+    .#{$typekey}y-#{$sizekey} {
+      #{$type}-top: $size * $spacing-base-size;
+      #{$type}-bottom: $size * $spacing-base-size;
+    }
+  }
+
+  //.mt-1
+  @each $directionkey,
+  $direction in $spacing-directions {
+
+    @each $sizekey,
+    $size in $spacing-sizes {
+      .#{$typekey}#{$directionkey}-#{$sizekey} {
+        #{$type}-#{$direction}: $size * $spacing-base-size;
+      }
+    }
+  }
+
+  .#{$typekey} {
+    #{$type}: 0;
+  }
+}

+ 200 - 0
gyj-iot-web/src/assets/bigScreen/css/modules/reset.scss

@@ -0,0 +1,200 @@
+/**
+ * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
+ * http://cssreset.com
+ */
+html,
+body,
+div,
+span,
+applet,
+object,
+iframe,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+p,
+blockquote,
+pre,
+a,
+abbr,
+acronym,
+address,
+big,
+cite,
+code,
+del,
+dfn,
+em,
+img,
+ins,
+kbd,
+q,
+s,
+samp,
+small,
+strike,
+strong,
+sub,
+sup,
+tt,
+var,
+b,
+u,
+i,
+center,
+dl,
+dt,
+dd,
+ol,
+ul,
+li,
+fieldset,
+form,
+label,
+legend,
+table,
+caption,
+tbody,
+tfoot,
+thead,
+tr,
+th,
+td,
+article,
+aside,
+canvas,
+details,
+embed,
+figure,
+figcaption,
+footer,
+header,
+menu,
+nav,
+output,
+ruby,
+section,
+summary,
+time,
+mark,
+audio,
+video,
+input {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  font-size: 100%;
+  font-weight: normal;
+  vertical-align: baseline;
+}
+
+/* HTML5 display-role reset for older browsers */
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+menu,
+nav,
+section {
+  display: block;
+}
+
+body {
+  line-height: 1;
+}
+
+blockquote,
+q {
+  quotes: none;
+}
+
+blockquote:before,
+blockquote:after,
+q:before,
+q:after {
+  content: none;
+}
+
+table {
+  border-collapse: collapse;
+  border-spacing: 0;
+}
+
+/* custom */
+
+a {
+  color: #7e8c8d;
+  -webkit-backface-visibility: hidden;
+  text-decoration: none;
+}
+
+li {
+  list-style: none;
+}
+
+body {
+  -webkit-text-size-adjust: none;
+  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+
+.olControlScaleLineBottom {
+  display: none;
+}
+
+.olControlScaleLineTop {
+  color: #000 !important;
+  border-bottom: solid 3px #000 !important;
+  border-left: solid 2px #000 !important;
+  border-right: solid 2px #000 !important;
+  background-color: rgba(255, 255, 255, .4);
+  font-size: 10px;
+  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
+}
+
+.olControlScaleLine {
+  z-index: 900 !important;
+}
+/*清除浮动*/
+.clearfix:after {
+  content: ".";
+  display: block;
+  height: 0;
+  clear: both;
+  visibility: hidden;
+}
+.clearfix {display: inline-block;}
+/* 点击搜索框获取焦点 placeholder消失-开始 */
+/* WebKit browsers */
+
+// input:focus::-webkit-input-placeholder {
+//   color: transparent;
+// }
+
+
+// /* Mozilla Firefox 4 to 18 */
+
+// input:focus:-moz-placeholder {
+//   color: transparent;
+// }
+
+
+// /* Mozilla Firefox 19+ */
+
+// input:focus::-moz-placeholder {
+//   color: transparent;
+// }
+
+
+// /* Internet Explorer 10+ */
+
+// input:focus:-ms-input-placeholder {
+//   color: transparent;
+// }
+
+/* 点击搜索框获取焦点 placeholder消失-结束 */

+ 98 - 0
gyj-iot-web/src/assets/bigScreen/css/modules/variables.scss

@@ -0,0 +1,98 @@
+// 颜色
+$colors: (
+  "primary": #1A5CD7,
+  "info-1": #4394e4,
+  "info": #4b67af,
+  "white": #ffffff,
+  "light": #f9f9f9,
+  "grey-1": #999999,
+  "grey": #666666,
+  "dark-1": #5f5f5f,
+  "dark": #222222,
+  "black-1": #171823,
+  "black": #000000,
+  "icon": #5cd9e8
+);
+
+// 字体大小
+$base-font-size: 0.2rem;
+$font-sizes: (
+  xxs: 0.1,
+  //8px
+    xs: 0.125,
+  //10px
+    sm: 0.2875,
+  //12px
+    md: 0.1625,
+  //13px
+    lg: 0.175,
+  //14px
+    xl: 0.2,
+  //16px
+    xxl: 0.225,
+  //18px
+    xxxl: 0.25 //20px,,,,
+);
+
+// 宽高
+.w-100 {
+  width: 100%;
+}
+.h-100 {
+  height: 100%;
+}
+
+//flex
+.flex {
+  display: flex;
+}
+.flex-column {
+  flex-direction: column;
+}
+.flex-wrap {
+  flex-wrap: wrap;
+}
+.flex-nowrap {
+  flex-wrap: nowrap;
+}
+$flex-jc: (
+  start: flex-start,
+  end: flex-end,
+  center: center,
+  between: space-between,
+  around: space-around,
+  evenly: space-evenly,
+);
+
+$flex-ai: (
+  start: flex-start,
+  end: flex-end,
+  center: center,
+  stretch: stretch,
+);
+
+.flex-1 {
+  flex: 1;
+}
+
+//.mt-1 => margin top
+//spacing
+$spacing-types: (
+  m: margin,
+  p: padding,
+);
+$spacing-directions: (
+  t: top,
+  r: right,
+  b: bottom,
+  l: left,
+);
+$spacing-base-size: 0.5rem;
+$spacing-sizes: (
+  0: 0,
+  1: 0.5,
+  2: 1,
+  3: 1.5,
+  4: 2,
+  5: 2.5,
+);

+ 156 - 0
gyj-iot-web/src/assets/bigScreen/css/public.scss

@@ -0,0 +1,156 @@
+.flex {
+	display: flex;
+}
+
+.flex-direction {
+	flex-direction: column;
+}
+
+.flex-wrap {
+	flex-wrap: wrap;
+}
+
+.align-start {
+	align-items: flex-start;
+}
+
+.align-end {
+	align-items: flex-end;
+}
+
+.align-center {
+	align-items: center;
+}
+
+.align-stretch {
+	align-items: stretch;
+}
+
+.self-start {
+	align-self: flex-start;
+}
+
+.self-center {
+	align-self: flex-center;
+}
+
+.self-end {
+	align-self: flex-end;
+}
+
+.self-stretch {
+	align-self: stretch;
+}
+
+.align-stretch {
+	align-items: stretch;
+}
+
+.justify-start {
+	justify-content: flex-start;
+}
+
+.justify-end {
+	justify-content: flex-end;
+}
+
+.justify-center {
+	justify-content: center;
+}
+
+.justify-between {
+	justify-content: space-between;
+}
+
+.justify-around {
+	justify-content: space-around;
+}
+@for $i from 0 through 12 {
+  .rdx-flex-#{$i} {
+    flex: $i;
+  }
+}
+
+@for $i from 9 to 50 {
+  .rdx-font-#{$i} {
+    font-size: $i + px;
+  }
+}
+
+@for $i from 2 to 50 {
+  .rdx-radius-#{$i} {
+    border-radius: $i + px;
+  }
+}
+@for $i from 10 to 50 {
+  .rdx-line-height-#{$i} {
+    line-height: $i + px;
+  }
+}
+
+// 定义内外边距,历遍1-80
+@for $i from 0 through 80 {
+  // 只要双数和能被5除尽的数
+  @if $i % 2 == 0 or $i % 5 == 0 {
+    // 得出:u-margin-30或者u-m-30
+    .rdx-m-#{$i} {
+      margin: $i + px !important;
+    }
+    // 得出:u-padding-30或者u-p-30
+    .rdx-p-#{$i} {
+      padding: $i + px !important;
+    }
+
+    @each $short, $long in l left, t top, r right, b bottom {
+      // 缩写版,结果如: u-m-l-30
+      // 定义外边距
+      .rdx-m-#{$short}-#{$i} {
+        margin-#{$long}: $i + px !important;
+      }
+
+      // 定义内边距
+      .rdx-p-#{$short}-#{$i} {
+        padding-#{$long}: $i + px !important;
+      }
+
+	 //自定义左右内边距
+	  .rdx-p-lr-#{$i} {
+		padding-left:$i + px !important;
+		padding-right:$i + px !important;
+	  }
+	  //自定义上下内边距
+	   .rdx-p-tb-#{$i} {
+	  		padding-top:$i + px !important;
+	  		padding-bottom:$i + px !important;
+	   }
+    }
+  }
+}
+i{font-style: normal;}
+.position-re{position: relative;}
+.position-ab{position: absolute; z-index: 9;}
+.position-fixed{position: fixed; background: rgba(92, 116, 143, 0.45); width: 100%; height: 100%; left: 0px; top: 0px; z-index: 10;}
+.round{border-radius: 50%;}
+.font-strong{font-weight: bold;}
+// .color-del{color:$del-color}
+// .color-primary{color: $primary-color;}
+.color-remark{color: #666666;}
+.color-9{color: #999999;}
+.color-green{color: #38a800;}
+.bg-white{background-color: white;}
+.line-bottom{border-bottom: 1px solid #eeeeee;}
+.button-pointer{cursor: pointer;}
+.box-shadow-item{box-shadow: 0px 0px 4px 0px rgba(45, 45, 46, 0.1);}
+.search-form .search-form-item label {text-align: right; padding-right: 6px;}
+
+
+.break-all{
+  word-break: break-all;
+}
+.blocks{
+  width: 100%;
+  height: 100%;
+}
+.cursor-pointer{
+  cursor: pointer;
+}

BIN
gyj-iot-web/src/assets/bigScreen/css/theme/fonts/element-icons.ttf


BIN
gyj-iot-web/src/assets/bigScreen/css/theme/fonts/element-icons.woff


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
gyj-iot-web/src/assets/bigScreen/css/theme/index.css


+ 50 - 0
gyj-iot-web/src/assets/bigScreen/css/variable.scss

@@ -0,0 +1,50 @@
+// 颜色
+$primary-color: #1890ff;
+$primary-color-hl: rgb(41, 52, 67);
+$default-color: #006569;
+$link: #1890ff;
+$active-color: rgb(0, 101, 105);
+$del-color: #ff1839;
+$content-background: #f3f5fa;
+$table-header-background: #d8eaff;
+
+$primary-color-rgba: rgba($color: $primary-color,
+  $alpha: 0.1,
+);
+//表格上面button按钮颜色
+$table-header-button: #18d1ff;
+// 阴影
+$primary-shadow: 0 2px 4px rgba(0, 0, 0, 0.12),
+0 0 6px rgba(0, 0, 0, 0.04);
+$primary-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+$baidu-shadow: 1px 2px 1px rgba(0, 0, 0, 0.15);
+$gaode-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2),
+0 2px 6px 0 rgba(0, 0, 0, 0.19);
+
+// box-shadow: 0 2px 6px 0 rgb(114 124 245 / 50%);
+
+$primary-border: $primary-color solid 1px;
+
+$tool-top: 20px;
+
+//header 的高度
+$index-height: 60px;
+$index-content-height: calc(100% - 60px);
+$index-tags-height: 36px;
+// 宽度侧边栏
+$aside-width: 200px;
+$content-padding: 16px;
+
+$default-zindex: 99;
+
+/*文本格式化,超出范围,显示省略号*/
+@mixin text-overflow($num: 1) {
+  word-break: break-all;
+  text-overflow: ellipsis;
+  overflow: hidden;
+  display: -webkit-box;
+  -webkit-line-clamp: $num;
+  -webkit-box-orient: vertical;
+}
+
+

+ 18 - 0
gyj-iot-web/src/assets/bigScreen/css/webfont/index.css

@@ -0,0 +1,18 @@
+/* @font-face {
+    font-family: 'webfont';
+    font-display: swap;
+    src: url('//at.alicdn.com/t/webfont_c14qx7m7htb.eot');
+    src: 
+    url('//at.alicdn.com/t/webfont_c14qx7m7htb.woff2') format('woff2'),
+    url('//at.alicdn.com/t/webfont_c14qx7m7htb.woff') format('woff'), 
+
+
+  }
+
+.number-font{
+    font-family:"webfont" !important;
+    font-size:16px;font-style:normal;
+    -webkit-font-smoothing: antialiased;
+    -webkit-text-stroke-width: 0.2px;
+    -moz-osx-font-smoothing: grayscale;
+} */

+ 23 - 0
gyj-iot-web/src/assets/bigScreen/iconfont/iconfont.css

@@ -0,0 +1,23 @@
+@font-face {
+  font-family: "iconfont"; /* Project id 2995337 */
+  src: url('iconfont.woff2?t=1638871675242') format('woff2'),
+       url('iconfont.woff?t=1638871675242') format('woff'),
+       url('iconfont.ttf?t=1638871675242') format('truetype');
+}
+
+/* .iconfont {
+  font-family: "iconfont" !important;
+  font-size: 16px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+} */
+
+.blq-icon-shezhi01:before {
+  content: "\e610";
+}
+
+.blq-icon-shezhi02:before {
+  content: "\e611";
+}
+

BIN
gyj-iot-web/src/assets/bigScreen/iconfont/iconfont.ttf


BIN
gyj-iot-web/src/assets/bigScreen/iconfont/iconfont.woff


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor