ecinc-cloud-moahygl 9.5.241 → 9.5.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1855,7 +1855,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".center[data-v-64002552]{background-si
1855
1855
 
1856
1856
  /***/ }),
1857
1857
 
1858
- /***/ 8943:
1858
+ /***/ 3688:
1859
1859
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1860
1860
 
1861
1861
  "use strict";
@@ -1869,7 +1869,7 @@ __webpack_require__.r(__webpack_exports__);
1869
1869
 
1870
1870
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
1871
1871
  // Module
1872
- ___CSS_LOADER_EXPORT___.push([module.id, "a[data-v-1f6426cd]{color:#333}.sidebarBox[data-v-1f6426cd]{position:fixed;left:0;top:0;width:6.25rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:80px;padding-top:20px;height:calc(100vh - 100px);background:#eff1f6;border-right:1px solid #e0e0e0;overflow-y:auto}.contain[data-v-1f6426cd]{height:calc(100vh - 4rem);padding-top:4rem}.content[data-v-1f6426cd]{width:calc(100% - 6.25rem);height:calc(100vh - 80px);background:#f7f8fa;position:absolute;z-index:0;left:6.25rem;top:80px}.content[data-v-1f6426cd] .van-tabs__content{height:calc(100vh - 4rem - 70px);overflow-y:auto}.side-item[data-v-1f6426cd]{height:6.25rem;width:100%;color:#333;font-size:calc(16px + var(--fontSizeSetup));margin-top:.625rem}.side-item .item-box[data-v-1f6426cd]{margin-top:1rem;text-align:center}.side-item .item-box .box-img[data-v-1f6426cd]{width:2rem;height:2rem;margin:0 auto}.side-item .item-box .box-img img[data-v-1f6426cd]{width:100%;height:100%}.side-item .item-box p[data-v-1f6426cd]{margin:.425rem 0}.sidebarBox .side-item[data-v-1f6426cd]:first-child{margin-top:unset}.header-box[data-v-1f6426cd]{width:100%;background:#53a8ff;text-align:center;position:fixed;left:0;top:0;z-index:0;font-size:calc(18px + var(--fontSizeSetup));height:80px;line-height:90px}.title[data-v-1f6426cd]{display:inline-block;color:#fff;font-weight:700}.active[data-v-1f6426cd]{background:#53a8ff0f}.back[data-v-1f6426cd]{position:absolute;left:1rem;line-height:90px}.text-style[data-v-1f6426cd]{height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:20px;border-radius:3px;cursor:pointer}.text-style[data-v-1f6426cd]:hover{background-color:#e8f2fc}.switch-style[data-v-1f6426cd]{background-color:#fff;position:absolute;top:53px;right:100px;border-radius:3px;width:140px;z-index:9999}", ""]);
1872
+ ___CSS_LOADER_EXPORT___.push([module.id, "a[data-v-edaf50ae]{color:#333}.sidebarBox[data-v-edaf50ae]{position:fixed;left:0;top:0;width:6.25rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:80px;padding-top:20px;height:calc(100vh - 100px);background:#eff1f6;border-right:1px solid #e0e0e0;overflow-y:auto}.contain[data-v-edaf50ae]{height:calc(100vh - 4rem);padding-top:4rem}.content[data-v-edaf50ae]{width:calc(100% - 6.25rem);height:calc(100vh - 80px);background:#f7f8fa;position:absolute;z-index:0;left:6.25rem;top:80px}.content[data-v-edaf50ae] .van-tabs__content{height:calc(100vh - 4rem - 70px);overflow-y:auto}.side-item[data-v-edaf50ae]{height:6.25rem;width:100%;color:#333;font-size:calc(16px + var(--fontSizeSetup));margin-top:.625rem}.side-item .item-box[data-v-edaf50ae]{margin-top:1rem;text-align:center}.side-item .item-box .box-img[data-v-edaf50ae]{width:2rem;height:2rem;margin:0 auto}.side-item .item-box .box-img img[data-v-edaf50ae]{width:100%;height:100%}.side-item .item-box p[data-v-edaf50ae]{margin:.425rem 0}.sidebarBox .side-item[data-v-edaf50ae]:first-child{margin-top:unset}.header-box[data-v-edaf50ae]{width:100%;background:#53a8ff;text-align:center;position:fixed;left:0;top:0;z-index:0;font-size:calc(18px + var(--fontSizeSetup));height:80px;line-height:90px}.title[data-v-edaf50ae]{display:inline-block;color:#fff;font-weight:700}.active[data-v-edaf50ae]{background:#53a8ff0f}.back[data-v-edaf50ae]{position:absolute;left:1rem;line-height:90px}.text-style[data-v-edaf50ae]{height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:20px;border-radius:3px;cursor:pointer}.text-style[data-v-edaf50ae]:hover{background-color:#e8f2fc}.switch-style[data-v-edaf50ae]{background-color:#fff;position:absolute;top:53px;right:100px;border-radius:3px;width:140px;z-index:9999}", ""]);
1873
1873
  // Exports
1874
1874
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
1875
1875
 
@@ -1902,7 +1902,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".contain-box[data-v-8b74d980]{width:50
1902
1902
 
1903
1903
  /***/ }),
1904
1904
 
1905
- /***/ 5873:
1905
+ /***/ 3925:
1906
1906
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1907
1907
 
1908
1908
  "use strict";
@@ -1916,7 +1916,7 @@ __webpack_require__.r(__webpack_exports__);
1916
1916
 
1917
1917
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
1918
1918
  // Module
1919
- ___CSS_LOADER_EXPORT___.push([module.id, ".lyy-collapse[data-v-0875343a] .van-collapse-item .van-cell{padding:15px 16px 16px}[data-v-0875343a] .van-collapse-item__content{padding:0 16px}a[data-v-0875343a]{color:#333}.sidebarBox[data-v-0875343a]{position:fixed;left:0;top:0;width:5.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:80px;padding-top:30px;height:calc(100vh - 100px);border-right:1px solid #e0e0e0}.contain[data-v-0875343a]{height:100vh;width:100%}.content[data-v-0875343a]{width:calc(100% - 5.5rem);height:calc(100% - 80px);padding-left:5.5rem;background:#f9f9f9}.side-item[data-v-0875343a]{height:6.25rem;width:100%;color:#333;font-size:calc(16px + var(--fontSizeSetup))}.side-item .item-box[data-v-0875343a]{margin-top:1rem;text-align:center}.side-item .item-box .box-img[data-v-0875343a]{width:2rem;height:2rem;margin:0 auto}.side-item .item-box .box-img img[data-v-0875343a]{width:100%;height:100%}.header-box[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex;background:#53a8ff;text-align:center;position:relative;font-size:calc(18px + var(--fontSizeSetup));height:80px;line-height:90px}.title[data-v-0875343a]{display:inline-block;color:#fff;font-weight:700;overflow:hidden;-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:nowrap;text-overflow:ellipsis}.active[data-v-0875343a]{color:#53a8ff;background:rgba(83,168,255,.1)}.back[data-v-0875343a]{position:absolute;left:1rem;line-height:90px}[data-v-0875343a] .van-popup--left{left:inherit!important;top:80px;-webkit-transform:none;transform:none}.paper-box[data-v-0875343a]{margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.ziliao-title[data-v-0875343a]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333}.ziliao-img[data-v-0875343a]{width:1.5rem;height:1.5rem;margin-right:.5rem}.ziliao-content[data-v-0875343a]{padding:1.25rem 0 1.25rem 2.7rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.ziliao-content[data-v-0875343a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:1.5rem;border-bottom:1px solid #e0e0e0;-webkit-transform:scaleY(.5);transform:scaleY(.5);display:block}.ziliao-content .ziliao-content-img[data-v-0875343a]{width:1.82rem;height:2.25rem}.ziliao-content .ziliao-content-img img[data-v-0875343a]{width:100%;height:100%}.ziliao-content .title-ziliao[data-v-0875343a]{font-size:calc(14px + var(--fontSizeSetup));font-weight:400;color:#333}.ziliao-content .ziliao-content-title[data-v-0875343a]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:1rem}.nbcontent .ziliao-content[data-v-0875343a]:last-child:after{border-bottom:none}.yiti-box[data-v-0875343a]{background:#fff;margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.yiti-box .ziliao-title[data-v-0875343a]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333}.yiti-box .ziliao-img[data-v-0875343a]{width:1.5rem;height:1.5rem;margin-right:.5rem}.yiti-box .yiti-title[data-v-0875343a]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333;padding:15px 16px 16px}.yiti-box .yiti-orderNo[data-v-0875343a]{color:#ec8423;width:1.5rem;height:1.5rem;text-align:center;margin-right:.8rem;border:2px solid #ec8423;border-radius:50%}.flex-box[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex}.between-box[data-v-0875343a]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.Marg15[data-v-0875343a]{margin-right:1.5rem}.MarL15[data-v-0875343a]{margin-left:1.25rem}.btn[data-v-0875343a]{width:5.63rem}.saveBtn[data-v-0875343a]{width:calc(100% - 40px);margin-bottom:20px;padding:10px 0;color:#fff;background:#53a8ff;text-align:center;margin-left:20px}.input-box[data-v-0875343a]{height:200px;width:100%}[data-v-0875343a] .van-field__body,[data-v-0875343a] .van-field__control{height:100%}.header-dialog[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px;height:54px;background:#f3f4f4;font-size:18px;border-radius:4px 4px 0 0}.containmeet[data-v-0875343a]{height:100%}#bodyfilebox[data-v-0875343a]{height:100%;border:1px solid #ebeef5}#bodyfilebox .edit-button[data-v-0875343a]{position:fixed;bottom:50px;right:30px;border:1px solid #494949;color:#fff;background:#494949;height:40px;width:40px;text-align:center;line-height:40px;border-radius:50%;font-size:23px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.24);box-shadow:0 3px 8px rgba(0,0,0,.24)}#bodyfilebox .color-group[data-v-0875343a]{bottom:110px;padding:6px}#bodyfilebox .color-group[data-v-0875343a],#bodyfilebox .line-group[data-v-0875343a]{position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;right:80px;background:#fff;border-radius:5px;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.24);box-shadow:0 3px 8px rgba(0,0,0,.24)}#bodyfilebox .line-group[data-v-0875343a]{bottom:170px;padding:6px 18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:29px;width:130px}#bodyfilebox .color-group-item[data-v-0875343a]{display:block;height:30px;width:30px;border-radius:50%;background:#000;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #494949;margin:0 5px}#bodyfilebox .color-button[data-v-0875343a],#bodyfilebox .line-button-outside[data-v-0875343a]{background:#fff;padding:5px;border:none}#bodyfilebox .line-button-outside[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}#bodyfilebox .color-view[data-v-0875343a]{width:100%;height:100%;border-radius:50%}#bodyfilebox .line-view[data-v-0875343a]{width:80%;background:#000;height:1px;border-radius:2px}#bodyfilebox .line-button[data-v-0875343a]{width:22px;color:#fff;font-size:10px;line-height:18px;text-align:center;background-color:#1989fa;border-radius:100px}#bodyfilebox .success[data-v-0875343a]{background:#07c160;border:1px solid #07c160}[data-v-0875343a] #viewerContainer{top:0!important}[data-v-0875343a] .toolbar{position:fixed!important;bottom:0!important}.headerMessageName[data-v-0875343a]{text-align:left;padding-left:50px}.keywordDialog[data-v-0875343a]{top:60%}.van-cell__title[data-v-0875343a]{width:calc(100% - 32px)}.cell-flex-title[data-v-0875343a]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cell-flex-label .cell-flex-item[data-v-0875343a],.cell-flex-title[data-v-0875343a],.cell-flex-title .cell-flex-item[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex}.text-overflow[data-v-0875343a]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-0875343a] .van-dialog__content{height:90%;overflow-y:auto}[data-v-0875343a] .van-dialog__header{padding-top:16px!important;padding-bottom:9px!important;margin-bottom:1px!important;border-bottom:1px solid #999!important}.recordMask[data-v-0875343a]{position:fixed;min-height:560px;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);z-index:3000}.recordDiv[data-v-0875343a]{width:600px;height:500px;background:#fff;border-radius:4px;top:54%;left:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.footer[data-v-0875343a]{width:100%;height:64px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border-top:1px solid #dee2e6}.btn[data-v-0875343a],.footer[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.btn[data-v-0875343a]{width:85px;height:35px;border-radius:3px;font-size:14px;padding:0 12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cbtn[data-v-0875343a]{background:#fff;color:#333}.cbtn[data-v-0875343a],.qbtn[data-v-0875343a]{border:1px solid #ebeef5}.qbtn[data-v-0875343a]{background:#53a8ff;color:#fff}.btn[data-v-0875343a] .van-button__content{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.btn[data-v-0875343a] .van-button__content .van-button__icon{font-size:10px}.cell-flex-box[data-v-0875343a]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.cell-flex-box .delete-button[data-v-0875343a]{color:#53a8ff;position:absolute;right:0}.cell-flex-box .add-button[data-v-0875343a]{color:#53a8ff;font-size:14px;text-align:center;line-height:50px}.cell-flex-item[data-v-0875343a]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-wrap:nowrap;text-overflow:ellipsis;margin-right:45px}.cell-flex-box .cell-flex-item[data-v-0875343a]:nth-child(2){text-align:right}.no-more[data-v-0875343a]{color:#969799;font-size:14px;line-height:50px;text-align:center}", ""]);
1919
+ ___CSS_LOADER_EXPORT___.push([module.id, ".lyy-collapse[data-v-1fb9c8f8] .van-collapse-item .van-cell{padding:15px 16px 16px}[data-v-1fb9c8f8] .van-collapse-item__content{padding:0 16px}a[data-v-1fb9c8f8]{color:#333}.sidebarBox[data-v-1fb9c8f8]{position:fixed;left:0;top:0;width:5.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:80px;padding-top:30px;height:calc(100vh - 100px);border-right:1px solid #e0e0e0}.contain[data-v-1fb9c8f8]{height:100vh;width:100%}.content[data-v-1fb9c8f8]{width:calc(100% - 5.5rem);height:calc(100% - 80px);padding-left:5.5rem;background:#f9f9f9}.side-item[data-v-1fb9c8f8]{height:6.25rem;width:100%;color:#333;font-size:calc(16px + var(--fontSizeSetup))}.side-item .item-box[data-v-1fb9c8f8]{margin-top:1rem;text-align:center}.side-item .item-box .box-img[data-v-1fb9c8f8]{width:2rem;height:2rem;margin:0 auto}.side-item .item-box .box-img img[data-v-1fb9c8f8]{width:100%;height:100%}.header-box[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex;background:#53a8ff;text-align:center;position:relative;font-size:calc(18px + var(--fontSizeSetup));height:80px;line-height:90px}.title[data-v-1fb9c8f8]{display:inline-block;color:#fff;font-weight:700;overflow:hidden;-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:nowrap;text-overflow:ellipsis}.active[data-v-1fb9c8f8]{color:#53a8ff;background:rgba(83,168,255,.1)}.back[data-v-1fb9c8f8]{position:absolute;left:1rem;line-height:90px}[data-v-1fb9c8f8] .van-popup--left{left:inherit!important;top:80px;-webkit-transform:none;transform:none}.paper-box[data-v-1fb9c8f8]{margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.ziliao-title[data-v-1fb9c8f8]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333}.ziliao-img[data-v-1fb9c8f8]{width:1.5rem;height:1.5rem;margin-right:.5rem}.ziliao-content[data-v-1fb9c8f8]{padding:1.25rem 0 1.25rem 2.7rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.ziliao-content[data-v-1fb9c8f8]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:1.5rem;border-bottom:1px solid #e0e0e0;-webkit-transform:scaleY(.5);transform:scaleY(.5);display:block}.ziliao-content .ziliao-content-img[data-v-1fb9c8f8]{width:1.82rem;height:2.25rem}.ziliao-content .ziliao-content-img img[data-v-1fb9c8f8]{width:100%;height:100%}.ziliao-content .title-ziliao[data-v-1fb9c8f8]{font-size:calc(14px + var(--fontSizeSetup));font-weight:400;color:#333}.ziliao-content .ziliao-content-title[data-v-1fb9c8f8]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:1rem}.nbcontent .ziliao-content[data-v-1fb9c8f8]:last-child:after{border-bottom:none}.yiti-box[data-v-1fb9c8f8]{background:#fff;margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.yiti-box .ziliao-title[data-v-1fb9c8f8]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333}.yiti-box .ziliao-img[data-v-1fb9c8f8]{width:1.5rem;height:1.5rem;margin-right:.5rem}.yiti-box .yiti-title[data-v-1fb9c8f8]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333;padding:15px 16px 16px}.yiti-box .yiti-orderNo[data-v-1fb9c8f8]{color:#ec8423;width:1.5rem;height:1.5rem;text-align:center;margin-right:.8rem;border:2px solid #ec8423;border-radius:50%}.flex-box[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex}.between-box[data-v-1fb9c8f8]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.Marg15[data-v-1fb9c8f8]{margin-right:1.5rem}.MarL15[data-v-1fb9c8f8]{margin-left:1.25rem}.btn[data-v-1fb9c8f8]{width:5.63rem}.saveBtn[data-v-1fb9c8f8]{width:calc(100% - 40px);margin-bottom:20px;padding:10px 0;color:#fff;background:#53a8ff;text-align:center;margin-left:20px}.input-box[data-v-1fb9c8f8]{height:200px;width:100%}[data-v-1fb9c8f8] .van-field__body,[data-v-1fb9c8f8] .van-field__control{height:100%}.header-dialog[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px;height:54px;background:#f3f4f4;font-size:18px;border-radius:4px 4px 0 0}.containmeet[data-v-1fb9c8f8]{height:100%}#bodyfilebox[data-v-1fb9c8f8]{height:100%;border:1px solid #ebeef5}#bodyfilebox .edit-button[data-v-1fb9c8f8]{position:fixed;bottom:50px;right:30px;border:1px solid #494949;color:#fff;background:#494949;height:40px;width:40px;text-align:center;line-height:40px;border-radius:50%;font-size:23px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.24);box-shadow:0 3px 8px rgba(0,0,0,.24)}#bodyfilebox .color-group[data-v-1fb9c8f8]{bottom:110px;padding:6px}#bodyfilebox .color-group[data-v-1fb9c8f8],#bodyfilebox .line-group[data-v-1fb9c8f8]{position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;right:80px;background:#fff;border-radius:5px;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.24);box-shadow:0 3px 8px rgba(0,0,0,.24)}#bodyfilebox .line-group[data-v-1fb9c8f8]{bottom:170px;padding:6px 18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:29px;width:130px}#bodyfilebox .color-group-item[data-v-1fb9c8f8]{display:block;height:30px;width:30px;border-radius:50%;background:#000;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #494949;margin:0 5px}#bodyfilebox .color-button[data-v-1fb9c8f8],#bodyfilebox .line-button-outside[data-v-1fb9c8f8]{background:#fff;padding:5px;border:none}#bodyfilebox .line-button-outside[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}#bodyfilebox .color-view[data-v-1fb9c8f8]{width:100%;height:100%;border-radius:50%}#bodyfilebox .line-view[data-v-1fb9c8f8]{width:80%;background:#000;height:1px;border-radius:2px}#bodyfilebox .line-button[data-v-1fb9c8f8]{width:22px;color:#fff;font-size:10px;line-height:18px;text-align:center;background-color:#1989fa;border-radius:100px}#bodyfilebox .success[data-v-1fb9c8f8]{background:#07c160;border:1px solid #07c160}[data-v-1fb9c8f8] #viewerContainer{top:0!important}[data-v-1fb9c8f8] .toolbar{position:fixed!important;bottom:0!important}.headerMessageName[data-v-1fb9c8f8]{text-align:left;padding-left:50px}.keywordDialog[data-v-1fb9c8f8]{top:60%}.van-cell__title[data-v-1fb9c8f8]{width:calc(100% - 32px)}.cell-flex-title[data-v-1fb9c8f8]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cell-flex-label .cell-flex-item[data-v-1fb9c8f8],.cell-flex-title[data-v-1fb9c8f8],.cell-flex-title .cell-flex-item[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex}.text-overflow[data-v-1fb9c8f8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-1fb9c8f8] .van-dialog__content{height:90%;overflow-y:auto}[data-v-1fb9c8f8] .van-dialog__header{padding-top:16px!important;padding-bottom:9px!important;margin-bottom:1px!important;border-bottom:1px solid #999!important}.recordMask[data-v-1fb9c8f8]{position:fixed;min-height:560px;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);z-index:3000}.recordDiv[data-v-1fb9c8f8]{width:600px;height:500px;background:#fff;border-radius:4px;top:54%;left:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.footer[data-v-1fb9c8f8]{width:100%;height:64px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border-top:1px solid #dee2e6}.btn[data-v-1fb9c8f8],.footer[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.btn[data-v-1fb9c8f8]{width:85px;height:35px;border-radius:3px;font-size:14px;padding:0 12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cbtn[data-v-1fb9c8f8]{background:#fff;color:#333}.cbtn[data-v-1fb9c8f8],.qbtn[data-v-1fb9c8f8]{border:1px solid #ebeef5}.qbtn[data-v-1fb9c8f8]{background:#53a8ff;color:#fff}.btn[data-v-1fb9c8f8] .van-button__content{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.btn[data-v-1fb9c8f8] .van-button__content .van-button__icon{font-size:10px}.cell-flex-box[data-v-1fb9c8f8]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.cell-flex-box .delete-button[data-v-1fb9c8f8]{color:#53a8ff;position:absolute;right:0}.cell-flex-box .add-button[data-v-1fb9c8f8]{color:#53a8ff;font-size:14px;text-align:center;line-height:50px}.cell-flex-item[data-v-1fb9c8f8]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-wrap:nowrap;text-overflow:ellipsis;margin-right:45px}.cell-flex-box .cell-flex-item[data-v-1fb9c8f8]:nth-child(2){text-align:right}.no-more[data-v-1fb9c8f8]{color:#969799;font-size:14px;line-height:50px;text-align:center}", ""]);
1920
1920
  // Exports
