diff --git a/golang/ergo/app/uniapp/.hbuilderx/launch.json b/golang/ergo/app/uniapp/.hbuilderx/launch.json
deleted file mode 100644
index 582561b0c..000000000
--- a/golang/ergo/app/uniapp/.hbuilderx/launch.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
- // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
- "version": "0.0",
- "configurations": [{
- "app-plus" :
- {
- "launchtype" : "local"
- },
- "default" :
- {
- "launchtype" : "local"
- },
- "type" : "uniCloud"
- }
- ]
-}
diff --git a/golang/ergo/app/uniapp/App.vue b/golang/ergo/app/uniapp/App.vue
deleted file mode 100644
index 1711ff2f2..000000000
--- a/golang/ergo/app/uniapp/App.vue
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
diff --git a/golang/ergo/app/uniapp/common/common.css b/golang/ergo/app/uniapp/common/common.css
deleted file mode 100644
index 5306d5f44..000000000
--- a/golang/ergo/app/uniapp/common/common.css
+++ /dev/null
@@ -1,50 +0,0 @@
-/* 文字 */
-.text-main{
- color: #8745FF;
-}
-.text-main-hover{
- color: #BA7ACE;
-}
-.text-main-disabled{
- color: #BA7ACE;
-}
-/* 背景 */
-.bg-main{
- background-color: #8745FF;
-}
-.bg-main-hover{
- background-color: #BA7ACE;
-}
-.bg-main-disabled{
- background-color: #BA7ACE;
-}
-/* 边框 */
-.border-main{
- border-color: #8745FF!important;
-}
-
-.btn-main-plain{
- border-color: #8745FF!important;
- border-width: 1rpx;
- border-style: solid;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- justify-content: center;
- color: #8745FF;
- padding-top: 15rpx;
- padding-bottom: 15rpx;
- padding-left: 20rpx;
- padding-right: 20rpx;
- border-radius: 8rpx;
-}
-/* 行高 */
-.line-h{
- line-height: 1.2;
-}
-/* 分割线 */
-.f-divider{
- height: 18rpx;
- background-color: #F5F5F4;
-}
\ No newline at end of file
diff --git a/golang/ergo/app/uniapp/common/config.js b/golang/ergo/app/uniapp/common/config.js
deleted file mode 100644
index b6b52ae21..000000000
--- a/golang/ergo/app/uniapp/common/config.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export default {
- /*
- 注意:以下接口改成你自己部署的后端(老师提供的api接口已关闭),不懂的请看:课时127-131这几节课。
- */
-
- baseUrl:"http://liveapi2.dishait.cn",
- socketUrl:"http://liveapi2.dishait.cn",
- imageUrl:"http://liveapi2.dishait.cn",
-
- // 拉流前缀
- livePlayBaseUrl:"http://liveapi2.dishait.cn:23481",
- // 推流前缀
- livePushBaseUrl:"rtmp://liveapi2.dishait.cn:23480",
-}
\ No newline at end of file
diff --git a/golang/ergo/app/uniapp/common/font/font_1859985_7mxozsfdvib.ttf b/golang/ergo/app/uniapp/common/font/font_1859985_7mxozsfdvib.ttf
deleted file mode 100644
index faac83360..000000000
Binary files a/golang/ergo/app/uniapp/common/font/font_1859985_7mxozsfdvib.ttf and /dev/null differ
diff --git a/golang/ergo/app/uniapp/common/free.css b/golang/ergo/app/uniapp/common/free.css
deleted file mode 100644
index f1f569da4..000000000
--- a/golang/ergo/app/uniapp/common/free.css
+++ /dev/null
@@ -1,424 +0,0 @@
-/* #ifndef APP-PLUS-NVUE */
-/* scroll-view */
-.scroll-row{ width: 100%;white-space: nowrap; }
-.scroll-row-item{ display: inline-block!important; }
-/* #endif */
-/* 图标 */
-.iconfont{
- font-family:iconfont;
-}
-.view,.text{
- font-size:28rpx;
- line-height:1.8;
- color:#0E151D;
-}
-/* 宽度 */
-/* #ifndef APP-PLUS-NVUE */
-.w-100{ width: 100%; }
-/* #endif */
-
-.row {
- margin-right: -20rpx;
- margin-left: -20rpx;
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-wrap: wrap;
- flex-direction: row;
-}
-
-.col-1,
-.col-2,
-.col-3,
-.col-4,
-.col-5,
-.col-6,
-.col-7,
-.col-8,
-.col-9,
-.col-10,
-.col-11,
-.col-12{
- position: relative;
- padding-right: 20rpx;
- padding-left: 20rpx;
-}
-.col-12 { width: 750rpx;}
-.col-11 { width: 687.5rpx; }
-.col-10 { width: 625rpx; }
-.col-9 { width: 562.5rpx; }
-.col-8 { width: 500rpx; }
-.col-7 { width: 437.5rpx; }
-.col-6 { width: 375rpx; }
-.col-5 { width: 312.5rpx;}
-.col-4 {width: 250rpx;}
-.col-3 {width: 187.5rpx;}
-.col-2 {width: 125rpx;}
-.col-1 {width: 62.5rpx;}
-
-.col-offset-12 { margin-left: 750rpx;}
-.col-offset-11 { margin-left: 687.5rpx; }
-.col-offset-10 { margin-left: 625rpx; }
-.col-offset-9 { margin-left: 562.5rpx; }
-.col-offset-8 { margin-left: 500rpx; }
-.col-offset-7 { margin-left: 437.5rpx; }
-.col-offset-6 { margin-left: 375rpx; }
-.col-offset-5 { margin-left: 312.5rpx;}
-.col-offset-4 {margin-left: 250rpx;}
-.col-offset-3 {margin-left: 187.5rpx;}
-.col-offset-2 {margin-left: 125rpx;}
-.col-offset-1 {margin-left: 62.5rpx;}
-.col-offset-0 {margin-left: 0;}
-
-/* flex 布局 */
-.flex{
- /* #ifndef APP-PLUS-NVUE */
- display:flex!important;
- /* #endif */
- flex-direction:row;
-}
-.flex-row{ flex-direction:row!important; }
-.flex-column{ flex-direction:column!important; }
-.flex-row-reverse{ flex-direction:row-reverse!important; }
-.flex-column-reverse{ flex-direction:column-reverse!important; }
-.flex-wrap{ flex-wrap:wrap;}
-.flex-nowrap{ flex-wrap:nowrap;}
-.justify-start{justify-content:flex-start;}
-.justify-end{justify-content:flex-end;}
-.justify-between{justify-content:space-between;}
-.justify-center{justify-content:center;}
-.align-center{ align-items: center; }
-.align-stretch{ align-items: stretch; }
-.align-start{ align-items: flex-start; }
-.align-end{ align-items: flex-end; }
-/* #ifndef APP-PLUS-NVUE */
-.content-start {align-content: flex-start;}
-.content-end {align-content: flex-end;}
-.content-center {align-content: center;}
-.content-between {align-content: space-between;}
-.content-around {align-content: space-around;}
-.content-stretch {align-content: stretch;}
-/* #endif */
-.flex-1{ flex: 1; }
-.flex-2{ flex: 2; }
-.flex-3{ flex: 3; }
-.flex-4{ flex: 4; }
-.flex-5{ flex: 5; }
-/* #ifndef APP-PLUS-NVUE */
-.flex-shrink{ flex-shrink: 0; }
-/* #endif */
-
-.container {
- padding-right: 20rpx;
- padding-left: 20rpx;
-}
-/* -- 内外边距 -- */
-.m-0 { margin: 0; }
-/* #ifndef APP-PLUS-NVUE */
-.m-auto{ margin: auto; }
-/* #endif */
-.m-1 { margin: 10rpx; }
-.m-2 { margin: 20rpx; }
-.m-3 { margin: 30rpx; }
-.m-4 { margin: 40rpx; }
-.m-5 { margin: 50rpx; }
-.mt-0 { margin-top: 0; }
-/* #ifndef APP-PLUS-NVUE */
-.mt-auto { margin-top: auto; }
-/* #endif */
-.mt-1 { margin-top: 10rpx; }
-.mt-2 { margin-top: 20rpx; }
-.mt-3 { margin-top: 30rpx; }
-.mt-4 { margin-top: 40rpx; }
-.mt-5 { margin-top: 50rpx; }
-.mb-0 { margin-bottom: 0; }
-/* #ifndef APP-PLUS-NVUE */
-.mb-auto { margin-bottom: auto; }
-/* #endif */
-.mb-1 { margin-bottom: 10rpx; }
-.mb-2 { margin-bottom: 20rpx; }
-.mb-3 { margin-bottom: 30rpx; }
-.mb-4 { margin-bottom: 40rpx; }
-.mb-5 { margin-bottom: 50rpx; }
-.ml-0 { margin-left: 0; }
-/* #ifndef APP-PLUS-NVUE */
-.ml-auto { margin-left: auto; }
-/* #endif */
-.ml-1 { margin-left: 10rpx; }
-.ml-2 { margin-left: 20rpx; }
-.ml-3 { margin-left: 30rpx; }
-.ml-4 { margin-left: 40rpx; }
-.ml-5 { margin-left: 50rpx; }
-.mr-0 { margin-right: 0; }
-/* #ifndef APP-PLUS-NVUE */
-.mr-auto { margin-right: auto; }
-/* #endif */
-.mr-1 { margin-right: 10rpx; }
-.mr-2 { margin-right: 20rpx; }
-.mr-3 { margin-right: 30rpx; }
-.mr-4 { margin-right: 40rpx; }
-.mr-5 { margin-right: 50rpx; }
-.my-0 { margin-top: 0; margin-bottom: 0; }
-/* #ifndef APP-PLUS-NVUE */
-.my-auto { margin-top: auto; margin-bottom: auto; }
-/* #endif */
-.my-1 { margin-top: 10rpx; margin-bottom: 10rpx; }
-.my-2 { margin-top: 20rpx; margin-bottom: 20rpx; }
-.my-3 { margin-top: 30rpx; margin-bottom: 30rpx; }
-.my-4 { margin-top: 40rpx; margin-bottom: 40rpx; }
-.my-5 { margin-top: 50rpx; margin-bottom: 50rpx; }
-.mx-0 { margin-left: 0; margin-right: 0; }
-/* #ifndef APP-PLUS-NVUE */
-.mx-auto { margin-left: auto; margin-right: auto; }
-/* #endif */
-.mx-1 { margin-left: 10rpx; margin-right: 10rpx;}
-.mx-2 { margin-left: 20rpx; margin-right: 20rpx;}
-.mx-3 { margin-left: 30rpx; margin-right: 30rpx;}
-.mx-4 { margin-left: 40rpx; margin-right: 40rpx;}
-.mx-5 { margin-left: 50rpx; margin-right: 50rpx;}
-
-.p-0 { padding: 0; }
-.p { padding: 5rpx; }
-.p-1 { padding: 10rpx; }
-.p-2 { padding: 20rpx; }
-.p-3 { padding: 30rpx; }
-.p-4 { padding: 40rpx; }
-.p-5 { padding: 50rpx; }
-.pt-0 { padding-top: 0; }
-.pt { padding-top: 5rpx; }
-.pt-1 { padding-top: 10rpx; }
-.pt-2 { padding-top: 20rpx; }
-.pt-3 { padding-top: 30rpx; }
-.pt-4 { padding-top: 40rpx; }
-.pt-5 { padding-top: 50rpx; }
-.pb-0 { padding-bottom: 0; }
-.pb-1 { padding-bottom: 10rpx; }
-.pb { padding-bottom: 5rpx; }
-.pb-2 { padding-bottom: 20rpx; }
-.pb-3 { padding-bottom: 30rpx; }
-.pb-4 { padding-bottom: 40rpx; }
-.pb-5 { padding-bottom: 50rpx; }
-.pl-0 { padding-left: 0; }
-.pl { padding-left: 5rpx; }
-.pl-1 { padding-left: 10rpx; }
-.pl-2 { padding-left: 20rpx; }
-.pl-3 { padding-left: 30rpx; }
-.pl-4 { padding-left: 40rpx; }
-.pl-5 { padding-left: 50rpx; }
-.pr-0 { padding-right: 0; }
-.pr { padding-right: 5rpx; }
-.pr-1 { padding-right: 10rpx; }
-.pr-2 { padding-right: 20rpx; }
-.pr-3 { padding-right: 30rpx; }
-.pr-4 { padding-right: 40rpx; }
-.pr-5 { padding-right: 50rpx; }
-.py-0 { padding-top: 0; padding-bottom: 0; }
-.py { padding-top: 5rpx; padding-bottom: 5rpx; }
-.py-1 { padding-top: 10rpx; padding-bottom: 10rpx; }
-.py-2 { padding-top: 20rpx; padding-bottom: 20rpx; }
-.py-3 { padding-top: 30rpx; padding-bottom: 30rpx; }
-.py-4 { padding-top: 40rpx; padding-bottom: 40rpx; }
-.py-5 { padding-top: 50rpx; padding-bottom: 50rpx; }
-.px-0 { padding-left: 0; padding-right: 0; }
-.px-1 { padding-left: 10rpx; padding-right: 10rpx;}
-.px { padding-left: 5rpx; padding-right: 5rpx;}
-.px-2 { padding-left: 20rpx; padding-right: 20rpx;}
-.px-3 { padding-left: 30rpx; padding-right: 30rpx;}
-.px-4 { padding-left: 40rpx; padding-right: 40rpx;}
-.px-5 { padding-left: 50rpx; padding-right: 50rpx;}
-/* 文字大小 */
-.font-smaller { font-size: 15rpx;}
-.font-small { font-size: 20rpx;}
-.font-sm { font-size: 25rpx;}
-.font { font-size: 30rpx!important;}
-.font-md { font-size: 35rpx!important;}
-.font-lg { font-size: 40rpx;}
-.h1{font-size:80rpx; line-height:1.8;}
-.h2{font-size:60rpx; line-height:1.8;}
-.h3{font-size:45rpx; line-height:1.8;}
-.h4{font-size:32rpx; line-height:1.8;}
-.h5{font-size:30rpx; line-height:1.8;}
-.h6{font-size:28rpx; line-height:1.8;}
-/* 文字缩进 */
-/* #ifndef APP-PLUS-NVUE */
-.text-indent{text-indent:2;}
-/* #endif */
-/* 文字划线 */
-.text-through{text-decoration:line-through;}
-/* 文字对齐 */
-.text-left { text-align: left;}
-.text-right { text-align: right;}
-.text-center { text-align: center;}
-/* 文字换行溢出处理 */
-.text-ellipsis {
- /* #ifndef APP-PLUS-NVUE */
- overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
- /* #endif */
- /* #ifdef APP-PLUS-NVUE */
- lines: 1;
- /* #endif */
-}
-/* 文字粗细和斜体 */
-.font-weight-light {font-weight: 300;} /*细*/
-.font-weight-lighter {font-weight: 100;}/*更细*/
-.font-weight-normal { font-weight: 400;} /*正常*/
-.font-weight-bold { font-weight: 700;} /*粗*/
-.font-weight-bolder { font-weight: bold;} /*更粗*/
-.font-italic { font-style: italic;} /*斜体*/
-/* 文字颜色 */
-.text-white {color: #ffffff;}
-.text-primary {color: #007bff;}
-.text-hover-primary { color: #0056b3;}
-.text-secondary {color: #6c757d;}
-.text-hover-secondary { color: #494f54;}
-.text-success {color: #28a745;}
-.text-hover-success{color: #19692c;}
-.text-info { color: #17a2b8;}
-.text-hover-info {color: #0f6674;}
-.text-warning {color: #ffc107;}
-.text-hover-warning { color: #ba8b00;}
-.text-danger { color: #dc3545;}
-.text-hover-danger { color: #a71d2a;}
-.text-light { color: #f8f9fa;}
-.text-hover-light { color: #cbd3da;}
-.text-dark { color: #343a40;}
-.text-hover-dark{ color: #121416;}
-.text-body { color: #212529;}
-.text-muted { color: #6c757d;}
-/* 浅灰色 */
-.text-light-muted { color: #A9A5A0;}
-.text-light-black { color: rgba(0, 0, 0, 0.5);}
-.text-light-white { color: rgba(255, 255, 255, 0.5);}
-
-/* 背景颜色 */
-.bg-primary { background-color: #007bff;}
-.bg-hover-primary:hover{ background-color: #0062cc;}
-.bg-secondary { background-color: #6c757d;}
-.bg-hover-secondary:hover{ background-color: #545b62;}
-.bg-success { background-color: #28a745;}
-.bg-hover-success { background-color: #1e7e34;}
-.bg-info { background-color: #17a2b8;}
-.bg-hover-info { background-color: #117a8b;}
-.bg-warning { background-color: #ffc107;}
-.bg-hover-warning { background-color: #d39e00;}
-.bg-danger { background-color: #dc3545;}
-.bg-hover-danger{ background-color: #bd2130;}
-.bg-light { background-color: #f8f9fa;}
-.bg-hover-light{ background-color: #dae0e5;}
-.bg-dark { background-color: #343a40;}
-.bg-hover-dark { background-color: #1d2124;}
-.bg-white { background-color: #ffffff;}
-.bg-transparent { background-color: transparent;}
-/* 边框 */
-.border { border-width: 1rpx;border-style: solid;border-color: #dee2e6;}
-.border-top {
- border-top-width: 1rpx;
- border-top-style: solid;
- border-top-color: #dee2e6;
-}
-.border-right {
- border-right-width: 1rpx;
- border-right-style: solid;
- border-right-color: #dee2e6;
-}
-.border-bottom {
- border-bottom-width: 1rpx;
- border-bottom-style: solid;
- border-bottom-color: #dee2e6;
-}
-.border-left {
- border-left-width: 1rpx;
- border-left-style: solid;
- border-left-color: #dee2e6;
-}
-.border-0 { border-width: 0!important;}
-.border-top-0 { border-top-width: 0!important;}
-.border-right-0 {border-right-width: 0!important;}
-.border-bottom-0 {border-bottom-width: 0!important;}
-.border-left-0 {border-left-width: 0!important;}
-.border-primary { border-color: #007bff;}
-.border-secondary {border-color: #6c757d;}
-.border-light-secondary {border-color: #E9E8E5;}
-.border-success {border-color: #28a745;}
-.border-info {border-color: #17a2b8;}
-.border-warning {border-color: #ffc107;}
-.border-danger {border-color: #dc3545;}
-.border-light {border-color: #f8f9fa;}
-.border-dark {border-color: #343a40;}
-.border-white {border-color: #FFFFFF;}
-/* 圆角 */
-.rounded { border-radius: 8rpx;}
-.rounded-lg { border-radius: 14rpx;}
-.rounded-top {
- border-top-left-radius: 8rpx;
- border-top-right-radius: 8rpx;
-}
-.rounded-top-lg {
- border-top-left-radius: 14rpx;
- border-top-right-radius: 14rpx;
-}
-.rounded-right {
- border-top-right-radius: 8rpx;
- border-bottom-right-radius: 8rpx;
-}
-.rounded-bottom {
- border-bottom-right-radius: 8rpx;
- border-bottom-left-radius: 8rpx;
-}
-.rounded-bottom-lg {
- border-bottom-right-radius: 14rpx;
- border-bottom-left-radius: 14rpx;
-}
-.rounded-left {
- border-top-left-radius: 8rpx;
- border-bottom-left-radius: 8rpx;
- }
-.rounded-circle { border-radius: 100rpx;}
-.rounded-0 { border-radius: 0;}
-/* 显示 */
-/* #ifndef APP-PLUS-NVUE */
-.d-none{ display: none; }
-.d-inline-block{ display: inline-block; }
-.d-block{ display: block; }
-/* #endif */
-/* 内容溢出 */
-.overflow-hidden { overflow: hidden;}
-/* 定位 */
-.position-relative { position: relative;}
-.position-absolute { position: absolute;}
-.position-fixed { position: fixed;}
-/* 定位 - 固定顶部 */
-.fixed-top {
- position: fixed;
- top: 0;
- right: 0;
- left: 0;
- z-index: 1030;
-}
-/* 定位 - 固定底部 */
-.fixed-bottom {
- position: fixed;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 1030;
-}
-.top-0 { top: 0; }
-.left-0 { left: 0; }
-.right-0 { right: 0; }
-.bottom-0 { bottom: 0; }
-
-/* 阴影 */
-/* #ifndef APP-PLUS-NVUE */
-.shadow { box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.15);}
-.shadow-lg { box-shadow: 0rpx 40rpx 100rpx 0rpx rgba(0, 0, 0, 0.175);}
-.shadow-none { box-shadow: none !important;}
-/* #endif */
-.mask{
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 100;
-}
diff --git a/golang/ergo/app/uniapp/common/icon.css b/golang/ergo/app/uniapp/common/icon.css
deleted file mode 100644
index 4792db181..000000000
--- a/golang/ergo/app/uniapp/common/icon.css
+++ /dev/null
@@ -1,71 +0,0 @@
-@font-face {font-family: "iconfont";
- src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAA1UAAsAAAAAFtQAAA0FAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFFAqdTJd0ATYCJANACyIABCAFhG0HgUsbERMzo7aKtPIj+y8PeDDEG/VMq+na5rVeTbM1jSN71fQ0HGEEBBnDEAEODcc4ftvU9cMM4+af9IsE53M+Ndb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83poi7kwhjPERL1qjzIJuPEuAIHhfHG+yKnXEAc/SBBhMyFg1CQEAAA==') format('woff2');}
-
-.iconfont {
- font-family: "iconfont" !important;
- font-size: 16px;
- font-style: normal;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-.iconfaxian:before {
- content: "\e620";
-}
-
-.iconwode:before {
- content: "\e62b";
-}
-
-.iconzhengzaizhibo:before {
- content: "\e6e2";
-}
-
-.iconzanting:before {
- content: "\e611";
-}
-
-.iconbofang_huaban:before {
- content: "\e638";
-}
-
-.icontuichu:before {
- content: "\e64d";
-}
-
-.iconmore:before {
- content: "\e84b";
-}
-
-.iconfenxiang:before {
- content: "\e7cd";
-}
-
-.iconliwu:before {
- content: "\e67c";
-}
-
-.iconbizhongguanli:before {
- content: "\e633";
-}
-
-.iconqingxidu:before {
- content: "\e60c";
-}
-
-.iconmeibai:before {
- content: "\e631";
-}
-
-.iconfanzhuanxiangji:before {
- content: "\e605";
-}
-
-.iconguanbi:before {
- content: "\e607";
-}
-
-.iconmeiyan:before {
- content: "\e632";
-}
-
diff --git a/golang/ergo/app/uniapp/common/request.js b/golang/ergo/app/uniapp/common/request.js
deleted file mode 100644
index b9ab3b65c..000000000
--- a/golang/ergo/app/uniapp/common/request.js
+++ /dev/null
@@ -1,145 +0,0 @@
-// import $store from '@/store/index.js';
-import $C from './config.js';
-export default {
- // 全局配置
- common:{
- baseUrl:$C.baseUrl +"/api",
- header:{
- 'Content-Type':'application/json;charset=UTF-8',
- },
- data:{},
- method:'GET',
- dataType:'json',
- token:false
- },
- // 请求 返回promise
- request(options = {}){
- // 组织参数
- options.url = this.common.baseUrl + options.url
- options.header = options.header || this.common.header
- options.data = options.data || this.common.data
- options.method = options.method || this.common.method
- options.dataType = options.dataType || this.common.dataType
- options.token = options.token === true ? true : this.common.token
-
- // 请求
- return new Promise((res,rej)=>{
- // 请求之前验证...
- // token验证
- if (options.token) {
- let token = uni.getStorageSync('token')
- // 二次验证
- if (!token && options.noJump !== true) {
- uni.showToast({ title: '请先登录', icon: 'none' });
- // token不存在时跳转
- uni.navigateTo({
- url: '/pages/login/login',
- });
- return rej("请先登录")
- }
- // 往header头中添加token
- options.header.token = token
- }
-
-
- // 请求中...
- uni.request({
- ...options,
- success: (result) => {
- // 返回原始数据
- if(options.native){
- return res(result)
- }
- // 服务端失败
- if(result.statusCode !== 200){
- if (options.toast !== false) {
- uni.showToast({
- title: result.data.data || '服务端失败',
- icon: 'none'
- });
- }
- // token不合法,直接退出登录
- if(result.data.data === 'Token 令牌不合法!'){
- // 退出登录操作
- // $store.dispatch('logout')
- }
- return rej(result.data)
- }
- // 其他验证...
- // 成功
- let data = result.data.data
- res(data)
- },
- fail: (error) => {
- uni.showToast({ title: error.errMsg || '请求失败', icon: 'none' });
- return rej(error)
- }
- });
- })
- },
- // get请求
- get(url,options = {}){
- options.url = url
- options.data = {}
- options.method = 'GET'
- return this.request(options)
- },
- // post请求
- post(url,data = {},options = {}){
- options.url = url
- options.data = data
- options.method = 'POST'
- return this.request(options)
- },
- // delete请求
- del(url,data = {},options = {}){
- options.url = url
- options.data = data
- options.method = 'DELETE'
- return this.request(options)
- },
- // 上传文件
- upload(url,data,onProgress = false){
- return new Promise((result,reject)=>{
- // 上传
- let token = uni.getStorageSync('token')
- if (!token) {
- uni.showToast({ title: '请先登录', icon: 'none' });
- // token不存在时跳转
- return uni.reLaunch({
- url: '/pages/login/login',
- });
- }
-
- const uploadTask = uni.uploadFile({
- url:this.common.baseUrl + url,
- filePath:data.filePath,
- name:data.name || "files",
- header:{ token },
- formData:data.formData || {},
- success: (res) => {
- if(res.statusCode !== 200){
- result(false)
- return uni.showToast({
- title: '上传失败',
- icon: 'none'
- });
- }
- let message = JSON.parse(res.data)
- result(message.data);
- },
- fail: (err) => {
- console.log(err);
- reject(err)
- }
- })
-
- uploadTask.onProgressUpdate((res) => {
- if(typeof onProgress === 'function'){
- onProgress(res.progress)
- }
- });
-
- })
- }
-}
\ No newline at end of file
diff --git a/golang/ergo/app/uniapp/common/uni-socket.io.js b/golang/ergo/app/uniapp/common/uni-socket.io.js
deleted file mode 100644
index 12d7a9c5d..000000000
--- a/golang/ergo/app/uniapp/common/uni-socket.io.js
+++ /dev/null
@@ -1,10 +0,0 @@
-!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=22)}([function(t,e){t.exports=function(){return function(){}}},function(t,e,r){function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o1?{type:l[o],data:t.substring(1)}:{type:l[o]}:d}o=new Uint8Array(t)[0];var i=s(t,1);return y&&"blob"===r&&(i=new y([i])),{type:l[o],data:i}},e.decodeBase64Packet=function(t,e){var r=l[t.charAt(0)];if(!n)return{type:r,data:{base64:!0,data:t.substr(1)}};var o=n.decode(t.substr(1));return"blob"===e&&y&&(o=new y([o])),{type:r,data:o}},e.encodePayload=function(t,r,n){"function"==typeof r&&(n=r,r=null);var o=i(t);if(r&&o)return y&&!f?e.encodePayloadAsBlob(t,n):e.encodePayloadAsArrayBuffer(t,n);if(!t.length)return n("0:");g(t,(function(t,n){e.encodePacket(t,!!o&&r,!1,(function(t){n(null,function(t){return t.length+":"+t}(t))}))}),(function(t,e){return n(e.join(""))}))},e.decodePayload=function(t,r,n){if("string"!=typeof t)return e.decodePayloadAsBinary(t,r,n);var o;if("function"==typeof r&&(n=r,r=null),""===t)return n(d,0,1);for(var i,s,a="",c=0,h=t.length;c0;){for(var a=new Uint8Array(o),c=0===a[0],h="",u=1;255!==a[u];u++){if(h.length>310)return n(d,0,1);h+=a[u]}o=s(o,2+h.length),h=parseInt(h);var f=s(o,0,h);if(c)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(t){var p=new Uint8Array(f);f="";for(u=0;u
- * @license MIT
- */
-var n=r(26),o=r(27),i=r(28);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return S(this,e,r);case"base64":return _(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,s=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var u=-1;for(i=r;ia&&(r=a-c),i=r;i>=0;i--){for(var f=!0,p=0;po&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function _(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:h>223?3:h>191?2:1;if(o+f<=r)switch(f){case 1:h<128&&(u=h);break;case 2:128==(192&(i=t[o+1]))&&(c=(31&h)<<6|63&i)>127&&(u=c);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(c=(15&h)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&h)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},c.prototype.compare=function(t,e,r,n,o){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),h=this.slice(n,o),u=t.slice(e,r),f=0;fo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return k(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;on)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function N(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function U(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(t,e,r,n,i){return i||U(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,i){return i||U(t,0,r,8),o.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},c.prototype.readUInt8=function(t,e){return e||T(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||T(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||T(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||T(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||T(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||T(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||T(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||O(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);O(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);O(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(D,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(12))},function(t,e,r){var n=r(31);t.exports=function(t){var e=t.xdomain,r=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||n))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!r&&o)return new XDomainRequest}catch(t){}if(!e)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},function(t,e,r){var n=r(2),o=r(1);function i(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=i,o(i.prototype),i.prototype.onError=function(t,e){var r=new Error(t);return r.type="TransportError",r.description=e,this.emit("error",r),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(t){var e=n.decodePacket(t,this.socket.binaryType);this.onPacket(e)},i.prototype.onPacket=function(t){this.emit("packet",t)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e){var r=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,o=t.indexOf("["),i=t.indexOf("]");-1!=o&&-1!=i&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));for(var s=r.exec(t||""),a={},c=14;c--;)a[n[c]]=s[c]||"";return-1!=o&&-1!=i&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){(function(e){t.exports=function(t){return r&&e.isBuffer(t)||n&&(t instanceof ArrayBuffer||function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}(t))};var r="function"==typeof e&&"function"==typeof e.isBuffer,n="function"==typeof ArrayBuffer}).call(this,r(6).Buffer)},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(29),o=r(19),i=r(1),s=r(5),a=r(20),c=r(21),h=r(0)("socket.io-client:manager"),u=r(18),f=r(46),p=Object.prototype.hasOwnProperty;function l(t,e){if(!(this instanceof l))return new l(t,e);t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var r=e.parser||s;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}t.exports=l,l.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},l.prototype.updateSocketIds=function(){for(var t in this.nsps)p.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},l.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},i(l.prototype),l.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},l.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},l.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},l.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},l.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},l.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},l.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},l.prototype.open=l.prototype.connect=function(t,e){if(h("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=n(this.uri,this.opts);var r=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var i=a(r,"open",(function(){o.onopen(),t&&t()})),s=a(r,"error",(function(e){if(h("connect_error"),o.cleanup(),o.readyState="closed",o.emitAll("connect_error",e),t){var r=new Error("Connection error");r.data=e,t(r)}else o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;h("connect attempt will timeout after %d",c);var u=setTimeout((function(){h("connect attempt timed out after %d",c),i.destroy(),r.close(),r.emit("error","timeout"),o.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(i),this.subs.push(s),this},l.prototype.onopen=function(){h("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",c(this,"ondata"))),this.subs.push(a(t,"ping",c(this,"onping"))),this.subs.push(a(t,"pong",c(this,"onpong"))),this.subs.push(a(t,"error",c(this,"onerror"))),this.subs.push(a(t,"close",c(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded")))},l.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},l.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},l.prototype.ondata=function(t){this.decoder.add(t)},l.prototype.ondecoded=function(t){this.emit("packet",t)},l.prototype.onerror=function(t){h("error",t),this.emitAll("error",t)},l.prototype.socket=function(t,e){var r=this.nsps[t];if(!r){r=new o(this,t,e),this.nsps[t]=r;var n=this;r.on("connecting",i),r.on("connect",(function(){r.id=n.generateId(t)})),this.autoConnect&&i()}function i(){~u(n.connecting,r)||n.connecting.push(r)}return r},l.prototype.destroy=function(t){var e=u(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},l.prototype.packet=function(t){h("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,(function(r){for(var n=0;n0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},l.prototype.cleanup=function(){h("cleanup");for(var t=this.subs.length,e=0;e=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();h("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var r=setTimeout((function(){t.skipReconnect||(h("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(h("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(h("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(r)}})}},l.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,r){var n=r(7),o=r(32),i=r(40),s=r(41);e.polling=function(t){var e=!1,r=!1,s=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,c=location.port;c||(c=a?443:80),e=t.hostname!==location.hostname||c!==t.port,r=t.secure!==a}if(t.xdomain=e,t.xscheme=r,"open"in new n(t)&&!t.forceJSONP)return new o(t);if(!s)throw new Error("JSONP disabled");return new i(t)},e.websocket=s},function(t,e,r){var n=r(8),o=r(3),i=r(2),s=r(4),a=r(17),c=r(0)("engine.io-client:polling");t.exports=u;var h=null!=new(r(7))({xdomain:!1}).responseType;function u(t){var e=t&&t.forceBase64;h&&!e||(this.supportsBinary=!1),n.call(this,t)}s(u,n),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(t){var e=this;function r(){c("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var n=0;this.polling&&(c("we are currently polling - waiting to pause"),n++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--n||r()}))),this.writable||(c("we are currently writing - waiting to pause"),n++,this.once("drain",(function(){c("pre-pause writing complete"),--n||r()})))}else r()},u.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(t){var e=this;c("polling got data %s",t);i.decodePayload(t,this.socket.binaryType,(function(t,r,n){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var t=this;function e(){c("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),e()):(c("transport not open - deferring close"),this.once("open",e))},u.prototype.write=function(t){var e=this;this.writable=!1;var r=function(){e.writable=!0,e.emit("drain")};i.encodePayload(t,this.supportsBinary,(function(t){e.doWrite(t,r)}))},u.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",r="";return!1!==this.timestampRequests&&(t[this.timestampParam]=a()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(r=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+r+this.path+t}},function(t,e,r){(function(e){var n=r(34),o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);t.exports=function t(r){if(!r||"object"!=typeof r)return!1;if(n(r)){for(var o=0,a=r.length;o0);return e}function h(){var t=c(+new Date);return t!==n?(s=0,n=t):t+"."+c(s++)}for(;a<64;a++)i[o[a]]=a;h.encode=c,h.decode=function(t){var e=0;for(a=0;a0?s-4:s;for(r=0;r>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===a&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,c[u++]=255&e);1===a&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=0,a=r-o;sa?a:s+16383));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var o,i,s=[],a=e;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,c=(1<>1,u=-7,f=r?o-1:0,p=r?-1:1,l=t[e+f];for(f+=p,i=l&(1<<-u)-1,l>>=-u,u+=a;u>0;i=256*i+t[e+f],f+=p,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=n;u>0;s=256*s+t[e+f],f+=p,u-=8);if(0===i)i=1-h;else{if(i===c)return s?NaN:1/0*(l?-1:1);s+=Math.pow(2,n),i-=h}return(l?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,c,h=8*i-o-1,u=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(e*c-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+l]=255&a,l+=d,a/=256,o-=8);for(s=s<0;t[r+l]=255&s,l+=d,s/=256,h-=8);t[r+l-d]|=128*y}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){t.exports=r(30),t.exports.parser=r(2)},function(t,e,r){var n=r(14),o=r(1),i=r(0)("engine.io-client:socket"),s=r(18),a=r(2),c=r(9),h=r(3);function u(t,e){if(!(this instanceof u))return new u(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=c(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=c(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=h.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=u,u.priorWebsocketSuccess=!1,o(u.prototype),u.protocol=a.protocol,u.Socket=u,u.Transport=r(8),u.transports=r(14),u.parser=r(2),u.prototype.createTransport=function(t){i('creating transport "%s"',t);var e=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var r=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new n[t]({query:e,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,withCredentials:r.withCredentials||this.withCredentials,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative})},u.prototype.open=function(){var t;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},u.prototype.setTransport=function(t){i("setting transport %s",t.name);var e=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){e.onDrain()})).on("packet",(function(t){e.onPacket(t)})).on("error",(function(t){e.onError(t)})).on("close",(function(){e.onClose("transport close")}))},u.prototype.probe=function(t){i('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),r=!1,n=this;function o(){if(n.onlyBinaryUpgrades){var o=!this.supportsBinary&&n.transport.supportsBinary;r=r||o}r||(i('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(o){if(!r)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',t),n.upgrading=!0,n.emit("upgrading",e),!e)return;u.priorWebsocketSuccess="websocket"===e.name,i('pausing current transport "%s"',n.transport.name),n.transport.pause((function(){r||"closed"!==n.readyState&&(i("changing transport and sending upgrade packet"),p(),n.setTransport(e),e.send([{type:"upgrade"}]),n.emit("upgrade",e),e=null,n.upgrading=!1,n.flush())}))}else{i('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,n.emit("upgradeError",s)}})))}function s(){r||(r=!0,p(),e.close(),e=null)}function a(r){var o=new Error("probe error: "+r);o.transport=e.name,s(),i('probe transport "%s" failed because of error: %s',t,r),n.emit("upgradeError",o)}function c(){a("transport closed")}function h(){a("socket closed")}function f(t){e&&t.name!==e.name&&(i('"%s" works - aborting "%s"',t.name,e.name),s())}function p(){e.removeListener("open",o),e.removeListener("error",a),e.removeListener("close",c),n.removeListener("close",h),n.removeListener("upgrading",f)}u.priorWebsocketSuccess=!1,e.once("open",o),e.once("error",a),e.once("close",c),this.once("close",h),this.once("upgrading",f),e.open()},u.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var t=0,e=this.upgrades.length;tn&&(r=n),e>=n||e>=r||0===n)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(r-e),s=e,a=0;s=55296&&e<=56319&&o=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function c(t,e){return i(t>>e&63|128)}function h(t,e){if(0==(4294967168&t))return i(t);var r="";return 0==(4294965248&t)?r=i(t>>6&31|192):0==(4294901760&t)?(a(t,e)||(t=65533),r=i(t>>12&15|224),r+=c(t,6)):0==(4292870144&t)&&(r=i(t>>18&7|240),r+=c(t,12),r+=c(t,6)),r+=i(63&t|128)}function u(){if(o>=n)throw Error("Invalid byte index");var t=255&r[o];if(o++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(t){var e,i;if(o>n)throw Error("Invalid byte index");if(o==n)return!1;if(e=255&r[o],o++,0==(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|u())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|u()<<6|u())>=2048)return a(i,t)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|u()<<12|u()<<6|u())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.exports={version:"2.1.2",encode:function(t,e){for(var r=!1!==(e=e||{}).strict,n=s(t),o=n.length,i=-1,a="";++i65535&&(o+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),o+=i(e);return o}(h)}}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256),n=0;n>2],i+=t[(3&n[r])<<4|n[r+1]>>4],i+=t[(15&n[r+1])<<2|n[r+2]>>6],i+=t[63&n[r+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(t){var e,n,o,i,s,a=.75*t.length,c=t.length,h=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var u=new ArrayBuffer(a),f=new Uint8Array(u);for(e=0;e>4,f[h++]=(15&o)<<4|i>>2,f[h++]=(3&i)<<6|63&s;return u}}()},function(t,e){var r=void 0!==r?r:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),o=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),i=r&&r.prototype.append&&r.prototype.getBlob;function s(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var r=new Uint8Array(t.byteLength);r.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=r.buffer}return e}return t}))}function a(t,e){e=e||{};var n=new r;return s(t).forEach((function(t){n.append(t)})),e.type?n.getBlob(e.type):n.getBlob()}function c(t,e){return new Blob(s(t),e||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,c.prototype=Blob.prototype),t.exports=n?o?Blob:c:i?a:void 0},function(t,e,r){(function(e){var n=r(15),o=r(4);t.exports=u;var i,s=/\n/g,a=/\\n/g;function c(){}function h(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}function u(t){if(n.call(this,t),this.query=this.query||{},!i){var e=h();i=e.___eio=e.___eio||[]}this.index=i.length;var r=this;i.push((function(t){r.onData(t)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){r.script&&(r.script.onerror=c)}),!1)}o(u,n),u.prototype.supportsBinary=!1,u.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),n.prototype.doClose.call(this)},u.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(e,r):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},u.prototype.doWrite=function(t,e){var r=this;if(!this.form){var n,o=document.createElement("form"),i=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=c,o.method="POST",o.setAttribute("accept-charset","utf-8"),i.name="d",o.appendChild(i),document.body.appendChild(o),this.form=o,this.area=i}function h(){u(),e()}function u(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(t){r.onError("jsonp polling iframe removal error",t)}try{var t='