1921
1921
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
1922
1922
 
@@ -35303,19 +35303,19 @@ var update = add("52d7358a", content, true, {"sourceMap":false,"shadowMode":fals
35303
35303
 
35304
35304
  /***/ }),
35305
35305
 
35306
- /***/ 5137:
35306
+ /***/ 5122:
35307
35307
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
35308
35308
 
35309
35309
  // style-loader: Adds some css to the DOM by adding a <style> tag
35310
35310
 
35311
35311
  // load the styles
35312
- var content = __webpack_require__(8943);
35312
+ var content = __webpack_require__(3688);
35313
35313
  if(content.__esModule) content = content.default;
35314
35314
  if(typeof content === 'string') content = [[module.id, content, '']];
35315
35315
  if(content.locals) module.exports = content.locals;
35316
35316
  // add the styles to the DOM
35317
35317
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
35318
- var update = add("57ec1e44", content, true, {"sourceMap":false,"shadowMode":false});
35318
+ var update = add("461a1b62", content, true, {"sourceMap":false,"shadowMode":false});
35319
35319
 
35320
35320
  /***/ }),
35321
35321
 
@@ -35335,19 +35335,19 @@ var update = add("63eb1800", content, true, {"sourceMap":false,"shadowMode":fals
35335
35335
 
35336
35336
  /***/ }),
35337
35337
 
35338
- /***/ 7807:
35338
+ /***/ 9183:
35339
35339
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
35340
35340
 
35341
35341
  // style-loader: Adds some css to the DOM by adding a <style> tag
35342
35342
 
35343
35343
  // load the styles
35344
- var content = __webpack_require__(5873);
35344
+ var content = __webpack_require__(3925);
35345
35345
  if(content.__esModule) content = content.default;
35346
35346
  if(typeof content === 'string') content = [[module.id, content, '']];
35347
35347
  if(content.locals) module.exports = content.locals;
35348
35348
  // add the styles to the DOM
35349
35349
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
35350
- var update = add("1d0a4ff6", content, true, {"sourceMap":false,"shadowMode":false});
35350
+ var update = add("399d6623", content, true, {"sourceMap":false,"shadowMode":false});
35351
35351
 
35352
35352
  /***/ }),
35353
35353
 
@@ -36811,7 +36811,7 @@ if (typeof window !== 'undefined') {
36811
36811
  // Indicate to webpack that this file can be concatenated
36812
36812
  /* harmony default export */ var setPublicPath = (null);
36813
36813
 
36814
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=template&id=1f6426cd&scoped=true
36814
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=template&id=edaf50ae&scoped=true
36815
36815
  var render = function render() {
36816
36816
  var _vm = this,
36817
36817
  _c = _vm._self._c;
@@ -36898,8 +36898,8 @@ var render = function render() {
36898
36898
  staticClass: "box-img"
36899
36899
  }, [_c('img', {
36900
36900
  staticStyle: {
36901
- "width": "1.70rem",
36902
- "height": "1.90rem"
36901
+ "width": "1.7rem",
36902
+ "height": "1.9rem"
36903
36903
  },
36904
36904
  attrs: {
36905
36905
  "src": __webpack_require__(1670),
@@ -36926,8 +36926,8 @@ var render = function render() {
36926
36926
  staticClass: "box-img"
36927
36927
  }, [_c('img', {
36928
36928
  staticStyle: {
36929
- "width": "1.90rem",
36930
- "height": "1.90rem"
36929
+ "width": "1.9rem",
36930
+ "height": "1.9rem"
36931
36931
  },
36932
36932
  attrs: {
36933
36933
  "src": __webpack_require__(6372),
@@ -37010,7 +37010,7 @@ var render = function render() {
37010
37010
  staticClass: "box-img"
37011
37011
  }, [_c('img', {
37012
37012
  staticStyle: {
37013
- "width": "1.90rem",
37013
+ "width": "1.9rem",
37014
37014
  "height": "auto"
37015
37015
  },
37016
37016
  attrs: {
@@ -37118,3049 +37118,10 @@ var render = function render() {
37118
37118
  };
37119
37119
  var staticRenderFns = [];
37120
37120
 
37121
- ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=template&id=1f6426cd&scoped=true
37121
+ ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=template&id=edaf50ae&scoped=true
37122
37122
 
37123
- ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
37124
- var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
37125
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
37126
- ;// CONCATENATED MODULE: ./node_modules/vue-router/dist/vue-router.esm.js
37127
- /*!
37128
- * vue-router v3.6.5
37129
- * (c) 2022 Evan You
37130
- * @license MIT
37131
- */
37132
- /* */
37133
-
37134
- function assert (condition, message) {
37135
- if (!condition) {
37136
- throw new Error(("[vue-router] " + message))
37137
- }
37138
- }
37139
-
37140
- function warn (condition, message) {
37141
- if (!condition) {
37142
- typeof console !== 'undefined' && console.warn(("[vue-router] " + message));
37143
- }
37144
- }
37145
-
37146
- function extend (a, b) {
37147
- for (var key in b) {
37148
- a[key] = b[key];
37149
- }
37150
- return a
37151
- }
37152
-
37153
- /* */
37154
-
37155
- var encodeReserveRE = /[!'()*]/g;
37156
- var encodeReserveReplacer = function (c) { return '%' + c.charCodeAt(0).toString(16); };
37157
- var commaRE = /%2C/g;
37158
-
37159
- // fixed encodeURIComponent which is more conformant to RFC3986:
37160
- // - escapes [!'()*]
37161
- // - preserve commas
37162
- var encode = function (str) { return encodeURIComponent(str)
37163
- .replace(encodeReserveRE, encodeReserveReplacer)
37164
- .replace(commaRE, ','); };
37165
-
37166
- function decode (str) {
37167
- try {
37168
- return decodeURIComponent(str)
37169
- } catch (err) {
37170
- if (false) {}
37171
- }
37172
- return str
37173
- }
37174
-
37175
- function resolveQuery (
37176
- query,
37177
- extraQuery,
37178
- _parseQuery
37179
- ) {
37180
- if ( extraQuery === void 0 ) extraQuery = {};
37181
-
37182
- var parse = _parseQuery || parseQuery;
37183
- var parsedQuery;
37184
- try {
37185
- parsedQuery = parse(query || '');
37186
- } catch (e) {
37187
- false && 0;
37188
- parsedQuery = {};
37189
- }
37190
- for (var key in extraQuery) {
37191
- var value = extraQuery[key];
37192
- parsedQuery[key] = Array.isArray(value)
37193
- ? value.map(castQueryParamValue)
37194
- : castQueryParamValue(value);
37195
- }
37196
- return parsedQuery
37197
- }
37198
-
37199
- var castQueryParamValue = function (value) { return (value == null || typeof value === 'object' ? value : String(value)); };
37200
-
37201
- function parseQuery (query) {
37202
- var res = {};
37203
-
37204
- query = query.trim().replace(/^(\?|#|&)/, '');
37205
-
37206
- if (!query) {
37207
- return res
37208
- }
37209
-
37210
- query.split('&').forEach(function (param) {
37211
- var parts = param.replace(/\+/g, ' ').split('=');
37212
- var key = decode(parts.shift());
37213
- var val = parts.length > 0 ? decode(parts.join('=')) : null;
37214
-
37215
- if (res[key] === undefined) {
37216
- res[key] = val;
37217
- } else if (Array.isArray(res[key])) {
37218
- res[key].push(val);
37219
- } else {
37220
- res[key] = [res[key], val];
37221
- }
37222
- });
37223
-
37224
- return res
37225
- }
37226
-
37227
- function stringifyQuery (obj) {
37228
- var res = obj
37229
- ? Object.keys(obj)
37230
- .map(function (key) {
37231
- var val = obj[key];
37232
-
37233
- if (val === undefined) {
37234
- return ''
37235
- }
37236
-
37237
- if (val === null) {
37238
- return encode(key)
37239
- }
37240
-
37241
- if (Array.isArray(val)) {
37242
- var result = [];
37243
- val.forEach(function (val2) {
37244
- if (val2 === undefined) {
37245
- return
37246
- }
37247
- if (val2 === null) {
37248
- result.push(encode(key));
37249
- } else {
37250
- result.push(encode(key) + '=' + encode(val2));
37251
- }
37252
- });
37253
- return result.join('&')
37254
- }
37255
-
37256
- return encode(key) + '=' + encode(val)
37257
- })
37258
- .filter(function (x) { return x.length > 0; })
37259
- .join('&')
37260
- : null;
37261
- return res ? ("?" + res) : ''
37262
- }
37263
-
37264
- /* */
37265
-
37266
- var trailingSlashRE = /\/?$/;
37267
-
37268
- function createRoute (
37269
- record,
37270
- location,
37271
- redirectedFrom,
37272
- router
37273
- ) {
37274
- var stringifyQuery = router && router.options.stringifyQuery;
37275
-
37276
- var query = location.query || {};
37277
- try {
37278
- query = clone(query);
37279
- } catch (e) {}
37280
-
37281
- var route = {
37282
- name: location.name || (record && record.name),
37283
- meta: (record && record.meta) || {},
37284
- path: location.path || '/',
37285
- hash: location.hash || '',
37286
- query: query,
37287
- params: location.params || {},
37288
- fullPath: getFullPath(location, stringifyQuery),
37289
- matched: record ? formatMatch(record) : []
37290
- };
37291
- if (redirectedFrom) {
37292
- route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery);
37293
- }
37294
- return Object.freeze(route)
37295
- }
37296
-
37297
- function clone (value) {
37298
- if (Array.isArray(value)) {
37299
- return value.map(clone)
37300
- } else if (value && typeof value === 'object') {
37301
- var res = {};
37302
- for (var key in value) {
37303
- res[key] = clone(value[key]);
37304
- }
37305
- return res
37306
- } else {
37307
- return value
37308
- }
37309
- }
37310
-
37311
- // the starting route that represents the initial state
37312
- var START = createRoute(null, {
37313
- path: '/'
37314
- });
37315
-
37316
- function formatMatch (record) {
37317
- var res = [];
37318
- while (record) {
37319
- res.unshift(record);
37320
- record = record.parent;
37321
- }
37322
- return res
37323
- }
37324
-
37325
- function getFullPath (
37326
- ref,
37327
- _stringifyQuery
37328
- ) {
37329
- var path = ref.path;
37330
- var query = ref.query; if ( query === void 0 ) query = {};
37331
- var hash = ref.hash; if ( hash === void 0 ) hash = '';
37332
-
37333
- var stringify = _stringifyQuery || stringifyQuery;
37334
- return (path || '/') + stringify(query) + hash
37335
- }
37336
-
37337
- function isSameRoute (a, b, onlyPath) {
37338
- if (b === START) {
37339
- return a === b
37340
- } else if (!b) {
37341
- return false
37342
- } else if (a.path && b.path) {
37343
- return a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') && (onlyPath ||
37344
- a.hash === b.hash &&
37345
- isObjectEqual(a.query, b.query))
37346
- } else if (a.name && b.name) {
37347
- return (
37348
- a.name === b.name &&
37349
- (onlyPath || (
37350
- a.hash === b.hash &&
37351
- isObjectEqual(a.query, b.query) &&
37352
- isObjectEqual(a.params, b.params))
37353
- )
37354
- )
37355
- } else {
37356
- return false
37357
- }
37358
- }
37359
-
37360
- function isObjectEqual (a, b) {
37361
- if ( a === void 0 ) a = {};
37362
- if ( b === void 0 ) b = {};
37363
-
37364
- // handle null value #1566
37365
- if (!a || !b) { return a === b }
37366
- var aKeys = Object.keys(a).sort();
37367
- var bKeys = Object.keys(b).sort();
37368
- if (aKeys.length !== bKeys.length) {
37369
- return false
37370
- }
37371
- return aKeys.every(function (key, i) {
37372
- var aVal = a[key];
37373
- var bKey = bKeys[i];
37374
- if (bKey !== key) { return false }
37375
- var bVal = b[key];
37376
- // query values can be null and undefined
37377
- if (aVal == null || bVal == null) { return aVal === bVal }
37378
- // check nested equality
37379
- if (typeof aVal === 'object' && typeof bVal === 'object') {
37380
- return isObjectEqual(aVal, bVal)
37381
- }
37382
- return String(aVal) === String(bVal)
37383
- })
37384
- }
37385
-
37386
- function isIncludedRoute (current, target) {
37387
- return (
37388
- current.path.replace(trailingSlashRE, '/').indexOf(
37389
- target.path.replace(trailingSlashRE, '/')
37390
- ) === 0 &&
37391
- (!target.hash || current.hash === target.hash) &&
37392
- queryIncludes(current.query, target.query)
37393
- )
37394
- }
37395
-
37396
- function queryIncludes (current, target) {
37397
- for (var key in target) {
37398
- if (!(key in current)) {
37399
- return false
37400
- }
37401
- }
37402
- return true
37403
- }
37404
-
37405
- function handleRouteEntered (route) {
37406
- for (var i = 0; i < route.matched.length; i++) {
37407
- var record = route.matched[i];
37408
- for (var name in record.instances) {
37409
- var instance = record.instances[name];
37410
- var cbs = record.enteredCbs[name];
37411
- if (!instance || !cbs) { continue }
37412
- delete record.enteredCbs[name];
37413
- for (var i$1 = 0; i$1 < cbs.length; i$1++) {
37414
- if (!instance._isBeingDestroyed) { cbs[i$1](instance); }
37415
- }
37416
- }
37417
- }
37418
- }
37419
-
37420
- var View = {
37421
- name: 'RouterView',
37422
- functional: true,
37423
- props: {
37424
- name: {
37425
- type: String,
37426
- default: 'default'
37427
- }
37428
- },
37429
- render: function render (_, ref) {
37430
- var props = ref.props;
37431
- var children = ref.children;
37432
- var parent = ref.parent;
37433
- var data = ref.data;
37434
-
37435
- // used by devtools to display a router-view badge
37436
- data.routerView = true;
37437
-
37438
- // directly use parent context's createElement() function
37439
- // so that components rendered by router-view can resolve named slots
37440
- var h = parent.$createElement;
37441
- var name = props.name;
37442
- var route = parent.$route;
37443
- var cache = parent._routerViewCache || (parent._routerViewCache = {});
37444
-
37445
- // determine current view depth, also check to see if the tree
37446
- // has been toggled inactive but kept-alive.
37447
- var depth = 0;
37448
- var inactive = false;
37449
- while (parent && parent._routerRoot !== parent) {
37450
- var vnodeData = parent.$vnode ? parent.$vnode.data : {};
37451
- if (vnodeData.routerView) {
37452
- depth++;
37453
- }
37454
- if (vnodeData.keepAlive && parent._directInactive && parent._inactive) {
37455
- inactive = true;
37456
- }
37457
- parent = parent.$parent;
37458
- }
37459
- data.routerViewDepth = depth;
37460
-
37461
- // render previous view if the tree is inactive and kept-alive
37462
- if (inactive) {
37463
- var cachedData = cache[name];
37464
- var cachedComponent = cachedData && cachedData.component;
37465
- if (cachedComponent) {
37466
- // #2301
37467
- // pass props
37468
- if (cachedData.configProps) {
37469
- fillPropsinData(cachedComponent, data, cachedData.route, cachedData.configProps);
37470
- }
37471
- return h(cachedComponent, data, children)
37472
- } else {
37473
- // render previous empty view
37474
- return h()
37475
- }
37476
- }
37477
-
37478
- var matched = route.matched[depth];
37479
- var component = matched && matched.components[name];
37480
-
37481
- // render empty node if no matched route or no config component
37482
- if (!matched || !component) {
37483
- cache[name] = null;
37484
- return h()
37485
- }
37486
-
37487
- // cache component
37488
- cache[name] = { component: component };
37489
-
37490
- // attach instance registration hook
37491
- // this will be called in the instance's injected lifecycle hooks
37492
- data.registerRouteInstance = function (vm, val) {
37493
- // val could be undefined for unregistration
37494
- var current = matched.instances[name];
37495
- if (
37496
- (val && current !== vm) ||
37497
- (!val && current === vm)
37498
- ) {
37499
- matched.instances[name] = val;
37500
- }
37501
- }
37502
-
37503
- // also register instance in prepatch hook
37504
- // in case the same component instance is reused across different routes
37505
- ;(data.hook || (data.hook = {})).prepatch = function (_, vnode) {
37506
- matched.instances[name] = vnode.componentInstance;
37507
- };
37508
-
37509
- // register instance in init hook
37510
- // in case kept-alive component be actived when routes changed
37511
- data.hook.init = function (vnode) {
37512
- if (vnode.data.keepAlive &&
37513
- vnode.componentInstance &&
37514
- vnode.componentInstance !== matched.instances[name]
37515
- ) {
37516
- matched.instances[name] = vnode.componentInstance;
37517
- }
37518
-
37519
- // if the route transition has already been confirmed then we weren't
37520
- // able to call the cbs during confirmation as the component was not
37521
- // registered yet, so we call it here.
37522
- handleRouteEntered(route);
37523
- };
37524
-
37525
- var configProps = matched.props && matched.props[name];
37526
- // save route and configProps in cache
37527
- if (configProps) {
37528
- extend(cache[name], {
37529
- route: route,
37530
- configProps: configProps
37531
- });
37532
- fillPropsinData(component, data, route, configProps);
37533
- }
37534
-
37535
- return h(component, data, children)
37536
- }
37537
- };
37538
-
37539
- function fillPropsinData (component, data, route, configProps) {
37540
- // resolve props
37541
- var propsToPass = data.props = resolveProps(route, configProps);
37542
- if (propsToPass) {
37543
- // clone to prevent mutation
37544
- propsToPass = data.props = extend({}, propsToPass);
37545
- // pass non-declared props as attrs
37546
- var attrs = data.attrs = data.attrs || {};
37547
- for (var key in propsToPass) {
37548
- if (!component.props || !(key in component.props)) {
37549
- attrs[key] = propsToPass[key];
37550
- delete propsToPass[key];
37551
- }
37552
- }
37553
- }
37554
- }
37555
-
37556
- function resolveProps (route, config) {
37557
- switch (typeof config) {
37558
- case 'undefined':
37559
- return
37560
- case 'object':
37561
- return config
37562
- case 'function':
37563
- return config(route)
37564
- case 'boolean':
37565
- return config ? route.params : undefined
37566
- default:
37567
- if (false) {}
37568
- }
37569
- }
37570
-
37571
- /* */
37572
-
37573
- function resolvePath (
37574
- relative,
37575
- base,
37576
- append
37577
- ) {
37578
- var firstChar = relative.charAt(0);
37579
- if (firstChar === '/') {
37580
- return relative
37581
- }
37582
-
37583
- if (firstChar === '?' || firstChar === '#') {
37584
- return base + relative
37585
- }
37586
-
37587
- var stack = base.split('/');
37588
-
37589
- // remove trailing segment if:
37590
- // - not appending
37591
- // - appending to trailing slash (last segment is empty)
37592
- if (!append || !stack[stack.length - 1]) {
37593
- stack.pop();
37594
- }
37595
-
37596
- // resolve relative path
37597
- var segments = relative.replace(/^\//, '').split('/');
37598
- for (var i = 0; i < segments.length; i++) {
37599
- var segment = segments[i];
37600
- if (segment === '..') {
37601
- stack.pop();
37602
- } else if (segment !== '.') {
37603
- stack.push(segment);
37604
- }
37605
- }
37606
-
37607
- // ensure leading slash
37608
- if (stack[0] !== '') {
37609
- stack.unshift('');
37610
- }
37611
-
37612
- return stack.join('/')
37613
- }
37614
-
37615
- function parsePath (path) {
37616
- var hash = '';
37617
- var query = '';
37618
-
37619
- var hashIndex = path.indexOf('#');
37620
- if (hashIndex >= 0) {
37621
- hash = path.slice(hashIndex);
37622
- path = path.slice(0, hashIndex);
37623
- }
37624
-
37625
- var queryIndex = path.indexOf('?');
37626
- if (queryIndex >= 0) {
37627
- query = path.slice(queryIndex + 1);
37628
- path = path.slice(0, queryIndex);
37629
- }
37630
-
37631
- return {
37632
- path: path,
37633
- query: query,
37634
- hash: hash
37635
- }
37636
- }
37637
-
37638
- function cleanPath (path) {
37639
- return path.replace(/\/(?:\s*\/)+/g, '/')
37640
- }
37641
-
37642
- var isarray = Array.isArray || function (arr) {
37643
- return Object.prototype.toString.call(arr) == '[object Array]';
37644
- };
37645
-
37646
- /**
37647
- * Expose `pathToRegexp`.
37648
- */
37649
- var pathToRegexp_1 = pathToRegexp;
37650
- var parse_1 = parse;
37651
- var compile_1 = compile;
37652
- var tokensToFunction_1 = tokensToFunction;
37653
- var tokensToRegExp_1 = tokensToRegExp;
37654
-
37655
- /**
37656
- * The main path matching regexp utility.
37657
- *
37658
- * @type {RegExp}
37659
- */
37660
- var PATH_REGEXP = new RegExp([
37661
- // Match escaped characters that would otherwise appear in future matches.
37662
- // This allows the user to escape special characters that won't transform.
37663
- '(\\\\.)',
37664
- // Match Express-style parameters and un-named parameters with a prefix
37665
- // and optional suffixes. Matches appear as:
37666
- //
37667
- // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
37668
- // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
37669
- // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
37670
- '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
37671
- ].join('|'), 'g');
37672
-
37673
- /**
37674
- * Parse a string for the raw tokens.
37675
- *
37676
- * @param {string} str
37677
- * @param {Object=} options
37678
- * @return {!Array}
37679
- */
37680
- function parse (str, options) {
37681
- var tokens = [];
37682
- var key = 0;
37683
- var index = 0;
37684
- var path = '';
37685
- var defaultDelimiter = options && options.delimiter || '/';
37686
- var res;
37687
-
37688
- while ((res = PATH_REGEXP.exec(str)) != null) {
37689
- var m = res[0];
37690
- var escaped = res[1];
37691
- var offset = res.index;
37692
- path += str.slice(index, offset);
37693
- index = offset + m.length;
37694
-
37695
- // Ignore already escaped sequences.
37696
- if (escaped) {
37697
- path += escaped[1];
37698
- continue
37699
- }
37700
-
37701
- var next = str[index];
37702
- var prefix = res[2];
37703
- var name = res[3];
37704
- var capture = res[4];
37705
- var group = res[5];
37706
- var modifier = res[6];
37707
- var asterisk = res[7];
37708
-
37709
- // Push the current path onto the tokens.
37710
- if (path) {
37711
- tokens.push(path);
37712
- path = '';
37713
- }
37714
-
37715
- var partial = prefix != null && next != null && next !== prefix;
37716
- var repeat = modifier === '+' || modifier === '*';
37717
- var optional = modifier === '?' || modifier === '*';
37718
- var delimiter = res[2] || defaultDelimiter;
37719
- var pattern = capture || group;
37720
-
37721
- tokens.push({
37722
- name: name || key++,
37723
- prefix: prefix || '',
37724
- delimiter: delimiter,
37725
- optional: optional,
37726
- repeat: repeat,
37727
- partial: partial,
37728
- asterisk: !!asterisk,
37729
- pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
37730
- });
37731
- }
37732
-
37733
- // Match any characters still remaining.
37734
- if (index < str.length) {
37735
- path += str.substr(index);
37736
- }
37737
-
37738
- // If the path exists, push it onto the end.
37739
- if (path) {
37740
- tokens.push(path);
37741
- }
37742
-
37743
- return tokens
37744
- }
37745
-
37746
- /**
37747
- * Compile a string to a template function for the path.
37748
- *
37749
- * @param {string} str
37750
- * @param {Object=} options
37751
- * @return {!function(Object=, Object=)}
37752
- */
37753
- function compile (str, options) {
37754
- return tokensToFunction(parse(str, options), options)
37755
- }
37756
-
37757
- /**
37758
- * Prettier encoding of URI path segments.
37759
- *
37760
- * @param {string}
37761
- * @return {string}
37762
- */
37763
- function encodeURIComponentPretty (str) {
37764
- return encodeURI(str).replace(/[\/?#]/g, function (c) {
37765
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
37766
- })
37767
- }
37768
-
37769
- /**
37770
- * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
37771
- *
37772
- * @param {string}
37773
- * @return {string}
37774
- */
37775
- function encodeAsterisk (str) {
37776
- return encodeURI(str).replace(/[?#]/g, function (c) {
37777
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
37778
- })
37779
- }
37780
-
37781
- /**
37782
- * Expose a method for transforming tokens into the path function.
37783
- */
37784
- function tokensToFunction (tokens, options) {
37785
- // Compile all the tokens into regexps.
37786
- var matches = new Array(tokens.length);
37787
-
37788
- // Compile all the patterns before compilation.
37789
- for (var i = 0; i < tokens.length; i++) {
37790
- if (typeof tokens[i] === 'object') {
37791
- matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));
37792
- }
37793
- }
37794
-
37795
- return function (obj, opts) {
37796
- var path = '';
37797
- var data = obj || {};
37798
- var options = opts || {};
37799
- var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
37800
-
37801
- for (var i = 0; i < tokens.length; i++) {
37802
- var token = tokens[i];
37803
-
37804
- if (typeof token === 'string') {
37805
- path += token;
37806
-
37807
- continue
37808
- }
37809
-
37810
- var value = data[token.name];
37811
- var segment;
37812
-
37813
- if (value == null) {
37814
- if (token.optional) {
37815
- // Prepend partial segment prefixes.
37816
- if (token.partial) {
37817
- path += token.prefix;
37818
- }
37819
-
37820
- continue
37821
- } else {
37822
- throw new TypeError('Expected "' + token.name + '" to be defined')
37823
- }
37824
- }
37825
-
37826
- if (isarray(value)) {
37827
- if (!token.repeat) {
37828
- throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
37829
- }
37830
-
37831
- if (value.length === 0) {
37832
- if (token.optional) {
37833
- continue
37834
- } else {
37835
- throw new TypeError('Expected "' + token.name + '" to not be empty')
37836
- }
37837
- }
37838
-
37839
- for (var j = 0; j < value.length; j++) {
37840
- segment = encode(value[j]);
37841
-
37842
- if (!matches[i].test(segment)) {
37843
- throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
37844
- }
37845
-
37846
- path += (j === 0 ? token.prefix : token.delimiter) + segment;
37847
- }
37848
-
37849
- continue
37850
- }
37851
-
37852
- segment = token.asterisk ? encodeAsterisk(value) : encode(value);
37853
-
37854
- if (!matches[i].test(segment)) {
37855
- throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
37856
- }
37857
-
37858
- path += token.prefix + segment;
37859
- }
37860
-
37861
- return path
37862
- }
37863
- }
37864
-
37865
- /**
37866
- * Escape a regular expression string.
37867
- *
37868
- * @param {string} str
37869
- * @return {string}
37870
- */
37871
- function escapeString (str) {
37872
- return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
37873
- }
37874
-
37875
- /**
37876
- * Escape the capturing group by escaping special characters and meaning.
37877
- *
37878
- * @param {string} group
37879
- * @return {string}
37880
- */
37881
- function escapeGroup (group) {
37882
- return group.replace(/([=!:$\/()])/g, '\\$1')
37883
- }
37884
-
37885
- /**
37886
- * Attach the keys as a property of the regexp.
37887
- *
37888
- * @param {!RegExp} re
37889
- * @param {Array} keys
37890
- * @return {!RegExp}
37891
- */
37892
- function attachKeys (re, keys) {
37893
- re.keys = keys;
37894
- return re
37895
- }
37896
-
37897
- /**
37898
- * Get the flags for a regexp from the options.
37899
- *
37900
- * @param {Object} options
37901
- * @return {string}
37902
- */
37903
- function flags (options) {
37904
- return options && options.sensitive ? '' : 'i'
37905
- }
37906
-
37907
- /**
37908
- * Pull out keys from a regexp.
37909
- *
37910
- * @param {!RegExp} path
37911
- * @param {!Array} keys
37912
- * @return {!RegExp}
37913
- */
37914
- function regexpToRegexp (path, keys) {
37915
- // Use a negative lookahead to match only capturing groups.
37916
- var groups = path.source.match(/\((?!\?)/g);
37917
-
37918
- if (groups) {
37919
- for (var i = 0; i < groups.length; i++) {
37920
- keys.push({
37921
- name: i,
37922
- prefix: null,
37923
- delimiter: null,
37924
- optional: false,
37925
- repeat: false,
37926
- partial: false,
37927
- asterisk: false,
37928
- pattern: null
37929
- });
37930
- }
37931
- }
37932
-
37933
- return attachKeys(path, keys)
37934
- }
37935
-
37936
- /**
37937
- * Transform an array into a regexp.
37938
- *
37939
- * @param {!Array} path
37940
- * @param {Array} keys
37941
- * @param {!Object} options
37942
- * @return {!RegExp}
37943
- */
37944
- function arrayToRegexp (path, keys, options) {
37945
- var parts = [];
37946
-
37947
- for (var i = 0; i < path.length; i++) {
37948
- parts.push(pathToRegexp(path[i], keys, options).source);
37949
- }
37950
-
37951
- var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
37952
-
37953
- return attachKeys(regexp, keys)
37954
- }
37955
-
37956
- /**
37957
- * Create a path regexp from string input.
37958
- *
37959
- * @param {string} path
37960
- * @param {!Array} keys
37961
- * @param {!Object} options
37962
- * @return {!RegExp}
37963
- */
37964
- function stringToRegexp (path, keys, options) {
37965
- return tokensToRegExp(parse(path, options), keys, options)
37966
- }
37967
-
37968
- /**
37969
- * Expose a function for taking tokens and returning a RegExp.
37970
- *
37971
- * @param {!Array} tokens
37972
- * @param {(Array|Object)=} keys
37973
- * @param {Object=} options
37974
- * @return {!RegExp}
37975
- */
37976
- function tokensToRegExp (tokens, keys, options) {
37977
- if (!isarray(keys)) {
37978
- options = /** @type {!Object} */ (keys || options);
37979
- keys = [];
37980
- }
37981
-
37982
- options = options || {};
37983
-
37984
- var strict = options.strict;
37985
- var end = options.end !== false;
37986
- var route = '';
37987
-
37988
- // Iterate over the tokens and create our regexp string.
37989
- for (var i = 0; i < tokens.length; i++) {
37990
- var token = tokens[i];
37991
-
37992
- if (typeof token === 'string') {
37993
- route += escapeString(token);
37994
- } else {
37995
- var prefix = escapeString(token.prefix);
37996
- var capture = '(?:' + token.pattern + ')';
37997
-
37998
- keys.push(token);
37999
-
38000
- if (token.repeat) {
38001
- capture += '(?:' + prefix + capture + ')*';
38002
- }
38003
-
38004
- if (token.optional) {
38005
- if (!token.partial) {
38006
- capture = '(?:' + prefix + '(' + capture + '))?';
38007
- } else {
38008
- capture = prefix + '(' + capture + ')?';
38009
- }
38010
- } else {
38011
- capture = prefix + '(' + capture + ')';
38012
- }
38013
-
38014
- route += capture;
38015
- }
38016
- }
38017
-
38018
- var delimiter = escapeString(options.delimiter || '/');
38019
- var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
38020
-
38021
- // In non-strict mode we allow a slash at the end of match. If the path to
38022
- // match already ends with a slash, we remove it for consistency. The slash
38023
- // is valid at the end of a path match, not in the middle. This is important
38024
- // in non-ending mode, where "/test/" shouldn't match "/test//route".
38025
- if (!strict) {
38026
- route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
38027
- }
38028
-
38029
- if (end) {
38030
- route += '$';
38031
- } else {
38032
- // In non-ending mode, we need the capturing groups to match as much as
38033
- // possible by using a positive lookahead to the end or next path segment.
38034
- route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
38035
- }
38036
-
38037
- return attachKeys(new RegExp('^' + route, flags(options)), keys)
38038
- }
38039
-
38040
- /**
38041
- * Normalize the given path string, returning a regular expression.
38042
- *
38043
- * An empty array can be passed in for the keys, which will hold the
38044
- * placeholder key descriptions. For example, using `/user/:id`, `keys` will
38045
- * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
38046
- *
38047
- * @param {(string|RegExp|Array)} path
38048
- * @param {(Array|Object)=} keys
38049
- * @param {Object=} options
38050
- * @return {!RegExp}
38051
- */
38052
- function pathToRegexp (path, keys, options) {
38053
- if (!isarray(keys)) {
38054
- options = /** @type {!Object} */ (keys || options);
38055
- keys = [];
38056
- }
38057
-
38058
- options = options || {};
38059
-
38060
- if (path instanceof RegExp) {
38061
- return regexpToRegexp(path, /** @type {!Array} */ (keys))
38062
- }
38063
-
38064
- if (isarray(path)) {
38065
- return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
38066
- }
38067
-
38068
- return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
38069
- }
38070
- pathToRegexp_1.parse = parse_1;
38071
- pathToRegexp_1.compile = compile_1;
38072
- pathToRegexp_1.tokensToFunction = tokensToFunction_1;
38073
- pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
38074
-
38075
- /* */
38076
-
38077
- // $flow-disable-line
38078
- var regexpCompileCache = Object.create(null);
38079
-
38080
- function fillParams (
38081
- path,
38082
- params,
38083
- routeMsg
38084
- ) {
38085
- params = params || {};
38086
- try {
38087
- var filler =
38088
- regexpCompileCache[path] ||
38089
- (regexpCompileCache[path] = pathToRegexp_1.compile(path));
38090
-
38091
- // Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
38092
- // and fix #3106 so that you can work with location descriptor object having params.pathMatch equal to empty string
38093
- if (typeof params.pathMatch === 'string') { params[0] = params.pathMatch; }
38094
-
38095
- return filler(params, { pretty: true })
38096
- } catch (e) {
38097
- if (false) {}
38098
- return ''
38099
- } finally {
38100
- // delete the 0 if it was added
38101
- delete params[0];
38102
- }
38103
- }
38104
-
38105
- /* */
38106
-
38107
- function normalizeLocation (
38108
- raw,
38109
- current,
38110
- append,
38111
- router
38112
- ) {
38113
- var next = typeof raw === 'string' ? { path: raw } : raw;
38114
- // named target
38115
- if (next._normalized) {
38116
- return next
38117
- } else if (next.name) {
38118
- next = extend({}, raw);
38119
- var params = next.params;
38120
- if (params && typeof params === 'object') {
38121
- next.params = extend({}, params);
38122
- }
38123
- return next
38124
- }
38125
-
38126
- // relative params
38127
- if (!next.path && next.params && current) {
38128
- next = extend({}, next);
38129
- next._normalized = true;
38130
- var params$1 = extend(extend({}, current.params), next.params);
38131
- if (current.name) {
38132
- next.name = current.name;
38133
- next.params = params$1;
38134
- } else if (current.matched.length) {
38135
- var rawPath = current.matched[current.matched.length - 1].path;
38136
- next.path = fillParams(rawPath, params$1, ("path " + (current.path)));
38137
- } else if (false) {}
38138
- return next
38139
- }
38140
-
38141
- var parsedPath = parsePath(next.path || '');
38142
- var basePath = (current && current.path) || '/';
38143
- var path = parsedPath.path
38144
- ? resolvePath(parsedPath.path, basePath, append || next.append)
38145
- : basePath;
38146
-
38147
- var query = resolveQuery(
38148
- parsedPath.query,
38149
- next.query,
38150
- router && router.options.parseQuery
38151
- );
38152
-
38153
- var hash = next.hash || parsedPath.hash;
38154
- if (hash && hash.charAt(0) !== '#') {
38155
- hash = "#" + hash;
38156
- }
38157
-
38158
- return {
38159
- _normalized: true,
38160
- path: path,
38161
- query: query,
38162
- hash: hash
38163
- }
38164
- }
38165
-
38166
- /* */
38167
-
38168
- // work around weird flow bug
38169
- var toTypes = [String, Object];
38170
- var eventTypes = [String, Array];
38171
-
38172
- var noop = function () {};
38173
-
38174
- var warnedCustomSlot;
38175
- var warnedTagProp;
38176
- var warnedEventProp;
38177
-
38178
- var Link = {
38179
- name: 'RouterLink',
38180
- props: {
38181
- to: {
38182
- type: toTypes,
38183
- required: true
38184
- },
38185
- tag: {
38186
- type: String,
38187
- default: 'a'
38188
- },
38189
- custom: Boolean,
38190
- exact: Boolean,
38191
- exactPath: Boolean,
38192
- append: Boolean,
38193
- replace: Boolean,
38194
- activeClass: String,
38195
- exactActiveClass: String,
38196
- ariaCurrentValue: {
38197
- type: String,
38198
- default: 'page'
38199
- },
38200
- event: {
38201
- type: eventTypes,
38202
- default: 'click'
38203
- }
38204
- },
38205
- render: function render (h) {
38206
- var this$1$1 = this;
38207
-
38208
- var router = this.$router;
38209
- var current = this.$route;
38210
- var ref = router.resolve(
38211
- this.to,
38212
- current,
38213
- this.append
38214
- );
38215
- var location = ref.location;
38216
- var route = ref.route;
38217
- var href = ref.href;
38218
-
38219
- var classes = {};
38220
- var globalActiveClass = router.options.linkActiveClass;
38221
- var globalExactActiveClass = router.options.linkExactActiveClass;
38222
- // Support global empty active class
38223
- var activeClassFallback =
38224
- globalActiveClass == null ? 'router-link-active' : globalActiveClass;
38225
- var exactActiveClassFallback =
38226
- globalExactActiveClass == null
38227
- ? 'router-link-exact-active'
38228
- : globalExactActiveClass;
38229
- var activeClass =
38230
- this.activeClass == null ? activeClassFallback : this.activeClass;
38231
- var exactActiveClass =
38232
- this.exactActiveClass == null
38233
- ? exactActiveClassFallback
38234
- : this.exactActiveClass;
38235
-
38236
- var compareTarget = route.redirectedFrom
38237
- ? createRoute(null, normalizeLocation(route.redirectedFrom), null, router)
38238
- : route;
38239
-
38240
- classes[exactActiveClass] = isSameRoute(current, compareTarget, this.exactPath);
38241
- classes[activeClass] = this.exact || this.exactPath
38242
- ? classes[exactActiveClass]
38243
- : isIncludedRoute(current, compareTarget);
38244
-
38245
- var ariaCurrentValue = classes[exactActiveClass] ? this.ariaCurrentValue : null;
38246
-
38247
- var handler = function (e) {
38248
- if (guardEvent(e)) {
38249
- if (this$1$1.replace) {
38250
- router.replace(location, noop);
38251
- } else {
38252
- router.push(location, noop);
38253
- }
38254
- }
38255
- };
38256
-
38257
- var on = { click: guardEvent };
38258
- if (Array.isArray(this.event)) {
38259
- this.event.forEach(function (e) {
38260
- on[e] = handler;
38261
- });
38262
- } else {
38263
- on[this.event] = handler;
38264
- }
38265
-
38266
- var data = { class: classes };
38267
-
38268
- var scopedSlot =
38269
- !this.$scopedSlots.$hasNormal &&
38270
- this.$scopedSlots.default &&
38271
- this.$scopedSlots.default({
38272
- href: href,
38273
- route: route,
38274
- navigate: handler,
38275
- isActive: classes[activeClass],
38276
- isExactActive: classes[exactActiveClass]
38277
- });
38278
-
38279
- if (scopedSlot) {
38280
- if (false) {}
38281
- if (scopedSlot.length === 1) {
38282
- return scopedSlot[0]
38283
- } else if (scopedSlot.length > 1 || !scopedSlot.length) {
38284
- if (false) {}
38285
- return scopedSlot.length === 0 ? h() : h('span', {}, scopedSlot)
38286
- }
38287
- }
38288
-
38289
- if (false) {}
38290
-
38291
- if (this.tag === 'a') {
38292
- data.on = on;
38293
- data.attrs = { href: href, 'aria-current': ariaCurrentValue };
38294
- } else {
38295
- // find the first <a> child and apply listener and href
38296
- var a = findAnchor(this.$slots.default);
38297
- if (a) {
38298
- // in case the <a> is a static node
38299
- a.isStatic = false;
38300
- var aData = (a.data = extend({}, a.data));
38301
- aData.on = aData.on || {};
38302
- // transform existing events in both objects into arrays so we can push later
38303
- for (var event in aData.on) {
38304
- var handler$1 = aData.on[event];
38305
- if (event in on) {
38306
- aData.on[event] = Array.isArray(handler$1) ? handler$1 : [handler$1];
38307
- }
38308
- }
38309
- // append new listeners for router-link
38310
- for (var event$1 in on) {
38311
- if (event$1 in aData.on) {
38312
- // on[event] is always a function
38313
- aData.on[event$1].push(on[event$1]);
38314
- } else {
38315
- aData.on[event$1] = handler;
38316
- }
38317
- }
38318
-
38319
- var aAttrs = (a.data.attrs = extend({}, a.data.attrs));
38320
- aAttrs.href = href;
38321
- aAttrs['aria-current'] = ariaCurrentValue;
38322
- } else {
38323
- // doesn't have <a> child, apply listener to self
38324
- data.on = on;
38325
- }
38326
- }
38327
-
38328
- return h(this.tag, data, this.$slots.default)
38329
- }
38330
- };
38331
-
38332
- function guardEvent (e) {
38333
- // don't redirect with control keys
38334
- if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) { return }
38335
- // don't redirect when preventDefault called
38336
- if (e.defaultPrevented) { return }
38337
- // don't redirect on right click
38338
- if (e.button !== undefined && e.button !== 0) { return }
38339
- // don't redirect if `target="_blank"`
38340
- if (e.currentTarget && e.currentTarget.getAttribute) {
38341
- var target = e.currentTarget.getAttribute('target');
38342
- if (/\b_blank\b/i.test(target)) { return }
38343
- }
38344
- // this may be a Weex event which doesn't have this method
38345
- if (e.preventDefault) {
38346
- e.preventDefault();
38347
- }
38348
- return true
38349
- }
38350
-
38351
- function findAnchor (children) {
38352
- if (children) {
38353
- var child;
38354
- for (var i = 0; i < children.length; i++) {
38355
- child = children[i];
38356
- if (child.tag === 'a') {
38357
- return child
38358
- }
38359
- if (child.children && (child = findAnchor(child.children))) {
38360
- return child
38361
- }
38362
- }
38363
- }
38364
- }
38365
-
38366
- var _Vue;
38367
-
38368
- function install (Vue) {
38369
- if (install.installed && _Vue === Vue) { return }
38370
- install.installed = true;
38371
-
38372
- _Vue = Vue;
38373
-
38374
- var isDef = function (v) { return v !== undefined; };
38375
-
38376
- var registerInstance = function (vm, callVal) {
38377
- var i = vm.$options._parentVnode;
38378
- if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {
38379
- i(vm, callVal);
38380
- }
38381
- };
38382
-
38383
- Vue.mixin({
38384
- beforeCreate: function beforeCreate () {
38385
- if (isDef(this.$options.router)) {
38386
- this._routerRoot = this;
38387
- this._router = this.$options.router;
38388
- this._router.init(this);
38389
- Vue.util.defineReactive(this, '_route', this._router.history.current);
38390
- } else {
38391
- this._routerRoot = (this.$parent && this.$parent._routerRoot) || this;
38392
- }
38393
- registerInstance(this, this);
38394
- },
38395
- destroyed: function destroyed () {
38396
- registerInstance(this);
38397
- }
38398
- });
38399
-
38400
- Object.defineProperty(Vue.prototype, '$router', {
38401
- get: function get () { return this._routerRoot._router }
38402
- });
38403
-
38404
- Object.defineProperty(Vue.prototype, '$route', {
38405
- get: function get () { return this._routerRoot._route }
38406
- });
38407
-
38408
- Vue.component('RouterView', View);
38409
- Vue.component('RouterLink', Link);
38410
-
38411
- var strats = Vue.config.optionMergeStrategies;
38412
- // use the same hook merging strategy for route hooks
38413
- strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;
38414
- }
38415
-
38416
- /* */
38417
-
38418
- var vue_router_esm_inBrowser = typeof window !== 'undefined';
38419
-
38420
- /* */
38421
-
38422
- function createRouteMap (
38423
- routes,
38424
- oldPathList,
38425
- oldPathMap,
38426
- oldNameMap,
38427
- parentRoute
38428
- ) {
38429
- // the path list is used to control path matching priority
38430
- var pathList = oldPathList || [];
38431
- // $flow-disable-line
38432
- var pathMap = oldPathMap || Object.create(null);
38433
- // $flow-disable-line
38434
- var nameMap = oldNameMap || Object.create(null);
38435
-
38436
- routes.forEach(function (route) {
38437
- addRouteRecord(pathList, pathMap, nameMap, route, parentRoute);
38438
- });
38439
-
38440
- // ensure wildcard routes are always at the end
38441
- for (var i = 0, l = pathList.length; i < l; i++) {
38442
- if (pathList[i] === '*') {
38443
- pathList.push(pathList.splice(i, 1)[0]);
38444
- l--;
38445
- i--;
38446
- }
38447
- }
38448
-
38449
- if (false) { var pathNames, found; }
38450
-
38451
- return {
38452
- pathList: pathList,
38453
- pathMap: pathMap,
38454
- nameMap: nameMap
38455
- }
38456
- }
38457
-
38458
- function addRouteRecord (
38459
- pathList,
38460
- pathMap,
38461
- nameMap,
38462
- route,
38463
- parent,
38464
- matchAs
38465
- ) {
38466
- var path = route.path;
38467
- var name = route.name;
38468
- if (false) {}
38469
-
38470
- var pathToRegexpOptions =
38471
- route.pathToRegexpOptions || {};
38472
- var normalizedPath = normalizePath(path, parent, pathToRegexpOptions.strict);
38473
-
38474
- if (typeof route.caseSensitive === 'boolean') {
38475
- pathToRegexpOptions.sensitive = route.caseSensitive;
38476
- }
38477
-
38478
- var record = {
38479
- path: normalizedPath,
38480
- regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),
38481
- components: route.components || { default: route.component },
38482
- alias: route.alias
38483
- ? typeof route.alias === 'string'
38484
- ? [route.alias]
38485
- : route.alias
38486
- : [],
38487
- instances: {},
38488
- enteredCbs: {},
38489
- name: name,
38490
- parent: parent,
38491
- matchAs: matchAs,
38492
- redirect: route.redirect,
38493
- beforeEnter: route.beforeEnter,
38494
- meta: route.meta || {},
38495
- props:
38496
- route.props == null
38497
- ? {}
38498
- : route.components
38499
- ? route.props
38500
- : { default: route.props }
38501
- };
38502
-
38503
- if (route.children) {
38504
- // Warn if route is named, does not redirect and has a default child route.
38505
- // If users navigate to this route by name, the default child will
38506
- // not be rendered (GH Issue #629)
38507
- if (false) {}
38508
- route.children.forEach(function (child) {
38509
- var childMatchAs = matchAs
38510
- ? cleanPath((matchAs + "/" + (child.path)))
38511
- : undefined;
38512
- addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);
38513
- });
38514
- }
38515
-
38516
- if (!pathMap[record.path]) {
38517
- pathList.push(record.path);
38518
- pathMap[record.path] = record;
38519
- }
38520
-
38521
- if (route.alias !== undefined) {
38522
- var aliases = Array.isArray(route.alias) ? route.alias : [route.alias];
38523
- for (var i = 0; i < aliases.length; ++i) {
38524
- var alias = aliases[i];
38525
- if (false) {}
38526
-
38527
- var aliasRoute = {
38528
- path: alias,
38529
- children: route.children
38530
- };
38531
- addRouteRecord(
38532
- pathList,
38533
- pathMap,
38534
- nameMap,
38535
- aliasRoute,
38536
- parent,
38537
- record.path || '/' // matchAs
38538
- );
38539
- }
38540
- }
38541
-
38542
- if (name) {
38543
- if (!nameMap[name]) {
38544
- nameMap[name] = record;
38545
- } else if (false) {}
38546
- }
38547
- }
38548
-
38549
- function compileRouteRegex (
38550
- path,
38551
- pathToRegexpOptions
38552
- ) {
38553
- var regex = pathToRegexp_1(path, [], pathToRegexpOptions);
38554
- if (false) { var keys; }
38555
- return regex
38556
- }
38557
-
38558
- function normalizePath (
38559
- path,
38560
- parent,
38561
- strict
38562
- ) {
38563
- if (!strict) { path = path.replace(/\/$/, ''); }
38564
- if (path[0] === '/') { return path }
38565
- if (parent == null) { return path }
38566
- return cleanPath(((parent.path) + "/" + path))
38567
- }
38568
-
38569
- /* */
38570
-
38571
-
38572
-
38573
- function createMatcher (
38574
- routes,
38575
- router
38576
- ) {
38577
- var ref = createRouteMap(routes);
38578
- var pathList = ref.pathList;
38579
- var pathMap = ref.pathMap;
38580
- var nameMap = ref.nameMap;
38581
-
38582
- function addRoutes (routes) {
38583
- createRouteMap(routes, pathList, pathMap, nameMap);
38584
- }
38585
-
38586
- function addRoute (parentOrRoute, route) {
38587
- var parent = (typeof parentOrRoute !== 'object') ? nameMap[parentOrRoute] : undefined;
38588
- // $flow-disable-line
38589
- createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);
38590
-
38591
- // add aliases of parent
38592
- if (parent && parent.alias.length) {
38593
- createRouteMap(
38594
- // $flow-disable-line route is defined if parent is
38595
- parent.alias.map(function (alias) { return ({ path: alias, children: [route] }); }),
38596
- pathList,
38597
- pathMap,
38598
- nameMap,
38599
- parent
38600
- );
38601
- }
38602
- }
38603
-
38604
- function getRoutes () {
38605
- return pathList.map(function (path) { return pathMap[path]; })
38606
- }
38607
-
38608
- function match (
38609
- raw,
38610
- currentRoute,
38611
- redirectedFrom
38612
- ) {
38613
- var location = normalizeLocation(raw, currentRoute, false, router);
38614
- var name = location.name;
38615
-
38616
- if (name) {
38617
- var record = nameMap[name];
38618
- if (false) {}
38619
- if (!record) { return _createRoute(null, location) }
38620
- var paramNames = record.regex.keys
38621
- .filter(function (key) { return !key.optional; })
38622
- .map(function (key) { return key.name; });
38623
-
38624
- if (typeof location.params !== 'object') {
38625
- location.params = {};
38626
- }
38627
-
38628
- if (currentRoute && typeof currentRoute.params === 'object') {
38629
- for (var key in currentRoute.params) {
38630
- if (!(key in location.params) && paramNames.indexOf(key) > -1) {
38631
- location.params[key] = currentRoute.params[key];
38632
- }
38633
- }
38634
- }
38635
-
38636
- location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
38637
- return _createRoute(record, location, redirectedFrom)
38638
- } else if (location.path) {
38639
- location.params = {};
38640
- for (var i = 0; i < pathList.length; i++) {
38641
- var path = pathList[i];
38642
- var record$1 = pathMap[path];
38643
- if (matchRoute(record$1.regex, location.path, location.params)) {
38644
- return _createRoute(record$1, location, redirectedFrom)
38645
- }
38646
- }
38647
- }
38648
- // no match
38649
- return _createRoute(null, location)
38650
- }
38651
-
38652
- function redirect (
38653
- record,
38654
- location
38655
- ) {
38656
- var originalRedirect = record.redirect;
38657
- var redirect = typeof originalRedirect === 'function'
38658
- ? originalRedirect(createRoute(record, location, null, router))
38659
- : originalRedirect;
38660
-
38661
- if (typeof redirect === 'string') {
38662
- redirect = { path: redirect };
38663
- }
38664
-
38665
- if (!redirect || typeof redirect !== 'object') {
38666
- if (false) {}
38667
- return _createRoute(null, location)
38668
- }
38669
-
38670
- var re = redirect;
38671
- var name = re.name;
38672
- var path = re.path;
38673
- var query = location.query;
38674
- var hash = location.hash;
38675
- var params = location.params;
38676
- query = re.hasOwnProperty('query') ? re.query : query;
38677
- hash = re.hasOwnProperty('hash') ? re.hash : hash;
38678
- params = re.hasOwnProperty('params') ? re.params : params;
38679
-
38680
- if (name) {
38681
- // resolved named direct
38682
- var targetRecord = nameMap[name];
38683
- if (false) {}
38684
- return match({
38685
- _normalized: true,
38686
- name: name,
38687
- query: query,
38688
- hash: hash,
38689
- params: params
38690
- }, undefined, location)
38691
- } else if (path) {
38692
- // 1. resolve relative redirect
38693
- var rawPath = resolveRecordPath(path, record);
38694
- // 2. resolve params
38695
- var resolvedPath = fillParams(rawPath, params, ("redirect route with path \"" + rawPath + "\""));
38696
- // 3. rematch with existing query and hash
38697
- return match({
38698
- _normalized: true,
38699
- path: resolvedPath,
38700
- query: query,
38701
- hash: hash
38702
- }, undefined, location)
38703
- } else {
38704
- if (false) {}
38705
- return _createRoute(null, location)
38706
- }
38707
- }
38708
-
38709
- function alias (
38710
- record,
38711
- location,
38712
- matchAs
38713
- ) {
38714
- var aliasedPath = fillParams(matchAs, location.params, ("aliased route with path \"" + matchAs + "\""));
38715
- var aliasedMatch = match({
38716
- _normalized: true,
38717
- path: aliasedPath
38718
- });
38719
- if (aliasedMatch) {
38720
- var matched = aliasedMatch.matched;
38721
- var aliasedRecord = matched[matched.length - 1];
38722
- location.params = aliasedMatch.params;
38723
- return _createRoute(aliasedRecord, location)
38724
- }
38725
- return _createRoute(null, location)
38726
- }
38727
-
38728
- function _createRoute (
38729
- record,
38730
- location,
38731
- redirectedFrom
38732
- ) {
38733
- if (record && record.redirect) {
38734
- return redirect(record, redirectedFrom || location)
38735
- }
38736
- if (record && record.matchAs) {
38737
- return alias(record, location, record.matchAs)
38738
- }
38739
- return createRoute(record, location, redirectedFrom, router)
38740
- }
38741
-
38742
- return {
38743
- match: match,
38744
- addRoute: addRoute,
38745
- getRoutes: getRoutes,
38746
- addRoutes: addRoutes
38747
- }
38748
- }
38749
-
38750
- function matchRoute (
38751
- regex,
38752
- path,
38753
- params
38754
- ) {
38755
- var m = path.match(regex);
38756
-
38757
- if (!m) {
38758
- return false
38759
- } else if (!params) {
38760
- return true
38761
- }
38762
-
38763
- for (var i = 1, len = m.length; i < len; ++i) {
38764
- var key = regex.keys[i - 1];
38765
- if (key) {
38766
- // Fix #1994: using * with props: true generates a param named 0
38767
- params[key.name || 'pathMatch'] = typeof m[i] === 'string' ? decode(m[i]) : m[i];
38768
- }
38769
- }
38770
-
38771
- return true
38772
- }
38773
-
38774
- function resolveRecordPath (path, record) {
38775
- return resolvePath(path, record.parent ? record.parent.path : '/', true)
38776
- }
38777
-
38778
- /* */
38779
-
38780
- // use User Timing api (if present) for more accurate key precision
38781
- var Time =
38782
- vue_router_esm_inBrowser && window.performance && window.performance.now
38783
- ? window.performance
38784
- : Date;
38785
-
38786
- function genStateKey () {
38787
- return Time.now().toFixed(3)
38788
- }
38789
-
38790
- var _key = genStateKey();
38791
-
38792
- function getStateKey () {
38793
- return _key
38794
- }
38795
-
38796
- function setStateKey (key) {
38797
- return (_key = key)
38798
- }
38799
-
38800
- /* */
38801
-
38802
- var positionStore = Object.create(null);
38803
-
38804
- function setupScroll () {
38805
- // Prevent browser scroll behavior on History popstate
38806
- if ('scrollRestoration' in window.history) {
38807
- window.history.scrollRestoration = 'manual';
38808
- }
38809
- // Fix for #1585 for Firefox
38810
- // Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
38811
- // Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
38812
- // window.location.protocol + '//' + window.location.host
38813
- // location.host contains the port and location.hostname doesn't
38814
- var protocolAndPath = window.location.protocol + '//' + window.location.host;
38815
- var absolutePath = window.location.href.replace(protocolAndPath, '');
38816
- // preserve existing history state as it could be overriden by the user
38817
- var stateCopy = extend({}, window.history.state);
38818
- stateCopy.key = getStateKey();
38819
- window.history.replaceState(stateCopy, '', absolutePath);
38820
- window.addEventListener('popstate', handlePopState);
38821
- return function () {
38822
- window.removeEventListener('popstate', handlePopState);
38823
- }
38824
- }
38825
-
38826
- function handleScroll (
38827
- router,
38828
- to,
38829
- from,
38830
- isPop
38831
- ) {
38832
- if (!router.app) {
38833
- return
38834
- }
38835
-
38836
- var behavior = router.options.scrollBehavior;
38837
- if (!behavior) {
38838
- return
38839
- }
38840
-
38841
- if (false) {}
38842
-
38843
- // wait until re-render finishes before scrolling
38844
- router.app.$nextTick(function () {
38845
- var position = getScrollPosition();
38846
- var shouldScroll = behavior.call(
38847
- router,
38848
- to,
38849
- from,
38850
- isPop ? position : null
38851
- );
38852
-
38853
- if (!shouldScroll) {
38854
- return
38855
- }
38856
-
38857
- if (typeof shouldScroll.then === 'function') {
38858
- shouldScroll
38859
- .then(function (shouldScroll) {
38860
- scrollToPosition((shouldScroll), position);
38861
- })
38862
- .catch(function (err) {
38863
- if (false) {}
38864
- });
38865
- } else {
38866
- scrollToPosition(shouldScroll, position);
38867
- }
38868
- });
38869
- }
38870
-
38871
- function saveScrollPosition () {
38872
- var key = getStateKey();
38873
- if (key) {
38874
- positionStore[key] = {
38875
- x: window.pageXOffset,
38876
- y: window.pageYOffset
38877
- };
38878
- }
38879
- }
38880
-
38881
- function handlePopState (e) {
38882
- saveScrollPosition();
38883
- if (e.state && e.state.key) {
38884
- setStateKey(e.state.key);
38885
- }
38886
- }
38887
-
38888
- function getScrollPosition () {
38889
- var key = getStateKey();
38890
- if (key) {
38891
- return positionStore[key]
38892
- }
38893
- }
38894
-
38895
- function getElementPosition (el, offset) {
38896
- var docEl = document.documentElement;
38897
- var docRect = docEl.getBoundingClientRect();
38898
- var elRect = el.getBoundingClientRect();
38899
- return {
38900
- x: elRect.left - docRect.left - offset.x,
38901
- y: elRect.top - docRect.top - offset.y
38902
- }
38903
- }
38904
-
38905
- function isValidPosition (obj) {
38906
- return isNumber(obj.x) || isNumber(obj.y)
38907
- }
38908
-
38909
- function normalizePosition (obj) {
38910
- return {
38911
- x: isNumber(obj.x) ? obj.x : window.pageXOffset,
38912
- y: isNumber(obj.y) ? obj.y : window.pageYOffset
38913
- }
38914
- }
38915
-
38916
- function normalizeOffset (obj) {
38917
- return {
38918
- x: isNumber(obj.x) ? obj.x : 0,
38919
- y: isNumber(obj.y) ? obj.y : 0
38920
- }
38921
- }
38922
-
38923
- function isNumber (v) {
38924
- return typeof v === 'number'
38925
- }
38926
-
38927
- var hashStartsWithNumberRE = /^#\d/;
38928
-
38929
- function scrollToPosition (shouldScroll, position) {
38930
- var isObject = typeof shouldScroll === 'object';
38931
- if (isObject && typeof shouldScroll.selector === 'string') {
38932
- // getElementById would still fail if the selector contains a more complicated query like #main[data-attr]
38933
- // but at the same time, it doesn't make much sense to select an element with an id and an extra selector
38934
- var el = hashStartsWithNumberRE.test(shouldScroll.selector) // $flow-disable-line
38935
- ? document.getElementById(shouldScroll.selector.slice(1)) // $flow-disable-line
38936
- : document.querySelector(shouldScroll.selector);
38937
-
38938
- if (el) {
38939
- var offset =
38940
- shouldScroll.offset && typeof shouldScroll.offset === 'object'
38941
- ? shouldScroll.offset
38942
- : {};
38943
- offset = normalizeOffset(offset);
38944
- position = getElementPosition(el, offset);
38945
- } else if (isValidPosition(shouldScroll)) {
38946
- position = normalizePosition(shouldScroll);
38947
- }
38948
- } else if (isObject && isValidPosition(shouldScroll)) {
38949
- position = normalizePosition(shouldScroll);
38950
- }
38951
-
38952
- if (position) {
38953
- // $flow-disable-line
38954
- if ('scrollBehavior' in document.documentElement.style) {
38955
- window.scrollTo({
38956
- left: position.x,
38957
- top: position.y,
38958
- // $flow-disable-line
38959
- behavior: shouldScroll.behavior
38960
- });
38961
- } else {
38962
- window.scrollTo(position.x, position.y);
38963
- }
38964
- }
38965
- }
38966
-
38967
- /* */
38968
-
38969
- var supportsPushState =
38970
- vue_router_esm_inBrowser &&
38971
- (function () {
38972
- var ua = window.navigator.userAgent;
38973
-
38974
- if (
38975
- (ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
38976
- ua.indexOf('Mobile Safari') !== -1 &&
38977
- ua.indexOf('Chrome') === -1 &&
38978
- ua.indexOf('Windows Phone') === -1
38979
- ) {
38980
- return false
38981
- }
38982
-
38983
- return window.history && typeof window.history.pushState === 'function'
38984
- })();
38985
-
38986
- function pushState (url, replace) {
38987
- saveScrollPosition();
38988
- // try...catch the pushState call to get around Safari
38989
- // DOM Exception 18 where it limits to 100 pushState calls
38990
- var history = window.history;
38991
- try {
38992
- if (replace) {
38993
- // preserve existing history state as it could be overriden by the user
38994
- var stateCopy = extend({}, history.state);
38995
- stateCopy.key = getStateKey();
38996
- history.replaceState(stateCopy, '', url);
38997
- } else {
38998
- history.pushState({ key: setStateKey(genStateKey()) }, '', url);
38999
- }
39000
- } catch (e) {
39001
- window.location[replace ? 'replace' : 'assign'](url);
39002
- }
39003
- }
39004
-
39005
- function replaceState (url) {
39006
- pushState(url, true);
39007
- }
39008
-
39009
- // When changing thing, also edit router.d.ts
39010
- var NavigationFailureType = {
39011
- redirected: 2,
39012
- aborted: 4,
39013
- cancelled: 8,
39014
- duplicated: 16
39015
- };
39016
-
39017
- function createNavigationRedirectedError (from, to) {
39018
- return createRouterError(
39019
- from,
39020
- to,
39021
- NavigationFailureType.redirected,
39022
- ("Redirected when going from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(
39023
- to
39024
- )) + "\" via a navigation guard.")
39025
- )
39026
- }
39027
-
39028
- function createNavigationDuplicatedError (from, to) {
39029
- var error = createRouterError(
39030
- from,
39031
- to,
39032
- NavigationFailureType.duplicated,
39033
- ("Avoided redundant navigation to current location: \"" + (from.fullPath) + "\".")
39034
- );
39035
- // backwards compatible with the first introduction of Errors
39036
- error.name = 'NavigationDuplicated';
39037
- return error
39038
- }
39039
-
39040
- function createNavigationCancelledError (from, to) {
39041
- return createRouterError(
39042
- from,
39043
- to,
39044
- NavigationFailureType.cancelled,
39045
- ("Navigation cancelled from \"" + (from.fullPath) + "\" to \"" + (to.fullPath) + "\" with a new navigation.")
39046
- )
39047
- }
39048
-
39049
- function createNavigationAbortedError (from, to) {
39050
- return createRouterError(
39051
- from,
39052
- to,
39053
- NavigationFailureType.aborted,
39054
- ("Navigation aborted from \"" + (from.fullPath) + "\" to \"" + (to.fullPath) + "\" via a navigation guard.")
39055
- )
39056
- }
39057
-
39058
- function createRouterError (from, to, type, message) {
39059
- var error = new Error(message);
39060
- error._isRouter = true;
39061
- error.from = from;
39062
- error.to = to;
39063
- error.type = type;
39064
-
39065
- return error
39066
- }
39067
-
39068
- var propertiesToLog = ['params', 'query', 'hash'];
39069
-
39070
- function stringifyRoute (to) {
39071
- if (typeof to === 'string') { return to }
39072
- if ('path' in to) { return to.path }
39073
- var location = {};
39074
- propertiesToLog.forEach(function (key) {
39075
- if (key in to) { location[key] = to[key]; }
39076
- });
39077
- return JSON.stringify(location, null, 2)
39078
- }
39079
-
39080
- function isError (err) {
39081
- return Object.prototype.toString.call(err).indexOf('Error') > -1
39082
- }
39083
-
39084
- function isNavigationFailure (err, errorType) {
39085
- return (
39086
- isError(err) &&
39087
- err._isRouter &&
39088
- (errorType == null || err.type === errorType)
39089
- )
39090
- }
39091
-
39092
- /* */
39093
-
39094
- function runQueue (queue, fn, cb) {
39095
- var step = function (index) {
39096
- if (index >= queue.length) {
39097
- cb();
39098
- } else {
39099
- if (queue[index]) {
39100
- fn(queue[index], function () {
39101
- step(index + 1);
39102
- });
39103
- } else {
39104
- step(index + 1);
39105
- }
39106
- }
39107
- };
39108
- step(0);
39109
- }
39110
-
39111
- /* */
39112
-
39113
- function resolveAsyncComponents (matched) {
39114
- return function (to, from, next) {
39115
- var hasAsync = false;
39116
- var pending = 0;
39117
- var error = null;
39118
-
39119
- flatMapComponents(matched, function (def, _, match, key) {
39120
- // if it's a function and doesn't have cid attached,
39121
- // assume it's an async component resolve function.
39122
- // we are not using Vue's default async resolving mechanism because
39123
- // we want to halt the navigation until the incoming component has been
39124
- // resolved.
39125
- if (typeof def === 'function' && def.cid === undefined) {
39126
- hasAsync = true;
39127
- pending++;
39128
-
39129
- var resolve = once(function (resolvedDef) {
39130
- if (isESModule(resolvedDef)) {
39131
- resolvedDef = resolvedDef.default;
39132
- }
39133
- // save resolved on async factory in case it's used elsewhere
39134
- def.resolved = typeof resolvedDef === 'function'
39135
- ? resolvedDef
39136
- : _Vue.extend(resolvedDef);
39137
- match.components[key] = resolvedDef;
39138
- pending--;
39139
- if (pending <= 0) {
39140
- next();
39141
- }
39142
- });
39143
-
39144
- var reject = once(function (reason) {
39145
- var msg = "Failed to resolve async component " + key + ": " + reason;
39146
- false && 0;
39147
- if (!error) {
39148
- error = isError(reason)
39149
- ? reason
39150
- : new Error(msg);
39151
- next(error);
39152
- }
39153
- });
39154
-
39155
- var res;
39156
- try {
39157
- res = def(resolve, reject);
39158
- } catch (e) {
39159
- reject(e);
39160
- }
39161
- if (res) {
39162
- if (typeof res.then === 'function') {
39163
- res.then(resolve, reject);
39164
- } else {
39165
- // new syntax in Vue 2.3
39166
- var comp = res.component;
39167
- if (comp && typeof comp.then === 'function') {
39168
- comp.then(resolve, reject);
39169
- }
39170
- }
39171
- }
39172
- }
39173
- });
39174
-
39175
- if (!hasAsync) { next(); }
39176
- }
39177
- }
39178
-
39179
- function flatMapComponents (
39180
- matched,
39181
- fn
39182
- ) {
39183
- return flatten(matched.map(function (m) {
39184
- return Object.keys(m.components).map(function (key) { return fn(
39185
- m.components[key],
39186
- m.instances[key],
39187
- m, key
39188
- ); })
39189
- }))
39190
- }
39191
-
39192
- function flatten (arr) {
39193
- return Array.prototype.concat.apply([], arr)
39194
- }
39195
-
39196
- var hasSymbol =
39197
- typeof Symbol === 'function' &&
39198
- typeof Symbol.toStringTag === 'symbol';
39199
-
39200
- function isESModule (obj) {
39201
- return obj.__esModule || (hasSymbol && obj[Symbol.toStringTag] === 'Module')
39202
- }
39203
-
39204
- // in Webpack 2, require.ensure now also returns a Promise
39205
- // so the resolve/reject functions may get called an extra time
39206
- // if the user uses an arrow function shorthand that happens to
39207
- // return that Promise.
39208
- function once (fn) {
39209
- var called = false;
39210
- return function () {
39211
- var args = [], len = arguments.length;
39212
- while ( len-- ) args[ len ] = arguments[ len ];
39213
-
39214
- if (called) { return }
39215
- called = true;
39216
- return fn.apply(this, args)
39217
- }
39218
- }
39219
-
39220
- /* */
39221
-
39222
- var History = function History (router, base) {
39223
- this.router = router;
39224
- this.base = normalizeBase(base);
39225
- // start with a route object that stands for "nowhere"
39226
- this.current = START;
39227
- this.pending = null;
39228
- this.ready = false;
39229
- this.readyCbs = [];
39230
- this.readyErrorCbs = [];
39231
- this.errorCbs = [];
39232
- this.listeners = [];
39233
- };
39234
-
39235
- History.prototype.listen = function listen (cb) {
39236
- this.cb = cb;
39237
- };
39238
-
39239
- History.prototype.onReady = function onReady (cb, errorCb) {
39240
- if (this.ready) {
39241
- cb();
39242
- } else {
39243
- this.readyCbs.push(cb);
39244
- if (errorCb) {
39245
- this.readyErrorCbs.push(errorCb);
39246
- }
39247
- }
39248
- };
39249
-
39250
- History.prototype.onError = function onError (errorCb) {
39251
- this.errorCbs.push(errorCb);
39252
- };
39253
-
39254
- History.prototype.transitionTo = function transitionTo (
39255
- location,
39256
- onComplete,
39257
- onAbort
39258
- ) {
39259
- var this$1$1 = this;
39260
-
39261
- var route;
39262
- // catch redirect option https://github.com/vuejs/vue-router/issues/3201
39263
- try {
39264
- route = this.router.match(location, this.current);
39265
- } catch (e) {
39266
- this.errorCbs.forEach(function (cb) {
39267
- cb(e);
39268
- });
39269
- // Exception should still be thrown
39270
- throw e
39271
- }
39272
- var prev = this.current;
39273
- this.confirmTransition(
39274
- route,
39275
- function () {
39276
- this$1$1.updateRoute(route);
39277
- onComplete && onComplete(route);
39278
- this$1$1.ensureURL();
39279
- this$1$1.router.afterHooks.forEach(function (hook) {
39280
- hook && hook(route, prev);
39281
- });
39282
-
39283
- // fire ready cbs once
39284
- if (!this$1$1.ready) {
39285
- this$1$1.ready = true;
39286
- this$1$1.readyCbs.forEach(function (cb) {
39287
- cb(route);
39288
- });
39289
- }
39290
- },
39291
- function (err) {
39292
- if (onAbort) {
39293
- onAbort(err);
39294
- }
39295
- if (err && !this$1$1.ready) {
39296
- // Initial redirection should not mark the history as ready yet
39297
- // because it's triggered by the redirection instead
39298
- // https://github.com/vuejs/vue-router/issues/3225
39299
- // https://github.com/vuejs/vue-router/issues/3331
39300
- if (!isNavigationFailure(err, NavigationFailureType.redirected) || prev !== START) {
39301
- this$1$1.ready = true;
39302
- this$1$1.readyErrorCbs.forEach(function (cb) {
39303
- cb(err);
39304
- });
39305
- }
39306
- }
39307
- }
39308
- );
39309
- };
39310
-
39311
- History.prototype.confirmTransition = function confirmTransition (route, onComplete, onAbort) {
39312
- var this$1$1 = this;
39313
-
39314
- var current = this.current;
39315
- this.pending = route;
39316
- var abort = function (err) {
39317
- // changed after adding errors with
39318
- // https://github.com/vuejs/vue-router/pull/3047 before that change,
39319
- // redirect and aborted navigation would produce an err == null
39320
- if (!isNavigationFailure(err) && isError(err)) {
39321
- if (this$1$1.errorCbs.length) {
39322
- this$1$1.errorCbs.forEach(function (cb) {
39323
- cb(err);
39324
- });
39325
- } else {
39326
- if (false) {}
39327
- console.error(err);
39328
- }
39329
- }
39330
- onAbort && onAbort(err);
39331
- };
39332
- var lastRouteIndex = route.matched.length - 1;
39333
- var lastCurrentIndex = current.matched.length - 1;
39334
- if (
39335
- isSameRoute(route, current) &&
39336
- // in the case the route map has been dynamically appended to
39337
- lastRouteIndex === lastCurrentIndex &&
39338
- route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
39339
- ) {
39340
- this.ensureURL();
39341
- if (route.hash) {
39342
- handleScroll(this.router, current, route, false);
39343
- }
39344
- return abort(createNavigationDuplicatedError(current, route))
39345
- }
39346
-
39347
- var ref = resolveQueue(
39348
- this.current.matched,
39349
- route.matched
39350
- );
39351
- var updated = ref.updated;
39352
- var deactivated = ref.deactivated;
39353
- var activated = ref.activated;
39354
-
39355
- var queue = [].concat(
39356
- // in-component leave guards
39357
- extractLeaveGuards(deactivated),
39358
- // global before hooks
39359
- this.router.beforeHooks,
39360
- // in-component update hooks
39361
- extractUpdateHooks(updated),
39362
- // in-config enter guards
39363
- activated.map(function (m) { return m.beforeEnter; }),
39364
- // async components
39365
- resolveAsyncComponents(activated)
39366
- );
39367
-
39368
- var iterator = function (hook, next) {
39369
- if (this$1$1.pending !== route) {
39370
- return abort(createNavigationCancelledError(current, route))
39371
- }
39372
- try {
39373
- hook(route, current, function (to) {
39374
- if (to === false) {
39375
- // next(false) -> abort navigation, ensure current URL
39376
- this$1$1.ensureURL(true);
39377
- abort(createNavigationAbortedError(current, route));
39378
- } else if (isError(to)) {
39379
- this$1$1.ensureURL(true);
39380
- abort(to);
39381
- } else if (
39382
- typeof to === 'string' ||
39383
- (typeof to === 'object' &&
39384
- (typeof to.path === 'string' || typeof to.name === 'string'))
39385
- ) {
39386
- // next('/') or next({ path: '/' }) -> redirect
39387
- abort(createNavigationRedirectedError(current, route));
39388
- if (typeof to === 'object' && to.replace) {
39389
- this$1$1.replace(to);
39390
- } else {
39391
- this$1$1.push(to);
39392
- }
39393
- } else {
39394
- // confirm transition and pass on the value
39395
- next(to);
39396
- }
39397
- });
39398
- } catch (e) {
39399
- abort(e);
39400
- }
39401
- };
39402
-
39403
- runQueue(queue, iterator, function () {
39404
- // wait until async components are resolved before
39405
- // extracting in-component enter guards
39406
- var enterGuards = extractEnterGuards(activated);
39407
- var queue = enterGuards.concat(this$1$1.router.resolveHooks);
39408
- runQueue(queue, iterator, function () {
39409
- if (this$1$1.pending !== route) {
39410
- return abort(createNavigationCancelledError(current, route))
39411
- }
39412
- this$1$1.pending = null;
39413
- onComplete(route);
39414
- if (this$1$1.router.app) {
39415
- this$1$1.router.app.$nextTick(function () {
39416
- handleRouteEntered(route);
39417
- });
39418
- }
39419
- });
39420
- });
39421
- };
39422
-
39423
- History.prototype.updateRoute = function updateRoute (route) {
39424
- this.current = route;
39425
- this.cb && this.cb(route);
39426
- };
39427
-
39428
- History.prototype.setupListeners = function setupListeners () {
39429
- // Default implementation is empty
39430
- };
39431
-
39432
- History.prototype.teardown = function teardown () {
39433
- // clean up event listeners
39434
- // https://github.com/vuejs/vue-router/issues/2341
39435
- this.listeners.forEach(function (cleanupListener) {
39436
- cleanupListener();
39437
- });
39438
- this.listeners = [];
39439
-
39440
- // reset current history route
39441
- // https://github.com/vuejs/vue-router/issues/3294
39442
- this.current = START;
39443
- this.pending = null;
39444
- };
39445
-
39446
- function normalizeBase (base) {
39447
- if (!base) {
39448
- if (vue_router_esm_inBrowser) {
39449
- // respect <base> tag
39450
- var baseEl = document.querySelector('base');
39451
- base = (baseEl && baseEl.getAttribute('href')) || '/';
39452
- // strip full URL origin
39453
- base = base.replace(/^https?:\/\/[^\/]+/, '');
39454
- } else {
39455
- base = '/';
39456
- }
39457
- }
39458
- // make sure there's the starting slash
39459
- if (base.charAt(0) !== '/') {
39460
- base = '/' + base;
39461
- }
39462
- // remove trailing slash
39463
- return base.replace(/\/$/, '')
39464
- }
39465
-
39466
- function resolveQueue (
39467
- current,
39468
- next
39469
- ) {
39470
- var i;
39471
- var max = Math.max(current.length, next.length);
39472
- for (i = 0; i < max; i++) {
39473
- if (current[i] !== next[i]) {
39474
- break
39475
- }
39476
- }
39477
- return {
39478
- updated: next.slice(0, i),
39479
- activated: next.slice(i),
39480
- deactivated: current.slice(i)
39481
- }
39482
- }
39483
-
39484
- function extractGuards (
39485
- records,
39486
- name,
39487
- bind,
39488
- reverse
39489
- ) {
39490
- var guards = flatMapComponents(records, function (def, instance, match, key) {
39491
- var guard = extractGuard(def, name);
39492
- if (guard) {
39493
- return Array.isArray(guard)
39494
- ? guard.map(function (guard) { return bind(guard, instance, match, key); })
39495
- : bind(guard, instance, match, key)
39496
- }
39497
- });
39498
- return flatten(reverse ? guards.reverse() : guards)
39499
- }
39500
-
39501
- function extractGuard (
39502
- def,
39503
- key
39504
- ) {
39505
- if (typeof def !== 'function') {
39506
- // extend now so that global mixins are applied.
39507
- def = _Vue.extend(def);
39508
- }
39509
- return def.options[key]
39510
- }
39511
-
39512
- function extractLeaveGuards (deactivated) {
39513
- return extractGuards(deactivated, 'beforeRouteLeave', bindGuard, true)
39514
- }
39515
-
39516
- function extractUpdateHooks (updated) {
39517
- return extractGuards(updated, 'beforeRouteUpdate', bindGuard)
39518
- }
39519
-
39520
- function bindGuard (guard, instance) {
39521
- if (instance) {
39522
- return function boundRouteGuard () {
39523
- return guard.apply(instance, arguments)
39524
- }
39525
- }
39526
- }
39527
-
39528
- function extractEnterGuards (
39529
- activated
39530
- ) {
39531
- return extractGuards(
39532
- activated,
39533
- 'beforeRouteEnter',
39534
- function (guard, _, match, key) {
39535
- return bindEnterGuard(guard, match, key)
39536
- }
39537
- )
39538
- }
39539
-
39540
- function bindEnterGuard (
39541
- guard,
39542
- match,
39543
- key
39544
- ) {
39545
- return function routeEnterGuard (to, from, next) {
39546
- return guard(to, from, function (cb) {
39547
- if (typeof cb === 'function') {
39548
- if (!match.enteredCbs[key]) {
39549
- match.enteredCbs[key] = [];
39550
- }
39551
- match.enteredCbs[key].push(cb);
39552
- }
39553
- next(cb);
39554
- })
39555
- }
39556
- }
39557
-
39558
- /* */
39559
-
39560
- var HTML5History = /*@__PURE__*/(function (History) {
39561
- function HTML5History (router, base) {
39562
- History.call(this, router, base);
39563
-
39564
- this._startLocation = getLocation(this.base);
39565
- }
39566
-
39567
- if ( History ) HTML5History.__proto__ = History;
39568
- HTML5History.prototype = Object.create( History && History.prototype );
39569
- HTML5History.prototype.constructor = HTML5History;
39570
-
39571
- HTML5History.prototype.setupListeners = function setupListeners () {
39572
- var this$1$1 = this;
39573
-
39574
- if (this.listeners.length > 0) {
39575
- return
39576
- }
39577
-
39578
- var router = this.router;
39579
- var expectScroll = router.options.scrollBehavior;
39580
- var supportsScroll = supportsPushState && expectScroll;
39581
-
39582
- if (supportsScroll) {
39583
- this.listeners.push(setupScroll());
39584
- }
39585
-
39586
- var handleRoutingEvent = function () {
39587
- var current = this$1$1.current;
39588
-
39589
- // Avoiding first `popstate` event dispatched in some browsers but first
39590
- // history route not updated since async guard at the same time.
39591
- var location = getLocation(this$1$1.base);
39592
- if (this$1$1.current === START && location === this$1$1._startLocation) {
39593
- return
39594
- }
39595
-
39596
- this$1$1.transitionTo(location, function (route) {
39597
- if (supportsScroll) {
39598
- handleScroll(router, route, current, true);
39599
- }
39600
- });
39601
- };
39602
- window.addEventListener('popstate', handleRoutingEvent);
39603
- this.listeners.push(function () {
39604
- window.removeEventListener('popstate', handleRoutingEvent);
39605
- });
39606
- };
39607
-
39608
- HTML5History.prototype.go = function go (n) {
39609
- window.history.go(n);
39610
- };
39611
-
39612
- HTML5History.prototype.push = function push (location, onComplete, onAbort) {
39613
- var this$1$1 = this;
39614
-
39615
- var ref = this;
39616
- var fromRoute = ref.current;
39617
- this.transitionTo(location, function (route) {
39618
- pushState(cleanPath(this$1$1.base + route.fullPath));
39619
- handleScroll(this$1$1.router, route, fromRoute, false);
39620
- onComplete && onComplete(route);
39621
- }, onAbort);
39622
- };
39623
-
39624
- HTML5History.prototype.replace = function replace (location, onComplete, onAbort) {
39625
- var this$1$1 = this;
39626
-
39627
- var ref = this;
39628
- var fromRoute = ref.current;
39629
- this.transitionTo(location, function (route) {
39630
- replaceState(cleanPath(this$1$1.base + route.fullPath));
39631
- handleScroll(this$1$1.router, route, fromRoute, false);
39632
- onComplete && onComplete(route);
39633
- }, onAbort);
39634
- };
39635
-
39636
- HTML5History.prototype.ensureURL = function ensureURL (push) {
39637
- if (getLocation(this.base) !== this.current.fullPath) {
39638
- var current = cleanPath(this.base + this.current.fullPath);
39639
- push ? pushState(current) : replaceState(current);
39640
- }
39641
- };
39642
-
39643
- HTML5History.prototype.getCurrentLocation = function getCurrentLocation () {
39644
- return getLocation(this.base)
39645
- };
39646
-
39647
- return HTML5History;
39648
- }(History));
39649
-
39650
- function getLocation (base) {
39651
- var path = window.location.pathname;
39652
- var pathLowerCase = path.toLowerCase();
39653
- var baseLowerCase = base.toLowerCase();
39654
- // base="/a" shouldn't turn path="/app" into "/a/pp"
39655
- // https://github.com/vuejs/vue-router/issues/3555
39656
- // so we ensure the trailing slash in the base
39657
- if (base && ((pathLowerCase === baseLowerCase) ||
39658
- (pathLowerCase.indexOf(cleanPath(baseLowerCase + '/')) === 0))) {
39659
- path = path.slice(base.length);
39660
- }
39661
- return (path || '/') + window.location.search + window.location.hash
39662
- }
39663
-
39664
- /* */
39665
-
39666
- var HashHistory = /*@__PURE__*/(function (History) {
39667
- function HashHistory (router, base, fallback) {
39668
- History.call(this, router, base);
39669
- // check history fallback deeplinking
39670
- if (fallback && checkFallback(this.base)) {
39671
- return
39672
- }
39673
- ensureSlash();
39674
- }
39675
-
39676
- if ( History ) HashHistory.__proto__ = History;
39677
- HashHistory.prototype = Object.create( History && History.prototype );
39678
- HashHistory.prototype.constructor = HashHistory;
39679
-
39680
- // this is delayed until the app mounts
39681
- // to avoid the hashchange listener being fired too early
39682
- HashHistory.prototype.setupListeners = function setupListeners () {
39683
- var this$1$1 = this;
39684
-
39685
- if (this.listeners.length > 0) {
39686
- return
39687
- }
39688
-
39689
- var router = this.router;
39690
- var expectScroll = router.options.scrollBehavior;
39691
- var supportsScroll = supportsPushState && expectScroll;
39692
-
39693
- if (supportsScroll) {
39694
- this.listeners.push(setupScroll());
39695
- }
39696
-
39697
- var handleRoutingEvent = function () {
39698
- var current = this$1$1.current;
39699
- if (!ensureSlash()) {
39700
- return
39701
- }
39702
- this$1$1.transitionTo(getHash(), function (route) {
39703
- if (supportsScroll) {
39704
- handleScroll(this$1$1.router, route, current, true);
39705
- }
39706
- if (!supportsPushState) {
39707
- replaceHash(route.fullPath);
39708
- }
39709
- });
39710
- };
39711
- var eventType = supportsPushState ? 'popstate' : 'hashchange';
39712
- window.addEventListener(
39713
- eventType,
39714
- handleRoutingEvent
39715
- );
39716
- this.listeners.push(function () {
39717
- window.removeEventListener(eventType, handleRoutingEvent);
39718
- });
39719
- };
39720
-
39721
- HashHistory.prototype.push = function push (location, onComplete, onAbort) {
39722
- var this$1$1 = this;
39723
-
39724
- var ref = this;
39725
- var fromRoute = ref.current;
39726
- this.transitionTo(
39727
- location,
39728
- function (route) {
39729
- pushHash(route.fullPath);
39730
- handleScroll(this$1$1.router, route, fromRoute, false);
39731
- onComplete && onComplete(route);
39732
- },
39733
- onAbort
39734
- );
39735
- };
39736
-
39737
- HashHistory.prototype.replace = function replace (location, onComplete, onAbort) {
39738
- var this$1$1 = this;
39739
-
39740
- var ref = this;
39741
- var fromRoute = ref.current;
39742
- this.transitionTo(
39743
- location,
39744
- function (route) {
39745
- replaceHash(route.fullPath);
39746
- handleScroll(this$1$1.router, route, fromRoute, false);
39747
- onComplete && onComplete(route);
39748
- },
39749
- onAbort
39750
- );
39751
- };
39752
-
39753
- HashHistory.prototype.go = function go (n) {
39754
- window.history.go(n);
39755
- };
39756
-
39757
- HashHistory.prototype.ensureURL = function ensureURL (push) {
39758
- var current = this.current.fullPath;
39759
- if (getHash() !== current) {
39760
- push ? pushHash(current) : replaceHash(current);
39761
- }
39762
- };
39763
-
39764
- HashHistory.prototype.getCurrentLocation = function getCurrentLocation () {
39765
- return getHash()
39766
- };
39767
-
39768
- return HashHistory;
39769
- }(History));
39770
-
39771
- function checkFallback (base) {
39772
- var location = getLocation(base);
39773
- if (!/^\/#/.test(location)) {
39774
- window.location.replace(cleanPath(base + '/#' + location));
39775
- return true
39776
- }
39777
- }
39778
-
39779
- function ensureSlash () {
39780
- var path = getHash();
39781
- if (path.charAt(0) === '/') {
39782
- return true
39783
- }
39784
- replaceHash('/' + path);
39785
- return false
39786
- }
39787
-
39788
- function getHash () {
39789
- // We can't use window.location.hash here because it's not
39790
- // consistent across browsers - Firefox will pre-decode it!
39791
- var href = window.location.href;
39792
- var index = href.indexOf('#');
39793
- // empty path
39794
- if (index < 0) { return '' }
39795
-
39796
- href = href.slice(index + 1);
39797
-
39798
- return href
39799
- }
39800
-
39801
- function getUrl (path) {
39802
- var href = window.location.href;
39803
- var i = href.indexOf('#');
39804
- var base = i >= 0 ? href.slice(0, i) : href;
39805
- return (base + "#" + path)
39806
- }
39807
-
39808
- function pushHash (path) {
39809
- if (supportsPushState) {
39810
- pushState(getUrl(path));
39811
- } else {
39812
- window.location.hash = path;
39813
- }
39814
- }
39815
-
39816
- function replaceHash (path) {
39817
- if (supportsPushState) {
39818
- replaceState(getUrl(path));
39819
- } else {
39820
- window.location.replace(getUrl(path));
39821
- }
39822
- }
39823
-
39824
- /* */
39825
-
39826
- var AbstractHistory = /*@__PURE__*/(function (History) {
39827
- function AbstractHistory (router, base) {
39828
- History.call(this, router, base);
39829
- this.stack = [];
39830
- this.index = -1;
39831
- }
39832
-
39833
- if ( History ) AbstractHistory.__proto__ = History;
39834
- AbstractHistory.prototype = Object.create( History && History.prototype );
39835
- AbstractHistory.prototype.constructor = AbstractHistory;
39836
-
39837
- AbstractHistory.prototype.push = function push (location, onComplete, onAbort) {
39838
- var this$1$1 = this;
39839
-
39840
- this.transitionTo(
39841
- location,
39842
- function (route) {
39843
- this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index + 1).concat(route);
39844
- this$1$1.index++;
39845
- onComplete && onComplete(route);
39846
- },
39847
- onAbort
39848
- );
39849
- };
39850
-
39851
- AbstractHistory.prototype.replace = function replace (location, onComplete, onAbort) {
39852
- var this$1$1 = this;
39853
-
39854
- this.transitionTo(
39855
- location,
39856
- function (route) {
39857
- this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index).concat(route);
39858
- onComplete && onComplete(route);
39859
- },
39860
- onAbort
39861
- );
39862
- };
39863
-
39864
- AbstractHistory.prototype.go = function go (n) {
39865
- var this$1$1 = this;
39866
-
39867
- var targetIndex = this.index + n;
39868
- if (targetIndex < 0 || targetIndex >= this.stack.length) {
39869
- return
39870
- }
39871
- var route = this.stack[targetIndex];
39872
- this.confirmTransition(
39873
- route,
39874
- function () {
39875
- var prev = this$1$1.current;
39876
- this$1$1.index = targetIndex;
39877
- this$1$1.updateRoute(route);
39878
- this$1$1.router.afterHooks.forEach(function (hook) {
39879
- hook && hook(route, prev);
39880
- });
39881
- },
39882
- function (err) {
39883
- if (isNavigationFailure(err, NavigationFailureType.duplicated)) {
39884
- this$1$1.index = targetIndex;
39885
- }
39886
- }
39887
- );
39888
- };
39889
-
39890
- AbstractHistory.prototype.getCurrentLocation = function getCurrentLocation () {
39891
- var current = this.stack[this.stack.length - 1];
39892
- return current ? current.fullPath : '/'
39893
- };
39894
-
39895
- AbstractHistory.prototype.ensureURL = function ensureURL () {
39896
- // noop
39897
- };
39898
-
39899
- return AbstractHistory;
39900
- }(History));
39901
-
39902
- /* */
39903
-
39904
-
39905
-
39906
- var VueRouter = function VueRouter (options) {
39907
- if ( options === void 0 ) options = {};
39908
-
39909
- if (false) {}
39910
- this.app = null;
39911
- this.apps = [];
39912
- this.options = options;
39913
- this.beforeHooks = [];
39914
- this.resolveHooks = [];
39915
- this.afterHooks = [];
39916
- this.matcher = createMatcher(options.routes || [], this);
39917
-
39918
- var mode = options.mode || 'hash';
39919
- this.fallback =
39920
- mode === 'history' && !supportsPushState && options.fallback !== false;
39921
- if (this.fallback) {
39922
- mode = 'hash';
39923
- }
39924
- if (!vue_router_esm_inBrowser) {
39925
- mode = 'abstract';
39926
- }
39927
- this.mode = mode;
39928
-
39929
- switch (mode) {
39930
- case 'history':
39931
- this.history = new HTML5History(this, options.base);
39932
- break
39933
- case 'hash':
39934
- this.history = new HashHistory(this, options.base, this.fallback);
39935
- break
39936
- case 'abstract':
39937
- this.history = new AbstractHistory(this, options.base);
39938
- break
39939
- default:
39940
- if (false) {}
39941
- }
39942
- };
39943
-
39944
- var prototypeAccessors = { currentRoute: { configurable: true } };
39945
-
39946
- VueRouter.prototype.match = function match (raw, current, redirectedFrom) {
39947
- return this.matcher.match(raw, current, redirectedFrom)
39948
- };
39949
-
39950
- prototypeAccessors.currentRoute.get = function () {
39951
- return this.history && this.history.current
39952
- };
39953
-
39954
- VueRouter.prototype.init = function init (app /* Vue component instance */) {
39955
- var this$1$1 = this;
39956
-
39957
- false &&
39958
- 0;
39959
-
39960
- this.apps.push(app);
39961
-
39962
- // set up app destroyed handler
39963
- // https://github.com/vuejs/vue-router/issues/2639
39964
- app.$once('hook:destroyed', function () {
39965
- // clean out app from this.apps array once destroyed
39966
- var index = this$1$1.apps.indexOf(app);
39967
- if (index > -1) { this$1$1.apps.splice(index, 1); }
39968
- // ensure we still have a main app or null if no apps
39969
- // we do not release the router so it can be reused
39970
- if (this$1$1.app === app) { this$1$1.app = this$1$1.apps[0] || null; }
39971
-
39972
- if (!this$1$1.app) { this$1$1.history.teardown(); }
39973
- });
39974
-
39975
- // main app previously initialized
39976
- // return as we don't need to set up new history listener
39977
- if (this.app) {
39978
- return
39979
- }
39980
-
39981
- this.app = app;
39982
-
39983
- var history = this.history;
39984
-
39985
- if (history instanceof HTML5History || history instanceof HashHistory) {
39986
- var handleInitialScroll = function (routeOrError) {
39987
- var from = history.current;
39988
- var expectScroll = this$1$1.options.scrollBehavior;
39989
- var supportsScroll = supportsPushState && expectScroll;
39990
-
39991
- if (supportsScroll && 'fullPath' in routeOrError) {
39992
- handleScroll(this$1$1, routeOrError, from, false);
39993
- }
39994
- };
39995
- var setupListeners = function (routeOrError) {
39996
- history.setupListeners();
39997
- handleInitialScroll(routeOrError);
39998
- };
39999
- history.transitionTo(
40000
- history.getCurrentLocation(),
40001
- setupListeners,
40002
- setupListeners
40003
- );
40004
- }
40005
-
40006
- history.listen(function (route) {
40007
- this$1$1.apps.forEach(function (app) {
40008
- app._route = route;
40009
- });
40010
- });
40011
- };
40012
-
40013
- VueRouter.prototype.beforeEach = function beforeEach (fn) {
40014
- return registerHook(this.beforeHooks, fn)
40015
- };
40016
-
40017
- VueRouter.prototype.beforeResolve = function beforeResolve (fn) {
40018
- return registerHook(this.resolveHooks, fn)
40019
- };
40020
-
40021
- VueRouter.prototype.afterEach = function afterEach (fn) {
40022
- return registerHook(this.afterHooks, fn)
40023
- };
40024
-
40025
- VueRouter.prototype.onReady = function onReady (cb, errorCb) {
40026
- this.history.onReady(cb, errorCb);
40027
- };
40028
-
40029
- VueRouter.prototype.onError = function onError (errorCb) {
40030
- this.history.onError(errorCb);
40031
- };
40032
-
40033
- VueRouter.prototype.push = function push (location, onComplete, onAbort) {
40034
- var this$1$1 = this;
40035
-
40036
- // $flow-disable-line
40037
- if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
40038
- return new Promise(function (resolve, reject) {
40039
- this$1$1.history.push(location, resolve, reject);
40040
- })
40041
- } else {
40042
- this.history.push(location, onComplete, onAbort);
40043
- }
40044
- };
40045
-
40046
- VueRouter.prototype.replace = function replace (location, onComplete, onAbort) {
40047
- var this$1$1 = this;
40048
-
40049
- // $flow-disable-line
40050
- if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
40051
- return new Promise(function (resolve, reject) {
40052
- this$1$1.history.replace(location, resolve, reject);
40053
- })
40054
- } else {
40055
- this.history.replace(location, onComplete, onAbort);
40056
- }
40057
- };
40058
-
40059
- VueRouter.prototype.go = function go (n) {
40060
- this.history.go(n);
40061
- };
40062
-
40063
- VueRouter.prototype.back = function back () {
40064
- this.go(-1);
40065
- };
40066
-
40067
- VueRouter.prototype.forward = function forward () {
40068
- this.go(1);
40069
- };
40070
-
40071
- VueRouter.prototype.getMatchedComponents = function getMatchedComponents (to) {
40072
- var route = to
40073
- ? to.matched
40074
- ? to
40075
- : this.resolve(to).route
40076
- : this.currentRoute;
40077
- if (!route) {
40078
- return []
40079
- }
40080
- return [].concat.apply(
40081
- [],
40082
- route.matched.map(function (m) {
40083
- return Object.keys(m.components).map(function (key) {
40084
- return m.components[key]
40085
- })
40086
- })
40087
- )
40088
- };
40089
-
40090
- VueRouter.prototype.resolve = function resolve (
40091
- to,
40092
- current,
40093
- append
40094
- ) {
40095
- current = current || this.history.current;
40096
- var location = normalizeLocation(to, current, append, this);
40097
- var route = this.match(location, current);
40098
- var fullPath = route.redirectedFrom || route.fullPath;
40099
- var base = this.history.base;
40100
- var href = createHref(base, fullPath, this.mode);
40101
- return {
40102
- location: location,
40103
- route: route,
40104
- href: href,
40105
- // for backwards compat
40106
- normalizedTo: location,
40107
- resolved: route
40108
- }
40109
- };
40110
-
40111
- VueRouter.prototype.getRoutes = function getRoutes () {
40112
- return this.matcher.getRoutes()
40113
- };
40114
-
40115
- VueRouter.prototype.addRoute = function addRoute (parentOrRoute, route) {
40116
- this.matcher.addRoute(parentOrRoute, route);
40117
- if (this.history.current !== START) {
40118
- this.history.transitionTo(this.history.getCurrentLocation());
40119
- }
40120
- };
40121
-
40122
- VueRouter.prototype.addRoutes = function addRoutes (routes) {
40123
- if (false) {}
40124
- this.matcher.addRoutes(routes);
40125
- if (this.history.current !== START) {
40126
- this.history.transitionTo(this.history.getCurrentLocation());
40127
- }
40128
- };
40129
-
40130
- Object.defineProperties( VueRouter.prototype, prototypeAccessors );
40131
-
40132
- var VueRouter$1 = VueRouter;
40133
-
40134
- function registerHook (list, fn) {
40135
- list.push(fn);
40136
- return function () {
40137
- var i = list.indexOf(fn);
40138
- if (i > -1) { list.splice(i, 1); }
40139
- }
40140
- }
40141
-
40142
- function createHref (base, fullPath, mode) {
40143
- var path = mode === 'hash' ? '#' + fullPath : fullPath;
40144
- return base ? cleanPath(base + '/' + path) : path
40145
- }
40146
-
40147
- // We cannot remove this as it would be a breaking change
40148
- VueRouter.install = install;
40149
- VueRouter.version = '3.6.5';
40150
- VueRouter.isNavigationFailure = isNavigationFailure;
40151
- VueRouter.NavigationFailureType = NavigationFailureType;
40152
- VueRouter.START_LOCATION = START;
40153
-
40154
- if (vue_router_esm_inBrowser && window.Vue) {
40155
- window.Vue.use(VueRouter);
40156
- }
40157
-
40158
- var version = '3.6.5';
40159
-
40160
-
40161
-
40162
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=0875343a&scoped=true
40163
- var FileViewvue_type_template_id_0875343a_scoped_true_render = function render() {
37123
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=1fb9c8f8&scoped=true
37124
+ var FileViewvue_type_template_id_1fb9c8f8_scoped_true_render = function render() {
40164
37125
  var _vm = this,
40165
37126
  _c = _vm._self._c;
40166
37127
  return _c('div', [_c('div', {
@@ -40858,7 +37819,7 @@ var FileViewvue_type_template_id_0875343a_scoped_true_render = function render()
40858
37819
  ref: "ServeDialog"
40859
37820
  })], 1)])]);
40860
37821
  };
40861
- var FileViewvue_type_template_id_0875343a_scoped_true_staticRenderFns = [function () {
37822
+ var FileViewvue_type_template_id_1fb9c8f8_scoped_true_staticRenderFns = [function () {
40862
37823
  var _vm = this,
40863
37824
  _c = _vm._self._c;
40864
37825
  return _c('div', {
@@ -40917,7 +37878,7 @@ var FileViewvue_type_template_id_0875343a_scoped_true_staticRenderFns = [functio
40917
37878
  })]);
40918
37879
  }];
40919
37880
 
40920
- ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=0875343a&scoped=true
37881
+ ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=1fb9c8f8&scoped=true
40921
37882
 
40922
37883
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
40923
37884
  function _extends() {
@@ -40930,6 +37891,9 @@ function _extends() {
40930
37891
  }, _extends.apply(null, arguments);
40931
37892
  }
40932
37893
 
37894
+ ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
37895
+ var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
37896
+ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
40933
37897
  ;// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/bem.js
40934
37898
  /**
40935
37899
  * bem helper
@@ -40977,7 +37941,7 @@ function createBEM(name) {
40977
37941
  var utils_inBrowser = typeof window !== 'undefined';
40978
37942
  var isServer = (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function
40979
37943
 
40980
- function utils_noop() {}
37944
+ function noop() {}
40981
37945
  function isDef(val) {
40982
37946
  return val !== undefined && val !== null;
40983
37947
  }
@@ -41096,7 +38060,7 @@ var SlotsMixin = {
41096
38060
 
41097
38061
 
41098
38062
 
41099
- function component_install(Vue) {
38063
+ function install(Vue) {
41100
38064
  var name = this.name;
41101
38065
  Vue.component(name, this);
41102
38066
  Vue.component(camelize("-" + name), this);
@@ -41140,7 +38104,7 @@ function createComponent(name) {
41140
38104
  }
41141
38105
 
41142
38106
  sfc.name = name;
41143
- sfc.install = component_install;
38107
+ sfc.install = install;
41144
38108
  return sfc;
41145
38109
  };
41146
38110
  }
@@ -41496,7 +38460,7 @@ function Overlay(h, props, slots, ctx) {
41496
38460
  "style": style,
41497
38461
  "class": [bem(), props.className],
41498
38462
  "on": {
41499
- "touchmove": props.lockScroll ? preventTouchMove : utils_noop
38463
+ "touchmove": props.lockScroll ? preventTouchMove : noop
41500
38464
  }
41501
38465
  }, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);
41502
38466
  }
@@ -42938,7 +39902,7 @@ function vuex_esm_isPromise (val) {
42938
39902
  return val && typeof val.then === 'function'
42939
39903
  }
42940
39904
 
42941
- function vuex_esm_assert (condition, msg) {
39905
+ function assert (condition, msg) {
42942
39906
  if (!condition) { throw new Error(("[vuex] " + msg)) }
42943
39907
  }
42944
39908
 
@@ -42961,9 +39925,9 @@ var Module = function Module (rawModule, runtime) {
42961
39925
  this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
42962
39926
  };
42963
39927
 
42964
- var vuex_esm_prototypeAccessors = { namespaced: { configurable: true } };
39928
+ var prototypeAccessors = { namespaced: { configurable: true } };
42965
39929
 
42966
- vuex_esm_prototypeAccessors.namespaced.get = function () {
39930
+ prototypeAccessors.namespaced.get = function () {
42967
39931
  return !!this._rawModule.namespaced
42968
39932
  };
42969
39933
 
@@ -43018,7 +39982,7 @@ Module.prototype.forEachMutation = function forEachMutation (fn) {
43018
39982
  }
43019
39983
  };
43020
39984
 
43021
- Object.defineProperties( Module.prototype, vuex_esm_prototypeAccessors );
39985
+ Object.defineProperties( Module.prototype, prototypeAccessors );
43022
39986
 
43023
39987
  var ModuleCollection = function ModuleCollection (rawRootModule) {
43024
39988
  // register root module (Vuex.Store options)
@@ -43139,7 +40103,7 @@ function assertRawModule (path, rawModule) {
43139
40103
  var assertOptions = assertTypes[key];
43140
40104
 
43141
40105
  forEachValue(rawModule[key], function (value, type) {
43142
- vuex_esm_assert(
40106
+ assert(
43143
40107
  assertOptions.assert(value),
43144
40108
  makeAssertionMessage(path, key, type, value, assertOptions.expected)
43145
40109
  );
@@ -43156,7 +40120,7 @@ function makeAssertionMessage (path, key, type, value, expected) {
43156
40120
  return buf
43157
40121
  }
43158
40122
 
43159
- var Vue; // bind on install
40123
+ var vuex_esm_Vue; // bind on install
43160
40124
 
43161
40125
  var Store = function Store (options) {
43162
40126
  var this$1 = this;
@@ -43165,7 +40129,7 @@ var Store = function Store (options) {
43165
40129
  // Auto install if it is not done yet and `window` has `Vue`.
43166
40130
  // To allow users to avoid auto-installation in some cases,
43167
40131
  // this code should be placed here. See #731
43168
- if (!Vue && typeof window !== 'undefined' && window.Vue) {
40132
+ if (!vuex_esm_Vue && typeof window !== 'undefined' && window.Vue) {
43169
40133
  vuex_esm_install(window.Vue);
43170
40134
  }
43171
40135
 
@@ -43183,7 +40147,7 @@ var Store = function Store (options) {
43183
40147
  this._modules = new ModuleCollection(options);
43184
40148
  this._modulesNamespaceMap = Object.create(null);
43185
40149
  this._subscribers = [];
43186
- this._watcherVM = new Vue();
40150
+ this._watcherVM = new vuex_esm_Vue();
43187
40151
  this._makeLocalGettersCache = Object.create(null);
43188
40152
 
43189
40153
  // bind commit and dispatch to self
@@ -43215,7 +40179,7 @@ var Store = function Store (options) {
43215
40179
  // apply plugins
43216
40180
  plugins.forEach(function (plugin) { return plugin(this$1); });
43217
40181
 
43218
- var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
40182
+ var useDevtools = options.devtools !== undefined ? options.devtools : vuex_esm_Vue.config.devtools;
43219
40183
  if (useDevtools) {
43220
40184
  devtoolPlugin(this);
43221
40185
  }
@@ -43359,7 +40323,7 @@ Store.prototype.unregisterModule = function unregisterModule (path) {
43359
40323
  this._modules.unregister(path);
43360
40324
  this._withCommit(function () {
43361
40325
  var parentState = getNestedState(this$1.state, path.slice(0, -1));
43362
- Vue.delete(parentState, path[path.length - 1]);
40326
+ vuex_esm_Vue.delete(parentState, path[path.length - 1]);
43363
40327
  });
43364
40328
  resetStore(this);
43365
40329
  };
@@ -43435,15 +40399,15 @@ function resetStoreVM (store, state, hot) {
43435
40399
  // use a Vue instance to store the state tree
43436
40400
  // suppress warnings just in case the user has added
43437
40401
  // some funky global mixins
43438
- var silent = Vue.config.silent;
43439
- Vue.config.silent = true;
43440
- store._vm = new Vue({
40402
+ var silent = vuex_esm_Vue.config.silent;
40403
+ vuex_esm_Vue.config.silent = true;
40404
+ store._vm = new vuex_esm_Vue({
43441
40405
  data: {
43442
40406
  $$state: state
43443
40407
  },
43444
40408
  computed: computed
43445
40409
  });
43446
- Vue.config.silent = silent;
40410
+ vuex_esm_Vue.config.silent = silent;
43447
40411
 
43448
40412
  // enable strict mode for new vm
43449
40413
  if (store.strict) {
@@ -43458,7 +40422,7 @@ function resetStoreVM (store, state, hot) {
43458
40422
  oldVm._data.$$state = null;
43459
40423
  });
43460
40424
  }
43461
- Vue.nextTick(function () { return oldVm.$destroy(); });
40425
+ vuex_esm_Vue.nextTick(function () { return oldVm.$destroy(); });
43462
40426
  }
43463
40427
  }
43464
40428
 
@@ -43478,7 +40442,7 @@ function installModule (store, rootState, path, module, hot) {
43478
40442
  var moduleName = path[path.length - 1];
43479
40443
  store._withCommit(function () {
43480
40444
  if ((false)) {}
43481
- Vue.set(parentState, moduleName, module.state);
40445
+ vuex_esm_Vue.set(parentState, moduleName, module.state);
43482
40446
  });
43483
40447
  }
43484
40448
 
@@ -43653,12 +40617,12 @@ function unifyObjectStyle (type, payload, options) {
43653
40617
  }
43654
40618
 
43655
40619
  function vuex_esm_install (_Vue) {
43656
- if (Vue && _Vue === Vue) {
40620
+ if (vuex_esm_Vue && _Vue === vuex_esm_Vue) {
43657
40621
  if ((false)) {}
43658
40622
  return
43659
40623
  }
43660
- Vue = _Vue;
43661
- applyMixin(Vue);
40624
+ vuex_esm_Vue = _Vue;
40625
+ applyMixin(vuex_esm_Vue);
43662
40626
  }
43663
40627
 
43664
40628
  /**
@@ -44307,10 +41271,7 @@ function FileViewvue_type_script_lang_js_defineProperty(e, r, t) { return (r = F
44307
41271
  function FileViewvue_type_script_lang_js_toPropertyKey(t) { var i = FileViewvue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == FileViewvue_type_script_lang_js_typeof(i) ? i : i + ""; }
44308
41272
  function FileViewvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != FileViewvue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != FileViewvue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
44309
41273
 
44310
-
44311
-
44312
- external_commonjs_vue_commonjs2_vue_root_Vue_default().use(toast);
44313
- external_commonjs_vue_commonjs2_vue_root_Vue_default().use(VueRouter$1);
41274
+ Vue.use(toast);
44314
41275
 
44315
41276
 
44316
41277
  var moment = __webpack_require__(5093);
@@ -45018,9 +41979,9 @@ var moment = __webpack_require__(5093);
45018
41979
  });
45019
41980
  ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=script&lang=js
45020
41981
  /* harmony default export */ var view_FileViewvue_type_script_lang_js = (FileViewvue_type_script_lang_js);
45021
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=0875343a&prod&scoped=true&lang=scss
45022
- var FileViewvue_type_style_index_0_id_0875343a_prod_scoped_true_lang_scss = __webpack_require__(7807);
45023
- ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=0875343a&prod&scoped=true&lang=scss
41982
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=1fb9c8f8&prod&scoped=true&lang=scss
41983
+ var FileViewvue_type_style_index_0_id_1fb9c8f8_prod_scoped_true_lang_scss = __webpack_require__(9183);
41984
+ ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=1fb9c8f8&prod&scoped=true&lang=scss
45024
41985
 
45025
41986
  ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue
45026
41987
 
@@ -45033,11 +41994,11 @@ var FileViewvue_type_style_index_0_id_0875343a_prod_scoped_true_lang_scss = __we
45033
41994
 
45034
41995
  var FileView_component = normalizeComponent(
45035
41996
  view_FileViewvue_type_script_lang_js,
45036
- FileViewvue_type_template_id_0875343a_scoped_true_render,
45037
- FileViewvue_type_template_id_0875343a_scoped_true_staticRenderFns,
41997
+ FileViewvue_type_template_id_1fb9c8f8_scoped_true_render,
41998
+ FileViewvue_type_template_id_1fb9c8f8_scoped_true_staticRenderFns,
45038
41999
  false,
45039
42000
  null,
45040
- "0875343a",
42001
+ "1fb9c8f8",
45041
42002
  null
45042
42003
 
45043
42004
  )
@@ -45049,21 +42010,11 @@ function ipadvue_type_script_lang_js_regeneratorRuntime() { "use strict"; /*! re
45049
42010
  function ipadvue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
45050
42011
  function ipadvue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { ipadvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { ipadvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
45051
42012
 
45052
-
45053
-
45054
- external_commonjs_vue_commonjs2_vue_root_Vue_default().use(VueRouter$1);
45055
42013
  /* harmony default export */ var ipadvue_type_script_lang_js = ({
45056
42014
  components: {
45057
42015
  fileView: FileView
45058
42016
  },
45059
- props: {
45060
- // item: {
45061
- // type: Object,
45062
- // default: function() {
45063
- // return {}
45064
- // }
45065
- // }
45066
- },
42017
+ props: {},
45067
42018
  data: function data() {
45068
42019
  return {
45069
42020
  i18npkg: 'ipad',
@@ -45233,9 +42184,9 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default().use(VueRouter$1);
45233
42184
  });
45234
42185
  ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=script&lang=js
45235
42186
  /* harmony default export */ var src_ipadvue_type_script_lang_js = (ipadvue_type_script_lang_js);
45236
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=style&index=0&id=1f6426cd&prod&scoped=true&lang=scss
45237
- var ipadvue_type_style_index_0_id_1f6426cd_prod_scoped_true_lang_scss = __webpack_require__(5137);
45238
- ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=style&index=0&id=1f6426cd&prod&scoped=true&lang=scss
42187
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=style&index=0&id=edaf50ae&prod&scoped=true&lang=scss
42188
+ var ipadvue_type_style_index_0_id_edaf50ae_prod_scoped_true_lang_scss = __webpack_require__(5122);
42189
+ ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=style&index=0&id=edaf50ae&prod&scoped=true&lang=scss
45239
42190
 
45240
42191
  ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/index.vue
45241
42192
 
@@ -45252,7 +42203,7 @@ var ipad_component = normalizeComponent(
45252
42203
  staticRenderFns,
45253
42204
  false,
45254
42205
  null,
45255
- "1f6426cd",
42206
+ "edaf50ae",
45256
42207
  null
45257
42208
 
45258
42209
  )
@@ -61590,10 +58541,10 @@ var Dialog_createNamespace = createNamespace('dialog'),
61590
58541
  var onEventType = {
61591
58542
  Enter: this.showConfirmButton ? function () {
61592
58543
  return _this3.handleAction('confirm');
61593
- } : utils_noop,
58544
+ } : noop,
61594
58545
  Escape: this.showCancelButton ? function () {
61595
58546
  return _this3.handleAction('cancel');
61596
- } : utils_noop
58547
+ } : noop
61597
58548
  };
61598
58549
  onEventType[event.key]();
61599
58550
  this.$emit('keydown', event);